query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
9d99fa4e49a6791a23aae607c67b81e2
Endpoint para renderizar la vista principal he inyectar filtros de las columnas a js
[ { "docid": "23b2602268107fc637a1e8e9eda69715", "score": "0.0", "text": "public function index()\n\t{\n\t\treturn view('tabla', ['columns' => $this->TableLibrary->getDataAllColumns()]);\n\t}", "title": "" } ]
[ { "docid": "25f851c5b05a22e1c0f9b4bc13242746", "score": "0.6866177", "text": "private function setFilters() {\n\t\t$columns = \"\";\n\t\tif ($this->hasfilter) {\n\t\t\t$columns = \"<tr class=\\\"filters\\\">\";\n\t\t\tfor($i = 0; $i < count ( $this->columns ); $i ++) {\n\t\t\t\tif(!empty($this->columns[$i]['type']) && $this->columns[$i]['type'] == \"link\"){\n\t\t\t\t\tif ($this->hasFilters ()) {\n\t\t\t\t\t\t$columns .= \"<th>\";\n\t\t\t\t\t\t$columns .= '<input type=\"submit\" value=\"' . $this->translator->translate ( 'Search' ) . '\">';\n\t\t\t\t\t\t$columns .= \"</th>\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$columns .= \"<th>\";\n\t\t\t\t\t$columns .= $this->addfilterField ( $i );\n\t\t\t\t\t$columns .= \"</th>\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$columns .= \"</tr>\";\n\t\t}\n\t\treturn $columns;\n\t}", "title": "" }, { "docid": "5038bfcccace1a3df1da313e2bcb5271", "score": "0.65571386", "text": "public function filterColumn();", "title": "" }, { "docid": "351c9582c6ad190cd07c407000c21fa4", "score": "0.65060854", "text": "public function renderFilters();", "title": "" }, { "docid": "61770ad14b98614fd87f0dd9164d56dc", "score": "0.6474345", "text": "public function actionDinamico()\n {\n $filtro = new DynamicReportFilter([\n ['column' => 'dp.cedula', 'label' => 'Cedula paciente', 'type' => DynamicReportComponent::TYPE_NUMBER],\n ['column' => 'dp.nombre', 'label' => 'Nombre paciente', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'dp.apellido', 'label' => 'Apellido paciente', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'dp.telefono_1', 'label' => 'Telefono paciente', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'dp.telefono_2', 'label' => 'Telefono 2 paciente', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'dp.fecha_nacimiento', 'label' => 'Fecha nacimiento paciente', 'type' => DynamicReportComponent::TYPE_DATE],\n ['column' => 'dp.direccion', 'label' => 'Direccion paciente', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'dp.serial_carnet', 'label' => 'Serial carnet paciente', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'dp.embarazada', 'label' => 'Está embarazada', 'type' => DynamicReportComponent::TYPE_BOOLEAN],\n ['column' => 'parro.parroquia', 'label' => 'Parroquia paciente', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'muni.municipio', 'label' => 'Municipio paciente', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'edo.estado', 'label' => 'Estado paciente', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'sexo.letra', 'label' => 'Sexo paciente (letra)', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'sexo.nombre', 'label' => 'Sexo paciente (descripcion)', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'nac.letra', 'label' => 'Nacionalidad paciente (letra)', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'nac.descripcion', 'label' => 'Nacionalidad paciente (descripcion)', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'med.nb_producto', 'label' => 'Medicamento', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'pat.descripcion', 'label' => 'Patologia', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'soli.dosis', 'label' => 'Dosis', 'type' => DynamicReportComponent::TYPE_NUMBER],\n ['column' => 'soli.frecuencia', 'label' => 'Frecuencia', 'type' => DynamicReportComponent::TYPE_NUMBER],\n ['column' => 'soli.cantidad_mensual', 'label' => 'Cantida mensual', 'type' => DynamicReportComponent::TYPE_NUMBER],\n ['column' => 'frec.frecuencias', 'label' => 'Tipo frecuencia', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'ente.descripcion', 'label' => 'Ente', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'hsoli.fecha', 'label' => 'Fecha solicitud', 'type' => DynamicReportComponent::TYPE_DATE],\n ['column' => 'usu.usuario', 'label' => 'Usuario registrador', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'usu.cedula', 'label' => 'Cedula usuario', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'usu.nombre', 'label' => 'Nombre usuario', 'type' => DynamicReportComponent::TYPE_STRING],\n ['column' => 'usu.apellido', 'label' => 'Apellido usuario', 'type' => DynamicReportComponent::TYPE_STRING],\n ]);\n\n $filtro->validate('fields');\n\n if ($filtro->load(Yii::$app->request->post()) && $filtro->validate()) {\n $query = (new \\yii\\db\\Query)\n ->from(\\frontend\\models\\DatosPersona::tableName() . ' dp')\n ->leftJoin(\\common\\models\\Parroquia::tableName() . ' parro', 'parro.codigo_parroquia = dp.codigo_parroquia')\n ->leftJoin(\\common\\models\\Municipio::tableName() . ' muni', 'muni.codigo_municipio = parro.codigo_municipio')\n ->leftJoin(\\common\\models\\Estado::tableName() . ' edo', 'edo.codigo_estado = muni.codigo_estado')\n ->leftJoin(\\frontend\\models\\Solicitud::tableName() . ' soli', 'dp.id = soli.id_datos_persona')\n ->leftJoin(\\common\\models\\MedicamentoSibo::tableName() . ' med', 'med.id_producto = soli.id_medicamento')\n ->leftJoin(\\common\\models\\Frecuencias::tableName() . ' frec', 'frec.id = soli.id_frecuencia')\n ->leftJoin(\\common\\models\\Cie10Categoria::tableName() . ' pat', 'pat.id = soli.id_patologia')\n ->leftJoin(\\common\\models\\Sexo::tableName() . ' sexo', 'sexo.id = dp.id_sexo')\n ->leftJoin(\\common\\models\\Nacionalidad::tableName() . ' nac', 'nac.id = dp.id_nacionalidad')\n ->leftJoin(\\common\\models\\Ente::tableName() . ' ente', 'ente.id = dp.trabajador_id_ente')\n ->leftJoin(\\backend\\models\\HSoli::tableName() . ' hsoli', 'hsoli.id_solicitud = soli.id')\n ->leftJoin(\\common\\models\\Usuario::tableName() . ' usu', 'usu.id = hsoli.id_usuario');\n\n $dynamicReport = new DynamicReportComponent($filtro->fields, $query);\n $dynamicReport->setSelectData( $filtro->select, $filtro->dataGetTypes, $filtro->dataSort );\n\n $where = ['soli.activo' => true];\n $dynamicReport->setWhereData( $filtro->whereColumn, $filtro->whereOperator, $filtro->whereCondition );\n $dynamicReport->addCondition( $where );\n\n $file = Yii::getAlias('@webroot').'/archivos/temp/temp'.rand().'.csv';\n\n $dynamicReport->getCsv($file, 'Reporte dinamico');\n }\n\n ArrayHelper::multisort($filtro->fields, 'column');\n $columnsList = ArrayHelper::map($filtro->fields, 'id', 'label');\n $columnsListOptions = [];\n\n foreach ($filtro->fields as $row) {\n $columnsListOptions[ $row['id'] ] = [\n 'data-type' => $row['type'],\n ];\n }\n\n return $this->render('dinamico', [\n 'model' => $filtro,\n 'columnsList' => $columnsList,\n 'columnsListOptions' => $columnsListOptions,\n ]);\n }", "title": "" }, { "docid": "d385c0c4f50fd5707c6698115e5d19d6", "score": "0.64169264", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n// ->addAction(['width' => '10%'])\n ->ajax('')\n ->parameters([\n 'initComplete' => 'function () {\n max = this.api().columns().count();\n this.api().columns().every(function (col) {\n if((col+1)<max){\n var column = this;\n var input = document.createElement(\"input\");\n $(input).attr(\\'placeholder\\',\\'Filtrar...\\');\n $(input).addClass(\\'form-control\\');\n $(input).css(\\'width\\',\\'100%\\');\n $(input).appendTo($(column.footer()).empty())\n .on(\\'change\\', function () {\n column.search($(this).val(), false, false, true).draw();\n });\n }\n });\n }' ,\n 'dom' => 'Bfrtip',\n 'scrollX' => false,\n 'language'=> [\n \"url\"=> asset(\"vendor/datatables/Portuguese-Brasil.json\")\n ],\n 'buttons' => [\n 'print',\n 'reset',\n 'reload',\n [\n 'extend' => 'collection',\n 'text' => '<i class=\"fa fa-download\"></i> Export',\n 'buttons' => [\n 'csv',\n 'excel',\n 'pdf',\n ],\n ],\n 'colvis'\n ]\n ]);\n }", "title": "" }, { "docid": "9b4f9340651d191c2acd60ad164c980e", "score": "0.63060397", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->parameters([\n 'responsive'=> 'true',\n 'initComplete' => 'function () {\n max = this.api().columns().count();\n this.api().columns().every(function (col) {\n if((col+1)<max){\n var column = this;\n var input = document.createElement(\"input\");\n $(input).attr(\\'placeholder\\',\\'Filtrar...\\');\n $(input).addClass(\\'form-control\\');\n $(input).css(\\'width\\',\\'100%\\');\n $(input).appendTo($(column.footer()).empty())\n .on(\\'change\\', function () {\n column.search($(this).val(), false, false, true).draw();\n });\n }\n });\n }' ,\n 'dom' => 'Blfrtip',\n 'scrollX' => false,\n 'language'=> [\n \"url\"=> asset(\"vendor/datatables/Portuguese-Brasil.json\")\n ],\n // Ordena para que inicialmente carregue os mais novos\n 'order' => [\n 0,\n 'desc'\n ],\n 'buttons' => [\n 'print',\n 'reset',\n 'reload',\n [\n 'extend' => 'collection',\n 'text' => '<i class=\"fa fa-download\"></i> Export',\n 'buttons' => [\n 'csv',\n 'excel',\n 'pdf',\n ],\n ],\n 'colvis'\n ]\n ]);\n }", "title": "" }, { "docid": "c9847435a04ae9f1a1e1d1dd57574012", "score": "0.62615216", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->parameters([\n 'responsive'=> 'true',\n 'initComplete' => 'function () {\n max = this.api().columns().count();\n this.api().columns().every(function (col) {\n if((col+1)<max){\n var column = this;\n var input = document.createElement(\"input\");\n $(input).attr(\\'placeholder\\',\\'Filtrar...\\');\n $(input).addClass(\\'form-control\\');\n $(input).css(\\'width\\',\\'100%\\');\n $(input).appendTo($(column.footer()).empty())\n .on(\\'change\\', function () {\n column.search($(this).val(), false, false, true).draw();\n });\n }\n });\n }' ,\n 'dom' => 'Blfrtip',\n 'scrollX' => false,\n 'language'=> [\n \"url\"=> asset(\"vendor/datatables/Portuguese-Brasil.json\")\n ],\n 'order' => [\n 0,\n 'desc'\n ],\n 'buttons' => [\n 'print',\n 'reset',\n 'reload',\n [\n 'extend' => 'collection',\n 'text' => '<i class=\"fa fa-download\"></i> Export',\n 'buttons' => [\n 'csv',\n 'excel',\n 'pdf',\n ],\n ],\n 'colvis'\n ]\n ]);\n }", "title": "" }, { "docid": "345193b97e8a83c67605fc31637302c0", "score": "0.6213716", "text": "public function html()\n {\n return $this->builder()\n ->setTableId('paralegal-table')\n ->columns($this->getColumns())\n ->ajax([\n 'url' => '',\n 'data' => \"function(d){\n d.area_id = $('#area').val();\n d.number = $('#number').val();\n d.name = $('#name').val();\n d.gender = $('#gender').val();\n }\"\n ])\n ->parameters([\n 'pageLength' => 10,\n 'processing' => true,\n 'serverSide' => true,\n 'responsive' => true,\n 'initComplete' => \" \n function() {\n $('#paralegal-filter').on('submit', function(e) {\n window.LaravelDataTables['paralegal-table'].draw();\n e.preventDefault();\n });\n\n $('#reset-filter').click(function(e) {\n $('#area').val('').trigger('change');\n $('#gender').val('').trigger('change');\n $('#name').val('');\n $('#number').val('');\n $('#paralegal-filter').submit();\n });\n }\n \"\n ])\n ->dom(\n \"<'row'<'col-sm-12 col-md-4'l><'col-sm-12 col-md-8 text-right'B>>\" .\n \"<'row'<'col-sm-12'tr>>\" .\n \"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>\"\n )\n ->orderBy(0);\n }", "title": "" }, { "docid": "eb233c9ddd2b796fd8ef61eb4cc4c68b", "score": "0.6168098", "text": "public function reRenderColumns(){\n\n\t\t$query = $this->request->getPost();\n\n\t\t$payload = $this->TableLibrary->getColumnsByMatches([\n\t\t\t'page' => $query['draw'],\n\t\t\t'len' => $query['length'],\n\t\t\t'start'\t\t\t=> $query['start'],\n\t\t\t'column_search' => $query['columns'],\n\t\t\t'sort' => $query['order'],\n\t\t\t'search' => $query['search']['value']\n\t\t], false);\n\n\t\treturn $this->respond($payload);\n\t}", "title": "" }, { "docid": "6b86e35ab55b7c1fcc3097c42ddc6377", "score": "0.61645305", "text": "public function getFilteredAndSortedTable(Request $request) {\n // test\n // $example_filter = array('gender'=>['M'], 'birthdate'=>[4,5,6]);\n // $example_sort = array('email'=>false, 'name'=>true);\n\n // $json_filter = json_encode($example_filter);\n // $json_sort = json_encode($example_sort);\n // test\n $attsMaster = [\n \"user_id\",\n \"name\",\n \"email\",\n \"telephone_number\",\n \"birthdate\"\n ];\n\n //Nama attribute pada sql\n $atts = [\n \"address\",\n \"city\",\n \"gender\",\n \"line_id\",\n \"whatsapp\",\n \"sumber_data\",\n \"sales_name\",\n \"DP_date\",\n \"payment_date\",\n \"batch\",\n \"status\",\n \"tanggal_opening_class\",\n \"tanggal_end_class\",\n \"tanggal_ujian\"\n ];\n\n $json_filter = $request['filters'];\n $json_sort = $request['sorts'];\n $page = 0;\n $page = $request['page']-1;\n $record_amount = 15;\n\n // add 'select' of query\n $query = QueryModifier::queryView('CAT', $json_filter, $json_sort);\n // dd($query);\n $list_old = DB::select(DB::raw($query['text']), $query['variables']);\n \n $record_count = count($list_old);\n $page_count = ceil($record_count/$record_amount); \n\n \n $list = collect(array_slice($list_old, $page*$record_amount, $record_amount)); \n\n return view('vpc/cattable',\n [\n 'route' => 'CAT',\n 'clients' => $list,\n 'atts' => $atts,\n 'attsMaster' => $attsMaster,\n 'count' => $page_count\n ]);\n // return $list;\n }", "title": "" }, { "docid": "e7975119c00bbc94848bc47f9f2454cc", "score": "0.61509466", "text": "public function listCol(Request $request) //falta diferenciar col de nocol\n {\n $entityManager = $this->getDoctrine()->getManager('seo');\n \n $sql = \"\n SELECT \n t.`ID_ESP`, \n t.`DEN_ESP_CAS`, \n t.`DEN_ESP_LAT`, \n t.`DEN_ESP_ING`,\n t.`DEN_ESP_CAT`,\n t.`DEN_ESP_GAL`, \n t.`DEN_ESP_VAS` \n FROM \n tablas_seo.t_especies t\n \";\n \n $stmt = $entityManager->getConnection()->prepare($sql);\n $stmt->execute();\n $array= new ArrayCollection();\n $array=$stmt->fetchAll();\n \n //ahora añadimos a cada grupo del array el campo de la imagen\n foreach ($array as &$group) {\n $group[\"image\"] = url('col', $group['ID_ESP']);\n }\n\n return new Response(\n json_encode( $this->utf8ize( $array ) ), 200, ['content-type' => 'text/html; charset=UTF-8']\n );\n }", "title": "" }, { "docid": "1cd375f9a01fea3b9b19518688addeb9", "score": "0.6135314", "text": "public function index()\n\t{\n\t\t$filter=Input::get(\"filter\");\n\t\t$escuela_id=(!isset($filter['escuela_id']))?'':$filter['escuela_id'];\n\t\t$code=(!isset($filter['code']))?'':$filter['code'];\n\t\t$name=(!isset($filter['name']))?'':$filter['name'];\n\t\t$ciclo=(!isset($filter['ciclo']))?'':$filter['ciclo'];\n\n\t\t$entities = Curso::with('Escuela')\t\n\n\t\t\t->where('escuela_id','=',$escuela_id)\n\t\t\t->where('name','LIKE','%'.$name.'%')\n\t\t\t->where('code','LIKE','%'.$code.'%')\n\t\t\t->where('ciclo','LIKE','%'.$ciclo.'%')\n\t\t\t->paginate(Input::get('count'));\n\t \n\t return Response::json(\n\t $entities->toArray(),\n\t 201\n\t );\n\t}", "title": "" }, { "docid": "1eaa84d57bc3dd8cb5e93f81d2aec433", "score": "0.6081531", "text": "public function index()\n {\n $contract_id = empty(request('contract_id')) ? '' : (int) request('contract_id');\n $to_status = empty(request('to_status')) ? '' : trim(request('to_status'));\n\n $this->filteringByContractId($contract_id);\n $this->filteringByContractTOStatus($to_status);\n\n return parent::index();\n }", "title": "" }, { "docid": "a960388bc9c7ef1b4b30ac99873df372", "score": "0.6067348", "text": "function addColumnFilter() {\n\t\t$screen = get_current_screen();\n\n\t\tif ( $screen->post_type == 'post' ) {\n\t\t\t$selected_id = isset( $_GET['nsfw_filter'] ) ? $_GET['nsfw_filter'] : NULL;\n\t\t\t$this->printNSFWSelect( 'nsfw_filter', $selected_id, 'All NSFW Statuses' );\n\t\t}\n\t}", "title": "" }, { "docid": "78f7af65e28072204c505392560f5c2e", "score": "0.60588646", "text": "public function filterListAction()\n {\n return $this->render(\n 'SuluResourceBundle:Template:filter.list.html.twig'\n );\n }", "title": "" }, { "docid": "1fa09afc22abc06433dea35e2e5e2b6a", "score": "0.6054014", "text": "public static function getFilterData(){\n $tipos = Tipo::all();\n $ciudades = Ciudad::all();\n\n $return = [\n 'status' => true,\n 'tipos' => $tipos,\n 'ciudades' => $ciudades \n ];\n\n echo json_encode($return);\n return;\n }", "title": "" }, { "docid": "f28242acf39cbabda24c63315cc96063", "score": "0.605271", "text": "public function filters();", "title": "" }, { "docid": "1ff18da87710bc0c0dc031118a0327fe", "score": "0.6015167", "text": "function getTableFilterHTML()\n\t{\n\t\t$html = $this->render();\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "5016dcb99573fa643cb7a4c2734fa4a3", "score": "0.5990977", "text": "function getArrayListFilterCol() {\n\t\t\t$data['sumber'] = 's.namasumberbeasiswa';\n\t\t\t\t\t\t\n\t\t\treturn $data;\n\t\t}", "title": "" }, { "docid": "bd03979706549bd71098d94eba8ec5ce", "score": "0.59876287", "text": "public function index(Request $request)\n {\n $filtro = \"\";\n $order = \" id \";\n $order_type = \"desc\";\n \n if ($request->input(\"filtro\") != \"\") {\n $str_filt = str_replace(\"'\", \"''\", $request->input(\"filtro\"));\n $filtro .= \" and ( p.nome like '%\".$str_filt.\"%' ) \";\n }\n \n if ($request->input(\"id_emissora\") != \"\") {\n $filtro .= \" and em.id_registro_importado = \" . $request->input(\"id_emissora\");\n }\n \n \n\n if ($request->input(\"order\") != \"\") {\n $order = $request->input(\"order\");\n }\n \n if ($request->input(\"order_type\") != \"\") {\n $order_type = $request->input(\"order_type\");\n }\n \n $itens = \\App\\Http\\Dao\\ProgramaDao::getListGridCad($filtro, $order, $order_type);\n \n return $this->sendResponse(array(\"data\" => $itens , \"qtde\" => count($itens) ));\n }", "title": "" }, { "docid": "07d84351be047c40aed9c256636e9d53", "score": "0.5977988", "text": "public function actionAjaxTodofilter(){\n\t\t$bodyparams=Yii::$app->request->bodyParams;\n Yii::$app->request->queryParams +=$bodyparams;\n //echo \"<pre>\",print_r($bodyparams),\"</prE>\";\n //die;\n\t\t$searchModel = new TasksUnitsSearch();\n\t\t$qparams = Yii::$app->request->queryParams;\n\t\t$params = array();\n\t\t//$dataProvider = $searchModel->searchFilter($qparams,$params);\n\t\t$params = array_merge($qparams, Yii::$app->request->bodyParams,$params);\n\t $dataProvider = $searchModel->searchMyWorkingTodosFilter($params);\n\t if($params['field'] == 'client_id' || $params['field'] == 'client_case_id') {\n\t\t\tforeach ($dataProvider as $key=>$val) {\n\t\t\t\t$out['results'][] = ['id' => $key, 'text' => Html::decode($val),'label' => Html::decode($val)];\n\t\t\t}\n\t\t} else {\n\t\t\tforeach ($dataProvider as $key=>$val) {\n\t\t\t\t$out['results'][] = ['id' => $val, 'text' => Html::decode($val),'label' => Html::decode($val)];\n\t\t\t}\n\t\t}\n\t return json_encode($out);\n\t}", "title": "" }, { "docid": "9c24772bb29d1c9bdf0aea0466dd64e1", "score": "0.59305984", "text": "public function filterAction()\n {\n $request = $this->get('request_stack')->getMasterRequest();\n $criteria = $request->query->get('criteria', array());\n\n return $this->render('AccardWebBundle:Frontend/Patient:filterForm.html.twig', array(\n 'form' => $this->getPatientFilterForm($criteria)->createView(),\n 'filter_criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "84c787136db426616a12839dcdedce1c", "score": "0.59134036", "text": "abstract public function get_filtering_data();", "title": "" }, { "docid": "4f62923e924c2d8be9a46da10025647d", "score": "0.5888633", "text": "function showfilter()\n\t{\n\t\t$data = $this->tabel->readfilter();\n\t\t$data[\"hslquery\"] = $this->tabel->getfilteredrec($data);\n\n\t\t$data[\"title\"] = \"Input Filter Untuk Active Record\";\n\t\t$data[\"scriptaksi\"] = \"activerecord/active_record/showfilter\";\n\n\t\t$this->load->view(\"activerecord/filter_form\", $data);\n\t}", "title": "" }, { "docid": "fc0f637d0de898e96717335431064ca4", "score": "0.58582723", "text": "public function filteredCustomers()\n {\n \t$filter = Input::get('name');\n \t$results = Customer::selectRaw(\"CONCAT(id,',',customer_type_id) AS value, name AS text\")->whereRaw(\"name LIKE '%$filter%'\")->orderBy('name','ASC')->limit(30)->get();\n \t\n \tif ($results->count() > 0) {\n \t\treturn Response::json(array('results' => $results));\n \t}\n \telse {\n \t\treturn Response::json(array('results' => '[{}]'));\n \t}\n }", "title": "" }, { "docid": "55f36f16dd6b7d6abbd52ecd1fafcf9e", "score": "0.58529896", "text": "public function index()\n {\n \n $roles = $this->Rol->filter(request()->all())->get();\n $rutas = $this->Ruta->filter(request()->all())->get();\n $permiso = $this->Permiso->tables(request()->all())->filter(request()->all())->Columnas()->paginate($this->Permiso->perPage);\n $Sql = $this->Permiso->tables(request()->all())->filter(request()->all())->Columnas()->toSql();\n\n $respuesta = [\n 'status' => 'ok',\n 'message' => $this->mensaje_exitoso,\n 'data' => compact('roles','rutas','permiso','Sql')\n ];\n \n return response($respuesta,200);\n }", "title": "" }, { "docid": "421639e27a16af10919e722b2b9a3d1e", "score": "0.58528244", "text": "public function filterFormAction()\n {\n $conjunctions = $this->container->getParameter('sulu_resource.filters.conjunction');\n\n return $this->render(\n 'SuluResourceBundle:Template:filter.form.html.twig',\n ['conjunctions' => $conjunctions]\n );\n }", "title": "" }, { "docid": "6df3a69cd14719bb863bcce75ac0f470", "score": "0.58340263", "text": "public static function filterReport(){\n \n // Crear una nueva instancia de Bien\n $bien = new Bien;\n \n // Verificar si se recibio algun parametro del filtro por GET\n if(@!empty($_REQUEST['tipo_id']) || @!empty($_REQUEST['ciudad_id'])){\n\n // En caso de recibirse alguno de los parametros limpiarlos con trim() en \n // caso de ser recibidos y asignarlos a una variable\n $tipo_id = !empty($_REQUEST['tipo_id']) ? trim($_REQUEST['tipo_id']) : null;\n $ciudad_id = !empty($_REQUEST['ciudad_id']) ? trim($_REQUEST['ciudad_id']) : null;\n\n // Verificar si existen alguno de los 2 o los 2\n if(Helper::exist('tipos_casa', $tipo_id) || \n Helper::exist('ciudades', $ciudad_id)){\n \n // Settear los ids en el bien \n $bien->setTipo_id($tipo_id, true);\n $bien->setCiudad_id($ciudad_id, true);\n \n }else{\n\n // Responder en texto plano en caso de no recibir los datos correctos\n $responseText = 'Algunos de los valores enviados son incorrectos.';\n\n }\n\n\n }\n\n // Ejecutar, asignar y verificar si el resultado de la busqueda\n // es mayor o igual a uno para poder emitir un reporte.\n if($bienes = $bien->filterReport()){\n\n // En caso de haber al menos un registro emitir un reporte en csv\n $bien->emitReport($bienes);\n\n }else{\n\n // En caso de no haber mas de un reporte o uno, retornar una respuesta\n // en texto plano\n $responseText = 'No se encontraron bienes que coincidan o no ha guardado ningun bien'; \n\n }\n\n echo isset($responseText) ? $responseText : '';\n return;\n\n }", "title": "" }, { "docid": "f3329dd8afe80135c2301955fffa2210", "score": "0.5820073", "text": "public function index()\n\t{\n $filters = Filter::all();\n\n\t\treturn response()->json(['data' => $filters], 200);\n\t}", "title": "" }, { "docid": "d8197c255c9b16143b05a78011365484", "score": "0.5814199", "text": "static function filter($request, $columns, $filtroAdd) {\n $globalSearch = array();\n $columnSearch = array();\n $dtColumns = SSP::pluck($columns, 'dt');\n\n if (isset($request['search']) && $request['search']['value'] != '') {\n $str = $request['search']['value'];\n $str = pg_escape_string($str);\n\n\n for ($i = 0, $ien = count($request['columns']); $i < $ien; $i++) {\n $requestColumn = $request['columns'][$i];\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\n $column = $columns[$columnIdx];\n\n if ($requestColumn['searchable'] == 'true') {\n $globalSearch[] = \" {$column['db']}::varchar ILIKE '%$str%'\";\n }\n }\n }\n\n // Individual column filtering\n for ($i = 0, $ien = count($request['columns']); $i < $ien; $i++) {\n $requestColumn = $request['columns'][$i];\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\n $column = $columns[$columnIdx];\n\n $str = $requestColumn['search']['value'];\n $str = pg_escape_string($str);\n\n if ($requestColumn['searchable'] == 'true' &&\n $str != '') {\n $columnSearch[] = \" {$column['db']}::varchar ILIKE '%$str%'\";\n }\n }\n\n // Combine the filters into a single string\n $where = '';\n\n if (count($globalSearch)) {\n $where = '(' . implode(' OR ', $globalSearch) . ')';\n }\n\n if (count($columnSearch)) {\n $where = $where === '' ?\n implode(' AND ', $columnSearch) :\n $where . ' AND ' . implode(' AND ', $columnSearch);\n }\n\n //Agrega filtro general personalizado\n if ($filtroAdd !== NULL) {\n if ($where !== '') {\n $where = $filtroAdd . ' AND ' . $where;\n } else {\n $where = $filtroAdd;\n }\n }\n\n if ($where !== '') {\n $where = 'AND ' . $where;\n }\n\n return $where;\n }", "title": "" }, { "docid": "ec818d62a8af8a77ecc13408d656aaa9", "score": "0.5809447", "text": "public function index(Request $request)\n {\n $this_table = 'diverses';\n $perPageLimit_default = 8;\n create_dv('diverses_disp_per_page', $perPageLimit_default, true);\n $perPageLimit = get_dv('diverses_disp_per_page');\n\n $order = NULL;\n $order = $request->get('order'); // Order by what column?\n if(is_null($order)) $order = 'id';\n\n $dir = NULL;\n $dir = $request->get('dir'); // Order direction: asc or desc\n if(is_null($dir)) $dir = 'asc';\n\n $mysearch = NULL;\n $mysearch = $request->get('mysearch');\n\n $filter = null;\n $filter = $request->get('filter');\n\n\n if(!is_null($filter)) {\n //create your own, more usefull filters\n if($filter=='dummy'){\n $diverses = DB::table($this_table)->where('id', '<=', 30);\n }\n\n if($filter=='show_only_hints'){\n //display only lang cols that are activated in languages\n $active_str = active_languages_str_for_diverses($as_array = false, 'long');\n $active_str = $active_str . ',id,updated_at,div_what';\n $previous_active_str = get_dv('diverses_disp_cols_arr', 'div_res_long');\n $active_str = $active_str . $previous_active_str;\n set_dv('diverses' . '_disp_cols_arr', $active_str, 'div_res_long');\n //filter\n $diverses = DB::table($this_table)->where('is_hint', '=', '1');\n }\n if ($filter == 'show_only_missing_transl') {\n //display only lang cols that are activated in languages\n $active_str = active_languages_str_for_diverses($as_array = false);\n $active_str = $active_str .',id,updated_at,div_what';\n $previous_active_str = get_dv('diverses_disp_cols_arr', 'div_res_long');\n $active_str = $active_str . $previous_active_str;\n set_dv('diverses'.'_disp_cols_arr', $active_str, 'div_res_long');\n $c_key = 'diverses' . '.' . 'div_res_long' . '.' . 'div_what' . '.' . 'diverses' . '_disp_cols_arr';\n cache_it($c_key, $active_str);\n //filter\n //$diverses = DB::table($this_table)->where('is_hint', '=', '1');\n //$diverses = DB::select('select * from diverses where is_hint = ?', [1]);\n\n //raw: select * from diverses where is_hint = 1 and (\n //div_res_de = '' or div_res_long_de = '' or\n //div_res_en = '' or div_res_long_en = '' or\n //div_res_fr = '' or div_res_long_fr = '' )\n\n $active_languages_str_for_diverses_raw_query = active_languages_str_for_diverses_raw_query();\n //$diverses = DB::select('select * from diverses where is_hint = ?', [1])\n /*$diverses = DB::select('select * from diverses')\n ->where(DB::raw(\" is_hint = 1 and ( div_res_de = '' or div_res_long_de = '' or div_res_en = '' or div_res_long_en = '' or div_res_fr = '' or div_res_long_fr = '' )\" ));*/\n\n /*$diverses = DB::select('select * from diverses')\n ->where(DB::raw(\" is_hint , 1 and ( div_res_de , '' or div_res_long_de . '' or div_res_en , '' or div_res_long_en , '' or div_res_fr , '' or div_res_long_fr , '' )\" ));*/\n\n /*$diverses = DB::select('select * from diverses ')*/\n $languages = get_languages();\n $r = '';\n foreach ($languages as $lang) {\n //$r .= '\\''.$lang->code.'\\',';\n //$r .= 'div_res_'.$lang->code.',';\n //$r .= 'div_res_long_'.$lang->code.',';\n }\n $lang1 = 'en';\n $lang2 = 'fr';\n $lang3 = 'it';\n\n $diverses = DB::table('diverses')\n ->select('*')\n ->whereRaw('div_res_long_de = \"\"', '', 'and (')\n /*->whereRaw( 'div_res_long_de = \"\"' , '', 'or')*/\n /* ->whereRaw( 'div_res_'.$lang1.' = \"\"' , '', 'or')*/\n ->whereRaw('div_res_long_' . $lang1 . ' = \"\"', '', 'or')\n /*->whereRaw( 'div_res_'.$lang2.' = \"\"' , '', 'or')*/\n ->whereRaw('div_res_long_' . $lang2 . ' = \"\"', '', 'or')\n /*->whereRaw( 'div_res_'.$lang3.' = \"\"' , '', 'or')*/\n ->whereRaw('div_res_long_' . $lang3 . ' = \"\"', '', 'or')\n ->whereRaw('and is_hint = 1', '', ')')\n /*->whereRaw( 'and id > 0)','','')*/\n /*->toSQL()*/\n ;\n//dd($diverses);\n\n /*$diverses = DB::select('*')\n ->from(`diverses`)\n ->where(DB::raw('( div_res_de = \"\" or div_res_long_de = \"\" or div_res_en = \"\" or div_res_long_en = \"\" or div_res_fr = \"\" or div_res_long_fr = \"\" or div_res_it = \"\" or div_res_long_it = \"\" )' ))\n ->where(`is_hint`, '=', 1)\n ->where(`id`, '>', 0, ')')\n ->toSQL();*/\n\n /*->whereRaw( `div_res_de` , '' or `div_res_long_de` , '' or `div_res_en` , '' or `div_res_long_en` , '' or `div_res_fr` , '' or `div_res_long_fr` , '' );*/\n\n\n /*$diverses = DB::select(`*`)\n ->from(`diverses`)\n ->where(`is_hint`, `=`, 1)\n ->where(DB::raw(`( div_res_de = '' or div_res_long_de = '' or div_res_en = '' or div_res_long_en = '' or div_res_fr = '' or div_res_long_fr = '' )` ));*/\n\n\n /*->get();*/\n //active_languages_str_for_diverses_raw_query()\n\n /*#########################################*/\n //toSql();\n //dd(DB::getQueryLog()); // an array of all queries\n //$queries = DB::getQueryLog();\n //dd(end($queries)); // only last query\n /*#########################################*/\n }\n\n if ($filter == 'show_only_switches') {\n //display only lang cols that are activated in languages\n /*$active_str = active_languages_str_for_diverses($as_array = false);\n $active_str = $active_str .',id,updated_at,div_what';\n set_dv('diverses'.'_disp_cols_arr', $active_str, 'div_res_long');*/\n //filter\n $diverses = DB::table($this_table)->where('is_active_switch', '=', '1');\n }\n\n $page_appends = [\n 'order' => $order,\n 'dir' => $dir,\n 'filter' => $filter,\n ];\n $diverses = $diverses->paginate($perPageLimit);\n $data[$this_table] = $diverses;\n $data['dir'] = $dir ;\n $data['curr_dir'] = $dir ;\n $data['order'] = $order;\n $data['page_appends'] = $page_appends;\n return view('backend.diverses.index')->with('data', $data);\n }\n\n\n if(!is_null($mysearch)) {\n // get column names from table for columns with text (char, varchar, text etc.)\n $table_fields_array = get_columns_from_table_text_only($this_table, $as_array=true);\n $number_cols = count($table_fields_array);\n //dd($number_cols);\n //dd($table_fields_array);\n $diverses = DB::table($this_table)\n ->where($table_fields_array[0], 'like', '%'.$mysearch.'%')\n /* remove rows that are not needed - or add more rows if $numer_cols > 13 -- we have ca. 68 fields!! */\n ->orWhere(isset($table_fields_array[1]) ? $table_fields_array[1] : $table_fields_array[1], 'like', '%'.$mysearch.'%')\n ->orWhere(isset($table_fields_array[2]) ? $table_fields_array[2] : $table_fields_array[1], 'like', '%'.$mysearch.'%')\n ->orWhere(isset($table_fields_array[3]) ? $table_fields_array[3] : $table_fields_array[1] , 'like', '%'.$mysearch.'%')\n ->orWhere(isset($table_fields_array[4]) ? $table_fields_array[4] : $table_fields_array[1] , 'like', '%'.$mysearch.'%')\n ->orWhere(isset($table_fields_array[5]) ? $table_fields_array[5] : $table_fields_array[1] , 'like', '%'.$mysearch.'%')\n ->orWhere(isset($table_fields_array[6]) ? $table_fields_array[6] : $table_fields_array[1] , 'like', '%'.$mysearch.'%')\n ->orWhere(isset($table_fields_array[7]) ? $table_fields_array[7] : $table_fields_array[1] , 'like', '%'.$mysearch.'%')\n ->orWhere(isset($table_fields_array[8]) ? $table_fields_array[8] : $table_fields_array[1] , 'like', '%'.$mysearch.'%')\n ->orWhere(isset($table_fields_array[9]) ? $table_fields_array[9] : $table_fields_array[1] , 'like', '%'.$mysearch.'%')\n ->orWhere(isset($table_fields_array[10]) ? $table_fields_array[10] : $table_fields_array[1] , 'like', '%'.$mysearch.'%')\n ->orWhere(isset($table_fields_array[11]) ? $table_fields_array[11] : $table_fields_array[1] , 'like', '%'.$mysearch.'%')\n ->orWhere(isset($table_fields_array[12]) ? $table_fields_array[12] : $table_fields_array[1] , 'like', '%'.$mysearch.'%')\n ->orderBy($order, $dir);\n\n // Tell the Paginator to append the following to the page URL as well\n $page_appends = [\n 'order' => $order,\n 'dir' => $dir,\n 'mysearch' => urlencode($mysearch),\n ];\n $diverses = $diverses->paginate($perPageLimit);\n\n $data[$this_table] = $diverses;\n $data['dir'] = $dir ;\n $data['curr_dir'] = $dir ;\n $data['order'] = $order;\n $data['page_appends'] = $page_appends;\n return view('backend.diverses.index')->with('data', $data);\n } // if(!is_null($mysearch))\n\n $this->diversesRepository->pushCriteria(new RequestCriteria($request));\n $page_appends = [\n 'order' => $order,\n 'dir' => $dir,\n ];\n $diverses = $this->diversesRepository->orderBy($order, $dir)->paginate($perPageLimit);\n $data[$this_table] = $diverses;\n $data['dir'] = $dir == 'asc' ? 'desc' : 'asc';\n $data['curr_dir'] = $dir ;\n $data['order'] = $order;\n $data['page_appends'] = $page_appends;\n return view('backend.diverses.index')->with('data', $data);\n }", "title": "" }, { "docid": "b3cc023e0e96617048a5f0e6869aec78", "score": "0.57951164", "text": "function iniciarFiltro(&$filtro) {\n\n if (isset($_GET['order']))\n $filtro->order($_GET['order']);\n $filtro->nombres[] = 'Estado';\n $filtro->valores[] = array ('select','estado_impresion' ,$filtro->filtro('estado_impresion'),\n array('' ,'PE' ,'IP' ),\n array('Todos' ,'Pendiente' ,'Impreso' ));\n $filtro->nombres[] = 'Estado';\n $filtro->nombres[] = 'Tipo';\n $filtro->valores[] = array ('select','tipo_proyecto' ,$filtro->filtro('tipo_proyecto'),\n array('' ,'PE' ,'PR' ),\n array('Todos' ,'Tipo PErfil' ,'Tipo Proyecto' ));\n $filtro->valores[] = array ('select','estado_proyecto' ,$filtro->filtro('estado_proyecto'),\n array('' ,'VB' ,'TA' ,'TV' ,'LD' ,'PF' ),\n array('Todos' ,'Visto Bueno' ,'Tribunal Asignado' ,'Visto Bueno Tribunal','Defensa Asignada' ,'Proyecto Finalizado' ));\n $filtro->nombres[] = 'T&iacute;tulo';\n $filtro->valores[] = array('input', 'titulo', $filtro->filtro('titulo'));\n $filtro->nombres[] = 'Descripci&oacute;n';\n $filtro->valores[] = array('input', 'descripcion', $filtro->filtro('descripcion'));\n }", "title": "" }, { "docid": "56b147c8a90ff76229e4c51137f5146c", "score": "0.57840604", "text": "public function filtrosOrdenes()\n {\n $data['main_view'] = \"reportes/ordenes_view\";\n\n $this->load->view('layouts/main', $data);\n }", "title": "" }, { "docid": "9cd837a3d711982c836dc8c6efaa9d49", "score": "0.5777684", "text": "public function html()\n {\n $html = $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->parameters([\n 'dom' => 'Blfrtip',\n \"lengthMenu\" => [[10, 25, 50, -1], [10, 25, 50, trans('orbscope.all_records')]],\n 'buttons' => [\n ['extend' => 'print', 'className' => 'btn default', 'text' => '<i class=\"fa fa-print\"></i> '.trans('orbscope.print')],\n ['extend' => 'excel', 'className' => 'btn default', 'text' => '<i class=\"fa fa-file-excel-o\"> </i> '.trans('orbscope.export_excel')],\n ['extend' => 'csv', 'className' => 'btn default', 'text' => '<i class=\"fa fa-file-excel-o\"> </i> '.trans('orbscope.export_csv')],\n ['extend' => 'reload', 'className' => 'btn default', 'text' => '<i class=\"fa fa fa-refresh\"></i> '.trans('orbscope.reload')],\n ],\n 'initComplete' => \"function () {\n this.api().columns([0,1,2,3,4]).every(function () {\n var column = this;\n var input = document.createElement(\\\"input\\\");\n $(input).attr( 'style', 'width: 100%');\n $(input).attr( 'class', 'form-control');\n $(input).appendTo($(column.footer()).empty())\n .on('keyup', function () {\n column.search($(this).val()).draw();\n });\n });\n }\",\n 'order' => [[0, 'asc']]\n\n ]);\n if(GetLanguage() == 'ar'){\n $html = $html->parameters([\n 'language' => [\n 'url' => url('/vendor/datatables/arabic.json')\n ]\n ]);\n }\n return $html;\n\n }", "title": "" }, { "docid": "13d7f2147b514370b6f16aa05561f1e1", "score": "0.57759744", "text": "protected function getFilter()\n {\n \t$filtros = \" 1 = 1 \";\n if (Session::getInstance()->get($this->namefilter)!=\"\") {\n $filters =(object)Session::getInstance()->get($this->namefilter);\n if ($filters->contenidos_fecha != '') {\n $filtros = $filtros.\" AND contenidos_fecha LIKE '%\".$filters->contenidos_fecha.\"%'\";\n }\n if ($filters->contenidos_seccion != '') {\n $filtros = $filtros.\" AND contenidos_seccion ='\".$filters->contenidos_seccion.\"'\";\n }\n if ($filters->contenidos_estado != '') {\n $filtros = $filtros.\" AND contenidos_estado ='\".$filters->contenidos_estado.\"'\";\n }\n if ($filters->contenidos_titulo != '') {\n $filtros = $filtros.\" AND contenidos_titulo LIKE '%\".$filters->contenidos_titulo.\"%'\";\n }\n\t\t}\n return $filtros;\n }", "title": "" }, { "docid": "bde37c689a4ba7d6ac6bd05eee90bac3", "score": "0.5775015", "text": "function filtre($taille,$user,$wilaya,$specialite){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$specialites=Specialite::trouve_specialite($specialite);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n//******************************\t\t\t\t\t\t\t\t\t\t\t\n\t\n\t\n\t//*********************************\t\t\t\t\t\t\t\t\t\t\t\n\t$w='';\t\t\t\t\t\t\t\t\t\nif($wilaya[0]!=\"tous\"){\n\t$wilay=Wilayas::trouve_par_id($wilaya[0]);\n\t\t\n\t\t$w.=''.htmlspecialchars(trim($wilay->nom)).'\"';\n} \nif($wilaya[0]==\"tous\"){\n\t\t$w.=\"tous\";\n\t\t\n}\n\nif(sizeof($wilaya)>1){\n\t\tfor($i=1;$i<sizeof($wilaya);$i++){\n\t\t\t$wilay=Wilayas::trouve_par_id($wilaya[$i]);\n\t\t\t$w.=' et '.htmlspecialchars(trim($wilay->nom)).'\"';\n\t\t}\n\t}\n\n\t\n\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\n <div class=\"panel-body\">\n\t\t\t\t\t\t\t\t<center><label class=\"alert alert-success\" id=\"liste\" style=\"font-size:12px;background:#14de29\"><span class='pull-left'>Etat pour </span><?php echo \" wilaya :<span style='color:blue'>\".$w.\"</span>\"; ?>\n\t\t\t\t\t\t\t<?php if($user->type!=\"DGSS-RH\"){?>\t\n\t\t\t\t\t\t<a href='export_densite.php?var=<?php foreach($specialite as $ss){ echo $ss.\",\";} echo \"|\" ; foreach($wilaya as $ww) { echo $ww.\",\";} ?>' class='btn btn-danger pull-right' ><img width=\"20\" src=\"img/icons/xls.png\"> Export excel</a>\n\t\t\t\t\t\t\t<?php }?>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t</center>\n\t\t\t\t\t\t<div class=\"scrollable\" id=\"scrol\" > \n\t\t\t\t\t\t\t\t <table id=\"table00\" class=\"table table-striped\" style=\"background:#0f9a1a2e;color:#000;\">\n\t\n <thead>\n <tr>\n \n\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t <th>Wilaya</th>\n\t\t\t\t\t\t\t\t\t\t\t\t\t <th>Population</th>\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\tforeach($specialites as $specialite){\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t<th><?php echo $specialite->nom_specialite; ?></th>\t\n\t\t\t\t\t\t\t\t<?php }?>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t \n </tr>\n </thead>\n\t\t\t\t\t\t\t\t\t\t <tbody>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif($w==\"tous\"){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfor($i=1;$i<49; $i++){ \n\t\t\t\t\t\t\t\t\t\t$wila=Wilayas::trouve_par_id($i);\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t <tr>\t\n\t\t\t\t\t\t\t\t\t\t\t<td><?php echo $wila->nom;?></td>\n\t\t\t\t\t\t\t\t\t\t\t<td style=\"text-align:right\"><?php echo number_format($wila->pop_wil,0,'',' ');?></td>\n\t\t\t\t\t\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\t\t\t\t\t\tforeach($specialites as $specialite){\n\t\t\t\t\t\t\t\t\t\t\t\t\tglobal $bd;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$employer = Employe::trouve_par_specialite($specialite->id_specialite,$wila->id_w);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$sql1=$bd->requete(\"select count(*) as sum from employer WHERE specialite=\".$specialite->id_specialite.\" and wilaya=\".$wila->id_w .\" and archive=0\");\n\t\t\t\t\t\t\t\t\t\twhile($row=mysqli_fetch_array($sql1)){\n\t\t\t\t\t\t\t\t\t\t\t\techo \"<td style='text-align:right'>\".$row['sum'].\"</td>\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t<?php }\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tforeach($wilaya as $ww){ \n\t\t\t\t\t\t\t\t\t\t$wila=Wilayas::trouve_par_id($ww);\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t <tr>\t\n\t\t\t\t\t\t\t\t\t\t\t<td><?php echo $wila->nom;?></td>\n\t\t\t\t\t\t\t\t\t\t\t<td style=\"text-align:right\"><?php echo number_format($wila->pop_wil,0,'',' ');?></td>\n\t\t\t\t\t\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\t\t\t\t\t\tforeach($specialites as $specialite){\n\t\t\t\t\t\t\t\t\t\t\t\t\tglobal $bd;\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($employer = Employe::trouve_par_specialite($specialite->id_specialite,$ww));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$sql1=$bd->requete(\"select count(*) as sum from employer WHERE specialite=\".$specialite->id_specialite.\" and wilaya=\".$ww .\" and archive=0\");\n\t\t\t\t\t\t\t\t\t\twhile($row=mysqli_fetch_array($sql1)){\n\t\t\t\t\t\t\t\t\t\t\t\techo \"<td style='text-align:right'>\".$row['sum'].\"</td>\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t//$result = $employer->count_specialite($specialite->id_specialite,$ww);\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\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t<?php }\n\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n \n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \n </tbody>\n\t\t\t\t\t\t\t\t\t\t\n </table>\n\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t<!--<h4 class=\"alert alert-success\">Nombre total :<span ><?php// echo $total; ?></span></h4>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n<?php }", "title": "" }, { "docid": "40bcf18a518863bcc86d61f562342522", "score": "0.5762168", "text": "public function filter()\n\t{\n\t\t$filterOptions = Input::get('filter_options');\n\t\tif($filterOptions)\n\t\t{\n\t\t\t$filterResults = array();\n\t\t\tforeach ($filterOptions as $option) \n\t\t\t{\n\t\t\t\t$definitions = DB::table('place_definitions')->where('value_id','=',$option)->get();\n\t\t\t\tforeach ($definitions as $definition)\n\t\t\t\t{\n\t\t\t\t\t$filterResults[] = DB::table('places')->where('id','=',$definition->place_id)->get();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$definitions \t=\tDefinition::all();\n\t\t\t$values \t\t=\tDefinitionValue::all();\n\t\t\t$placeDefinition= \tDB::table('place_definitions')->get();\n\t\t \t$placePicAll \t= DB::table('place_pictures')->get();\n\t\t\t$title \t\t\t= 'جستجو';\n\t\t\treturn View::make('filter')\n\t\t\t\t\t\t->with('title',$title)\n\t\t\t\t\t\t->with('values',$values)\n\t\t\t\t\t\t->with('placeDefinition',$placeDefinition)\n\t\t\t\t\t\t->with('definitions',$definitions)\n\t\t\t\t\t\t->with('placePicAll',$placePicAll)\n\t\t\t\t\t\t->with('filterResults',$filterResults)\n\t\t\t\t\t\t->with(Input::old());\n\t\t} \n\t\telse \n\t\t{\n\t\t\treturn Redirect::back();\n\t\t}\n\t}", "title": "" }, { "docid": "b9dc1d65c376938b0943b1da7a2f5cbc", "score": "0.5748793", "text": "public function studentfilterAction()\r\n {\r\n $this->_helper->viewRenderer(\"filter/studentfilter\");\r\n $this->view->gridType = \"STUDENT_FILTER\";\r\n }", "title": "" }, { "docid": "96ec4a726295a41f615ef2c312601bd0", "score": "0.57437843", "text": "public function listNoCol(Request $request) //falta diferenciar col de nocol\n {\n $entityManager = $this->getDoctrine()->getManager('seo');\n \n $sql = \"\n SELECT\n t.`ID_ESP`,\n t.`DEN_ESP_CAS`,\n t.`DEN_ESP_LAT`,\n t.`DEN_ESP_ING`,\n t.`DEN_ESP_CAT`,\n t.`DEN_ESP_GAL`,\n t.`DEN_ESP_VAS`\n FROM\n tablas_seo.t_especies t\n \";\n \n $stmt = $entityManager->getConnection()->prepare($sql);\n $stmt->execute();\n $array= new ArrayCollection();\n $array=$stmt->fetchAll();\n \n //ahora añadimos a cada grupo del array el campo de la imagen\n foreach ($array as &$group) {\n $group[\"image\"] = url('nocol', $group['ID_ESP']);\n }\n \n return new Response(\n json_encode( $this->utf8ize( $array ) ), 200, ['content-type' => 'text/html; charset=UTF-8']\n );\n }", "title": "" }, { "docid": "c454324e9eb4bb173db78a04f8420a26", "score": "0.57424265", "text": "public function getFilterQueries () {}", "title": "" }, { "docid": "e54b4cd0a0213a0819f3e68848f60a0d", "score": "0.57369596", "text": "public function index()\n {\n\n $ciclo = Ciclo::where('estado','VIGENTE')->first();\n $ciclo = $ciclo ? $ciclo->id : 0;\n\n $data = DB::select(\"select *, xx.horas_academicas_asignadas + xx.horas_complementarias total from (\n select\n c.id,\n c.anio,\n c.ciclo,\n cd.id ciclo_docente,\n d.abreviatura,\n d.nombres,\n d.apellidos,\n d.identificacion,\n sum(hc.num_horas) horas_academicas_asignadas,\n (select ifnull(sum(num_horas), 0) from horarios_docentes where ciclo_docente = cd.id) horas_complementarias\n from docentes d,\n ciclo_docentes cd,\n ciclos c,\n horarios_cursos hc,\n ciclo_materias_docente cmd,\n jornadas_semestres js\n where c.id = $ciclo\n and cd.ciclo = c.id\n and d.id = cd.docente\n and cmd.ciclo_docente = cd.id\n and hc.ciclo_materia_docente = cmd.id\n and hc.ciclo_jornada_semestre = js.id\n and js.ciclo = c.id\n group by\n c.id,\n c.anio,\n c.ciclo,\n cd.id,\n d.abreviatura,\n d.nombres,\n d.apellidos,\n d.identificacion ) xx\");\n\n return response()->json($this->paginateArray($data));\n }", "title": "" }, { "docid": "fe409c7535cf970597ee2a9f5c2f031e", "score": "0.5734133", "text": "public function index()\n {\n if (Input::has('sort')) {\n list($sortCol, $sortDir) = explode('|', Input::get('sort'));\n $query = Empresa::orderBy($sortCol, $sortDir);\n } else {\n $query = Empresa::orderBy('id', 'asc');\n }\n\n if (Input::has('filter')) {\n $filter=Input::get('filter');\n $query->where(function($q) use($filter) {\n $value = \"%{$filter}%\";\n $q->where('razon_social', 'like', $value)\n ->orWhere('nombre_comercial', 'like', $value)\n ->orWhere('direccion_fiscal', 'like', $value)\n ->orWhere('ruc', 'like', $value);\n });\n }\n if (Input::has('usuario_actual')) {\n $query->misEmpresas();//('persona_id','=',Auth::id());\n }\n\n $perPage = Input::has('per_page') ? (int) Input::get('per_page') : null;\n\n return Response::json($query->paginate($perPage));\n }", "title": "" }, { "docid": "2729ad36e63d4c8804746423f2e8fe91", "score": "0.57328093", "text": "function dashboard_print_filters($filtervalues, $sql){\n\n \t$str = '';\n \t$alllabels = array_keys($this->filterfields->labels);\n \t$javascripthandler = '';\n \tif (count($alllabels) <= 1){\n \t\t$javascripthandler = 'document.forms[\\'dashboardform'.$this->instance->id.'\\'].submit();';\n \t}\n \tforeach($alllabels as $afield){\n \t\tif (empty($afield)) continue; // protects against empty filterset\n\n\t\t\t$fieldname = (isset($this->filterfields->translations[$afield])) ? $this->filterfields->translations[$afield] : $afield ;\n\n\t\t\t$filterresults = $this->filter_get_results($sql, $afield, $fieldname); \t\t\n\n\t\t\tif ($filterresults){\n\t\t\t\t$filterset = array();\n\t\t\t\tif (!$this->is_filter_single($afield)) $filterset['0'] = '*';\n\t\t\t\tforeach(array_values($filterresults) as $value){\n\t\t\t\t\t$radical = preg_replace('/^.*\\./', '', $fieldname); // removes table scope explicitators\n\t\t\t\t\t$filterset[$value->$radical] = $value->$radical;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t$str .= '<span class=\"dashboard-filter\">'.$this->filterfields->labels[$afield].':</span>';\n\t\t\t\t$multiple = (strstr($this->filterfields->options[$afield], 'm') === false) ? false : true ; \n\t\t\t\t$arrayform = ($multiple) ? '[]' : '' ;\n\n\t\t\t\tif (!is_array(@$filtervalues[$radical])){\n\t\t\t\t\t$unslashedvalue = stripslashes(@$filtervalues[$radical]);\n\t\t\t\t} else {\n\t\t\t\t\t$unslashedvalue = $filtervalues[$radical];\n\t\t\t\t}\n\n\t\t\t\t$parms = array();\n\t\t\t\tif ($multiple){\n\t\t\t\t\t$parms['multiple'] = 'multiple';\n\t\t\t\t\t$parms['size'] = $multiple * 5;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t$parms['onchange'] = $javascripthandler;\n\n\t\t\t\tif ($this->is_filter_global($afield)){\n\t\t\t\t\t$str .= html_writer::select($filterset, \"filter0_{$radical}{$arrayform}\", $unslashedvalue, '', $parms);\n\t\t\t\t} else {\n\t\t\t\t\t$str .= html_writer::select($filterset, \"filter{$this->instance->id}_{$radical}{$arrayform}\", $unslashedvalue, '', $parms);\n\t\t\t\t}\n\t\t\t\t$str .= \"&nbsp;&nbsp;\";\n\t\t\t}\n \t}\n \tif (count($alllabels) > 1){\n \t\t$strdofilter = get_string('dofilter', 'block_dashboard');\n \t\t$javascripthandler = 'document.forms[\\'dashboardform'.$this->instance->id.'\\'].submit();';\n \t\t$str .= \"&nbsp;&nbsp;<input type=\\\"button\\\" onclick=\\\"$javascripthandler\\\" value=\\\"$strdofilter\\\" />\";\n \t}\n \treturn $str;\n }", "title": "" }, { "docid": "d991f93175deb41124934948f9012517", "score": "0.57247204", "text": "protected function get_filtering()\n {\n if($this->check_mDataprop())\n $mColArray = $this->get_mDataprop();\n else if($this->_request('sColumns'))\n $mColArray = explode(',', $this->_request('sColumns'));\n else\n $mColArray = $this->_dataSource->columnNames;\n\n $sWhere = '';\n $sSearch = mysql_real_escape_string($this->_request('sSearch'));\n $mColArray = array_values(array_diff($mColArray, $this->_dataSource->unsetColumns));\n $columns = array_values(array_diff($this->_dataSource->columnNames, $this->_dataSource->unsetColumns));\n\n if($sSearch != '')\n for($i = 0; $i < count($mColArray); $i++)\n if($this->_request('bSearchable_' . $i) == 'true' && in_array($mColArray[$i], $columns))\n $sWhere .= $mColArray[$i] . \" LIKE '%\" . $sSearch . \"%' OR \";\n\n $sWhere = substr_replace($sWhere, '', -3);\n\n if($sWhere != '')\n $this->_dataSource->where('(' . $sWhere . ')');\n\n for($i = 0; $i < intval($this->_request('iColumns')); $i++)\n {\n if($this->_request('sSearch_' . $i) && $this->_request('sSearch_' . $i) != '' && in_array($mColArray[$i], $columns))\n {\n $miSearch = explode(',', $this->_request('sSearch_' . $i));\n\n foreach($miSearch as $val)\n {\n if(preg_match(\"/(<=|>=|=|<|>)(\\s*)(.+)/i\", trim($val), $matches))\n $this->_dataSource->where($mColArray[$i].' '.$matches[1], $matches[3]);\n else\n $this->_dataSource->where($mColArray[$i].' LIKE', '%'.$val.'%');\n }\n }\n }\n\n foreach($this->filter as $val)\n $this->_dataSource->where($val[0], $val[1], $val[2]);\n }", "title": "" }, { "docid": "f279fd5fe16d99c7081a20041c58edd4", "score": "0.57191545", "text": "function iniciarFiltro(&$filtro) \n {\n \n if (isset($_GET['order']))\n $filtro->order($_GET['order']);\n\n $filtro->nombres[] = 'Tipo';\n $filtro->valores[] = array ('select','tipo_proyecto' ,$filtro->filtro('tipo_proyecto'),\n array('' ,'PE' , 'PR' ),\n array('Todos' ,'Tipo Perfil', 'Proyecto Final' ));\n\n $filtro->nombres[] = 'Estado';\n $filtro->valores[] = array ('select','estado_proyecto' ,$filtro->filtro('estado_proyecto'),\n array('' ,'Tipo Perfil' ,'Tipo Proyecto Final' ),\n array('Todos' \n //TIPO PERFIL\n ,array(\n 'IN' => 'Iniciado',\n 'VB' => 'Visto Bueno',\n 'PD' => 'Registro Pendiente',\n 'CO' => 'Registro Confirmado',\n )\n //TIPO PERFIL\n ,array(\n 'IN' => 'Proyecto Iniciado',\n 'VB' => 'Visto Bueno',\n 'TA' => 'Tribunal Asignado',\n 'TV' => 'Vo.Bo. Tribunal',\n 'LD' => 'Defesa Asignada',\n 'PF' => 'Finalizado',\n ) \n )\n );\n $filtro->nombres[] = 'N&uacute;mero';\n $filtro->valores[] = array ('input' ,'numero_asignado',$filtro->filtro('numero_asignado'));\n\n\n $filtro->nombres[] = 'Activo';\n $filtro->valores[] = array ('select','es_actual' ,$filtro->filtro('es_actual'),\n array('' ,'1' , '0' ),\n array('Todos' ,'Activo' , 'Inactivo' ));\n\n /*\n $filtro->nombres[] = 'Registro';\n $filtro->valores[] = array ('input' ,'fecha_registro_inicio',$filtro->filtro('fecha_registro_inicio'));\n $filtro->nombres[] = 'Fin';\n $filtro->valores[] = array ('input' ,'fecha_registro_fin',$filtro->filtro('fecha_registro_fin'));\n */\n \n $filtro->nombres[] = 'T&iacute;tulo';\n $filtro->valores[] = array ('input' ,'nombre',$filtro->filtro('nombre'));\n }", "title": "" }, { "docid": "e03d0e4e0750e28921e4b31ed4b56b01", "score": "0.571897", "text": "function getFilter() {\n if (isset($_GET['filters'])) {\n $filter = array();\n\n $json = json_decode($_GET['filters'], true);\n\n if (!empty($json['rules'])) {\n $rules = $json['rules'];\n\n foreach ($rules as $gridfilter) {\n $filter[] = \" \" . $gridfilter['field'] . \" LIKE '%\" . $gridfilter['data'] . \"%' \";\n }\n }\n return $filter;\n }\n}", "title": "" }, { "docid": "6f88130b32a9544e679ad79dac658bc8", "score": "0.57153434", "text": "public function index()\n{\n if(request()->ajax()) {\n return datatables()->of(Product::select('*'))\n ->addColumn('action', 'DataTables.action')\n ->rawColumns(['action'])\n ->addIndexColumn()\n ->make(true);\n }\n return view('test.list');\n}", "title": "" }, { "docid": "276e2c683315e33c6fca1a61a7369a25", "score": "0.5709845", "text": "public function columnasLista(){\n $gridlista=array(\n array('name'=>'codigo','type'=>'raw','value'=>'CHtml::link($data->codigo,array(\"update\",\"id\"=>$data->id))'),\n\t\t\t'porcentaje',\n\t\t\t'vigentedesde',\n\t\t\t'vigentehasta',\n array('name'=>'cuentacontable','type'=>'raw','value'=>'$data->cuentaContable()'),\n array('name'=>'idempresa','type'=>'raw','value'=>'$data->getNombreEmpresa()'),\n );\n\n return $gridlista;\n }", "title": "" }, { "docid": "11274c32d8f0b43619c501ce3c12c69a", "score": "0.5709666", "text": "public function _add_report_filter_js()\n\t{\n\t\t\t$view = new View('ivr_api/report_filter_js');\n\t\t\t$view->render(true);\n\t}", "title": "" }, { "docid": "9feabc99a91bffa38c20703979904ef3", "score": "0.57087964", "text": "public function comprobantes() {\n\n\t\t$listFlotilla = Flotilla::orderBy('id', 'asc')->get();\n\n\t\treturn View::make('reportes.filtroComprobantes', array('listFlotilla' => $listFlotilla));\n\n\t}", "title": "" }, { "docid": "a1b0fa9173b266b5653f0d0d7fb840db", "score": "0.5706098", "text": "public function filterAction()\n {\n $filters = $this->getPostData();\n $mongoPersister = $this->get('acme_training.mongo_persister');\n $filters = $filters ? json_decode($filters, true) : array();\n\n try {\n $products = $mongoPersister->filter($filters);\n } catch (\\Exception $e) {\n $status = ($e instanceof FiltersException) ? 400 : 404;\n $response = new Response(json_encode($e->getMessage()), $status);\n $response->headers->set('Content-Type', 'application/json');\n\n return $response;\n }\n\n $productsArray = array();\n foreach ($products as $product) {\n $productsArray[] = $product->toArray();\n }\n\n $response = new Response(json_encode($productsArray));\n $response->headers->set('Content-Type', 'application/json');\n\n return $response;\n }", "title": "" }, { "docid": "4a6e0ece962ebd3a17e2d689c1869a04", "score": "0.5706096", "text": "private function constructScript () {\n if ( $this->request->grouping_columns || $this->request->aggrigate_columns || $this->request->export ) {\n $groupColumns = $this->request->grouping_columns ? $this->request->grouping_columns : null;\n $groupBy = $this->request->grouping_columns ? ' GROUP BY ' . $this->request->grouping_columns : null;\n\n $aggregationString = !$this->request->aggrigate_columns || !$this->request->grouping_columns ? $groupColumns . $this->request->aggrigate_columns : $this->request->aggrigate_columns . ',' . $groupColumns;\n\n $this->request->script = \"SELECT \" . $aggregationString . \" FROM(\" . $this->request->script . \") a WHERE \" . $this->request->filter_query . $groupBy;\n\n return;\n }\n\n $this->request->script = \"SELECT * FROM(\" . $this->request->script . \") a WHERE \" . $this->request->filter_query . ' ORDER BY ' . $this->request->order . ' LIMIT ' . $this->request->limit . ' OFFSET ' . ( $this->request->page - 1 ) * $this->request->limit;\n }", "title": "" }, { "docid": "1b3b46a729e00539d577082c80039d48", "score": "0.56984687", "text": "public function index()\n {\n \n $roles = $this->rol->filter(request()->all())->get();\n $rutas = $this->ruta->filter(request()->all())->get();\n $estados = $this->estado->filter(request()->all())->get();//pluck(\"EstNombre\",\"EstId\");\n $objetos = $this->objeto->filter(request()->all())->get();//pluck(\"EstNombre\",\"EstId\");\n \n $permisos = $this->permiso->tables(request()->all())->Columnas()->filter(request()->all())->paginate($this->permiso->perPage);\n //dd($permisos);\n\n $respuesta = [\n 'status' => 'ok',\n 'message' => $this->mensaje_exitoso,\n 'inputs'=>request()->all(),\n 'data' => compact('roles','rutas','objetos','permisos','estados')\n ];\n \n return response($respuesta,200);\n }", "title": "" }, { "docid": "047ebc3ab113264f051d518ebb19d03e", "score": "0.56930345", "text": "public function generar_tabla_de_cies($filtro)\n {\n $this->filtro = $filtro;\n if($filtro=='*')\n {\n $this->data = Conexion::conect()->select('cie','*',['ORDER'=>'codigo_de_grupo_de_cie_fk']);\n }\n else\n {\n $this->data = Conexion::conect()->select('cie','*',['codigo_de_grupo_de_cie_fk'=>$this->filtro]);\n }\n $this->tabla_de_cies.=\"<table class='mb-0 table table-borderless table-bordered-x brc-secondary-l3 text-dark-m2 radius-1 overflow-hidden'>\";\n $this->tabla_de_cies.=\"<thead class=\\\"text-dark-tp3 bgc-grey-l4 text-90 border-b-1 brc-transparent\\\">\n <tr>\n <th class=\\\"d-none d-sm-table-cell\\\">\n GRUPO CIE\n </th>\n <th class=\\\"d-none d-sm-table-cell\\\">\n CODIGO\n </th>\n <th class=\\\"d-none d-sm-table-cell\\\">\n DESCRIPCION\n </th>\n <th></th>\n </tr>\n </thead><tbody class='mt-1'>\";\n foreach ($this->data as $this->cie)\n {\n $this->tabla_de_cies.=\"<tr class=\\\"bgc-h-yellow-l4 d-style\\\">\n <td class=\\\"text-600 text-orange-d2\\\">\n \".$this->cie['codigo_de_grupo_de_cie_fk'].\"\n </td>\n <td class=\\\"d-none d-sm-table-cell text-purple-d2\\\">\n \".$this->cie['codigo_de_cie'].\"\n </td>\n <td class=\\\"d-none d-sm-table-cell text-grey text-95\\\">\n \".utf8_decode($this->cie['nombre_de_cie']).\"\n </td>\n <td>\n <!-- action buttons -->\n <div class=\\\"d-none d-lg-flex\\\">\n <a data-fancybox data-type=\\\"ajax\\\" href=\\\"#\\\" class=\\\"mx-2px btn radius-1 border-2 btn-xs btn-brc-tp btn-light-secondary btn-h-lighter-success btn-a-lighter-success\\\" data-src=\\\"controllers/mostrar_formulario_de_edicion_de_cie.ctrl.php?codigo_de_cie=\".$this->cie['codigo_de_cie'].\"\\\" href=\\\"javascript:;\\\">\n <i class=\\\"fa fa-pencil-alt\\\"></i>\n </a>\n <a href=\\\"#\\\" class=\\\"mx-2px btn radius-1 border-2 btn-xs btn-brc-tp btn-light-secondary btn-h-lighter-danger btn-a-lighter-danger\\\" onclick='eliminar_cie(\\\"\".$this->cie['codigo_de_cie'].\"\\\")'>\n <i class=\\\"fa text-danger-l1 fa-trash-alt\\\"></i>\n </a>\n </div>\n </td>\n </tr>\";\n }\n $this->tabla_de_cies.=\"</tbody></table>\";\n echo $this->tabla_de_cies;\n\n }", "title": "" }, { "docid": "b4f8879310146590c03ff9bf9c249d9a", "score": "0.5690146", "text": "public function tableList()\n {\n $m = self::MODEL;\n\n $list = $m::with('usuario')->orderBy('sugestoes.created_at', 'DESC');\n\n foreach (json_decode(Input::get('filter')) as $filter) {\n if ($filter->column == 'sugestoes.usuario_id') {\n $list = $list->where('anonimo', '=', false);\n break;\n }\n }\n\n $list = $this->handleRequest($list);\n\n return $this->listResponse($list);\n }", "title": "" }, { "docid": "ec0e096feb660cf3fe5a9553eeae0d71", "score": "0.56817394", "text": "public function anyData()\n {\n $historiales = DB::select('select\t\thistorial.Historial_ID,\n equipo.Descripcion as Equipo ,\n \n(DATE_FORMAT(historial.FechaInicio,\"%d-%m-%Y\")) as FechaInicio,\n (DATE_FORMAT(historial.FechaFin,\"%d-%m-%Y\")) as FechaFin ,\n operador.Nombre AS Operador,\n repuesto.Descripcion AS Repuesto,\n tipoman.Descripcion as Tipoman,\n historial.Descripcion,\n datediff(FechaFin,FechaInicio) as Total,\n historial.path as imghis\nfrom historial,equipo,operador,repuesto,tipoman\nwhere (equipo.Equipo_ID=historial.Equipo_ID)and\n (operador.Operador_ID=historial.Operador_ID)and\n (repuesto.Repuesto_ID=historial.Repuesto_ID)and\n (tipoman.TipoMan_ID=historial.TipoMan_ID)')->get();\n return Datatables::of($historiales)->addColumn('action', function ($historiales) {\n return '<a href=\"/historial/'.$historiales->Historial_ID.'/edit\" class=\"btn btn-xs btn-primary\"><i class=\"glyphicon glyphicon-edit\"></i> Editar</a>\n <a href=\"/historial/'.$historiales->Historial_ID.'\" class=\"btn btn-xs btn-primary\"><i \"></i> Ver PDF</a>';\n })->addColumn('documentacion', function ($historiales) {\n return '<a href=\"/imag/'.$historiales->path.'/edit\" class=\"btn btn-xs btn-primary\"><i \"></i> Ver Doc</a>';\n })->make(true);\n /* return Datatables::of(Equipo::query())->make(true);*/\n }", "title": "" }, { "docid": "852cb8f0b24c7c364b42067a401e5f14", "score": "0.5681404", "text": "protected function filters()\n {\n if ($this->getRequest()->isPost()== true) {\n \tSession::getInstance()->set($this->namepageactual,1);\n $parramsfilter = array();\n\t\t\t\t\t$parramsfilter['contenidos_fecha'] = $this->_getSanitizedParam(\"contenidos_fecha\");\n\t\t\t\t\t$parramsfilter['contenidos_seccion'] = $this->_getSanitizedParam(\"contenidos_seccion\");\n\t\t\t\t\t$parramsfilter['contenidos_estado'] = $this->_getSanitizedParam(\"contenidos_estado\");\n\t\t\t\t\t$parramsfilter['contenidos_titulo'] = $this->_getSanitizedParam(\"contenidos_titulo\");Session::getInstance()->set($this->namefilter, $parramsfilter);\n }\n if ($this->_getSanitizedParam(\"cleanfilter\") == 1) {\n Session::getInstance()->set($this->namefilter, '');\n Session::getInstance()->set($this->namepageactual,1);\n }\n }", "title": "" }, { "docid": "0345714eaa72676c7be6fea18893681a", "score": "0.5678697", "text": "public function index()\n {\n $page = request()->get(\"page\", false);\n $limit = request()->get(\"limit\", false);\n $orderBy = request()->get(\"orderBy\", 'id');\n $ascending = request()->get(\"ascending\", 1);\n $filters = json_decode(request()->get(\"filters\", \"{}\"), true);\n $columns = json_decode(request()->get(\"columns\", \"[]\"), true);\n\n array_push($columns, 'id');\n $appends = ['formatted_created_at', 'formatted_updated_at'];\n\n $maritalStatuss = MaritalStatus::where(\"id\", \">\", 0);\n\n switch ($orderBy) {\n case 'formatted_created_at':\n case 'formatted_updated_at':\n $maritalStatuss->orderBy($orderBy == 'formatted_created_at' ? 'created_at' : 'update_at', $ascending ? \"ASC\" : \"DESC\");\n break;\n default:\n $maritalStatuss->orderBy($orderBy, $ascending ? \"ASC\" : \"DESC\");\n break;\n }\n\n foreach ($filters as $filter => $value) {\n if ($value && $filter != \"reload\")\n switch ($filter) {\n case 'formatted_created_at':\n case 'formatted_updated_at':\n $filter = $filter == 'formatted_created_at' ? 'created_at' : 'update_at';\n $dates = explode(\" a \", $value);\n if (count($dates) > 1)\n $maritalStatuss = $maritalStatuss->whereBetween($filter, [$dates[0], $dates[1]]);\n else\n $maritalStatuss = $maritalStatuss->whereDate($filter, $dates[0]);\n break;\n default:\n $maritalStatuss->where($filter, 'LIKE', '%' . $value . '%');\n break;\n }\n }\n\n $data = $maritalStatuss->get();\n $count = $data->count();\n if ($limit && $page)\n $data = $data->slice(($page - 1) * $limit)->take($limit)->values();\n\n $data = $data->map(function ($_data) use ($columns, $appends) {\n $_data = $_data->append($appends);\n if(count($columns)) $_data = $_data->only($columns);\n return $_data;\n });\n\n return compact(\"data\", \"count\");\n }", "title": "" }, { "docid": "12e2564555bb15047acf4faf7a9ec786", "score": "0.56770396", "text": "public function FrontendIndex($Filter = []){\n\n /*** Get Data ***/\n $List = $this->WhereStatusesInMeta($this,$Filter)\n ->with('meta',\n 'meta.categories',\n 'meta.tags',\n 'meta.regions',\n 'meta.files',\n 'users',\n 'users.meta',\n 'meta.comments')\n // Hard Crutch\n ->leftJoin('system_meta', 'meta_id', '=', 'system_meta.id')\n ->orderBy('created_at', 'DESC')\n ->select($this->table . '.*')\n\n ->paginate(\n isset($Filter['Pagination'])?$Filter['Pagination']\n :\\Config::get('site\\app_settings.PaginateFrontend.content')\n );\n\n// print_r($this->GetFields('list','frontend', true));exit;\n// print_r($List->toArray()['data']);exit;\n//\n /*** Return Frontend Content ***/\n return [\n 'List' => $List->toArray()['data'],\n 'Fields' => $this->GetFields('list','frontend', true),\n 'Pagination' => $List->appends(\\Input::except('page'))->links(),\n 'Filters' => $this->Filters()\n ];\n }", "title": "" }, { "docid": "1624ceafd3683dfe302a7e30f42b28b4", "score": "0.56719846", "text": "function tablepress_ext_column_filters_datatables_js_options( $js_options, $table_id, $render_options ) {\n\t$js_options['datatables_filter'] = true;\n\treturn $js_options;\n}", "title": "" }, { "docid": "9f37539f801cf9e3304173456e11a9c7", "score": "0.56696796", "text": "public function filters()\n {\n }", "title": "" }, { "docid": "8901ea0850b2bb623eadb11d888de3cc", "score": "0.56548554", "text": "function get_filters_sql($filters)\t{\n\t $Wv=\"\";$Gv=\"\";$Ov=\"\";$Hv=\"\";$Lv=\"\";$Jv=\"\";\n\t $Wf=true;$Gf=true;$Of=true;$Hf=true;$Lf=true;$Jf=true;\n\t $this->column_selections = \"*\";\n\t\n\tforeach($filters as $filter)\n\t{\n\t\tswitch($filter[0])\n\t\t{\n\t\t\tcase 'group':\n\t\t\tif($Wf)\n\t\t\t{\n\t\t\t\t$Wf=false;\n\t\t\t\t\n\t\t\t\t$Wv=\" WHERE \".$filter[1].\" \";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$Wv=$Wv.\" AND \".$filter[1].\" \";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'or_group':\n\t\t\tif($Wf)\n\t\t\t{\n\t\t\t\t$Wf=false;\n\t\t\t\t$Wv=\" WHERE \".$filter[1].\" \";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$Wv=$Wv.\" OR \".$filter[1].\" \";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'where':\n\t\t\tif($Wf)\n\t\t\t{\n\t\t\t\t$Wf=false;\n\t\t\t\t\n\t\t\t\t$Wv=\" WHERE \".$filter[1].\" \".$filter[2].\" '\".$filter[3].\"' \";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$Wv=$Wv.\" AND \".$filter[1].\" \".$filter[2].\" '\".$filter[3].\"' \";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'or_where':\n\t\t\tif($Wf)\n\t\t\t{\n\t\t\t\t$Wf=false;\n\t\t\t\t$Wv=\" WHERE \".$filter[1].\" \".$filter[2].\" '\".$filter[3].\"' \";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$Wv=$Wv.\" OR \".$filter[1].\" \".$filter[2].\"'\".$filter[3].\"' \";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'like':\n\t\t\tif($Wf)\n\t\t\t{\n\t\t\t\t$Wf=false;\n\t\t\t\t$Wv=\" WHERE \".$filter[1].\" LIKE '\".$filter[2].\"' \";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$Wv=$Wv.\" AND \".$filter[1].\" LIKE '\".$filter[2].\"' \";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'or_like':\n\t\t\tif($Wf)\n\t\t\t{\n\t\t\t\t$Wf=false;\n\t\t\t\t$Wv=\" WHERE \".$filter[1].\" LIKE '\".$filter[2].\"' \";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$Wv=$Wv.\" OR \".$filter[1].\" LIKE '\".$filter[2].\"' \";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'not_like':\n\t\t\tif($Wf)\n\t\t\t{\n\t\t\t\t$Wf=false;\n\t\t\t\t$Wv=\" WHERE \".$filter[1].\" NOT LIKE '\".$filter[2].\"' \";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$Wv=$Wv.\" AND \".$filter[1].\" NOT LIKE '\".$filter[2].\"' \";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'group_by':\n\t\t\tif($Gf)\n\t\t\t{\n\t\t\t\t$Gf=false;\n\t\t\t\t$Gv=\" GROUP BY \".$filter[1].\" \";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$Gv=$Gv.\" ,\".$filter[1].\" \";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'order_by':\n\t\t\tif($Of)\n\t\t\t{\n\t\t\t\t$Of=false;\n\t\t\t\t$Ov=\" ORDER BY \".$filter[1].\" \";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$Ov=$Ov.\" ,\".$filter[1].\" \";\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'having':\n\t\t\tif($Hf)\n\t\t\t{\n\t\t\t\t$Hf=false;\n\t\t\t\t$Hv=\" HAVING \".$filter[1].\" = \".$filter[2].\" \";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'limit':\n\t\t\tif($Lf)\n\t\t\t{\n\t\t\t\t$Lf=false;\n\t\t\t\tif(isset($filter[2]))\n\t\t\t\t{\n\t\t\t\t\t$Lv=\" LIMIT \".$filter[1].\" , \".$filter[2] .\" \";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$Lv=\" LIMIT \".$filter[1].\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'join':\n\t\t\tif($Jf)\n\t\t\t{\n\t\t\t\t$Jf=false;\n\t\t\t\tif(isset($filter[3]))\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t$Jv=\" \".$filter[3].\" JOIN \".$filter[1].\" ON \".$filter[2].\" \";\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\n\t\t\t\t\t$Jv=\" JOIN \".$filter[1].\" ON \".$filter[2].\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'select':\n\t\t\t\n\t\t\t\tif($this->column_selections == \"*\")\n\t\t\t\t{\n\t\t\t\t\t$this->column_selections = $filter[1];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->column_selections = $this->column_selections.\",\".$filter[1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'distinct':\n\t\t\t\n\t\t\t\tif($this->column_selections == \"*\")\n\t\t\t\t{\n\t\t\t\t\t$this->column_selections = \" DISTINCT \".$filter[1];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->column_selections = \" DISTINCT \".$filter[1].\",\".$this->column_selections;\n\t\t\t\t}\n\t\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\t}\t\t\t\t\n\t}\n\t\n\t$return=$Jv.$Wv.$Gv.$Ov.$Hv.$Lv;\n\treturn $return;\n}", "title": "" }, { "docid": "312054de516fbe86a8ea17c6013e3d33", "score": "0.56505376", "text": "public function renderFilterArea()\n {\n\n $buttonBuilder = WgtButtonBuilder::getDefault();\n $html = '<div class=\"right inner\" >'.$buttonBuilder->buildButtons($this->filters).'</div>';\n \n return $html;\n \n }", "title": "" }, { "docid": "01951e2aae17c235bdb35212f75f563f", "score": "0.5642815", "text": "public function filter($tipoID)\n {\n $listatipos = tipoConsumidor::all();\n\n $tipo=\n\n DB::table('receitas')\n ->join('ingrediente_receitas', 'receitas.id', '=', 'ingrediente_receitas.idReceita')\n ->join('ingredientes', 'ingrediente_receitas.idIngrediente', '=', 'ingredientes.id')\n ->join('origem_alimentos', 'ingredientes.idOrigem', '=', 'origem_alimentos.id')\n ->join('origem_tipos', 'origem_alimentos.id', '=', 'origem_tipos.idOrigemAlimento')\n ->join('tipo_consumidors', \"origem_tipos.idTipoConsumidor\", '=', 'tipo_consumidors.id')\n ->select('receitas.id','receitas.nome', 'receitas.created_at', 'tipo_consumidors.tipoConsumidor')\n ->where('origem_tipos.idTipoConsumidor', '=', $tipoID)\n ->distinct()\n ->get();\n\n\n\n return view(\"posts.receitas.showfilters\",compact('tipo','listatipos'));\n }", "title": "" }, { "docid": "07d1aacbe97865da42b169a49c80c1a7", "score": "0.5636163", "text": "public function index()\n {\n $filter = $this->request['filter'];\n\n $relationship = [\n 'husband' => function($q) use ($filter) {\n $q->where('firstName', 'LIKE', '%'.$filter.'%')->orWhere('middleName', 'LIKE', '%'.$filter.'%')\n ->orWhere('lastName', 'LIKE', '%'.$filter.'%');\n }, 'wife' => function($q) use ($filter) {\n $q->where('firstName', 'LIKE', '%'.$filter.'%')->orWhere('middleName', 'LIKE', '%'.$filter.'%')\n ->orWhere('lastName', 'LIKE', '%'.$filter.'%');\n },'minister', 'sponsors'];\n\n $get = $this->marriage->getPaginatedData($this->request->input(),$relationship);\n\n\n return response()->json(['count' => $get['count'],'data' => $get['data']],200);\n\n }", "title": "" }, { "docid": "4c0d3d5ea4b5161723eb8d84a5553c68", "score": "0.56292754", "text": "function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'sumber': return \"s.namasumberbeasiswa = '$key'\";\n\t\t\t\tdefault:\n\t\t\t\t\treturn parent::getListFilter($col,$key);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "e03e1bfb8ca09b6fb0f868e9200a0f2a", "score": "0.56290644", "text": "protected function renderFilterCellContent()\n {\n return '<a class=\"clear-filters\" href=\"#\"><i class=\"fa fa-refresh\"></i></a>';\n }", "title": "" }, { "docid": "6f77a0a3fd2af42c3106cbcf0904bbb7", "score": "0.5628559", "text": "function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'thnkurikulum': return \"thnkurikulum = '$key'\";\n\t\t\t\tcase 'unit': return \"kodeunit = '$key'\";\n\t\t\t\tcase 'semester': return \"semmk = \".(int)$key;\n\t\t\t\tcase 'paket': return \"paket = \".(int)$key;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4d8b879891dae352516bb51f5a392539", "score": "0.562372", "text": "public function index (Request $request) {\n\n //$cilindros = Cilindro::all();\n\n //$pdf = PDF::loadView('home.cilindros.pdflistar', compact('cilindros'));\n //return $pdf->download('invoice.pdf');\n\n if ($request->filled('type')) {\n switch(request('type')){\n case 'json':\n $all = Cilindro::with('propietario')->select()\n ->join('entidades', 'cilindros.propietario_id', '=', 'entidades.ent_id');\n // return datatables()->of(CilindroResource::collection($all))->toJson();\n return DataTables::of($all)\n ->filter(function ($query) use ($request) {\n if ($request->has('custom_filter')) {\n $custom = $request->custom_filter;\n if (isset($custom['query']) && trim($custom['query']) != '') {\n $query->where(function($queryb) use ($custom) {\n $queryb->where('serie', 'like', \"%{$custom['query']}%\");\n $queryb->orWhere('entidades.nombre', 'like', \"%{$custom['query']}%\");\n });\n }\n $query->whereIn('situacion', $custom['situacion']);\n\n }\n })\n ->make(true);\n // return datatables()->of(CilindroResource::collection($xx))->toJson();\n\n\n // return response()->json(CilindroResource::collection($all));\n break;\n default:\n abort(404);\n break;\n }\n }\n\n if ($request->filled('q')) {\n $res = [];\n DB::enableQueryLog();\n $build = Cilindro::select()\n ->where('defectuoso', Cilindro::getEstado('optimo'))\n ->orderBy('serie', 'asc')\n ->where(function ($query) {\n $query->where('serie', 'like', '%'.request('q').'%')\n ->orWhere('codigo', 'like', '%'.request('q').'%');\n });\n\n if ($request->filled('m')) {\n switch (request('m')) {\n case 'despacho':\n //solo cargados y en fabrica\n if ($request->cilindros != null && count($request->cilindros) > 0)\n $build->whereNotIn('cil_id', $request->cilindros);\n $build->where('cargado', Cilindro::getEstado('cargado'))\n ->where('situacion', Cilindro::getSituacion('fabrica'))\n ->where('evento', 'cargado');\n // ->where('defectuoso', Cilindro::getEstado('optimo'));\n break;\n case 'produccion':\n //solo vacio y en fabrica\n // dd($_GET);\n $build->where('cargado', Cilindro::getEstado('vacio'))\n ->where('situacion', Cilindro::getSituacion('fabrica'));\n // dd($request->cilindros);\n if ($request->cilindros != null && count($request->cilindros) > 0)\n $build->whereNotIn('cil_id', $request->cilindros);\n $build->where( function ($query) {\n $query->where('evento', 'create');\n $query->orWhere('evento', 'vacio');\n });\n // ->where('defectuoso', Cilindro::getEstado('optimo'));\n break;\n case 'recibo':\n //solo cargados y en cliente\n if ($request->cilindros != null && count($request->cilindros) > 0)\n $build->whereNotIn('cil_id', $request->cilindros);\n $build->where('cargado', Cilindro::getEstado('cargado'))\n ->where('evento', 'cliente')\n ->where('situacion', Cilindro::getSituacion('cliente'));\n break;\n case 'editar':\n if ($request->cilindros != null && count($request->cilindros) > 0)\n $build->whereNotIn('cil_id', $request->cilindros);\n break;\n case 'all':\n if ($request->cilindros != null && count($request->cilindros) > 0)\n $build->whereNotIn('cil_id', $request->cilindros);\n break;\n }\n }\n\n $res = $build->get();\n $cosa = DB::getQueryLog();\n // dd($cosa);\n // $res->makeHidden([\n // 'situacion',\n // 'cargado',\n // 'defectuoso']);\n\n // $res->map(function ($item, $key) {\n // // $r = $item->propietario->nombre;\n // // $item->propietario->makeHidden(['telefono', 'direccion', 'correo']);\n // return $item;\n // });\n // $xx = $res->propietario->nombre;\n // $res->propietario->makeHidden(['telefono', 'direccion', 'correo']);\n $ress = CilindroResource::collection($res);\n // $res->propietario->toArray();\n // print_r($res);\n return response()->json($ress);\n }\n $data['titulo_pagina'] = 'CILINDRO LISTAR';\n return view('home.cilindros.listar', $data);\n\n\n }", "title": "" }, { "docid": "33fe37e4cae39b7a649198ecc0eb43f7", "score": "0.56231034", "text": "function ShowAllFilters()\n {\n $str = NULL;\n $param_str = NULL;\n $this->url_param = NULL;\n $param = NULL;\n $filtr = NULL;\n $sorting ='';\n $this->priceLevels='';\n $id_cat = $this->id_cat;\n if(!isset($this->params_row))\n $this->params_row = $this->GetParams($id_cat);\n //$this->catLink = $this->Link($this->id_cat);\n if(!isset($this->catLink)) {\n if(!empty($this->treeCatData[$id_cat]['href']))\n $this->catLink = $this->getUrlByTranslit($this->treeCatData[$id_cat]['href']);\n else\n $this->catLink = $this->getUrlByTranslit($this->treeCatData[$id_cat]['path']);\n }\n\n if(!isset($this->propArrNoLimit))\n $this->propArrNoLimit = $this->generateIdPropArra();\n $this->countOfPropNoLimit=count($this->propArrNoLimit[0]);\n $IdOfProps=$this->makeIdPropStr($this->propArrNoLimit[0]);\n\n if(!empty($this->sort) )\n $sorting ='&sort='.$this->sort.'&asc_desc='.$this->asc_desc.'&exist='.$this->exist;\n\n if(!empty($this->from) and !empty($this->to) )\n $this->priceLevels = '&from='.$this->from.'&to='.$this->to;\n\n $n = count($this->params_row);\n $counter=0;\n\n for ($i=0; $i<$n; $i++) {\n if($this->params_row[$i]['modify']!=1) //Отображать в блоке параметров\n continue;\n $val = NULL;\n $paramName = $this->Spr->GetNameByCod(TblModCatalogParamsSprName,($this->params_row[$i]['id']), $this->lang_id, 1);\n\n $str .='<div class=\"paramBlock\"><div class=\"paramName\">'.$paramName .':</div>';\n //$tblname = $this->BuildNameOfValuesTable($this->params_row[$i]['id_categ'], $this->params_row[$i]['id']);\n switch ($this->params_row[$i]['type'] ) {\n case '1':\n //$val = $v;\n break;\n case '2':\n $val = $this->Spr->GetListName( TblSysLogic, $this->lang_id, 'array', 'move', 'asc', 'all' );\n break;\n case '3':\n case '4':\n if(isset($this->propArrNoLimit[$this->params_row[$i]['id']])){\n $IdOfProps1=$this->makeIdPropStr($this->propArrNoLimit[$this->params_row[$i]['id']]);\n $val = $this->GetParamsPropVal($this->lang_id, $this->params_row[$i]['id_categ'], $this->params_row[$i]['id'],$IdOfProps1);\n }else{\n\n $val = $this->GetParamsPropVal($this->lang_id, $this->params_row[$i]['id_categ'], $this->params_row[$i]['id'],$IdOfProps);\n }\n break;\n /* case '5':\n $val = $v;\n break;*/\n }\n\n $prefix = $this->Spr->GetNameByCod(TblModCatalogParamsSprPrefix,($this->params_row[$i]['id']), $this->lang_id, 1);\n $sufix = $this->Spr->GetNameByCod(TblModCatalogParamsSprSufix,($this->params_row[$i]['id']), $this->lang_id, 1);\n\n $str .= '<div class=\"paramKey\">';\n if( is_array($val) ) {\n $showAll=false;\n\n // Формирование строки параметров\n $param_arr=array();\n if( is_array($this->arr_current_img_params_value) ) {\n $param_str = NULL;\n foreach($this->arr_current_img_params_value as $key=>$value) {\n $param_arr[$key]=$value;\n\n // Формирование ссылки для постраничности\n if($key!=$this->params_row[$i]['id'] AND !empty($value)) {\n $param ='&'.PARAM_VAR_NAME.PARAM_VAR_SEPARATOR.$key.'='.$value;\n $param_str .= $param;\n //echo '<br/>$param = '.$param.'<br/>';\n if(substr_count($this->url_param, $param)==0)\n $this->url_param .= $param;\n }\n elseif ($key==$this->params_row[$i]['id'] AND !empty($value) and count($this->arr_current_img_params_value)==1){\n $this->url_param =PARAM_VAR_NAME.PARAM_VAR_SEPARATOR.$key.'='.$value;\n }\n }\n }\n\n foreach($val as $k=>$v) {\n // Форматированный вывод текста либо ссылки параметра\n $checked = false;\n if( is_array($this->arr_current_img_params_value) ){\n foreach($this->arr_current_img_params_value as $key=>$value){\n $subArr=explode (\",\", $value);//print_r($subArr);\n foreach ($subArr as $key1=>$value1) {\n if($key==$this->params_row[$i]['id'] AND $value1==$v['cod'] ) {\n $checked=true;\n //break;\n }\n }\n }\n }\n if(isset($v['countOfProp'])){\n if(isset($this->arr_current_img_params_value[$this->params_row[$i]['id']]))\n $countOfProp=\"+\".($v['countOfProp']);\n else $countOfProp=$v['countOfProp'];\n }else $countOfProp=0;\n $paramLink=$this->makeParamLink($param_arr,$this->params_row[$i]['id'],$v['cod']);\n if(strlen($paramLink)>0) $paramLink[0]=\"?\";\n if($countOfProp>0){\n if($checked==true) {\n $showAll=true;\n $str .='<a class=\"paramSelected\" href=\"'.$this->catLink.$paramLink.'\">'.$prefix.' '.$v['name'].' '.$sufix.'</a><br/> ';\n }\n else $str .='<a href=\"'.$this->catLink.$paramLink.'\">'.$prefix.' '.$v['name'].' '.$sufix.' ('.$countOfProp.')</a><br/> ';\n }\n else{\n if($checked){\n $str .='<a class=\"paramSelected\" href=\"'.$this->catLink.$paramLink.'\">'.$prefix.' '.$v['name'].' '.$sufix.'</a><br/> ';\n }else $str .='<span class=\"param_all\" href=\"'.$this->catLink.$paramLink.'\">'.$prefix.' '.$v['name'].' '.$sufix.' (0)</span><br/> ';\n }\n }\n }\n\n $str .= '</div></div>';\n }\n\n return $str;\n }", "title": "" }, { "docid": "01d35b634acb8e622c0fc76af786b351", "score": "0.56222546", "text": "public function getAllFiltered2AndOrder($column, $filter1,$valueFilter1,$filter2,$valueFilter2){\n\t\t $req=$this->db()->query(\"SELECT * FROM $this->table WHERE $filter1 = '$valueFilter1' AND $filter2 <> '$valueFilter2' ORDER by $column ASC \");\n\t\t if($req==false){\n\t\t\tthrow new Exception('MySQL: Error al realizar la consulta SQL');\n\t\t}\n \t\t$filas = $this->showData($req);\n return $filas;\n\t}", "title": "" }, { "docid": "16fc740a6082810b58296b43a856e736", "score": "0.5617245", "text": "function relatorios_de_publicacoes_api_especiais(){\n \n $html = '';\n $arr = array();\n $rows = array();\n \n drupal_add_js(drupal_get_path('module','relatorios').'/relatorios.js');\n \n // Renderiza o form de filtros.\n $html = '<style>.form-item-mes{float:left} .form-item-ano{float:left;padding-left:10px;}</style>';\n $html .= drupal_render(drupal_get_form('relatorios_de_publicacoes_api_especiais_form_filtro',$mes,$ano));\n \n // cabeçalho da tabela HTML\n $rows = array();\n $header = array();\n $header[] = array('data'=>'Especias');\n $header[] = array('data'=>'Total de publicações');\n\n // $especiais\n $especiais = relatorios_de_publicacoes_db_get(array('lista_de_especiais'=>true));\n\n // $dados\n $dados = relatorios_de_publicacoes_db_get(array('relatorio'=>true,'especiais'=>$especiais));\n\n foreach ($dados as $dado) {\n $rows[] = array('data' => array(\n $dado->nome,\n $dado->qtd_publicoes\n ));\n }\n\n // theme 'table'\n $arr['header'] = $header;\n $arr['rows'] = $rows;\n\n $caption = 'Relatório de publicações em especiais';\n $empty = 'Nenhuma publicação em especiais...';\n\n $html .= theme('table',\n array('header' => $arr['header'],\n 'rows' => $arr['rows'],\n 'caption' => $caption,\n 'sticky' => TRUE,\n 'empty' => $empty,\n )\n );\n // theme 'pager'\n $html .= theme('pager',array('tags' => array()));\n \n return $html;\n}", "title": "" }, { "docid": "a000e8a54f406e262f86bed38d4d8968", "score": "0.5614666", "text": "function theme_sirtaqui_edit_sirtaqui_content_filters($form) {\n\n\t$rows = array();\n\n\tforeach (element_children($form['filters']) as $key) {\n\t\tif (isset($form['filters'][$key]['field']))\n\t\t{\n\t\t\t$theme = &$form['filters'][$key];\n\n\t\t\t$row = array();\n\n\t\t\t$row[] = drupal_render($theme['field']);\n\t\t\t$row[] = drupal_render($theme['value']);\n\t\t\tif (isset($theme['delete']))\n\t\t\t\t$row[] = drupal_render($theme['delete']);\n\n\t\t\t$rows[] = array('data' => $row,'class' => ' ', 'id' => $key);\n\t\t}\n\t}\n\tif (empty($rows)) {\n\t\t$rows[] = array(array('data' => t('No criterias available.'), 'colspan' => '3'));\n\t}\n\n\t$header = array(t(\"Field (XML name)\"), t('Value'), t('Actions'));\n\n\treturn theme('table', $header, $rows, array('id' => 'sirtaqui_content_import_filters')) . drupal_render($form);\n}", "title": "" }, { "docid": "18791f9ae1fbface987f67c474bbf3ad", "score": "0.5613689", "text": "function showFilter(){\n /* Write Table Part */\n AdminHTML::PanelSimpleH();\n ?>\n <tr valign=\"top\">\n <td style=\"width: 400px\">\n <div><h3 style=\"padding:0px; margin:0px;\"><?=$this->multi['TXT_SEARCH_PANEL'];?></h3></div>\n <table border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\n <tr class=\"tr2\">\n <td align=\"right\" width=\"100\"><?=$this->multi['FLD_STATUS'];?>:</td>\n <td align=\"left\">\n <div align=\"left\"><?\n $arr_status[''] =$this->multi['TXT_NEWS_ALL_STATUSES'];\n $arr_status = array_merge($arr_status,$this->arr_status);\n $this->Form->SelectAct( $arr_status, 'search_status', $this->search_status, \"\" );\n ?></div>\n </td>\n </tr>\n <tr class=\"tr2\">\n <td align=\"right\" nowrap=\"nowrap\">\n <?=$this->multi['FLD_SUMA'];?>:\n </td>\n <td>\n <?=$this->multi['FLD_FROM']?>\n <?$this->Form->TextBox('search_sum_from', $this->search_sum_from, 10, 'style=\"width:70px;\"');?>\n <?=$this->multi['FLD_QUANTITY_TO']?>\n <?$this->Form->TextBox('search_sum_to', $this->search_sum_to, 40, 'style=\"width:70px;\"');?>\n <?\n if( empty($this->currency) AND $this->currency!='0' ) $this->currency = $this->Currencies->defCurrencyData['id'];\n\n $this->Form->Select($this->Currencies->listShortNames, 'search_currency', $this->currency);?>\n </td>\n </tr>\n <tr class=\"tr2\">\n <td align=\"right\" nowrap=\"nowrap\">\n <?=$this->multi['_FLD_CODE'];?>:\n </td>\n <td>\n <?$this->Form->TextBox('search_cod', $this->search_cod, 40, 'style=\"width:90px;\"');?>\n </td>\n </tr>\n <tr class=\"tr2\">\n <td></td>\n <td align=\"left\">\n <input type=\"submit\" value=\"<?=$this->multi['TXT_BUTTON_SEARCH'];?>\"/>\n\n </td>\n <tr>\n </table>\n </td>\n <?\n if(!empty($this->str_id)){?>\n <td><b><?=$this->multi['TXT_SELECTED_RECORDS']?>:</b><br/> <?=$this->str_id?><br/><br/>\n <a class=\"r-button\" href=\"<?=$_SERVER['PHP_SELF'].\"?module=$this->module\";?>\">\n <span>\n <span>\n <img src=\"images/icons/delete.png\" alt=\"Удалить\" title=\"Удалить\" align=\"center\" name=\"delete\">\n <?=$this->multi['TXT_RESET_FILTER']?>\n </span>\n </span>\n </a>\n </td>\n\n <?\n }?>\n </tr>\n <?\n AdminHTML::PanelSimpleF();\n\n }", "title": "" }, { "docid": "aaa64a3d6f8f5ce85a8c6a70fb792dc6", "score": "0.56020033", "text": "public function index(Request $request)\n {\n return Inertia::render('Filter', [\n 'items' => DB::table('filters')->where('userId', $request->user()->id)->get(),\n ]);\n }", "title": "" }, { "docid": "4380ec7ef8b26fa982037d331223ac50", "score": "0.5601954", "text": "function getFilters();", "title": "" }, { "docid": "4380ec7ef8b26fa982037d331223ac50", "score": "0.5601954", "text": "function getFilters();", "title": "" }, { "docid": "208fbb1150382a076ad1106e49beb0c7", "score": "0.55998975", "text": "function iniciarFiltro(&$filtro) \n {\n \n if (isset($_GET['order']))\n $filtro->order($_GET['order']);\n\n $filtro->nombres[] = 'M&oacute;dulo';\n $filtro->valores[] = array ('input' ,'modulo_codigo',$filtro->filtro('modulo_codigo'));\n $filtro->nombres[] = 'Descripci&oacute;n';\n $filtro->valores[] = array ('input' ,'modulo_descripcion',$filtro->filtro('modulo_descripcion'));\n }", "title": "" }, { "docid": "70d79247bc6cfb843501e0cec8bf8ebf", "score": "0.5598808", "text": "public function filter(Request $request) \n {\n $auth = \\Auth::user(); \n $theme = $auth->theme;\n\n $json_data = [];\n \n //index\n if ($request->exists('PrgID') && $request->exists('index'))\n {\n $PrgID = $request->input('PrgID')==''?'none':$request->input('PrgID');\n $filters['PrgID']=$PrgID;\n $this->putControllerStateSession('programkegiatan','filters',$filters);\n $this->setCurrentPageInsideSession('programkegiatan',1);\n\n $data = $this->populateData(); \n $filter_kode_program_selected=ProgramModel::getKodeProgramByPrgID($this->getControllerStateSession('programkegiatan.filters','PrgID'));\n $datatable = view(\"pages.$theme.dmaster.programkegiatan.datatable\")->with(['page_active'=>'programkegiatan', \n 'search'=>$this->getControllerStateSession('programkegiatan','search'), \n 'filter_prgid_selected'=>$this->getControllerStateSession('programkegiatan.filters','PrgID'), \n 'filter_kode_program_selected'=>$filter_kode_program_selected,\n 'numberRecordPerPage'=>$this->getControllerStateSession('global_controller','numberRecordPerPage'),\n 'column_order'=>$this->getControllerStateSession(\\Helper::getNameOfPage('orderby'),'column_name'),\n 'direction'=>$this->getControllerStateSession(\\Helper::getNameOfPage('orderby'),'order'),\n 'data'=>$data])->render(); \n \n \n $json_data = ['success'=>true,'datatable'=>$datatable]; \n }\n //create\n if ($request->exists('PrgID') && $request->exists('create'))\n {\n $PrgID = $request->input('PrgID');\n $Kd_Keg = ProgramKegiatanModel::where('PrgID',$PrgID)->count('Kd_Keg')+1;\n $json_data = ['success'=>true,'Kd_Keg'=>$Kd_Keg];\n }\n return response()->json($json_data,200); \n }", "title": "" }, { "docid": "70202730649937324591e334f515dd61", "score": "0.5594736", "text": "public function serverside(Request $request)\n {\n DB::statement(DB::raw('set @rownum=0'));\n $products = Product::select([\n DB::raw('@rownum := @rownum + 1 AS rownum'),\n 'product_id',\n 'product_code',\n 'product_name',\n 'product_detail',\n 'product_cost_price',\n 'product_sale_price',\n 'product_quantity']);\n\n\n if($keyword = $request->get('search')['value']){\n $datatables = Datatables::of($products);\n $datatables->filterColumn('rownum', function($query, $keyword){\n $sql = \"@rownum + 1 like ?\";\n $query->whereRaw($sql, [\"%{$keyword}%\"]);\n });\n\n return $datatables\n ->addColumn('product_image', function ($products) {\n return '<img src=\"pic/'.$products->product_id.'\">';\n })\n ->addColumn('action', function ($products) {\n return '<button data-info=\"'.$products->product_id.','.$products->product_code.','.$products->product_name.','.$products->product_detail.','.$products->product_cost_price.','.$products->product_sale_price.','.$products->product_quantity.'\" class=\"edit-modal btn btn-xs btn-primary\"><i class=\"glyphicon glyphicon-edit\"></i> แก้ไขข้อมูล</button>\n <button data-info=\"'.$products->product_id.','.$products->product_code.','.$products->product_name.','.$products->product_detail.','.$products->product_cost_price.','.$products->product_sale_price.','.$products->product_quantity.'\" class=\"delete-modal btn btn-xs btn-danger\"><i class=\"fa fa-trash\"></i> ลบข้อมูล</button>';\n })\n ->rawColumns(['action','product_image'])\n ->make(true);\n }\n\n return DataTables::of($products)\n ->addColumn('product_image', function ($products) {\n return '<img src=\"pic/'.$products->product_id.'\">';\n })\n ->addColumn('action', function ($products) {\n return '<button data-info=\"'.$products->product_id.','.$products->product_name.','.$products->product_detail.','.$products->product_cost_price.','.$products->product_sale_price.','.$products->product_quantity.'\" class=\"edit-modal btn btn-xs btn-primary\"><i class=\"glyphicon glyphicon-edit\"></i> แก้ไขข้อมูล</button>\n <button data-info=\"'.$products->product_id.','.$products->product_name.','.$products->product_detail.','.$products->product_cost_price.','.$products->product_sale_price.','.$products->product_quantity.'\" class=\"delete-modal btn btn-xs btn-danger\"><i class=\"fa fa-trash\"></i> ลบข้อมูล</button>';\n })\n ->rawColumns(['action','product_image'])\n ->make(true);\n }", "title": "" }, { "docid": "91a2a3c03050f39d0072d72a5c7d1349", "score": "0.558949", "text": "function GetFilterList() {\n\t\tglobal $UserProfile;\n\n\t\t// Load server side filters\n\t\tif (EW_SEARCH_FILTER_OPTION == \"Server\") {\n\t\t\t$sSavedFilterList = isset($UserProfile) ? $UserProfile->GetSearchFilters(CurrentUserName(), \"fvw_list_pasien_rawat_jalanlistsrch\") : \"\";\n\t\t} else {\n\t\t\t$sSavedFilterList = \"\";\n\t\t}\n\n\t\t// Initialize\n\t\t$sFilterList = \"\";\n\t\t$sFilterList = ew_Concat($sFilterList, $this->NOMR->AdvancedSearch->ToJSON(), \",\"); // Field NOMR\n\t\t$sFilterList = ew_Concat($sFilterList, $this->KETERANGAN->AdvancedSearch->ToJSON(), \",\"); // Field KETERANGAN\n\t\t$sFilterList = ew_Concat($sFilterList, $this->KDPOLY->AdvancedSearch->ToJSON(), \",\"); // Field KDPOLY\n\t\t$sFilterList = ew_Concat($sFilterList, $this->tanggal->AdvancedSearch->ToJSON(), \",\"); // Field tanggal\n\t\t$sFilterList = ew_Concat($sFilterList, $this->bulan->AdvancedSearch->ToJSON(), \",\"); // Field bulan\n\t\t$sFilterList = ew_Concat($sFilterList, $this->tahun->AdvancedSearch->ToJSON(), \",\"); // Field tahun\n\t\tif ($this->BasicSearch->Keyword <> \"\") {\n\t\t\t$sWrk = \"\\\"\" . EW_TABLE_BASIC_SEARCH . \"\\\":\\\"\" . ew_JsEncode2($this->BasicSearch->Keyword) . \"\\\",\\\"\" . EW_TABLE_BASIC_SEARCH_TYPE . \"\\\":\\\"\" . ew_JsEncode2($this->BasicSearch->Type) . \"\\\"\";\n\t\t\t$sFilterList = ew_Concat($sFilterList, $sWrk, \",\");\n\t\t}\n\t\t$sFilterList = preg_replace('/,$/', \"\", $sFilterList);\n\n\t\t// Return filter list in json\n\t\tif ($sFilterList <> \"\")\n\t\t\t$sFilterList = \"\\\"data\\\":{\" . $sFilterList . \"}\";\n\t\tif ($sSavedFilterList <> \"\") {\n\t\t\tif ($sFilterList <> \"\")\n\t\t\t\t$sFilterList .= \",\";\n\t\t\t$sFilterList .= \"\\\"filters\\\":\" . $sSavedFilterList;\n\t\t}\n\t\treturn ($sFilterList <> \"\") ? \"{\" . $sFilterList . \"}\" : \"null\";\n\t}", "title": "" }, { "docid": "2f33387a04eb01cbd9e83626c406dbcd", "score": "0.5588978", "text": "public function actionAjaxFilter(){\n\t\t$bodyparams=Yii::$app->request->bodyParams;\n Yii::$app->request->queryParams +=$bodyparams;\n //echo \"<pre>\",print_r($bodyparams),\"</prE>\";\n //die;\n\t\t$searchModel = new TasksUnitsSearch();\n\t\t$qparams = Yii::$app->request->queryParams;\n\t\t$params = array();\n\t\t//$dataProvider = $searchModel->searchFilter($qparams,$params);\n\t\t$params = array_merge($qparams, Yii::$app->request->bodyParams,$params);\n\t $dataProvider = $searchModel->searchMyActiveTasksFilter($params);\n\t if($params['field'] == 'workflow_task' || $params['field'] == 'client_id' || $params['field'] == 'client_case_id' || $params['field'] == 'task_id') {\n\t\t\tforeach ($dataProvider as $key=>$val) {\n\t\t\t\t$out['results'][] = ['id' => $key, 'text' => Html::decode($val),'label' => Html::decode($val)];\n\t\t\t}\n\t\t} else {\n\t\t\tforeach ($dataProvider as $key=>$val) {\n\t\t\t\t$out['results'][] = ['id' => $val, 'text' => Html::decode($val),'label' => Html::decode($val)];\n\t\t\t}\n\t\t}\n\t return json_encode($out);\n\t}", "title": "" }, { "docid": "3a875e4ac0cc994602796f25e969d154", "score": "0.5585275", "text": "function RetrieveSortedTableData($filter)\n {\n \t $filter = \"WHERE \";\n \t $keys = array(); \t\n\t foreach ($_GET['filter'] as $key => $value)\n\t {\n\t \t $val = preg_replace('/(\\w+[a-zA-Z0-9])/', '\\'$1\\'' , $value);\t \t \n\t $filter .= \"$key IN ($val)\"; // TODO: single letters are not replaced\t \t\t \n\t\t $filter .= \" AND \";\t\t \n\t\t $keys[] = $key;\n\t\t }\n\t $filter = substr($filter, 0, (strlen($filter) - strlen(\" AND \")) );\n\n $returnData = $this->database->RetrieveSortedTableData($keys[0], $keys[1], $keys[2], $filter);\n $json[\"labels\"] = $returnData[0];\n $json[\"aaData\"] = $returnData[1];\n \n return json_encode($json); \n }", "title": "" }, { "docid": "5473fcb39d50d787f0f9c39e3a77f2eb", "score": "0.55842185", "text": "public function actionAjaxFilter(){\n\t\t$case_id=Yii::$app->request->get('case_id',0);\n\t\t$searchModel = new EvidenceCustodianSearch();\n\t\t$dataProvider = $searchModel->searchFilter(Yii::$app->request->queryParams,$case_id);\n\t\t$out['results']=array();\n\t\tforeach ($dataProvider as $key=>$val){\n\t\t\t$val1 = $val;\n\t\t\t$val2 = $val;\n\t\t\tif($val == ''){\n\t\t\t\tcontinue;\n\t\t\t\t//$val1 = '(not set)';\n\t\t\t\t//$val='(not set)';\n\t\t\t\t//$val2='(not set)';\n\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t$out['results'][] = ['id' => $val1, 'text' => $val,'label' => $val2];\n\t\t}\n\t\t//echo \"<pre>\"; print_r($dataProvider); exit;\n\t\treturn json_encode($out);\n\t}", "title": "" }, { "docid": "bfaea1642ea5a1ab338165a4828b9ba9", "score": "0.5583947", "text": "public function filtro($autor){\n //se conecta a la base de datos\n $conexion = mysqli_connect(\"localhost\", \"root\", \"\", \"autores_y_libros\");\n // comprueba que todo ha ido bien\n if (mysqli_connect_errno()) {\n printf(\"Conexion fallida: %s\\n\", mysqli_connect_error());\n exit();\n }\n $consulta= \"SELECT autores.*,libros.titulo FROM autores,libros\n WHERE autores.nombre_autor= libros.autor and autores.nombre_autor='$autor';\n \";\n // se forman los campos ue se usaran mas adelabte\n $datos= mysqli_query($conexion, $consulta);\n // se genera el html que se muestra\n if (mysqli_num_rows($datos) > 0){\n echo \"<div id='tabla'>\";\n \n echo\"<table class='table' border=1>\";\n echo\"<tr class='tablas' style='text-align:center'>\";\n echo\"<th >Nombre Autor</th><th>Titulo</th>\";\n while($row = mysqli_fetch_assoc($datos)){\n echo\"<tr class='tablas1'>\";\n echo \"<td style='vertical-align: middle;text-align:center'>\";\n echo $row[\"nombre_autor\"].\"</td>\";\n \n \n \n echo \"<td style='vertical-align: middle;text-align:center'>\".$row[\"titulo\"].\"</td>\";\n \n echo \"</tr>\";\n }\n echo\"</table>\";\n echo \"</div>\";\n \n \n } else {\n echo \"Compruebe la consulta\";\n }\n \n \n }", "title": "" }, { "docid": "40ed26834d1e26cf268af978b79a345d", "score": "0.5578167", "text": "public function indexEncuesta(Request $request){\n $id_user = auth()->user()->id;\n $id_docente=Docente::where('user_id',$id_user)->first()->id_pdg_dcn;\n $areas=Area::where('id_pdg_dcn',$id_docente)->get();\n $encuesta=true;\n if($request->ajax()){\n $a=[];\n $a=$this->areasArray($areas);\n return dataTables()\n ->of($a)\n ->addColumn('actions','area/actions')\n ->rawColumns(['actions'])\n ->toJson();\n }\n return view('area.index', compact('encuesta'));\n\n }", "title": "" }, { "docid": "042624b6d6e22c5def06c76044e909a2", "score": "0.55773044", "text": "protected function _render_javascript()\n\t{\t\t\n\t\t$aoColumns = array();\n\t\t\n\t\tforeach($this->_columns as $column_name => $settings){\n\t\t\t$column_info = array('mData' => $column_name);\n\t\t\t\n\t\t\tif(isset($settings['aoColumns'])) $column_info = Arr::merge($column_info, $settings['aoColumns']);\n\t\t\t\n\t\t\t$aoColumns[] = $column_info;\n\t\t}\n\t\t\t\n\t\t$datatable_settings = Arr::merge(\n\t\t\t$this->_datatable_settings,\n\t\t\tarray('aoColumns' => $aoColumns)\n\t\t);\n\t\t\n\t\t$html = '<script type=\"text/javascript\">';\n\t\t$html .= '$(document).ready(function(){';\n\t\t\n\t\t\t$html .= 'datatable_'.str_replace('-', '_', $this->_table_attributes['id']).' = $(\"#'.$this->_table_attributes['id'].'\").dataTable({';\n\n\t\t\t\t// Adding settings\n\t\t\t\tforeach($datatable_settings as $name => $value) $html .= $this->_format_setting($name, $value);\n\t\t\t\t\n\t\t\t\t// Set fnServerData to make column filter plugin work\n\t\t\t\tif(!isset($datatable_settings['fnServerData']) AND $datatable_settings['bServerSide'] AND $this->_column_filters_enabled)\n\t\t\t\t\t$html .= $this->_format_setting('fnServerData', $this->_config['default_fnServerData']);\n\t\t\t\t\n\t\t\t\t// Internationalisation\n\t\t\t\t$langs_folder = $this->_config['langs_folder'];\n\t\t\t\tif(isset($langs_folder) AND !isset($settings['oLanguage']['sUrl']))\n\t\t\t\t\t$html .= $this->_format_setting('oLanguage', array('sUrl' => URL::base().$langs_folder.substr(I18n::$lang, 0, 2).'.txt'));\n\t\t\t\t\n\t\t\t\t// Remove last coma\n\t\t\t\tif(substr($html, -1) == ',') $html = substr_replace($html ,'', -1);\n\t\t\t\n\t\t\t$html .= '});';\n\t\t\t\n\t\t\tif($this->_column_filters_enabled){\n\t\t\t\t\n\t\t\t\t$html = substr_replace($html ,'', -1);\n\t\t\t\t\n\t\t\t\t$html .= '.columnFilter({';\n\t\t\t\t\t\n\t\t\t\t\tforeach($this->_column_filters_settings as $name => $value) $html .= $this->_format_setting($name, $value);\n\t\t\t\t\t\n\t\t\t\t\t// Sorting column settings\n\t\t\t\t\t$aoColumns = array();\n\t\t\t\t\tforeach($this->_columns as $column_settings) $aoColumns[] = isset($column_settings['filter']['input']) ? $column_settings['filter']['input'] : null;\n\t\t\t\t\t\n\t\t\t\t\t$html .= $this->_format_setting('aoColumns', $aoColumns);\n\n\t\t\t\t\t// Remove last coma\n\t\t\t\t\tif(substr($html, -1) == ',') $html = substr_replace($html ,'', -1);\n\t\t\t\t\t\n\t\t\t\t$html .= '});';\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Apply plugins\n\t\t\tforeach($this->_plugins as $plugin_name => $settings){\n\t\t\t\t\n\t\t\t\t$html = substr_replace($html ,'', -1);\n\t\t\t\t\n\t\t\t\t$html .= '.'.$plugin_name.'(';\n\t\t\t\t\n\t\t\t\tif(is_array($settings)){\n\t\t\t\t\t\n\t\t\t\t\t$html .= '{';\n\t\t\t\t\t\n\t\t\t\t\t\tforeach($settings as $name => $value) $html .= $this->_format_setting($name, $value);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Remove last coma\n\t\t\t\t\t\tif(count($settings)) $html = substr_replace($html ,'', -1);\n\t\t\t\t\t\t\n\t\t\t\t\t$html .= '}';\n\t\t\t\t\n\t\t\t\t}elseif(is_string($settings)){\n\t\t\t\t\t\n\t\t\t\t\t$html .= \"'\".$settings.\"'\";\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\t$html .= json_encode($settings);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$html .= ');';\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t$html .= '});';\n\t\t$html .= '</script>';\n\t\t\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "58c8e4bcb31da3f91fc111d4f23ffb72", "score": "0.55752766", "text": "public function index()\n {\n $receptionist_current_id=Auth::user()->id;\n $clients = Client::join('users',\n 'clients.user_id',\n '=', 'users.id')\n ->select(['users.name',\n 'users.email',\n 'clients.mobile',\n 'clients.country_id',\n 'clients.gender'])\n ->Where(\"clients.approved_by\", $receptionist_current_id);\n\n\n return datatables()->of($clients)->addColumn('country',\n function ($query) {\n $country=$query->country->full_name;\n return $country;\n })->addColumn('gender',\n function ($query) {\n if($query->gender==0){\n return \"male\";\n }else\n {\n return \"female\";\n }\n\n })->toJson()->toJson();\n }", "title": "" }, { "docid": "e5f51bdbd429c56756d63839db829e87", "score": "0.5564304", "text": "function filter($request, $columns, &$bindings)\n {\n $globalSearch = array();\n $columnSearch = array();\n $dtColumns = $this->pluck($columns, 'dt');\n\n if (isset($request['search']) && $request['search']['value']) {\n $str = $request['search']['value'];\n\n for ($i = 0, $ien = count($request['columns']); $i < $ien; $i++) {\n $requestColumn = $request['columns'][$i];\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\n $column = $columns[$columnIdx];\n\n if ($requestColumn['searchable'] == 'true') {\n $binding = $this->bind($bindings, '%' . $str . '%', PDO::PARAM_STR);\n $globalSearch[] = \" \" . $column['db'] . \" LIKE \" . $binding;\n }\n }\n }\n\n // Individual column filtering\n for ($i = 0, $ien = count(@$request['columns']); $i < $ien; $i++) {\n $requestColumn = $request['columns'][$i];\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\n $column = $columns[$columnIdx];\n\n $str = $requestColumn['search']['value'];\n\n if ($requestColumn['searchable'] == 'true' &&\n $str\n ) {\n $binding = $this->bind($bindings, '%' . $str . '%', PDO::PARAM_STR);\n $columnSearch[] = \" \" . $column['db'] . \" LIKE \" . $binding;\n }\n }\n\n // Combine the filters into a single string\n $where = '';\n\n if (count($globalSearch)) {\n $where = '(' . implode(' OR ', $globalSearch) . ')';\n }\n\n if (count($columnSearch)) {\n $where = $where === '' ?\n implode(' AND ', $columnSearch) :\n $where . ' AND ' . implode(' AND ', $columnSearch);\n }\n/*\n $arrOtherSearch = array();\n @$request['workorder'] ? $arrOtherSearch[] = \" a.workorder LIKE '%\" . trim($request['workorder']) . \"%'\" : null;\n @$request['po_no'] ? $arrOtherSearch[] = \" a.po_no LIKE '%\" . trim($request['po_no']) . \"%'\" : null;\n @$request['invoice_no'] ? $arrOtherSearch[] = \" a.invoice_no LIKE '%\" . trim($request['invoice_no']) . \"%'\" : null;\n @$request['hawb_hbl'] ? $arrOtherSearch[] = \" a.hawb_hbl LIKE '%\" . trim($request['hawb_hbl']) . \"%'\" : null;\n @$request['pre_alert'] ? $arrOtherSearch[] = \" a.pre_alert = '\" .\n $this->Helper_model->convertDate(trim($request['pre_alert'])) . \"'\" : null;\n @$request['pending'] ? $arrOtherSearch[] = \" a.pending = '\" . ($request['pending']) . \"'\" : null;\n @$request['customer_id'] ? $arrOtherSearch[] = \" a.customer_id = '\" . ($request['customer_id']) . \"'\" : null;\n @$request['shipment_type'] ? $arrOtherSearch[] = \" a.shipment_type = '\" . ($request['shipment_type']) . \"'\" : null;\n @$request['transport_type'] ? $arrOtherSearch[] = \" a.transport_type = '\" . ($request['transport_type']) . \"'\" : null;\n @$request['pod_id'] ? $arrOtherSearch[] = \" a.pod_id = '\" . ($request['pod_id']) . \"'\" : null;\n //@$request['shipment_status'] ? $arrOtherSearch[] = \" a.shipment_status = '\" . ($request['shipment_status']) . \"'\" : null;\n @$request['branch'] ? $arrOtherSearch[] = \" a.branch = '\" . ($request['branch']) . \"'\" : null;\n\n switch (@$request['shipment_status']) {\n case '1':\n $arrOtherSearch[] = \" a.`shipment_type`='Import' AND a.status_receive_doc<>'0000-00-00'\n AND a.status_prepare_permit='0000-00-00' AND a.status_customs_clearance='0000-00-00'\n AND a.status_store_warehouse='0000-00-00' AND a.status_delivered='0000-00-00'\n AND a.status_complete_customs='0000-00-00'\";\n break;\n case '2':\n $arrOtherSearch[] = \" a.`shipment_type`='Import' AND a.status_prepare_permit<>'0000-00-00'\n AND a.status_customs_clearance='0000-00-00' AND a.status_store_warehouse='0000-00-00'\n AND a.status_delivered='0000-00-00' AND a.status_complete_customs='0000-00-00'\";\n break;\n case '3':\n $arrOtherSearch[] = \" a.`shipment_type`='Import' AND a.status_customs_clearance<>'0000-00-00'\n AND a.status_store_warehouse='0000-00-00' AND a.status_delivered='0000-00-00'\n AND a.status_complete_customs='0000-00-00'\";\n break;\n case '4':\n $arrOtherSearch[] = \" a.`shipment_type`='Import' AND a.status_store_warehouse<>'0000-00-00'\n AND a.status_delivered='0000-00-00' AND a.status_complete_customs='0000-00-00'\";\n break;\n case '5':\n $arrOtherSearch[] = \" a.`shipment_type`='Import' AND a.status_delivered<>'0000-00-00'\n AND a.status_complete_customs='0000-00-00'\";\n break;\n case '6':\n $arrOtherSearch[] = \" a.`shipment_type`='Import' AND a.status_complete_customs<>'0000-00-00'\";\n break;\n case '7':\n $arrOtherSearch[] = \" a.`shipment_type`='Export' AND a.status_receive_doc<>'0000-00-00'\n AND a.status_submit_doc='0000-00-00' AND a.status_store_warehouse='0000-00-00'\n AND a.status_booking='0000-00-00' AND a.status_prepare_export='0000-00-00'\n AND a.status_release_shipment='0000-00-00' AND a.pre_alert='0000-00-00'\n AND a.status_delivered='0000-00-00'\";\n break;\n case '8':\n $arrOtherSearch[] = \" a.`shipment_type`='Export' AND a.status_submit_doc<>'0000-00-00'\n AND a.status_store_warehouse='0000-00-00' AND a.status_booking='0000-00-00'\n AND a.status_prepare_export='0000-00-00' AND a.status_release_shipment='0000-00-00'\n AND a.pre_alert='0000-00-00' AND a.status_delivered='0000-00-00'\";\n break;\n case '9':\n $arrOtherSearch[] = \" a.`shipment_type`='Export' AND a.status_store_warehouse<>'0000-00-00'\n AND a.status_booking='0000-00-00' AND a.status_prepare_export='0000-00-00'\n AND a.status_release_shipment='0000-00-00' AND a.pre_alert='0000-00-00'\n AND a.status_delivered='0000-00-00'\";\n break;\n case '10':\n $arrOtherSearch[] = \" a.`shipment_type`='Export' AND a.status_booking<>'0000-00-00'\n\t\t\t\tAND a.status_prepare_export='0000-00-00' AND a.status_release_shipment='0000-00-00'\n\t\t\t\tAND a.pre_alert='0000-00-00' AND a.status_delivered='0000-00-00'\";\n break;\n case '11':\n $arrOtherSearch[] = \" a.`shipment_type`='Export' AND a.status_prepare_export<>'0000-00-00'\n AND a.status_release_shipment='0000-00-00' AND a.pre_alert='0000-00-00'\n AND a.status_delivered='0000-00-00'\";\n break;\n case '12':\n $arrOtherSearch[] = \" a.`shipment_type`='Export' AND a.status_release_shipment<>'0000-00-00'\n AND a.pre_alert='0000-00-00' AND a.status_delivered='0000-00-00'\";\n break;\n case '13':\n $arrOtherSearch[] = \" a.`shipment_type`='Export' AND a.pre_alert<>'0000-00-00'\n AND a.status_delivered='0000-00-00'\";\n break;\n case '14':\n $arrOtherSearch[] = \" a.`shipment_type`='Export' AND a.status_delivered<>'0000-00-00'\";\n break;\n }\n\n if ($arrOtherSearch) {\n $strOtherSearch = \" AND (\";\n $strOtherSearch .= implode(' AND ', $arrOtherSearch);\n $strOtherSearch .= \")\";\n } else {\n $strOtherSearch = \"\";\n }\n $where .= \" $strOtherSearch\";*/\n return $where;\n }", "title": "" }, { "docid": "97c5715faade1073a922dd38ee9cc871", "score": "0.55568355", "text": "public function index()\n {\n $page = request()->get(\"page\", false);\n $limit = request()->get(\"limit\", false);\n $filters = json_decode(request()->get(\"filters\", \"{}\"), true);\n\n $users = User::where(\"id\", \">\", 0);\n foreach ($filters as $filter => $value) {\n if ($value && $filter != \"reload\")\n $users->where($filter, $value);\n }\n $data = $users->get();\n $count = $data->count();\n if ($limit && $page)\n $data = $data->slice(($page - 1) * $limit)->take($limit)->values();\n\n\n return compact(\"data\", \"count\");\n }", "title": "" }, { "docid": "bd2ff2819b133b74b6168ef06cd87d65", "score": "0.5555417", "text": "public function index()\n {\n // $this->diskusiModel->select('*, sp_diskusi.id ', FALSE );\n\n $table_filters = (object) [\"id\" => null, \"judul_diskusi\" => null, \"parent_id\" => null, \"tipe_diskusi\" => null, \"comment\" => null, \"gambar_soal\" => null, \"rating_soal\" => null, \"user_id\" => null, \"publishing\" => null];\n\n foreach ($table_filters as $field => &$value) {\n $value = refine_var($this->request->getGet($field));\n };\n\n if ($table_filters->id) {\n $this->diskusiModel->where('id', $table_filters->id);\n };\n\n if ($table_filters->judul_diskusi) {\n $this->diskusiModel->where('judul_diskusi', $table_filters->judul_diskusi);\n };\n\n if ($table_filters->parent_id) {\n $this->diskusiModel->where('parent_id', $table_filters->parent_id);\n };\n\n if ($table_filters->tipe_diskusi) {\n $this->diskusiModel->where('tipe_diskusi', $table_filters->tipe_diskusi);\n };\n\n if ($table_filters->comment) {\n $this->diskusiModel->where('comment', $table_filters->comment);\n };\n\n if ($table_filters->gambar_soal) {\n $this->diskusiModel->where('gambar_soal', $table_filters->gambar_soal);\n };\n\n if ($table_filters->rating_soal) {\n $this->diskusiModel->where('rating_soal', $table_filters->rating_soal);\n };\n\n if ($table_filters->user_id) {\n $this->diskusiModel->where('user_id', $table_filters->user_id);\n };\n\n if ($table_filters->publishing) {\n $this->diskusiModel->where('publishing', $table_filters->publishing);\n };\n\n $this->diskusiModel->orderBy('sp_diskusi.id desc');\n $rows = $this->diskusiModel->paginate(10);\n\n $data = [\n 'rows' => $rows,\n 'pager' => $this->diskusiModel->pager,\n 'breadcrumb' => [\n 'title' => 'List of Diskusi',\n ],\n 'per_page' => 10,\n 'table_filter' => $table_filters,\n ];\n\n $filter_label = [\"id\" => \"Id\", \"judul_diskusi\" => \"Judul Diskusi\", \"parent_id\" => \"Parent Id\", \"tipe_diskusi\" => \"Tipe Diskusi\", \"comment\" => \"Comment\", \"gambar_soal\" => \"Gambar Soal\", \"rating_soal\" => \"Rating Soal\", \"user_id\" => \"User Id\", \"publishing\" => \"Publishing\"];\n $filter_info = [];\n\n $table_filters_txt = (object) [];\n\n foreach ($filter_label as $fld => $label) {\n if (!$table_filters->$fld) {\n continue;\n }\n\n $filter_info[$fld] = '<span class=\"badge badge-primary\">' . $label . ' = ' . (isset($table_filters_txt->$fld) ? $table_filters_txt->$fld : $table_filters->$fld) . '</span>';\n\n }\n\n $data['filter_info'] = implode(\"\\n\", $filter_info);\n\n echo view('Member/Diskusi/Index', $data);\n\n }", "title": "" }, { "docid": "716bc317c9980436fbaf8d8650c47eef", "score": "0.5549865", "text": "public function show(Request $request)\n {\n $ordenadores = array(\"v.id\",\"v.factura_no\",\"c.nombres\",\"v.monto\",\"fp.nombre\",\"e.nombre\");\n\n $columna = $request['order'][0][\"column\"];\n \n $criterio = $request['search']['value'];\n\n $ventas = DB::table('venta as v')\n ->join('cliente as c','v.cliente_id','c.id')\n ->join('forma_pago as fp','v.forma_pago_id','fp.id')\n ->join('factura_venta as fv','fv.venta_id','v.id')\n ->join('estado as e','fv.estado_id','e.id')\n ->select('v.id','v.factura_no',DB::raw('CONCAT_WS(\" \",c.nombres,\"\",c.apellidos) as cliente'),'v.monto','fp.nombre as forma_pago','e.nombre as estado')\n ->where($ordenadores[$columna], 'LIKE', '%' . $criterio . '%')\n ->orderBy($ordenadores[$columna], $request['order'][0][\"dir\"])\n ->skip($request['start'])\n ->take($request['length'])\n ->get();\n \n $count = DB::table('venta as v')\n ->join('cliente as c','v.cliente_id','c.id')\n ->join('forma_pago as fp','v.forma_pago_id','fp.id')\n ->join('factura_venta as fv','fv.venta_id','v.id')\n ->join('estado as e','fv.estado_id','e.id') \n ->where($ordenadores[$columna], 'LIKE', '%' . $criterio . '%')\n ->count();\n \n $data = array(\n 'draw' => $request->draw,\n 'recordsTotal' => $count,\n 'recordsFiltered' => $count,\n 'data' => $ventas,\n );\n return response()->json($data, 200);\n }", "title": "" }, { "docid": "54965d64f9a67d367a813aeabba1f383", "score": "0.55458325", "text": "public function index() {\n \n $fgs = FilterGroup::all();\n\n foreach($fgs as $fg) {\n $fg->filters = $fg->filters()->get();\n }\n\n return response()->json([\n 'success' => true,\n 'data' => $fgs\n ], 200);\n\n }", "title": "" }, { "docid": "a78f78348c7c4ef0c062d4963d1eca88", "score": "0.55457354", "text": "public function reports_filter( Request $request )\n {\n\n \n if( $request->filter_by == \"ALUMNI\"){\n\n\n $alumni = $this->fetch_filter_request_alumni( $request->filter_by, $request->filter_by_alumni,$request->filter_alumni_by_year, $request->filter_by_employment, $request->filter_by_job_relevance);\n \n\n $content = view('admin.partials.alumni_report_table')->with(compact('alumni'))->render();\n\n\n\n $title = $request->filter_by_alumni . \" ALUMNI RECORDS\";\n\n $count = count($alumni) . ' records found.';\n\n $printed_by = \"Printed by : \" . Auth::user()->lastname . ', ' .Auth::user()->firstname;\n\n return response()->json(['content'=> $content, 'title'=>$title , 'count' => $count, 'printed_by' => $printed_by ]);\n\n }else{\n\n $users = $this->fetch_filter_request_user( $request->filter_by_user_role, $request->filter_by_user_status );\n\n $content = view('admin.partials.user_report_table')->with(compact('users'))->render();\n\n $role = \"\";\n $status = $request->filter_by_user_status;\n $title = \"\";\n\n if( $request->filter_by_user_role == '2') $role = \"ADMIN\";\n else if( $request->filter_by_user_role == '3') $role = \"STAFF\";\n else if( $request->filter_by_user_role == '4') $role = \"ALUMNI\";\n else $role = \"USER\";\n\n if( $request->filter_by_user_status == 'ALL') $status = \"\";\n\n\n $title = $status . \" \" . $role . \" RECORDS\";\n\n $count = count($users) . ' records found.';\n\n $printed_by = \"Printed by :\" . Auth::user()->lastname . ', ' .Auth::user()->firstname;\n\n return response()->json(['content'=> $content, 'title'=>$title , 'count' => $count, 'printed_by' => $printed_by ]);\n\n }\n\n\n\n \n }", "title": "" }, { "docid": "4d9ec132c2ab9186dd726698d8b0fb2f", "score": "0.55450135", "text": "public function filter_alumni( Request $request )\n {\n \n if( $request->Batch_Year == \"ALL\"){\n \n $Alumni = alumni::all();\n $content = view('admin.partials.alumnilist')->with(compact('Alumni'))->render();\n return response()->json(['content'=> $content]);\n\n\n }\n\n $Alumni = alumni::where('Year_Graduated', $request->Batch_Year)->get();\n $content = view('admin.partials.alumnilist')->with(compact('Alumni'))->render();\n\n\n return response()->json(['content'=> $content]);\n }", "title": "" }, { "docid": "d79731a82c3940dc32dbf4f3a09139d5", "score": "0.5530671", "text": "public function index(Request $request)\n {\n if(request()->ajax())\n {\n if(!empty($request->filter_fullname))\n {\n $data = DB::table('collaborator')\n ->join('parameters','parameters.param_value', '=', 'collaborator.SoliStatus')\n ->where('Name', $request->filter_fullname)\n ->where('parameters.group','=', 'soli_status')\n ->distinct()\n ->get();\n return Datatables::of($data)\n ->addIndexColumn()\n ->addColumn('action', function($row){\n if (request()->user()->can('punb_panelstatus-edit')) {\n // $btn = '<a href=\"'. route('punbfinancing.show', $row->ID ) .'\" data-toggle=\"tooltip\" data-id=\"'.$row->ID.'\" data-original-title=\"Edit\" class=\"edit btn btn-primary btn-sm editItem\"><i class=\"fa fa-search\"></i></a>';\n $btn = '<a href=\"'. route('panelstatus.edit', $row->ICode ) .'\"><button class=\"btn btn-primary btn-sm\"><i class=\"fa fa-search\"></i></button></button></a></td>';\n return $btn;\n }else{\n \n };\n })\n ->rawColumns(['action'])\n ->make(true);\n }\n else\n {\n $data = DB::table('collaborator')\n ->join('parameters','parameters.param_value', '=', 'collaborator.SoliStatus')\n ->where('parameters.group','=', 'soli_status')\n ->distinct()\n ->get();\n return Datatables::of($data)\n ->addIndexColumn()\n ->addColumn('action', function($row){\n if (request()->user()->can('punb_panelstatus-edit')) {\n // $btn = '<a href=\"'. route('punbfinancing.show', $row->ID ) .'\" data-toggle=\"tooltip\" data-id=\"'.$row->ID.'\" data-original-title=\"Edit\" class=\"edit btn btn-primary btn-sm editItem\"><i class=\"fa fa-search\"></i></a>';\n $btn = '<a href=\"'. route('panelstatus.edit', $row->ICode ) .'\"><button class=\"btn btn-primary btn-sm\"><i class=\"fa fa-search\"></i></button></button></a></td>';\n return $btn;\n }else{\n \n };\n })\n ->rawColumns(['action'])\n ->make(true);\n }\n return datatables()->of($data)->make(true);\n }\n\n // view list in the table\n // $panels = DB::table('collaborator')\n // ->distinct()\n // ->paginate(5);\n\n\n // view list in the dropdown menu\n $panel_list = DB::table('collaborator')\n ->get();\n\n return view('maintenance.panel_status.index',compact('panel_list'));\n // ->with('i', (request()->input('page', 1) - 1) * 5);\n\n }", "title": "" }, { "docid": "745e6ababbf78f7693da1ffeb1f0dbb1", "score": "0.5526161", "text": "public function filter()\n {\n //\n }", "title": "" }, { "docid": "745e6ababbf78f7693da1ffeb1f0dbb1", "score": "0.5526161", "text": "public function filter()\n {\n //\n }", "title": "" }, { "docid": "745e6ababbf78f7693da1ffeb1f0dbb1", "score": "0.5526161", "text": "public function filter()\n {\n //\n }", "title": "" }, { "docid": "25f9c0fd2c3bfb19396dc3d7b4e86b6c", "score": "0.5525817", "text": "public function html()\n {\n ->columns([\n 'products_id',\n 'name',\n 'details',\n 'price',\n ])\n ->parameters([\n 'dom' => 'Bfrtip',\n 'buttons' => ['csv','excel', 'pdf'],\n ]);}", "title": "" }, { "docid": "457ad9ab072865e0108ccaac29a72b84", "score": "0.5525472", "text": "public function serviceFilter () {\n\t\t$this->params = json_decode($_POST['params']);\n\t\t$sql_addon = $this->makeAdditionalConditionsStringSQL($this->params);\n\t\t$filtered_data = DBMalfunctions::getFilteredMalfunctionHistory('malfunctions', $this->search_value, $this->skip, $sql_addon);\n\t\t$this->ajaxResponse($filtered_data);\n\t}", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "3433918f06442c40c6204b43a4484100", "score": "0.0", "text": "public function edit($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "d752fd3972b546ef194ae14ab221ca30", "score": "0.78550774", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "12344b4793bc2e378f8fdd2f04320aeb", "score": "0.7273195", "text": "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "title": "" }, { "docid": "4d5d18dc7cabac2506b6086630c9acb9", "score": "0.7242132", "text": "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "title": "" }, { "docid": "a3a195b464d234c71899dfdebe78664c", "score": "0.7170847", "text": "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "title": "" }, { "docid": "735e1e8b4f110a9df09910db5ed28525", "score": "0.70622855", "text": "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "title": "" }, { "docid": "df9ef4b827a35145a7d49229d8d654e6", "score": "0.7053459", "text": "public function edit()\n {\n return view('hirmvc::edit');\n }", "title": "" }, { "docid": "2700b4584dcb331a456886a0b54f1cac", "score": "0.6982539", "text": "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "title": "" }, { "docid": "7015d85230c410c83e5c3b96459d2488", "score": "0.69467914", "text": "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.6945275", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "c965649a7ba5f0e8f2fd7cd5676199ff", "score": "0.6941114", "text": "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "title": "" }, { "docid": "0b802a8c6fbeff606ae9845125b51b1f", "score": "0.6928077", "text": "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "title": "" }, { "docid": "7a650e1d62608ea65e940ca06f689f99", "score": "0.69019294", "text": "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "title": "" }, { "docid": "f60e724dc93ad65b7bd2e7142b16eabc", "score": "0.68976134", "text": "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "f60e724dc93ad65b7bd2e7142b16eabc", "score": "0.68976134", "text": "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "8305d0cebc3fd201d190bc1ff4575a6f", "score": "0.6877213", "text": "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "title": "" }, { "docid": "f95123f624fcac74c93244c3dcd7923c", "score": "0.68636996", "text": "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "title": "" }, { "docid": "029c40433076476698bab79003ba1eac", "score": "0.68592185", "text": "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "title": "" }, { "docid": "0f6e23876619bd02375dcf677873df5a", "score": "0.68566656", "text": "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "title": "" }, { "docid": "58f182fa72be87d030c1b48e925f743d", "score": "0.6844697", "text": "public function edit($model, $form);", "title": "" }, { "docid": "40fdf360e2a2fe9a039cdea2bf794a48", "score": "0.68336326", "text": "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "title": "" }, { "docid": "e87e3665ac283ab07f5b91b9cb754a1f", "score": "0.6811471", "text": "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "title": "" }, { "docid": "72e898b8c2d147e0531320a9f99a3e5c", "score": "0.68060875", "text": "public function edit()\n { \n return view('admin.control.edit');\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68047357", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "873a08d0f357fca631ccc7259052d9ce", "score": "0.68018645", "text": "public function edit()\n {\n return view('common::edit');\n }", "title": "" }, { "docid": "56f882f09bfc4c18dddc6ba2d8e29555", "score": "0.6795623", "text": "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "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": "a73ca49bf4104fffbbb3887f1d83346f", "score": "0.6787701", "text": "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "title": "" }, { "docid": "9167ed1c94ca05e3aa0a462771337864", "score": "0.67837197", "text": "public function edit($id)\n {\n // show form edit user info\n }", "title": "" }, { "docid": "d44ef601c5e9f7e942e5a68e74ecc457", "score": "0.67791027", "text": "public function edit()\n {\n return view('escrow::edit');\n }", "title": "" }, { "docid": "b93606e8c8e9ed17a06d96c4b3b11fc2", "score": "0.677645", "text": "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "title": "" }, { "docid": "12bdbc0881bdb0537af82ab982da6faa", "score": "0.6768301", "text": "public function edit()\n {\n return view('commonmodule::edit');\n }", "title": "" }, { "docid": "05f57ca78e160cfe2110eccf7f3a10ea", "score": "0.6760122", "text": "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "title": "" }, { "docid": "af1ae147b46a5dbc0c8b9ec58527eeb0", "score": "0.67458534", "text": "public function edit()\n {\n return view('catalog::edit');\n }", "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": "f9e5424b4794ef21c15b578cbc28a1d4", "score": "0.67425704", "text": "public function actionEdit($id) { }", "title": "" }, { "docid": "8b27a5d0d56573cd0526956c4be2a450", "score": "0.6739898", "text": "public function edit()\n {\n return view('admincp::edit');\n }", "title": "" }, { "docid": "420751bbdaa6a3e9ce74ca98cfc852ff", "score": "0.6735328", "text": "public function edit()\n {\n return view('scaffold::edit');\n }", "title": "" }, { "docid": "0c03561e0ce1cb5632190d2eb5636b81", "score": "0.6725465", "text": "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "title": "" }, { "docid": "59b6b275f7f7bdc3e6848165ec89de06", "score": "0.6712817", "text": "public function edit()\n {\n return view('Person.edit');\n }", "title": "" }, { "docid": "cc9a7c5c0bba9badc64824e64ad66ec7", "score": "0.6693891", "text": "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "title": "" }, { "docid": "08fdc9a6d2cb6c51ef14f944a771fea4", "score": "0.6692419", "text": "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "title": "" }, { "docid": "530ff07fca3d2cdb52201dd4570056f6", "score": "0.6688581", "text": "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "title": "" }, { "docid": "2842c83192ad21ca42ea8be34a5324f1", "score": "0.66879624", "text": "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "title": "" }, { "docid": "985a86faecdde4f47bba95d71e646057", "score": "0.6687282", "text": "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "title": "" }, { "docid": "4f3dccb85a68cbb954df9ad9a4d0c25d", "score": "0.6684741", "text": "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "title": "" }, { "docid": "b53d80e937efeb059b69199175992b44", "score": "0.6682786", "text": "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "title": "" }, { "docid": "772ff40e86b6072150a529eefbe46c86", "score": "0.6668777", "text": "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "title": "" }, { "docid": "a866851a953591797ad217ce1686028b", "score": "0.6668427", "text": "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "title": "" }, { "docid": "98c3057a696eb14943e7e5fea5851c0b", "score": "0.6665287", "text": "public function edit($id)\n {\n return $this->showForm($id);\n }", "title": "" }, { "docid": "98c3057a696eb14943e7e5fea5851c0b", "score": "0.6665287", "text": "public function edit($id)\n {\n return $this->showForm($id);\n }", "title": "" }, { "docid": "e79377a38e4c0fdd514a4167f11b8442", "score": "0.66610634", "text": "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "title": "" }, { "docid": "0cf3ddf2600f6d70303c0ca4aa94aa89", "score": "0.6660843", "text": "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "title": "" }, { "docid": "fdab95c905028bb144a7c323dab4884b", "score": "0.66589665", "text": "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "title": "" }, { "docid": "080eb7499f3bccf04762f81a141f1e34", "score": "0.66567147", "text": "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "title": "" }, { "docid": "f61beedf1cb6c464918dfa2ec389b88b", "score": "0.66545695", "text": "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "title": "" }, { "docid": "f5568b3447ac8c8c12f9bc6a8de66b3c", "score": "0.66527975", "text": "public function edit($id)\n {\n return view('models::edit');\n }", "title": "" }, { "docid": "56e8e9b08c0406905beb3036122cd7af", "score": "0.6642529", "text": "public function edit()\n {\n return view('home::edit');\n }", "title": "" }, { "docid": "7ca622cf6dbeec972ce3ab725ada0358", "score": "0.6633056", "text": "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "title": "" }, { "docid": "05d5ea89da5bc76e1a1148ffdc9d5801", "score": "0.6630304", "text": "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "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": "ec626b485a600d64d167d3b54d2af93f", "score": "0.66192114", "text": "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "title": "" }, { "docid": "ccaf467c5fc185957b7bbec44b0dddcf", "score": "0.6619003", "text": "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "title": "" }, { "docid": "b5f11e2c797c5ed655b45c6b0df67626", "score": "0.66153085", "text": "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "d6c2c7e0ddbac0b65be0ee74a7fcd796", "score": "0.6614968", "text": "public function edit($id)\n {\n return view('consultas::edit');\n }", "title": "" }, { "docid": "bec91377e793a1e58fadee263ea69b6e", "score": "0.6609744", "text": "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "title": "" }, { "docid": "035eb13b2ca5fd52c8005c0d17b6d221", "score": "0.66086483", "text": "public function edit()\n {\n return view('dashboard::edit');\n }", "title": "" }, { "docid": "f705c05684e4a60636265036a98fcf09", "score": "0.66060555", "text": "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "title": "" }, { "docid": "73169648ddd0200192761e17f4dfed05", "score": "0.6596137", "text": "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "title": "" }, { "docid": "b3cc35921277d5c959b0d4b0de6d3d0f", "score": "0.65950733", "text": "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "title": "" }, { "docid": "e7be58945b899b23f7cc223134375494", "score": "0.6594648", "text": "public function edit() {\n return view('routes::edit');\n }", "title": "" }, { "docid": "6b57f743c86e1cb53617211701b2f779", "score": "0.65902114", "text": "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "title": "" }, { "docid": "4d4834770663719d1d6fa92e65878895", "score": "0.6589043", "text": "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "title": "" }, { "docid": "1c60b7ff7cd4005ccd1de1562140d086", "score": "0.6587102", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "a6c6b148776a004b9feea4845a365f72", "score": "0.65799844", "text": "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "title": "" }, { "docid": "81d1f6f06bfcdaa0b1c2aa0910b87036", "score": "0.65799403", "text": "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "title": "" }, { "docid": "95e99992e10680bf999526cf4d94a731", "score": "0.65799177", "text": "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "title": "" }, { "docid": "c1518fb861e052fa4f53eaaa8fcf65df", "score": "0.657708", "text": "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "title": "" }, { "docid": "fc385869569abe1127cb801f92e4d8a2", "score": "0.65760696", "text": "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "title": "" }, { "docid": "1458051dfc97d0a20c103d39be5d2324", "score": "0.65739626", "text": "public function edit()\n {\n return view('website::edit');\n }", "title": "" }, { "docid": "87f80527ccf944a69125ffa41418e52d", "score": "0.656931", "text": "public function edit()\n {\n return view('inventory::edit');\n }", "title": "" }, { "docid": "7a2a16aa982fa32e1bbf88f19cbc245d", "score": "0.6567826", "text": "public function edit()\n {\n return view('initializer::edit');\n }", "title": "" }, { "docid": "ce8838daca364c19746373e3d442ca46", "score": "0.65663105", "text": "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "title": "" }, { "docid": "ab321968ce813a175af5fb95680495f5", "score": "0.65660435", "text": "public function edit($id)\n {\n return view('backend::edit');\n }", "title": "" }, { "docid": "dafb67bfcec13ce7ccc2d28dc5d02dc8", "score": "0.65615267", "text": "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "title": "" }, { "docid": "f5e66e76e12762a9390e895ff8b010a1", "score": "0.6561447", "text": "public function edit($id)\n {\n return view('crm::edit');\n }", "title": "" }, { "docid": "f5e66e76e12762a9390e895ff8b010a1", "score": "0.6561447", "text": "public function edit($id)\n {\n return view('crm::edit');\n }", "title": "" }, { "docid": "6523d6126b9b35352d6e67eca4d76647", "score": "0.65576506", "text": "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "title": "" }, { "docid": "9032cc93e2789bb98c62248bccbec226", "score": "0.655686", "text": "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "title": "" }, { "docid": "3fa16587d81f6f3170fd8d7c55fc57c9", "score": "0.6556527", "text": "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "title": "" }, { "docid": "abfaba17709e0fd3b8f201341ba593da", "score": "0.6555543", "text": "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "title": "" }, { "docid": "f0635c3926f56ba925042e937788c12f", "score": "0.6555445", "text": "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "title": "" }, { "docid": "f02b43ff1accd9cadee724fad05480c8", "score": "0.65552044", "text": "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "title": "" }, { "docid": "5ae1d13c46c87141909390a24f3cd093", "score": "0.65543956", "text": "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "title": "" }, { "docid": "61c9cefa779d8688643cb83ba73b2c77", "score": "0.65543705", "text": "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "title": "" }, { "docid": "0888eb9ecf2df4527b7e452af133b163", "score": "0.6548264", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "131a66068bf3a29035ad63b0b9508d37", "score": "0.65475875", "text": "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "title": "" }, { "docid": "7baf494547bacaa08c51d0b12666cfb3", "score": "0.65447706", "text": "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}", "title": "" } ]
004337e1e97391decaaad4135393b173
Configure the command by defining the name, options and arguments
[ { "docid": "be50e154790a5a8284c9f64277f4c3f6", "score": "0.0", "text": "protected function configure(): void\n {\n $this->setDescription('Process bounced emails.')\n ->addOption(\n 'maxEmails',\n 'm',\n InputOption::VALUE_REQUIRED,\n 'Maximum number of emails to be processed (Default: 100)',\n 100\n );\n }", "title": "" } ]
[ { "docid": "b9ef7cdc4cb2cc9a2a63571c12a3c9da", "score": "0.82549083", "text": "protected function configure()\n {\n $this\n ->setName(self::COMMAND_NAME)\n ->setDescription('Prints Hello \"name\" where a name is a dynamic parameter')\n ->addOption('name', null, InputOption::VALUE_OPTIONAL, 'Name to print in Hello World command');\n }", "title": "" }, { "docid": "f8ef81040070f69dc74dc717a7103a0f", "score": "0.82499856", "text": "public function configure()\n {\n $this->setName(self::COMMAND_NAME);\n $this->setDescription(self::COMMAND_DESCRIPTION);\n\n $this->addOption(self::OPTION_API_TYPE, 'a', InputOption::VALUE_OPTIONAL, 'Overwrite configured api type');\n $this->addOption(self::OPTION_REMOTE_SYSTEM_URL, 'u', InputOption::VALUE_OPTIONAL,\n 'Overwrite configured remote url');\n $this->addOption(self::OPTION_ACCESS_TOKEN, 't', InputOption::VALUE_OPTIONAL,\n 'Overwrite configured access token');\n\n parent::configure();\n }", "title": "" }, { "docid": "ed9633b3140cdf19570baf757e3bb466", "score": "0.7852492", "text": "protected function configure()\n {\n // 指令配置\n $this->setName('Strategy')\n// ->addOption('method')\n ->addOption('method', null, Option::VALUE_REQUIRED, 'method name')\n ->setDescription('the Strategy : policy | initCompanyPolicy | test ');\n }", "title": "" }, { "docid": "31a4d3c13812433fdacef377be0e06f2", "score": "0.7808126", "text": "protected function configure()\n {\n $this->setName('server')\n ->setDescription('appserver.io server commands')\n ->addArgument('action', InputArgument::REQUIRED, implode('|', $this->getAvailableArguments()))\n ->addOption('with-fpm', null, InputOption::VALUE_NONE, implode('|', $this->getAvailableArguments()) . ' appserver.io fpm daemon')\n ->addOption('directory', null, InputOption::VALUE_OPTIONAL, 'appserver.io root directory', defined('APPSERVER_BP') ? APPSERVER_BP : '/opt/appserver');\n }", "title": "" }, { "docid": "ec3767902a3f706cbc32bf8641dbc311", "score": "0.77758294", "text": "protected function configure()\n {\n $this->setName('run')\n ->setDescription('Make the monkeys type')\n ->addOption(\n 'mode',\n null,\n InputOption::VALUE_OPTIONAL,\n 'Run-mode',\n 'synchronous'\n );\n }", "title": "" }, { "docid": "5ae856c803fddd2a4aa94a616b780e0c", "score": "0.7758316", "text": "protected function configure()\n {\n $this->setName( 'selfupdate' )\n ->setDescription( 'Update this command itself' )\n ->addOption( 'lang', 'l', InputOption::VALUE_OPTIONAL, 'Display language.', 'en');\n }", "title": "" }, { "docid": "2e578b1f73ec4c3fd1fdff5ea6bd05ea", "score": "0.7658419", "text": "protected function configure()\n {\n $this->setName('exec');\n $this->setDescription('Run specified action');\n $this->setHelp('Not implemented');\n\n $this->addArgument(\n self::QUEUE,\n InputArgument::REQUIRED,\n 'The queue where the event handler is defined'\n );\n\n $this->addArgument(\n self::ACTION,\n InputArgument::REQUIRED,\n 'The action to be executed'\n );\n\n $this->addOption(\n self::HEADERS,\n '-H',\n (InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY),\n 'The list of headers',\n []\n );\n\n $this->addOption(\n self::BODY,\n '-b',\n InputOption::VALUE_OPTIONAL,\n 'The payload of the event',\n '{}'\n );\n }", "title": "" }, { "docid": "a6162ae5067f67d03e5e445eb9cae7f7", "score": "0.7618072", "text": "protected function configure(): void\n {\n // initialize the command with the required/optional options\n $this->setName(CommandNames::IMPORT_CREATE_CONFIG)\n ->setDescription('Create the default config file which is used by the diff command');\n\n // invoke the parent method\n parent::configure();\n }", "title": "" }, { "docid": "85c720cca075d689e6e918c1714ca5b0", "score": "0.7611048", "text": "protected function configure()\n {\n $this->setName('run')\n ->setDescription('Runs the licenser against the given source path')\n ->addArgument(\n 'sources',\n InputArgument::REQUIRED,\n 'The path to the source files that the licenser will process'\n )\n ->addArgument(\n 'license',\n InputArgument::REQUIRED,\n 'The name of a built in license or a path to the file containing your custom license header doc block ' .\n 'as it will appear when prepended to your source files'\n )\n ->addOption(\n 'owners',\n 'o',\n InputOption::VALUE_OPTIONAL,\n 'The owner email addresses of the licensed files. This is used in conjunction with the built-in ' .\n 'license to add the email address(es) of the license(es) to the license header. Can be a comma ' .\n 'separated list of email addresses or a single email address'\n )\n ->addOption(\n 'check',\n 'c',\n InputOption::VALUE_NONE,\n 'Checks if all files have the right license information'\n )\n ->addOption('remove-existing', 'r', InputOption::VALUE_NONE, 'Remove existing license headers');\n }", "title": "" }, { "docid": "bf531e128e7f500a89d82d01c60bc122", "score": "0.75972", "text": "protected function configure()\n {\n $this\n ->setName('config')\n ->setDefinition($this->createDefinition())\n ->setDescription('Handle configuration options')\n ->setHelp(<<<EOT\nThe <info>%command.name%</info> command manipulates configuration options:\n\n <info>%command.full_name% get [option]</info> reads an option value.\n <info>%command.full_name% set [option] [value]</info> writes an option value.\n <info>%command.full_name% generate</info> generates a new user token.\nEOT\n );\n }", "title": "" }, { "docid": "aaf742b9ab32d0066c4663e376b260f6", "score": "0.7556278", "text": "protected function configure()\n {\n $this->addOption('t|target', '=s',\n 'Target location where to generate the new plugin'\n );\n $this->addOption('n|name', '=s',\n 'The name for the new plugin'\n );\n $this->addOption('a|author', '-s',\n 'Name of the author'\n );\n $this->addOption('v|version', '-s',\n 'Version number of this plugin'\n );\n $this->addOption('force', '',\n 'Forces generation of the new plugin, even if there is an '\n . 'existing plugin at that location'\n );\n }", "title": "" }, { "docid": "14e5625500705d06009751cf488b2f7c", "score": "0.75226057", "text": "protected function configure()\n { \n $configuration = \n $this\n ->setName($this->config['setting']['command'])\n ->setDescription($this->config['setting']['description']);\n\n foreach($this->config['arguments'] as $key => $val){\n $configuration->addArgument(\n $val['name'],\n InputArgument::OPTIONAL,\n $val['description']\n );\n }\n }", "title": "" }, { "docid": "be6cc4729cd34766b7ef710865633dbb", "score": "0.75164914", "text": "protected function configure()\n {\n $this\n ->setName('spider:build')\n ->setDescription('build queue for spider')\n ->addOption(\n self::OPTION_ENQUEUE,\n null,\n InputOption::VALUE_NONE,\n 'enqueue urls, otherwise only report'\n )\n ->addOption(\n self::OPTION_ID,\n null,\n InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED,\n 'shop id'\n )\n ->addOption(\n self::OPTION_SHOW_DEBUG,\n null,\n InputOption::VALUE_NONE,\n 'output debug data'\n )\n ->addOption(\n self::OPTION_LIMIT_URL,\n null,\n InputOption::VALUE_OPTIONAL | InputOption::VALUE_REQUIRED,\n 'limit urls to push into queue'\n )\n ->addOption(\n self::OPTION_URL,\n null,\n InputOption::VALUE_OPTIONAL | InputOption::VALUE_REQUIRED,\n 'url without domain with leading slash to push into queue'\n )\n ->addOption(\n self::OPTION_MOBILE_ONLY,\n null,\n InputOption::VALUE_NONE,\n 'clear only mobile version'\n )\n ->addOption(\n self::OPTION_DESKTOP_ONLY,\n null,\n InputOption::VALUE_NONE,\n 'clear only desktop version'\n );\n }", "title": "" }, { "docid": "ccf22f7751a48a71fa8f5ab522b23d68", "score": "0.7505189", "text": "protected function configure()\n {\n $this\n ->setDescription('program to price a cart of products')\n ->setHelp('This command take a cart of product as arguments, calculate the total and offers')\n ->addOption(\n 'bill-currency',\n null,\n InputOption::VALUE_OPTIONAL,\n 'If set, the task will yell in uppercase letters'\n )\n ->addArgument(\n 'names',\n InputArgument::IS_ARRAY,\n 'names'\n );\n }", "title": "" }, { "docid": "984d7557eb150a62962bf62b5c2a552c", "score": "0.7452136", "text": "protected function configure()\n {\n $this->setDescription('Get a demo JWT token.');\n\n // the full command description shown when running the command with\n // the \"--help\" option\n $this->setHelp('This command allows you to get a demo JWT token...');\n\n // configure an argument\n $this->addOption('username', null, InputOption::VALUE_OPTIONAL, 'The username.', 'none');\n $this->addOption('client', null, InputOption::VALUE_REQUIRED,\n 'The CockpitCE Client (cockpitview, cockpitadmin or cockpitcore).','cockpitview');\n $this->addArgument('dummy', InputArgument::OPTIONAL, 'dummy.');\n }", "title": "" }, { "docid": "db81d2ccd84e820edf18bcd7fdb87842", "score": "0.7435972", "text": "protected function configure()\r\n {\r\n $this\r\n ->setName('generate')\r\n ->setAliases(['g'])\r\n ->setDescription('Generate extas[.app][.storage].json from php file.')\r\n ->setHelp('This command allows you generate extas json config from php file.')\r\n ->addOption(\r\n static::OPTION__GENERATE_PATH, 'p', InputOption::VALUE_OPTIONAL,\r\n 'Path to save generated configs',\r\n getcwd() . '/extas-build'\r\n )\r\n ->addOption(\r\n static::OPTION__SEARCH_PATH, 's', InputOption::VALUE_OPTIONAL,\r\n 'Path to search configs',\r\n getcwd()\r\n )\r\n ->addOption(\r\n static::OPTION__GENERATE_PATTERN, 'r', InputOption::VALUE_OPTIONAL,\r\n 'Pattern for configs. Result files will have the same name with json extension.',\r\n 'extas*'\r\n )\r\n ;\r\n }", "title": "" }, { "docid": "7344d0fa54f6294c36b79d86bf27c58c", "score": "0.74152297", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name','stba'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'mondongo'),\n // add your own options here\n ));\n\n $this->namespace = 'tv';\n $this->name = 'SpNameToChannel';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [tv:SpNameToChannel|INFO] task does things.\nCall it with:\n\n [php symfony tv:SpNameToChannel|INFO]\nEOF;\n }", "title": "" }, { "docid": "33ee055d64549d91da57ca9820e8b639", "score": "0.7395728", "text": "protected function configure()\n {\n $this->setName('bugminer')\n ->addArgument(\n 'database',\n InputArgument::REQUIRED,\n 'Path to the SQLite3 database'\n )\n ->addArgument(\n 'repository',\n InputArgument::REQUIRED,\n 'Path to the Git repository'\n )\n ->addOption(\n 'names',\n null,\n InputOption::VALUE_REQUIRED,\n 'A comma-separated list of file names to check',\n array('*.php')\n )\n ->addOption(\n 'names-exclude',\n null,\n InputOption::VALUE_REQUIRED,\n 'A comma-separated list of file names to exclude',\n array()\n )\n ->addOption(\n 'exclude',\n null,\n InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,\n 'Exclude a directory from code analysis'\n )\n ->addOption(\n 'progress',\n null,\n InputOption::VALUE_NONE,\n 'Show progress bar'\n );\n }", "title": "" }, { "docid": "1b917d19600dc96dfecfe74ca4554fd7", "score": "0.73502946", "text": "protected function configure()\n {\n $this\n ->setName('new')\n ->setDescription('Create a new Micro-services VPGAME.')\n ->addArgument('name', InputArgument::REQUIRED)\n ->addArgument('remote', InputArgument::REQUIRED);\n }", "title": "" }, { "docid": "f27d1cc9f93c0409022965120e1abcba", "score": "0.73371595", "text": "protected function configure() : void\n {\n $this->setDescription('Creates a new generator command')\n ->addArgument('name', InputArgument::REQUIRED, 'Name of command being created');\n }", "title": "" }, { "docid": "3d1384b73eabdcc72f331b2f4d78213c", "score": "0.73200387", "text": "protected function configure()\n {\n $this->addArguments(array(\n new sfCommandArgument('from', sfCommandArgument::REQUIRED, 'from identifiant'),\n new sfCommandArgument('to', sfCommandArgument::REQUIRED, 'to identifiant'),\n ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'declarvin'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'default'),\n // add your own options here\n ));\n\n $this->namespace = 'etablissement';\n $this->name = 'switch-id';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\n\nEOF;\n }", "title": "" }, { "docid": "41e51cb0c71524424c2a74d3a2019e7d", "score": "0.7313799", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'game';\n $this->name = 'proxyold';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [game:proxy|INFO] task does things.\nCall it with:\n\n [php symfony game:proxy|INFO]\nEOF;\n }", "title": "" }, { "docid": "2867424e6d8e058734f6935379b575f3", "score": "0.73116666", "text": "protected function configure()\n {\n $this\n ->setName('config')\n ->setDescription('Add a config parameter to the config.json')\n ->addArgument('item', InputArgument::REQUIRED)\n ->addArgument('value', InputArgument::REQUIRED);\n }", "title": "" }, { "docid": "f9783a4a3586e6bc181b26303d64b5b0", "score": "0.7308858", "text": "protected function configure()\n {\n $this\n ->setName('pseudo:password')\n ->setDescription(\"Permet de créer un dummy user avec un mot de passe encrypté\")\n ->addArgument('pseudo', InputArgument::REQUIRED, 'quel pseudo ?')\n ->addArgument('password', InputArgument::REQUIRED, 'quel mot de passe ?')\n ->addOption('exist', 'ex', InputOption::VALUE_NONE,'mise a jour du mot de passe de l\\'utilisateur');\n\n }", "title": "" }, { "docid": "012271fb0febe5e6783fac519c9c6590", "score": "0.72964966", "text": "protected function configure()\n {\n parent::configure();\n\n $this->setName(self::COMMAND_RUN);\n $this->setDescription('Verify QliroOne API');\n }", "title": "" }, { "docid": "d78de5b0d48b401275cc4ba57de48700", "score": "0.7284535", "text": "protected function configure()\n {\n $this->setName('toolkit')\n ->setDescription('Runs code quality tools')\n ->setDefinition([])\n ->addArgument(\n 'invokedFrom',\n InputArgument::OPTIONAL,\n 'Where was this command invoked from?'\n )\n ->setHelp('');\n }", "title": "" }, { "docid": "aacfc0e31c6ec1b57f67295c17332f8a", "score": "0.72467345", "text": "protected function configure()\n {\n $this\n ->setName('new')\n ->setDescription('Create a new Taurus application')\n ->addArgument('name', InputArgument::REQUIRED)\n ->addOption('dev', null, InputOption::VALUE_NONE, 'Installs the latest \"development\" release')\n ->addOption('git', null, InputOption::VALUE_NONE, 'Initialize a Git repository')\n ->addOption('branch', null, InputOption::VALUE_REQUIRED, 'The branch that should be created for a new repository', $this->defaultBranch())\n ->addOption('github', null, InputOption::VALUE_OPTIONAL, 'Create a new repository on GitHub', false)\n ->addOption('organization', null, InputOption::VALUE_REQUIRED, 'The GitHub organization to create the new repository for')\n ->addOption('force', 'f', InputOption::VALUE_NONE, 'Forces install even if the directory already exists');\n }", "title": "" }, { "docid": "e33ab6274d62642b7f22e3122b80bf94", "score": "0.7240905", "text": "protected function configure()\n\t{\n\t\t$this->setName('make:model')\n\t\t\t->setDescription('Create a new model')\n\t\t\t->addArgument(\n\t\t\t\t'name',\n\t\t\t\tInputArgument::REQUIRED,\n\t\t\t\t'The name of the model class'\n\t\t\t)\n\t\t\t->addOption(\n\t\t\t\t'suffix',\n\t\t\t\tNULL,\n\t\t\t\tInputOption::VALUE_OPTIONAL,\n\t\t\t\t'Default: _m, the model suffix will be relaced with the defined'\n\t\t\t);\n\t}", "title": "" }, { "docid": "11fa1bcee09a40d4e3819a5567647566", "score": "0.7238313", "text": "protected function configureCommand(): void\n {\n }", "title": "" }, { "docid": "a93144bed8ae34841d123ccba3e103cc", "score": "0.7216707", "text": "protected function configure()\n {\n $this\n ->setName('apply')\n ->setDescription('Apply a skeleton to a kServer project')\n ->addArgument('project', InputArgument::OPTIONAL, 'The name of the kServer project')\n\t ->addArgument('skeleton', InputArgument::OPTIONAL, 'The name of the skeleton')\n\t ->addOption(\"list\", \"l\", InputOption::VALUE_NONE, 'Lists all available skeletons');\n }", "title": "" }, { "docid": "b7a795567fbedaeb805a466fcb7e5bee", "score": "0.7213304", "text": "protected function configure()\n {\n $this->setName('make:task')\n ->setDescription('Generate a task file skeleton.')\n ->setDefinition([\n\n new InputArgument('taskfile', InputArgument::REQUIRED, 'The task file name'), \n \n new InputOption('frequency', 'f', InputOption::VALUE_OPTIONAL, 'The task\\'s frequency', $this->defaults['frequency']),\n new InputOption('constraint', 'c', InputOption::VALUE_OPTIONAL, 'The task\\'s constraint', $this->defaults['constraint']),\n new InputOption('in', 'i', InputOption::VALUE_OPTIONAL, 'The command\\'s path', $this->defaults['in']),\n new InputOption('run', 'r', InputOption::VALUE_OPTIONAL, 'The task\\'s command', $this->defaults['run']),\n new InputOption('description', 'd', InputOption::VALUE_OPTIONAL, 'The task\\'s description', $this->defaults['description']),\n new InputOption('type', 't', InputOption::VALUE_OPTIONAL, 'The task type', $this->defaults['type']),\n\n ])\n ->setConfiguration(Configuration::getInstance())\n ->setHelp('This command makes a task file skeleton.');\n }", "title": "" }, { "docid": "fbceb63dbf74d57577b40000610c6c92", "score": "0.7205311", "text": "protected function configure()\n\t{\n\t // $this->addArguments(array(\n\t // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n\t // ));\n\n\t // // add your own options here\n\t // $this->addOptions(array(\n\t // new sfCommandOption('my_option', null, sfCommandOption::PARAMETER_REQUIRED, 'My option'),\n\t // ));\n\t // \n\n\t\t$this->addOptions(array(\n\t\t\tnew sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'Application Name','operations'),\n\t\t));\n\n\t\t$this->namespace = 'reAllocation';\n\t\t$this->name = 'paidProfiles';\n\t\t$this->briefDescription = '';\n\t\t$this->detailedDescription = <<<EOF\nThe [reAllocation:paidProfiles|INFO] task does things.\nCall it with:\n[php symfony reAllocation:paidProfiles|INFO]\nEOF;\n\t}", "title": "" }, { "docid": "40b4cff17a90a668b56d2a22545f8c9a", "score": "0.72011507", "text": "protected function configure()\n {\n $this->setName('cs:generate:user')\n ->setDescription('Create and register new user')\n ->addArgument('username', InputArgument::OPTIONAL, \"What's the username?\")\n ->addArgument('email', InputArgument::OPTIONAL, \"What's the user mail?\")\n ->addArgument('password', InputArgument::OPTIONAL, \"What's the user password?\")\n ->addOption('enabled', '-en', InputOption::VALUE_OPTIONAL, \"If the user is enabled?\")\n ->addOption('salt', '-sa', InputOption::VALUE_OPTIONAL, \"What's the user salt?\")\n ->addOption('confirmationToken', '-co', InputOption::VALUE_OPTIONAL, \"What's the user confirmationToken?\")\n ->addOption('expiresAt', '-ex', InputOption::VALUE_OPTIONAL, \"What's the user account expiration date?\")\n ->addArgument('roles', InputArgument::IS_ARRAY, \"What's the user roles?\");\n }", "title": "" }, { "docid": "216aa8a1ac549c156ae02516b95d0853", "score": "0.71970284", "text": "protected function configure()\n {\n $this->setName('template:generate')\n ->setDescription(\n 'Generates a skeleton template'\n )\n ->addOption(\n 'target', 't',\n InputOption::VALUE_REQUIRED,\n 'Target location where to generate the new template'\n )\n ->addOption(\n 'name', null, InputOption::VALUE_REQUIRED,\n 'The name for the new template'\n )\n ->addOption(\n 'author', 'a', InputOption::VALUE_OPTIONAL,\n 'Name of the author'\n )\n ->addOption(\n 'given-version', null, InputOption::VALUE_OPTIONAL,\n 'Version number of this template'\n )\n ->addOption(\n 'force', null, InputOption::VALUE_NONE,\n 'Forces generation of the new template, even if there '\n . 'is an existing template at that location'\n );\n }", "title": "" }, { "docid": "d254c7fab52baad648e70c17706bf4cb", "score": "0.7189753", "text": "protected function configure()\n {\n $this\n ->setName('new')\n ->setDescription('Create a new UniSys app skeleton.')\n ->addArgument('name', InputArgument::OPTIONAL)\n ->addOption(\n 'type',\n null,\n InputOption::VALUE_REQUIRED,\n 'Which type of skeleton you want?',\n null)\n ;\n }", "title": "" }, { "docid": "df50268e403c414449bdbd9baf99350f", "score": "0.7189302", "text": "protected function configure()\n {\n $this->setName('info')\n ->setDescription('Display your job information from chronos')\n ->addArgument('jobName', InputArgument::REQUIRED, 'selected job')\n ;\n }", "title": "" }, { "docid": "0591192467eed334e21bbb55ae29002a", "score": "0.7186104", "text": "protected function configure() {\n\t\t// $this->addArguments(array(\n\t\t// new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n\t\t// ));\n\n\t\t$this->addOptions(array(\n\t\t\tnew sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n\t\t\tnew sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n\t\t\tnew sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n\t\t\t// add your own options here\n\t\t));\n\n\t\t$this->namespace = '';\n\t\t$this->name = 'ComparationSync';\n\t\t$this->briefDescription = '';\n\t\t$this->detailedDescription = <<<EOF\n\t\tThe [ComparationSync|INFO] task does things.\n\t\tCall it with:[php symfony ComparationSync|INFO]\nEOF;\n\t}", "title": "" }, { "docid": "a4edc8b1ca4981c2005483f55f9ec97b", "score": "0.71856546", "text": "protected function configure()\n {\n $this->setName('mdf:fix')\n ->setDescription('Fix the different.')\n ->setHelp('This command help you to created tables or fields.');\n }", "title": "" }, { "docid": "cf127e1ac8769f39c73ba7dc0f4227d7", "score": "0.7141519", "text": "public function configure()\n {\n $this->setName('docman')\n ->setDescription('postman collection v2.0 to apidoc.js style comment')\n ->addArgument('inputFile', InputArgument::REQUIRED, 'The Postman Collection v2.0 file name')\n ->addArgument('outputFile', InputArgument::OPTIONAL, 'The output file name.', 'STDOUT')\n ->setHelp(' <info>docman</info> written by <options=bold,underscore>[email protected]</>.');\n }", "title": "" }, { "docid": "3cc38d1d0921cf93d1c66bd27e9b9329", "score": "0.71392316", "text": "protected function configure() {\n $this\n ->setName('field:rename')\n ->setDescription('Rename a field')\n ->addArgument('field', InputArgument::OPTIONAL)\n ->addOption('name', null, InputOption::VALUE_OPTIONAL, 'Change field name')\n ->addOption('tag', null, InputOption::VALUE_OPTIONAL, 'Restrict field list by tag')\n ->addOption('camelCaseToSnakeCase', null, InputOption::VALUE_NONE, 'Change field name notation')\n ->addOption('regexPattern', null, InputOption::VALUE_OPTIONAL, 'Change field name using regex – search pattern')\n ->addOption('regexReplacement', null, InputOption::VALUE_OPTIONAL, 'Change field name using regex – replacement')\n ->addOption('all', null, InputOption::VALUE_NONE, 'Choose all fields by default');\n }", "title": "" }, { "docid": "77707b591f70263149b19fe9e5bd408e", "score": "0.71353847", "text": "protected function configure()\n {\n $this\n ->setDescription('Create an index')\n ->addArgument(\n 'app-id',\n InputArgument::REQUIRED,\n 'App id'\n )\n ->addArgument(\n 'index',\n InputArgument::REQUIRED,\n 'Index'\n )\n ->addOption(\n 'language',\n null,\n InputOption::VALUE_OPTIONAL,\n 'Index language',\n null\n )\n ->addOption(\n 'no-store-searchable-metadata',\n null,\n InputOption::VALUE_NONE,\n 'Store searchable metadata'\n )\n ->addOption(\n 'synonym',\n null,\n InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,\n 'Synonym'\n );\n }", "title": "" }, { "docid": "5a705ce91a11e68db2f59b2dd292bfe3", "score": "0.71320003", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = '';\n $this->name = 'initer';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [initer|INFO] task does things.\nCall it with:\n\n [php symfony initer|INFO]\nEOF;\n }", "title": "" }, { "docid": "f0072a65cb3e3061fd7fe04cdb215bf3", "score": "0.7131872", "text": "protected function configure() {\n $this->addArguments(array(\n new sfCommandArgument('mining_id', sfCommandArgument::REQUIRED, 'Mining Id'),\n ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n //new sfCommandOption('dry-run', null, sfCommandOption::PARAMETER_NONE, 'Executes a dry run'),\n ));\n\n $this->namespace = 'minevis';\n $this->name = 'runMining';\n $this->briefDescription = 'Runs all jobs for a mining';\n $this->detailedDescription = <<<EOF\nThe [runMining|INFO] runs all of the miningJobMappings for that job.\n\n [php symfony runMining mining_id|INFO]\nEOF;\n }", "title": "" }, { "docid": "c81a593beadd58c356bc6451c65384b9", "score": "0.7126166", "text": "protected function configure()\n {\n $this->addArguments(array(new sfCommandArgument('fortnight', sfCommandArgument::OPTIONAL, 'My argument')));\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'Application Name', 'operations')\n ));\n\n $this->namespace = 'CRM';\n $this->name = 'cronSendCrmHandledRevenueCSV';\n $this->briefDescription = 'send crm handled revenue mis csv sheet';\n $this->detailedDescription = <<<EOF\n\t\tThe [cronSendCrmHandledRevenueCSV|INFO] task does things.\n\t\tCall it with:\n\t\t[php symfony CRM:cronSendCrmHandledRevenueCSV|INFO]\nEOF;\n }", "title": "" }, { "docid": "bceb23353291acb51818605f178dfecd", "score": "0.7125924", "text": "protected function configure()\n {\n $this\n ->setName('crypto')\n ->setDescription('Encrypt and decrypt given string/word with different algorithms.')\n ->addArgument('word', InputArgument::REQUIRED)\n ->addArgument('algorithm', InputArgument::REQUIRED)\n ->addArgument('operation', InputArgument::REQUIRED);\n }", "title": "" }, { "docid": "5fffbc8410b8e50aeb105d5d1ae6722f", "score": "0.7123638", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'encuesta1'),\n new sfCommandOption('dir', null, sfCommandOption::PARAMETER_REQUIRED, 'Directorio de CSV'),\n // add your own options here\n ));\n\n $this->namespace = 'tvpresence';\n $this->name = 'cargar-ciudades';\n $this->briefDescription = 'Cargar datos de ciudades o municipios';\n $this->detailedDescription = <<<EOF\nEl comando [tvpresence:cargar-ciudades|INFO] carga datos de ciudades o\nmunicipios de archivos en formato CSV, sólo se necesita especificar la\nubicación de los archivos.\n\nPara llamarlo utiliza:\n\n [php symfony tvpresence:cargar-ciudades|INFO --dir=\"directorio con archivos CSV\"]\nEOF;\n }", "title": "" }, { "docid": "7cf8d2b4187590e0876aa7315a2db946", "score": "0.7113517", "text": "protected function configure() {\n\n $this->setName('troiswa:user:create')\n ->setDescription(\"Création d'un utilisateur avec mot de passe crypté\")\n ->addArgument('pseudo', InputArgument::REQUIRED, 'Identifiant')\n ->addArgument('password', InputArgument::REQUIRED, 'Mot de passe')\n ->addArgument('email', InputArgument::REQUIRED, 'mail')\n ->addOption('existe', null, InputOption::VALUE_NONE, 'Metre à jour un utilisateur');\n }", "title": "" }, { "docid": "de77150b2e633c9f4b2f86e58b8f054b", "score": "0.7099216", "text": "protected function configure() : void\n {\n $this->setName('statistics')\n ->setDescription('Run Statistical Check')\n ->setHelp('Run a statistical check and return the results');\n\n $this->addArgument('source', InputArgument::REQUIRED, 'The source to query (currently only files)');\n\n $this->addOption('field', 'f', InputOption::VALUE_REQUIRED, 'The field to test', []);\n $this->addOption('timer', 't', InputOption::VALUE_NONE, 'Time the process');\n\n $this->addOption('node', null, InputOption::VALUE_REQUIRED, 'The name of the node element that represents a row');\n $this->addOption('parent', null, InputOption::VALUE_REQUIRED, 'The name of the parent element to the node rows');\n }", "title": "" }, { "docid": "49b54340ed2234789efd40b99efb2db8", "score": "0.7096795", "text": "protected function configure()\n {\n $this\n ->setName('cache:clear')\n ->setDescription('Clears the cache')\n ->addOption('force', 'f', InputOption::VALUE_NONE, 'Try to delete the cache anyway. [danger or permission denied]');\n }", "title": "" }, { "docid": "a902fdf884036d8a7c85faf189705561", "score": "0.7094073", "text": "public function configure() {\n $this\n ->setName('page:create')\n ->setDescription('Creates a ProcessWire page')\n ->addArgument('name', InputArgument::OPTIONAL)\n ->addOption('template', null, InputOption::VALUE_REQUIRED, 'Template')\n ->addOption('parent', null, InputOption::VALUE_REQUIRED, 'Parent Page')\n ->addOption('title', null, InputOption::VALUE_REQUIRED, 'Title')\n ->addOption('file', null, InputOption::VALUE_REQUIRED, 'Field data file (JSON)');\n }", "title": "" }, { "docid": "ae785636f2d9006064bf1989a3ec6efb", "score": "0.7092414", "text": "protected function configure()\n {\n $this\n ->setName('self-update')\n ->setDescription('Update beam')\n ->addOption(\n 'force',\n 'f',\n InputOption::VALUE_NONE,\n 'Download even if the version is the same'\n )\n ->addOption(\n 'host',\n null,\n InputOption::VALUE_REQUIRED,\n 'The host to download from',\n 'http://getbeam.io'\n );\n }", "title": "" }, { "docid": "a752e10cb76f4b742c91899e4adf2fba", "score": "0.7087452", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = '';\n $this->name = 'thumbnail';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [thumbnail|INFO] task does things.\nCall it with:\n\n [php symfony thumbnail|INFO]\nEOF;\n }", "title": "" }, { "docid": "a2add3272573811d18c0f3815bbe3d46", "score": "0.7084198", "text": "protected function configure()\n {\n $this->setDescription('Analyses emails sent by the extension direct mail.')\n ->setHelp('Get list of Options: ' . LF . 'use the --help option or use -vvv to get some debug output in case of problems ')\n ->addArgument(\n 'rundry',\n InputArgument::OPTIONAL,\n 'if rundry is set, it will only analyze if a Login to the configured mailbox will work'\n )\n ->addOption(\n 'amount',\n 'a',\n InputOption::VALUE_OPTIONAL,\n 'number of emails to be analyze on each run (must be integer)' )\n ;\n\n }", "title": "" }, { "docid": "9b3df346910e5283b29f57d4c4b54854", "score": "0.70805854", "text": "protected function configure()\n {\n $this->setName('buat:libraries')\n ->setDescription('buat new libraries di folder libraries')\n ->setHelp(\"author ekajayanagara as miyuki nagara\\nstudent infomatic at darma persada\\n\\nUntuk membuat file controller\\njika kamu ingin membuat file libraries dengan cepat\\n\\nphp nagara buat:libraries\\n\\n\")\n ->addArgument('LibrariesName', InputArgument::REQUIRED, 'tuliskan nama librariesnya bruh.');\n }", "title": "" }, { "docid": "5d6cc187e26108d593684a69906c36c0", "score": "0.7077292", "text": "protected function configure()\n {\n $this\n ->setName('build')\n ->addArgument('environment', InputArgument::OPTIONAL, 'The environment name', 'staging')\n ->addOption('asset-url', null, InputOption::VALUE_OPTIONAL, 'The asset base URL')\n ->setDescription('Build the project archive');\n }", "title": "" }, { "docid": "ee021847654044b0f7403a96ca8fa019", "score": "0.70752835", "text": "protected function configure()\n\t{\n\t\t$this->setName('modpack')\n ->setDescription('Work with modpacks on the TechnicSolder site')\n ->addArgument(\n 'slug',\n InputArgument::OPTIONAL,\n 'The slug of the modpack you wish to request'\n )\n ->addArgument(\n 'build',\n InputArgument::OPTIONAL,\n 'Specific build you wish to view'\n );\n\t}", "title": "" }, { "docid": "7c26f4b09603d119a4348a01311af45b", "score": "0.70718455", "text": "protected function configure()\n {\n $this->addArguments\n (array(\n new sfCommandArgument('name', sfCommandArgument::OPTIONAL, 'name of configuration in config/doctest.yml','default'),\n new sfCommandArgument('files', sfCommandArgument::IS_ARRAY, 'files1 file2 file3 ...'),\n ));\n \n $this->addOptions(array(\n ));\n\n $this->namespace = 'test';\n $this->name = 'doctest';\n $this->briefDescription = 'execute doc testing.';\n $this->detailedDescription = <<<EOF\nThe [test:doctest|INFO] task does things.\nCall it with:\n\n [php symfony test:doctest|INFO]\nEOF;\n }", "title": "" }, { "docid": "3eac22317a74ccedc2db735b9c5fe793", "score": "0.7070364", "text": "protected function configure() {\n $this\n ->setName('module:download')\n ->setDescription('Downloads ProcessWire module(s).')\n ->addArgument('modules', InputArgument::OPTIONAL, 'Provide one or more module class name, comma separated: Foo,Bar')\n ->addOption('github', null, InputOption::VALUE_OPTIONAL, 'Download module via github. Use this option if the module isn\\'t added to the ProcessWire module directory.')\n ->addOption('branch', null, InputOption::VALUE_OPTIONAL, 'Define specific branch to download from.');\n }", "title": "" }, { "docid": "2274a04e29972d6cdbe2bc5750646b5a", "score": "0.7061397", "text": "protected function configure()\n {\n $this\n ->setName('new')\n ->setDescription('Create a new CodeIgniter4 application.')\n ->addArgument('name', InputArgument::OPTIONAL, 'Name of the local directory where the application will be made.')\n ->addOption('config', 'c', InputOption::VALUE_OPTIONAL, 'Path of config file to get default values for composer.json')\n ->addOption('dev', null, InputOption::VALUE_NONE, 'Installs the latest CI4 developer version as framework.')\n ->addOption('with-git', null, InputOption::VALUE_NONE, 'Initializes an empty Git repository in the directory.')\n ->addOption('with-gitflow', null, InputOption::VALUE_NONE, 'Uses GitFlow to initialize the Git repository. This has \"--with-git\" option implicitly included.')\n ->addOption('force', 'f', InputOption::VALUE_NONE, 'Force install on existing directory.')\n ;\n }", "title": "" }, { "docid": "c9b7736bbdfd06b7bee886bf3730b20c", "score": "0.70594895", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel'),\n new sfCommandOption('host', null, sfCommandOption::PARAMETER_REQUIRED, 'The hostname', 'localhost'),\n new sfCommandOption('port', null, sfCommandOption::PARAMETER_REQUIRED, 'The port where the server runs on', 8000)\n // add your own options here\n ));\n\n $this->namespace = 'server';\n $this->name = 'run';\n $this->briefDescription = 'Runs the build-in server from php to host the project (not for production!!)';\n $this->detailedDescription = <<<EOF\nThe [run|INFO] task does things.\nCall it with:\n\n [php symfony server:run|INFO]\nEOF;\n }", "title": "" }, { "docid": "a318f47f00b7e8b25f7b3b8121502c31", "score": "0.70455235", "text": "protected function configure()\n {\n $this\n ->setName('cars')\n ->setDescription('Inserta coches')\n ->addArgument(\n 'company_id',\n InputArgument::REQUIRED,\n 'Introduce id de la compañia'\n )\n ->addArgument(\n 'number_cars',\n InputArgument::REQUIRED,\n 'Introduce el numero de coches'\n );\n }", "title": "" }, { "docid": "ceab160b3700748b9798c8896016f405", "score": "0.7027741", "text": "protected function configure()\n {\n $this->setName($this->name)\n ->addArgument('name', InputArgument::REQUIRED)\n ->setDescription($this->description);\n }", "title": "" }, { "docid": "f0819ca50caa5abdb891b20e4499bff5", "score": "0.70253736", "text": "protected function configure()\n {\n $this->setName('init')\n ->setDescription('Create a new Envoy file in the current directory.')\n ->addArgument('host', InputArgument::REQUIRED, 'The host server to initialize with.');\n }", "title": "" }, { "docid": "d7dd21f9ce3d728abbe955c1814c168f", "score": "0.70166165", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'frontend'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = '';\n $this->name = 'findCategoryByExpressions';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [findCategoryByExpressions|INFO] task does things.\nCall it with:\n\n [php symfony findCategoryByExpressions|INFO]\nEOF;\n }", "title": "" }, { "docid": "bc0d49bf2fa3c43436c9309f2b1bb3c5", "score": "0.7013953", "text": "protected function configure()\n {\n $this->setName('scheduling')\n ->setDescription('Display upcoming jobs in a specified timeframe.')\n ->addOption('starttime', 's', InputOption::VALUE_OPTIONAL, 'Start time to display the jobs', null)\n ->addOption('endtime', 'e', InputOption::VALUE_OPTIONAL, 'End time to display the jobs', null)\n ;\n }", "title": "" }, { "docid": "403a8f52e4c28855b71897256c9c072b", "score": "0.6990277", "text": "protected function configure()\n {\n $this->setName('unleash:monsters')\n ->setDescription('Muahaha!')\n ->addArgument(\n 'monsters_number',\n InputArgument::REQUIRED,\n 'Monsters number'\n );\n }", "title": "" }, { "docid": "5c2359394c75e068954e4a07016aeedd", "score": "0.69890857", "text": "protected function configure()\n {\n $this->setName('random-text')->setDescription('Prints some random text.')->setHelp('Demonstration of custom commands created by Symfony Console component.');\n }", "title": "" }, { "docid": "64e7678aa037a9fe726701afd7a122c3", "score": "0.69763505", "text": "protected function configure(): void\n {\n $this\n ->setName('core:download')\n ->setDescription('Downloads a Joomla! version and unpacks it to the base path')\n ->addArgument(\n 'version',\n InputArgument::OPTIONAL,\n 'The Joomla! version to install.',\n 'latest'\n )\n ->addOption(\n 'file',\n 'f',\n InputArgument::OPTIONAL,\n 'Location of the version cache file',\n '/tmp/versions.json'\n )\n ->addOption(\n 'cache',\n 'c',\n InputArgument::OPTIONAL,\n 'Location of the cache for Joomla! packages',\n '.cache'\n )\n ;\n }", "title": "" }, { "docid": "263e4bfe9f6134bad6fc218f939f3a45", "score": "0.6971641", "text": "protected function configure()\n {\n $this->addOption(\n 'retry',\n 'r',\n InputOption::VALUE_NONE,\n 'Retry failed deposits'\n );\n $this->addOption(\n 'dry-run',\n 'd',\n InputOption::VALUE_NONE,\n 'Do not update processing status'\n );\n $this->addOption(\n 'limit',\n 'l',\n InputOption::VALUE_OPTIONAL,\n 'Only process $limit deposits.'\n );\n $this->addArgument('deposit-id', InputArgument::IS_ARRAY, 'One or more deposit database IDs to process');\n }", "title": "" }, { "docid": "d50e07609a759447dcb35a56c90907ad", "score": "0.6971335", "text": "protected function configure()\n {\n $this\n ->setDescription('Print all indices')\n ->addArgument(\n 'app-name',\n InputArgument::REQUIRED,\n 'App name'\n )\n ->addOption(\n 'with-fields',\n null,\n InputOption::VALUE_NONE,\n 'Print the fields'\n )\n ->addOption(\n 'with-metadata',\n null,\n InputOption::VALUE_NONE,\n 'Print the metadata'\n );\n }", "title": "" }, { "docid": "1a49834e0cb24ae5c8463326273091ca", "score": "0.6959848", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'companies';\n $this->name = 'PortugalData';\n $this->briefDescription = 'Fixes \"NULL\" fields to NULL and sets street = full_address';\n $this->detailedDescription = <<<EOF\nThe [companiesPortugalData|INFO] task does things.\nCall it with:\n\n [php symfony companiesPortugalData|INFO]\nEOF;\n }", "title": "" }, { "docid": "fbe5d2588ddab52aa000d476eb8daff2", "score": "0.6958726", "text": "protected function configure() {\r\n $this\r\n ->setName('iccs:itsbicho')\r\n ->setDescription('Loads the database cvsanaly, and simulates active mq topic events calls into the stardom component')\r\n ->setDefinition(\r\n array(\r\n new InputOption(\"all\",\"a\",InputOption::VALUE_NONE,\"Whether to send post all issues, changes and comments\"),\r\n new InputOption(\"issues\",\"i\",InputOption::VALUE_NONE,\"Whether to send issues ( Overriden by --all)\"),\r\n new InputOption(\"changes\",\"ch\",InputOption::VALUE_NONE,\"Whether to send changes ( Overriden by --all)\"),\r\n new InputOption(\"comments\",\"cm\",InputOption::VALUE_NONE,\"Whether to send comments ( Overriden by --all)\"),\r\n new InputOption(\"dryrun\",\"dd\",InputOption::VALUE_NONE,\"Whether to ommit posting to the webservice\")\r\n ));\r\n\r\n }", "title": "" }, { "docid": "076708e01240208c001ddc0254fdd834", "score": "0.69550586", "text": "protected function configure()\n {\n $this->setDescription($this->shortDesc);\n\n foreach($this->paramsArray as $nameParam => $arrayOptions){\n if($arrayOptions['optional']){\n $this->addOption($nameParam, null, Console\\Input\\InputOption::VALUE_OPTIONAL, $arrayOptions['comment'], null);\n }\n else {\n $this->addOption($nameParam, null, Console\\Input\\InputOption::VALUE_REQUIRED, $arrayOptions['comment'], null);\n } \n }\n }", "title": "" }, { "docid": "0b7b7d5e4821e4cb310a7afd8ffdfd9d", "score": "0.6950536", "text": "protected function configure()\n {\n $this\n ->setName('new')\n ->setDescription('Create a new CodeIgniter application')\n ->setDescription('Powered by Cart53.com')\n ->addArgument('name', InputArgument::REQUIRED);\n }", "title": "" }, { "docid": "a6625b90e2f2efd1468799b0c1e3a61c", "score": "0.69499475", "text": "protected function configure()\n {\n $this\n // Description court de la Command pour \"php bin/console list\"\n ->setDescription('Retire les donations expirées de tous les paniers')\n\n // Description complète de la Command \"--help\" option\n ->setHelp('Cette commande symfony permet de retirer tous les dons en panier pour tous autilisateurs confondu. L\\'argument :day: permet de choisir la date d\\'expiration (today - day)')\n\n\n // Ajout d'arguments à InputIterface ($input)\n ->addArgument('day', InputArgument::OPTIONAL, 'nombre de jours','10')\n ;\n }", "title": "" }, { "docid": "5dea62e0c1d1e0872365f8a48782fe03", "score": "0.69453907", "text": "protected function configure()\n {\n $this->setName('generate:suite')\n ->setDescription('This command generates a single suite based on declaration in xml')\n ->addArgument(\n 'suites',\n InputArgument::IS_ARRAY | InputArgument::REQUIRED,\n 'argument which indicates suite names for generation (separated by space)'\n );\n\n parent::configure();\n }", "title": "" }, { "docid": "c38a0516d18eed52d63bf4710a7bc18a", "score": "0.6937826", "text": "public function configure() {\n $this->setName(\"google2pdf\")\n ->setAliases(['g2p', 'search', 'get', 'grab'])\n ->setDescription('Crawl Google Search Results and save them to a PDF File')\n ->addArgument('searchTerm', InputArgument::REQUIRED, 'Search Query, e.g. \"PHP Backend\"')\n ->addArgument('maxResults', InputArgument::OPTIONAL, 'How many search results should be saved?', 27)\n ->addOption('timeout', 't', InputOption::VALUE_REQUIRED, 'Set timeout pause in seconds', 10)\n ->addOption('filename', 'f', InputArgument::OPTIONAL, 'Set PDF Filename', 'results');\n }", "title": "" }, { "docid": "1a2cdbef7cd9c0bacca886e1e53ff17b", "score": "0.6935025", "text": "protected function configure()\r\n {\r\n $this\r\n ->setName('env')\r\n ->setAliases(['e'])\r\n ->setDescription('Show required envs.')\r\n ->setHelp('This command allows you to see all required envs.')\r\n ->addOption(\r\n static::OPTION__GENERATE,\r\n 'g',\r\n InputOption::VALUE_OPTIONAL,\r\n 'Generate .env with or not default values. 0 - do not generate, ' .\r\n static::FLAG__DEFAULT_VALUES . ' - with default values, ' . \r\n static::FLAG__CLEAN . ' - clean .env',\r\n 0\r\n )\r\n ->addOption(\r\n static::OPTION__GENERATE_PATH,\r\n 'p',\r\n InputOption::VALUE_OPTIONAL,\r\n 'Path to save generated .env',\r\n getcwd()\r\n )\r\n ;\r\n\r\n $this->attachConfigOptions();\r\n }", "title": "" }, { "docid": "29ba780c7b7c72d4270a139efe02a859", "score": "0.69329196", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'declarvin'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'default'),\n // add your own options here\n ));\n\n $this->namespace = 'import';\n $this->name = 'comptes';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [importConfiguration|INFO] task does things.\nCall it with:\n\n [php symfony importConfiguration|INFO]\nEOF;\n }", "title": "" }, { "docid": "721cef66515c70e005f10e223fe7b73a", "score": "0.69283557", "text": "protected function configure()\n {\n $this->addArguments(array(\n new sfCommandArgument('version', sfCommandArgument::REQUIRED, 'Project version'),\n ));\n\n // add your own options here\n $this->addOptions(array(\n // from is head and to is 1, so revisions are ordered descending by revision\n new sfCommandOption('from', null, sfCommandOption::PARAMETER_REQUIRED, '', 'HEAD'),\n new sfCommandOption('to', null, sfCommandOption::PARAMETER_REQUIRED, '', '1'),\n new sfCommandOption('format', null, sfCommandOption::PARAMETER_REQUIRED, '', ' * [%%revision%%]: (%%author%%) %%msg%%'),\n new sfCommandOption('message', null, sfCommandOption::PARAMETER_REQUIRED, 'message'),\n ));\n\n $this->namespace = 'deployment';\n $this->name = 'changelog';\n $this->briefDescription = '';\n $this->detailedDescription = <<<EOF\nThe [deployment:changelog|INFO] task generates the Changelog, based on the subversion log:\n\n [./symfony deployment:changelog|INFO]\nEOF;\n }", "title": "" }, { "docid": "ede514bf2bffd21e4a6ecae1dfa791e1", "score": "0.6927727", "text": "protected function configure()\n {\n $this->setName('customer:group:create')\n ->setDescription('Create a customer group')\n ->setDefinition($this->getOptionsList());\n }", "title": "" }, { "docid": "763f744ebdd905806c47415dd72c3657", "score": "0.69249994", "text": "public function configure()\n {\n $this->addOption(\n 'ignore',\n 'ig',\n InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,\n 'Ignoring file to zip',\n ['.git', '.svn', 'bin']\n );\n $this->addOption(\n 'output',\n 'o',\n InputOption::VALUE_OPTIONAL,\n 'zip filename',\n 'bundle.zip'\n );\n }", "title": "" }, { "docid": "05c9d62f800a6be043b774ed8a55adc8", "score": "0.6920933", "text": "protected function configure(): void\n {\n $this->addArgument(\n 'issueNo',\n InputOption::VALUE_REQUIRED,\n 'Issue / Ticket number. (Eg. OP-1498)'\n );\n\n $this->addArgument(\n 'timeSpent',\n InputOption::VALUE_REQUIRED,\n 'Time spent in hours'\n );\n\n $this->addArgument(\n 'description',\n InputOption::VALUE_REQUIRED,\n 'Ticket description'\n );\n\n $this->addOption(\n 'datetime',\n 'dt',\n InputOption::VALUE_OPTIONAL,\n 'Time log with format YYYY-MM-DD HH:mm',\n (new DateTime())->format('Y-m-d H:i')\n );\n }", "title": "" }, { "docid": "29dbbfad9675496741963e2fdb4828f6", "score": "0.6915793", "text": "public function __construct()\n {\n $this->constructorCalled = true;\n\n // Define the command\n $this->define();\n\n if (empty($this->name)) {\n throw new InvalidArgumentException('Command name cannot be empty');\n }\n\n // This adds a help option to all commands\n $this->addOption(new Option(\n 'help',\n 'h',\n OptionTypes::NO_VALUE,\n 'Displays info about the command'\n ));\n }", "title": "" }, { "docid": "842b574fd02105f3f32350b0ead01da2", "score": "0.6908224", "text": "protected function configure()\n {\n $this->setDescription('Exports on BE group into a yaml file');\n\n $this->addArgument(\n 'group',\n InputArgument::REQUIRED, // OPTIONAL, REQUIRED, IS_ARRAY\n 'Id of BE group to be exported'\n );\n\n $this->addOption(\n 'dry-run',\n 'd',\n InputOption::VALUE_NONE,\n 'Dry-Run?'\n );\n }", "title": "" }, { "docid": "249215dc5536a03f1eccd8f024c09db4", "score": "0.6905658", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'frontend'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace\t\t\t\t= 'test';\n $this->name\t\t\t\t\t\t= 'email';\n $this->briefDescription \t\t= 'Test the email settings';\n $this->detailedDescription \t= <<<EOF\nThe task tests the email settings\n\n\nCall it with:\n\n [php symfony email|INFO]\nEOF;\n }", "title": "" }, { "docid": "905f64a4c0649c055cf784ab0c40bdee", "score": "0.6898547", "text": "protected function configure()\n {\n $this->setName('orkestra:worker:execute')\n ->addArgument('name', InputArgument::REQUIRED, 'The internal name of the worker to execute.')\n ->setDescription('Executes the specified worker.');\n }", "title": "" }, { "docid": "8864e7255efe73d4557c6bbee4ab7e75", "score": "0.68963236", "text": "protected function configure()\n\t{\n\t\t$this\n\t\t\t->setName('resize')\n\t\t\t->setDescription('Resize resource files')\n\t\t\t->addOption(\n\t\t\t\t'source-dir',\n\t\t\t\tnull,\n\t\t\t\tInputOption::VALUE_REQUIRED,\n\t\t\t\t'The directory where the media files are found'\n\t\t\t)\n\t\t\t->addOption(\n\t\t\t\t'dest-dir',\n\t\t\t\tnull,\n\t\t\t\tInputOption::VALUE_REQUIRED,\n\t\t\t\t'The directory where the media files are to be saved (the res directory)'\n\t\t\t)\n\t\t\t->addOption(\n\t\t\t\t'resolutions',\n\t\t\t\tnull,\n\t\t\t\tInputOption::VALUE_REQUIRED,\n\t\t\t\t'The Android resolutions to support',\n\t\t\t\t'ldpi|mdpi|hdpi|xhdpi|xxhdpi|xxxhdpi'\n\t\t\t)\n\t\t\t->addOption(\n\t\t\t\t'base-resolution',\n\t\t\t\tnull,\n\t\t\t\tInputOption::VALUE_REQUIRED,\n\t\t\t\t'The highest target resolution',\n\t\t\t\t'xxxhdpi'\n\t\t\t);\n\t}", "title": "" }, { "docid": "bd83849870ee667c6070c19e2a5f21de", "score": "0.6888487", "text": "protected function configure(): void\n {\n $this\n ->setName('hash')\n ->setDescription('Get the sha256 or md5 hash for a PHP distribution file')\n ->addArgument(\n 'php',\n InputOption::VALUE_OPTIONAL,\n 'The PHP version to get the info for. Defaults to \\'latest\\''\n )->addOption(\n 'format',\n 'f',\n InputOption::VALUE_OPTIONAL,\n 'The compression format, one of \\'bz2\\', \\'gz\\', or \\'xz\\''\n )->addOption(\n 'type',\n 't',\n InputOption::VALUE_OPTIONAL,\n 'The requested hash type, one of \\'sha256\\' (default) or \\'md5\\''\n );\n }", "title": "" }, { "docid": "b8740e5465dfcc24e449924b21c26833", "score": "0.6887671", "text": "protected function configure()\n {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n ));\n\n $this->namespace = 'rsantellan';\n $this->name = 'reloadUsers';\n $this->briefDescription = 'Hace un refresh de los usuarios';\n $this->detailedDescription = <<<EOF\nThe [reloadUsers|INFO] task does things.\nCall it with:\n\n [php symfony reloadUsers|INFO]\nEOF;\n }", "title": "" }, { "docid": "3736a37fb760555caaef788fbdfaeb6d", "score": "0.68874836", "text": "protected function configure()\n {\n $this->setName('swoole')->setDescription('this is swoole\\'s command');\n }", "title": "" }, { "docid": "1f74f46eb6b4bb7d8b4ec945ae3fd397", "score": "0.68837845", "text": "protected function configure()\n {\n $this\n ->setName('fizzbuzz')\n ->setDescription('Software developments favourite code test')\n ->addArgument('number', InputArgument::REQUIRED, 'Number to test');\n }", "title": "" }, { "docid": "499634caf234b2dfb8b2ecb7f774fc70", "score": "0.6879028", "text": "protected function configure()\n {\n $this\n ->setName('module:reload')\n ->setDescription('Deactivate and activate a module')\n ->addArgument('module', InputArgument::REQUIRED, 'Module name')\n ->addOption('force', 'f',InputOption::VALUE_NONE, 'Force reload Module');\n }", "title": "" }, { "docid": "c59e1768980d18e5e5698847cc188522", "score": "0.68760353", "text": "protected function configure()\n {\n $this\n ->setName('socket:web:broadcast')\n ->setDescription('Send a message to all clients connected to your websocket server')\n ->addArgument('message', InputArgument::REQUIRED, 'The message you want to broadcast')\n ->addOption('port', null, InputOption::VALUE_NONE, 'If set, will override configured port')\n ->addOption('host', null, InputOption::VALUE_NONE, 'If set will override configured host name')\n ->addOption('type', null, InputOption::VALUE_NONE, 'The type of serialization the message will go through, json.')\n ;\n }", "title": "" }, { "docid": "b3ef51c7d8336a9c8f59918e5224d06e", "score": "0.6864044", "text": "public function configure()\n {\n $this->setName('len:stores:generate:hosts');\n $this->setDescription('Generate entries for /etc/hosts');\n $this->addArgument(\n 'server',\n InputArgument::OPTIONAL,\n 'The host name / IP of the server for which the entries are',\n 'localhost'\n );\n }", "title": "" }, { "docid": "a5a788dccdbecee3de46f8e4232bcdc0", "score": "0.6862836", "text": "protected function configure()\n\t{\n\t\t$this->setName('compile')\n\t\t ->setDescription('Compile a PHP script into E100 Assembly.')\n\t\t ->addArgument('file', InputArgument::OPTIONAL, 'Which file or folder do you want to compile?', 'source.php')\n\t\t ->addArgument('output', InputArgument::OPTIONAL, 'The file where the code will be compiled.', 'compiled.txt');\n\t}", "title": "" }, { "docid": "f94b46133eea2a6a015ea4322c1546f2", "score": "0.6851934", "text": "protected function configure()\n {\n $this->setName('project:setup:apache')\n ->setDescription('Project Setup - This should be called as root')\n ->addArgument('project_name', InputArgument::REQUIRED,\n 'Name of the project. This will be used to generate the domains in /etc/hosts')\n ->addOption('apache', null, InputArgument::OPTIONAL, 'Path to your sites-available')\n ->addOption('hosts', '/etc/hosts', InputArgument::OPTIONAL, 'Path to your hosts file');\n }", "title": "" }, { "docid": "fe5d271dbd4412534b1c3929dbde335d", "score": "0.6843226", "text": "protected function configure() {\n // $this->addArguments(array(\n // new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),\n // ));\n\n $this->addOptions(array(\n new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),\n new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),\n new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'),\n // add your own options here\n new sfCommandOption('updateOnly', 'u', sfCommandOption::PARAMETER_NONE, 'Dont delete jobs, only clear them', null),\n\n ));\n\n $this->namespace = 'MineVis';\n $this->name = 'clearMinings';\n $this->briefDescription = 'Clear all Mining Resutls from db';\n $this->detailedDescription = <<<EOF\nThe [clearMinings|INFO] clears all the current mining mappings, resutls (biclusters)\n and resets mining copletion status.\nCall it with:\n\n [php symfony clearMinings|INFO]\nEOF;\n }", "title": "" }, { "docid": "0c88328c4fab110a0ffeccfef174804b", "score": "0.68317765", "text": "protected function configure()\n {\n $this\n ->setName('api:install')\n ->setDescription('Copy the skeletons files to get started')\n ->addArgument(\n 'language',\n InputArgument::OPTIONAL,\n 'The languages in which the messages should be displayed (de, en)'\n );\n }", "title": "" }, { "docid": "c8daee05e9985d13a1c9fdc02c202522", "score": "0.6826924", "text": "protected function configure()\n {\n $this->setName('qa:phpcs')\n ->setDescription('Runs the PHPCS utility.')\n ->addOption(\n 'ci',\n null,\n InputOption::VALUE_NONE,\n 'If set, the task will save the result as XML to the build directory.'\n );\n }", "title": "" }, { "docid": "28a922450cd455f8737a4687fa004045", "score": "0.6816593", "text": "protected function configure()\n {\n $this->setDescription('Adds a new refernece between stores.');\n $this->setHelp('Adds a new refernece between stores.');\n $this->addOption(\n 'type',\n 't',\n InputOption::VALUE_REQUIRED,\n 'The type of store, eg, data or user.',\n null\n );\n $this->addOption(\n 'sourceType',\n 'st',\n InputOption::VALUE_OPTIONAL,\n 'The type of store, eg, data or user.',\n null\n );\n\n $this->addArgument('storeName', InputArgument::REQUIRED, 'The name of the target store.');\n $this->addArgument('referenceName', InputArgument::REQUIRED, 'The name of the reference.');\n $this->addArgument('sourceStore', InputArgument::REQUIRED, 'The type of store, eg, data or user.');\n $this->addArgument('cardinality', InputArgument::OPTIONAL, 'The cardinality of the reference, eg. 1:1, 1:M or M:M');\n\n }", "title": "" } ]
5a71f1b3cae51a9f8d5071cf2740c179
Valide or invalidate a mindcraft map That will allow or not the student to consult the mindmap
[ { "docid": "5ce1e715556550b8268f789979719e27", "score": "0.6286767", "text": "function mindcraft_validate($id){\n global $DB, $USER;\n if (! $mindcraft_map = $DB->get_record(\"mindcraft_maps\", array(\"id\"=>$id))) {\n return false;\n }\n if($USER->id == $mindcraft_map->userid) {\n if($mindcraft_map->state == 0){\n $mindcraft_map->state = 1;\n if (!$DB->delete_records(\"mindcraft_used\", array(\"mindcraftmapid\" => $id))) {\n return false;\n }\n } else {\n $mindcraft_map->state = 0;\n }\n if (!$DB->update_record(\"mindcraft_maps\", $mindcraft_map)) {\n return false;\n }\n return true;\n }\n return false;\n}", "title": "" } ]
[ { "docid": "c6d546619284cd45bc6dec0e64c87df1", "score": "0.57926947", "text": "function mindcraft_update_instance($mindcraft) {\n global $DB;\n $mindcraft->id = $mindcraft->instance;\n $mindcraft_old = $DB->get_record(\"mindcraft\", array(\"id\" => $mindcraft->id));\n if($mindcraft->nummap < $mindcraft_old->nummap){\n $mindcraft_maps = $DB->get_records(\"mindcraft_maps\", [\"mindcraftid\" => $mindcraft_old->id], \"id DESC\");\n foreach($mindcraft_maps as $mindcraft_map){\n $DB->delete_records(\"mindcraft_maps\", [\"id\" => $mindcraft_map->id]);\n $mindcraft_old->nummap--;\n if($mindcraft_old->nummap == $mindcraft->nummap) break;\n }\n } elseif($mindcraft->nummap > $mindcraft_old->nummap){\n $nummap = $mindcraft->nummap - $mindcraft_old->nummap;\n for($i = 0; $i < $nummap; $i++){\n $mindcraft_new_map = mindcraft_set_new_instance($mindcraft_old);\n $mindcraft_new_map->name = get_string('map', 'mindcraft').' '.($mindcraft_old->nummap+$i+1);\n $DB->insert_record(\"mindcraft_maps\", $mindcraft_new_map);\n }\n }\n return $DB->update_record(\"mindcraft\", $mindcraft);\n}", "title": "" }, { "docid": "423360af10354dfbce0576c27166d521", "score": "0.5460092", "text": "function mindcraft_update_map($id, $jsondata) {\n global $DB, $USER;\n $mindcraft_map = $DB->get_record(\"mindcraft_maps\", array(\"id\"=>$id));\n if($mindcraft_map->jsondata === $jsondata){\n return false;\n }\n $mindcraft_map->jsondata = $jsondata;\n $mindcraft_map->timemodified = time();\n if (!$DB->update_record(\"mindcraft_maps\", $mindcraft_map)) {\n return false;\n }\n $mindcraft_version = $DB->get_record(\"mindcraft_versions\", array('mindcraftmapid' => $mindcraft_map->id));\n if(!$mindcraft_version) return false;\n $mindcraft_version->previousjsondata = $mindcraft_version->actualjsondata;\n $mindcraft_version->actualjsondata = $mindcraft_map->jsondata;\n $mindcraft_version->lastupdate = $mindcraft_map->timemodified;\n $mindcraft_version->userid = $USER->id;\n if (!$DB->update_record(\"mindcraft_versions\", $mindcraft_version)) {\n return false;\n }\n return true;\n}", "title": "" }, { "docid": "7d48e02f3715ab9b7fba7eabdac23da1", "score": "0.53854495", "text": "function Mx_google_map_upd( $switch = TRUE ) \n {\n\t\t$this->EE =& get_instance();\n\t\tif(defined('SITE_ID') == FALSE)\n\t\tdefine('SITE_ID', $this->EE->config->item('site_id'));\n }", "title": "" }, { "docid": "26fd11ee8fa491c52cadd3bf161c0db0", "score": "0.5384887", "text": "public function setMapping() : void;", "title": "" }, { "docid": "7d2eb1df5da165b796bb36a6c5274477", "score": "0.52601296", "text": "function knowledgemaps_update_instance($newMap) {\n\tglobal $DB;\n\t\n $newMap->timemodified = time();\n \n return $DB->update_record(\"knowledgemaps\", $newMap);\n}", "title": "" }, { "docid": "00350497bfad56a83c5903b5a844e157", "score": "0.51216155", "text": "protected function reMap()\n {\n // Save original map\n $originalMap = $this->orm['fieldMap'];\n\n // Clear orm maps\n $this->orm['selectMap'] = array();\n $this->orm['fieldMap'] = array();\n $this->orm['objectFieldMap'] = array();\n $this->orm['insertUpdateMap'] = array();\n \n foreach ($originalMap as $dbField => $objField)\n {\n $this->addMap($objField, $dbField); \n }\n }", "title": "" }, { "docid": "b132d1744bfdf7ea21a065f41dc76f72", "score": "0.505861", "text": "function mindcraft_delete_map($id) {\n global $DB, $USER;\n if (! $mindcraft_map = $DB->get_record(\"mindcraft_maps\", array(\"id\"=>$id))) {\n return false;\n }\n if (! $mindcraft = $DB->get_record(\"mindcraft\", array(\"id\"=>$mindcraft_map->mindcraftid))) {\n return false;\n }\n if($USER->id == $mindcraft_map->userid) {\n if (!$DB->delete_records(\"mindcraft_maps\", array(\"id\" => $id))) {\n return false;\n }\n $topics = $DB->get_records(\"mindcraft_topics\", array(\"mindcraftmapid\" => $id));\n if ($topics) {\n foreach ($topics as $topic) {\n $posts = $DB->get_records(\"mindcraft_posts\", array(\"topicid\" => $topic->id));\n if ($posts) {\n foreach ($posts as $post) {\n if (!$DB->delete_records(\"mindcraft_responses\", array(\"postid\" => $post->id))) {\n return false;\n }\n }\n if (!$DB->delete_records(\"mindcraft_posts\", array(\"topicid\" => $topic->id))) {\n return false;\n }\n }\n }\n if (!$DB->delete_records(\"mindcraft_topics\", array(\"mindcraftmapid\" => $id))) {\n return false;\n }\n }\n $mindcraft->nummap--;\n if (!$DB->update_record(\"mindcraft\", $mindcraft)) {\n return false;\n }\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "10b4c9bfc9c8f7b6b051f7ef8c9be64c", "score": "0.50054437", "text": "function enforceMarker(){\n global $USERID;\n if(!$this->isLoggedIn() || ! $this->dataMgr->isMarker($USERID)) {\n redirect_to_page(\"login.php\");\n }\n }", "title": "" }, { "docid": "228b692b676b1d82be65a0067ae41bb3", "score": "0.49906534", "text": "public function enableMapForm()\n\t{\n\t\tif( $this->canEdit() )\n\t\t{\n\t\t\t$form\t= new \\IPS\\Helpers\\Form;\n\t\t\t$form->class = 'ipsForm_vertical';\n\t\t\t$form->add( new \\IPS\\Helpers\\Form\\YesNo( 'map_enabled', $this->gps_show, FALSE ) );\n\n\t\t\tif( $values = $form->values() )\n\t\t\t{\n\t\t\t\t$this->gps_show\t= $values['map_enabled'];\n\t\t\t\t$this->save();\n\t\t\t\t\\IPS\\Output::i()->redirect( $this->url() );\n\t\t\t}\n\n\t\t\treturn $form;\n\t\t}\n\n\t\treturn '';\n\t}", "title": "" }, { "docid": "c7f006bc74fcdd65fe199a3192f6bc52", "score": "0.49599403", "text": "final public function setMap($map) {\n $this->map= $map;\n }", "title": "" }, { "docid": "07f7618be78c8e19e1333619c82e1b6b", "score": "0.49197862", "text": "public function showMap(){\n $battlefieldId = filter_input(INPUT_GET, 'battlefieldId', FILTER_SANITIZE_NUMBER_INT);\n $battlefield = new Battlefield($this->_DI, $battlefieldId);\n $battlefieldData = $battlefield->getData();\n $this->picturePath = $battlefield->generateMap();\n $this->battlefieldName = $battlefieldData['name'];\n $this->hives = $battlefieldData['hives'];\n }", "title": "" }, { "docid": "a4a68417a50a524f8fe636b5d657f019", "score": "0.4914676", "text": "public static function shouldMap();", "title": "" }, { "docid": "ef43a9df2c24dbb4f151dfe180da7586", "score": "0.48861876", "text": "function save($id)\r\n\t{\r\n\t \t\r\n\t\t$this->Auth->check();\r\n\t\t$this->layout = 'empty';\r\n\t\t\r\n\t\t\t\t\r\n\t\t$mindmap = $this->Mindmap->findById($id);\r\n\t\tif(!$this->Mindmap->checkAuth($id, $this->Session->read('User.id')))\r\n\t\t{\r\n\t\t\texit();\r\n\t\t}\r\n\t\t\r\n\t\t$save = array();\r\n\t\t$save['data'] = stripslashes($_POST['mindmap']);\r\n\t\t$save['user_id'] = $this->Session->read('User.id');\r\n\t\t$save['id'] = $id;\r\n\t\t$this->Mindmap->saveMindmap($save);\r\n\t}", "title": "" }, { "docid": "09be2f0fe4d8ce99587e3885b8e8971f", "score": "0.48566508", "text": "function responsive_image_mapping_edit_form_submit($form, &$form_state) {\n // Save the edited mapping to database.\n if ($form_state['values']['rim_preset_key'] !== 'none') {\n $mappings = array();\n foreach ($form_state['values'] as $form_key => $form_value) {\n if (preg_match('/rim_mapping_[0-9]+/', $form_key) && !empty($form_value)) {\n $mappings[] = $form_value;\n }\n }\n db_update('responsive_img_mapping')\n ->fields(array(\n 'preset_key' => $form_state['values']['rim_preset_key'],\n 'mappings' => serialize($mappings)\n ))\n -> condition('id', arg(6))\n ->execute();\n drupal_set_message(t('Mapping updated.'));\n drupal_goto('admin/config/media/image-styles/responsive-mappings');\n }\n else {\n drupal_set_message(t('Mapping not updated, no preset key selected.'));\n drupal_goto('admin/config/media/image-styles/responsive-mappings');\n }\n}", "title": "" }, { "docid": "3d8cbf602dc5c788227ae10d12fb971b", "score": "0.4855946", "text": "function searchMaps ()\n\t{\n\t}", "title": "" }, { "docid": "0f82beef900c6a78e0dbb75cdb4dc590", "score": "0.4842515", "text": "public function setVanilla() {\n\t\t$this->locations[\"Ganon's Tower - Bob's Torch\"]->setItem(Item::get('KeyA2'));\n\t\t$this->locations[\"Ganon's Tower - DMs Room - Top Left\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"Ganon's Tower - DMs Room - Top Right\"]->setItem(Item::get('TenArrows'));\n\t\t$this->locations[\"Ganon's Tower - DMs Room - Bottom Left\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"Ganon's Tower - DMs Room - Bottom Right\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"Ganon's Tower - Randomizer Room - Top Left\"]->setItem(Item::get('TenArrows'));\n\t\t$this->locations[\"Ganon's Tower - Randomizer Room - Top Right\"]->setItem(Item::get('TenArrows'));\n\t\t$this->locations[\"Ganon's Tower - Randomizer Room - Bottom Left\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"Ganon's Tower - Randomizer Room - Bottom Right\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"Ganon's Tower - Firesnake Room\"]->setItem(Item::get('KeyA2'));\n\t\t$this->locations[\"Ganon's Tower - Map Chest\"]->setItem(Item::get('MapA2'));\n\t\t$this->locations[\"Ganon's Tower - Big Chest\"]->setItem(Item::get('RedMail'));\n\t\t$this->locations[\"Ganon's Tower - Hope Room - Left\"]->setItem(Item::get('TenArrows'));\n\t\t$this->locations[\"Ganon's Tower - Hope Room - Right\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"Ganon's Tower - Bob's Chest\"]->setItem(Item::get('TenArrows'));\n\t\t$this->locations[\"Ganon's Tower - Tile Room\"]->setItem(Item::get('KeyA2'));\n\t\t$this->locations[\"Ganon's Tower - Compass Room - Top Left\"]->setItem(Item::get('Compass'));\n\t\t$this->locations[\"Ganon's Tower - Compass Room - Top Right\"]->setItem(Item::get('OneRupee'));\n\t\t$this->locations[\"Ganon's Tower - Compass Room - Bottom Left\"]->setItem(Item::get('TwentyRupees'));\n\t\t$this->locations[\"Ganon's Tower - Compass Room - Bottom Right\"]->setItem(Item::get('TenArrows'));\n\t\t$this->locations[\"Ganon's Tower - Big Key Chest\"]->setItem(Item::get('BigKeyA2'));\n\t\t$this->locations[\"Ganon's Tower - Big Key Room - Left\"]->setItem(Item::get('TenArrows'));\n\t\t$this->locations[\"Ganon's Tower - Big Key Room - Right\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"Ganon's Tower - Mini Helmasaur Room - Left\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"Ganon's Tower - Mini Helmasaur Room - Right\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"Ganon's Tower - Pre-Moldorm Chest\"]->setItem(Item::get('KeyA2'));\n\t\t$this->locations[\"Ganon's Tower - Moldorm Chest\"]->setItem(Item::get('TwentyRupees'));\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "92d7dceb7b5529bf4b3e794f6a7d5e14", "score": "0.48267353", "text": "public function setUseMap($name)\n {\n parent::setAttr(\"usemap\", $name);\n }", "title": "" }, { "docid": "18b63c5907f9edd183e14806b6afaf3b", "score": "0.48079348", "text": "private function defaultMap() {\n $this->map= array(\n 'binford' => 61\n );\n }", "title": "" }, { "docid": "e2b551f71d6385fef7099615090cc3f3", "score": "0.4801645", "text": "function chado_featuremap_validate($node, $form, &$form_state) {\n\n // We only want to validate when the node is saved.\n // Since this validate can be called on AJAX and Deletion of the node\n // we need to make this check to ensure queries are not executed\n // without the proper values.\n if(property_exists($node, \"op\") and $node->op != 'Save') {\n return;\n }\n\n // we are syncing if we do not have a node ID but we do have a featuremap_id. We don't\n // need to validate during syncing so just skip it.\n if (!property_exists($node, 'nid') and property_exists($node, 'featuremap_id') and $node->featuremap_id != 0) {\n return;\n }\n\n if ($node->unittype_id == 0) {\n form_set_error('unittype_id', 'Please provide a unit type for this map.');\n }\n \n // trim white space from text fields\n $node->fmapname = property_exists($node, 'fmapname') ? trim($node->fmapname) : '';\n\n $featuremap = 0;\n // check to make sure the unique name on the map is unique\n // before we try to insert into chado. If this is an update then we will\n // have a featuremap_id, therefore we want to look for another map with this\n // name but with a different featuremap_id. If this is an insert, just look\n // for a case where the name already exists.\n if (property_exists($node, 'featuremap_id')) {\n $sql = \"\n SELECT * FROM {featuremap}\n WHERE name = :name AND NOT featuremap_id = :featuremap_id\n \";\n $featuremap = chado_query($sql, array(':name' => $node->fmapname, ':featuremap_id' => $node->featuremap_id))->fetchObject();\n }\n else {\n $sql = \"SELECT * FROM {featuremap} WHERE name = :name\";\n $featuremap = chado_query($sql, array(':name' => $node->fmapname))->fetchObject();\n }\n if ($featuremap) {\n form_set_error('fmapname', t('The unique map name already exists. Please choose another'));\n }\n}", "title": "" }, { "docid": "e963f22e8c373429f64d5b38722b3ebd", "score": "0.47865117", "text": "function mylabmastering_reset_local_mapping($local_config) {\n\t$local_config->code = 'unmapped';\n\t$local_config->platform = '';\n\t$local_config->description = format_text('<p>Pearson MyLab & Mastering course pairing: None</p>', FORMAT_HTML) .\n\t\tformat_text('<p>Use the Pearson MyLab & Mastering Tools link to get started.</p>', FORMAT_HTML);\n\n\tmylabmastering_update_course_config($local_config);\n\n}", "title": "" }, { "docid": "992100474fc5e0407f3a1d2fd6c646f4", "score": "0.47339275", "text": "public function reset(){\n $this->field_map = array();\n $this->is_modified = false;\n }", "title": "" }, { "docid": "48a34db5668612d4b516674d18422cc3", "score": "0.47217375", "text": "public function editMaterial()\n\t{\n\t\t//\n\t\t$ipt = \\Input::all();\n\t\t$mat = \\App\\Material::where('id', $ipt['id'] )->update($ipt);\n\t\tif(isset($ipt['other']) && $ipt['other'] == '' ){\n\t\t\t$mat->update( ['other' => null] ); \n\t\t}\n\t\tif($mat) {\n\t\t\t$return = 'good';\n\t\t}else{\n\t\t\t$return = 'bad' ;\n\t\t}\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "cff7ef4326d0eb987b79d11ba7917633", "score": "0.47122055", "text": "public function setRoomMap($map){\r\n\t\t$this->roomMap = $map;\r\n\t}", "title": "" }, { "docid": "9be2dba6e3512a4a8a5ac9620a8d80f0", "score": "0.468018", "text": "public function set(){\n\n // canary\n if(empty($this->is_modified)){ return false; }//if\n \n $db = $this->getDb();\n $this->_set();\n $this->field_map = $db->set($this->getTable(), $this->getFields());\n $this->is_modified = false;\n return true;\n \n }", "title": "" }, { "docid": "8fe80841ca10d3c7d1195aca9003d910", "score": "0.4678727", "text": "function knowledge_delete_instance($mapid) {\n global $DB;\n\n // if (!$map = $DB->get_record(\"knowledgemaps\", array('mapid' => $mapid))) {\n // return false;\n // }\n \n if (!$DB->delete_records(\"knowledgemaps\", array('mapid' => $mapid))) {\n // the given map did not exist\n return false;\n }\n\n return true;\n}", "title": "" }, { "docid": "fdb83ec9c0144854f406ec7ba374cb53", "score": "0.46777573", "text": "function edit($id) {\r\n\t\t$this->Auth->check();\r\n\t\t\r\n\t\t$this->Mindmap->contain('Revision.User', 'Group', 'Group.User', 'Group.Admin');\r\n\t\t$mindmap = $this->Mindmap->findById($id);\r\n\t\t\r\n\t\t$this->set('mindmap', $mindmap);\r\n\t\tif($this->Session->read('User.id') != $mindmap['Mindmap']['user_id'])\r\n\t\t{\r\n\t\t\t$this->redirect('/');\r\n\t\t\t$this->Session->setFlash(__('flash.no_auth'), 'flash_error');\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif (!empty($this->data)) \r\n\t\t\t{\r\n\t\t\t \tif(isset($this->data['Mindmap']['tags']))\r\n\t\t\t \t{\r\n\t\t\t\t\t$this->Mindmap->saveTags($id, $this->Session->read('User.id'), $this->data['Mindmap']['tags']);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->Mindmap->id = $id;\r\n\t\t\t\tif ($this->Mindmap->save($this->data, array('name', 'public'))) \r\n\t\t\t\t{\r\n\t\t\t\t\t$this->Session->setFlash(__('flash.Mindmap.edit.saved', true));\r\n\t\t\t\t} \r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\t$this->Session->setFlash(__('flash.Mindmap.edit.failed', true), 'flash_error');\r\n\t\t\t\t}\t\t\t\t\r\n\t\r\n\t\t\t}\r\n\t\t\tif (empty($this->data)) \r\n\t\t\t{\r\n\t\t\t\t$this->data = $mindmap;\r\n\t\t\t\t$this->data['Mindmap']['tags'] = $this->Mindmap->loadTags($id);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//get all associated groups of the logged in user - but only the fields id and name\r\n\t\t\t$this->Mindmap->User->contain(array('Group'=>array('id', 'name')));\r\n\t\t\t$user = $this->Mindmap->User->findById($this->Session->read('User.id'));\r\n\t\t\t$list = array();\r\n\t\t\tforeach($user['Group'] as $group)\r\n\t\t\t{\r\n\t\t\t\t$list[$group['id']] = $group['name'];\r\n\t\t\t}\r\n\t\t\t$this->set('groups', $list);\t\r\n\t\t}\r\n\r\n\r\n\t}", "title": "" }, { "docid": "acdba600bbf9520850d517eb4ece9837", "score": "0.4670626", "text": "function chado_featuremap_update($node) {\n\n $node->fmapname = trim($node->fmapname);\n $node->description = trim($node->description['value']);\n\n $featuremap_id = chado_get_id_from_nid('featuremap', $node->nid) ;\n\n // update the map record\n $match = array(\n 'featuremap_id' => $featuremap_id,\n );\n $values = array(\n 'name' => $node->fmapname,\n 'description' => $node->description,\n 'unittype_id' => $node->unittype_id\n );\n $status = chado_update_record('featuremap', $match, $values);\n if (!$status) {\n drupal_set_message(\"Error updating map\", \"error\");\n tripal_report_error('t_featuremap', TRIPAL_ERROR, \"Error updating map\", array());\n return;\n }\n\n // Update the properties\n $properties = chado_retrieve_node_form_properties($node);\n // We need to deal with the 'Map Dbxref' property specially\n $cvterm = chado_select_record(\n 'cvterm',\n array('cvterm_id'),\n array('name' => 'Map Dbxref', 'cv_id' => array('name' => 'featuremap_property'))\n );\n $map_dbxref_cvterm_id = $cvterm[0]->cvterm_id;\n if (isset($properties[$map_dbxref_cvterm_id])) {\n foreach ($properties[$map_dbxref_cvterm_id] as $rank => $value) {\n $featuremap_dbxref = tripal_featuremap_add_featuremap_dbxref($featuremap_id, $value);\n if (!$featuremap_dbxref) {\n drupal_set_message(\"Error cannot add featuremap cross reference: $value\", \"error\");\n tripal_report_error('t_featuremap', TRIPAL_ERROR, \"Error cannot add featuremap cross reference: %ref\",\n array('%ref' => $value));\n }\n }\n unset($properties[$map_dbxref_cvterm_id]);\n }\n $details = array(\n 'property_table' => 'featuremapprop',\n 'base_table' => 'featuremap',\n 'foreignkey_name' => 'featuremap_id',\n 'foreignkey_value' => $featuremap_id\n );\n chado_update_node_form_properties($node, $details, $properties);\n\n // * Additional DBxrefs Form *\n $details = array(\n 'linking_table' => 'featuremap_dbxref', // the name of your _dbxref table\n 'foreignkey_name' => 'featuremap_id', // the name of the key in your base table\n 'foreignkey_value' => $featuremap_id // the value of the featuremap_id key\n );\n chado_update_node_form_dbxrefs($node, $details);\n\n}", "title": "" }, { "docid": "3bcb0bfc94041928b6b6aef796ddbb17", "score": "0.46538633", "text": "public function initalize()\n {\n $this->locations[\"Sanctuary\"]->setRequirements(function ($locations, $items) {\n return $items->canKillEscapeThings($this->world) && $items->has('KeyH2');\n });\n\n $this->locations[\"Sewers - Secret Room - Left\"]->setRequirements(function ($locations, $items) {\n return $items->canKillEscapeThings($this->world) && $items->has('KeyH2');\n });\n\n $this->locations[\"Sewers - Secret Room - Middle\"]->setRequirements(function ($locations, $items) {\n return $items->canKillEscapeThings($this->world) && $items->has('KeyH2');\n });\n\n $this->locations[\"Sewers - Secret Room - Right\"]->setRequirements(function ($locations, $items) {\n return $items->canKillEscapeThings($this->world) && $items->has('KeyH2');\n });\n\n $this->locations[\"Sewers - Dark Cross\"]->setRequirements(function ($locations, $items) {\n return $items->canKillEscapeThings($this->world);\n });\n\n $this->locations[\"Hyrule Castle - Boomerang Chest\"]->setRequirements(function ($locations, $items) {\n return $items->canKillEscapeThings($this->world);\n });\n\n $this->locations[\"Hyrule Castle - Map Chest\"]->setRequirements(function ($locations, $items) {\n return $items->canKillEscapeThings($this->world);\n });\n\n $this->locations[\"Hyrule Castle - Zelda's Cell\"]->setRequirements(function ($locations, $items) {\n return $items->canKillEscapeThings($this->world);\n });\n\n $this->locations[\"Secret Passage\"]->setRequirements(function ($locations, $items) {\n return $items->canKillEscapeThings($this->world);\n })->setFillRules(function ($item, $locations, $items) {\n return !((!$this->world->config('region.wildKeys', false) && $item instanceof Item\\Key)\n || (!$this->world->config('region.wildBigKeys', false) && $item instanceof Item\\BigKey)\n || (!$this->world->config('region.wildMaps', false) && $item instanceof Item\\Map)\n || (!$this->world->config('region.wildCompasses', false) && $item instanceof Item\\Compass));\n });\n\n $this->locations[\"Link's Uncle\"]->setFillRules(function ($item, $locations, $items) {\n return $this->locations[\"Sanctuary\"]->canAccess($this->world->collectItems())\n && !((!$this->world->config('region.wildKeys', false) && $item instanceof Item\\Key)\n || (!$this->world->config('region.wildBigKeys', false) && $item instanceof Item\\BigKey)\n || (!$this->world->config('region.wildMaps', false) && $item instanceof Item\\Map)\n || (!$this->world->config('region.wildCompasses', false) && $item instanceof Item\\Compass));\n });\n\n $this->can_complete = function ($locations, $items) {\n return $this->locations[\"Sanctuary\"]->canAccess($items);\n };\n\n $this->prize_location->setRequirements($this->can_complete);\n\n return $this;\n }", "title": "" }, { "docid": "eb7be724188f131d145aa7ae728afd4a", "score": "0.46085513", "text": "public function initCasual() {\n $this->locations[\"Missile (lava room)\"]->setRequirements(function($location, $items) {\n\t\t\treturn $items->has('Morph');\n });\n\n $this->locations[\"Reserve Tank, Norfair\"]->setRequirements(function($location, $items) {\n return $items->has('Morph')\n && ($items->canFlySM() || ($items->has('Grapple') && ($items->has('SpeedBooster') || $items->canPassBombPassages())) || $items->has('HiJump') || $items->has('Ice'));\n });\n\n $this->locations[\"Missile (Norfair Reserve Tank)\"]->setRequirements(function($location, $items) {\n return $items->has('Morph')\n && ($items->canFlySM() || ($items->has('Grapple') && ($items->has('SpeedBooster') || $items->canPassBombPassages())) || $items->has('HiJump') || $items->has('Ice'));\n });\n\n $this->locations[\"Missile (bubble Norfair green door)\"]->setRequirements(function($location, $items) {\n return $items->canFlySM() || ($items->has('Grapple') && $items->has('Morph') && ($items->has('SpeedBooster') || $items->canPassBombPassages())) || $items->has('HiJump') || $items->has('Ice');\n });\n \n $this->locations[\"Missile (Speed Booster)\"]->setRequirements(function($location, $items) {\n return $items->canFlySM() || ($items->has('Morph') && ($items->has('SpeedBooster') || $items->canPassBombPassages())) || $items->has('HiJump') || $items->has('Ice');\n });\n\n $this->locations[\"Speed Booster\"]->setRequirements(function($location, $items) {\n return $items->canFlySM() || ($items->has('Morph') && ($items->has('SpeedBooster') || $items->canPassBombPassages())) || $items->has('HiJump') || $items->has('Ice');\n });\n\n\t $this->locations[\"Wave Beam\"]->setRequirements(function($location, $items) {\n return $items->has('Morph') && ($items->canFlySM() || ($items->has('Morph') && ($items->has('SpeedBooster') || $items->canPassBombPassages())) || $items->has('HiJump') || $items->has('Ice'));\n });\n\n $this->locations[\"Missile (Wave Beam)\"]->setRequirements(function($location, $items) {\n return ($items->canFlySM() || ($items->has('Morph') && ($items->has('SpeedBooster') || $items->canPassBombPassages())) || $items->has('HiJump') || $items->has('Ice'));\n });\n \n $this->can_enter = function($locations, $items) {\n return ((($items->canDestroyBombWalls() || $items->has('SpeedBooster'))\n && ($items->has('Super') && $items->has('Morph')))\n || $items->canAccessNorfairPortal())\n && $items->has('Varia')\n && $items->has('Super')\n && ($items->canFlySM() || $items->has('HiJump') || $items->has('SpeedBooster'));\n };\n \n\t\treturn $this;\n\t}", "title": "" }, { "docid": "275304643eabbe848587f6c14b39cb2f", "score": "0.45953095", "text": "protected function reworkWorkingData($active_id, $pass, $obligationsAnswered, $authorized)\n {\n // nothing to rework!\n }", "title": "" }, { "docid": "49f14f7d7754a9527ce4e8c8a664a385", "score": "0.45878282", "text": "public function getIdentifyMap();", "title": "" }, { "docid": "2ad1ac250d530e562de7b09724df7fc5", "score": "0.45865402", "text": "public function update(MapRequest $request, Map $map)\n { \n // Update database\n $map->update($request->except(['_token', '_method']));\n return redirect()->route('admin.maps.index');\n }", "title": "" }, { "docid": "0d00199a5801fc14fdd88796590f7627", "score": "0.45791554", "text": "protected function reworkWorkingData($active_id, $pass, $obligationsAnswered)\n\t{\n\t\t// nothing to rework!\n\t}", "title": "" }, { "docid": "97cdeb293a966018e2b33f41f735327b", "score": "0.4555725", "text": "protected function reworkWorkingData($active_id, $pass, $obligationsAnswered, $authorized)\n\t{\n\t\t// nothing to rework!\n\t}", "title": "" }, { "docid": "86c1bbfb7ec815d1ac09748af02c5452", "score": "0.45554024", "text": "protected function reworkWorkingData($active_id, $pass, $obligationsAnswered)\n\t{\n\t\t// nothing to do\n\t}", "title": "" }, { "docid": "78ab51342e3bb86970203acfbca71420", "score": "0.45429713", "text": "public function valid() {\n\t\t$key = key($this->map);\n\t\treturn $key !== NULL && $key !== FALSE;\n\t}", "title": "" }, { "docid": "fd60097ef24e9cad0a155122d1072fa0", "score": "0.453895", "text": "function injection($map,$run_command){\n \n //ajout des montagnes\n if($run_command[1][0]!=\"M\"){\n $map[(int)$run_command[1][1]][(int)$run_command[1][2]]='M';\n }\n \n sleep(10);\n\n if($run_command[4][0]!='M'){\n $map[(int)$run_command[4][1]][(int)$run_command[4][2]]='M';\n }\n\n \n\n if($run_command[5][0]!='T'){\n\n $map[(int)$run_command[5][2]][(int)$run_command[5][1]]='T('.$run_command[5][2].')';\n }\n \n \n if($run_command[7][0]!='T'){\n\n $map[(int)$run_command[7][2]][(int)$run_command[7][1]]='T('.$run_command[7][3].')';\n }\n \n return $map;\n}", "title": "" }, { "docid": "1e8f9c86789013f638be97c3e03d899f", "score": "0.4538101", "text": "public function show(Map $map)\n {\n //\n }", "title": "" }, { "docid": "40af422b8a81a75cd43a8c61fe498fb5", "score": "0.4533541", "text": "function set_personality($personality_sim_link,$personality_dir,$personality)\n{\n\n $valid_personalities=list_personality($personality_dir);\n\n $current_personality=get_personality($personality_sim_link);\n\n if (in_array( $personality, $valid_personalities))\n {\n if($current_personality == $personality)\n echo(\"no action, current setting\\n\");\n else\n echo(\"valid change\\n\");\n \n }\n else\n echo(\"not valid change\\n\");\n\n}", "title": "" }, { "docid": "f9c0034f84a0e1f82afb539582889c65", "score": "0.4531253", "text": "abstract public function assertPinsOnMap($number = 1);", "title": "" }, { "docid": "5b18462d9439a84cb3474ce22b44f67e", "score": "0.4528717", "text": "function maps3($id) {\n\n if (isset($_POST[\"cancel\"])) { header(\"Location: index.php\"); die(); }\n\n global $userrow, $numqueries;\n\n $townquery = doquery(\"SELECT name,innprice FROM {{table}} WHERE latitude='\".$userrow[\"latitude\"].\"' AND longitude='\".$userrow[\"longitude\"].\"' LIMIT 1\", \"towns\");\n if (mysql_num_rows($townquery) != 1) { display(\"<p>You cannot access this Area outside of town. You may now return to <a href=\\\"index.php\\\">exploring</a>.\", \"Error\"); }\n $townrow = mysql_fetch_array($townquery);\n\n $townquery = doquery(\"SELECT name,mapprice FROM {{table}} WHERE id='$id' LIMIT 1\", \"towns\");\n $townrow = mysql_fetch_array($townquery);\n\n if ($userrow[\"gold\"] < $townrow[\"mapprice\"]) { display(\"You do not have enough gold to buy this map.<br /><br />You may return to <a href=\\\"index.php\\\">town</a>, <a href=\\\"index.php?do=maps\\\">store</a>, or use the direction compass on the right to start exploring.\", \"Travel Store\"); die(); }\n\n $mappedtowns = $userrow[\"towns\"].\",$id\";\n $newgold = $userrow[\"gold\"] - $townrow[\"mapprice\"];\n\n $updatequery = doquery(\"UPDATE {{table}} SET towns='$mappedtowns',gold='$newgold' WHERE id='\".$userrow[\"id\"].\"' LIMIT 1\", \"users\");\n\n display(\"Thank you for purchasing this map.<br /><br />You may return to <a href=\\\"index.php\\\">town</a>, <a href=\\\"index.php?do=maps\\\">store</a>, or use the direction compass on the right to start exploring.\", \"Travel Store\");\n\n}", "title": "" }, { "docid": "7d85321ee2c9f1c3b849630b55134592", "score": "0.45273674", "text": "public static function changeMapItems($mapID){\n itemController::changeAllItems(\"I0003\",\"I0005\",$mapID);\n }", "title": "" }, { "docid": "63f402fc201e2161dfc5ca3fcdd1be74", "score": "0.45178887", "text": "public function mapOff() { return $this->_m_mapOff; }", "title": "" }, { "docid": "45d29062d9dd443a6b9cfa965a9f205d", "score": "0.45143712", "text": "function do_edit_reward_gold(&$sqlm)\r\n{\r\n\tglobal \t$action_permission,\r\n\t\t\t$mmfpm_db;\r\n\t\r\n\tvalid_login($action_permission['insert']);\r\n\r\n\tif\r\n\t(\r\n\t\tempty($_POST['value']) ||\r\n\t\tempty($_POST['points'])\r\n\t)\r\n\tredirect('rewards.php?error=1');\r\n\r\n\t$sqlm = new SQL;\r\n\t$sqlm->connect($mmfpm_db['addr'], $mmfpm_db['user'], $mmfpm_db['pass'], $mmfpm_db['name']);\r\n\r\n\t$gold = $sqlm->quote_smart($_POST['value']);\r\n\t$points = $sqlm->quote_smart($_POST['points']);\r\n\r\n\t$query = $sqlm->query('UPDATE mm_reward_gold SET value=\\''.$gold.'\\', points =\\''.$points.'\\' WHERE value = '.$gold.'');\r\n\r\nunset($gold);\r\nunset($points);\r\n\r\n\tif ($sqlm->affected_rows())\r\n\t\tredirect('rewards.php?action=show_reward_gold');\r\n\telse\r\n\t\tredirect('rewards.php?error=2');\r\n}", "title": "" }, { "docid": "f2dc66be3bf247105a5f798e79f559af", "score": "0.45085463", "text": "public function invalidate($makeInvalid=true);", "title": "" }, { "docid": "0b78396e2e06058f8fc81ffd0bdf741c", "score": "0.44970816", "text": "function setEnableCourseMap($a_enablemap)\n\t{\n\t\t$this->enablemap = $a_enablemap;\n\t}", "title": "" }, { "docid": "cdee4028c126e1b0039d28cb732ab3c0", "score": "0.4495285", "text": "public function put_workApp_visaDenial(){\n\t\tfor($i = 0; $i < count($this->visaDenial['country']); $i++){\n\t\t\t$this->mysql->add_visaDenial_workApp($this->visaDenial['country'][$i], $this->visaDenial['type'][$i], $this->visaDenial['date'][$i], $this->visaDenial['application_id']);\n\t\t}\n\t}", "title": "" }, { "docid": "ac1b2804739e3da23a058b4676cf257a", "score": "0.4488314", "text": "function kd_map_init() {\r\n\r\n if (function_exists('vc_map')) {\r\n vc_map(array(\r\n \"name\" => esc_html__(\"Google map\", \"keydesign\"),\r\n \"description\" => esc_html__(\"Custom Google Map\", \"keydesign\"),\r\n \"base\" => \"tek_map\",\r\n \"class\" => \"\",\r\n \"icon\" => plugins_url('assets/element_icons/google-map.png', dirname(__FILE__)),\r\n \"category\" => esc_html__(\"KeyDesign Elements\", \"keydesign\"),\r\n \"params\" => array(\r\n array(\r\n \"type\" => \"kd_param_notice\",\r\n \"text\" => \"<span style='display: block;'>Google maps requires a valid API key in order to work. You can add it in Dashboard > Ekko > Theme Options > Global Options. You can generate a new API key from <a href='https://developers.google.com/maps/faq#new-key' target='_blank' title='Google Maps API'>here</a>.</span>\",\r\n \"param_name\" => \"notification\",\r\n \"edit_field_class\" => \"vc_column vc_col-sm-12\",\r\n ),\r\n array(\r\n \t\t\t\t\t\t\t\t\"type\"\t\t\t=>\t\"textfield\",\r\n \t\t\t\t\t\t\t\t\"class\"\t\t\t=>\t\"\",\r\n \t\t\t\t\t\t\t\t\"heading\"\t\t=>\tesc_html__(\"Map name\", \"keydesign\"),\r\n \t\t\t\t\t\t\t\t\"param_name\"\t=>\t\"map_name\",\r\n \t\t\t\t\t\t\t\t\"value\"\t\t\t=>\t\"\",\r\n \t\t\t\t\t\t\t\t\"description\"\t=>\tesc_html__(\"Insert a unique map name.\", \"keydesign\"),\r\n \t\t\t\t\t\t\t\t\"save_always\"\t=>\ttrue,\r\n \t\t\t\t\t\t\t),\r\n\r\n array(\r\n \"type\" => \"textfield\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Location latitude\", \"keydesign\"),\r\n \"param_name\" => \"map_latitude\",\r\n \"value\" => \"\",\r\n \"description\" => esc_html__(\"Enter location latitude.\", \"keydesign\")\r\n ),\r\n\r\n array(\r\n \"type\" => \"textfield\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Location longitude\", \"keydesign\"),\r\n \"param_name\" => \"map_longitude\",\r\n \"value\" => \"\",\r\n \"description\" => esc_html__(\"Enter location longitude.\", \"keydesign\")\r\n ),\r\n\r\n array(\r\n \"type\" => \"dropdown\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Map zoom\", \"keydesign\"),\r\n \"param_name\" => \"map_zoom\",\r\n \"value\" => array(\r\n \"10 - City\" => \"10\",\r\n \"11\" => \"11\",\r\n \"12\" => \"12\",\r\n \"13\" => \"13\",\r\n \"14\" => \"14\",\r\n \"15 - Streets\" => \"15\",\r\n \"16\" => \"16\",\r\n \"17\" => \"17\",\r\n \"18\" => \"18\",\r\n \"19\" => \"19\",\r\n \"20 - Buildings\" => \"20\",\r\n ),\r\n \"description\" => esc_html__(\"Enter map zoom (default 14).\", \"keydesign\")\r\n ),\r\n array(\r\n \t\t\t\t\t\t\t\t\"type\"\t\t\t=>\t\"dropdown\",\r\n \t\t\t\t\t\t\t\t\"class\"\t\t\t=>\t\"\",\r\n \t\t\t\t\t\t\t\t\"heading\"\t\t=>\tesc_html__(\"Map style\", \"keydesign\"),\r\n \t\t\t\t\t\t\t\t\"param_name\"\t=>\t\"map_style\",\r\n \t\t\t\t\t\t\t\t\"value\"\t\t\t=>\tarray(\r\n esc_html__( 'Grayscale', 'keydesign' ) \t\t\t=> 'gmap_style_grayscale',\r\n \t\t\t\t\t\t\t\t\t\tesc_html__( 'Google preset colors', 'keydesign' )\t=> 'gmap_style_normal',\r\n \t\t\t\t\t\t\t\t\t),\r\n \t\t\t\t\t\t\t\t\"description\"\t=>\tesc_html__(\"Choose map style.\", \"keydesign\"),\r\n \t\t\t\t\t\t\t\t\"save_always\"\t=>\ttrue,\r\n \t\t\t\t\t\t\t),\r\n\r\n array(\r\n \"type\" => \"dropdown\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Marker icon source\", \"keydesign\"),\r\n \"param_name\" => \"image_source\",\r\n \"value\" => array(\r\n \"Media library\" => \"media_library\",\r\n \"External link\" => \"external_link\",\r\n ),\r\n \"description\" => esc_html__(\"Select image source.\", \"keydesign\"),\r\n \"save_always\" => true,\r\n ),\r\n\r\n array(\r\n \"type\" => \"attach_image\",\r\n \"heading\" => esc_html__(\"Map marker image\", \"keydesign\"),\r\n \"param_name\" => \"map_icon\",\r\n \"description\" => esc_html__(\"Upload map marker icon. Recommended image size: 50x50 (Width x Height).\", \"keydesign\"),\r\n \"dependency\" =>\tarray(\r\n \"element\" => \"image_source\",\r\n \"value\" => array(\"media_library\")\r\n ),\r\n ),\r\n\r\n array(\r\n \"type\" => \"textfield\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Marker image external source\", \"keydesign\"),\r\n \"param_name\" => \"ext_image\",\r\n \"value\" => \"\",\r\n \"description\" => esc_html__(\"Enter image external link. Recommended image size: 50x50 (Width x Height).\", \"keydesign\"),\r\n \"dependency\" =>\tarray(\r\n \"element\" => \"image_source\",\r\n \"value\" => array(\"external_link\")\r\n ),\r\n ),\r\n\r\n array(\r\n \"type\" => \"textfield\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Map height\", \"keydesign\"),\r\n \"param_name\" => \"map_height\",\r\n \"value\" => \"\",\r\n \"description\" => esc_html__(\"Enter map height in pixels. Default is 400px.\", \"keydesign\")\r\n ),\r\n\r\n array(\r\n \t\t\t\t\t\t\t\t\"type\"\t\t\t=>\t\"dropdown\",\r\n \t\t\t\t\t\t\t\t\"class\"\t\t\t=>\t\"\",\r\n \t\t\t\t\t\t\t\t\"heading\"\t\t=>\tesc_html__(\"Map info panel settings\", \"keydesign\"),\r\n \t\t\t\t\t\t\t\t\"param_name\"\t=>\t\"map_business_panel_settings\",\r\n \"group\" => esc_html__(\"Business info\", \"keydesign\"),\r\n \t\t\t\t\t\t\t\t\"value\"\t\t\t=>\tarray(\r\n esc_html__( \"Hide business info panel\", \"keydesign\" ) => \"hidden_info_panel\",\r\n \t\t\t\t\t\t\t\t\t\tesc_html__( \"Left aligned\", \"keydesign\" )\t=> \"left_info_panel\",\r\n esc_html__( \"Right aligned\", \"keydesign\" ) => \"right_info_panel\",\r\n \t\t\t\t\t\t\t\t\t),\r\n \t\t\t\t\t\t\t\t\"save_always\"\t=>\ttrue,\r\n \t\t\t\t\t\t\t),\r\n\r\n array(\r\n \"type\" => \"textfield\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Panel title\", \"keydesign\"),\r\n \"param_name\" => \"map_business_name\",\r\n \"value\" => \"\",\r\n \"group\" => esc_html__(\"Business info\", \"keydesign\"),\r\n \"description\" => esc_html__(\"Enter panel title.\", \"keydesign\"),\r\n \"dependency\" =>\tarray(\r\n \"element\" => \"map_business_panel_settings\",\r\n \"value\" => array(\"left_info_panel\", \"right_info_panel\")\r\n ),\r\n ),\r\n\r\n array(\r\n \"type\" => \"textfield\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Address\", \"keydesign\"),\r\n \"param_name\" => \"map_business_address\",\r\n \"value\" => \"\",\r\n \"group\" => esc_html__(\"Business info\", \"keydesign\"),\r\n \"description\" => esc_html__(\"Enter business address.\", \"keydesign\"),\r\n \"dependency\" =>\tarray(\r\n \"element\" => \"map_business_panel_settings\",\r\n \"value\" => array(\"left_info_panel\", \"right_info_panel\")\r\n ),\r\n ),\r\n\r\n array(\r\n \"type\" => \"textfield\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Email\", \"keydesign\"),\r\n \"param_name\" => \"map_business_email\",\r\n \"value\" => \"\",\r\n \"group\" => esc_html__(\"Business info\", \"keydesign\"),\r\n \"description\" => esc_html__(\"Enter business email.\", \"keydesign\"),\r\n \"dependency\" =>\tarray(\r\n \"element\" => \"map_business_panel_settings\",\r\n \"value\" => array(\"left_info_panel\", \"right_info_panel\")\r\n ),\r\n ),\r\n\r\n array(\r\n \"type\" => \"textfield\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Phone\", \"keydesign\"),\r\n \"param_name\" => \"map_business_phone\",\r\n \"value\" => \"\",\r\n \"group\" => esc_html__(\"Business info\", \"keydesign\"),\r\n \"description\" => esc_html__(\"Enter business phone.\", \"keydesign\"),\r\n \"dependency\" =>\tarray(\r\n \"element\" => \"map_business_panel_settings\",\r\n \"value\" => array(\"left_info_panel\", \"right_info_panel\")\r\n ),\r\n ),\r\n\r\n array(\r\n \"type\" => \"textfield\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Opening hours title\", \"keydesign\"),\r\n \"param_name\" => \"map_business_opening_hours\",\r\n \"value\" => \"\",\r\n \"group\" => esc_html__(\"Business info\", \"keydesign\"),\r\n \"description\" => esc_html__(\"Enter opening hours title text.\", \"keydesign\"),\r\n \"dependency\" =>\tarray(\r\n \"element\" => \"map_business_panel_settings\",\r\n \"value\" => array(\"left_info_panel\", \"right_info_panel\")\r\n ),\r\n ),\r\n\r\n array(\r\n \"type\" => \"param_group\",\r\n \"class\" => \"\",\r\n \"heading\" => esc_html__(\"Opening hours schedule\", \"keydesign\"),\r\n \"value\" => urlencode( json_encode ( array(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"map_schedule_day\" => \"\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"map_schedule_day_info\" => \"\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n )\t)\t),\r\n \"param_name\" => \"map_business_schedule\",\r\n \"group\" => esc_html__(\"Business info\", \"keydesign\"),\r\n \"dependency\" =>\tarray(\r\n \"element\" => \"map_business_panel_settings\",\r\n \"value\" => array(\"left_info_panel\", \"right_info_panel\")\r\n ),\r\n \"params\" => array(\r\n \t\t\t\t\t\t\t\t\t\t\t\tarray(\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\"type\" => \"textfield\",\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\"heading\" => __(\"Day name\",\"keydesign\"),\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\"param_name\" => \"map_schedule_day_name\",\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\"description\" => \"\",\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\"admin_label\" => true,\r\n \t\t\t\t\t\t\t\t\t\t\t\t),\r\n \t\t\t\t\t\t\t\t\t\t\t\tarray(\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\"type\" => \"textarea\",\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\"heading\" => __(\"Day opening/closing hours\",\"keydesign\"),\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\"param_name\" => \"map_schedule_day_hours\",\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\"value\" => \"\",\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\"description\" => \"\",\r\n \t\t\t\t\t\t\t\t\t\t\t\t),\r\n \t\t\t\t\t\t\t\t),\r\n\r\n ),\r\n\r\n )\r\n ));\r\n }\r\n }", "title": "" }, { "docid": "33ab2a66d0e5878fe403980f91c3a22d", "score": "0.44750866", "text": "public function checkIfLost() {\n if ($this->hasScent($this->x, $this->y) === false) {\n $this->lost = true;\n $this->addScent($this->x, $this->y);\n }\n }", "title": "" }, { "docid": "c8e9ac22e66792d8e1ef94448085b8b9", "score": "0.4473754", "text": "public function update() {\n foreach ($this->mapRange as $serial => $info) {\n $this->removeObjectFromView($serial);\n }\n\n $this->mapRange = [];\n\n $this->updateCursorColor(false, $this->position['map']);\n $this->drawChar();\n $this->drawPlayer();\n\n Map::updateChunk(null, $this->client);\n }", "title": "" }, { "docid": "1ef4c69cee926b495b1fab3347a1d532", "score": "0.44737267", "text": "public function hasMap(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "bbc2184188d18cb8565e173e6b40b927", "score": "0.44733366", "text": "public function setMapData($name,$value) {\n\t\t$sSQL = \"UPDATE tbmap SET $name = $value WHERE map_ID = \".$this->MapID;\n\t\t$this->Conn->command($sSQL);\n\t}", "title": "" }, { "docid": "7bd726081beb2ff1fe13ac1e4c3dd67d", "score": "0.44606495", "text": "function embed_xml($mindmap_id)\r\n\t{\r\n\t\t$this->Mindmap->contain();\r\n\t\t$mindmap = $this->Mindmap->findById($mindmap_id);\r\n\t\t$this->redirect('/mindmaps/xml/'.$mindmap['Mindmap']['revision_id']);\r\n\t}", "title": "" }, { "docid": "409e5c6d775ae2cfeeb9ff40d9681ef1", "score": "0.44578737", "text": "public function edit(Armazem $armazem)\n {\n //\n if(!(Gate::denies('update_armazem'))){ \n\n //LOG --------------------------------------------------------\n $this->log(\"armazem.edit\");\n //------------------------------------------------------------ \n\n return view('armazem.edit', compact('armazem'));\n }\n else{\n return view('errors.403');\n }\n }", "title": "" }, { "docid": "1fb0c0310cf3c368197de779b8680b77", "score": "0.44513705", "text": "function add()\r\n\t{\r\n\t \t$this->Auth->check();\r\n\t\t\r\n\t\tif(empty($this->data)) \r\n\t\t{\r\n\t\t\t$this->render();\r\n\t\t} \r\n\t\telse \r\n\t\t{\r\n\t\t \t$this->data['Mindmap']['user_id'] = $this->Session->read('User.id');\r\n\t\t \t$data = \r\n'<MindMap>\r\n <MM>\r\n <Node x_Coord=\"400\" y_Coord=\"270\" PopUp=\"0\" Name=\"K00001\">\r\n <Text>'.$this->data['Mindmap']['name'].'</Text>\r\n <Format Underlined=\"0\" Italic=\"0\" Bold=\"0\" Alignment=\"M\" Size_x=\"30\" Size_y=\"70\">\r\n <Font>Trebuchet MS</Font>\r\n <FontSize>14</FontSize>\r\n <FontColor>ffffff</FontColor>\r\n <BackgrColor>ff0000</BackgrColor>\r\n <FormatLine>\r\n <LineColor>000000</LineColor>\r\n <LineSize>1</LineSize>\r\n <LineForm>DEFAULT</LineForm>\r\n </FormatLine>\r\n <ConnectLine>\r\n <LineColor>000000</LineColor>\r\n <LineSize>1</LineSize>\r\n <LineForm>DEFAULT</LineForm>\r\n </ConnectLine>\r\n </Format>\r\n <ConnectLine>\r\n <LineColor>000000</LineColor>\r\n <LineSize>1</LineSize>\r\n </ConnectLine>\r\n </Node>\r\n </MM>\r\n</MindMap>';\r\n\t\t\tif($this->Mindmap->save($this->data, array('user_id', 'name', 'public'))) \r\n\t\t\t{\r\n\t\t\t \t$id = $this->Mindmap->getLastInsertId();\r\n\t\t\t \t\r\n\t\t\t\t$save = array();\r\n\t\t\t\t$save['data'] = $data;\r\n\t\t\t\t$save['user_id'] = $this->Session->read('User.id');\r\n\t\t\t\t$save['mindmap_id'] = $id;\r\n\t\t\t\t$this->Mindmap->Revision->save($save);\r\n\t\t\t \t$revision_id = $this->Mindmap->Revision->getLastInsertID();\r\n\t\t\t \t$this->Mindmap->saveField('revision_id', $revision_id);\r\n\t\t\t \t\r\n\t\t\t\t$this->redirect('/mindmaps/viewer/'.$id);\r\n\t\t\t} \r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t$this->Session->setFlash(__('flash.Mindmap.add.failed', true), 'flash_error');\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "32a63203c6fcd662bf18918aca93fc88", "score": "0.44503182", "text": "public function clear()\n {\n $this->map = array();\n }", "title": "" }, { "docid": "caa1bde994908ea94d13e14fee52aa76", "score": "0.44496676", "text": "public function from(Map $identityMap): State;", "title": "" }, { "docid": "7416ca4df744478fd9900509ebca16c3", "score": "0.44360796", "text": "public function update(MapRequest $request, $id)\n {\n // $map = Map::all();\n\n $map = Map::find($id);\n\n // return $map;\n\n //$map->update($request->all());\n\n $map->update($request->all());\n\n //$username = (!$request->input('username') ? [] : $request->input('username'));\n\n //$assigned_on = (!$request->input('assigned_on') ? [] : $request->input('assigned_on'));\n\n //$pivotData = array('map_id'=>$id, 'user_id'=>$username);\n\n // return $pivotData;\n\n //$map->users()->sync($pivotData);\n\n return redirect('my-maps');\n }", "title": "" }, { "docid": "ff7d31ecf2d2619f2ecddd6292ea71ce", "score": "0.44194967", "text": "public function clearMapping()\n {\n self::_getOrUseMapping(null);\n }", "title": "" }, { "docid": "12797afd3251f73e91d37dff07b14424", "score": "0.44174975", "text": "public function edit(AssetMap $assetMap)\n {\n //\n }", "title": "" }, { "docid": "25f901244c52e92b9cda8d3247eb6304", "score": "0.44169214", "text": "public function testUpdateLocation()\n {\n\n }", "title": "" }, { "docid": "83ba109b715da2c487e894a3b526fff0", "score": "0.44148764", "text": "public function update() {\n $this->set('data', 'stay');\n // MEMO: test\n //$this->request->data = self::$testData;\n if ($this->request->is('post')) {\n $updated = $this->GeoTool->update($this->request->data);\n\tif ($updated) {\n\t $this->set('data', 'saved');\n\t}\n }\n $this->set('_serialize', array('data'));\n }", "title": "" }, { "docid": "1f7bab612697669a3beb0b73ff74435e", "score": "0.44129696", "text": "function isUsingMapEntries();", "title": "" }, { "docid": "9f3c83f83ecd944f8eaa4617e8baadbe", "score": "0.44119734", "text": "function is_modifiable(){ return false; }", "title": "" }, { "docid": "6e8aba564420a3260bc27af7008afcd3", "score": "0.44086084", "text": "protected function map(){\n\t\tforeach ( $this->map_to_fields() as $field ){\n\t\t\tif( isset( $this->map[ $field ] ) ){\n\t\t\t\t$this->mapped[ $field ] = $this->map[ $field ];\n\t\t\t}else{\n\t\t\t\t$this->mapped[ $field ] = null;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1862105ef125c082b4001e13935ca6cc", "score": "0.44010258", "text": "public function setMap(array $map):void\n {\n $this->map = $map;\n }", "title": "" }, { "docid": "a0c281e4b96036c1336f57f1ae9bbb20", "score": "0.43983647", "text": "public function edit(Iglesiamapa $iglesiamapa) {\n //\n }", "title": "" }, { "docid": "0047a0d1a9e99830fd5f2130d130ce93", "score": "0.43879983", "text": "public function fromOnly(Map $identityMap, object ...$entities): State;", "title": "" }, { "docid": "6a74d82bb5239471ec531f3b48f4e788", "score": "0.4386886", "text": "public static function unmodifiable(Map $map): Map\n {\n if (!$map->modifiable) {\n return $map;\n }\n\n $unmodifiableMap = clone $map;\n $unmodifiableMap->modifiable = false;\n\n return $unmodifiableMap;\n }", "title": "" }, { "docid": "acfec9854cd4d9126da2fd24d0df1f2c", "score": "0.436564", "text": "public function showAction() {\n $this->settings['centerLat'] = $this->settings['centerLat'] ?: '50';\n $this->settings['centerLng'] = $this->settings['centerLng'] ?: '10';\n $this->settings['zoom'] = $this->settings['zoom'] ?: '4';\n $this->settings['width'] = $this->settings['width'] ?: '600px';\n $this->settings['height'] = $this->settings['height'] ?: '600px';\n $this->settings['snazzy'] = $this->settings['snazzy'] ?: '[]';\n\n // Render map\n $contentObj = $this->configurationManager->getContentObject();\n $mapProvider = $this->objectManager->get($this->settings['mapProvider']);\n $map = $mapProvider->renderMap($contentObj, $this->settings);\n $this->view->assign('map', $map);\n\n }", "title": "" }, { "docid": "dbc80c52f75100a55c36fab0dde44da8", "score": "0.43591928", "text": "function yandex_map_default_map() {\r\n // Base settings.\r\n $settings = array(\r\n 'map_id' => yandex_map_new_id(),\r\n 'width' => '100%',\r\n 'height' => '300px',\r\n 'center' => '',\r\n 'zoom' => 11,\r\n 'type' => 'map',\r\n 'controls' => array(),\r\n );\r\n\r\n // Configure map controls.\r\n $controls = yandex_map_controls();\r\n foreach ($controls as $key => $data) {\r\n $settings['controls'][$key]['enable'] = (bool) variable_get(\"yandex_map_controls_{$key}\", TRUE);\r\n foreach (array('top', 'bottom', 'left', 'right') as $pos) {\r\n if ($val = variable_get(\"yandex_map_controls_{$key}_{$pos}\", '')) {\r\n $settings['controls'][$key][$pos] = (int) $val;\r\n }\r\n }\r\n }\r\n\r\n // Configure map center.\r\n $settings['center'] = _yandex_map_setting_get('center');\r\n $settings['zoom'] = _yandex_map_setting_get('zoom');\r\n $settings['type'] = _yandex_map_setting_get('type');\r\n\r\n // Configure map size.\r\n $settings['height'] = _yandex_map_setting_get('height');\r\n if (is_numeric($settings['height'])) {\r\n $settings['height'] .= 'px';\r\n }\r\n $settings['width'] = _yandex_map_setting_get('width');\r\n if (is_numeric($settings['width'])) {\r\n $settings['width'] .= 'px';\r\n }\r\n\r\n // Configure map behaviors.\r\n $settings['behaviors'] = _yandex_map_setting_get('behavior');\r\n\r\n // Configure allowed map types.\r\n $settings['types'] = _yandex_map_setting_get('types');\r\n\r\n // Configure map view and edit tools.\r\n $settings['mapTools'] = _yandex_map_setting_get('mapTools');\r\n $settings['editTools'] = _yandex_map_setting_get('editTools');\r\n\r\n // Setup map mode.\r\n $settings['mode'] = 'view';\r\n\r\n return $settings;\r\n}", "title": "" }, { "docid": "231800850fbf5c2f248e3201ec72f6bc", "score": "0.43525285", "text": "public function regenerate()\n\t{\n\t\texec($this->_generatorPath . ' -w ' . Zend_Registry::get('config')->get('minecraft')->get('worldPath') . '/world -o ' . $this->getMapPath());\n\t}", "title": "" }, { "docid": "b038a98caa7fa9c311b7b3e62de259c9", "score": "0.43517658", "text": "public function clear()\n {\n throw new UnmodifiableException('This map is immutable');\n }", "title": "" }, { "docid": "ac723009eac59edc90c551e3fb2693d7", "score": "0.4351643", "text": "function mindcraft_scale_used($mindcraftid, $scaleid) {\n global $DB;\n\n if ($scaleid and $DB->record_exists('mindcraft', array('id' => $mindcraftid, 'grade' => -$scaleid))) {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "626d676aa94048c2b1025cf3b3ddb7dd", "score": "0.4343628", "text": "function mindcraft_reset_userdata($data) {\n global $CFG, $DB;\n\n $componentstr = get_string('modulenameplural', 'mindcraft');\n $status = array();\n\n if (!empty($data->reset_mindcraft)) {\n $mindcraftssql = \"SELECT ad.id\n FROM {mindcraft} ad\n WHERE ad.course=?\";\n $params = array($data->courseid);\n \n $DB->delete_records_select('mindcraft_maps', \"mindcraftid IN ($mindcraftssql)\", $params);\n $status[] = array('component'=>$componentstr, 'item'=>get_string('removeinstances', 'mindcraft'), 'error'=>false);\n }\n\n /// updating dates - shift may be negative too\n /*\n if ($data->timeshift) {\n shift_course_mod_dates('mindcraft', array(''), $data->timeshift, $data->courseid);\n $status[] = array('component'=>$componentstr, 'item'=>get_string('datechanged'), 'error'=>false);\n }\n */\n\n return $status;\n}", "title": "" }, { "docid": "db864ec4682fdbbf2bac72823b61f293", "score": "0.43336526", "text": "public function revive(){\n $this->isDead = false;\n $this->currentHitPoints = $this->maxHitPoints();\n }", "title": "" }, { "docid": "fe8d28ede5383570297a847ae906fe17", "score": "0.43314132", "text": "function responsive_image_mapping_admin_form_submit($form, &$form_state) {\n if ($form_state['triggering_element']['#name'] === 'add_bp') {\n $form_state['breakpoints'] = $form['settings']['rim_settings']['#bp_count'] + 1;\n $form_state['rebuild'] = TRUE;\n drupal_set_message(t('You are adding a breakpoint, you may have to edit your existing mappings.'), 'warning');\n }\n else {\n $breakpoints = array();\n $mappings = array();\n $current_mappings = responsive_image_mapping_get_mappings();\n foreach ($form_state['values'] as $form_key => $form_value) {\n if (preg_match('/breakpoint_+/', $form_key) && !empty($form_value)) {\n $breakpoints[] = $form_value;\n }\n elseif (preg_match('/rim_mapping_+/', $form_key) && !empty($form_value)) {\n $mappings[] = $form_value;\n }\n // Save mappings if breakpoint is deleted and a current mapping references that break.\n elseif (empty($form_value) && strpos($form_key, 'breakpoint') !== FALSE) {\n $missing_key = str_replace('breakpoint_', '', $form_key);\n $missing_key = $missing_key - 1;\n foreach ($current_mappings as $key => $mapping) {\n $curr_maps_changed = FALSE;\n if (isset($current_mappings[$key]['mappings'][$missing_key])) {\n unset($current_mappings[$key]['mappings'][$missing_key]);\n $current_mappings[$key]['mappings'] = array_values($current_mappings[$key]['mappings']);\n $curr_maps_changed = TRUE;\n }\n if ($curr_maps_changed) {\n db_update('responsive_img_mapping')\n ->fields(array(\n 'preset_key' => $current_mappings[$key]['preset_key'],\n 'mappings' => serialize($current_mappings[$key]['mappings'])\n ))\n -> condition('id', $current_mappings[$key]['id'])\n ->execute();\n $message = 'You removed breakpoint ' . $form_key . ', ' . $current_mappings[$key]['preset_key'] . ' mapping has been updated accordingly.';\n drupal_set_message(check_plain(t($message)), 'warning');\n }\n }\n }\n }\n variable_set('rim_breakpoints', $breakpoints);\n variable_set('rim_image_default', $form_state['values']['rim_image_default']);\n // Save the mappings to database.\n if ($form_state['values']['rim_preset_key'] !== 'none') {\n db_insert('responsive_img_mapping') // Table name no longer needs {}\n ->fields(array(\n 'preset_key' => $form_state['values']['rim_preset_key'],\n 'mappings' => serialize($mappings),\n ))\n ->execute();\n drupal_set_message(t('Setting saved. Mapping created.'));\n }\n else {\n drupal_set_message(t('Setting saved. No mapping created, no preset key selected.'));\n }\n }\n}", "title": "" }, { "docid": "21860b7dda45fdbc5ff99255d6224340", "score": "0.43272957", "text": "public function testHasMap()\n\t{\n\t DaoMap::loadMap($this->_className);\n\t\t$this->assertTrue(DaoMap::hasMap($this->_className));\n\t\tDaoMap::clearMap();\n\t\t$this->assertFalse(DaoMap::hasMap($this->_className));\n\t}", "title": "" }, { "docid": "1eb4af28cb636fe10c59ffbb6f06d32c", "score": "0.43202868", "text": "public function update($id)\n\t\t\t{\t\t \n\t\t\t\tif(Input::get('Preview')) {\t\t \t\n\t\t\t\t\tif($this->validateLocation(Input::get('venue_address'))==false)\n\t\t\t\t\t{\n\t\t\t//invalid address\n\t\t\t\t\t\tSession::flash('message', 'Invalid Address!');\n\t\t\t\t\t\treturn Redirect::to('venue/' .$id. '/edit') \n\t\t\t\t\t\t->withInput(Input::all());\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$map = $this->makeMap(Input::get('venue_address'));\t\t\t\t\n\t\t\t\t\t\treturn Redirect::to('venue/' .$id. '/edit')->withInput(Input::all())->with('map',$map);\n\t\t\t\t\t}\n\n\t\t\t\t} elseif(Input::get('Edit')) {\n\t\t\t// validate\n\t\t\t// read more on validation at http://laravel.com/docs/validation\n\t\t\t\t\t$rules = array(\n\t\t\t\t\t\t'venue_name' => 'required',\n\t\t\t\t\t\t'venue_address' => 'required', \n\t\t\t\t\t\t);\n\t\t\t\t\t$validator = Validator::make(Input::all(), $rules);\n\n\t\t\t// process the login\n\t\t\t\t\tif ($validator->fails()) {\n\t\t\t\t\t\treturn Redirect::to('venue/' .$id. '/edit')\n\t\t\t\t\t\t->withErrors($validator)\n\t\t\t\t\t\t->withInput(Input::all());\t \n\t\t\t\t\t} \n\t\t\t\t\telse if($this->validateLocation(Input::get('venue_address'))==false)\n\t\t\t\t\t{\n\t\t\t//invalid address\n\t\t\t\t\t\tSession::flash('message', 'Invalid Address!');\n\t\t\t\t\t\treturn Redirect::to('venue/edit') \n\t\t\t\t\t\t->withInput(Input::all());\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t// store\n\t\t\t\t\t\t$venue = Venue::find($id); \t\t \n\t\t\t\t\t\tlist($lat, $lng, $error) = Gmaps::get_lat_long_from_address(Input::get('venue_address'));\t\t\t \t\n\t\t\t\t\t\t$venue->venue_name = Input::get('venue_name');\n\t\t\t\t\t\t$venue->venue_address = Input::get('venue_address');\n\t\t\t\t\t\t$venue->latitude = $lat;\n\t\t\t\t\t\t$venue->longitude = $lng; \n\t\t\t\t\t\t$venue->modified_by = Auth::user()->user_id;\n\t\t\t\t\t\t$venue->save(); \n\n\t\t\t// redirect\n\t\t\t\t\t\tSession::flash('message', 'Venue Successfully Updated!');\n\t\t\t\t\t\treturn Redirect::to('venue');\n\t\t\t\t\t} \n\t\t\t\t}}", "title": "" }, { "docid": "4b7b6a492990e29eda5da3b974d47f87", "score": "0.43096513", "text": "public function buildMap()\n {\n $directions = [1, 4, 2, 3];\n $dirIndex = 0;\n $currX = 0;\n $currY = 0;\n $maxX = 0;\n $maxY = 0;\n $minX = 0;\n $minY = 0;\n $atTheWall = false;\n\n while (true) {\n $this->computer->putInput($directions[$dirIndex]);\n $this->computer->runUntilOutput();\n\n $output = $this->computer->getOutputArray()[count($this->computer->getOutputArray()) - 1];\n\n if ($output === 1) { // we could move in the direction we wanted\n if ($directions[$dirIndex] === 1) {\n $currY++;\n $maxY = max($maxY, $currY);\n } elseif ($directions[$dirIndex] === 2) {\n $currY--;\n $minY = min($minY, $currY);\n } elseif ($directions[$dirIndex] === 3) {\n $currX--;\n $minX = min($minX, $currX);\n } elseif ($directions[$dirIndex] === 4) {\n $currX++;\n $maxX = max($maxX, $currX);\n }\n\n // Check if we have returned to starting point\n if ($currX === 0 && $currY === 0) {\n break;\n }\n\n $map[$currX][$currY] = '.';\n\n // Try turning left\n if ($atTheWall) {\n $dirIndex--;\n if ($dirIndex < 0) {\n $dirIndex += 4;\n }\n } else {\n continue;\n }\n } elseif ($output == 0) { // Hit wall\n $atTheWall = true;\n\n // Mark wall on the map\n if ($directions[$dirIndex] == 1) {\n $map[$currX][$currY + 1] = '#';\n $maxY = ($maxY > ($currY + 1)) ? $maxY : $currY + 1;\n } elseif ($directions[$dirIndex] == 2) {\n $map[$currX][$currY - 1] = '#';\n $minY = ($minY < ($currY - 1)) ? $minY : $currY - 1;\n } elseif ($directions[$dirIndex] == 3) {\n $map[$currX - 1][$currY] = '#';\n $minX = ($minX < ($currX - 1)) ? $minX : $currX - 1;\n } elseif ($directions[$dirIndex] == 4) {\n $map[$currX + 1][$currY] = '#';\n $maxX = ($maxX > ($currX + 1)) ? $maxX : $currX + 1;\n }\n\n $dirIndex++;\n if ($dirIndex > 3) {\n $dirIndex -= 4;\n }\n } elseif ($output == 2) {\n // Encountered the searched item\n if ($directions[$dirIndex] == 1) {\n $currY++;\n $maxY = ($maxY > $currY) ? $maxY : $currY;\n } elseif ($directions[$dirIndex] == 2) {\n $currY--;\n $minY = ($minY < $currY) ? $minY : $currY;\n } elseif ($directions[$dirIndex] == 3) {\n $currX--;\n $minX = ($minX < $currX) ? $minX : $currX;\n } elseif ($directions[$dirIndex] == 4) {\n $currX++;\n $maxX = ($maxX > $currX) ? $maxX : $currX;\n }\n\n $this->oxygentLocation = new Point($currX, $currY);\n\n $map[$currX][$currY] = '2';\n }\n }\n\n for ($x = $minX; $x <= $maxX; $x++) {\n for ($y = $minY; $y <= $maxY; $y++) {\n if (!isset($map[$x][$y])) {\n $map[$x][$y] = '#';\n }\n }\n }\n\n $this->map = $map;\n $this->mapMinPoint = new Point($minX, $minY);\n $this->mapMaxPoint = new Point($maxX, $maxY);\n }", "title": "" }, { "docid": "70da051892963f5e6c2f8aeb35728aaa", "score": "0.4308476", "text": "function gmap_ajoute_carte_edit($parts, $table, $id, $mapId, $divId)\r\n{\r\n\t// Ajouter un DIV qui va recevoir la carte\r\n\t$parts['html'] .= '\r\n<div id=\"'.$divId.'\" class=\"carte_editer_gmap\"></div>';\r\n\t\r\n\t// Lecture des paramètres de la carte\r\n\t$parts['script'] .= gmap_definir_parametre_carte($table, $id, $mapId.'.mapParams', null, 'prive');\r\n\t\r\n\t// Partie de script sans code PHP\r\n\t$parts['script'] .= '\r\n// Créer les icones pour la partie privée\r\n'.$mapId.'.createIcons = function(map)\r\n{\r\n\tmap.setIcon(\"editMarker\", '.gmap_definition_icone('priveEdit').');\r\n\tmap.setIcon(\"activeMarker\", '.gmap_definition_icone('priveActive').');\r\n\tmap.setIcon(\"siblingMarker\", '.gmap_definition_icone('priveSibling').');\r\n\tmap.setIcon(\"activeSiblingMarker\", '.gmap_definition_icone('priveSiblingActive').');\r\n};\r\n\r\n// Chargement de la carte et mise en place des gestionnaire d\\'évènement\r\n'.$mapId.'.load = function(mapId, divId, mapParams)\r\n{\r\n\t// Récupérer de la carte\r\n\tvar map = MapWrapper.getMap(mapId, true);\r\n\tif (!isObject(map))\r\n\t\treturn false;\r\n\t\r\n\t// Déclarer les icones qui vont être utilisées\r\n\tthis.createIcons(map);\r\n\t\t\r\n\t// Chargement de la carte\r\n\tmapParams.handleResize = true;\r\n\tmapParams.mergeInfoWindows = false;\r\n\tif (!map.load(divId, mapParams))\r\n\t\treturn false;\r\n\r\n\treturn true;\r\n};\r\n\r\n// Gestion de document.ready\r\n'.$mapId.'.onCarteDocumentReady = function()\r\n{\r\n\t// Vérifier que la div est bien là pour éviter une erreur javascript...\r\n\tvar host = document.getElementById(\"'.$divId.'\");\r\n\tif (host)\r\n\t{\r\n\t\t// Charger la carte\r\n\t\tif (!isObject(gMap(\"'.$mapId.'\")) || !gMap(\"'.$mapId.'\").isLoaded())\r\n\t\t\t'.$mapId.'.load(\"'.$mapId.'\", \"'.$divId.'\", '.$mapId.'.mapParams);\r\n\t}\r\n};\r\n\r\n// Fermeture de la page\r\n'.$mapId.'.onCarteUnload = function()\r\n{\r\n\tif (isObject(gMap(\"'.$mapId.'\")))\r\n\t\tMapWrapper.freeMap(\"'.$mapId.'\");\r\n};\r\n';\r\n\r\n\t$parts['script_ready'] .= '\r\n\tif (typeof('.$mapId.'.onCarteDocumentReady) === \"function\")\r\n\t\t'.$mapId.'.onCarteDocumentReady();';\r\n\t$parts['script_unload'] .= '\r\n\tif (typeof('.$mapId.'.onCarteUnload) === \"function\")\r\n\t\t'.$mapId.'.onCarteUnload();';\r\n\r\n\treturn $parts;\r\n}", "title": "" }, { "docid": "804cd8114598f37c8c4891481f574e1d", "score": "0.43079892", "text": "public function setVanilla() {\n\t\t$this->locations[\"Missile (lava room)\"]->setItem(Item::get('Missile'));\n\t\t$this->locations[\"Reserve Tank, Norfair\"]->setItem(Item::get('ReserveTank'));\n\t\t$this->locations[\"Missile (Norfair Reserve Tank)\"]->setItem(Item::get('Missile'));\n\t\t$this->locations[\"Missile (bubble Norfair green door)\"]->setItem(Item::get('Missile'));\n\t\t$this->locations[\"Missile (bubble Norfair)\"]->setItem(Item::get('Missile'));\n $this->locations[\"Missile (Speed Booster)\"]->setItem(Item::get('Missile'));\n $this->locations[\"Speed Booster\"]->setItem(Item::get('SpeedBooster'));\n $this->locations[\"Missile (Wave Beam)\"]->setItem(Item::get('Missile'));\n $this->locations[\"Wave Beam\"]->setItem(Item::get('Wave')); /* Speed Booster was listed here again! */\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "8f36b132b09c93da2569f66abb34feed", "score": "0.43068227", "text": "public function DrawMap()\n\t{\n\t\treturn $this->graphics->DrawMap();\n\t}", "title": "" }, { "docid": "0b7b841679a4d865308dad56188b269c", "score": "0.4303547", "text": "function is_modifiable(){ return true; }", "title": "" }, { "docid": "0b7b841679a4d865308dad56188b269c", "score": "0.4303547", "text": "function is_modifiable(){ return true; }", "title": "" }, { "docid": "2f24e449e3f6ec450a27bf5f58df2bca", "score": "0.43011904", "text": "function responsive_image_mapping_admin_form_validate($form, &$form_state) {\n if ($form_state['triggering_element']['#name'] !== 'add_bp') {\n $preset_key = $form_state['values']['rim_preset_key'];\n // Check to make sure preset mapping isn't already set.\n $current_mappings = responsive_image_mapping_get_mappings();\n if ($current_mappings) {\n foreach ($current_mappings as $key => $value) {\n if ($current_mappings[$key]['preset_key'] == $preset_key) {\n form_set_error('rim_preset_key', t('A mapping already exists for that preset, please edit or delete the existing one.'));\n }\n }\n }\n $form_keys = array_keys($form_state['values']);\n $new_mappings = 0;\n foreach ($form_keys as $value) {\n if (strpos($value, 'rim_mapping_') !== false) {\n $new_mappings++;\n }\n }\n // Check for empty mappings, we want to ensure there is at least one mapping.\n if ($new_mappings > 1 && $preset_key !== 'none') {\n $mapping_set = FALSE;\n // Check all mapping values, check that all are not set to 'none'.\n for ($i = 0; $i < $new_mappings; $i++) {\n $index_value = 'rim_mapping_' . $i;\n if ($form_state['values'][$index_value] !== 'none') {\n $mapping_set = TRUE;\n }\n echo $i;\n }\n if (!$mapping_set) {\n form_set_error('mapping_1', t('You must select at least one mapping.'));\n }\n }\n elseif ($preset_key !== 'none' && $form_state['values']['rim_mapping_0'] == 'none') {\n // Single mapping, ensure the single mapping is not 'none'.\n form_set_error('mapping_1', t('You must select at least one mapping.'));\n }\n }\n}", "title": "" }, { "docid": "faee9894c5f36380eddcafdfd017b210", "score": "0.42997077", "text": "function do_sector_flying(&$data) {\n gen_debug(\"subsector flying\",4);\n $query=\"select sector_id from sectors where sector_id=\".$data['val_dec'];\n gen_debug($query,5);\n if(isset($data['sectors'])) {\n unset($data['sectors']);\n }\n if(mysql_ask($data['sectors'],$query)) {\n $query=\"update persons set person_sector_id=\".$data['sectors'][0]['sector_id'].\" where person_id=\".$data['user'][0]['owned_person_id'];\n gen_debug($query,5);\n return mysql_update($query);\n }\n return false;\n}", "title": "" }, { "docid": "60d3f8facd896e2c3f21c90cb8a971a4", "score": "0.4297376", "text": "function _setRights()\n {\n // the user has the 'edit' right on the projectplan.\n $this->setSecurityAlias(\"projectplan.projectplan\");\n $this->m_securityMap[\"add\"] = \"edit\"; \n $this->m_securityMap[\"delete\"] = \"edit\";\n $this->m_securityMap[\"save\"] = \"edit\";\n $this->m_securityMap[\"update\"] = \"edit\";\n }", "title": "" }, { "docid": "657729da0cc3fcb45b3af57ef9eded31", "score": "0.42920917", "text": "public function invalidate(): bool;", "title": "" }, { "docid": "96f7aeb9e9fe39d17affd07d12c6838d", "score": "0.4291487", "text": "function wpgmaps_reload_map_on_post() {\n /*\n if (isset($_POST['wpgmza_savemap'])){\n\n $res = wpgmza_get_map_data(sanitize_text_field($_GET['map_id']));\n $wpgmza_lat = $res->map_start_lat;\n $wpgmza_lng = $res->map_start_lng;\n $wpgmza_width = intval($res->map_width);\n $wpgmza_height = intval($res->map_height);\n $wpgmza_width_type = $res->map_width_type;\n $wpgmza_height_type = $res->map_height_type;\n $wpgmza_map_type = $res->type;\n if (!$wpgmza_map_type || $wpgmza_map_type == \"\" || $wpgmza_map_type == \"1\") { $wpgmza_map_type = \"ROADMAP\"; }\n else if ($wpgmza_map_type == \"2\") { $wpgmza_map_type = \"SATELLITE\"; }\n else if ($wpgmza_map_type == \"3\") { $wpgmza_map_type = \"HYBRID\"; }\n else if ($wpgmza_map_type == \"4\") { $wpgmza_map_type = \"TERRAIN\"; }\n else { $wpgmza_map_type = \"ROADMAP\"; }\n $start_zoom = $res->map_start_zoom;\n if ($start_zoom < 1 || !$start_zoom) { $start_zoom = 5; }\n if (!$wpgmza_lat || !$wpgmza_lng) { $wpgmza_lat = \"51.5081290\"; $wpgmza_lng = \"-0.1280050\"; }\n\n ?>\n <script type=\"text/javascript\">\n jQuery(function() {\n jQuery(\"#wpgmza_map\").css({\n height:'<?php echo $wpgmza_height; ?><?php echo $wpgmza_height_type; ?>',\n width:'<?php echo $wpgmza_width; ?><?php echo $wpgmza_width_type; ?>'\n\n });\n var myLatLng = new google.maps.LatLng(<?php echo $wpgmza_lat; ?>,<?php echo $wpgmza_lng; ?>);\n MYMAP.init('#wpgmza_map', myLatLng, <?php echo $start_zoom; ?>);\n UniqueCode=Math.round(Math.random()*10010);\n MYMAP.placeMarkers('<?php echo wpgmaps_get_marker_url(sanitize_text_field($_GET['map_id'])); ?>?u='+UniqueCode,<?php echo sanitize_text_field($_GET['map_id']); ?>);\n\n });\n </script>\n <?php\n }\n*/\n\n}", "title": "" }, { "docid": "2f6070fd74131cbc991cdacb8e32d55a", "score": "0.42891872", "text": "function knowledgemaps_add_instance($newMap) {\n global $DB;\n\t\n\t// TODO?\n \n $newMap->timemodified = $newMap->timecreated = time();\n\n return $DB->insert_record(\"knowledgemaps\", $newMap);\n}", "title": "" }, { "docid": "bb3672c7ca6de7cccaa2983eeeac656d", "score": "0.42871988", "text": "public function actionMap() \n {\n \n // Only post requests\n $this->requirePostRequest();\n \n // Send variables to template and display\n $this->renderTemplate('export/map');\n \n }", "title": "" }, { "docid": "bd41c4bb8db379b3ed646f46ff4c9ab5", "score": "0.4285131", "text": "public function save(&$entity) {\n // and the base demand source \n // and then multiply the factor from the linked projection by this base demand value\n \n // load all projections that are linked to this parent projection\n // this only can happen if this is an established projection with a valid ID,\n // otherwise, if it is an initial insert, we can skip this (since nothing can have been linked to it)\n $code = $this->row_map['code'];\n $start = $this->row_map['start'];\n $end = $this->row_map['code'];\n }", "title": "" }, { "docid": "167b3548f2fc7bd48237b6ddb167edf6", "score": "0.4281592", "text": "function changeInternalStatus(){\n JRequest::checkToken() or jexit( 'JInvalid_Token' );\t\t\n $jinput = JFactory::getApplication()->input;\n $actions = JResearchAccessHelper::getActions();\n if($actions->get('core.publications.edit.state')){\t\t\n $model = $this->getModel('Publication', 'JResearchAdminModel');\n $task = $jinput->get('task');\n $value = false;\n if($task == 'makeinternal'){\n $key = 'JRESEARCH_NITEMS_TURNED_INTERNAL'; \n $value = true;\n }else{\n $key = 'JRESEARCH_NITEMS_TURNED_NON_INTERNAL'; \t\n }\n\n $n = $model->setInternalValue($value);\n $this->setRedirect('index.php?option=com_jresearch&controller=publications', \n JText::plural('JRESEARCH_N_ITEMS_TURNED_INTERNAL', $n));\n $errors = $model->getErrors();\n if(!empty($errors))\n JError::raiseWarning(1, explode('<br />', $errors));\n }else{\n JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));\n }\n }", "title": "" }, { "docid": "14eb7be44d5375c364ee3d3f28d50585", "score": "0.42746025", "text": "function gmw_fl_map_elements( $mapElements, $gmw ) {\n\t\t\n\t$settings = get_option( 'gmw_options' );\n\n\tif ( !isset( $gmw['results_map']['your_location_icon'] ) )\n\t\t$gmw['results_map']['your_location_icon'] = '_default.png';\n\t\n\t//set the user location marker\n\t$mapElements['userPosition']['mapIcon'] = $settings['ml_map_icons']['url']. $gmw['results_map']['your_location_icon'];\n\t\n\t//disable the map control. We will enable each one based on the form settings\n\t$mapElements['mapOptions'] = array_merge( $mapElements['mapOptions'], array(\n\t\t\t'zoomControl' \t \t => false,\n\t\t\t'mapTypeControl' \t => false,\n\t\t\t'streetViewControl' => false,\n\t\t\t'scrollwheel'\t\t => false,\n\t\t\t'panControl'\t\t => false,\n\t\t\t'scaleControl'\t\t => false,\n\t\t\t'overviewMapControl' => false\n\t) );\n\n\t//resize map element\n\t$mapElements['resizeMapElement'] = false;\n\n\t//enabled map controls\n\tif ( !empty( $gmw['results_map']['map_controls'] ) ) {\n\n\t\tforeach ( $gmw['results_map']['map_controls'] as $value ) {\n\n\t\t\tif ( $value == 'resizeMapControl' ) {\n\t\t\t\t$mapElements['resizeMapElement'] = 'gmw-resize-map-trigger-'.$gmw['ID'];\n\t\t\t} else {\n\t\t\t\t$mapElements['mapOptions'][$value] = true;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $mapElements;\t\t\n}", "title": "" }, { "docid": "847a124a5f4a6c5b897e89dfbd2c497c", "score": "0.42736268", "text": "public function store(MapRequest $request)\n {\n //only continues below if validation doesn't fail\n\n // dd($request->input('slips'));\n\n\n }", "title": "" }, { "docid": "bcc17ab168fab31661a27a0c7f6b6dfc", "score": "0.4270385", "text": "public function setVanilla() {\n\t\t$this->locations[\"[dungeon-C-1F] Sanctuary\"]->setItem(Item::get('HeartContainer'));\n\t\t$this->locations[\"[dungeon-C-B1] Escape - final basement room [left chest]\"]->setItem(Item::get('ThreeBombs'));\n\t\t$this->locations[\"[dungeon-C-B1] Escape - final basement room [middle chest]\"]->setItem(Item::get('ThreeHundredRupees'));\n\t\t$this->locations[\"[dungeon-C-B1] Escape - final basement room [right chest]\"]->setItem(Item::get('TenArrows'));\n\t\t$this->locations[\"[dungeon-C-B1] Escape - first B1 room\"]->setItem(Item::get('Key'));\n\t\t$this->locations[\"[dungeon-C-B1] Hyrule Castle - boomerang room\"]->setItem(Item::get('Boomerang'));\n\t\t$this->locations[\"[dungeon-C-B1] Hyrule Castle - map room\"]->setItem(Item::get('Map'));\n\t\t$this->locations[\"[dungeon-C-B3] Hyrule Castle - next to Zelda\"]->setItem(Item::get('Lamp'));\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "b0708ca6349231fbb1a984cde1cac769", "score": "0.42693743", "text": "protected function formTableMap()\n {\n $this->table_map = array();\n }", "title": "" }, { "docid": "1ab7c8586a7d61edabc96b0bc54c4082", "score": "0.42693695", "text": "function is_modifiable(){\n return false;\n }", "title": "" }, { "docid": "6de59bcf660f7b594626d77d5aff7374", "score": "0.42689726", "text": "public function put(){\r\n\t\t//update\r\n\t\tcheckRoom($this->roomNumber);\r\n\t\t$this->conn->setData(\"UPDATE room SET roomMap=:map, description=:roomDesc, posX=:posX, posY=:posY WHERE roomNumber = :num\",array(\r\n\t\t\":map\"=>$this->roomMap, \r\n\t\t\":roomDesc\"=>$this->description,\r\n\t\t\":posX\"=>$this->posX,\r\n\t\t\":posY\"=>$this->posY,\r\n\t\t\":num\"=>$this->roomNumber\r\n\t\t));\r\n\t}", "title": "" } ]
9c03d95747baacee64ef13c66ab4748f
this is overridden to either take a namespace or an instantiated class. Doing it this way allows for a consistent approach to building forms including custom widgets.
[ { "docid": "afc0924bdb4bb9ad992f2deb615b9f4f", "score": "0.0", "text": "function &get($namespaceOrObject, $aConfig = null) {\n if (is_string($namespaceOrObject)) {\n $oValidator =& $this->getValidatorByNamespace($namespaceOrObject);\n } else {\n $oValidator = $namespaceOrObject;\n }\n \n if (PEAR::isError($oValidator)) {\n return $oValidator;\n }\n \n $aConfig = (array) $aConfig; // always an array\n $res = $oValidator->configure($aConfig);\n if (PEAR::isError($res)) {\n return $res;\n }\n \n return $oValidator;\n }", "title": "" } ]
[ { "docid": "c285d0bc762d271de2c37c15137dbdc4", "score": "0.5570016", "text": "function initWidget() {\n if ( !is_null($this->widgetClassName) && class_exists($this->widgetClassName) ) {\n register_widget( $this->widgetClassName );\n }\n }", "title": "" }, { "docid": "45655d49c85dd6ca1d8428b5277342aa", "score": "0.5481301", "text": "function widget( $args, $instance ) {\n \n }", "title": "" }, { "docid": "e3173a5934bd88246ad907205ee9569f", "score": "0.547856", "text": "function acf_new_instance( $class = '' ) {\n}", "title": "" }, { "docid": "12dc704b4a5122b418ccd38ede0db382", "score": "0.5442827", "text": "function __construct() {\n\t\tparent::__construct( false, $this->widgetName);\n\t}", "title": "" }, { "docid": "296eb34d6c8f2e74a8d03181e24c612e", "score": "0.5406916", "text": "static function _($namespace, $options = array())\n\t{\n\t\t$args = func_get_args();\n\t\t$class = self::getClass($namespace, $args);\n\t\treturn $class->build($args);\n\t}", "title": "" }, { "docid": "989e1e23cf1367a99b49193aeca2d10d", "score": "0.54018575", "text": "abstract protected function buildForm();", "title": "" }, { "docid": "56e95808ed99014dee2454628fc99ed0", "score": "0.53887594", "text": "public function subscribe($class) {\n if( class_exists($class) ) {\n $instance = (new $class);\n\n if( $instance instanceof WidgetAble )\n $this->addWidget($class, (new $class));\n else\n throw new WidgetException('Invalid class');\n\n return $this;\n }\n\n throw new WidgetException('Invalid class');\n }", "title": "" }, { "docid": "6577ca8e8d148f83462941b37e6db405", "score": "0.5352764", "text": "public function form( $instance ) {\n\n }", "title": "" }, { "docid": "699bc794e099b2a68910533534899f0f", "score": "0.53365076", "text": "function call_meta_boxClass() {\n new custommetaClass();\n}", "title": "" }, { "docid": "b279983168fbb9f142d1a7e9590da36d", "score": "0.5328588", "text": "abstract public function _form();", "title": "" }, { "docid": "19155c524b41caf04154eec5bf8d09ab", "score": "0.5315995", "text": "function widget_run_once()\n\t\t{\n\t\t\t// Register a class\n\t\t\tadd_subtype(\"object\", \"widget\", \"ElggWidget\");\t\n\t\t}", "title": "" }, { "docid": "1f21a0ff19d8b30c5e4fd02fee517a6b", "score": "0.53139925", "text": "public function getFormClass(): string;", "title": "" }, { "docid": "292a107792b74e6258a90acb5fa568d4", "score": "0.53130895", "text": "public function form($instance){\n \n /* Setup default values for form fields - associtive array, keys are the field_id's */\n $defaults = array(\n 'title' => '', \n 'style' => 'normal',\n 'limit' => 3,\n 'filter-by' => 'manual',\n 'show_title' => 'on',\n 'show_subtitle' => 'on',\n 'show_category' => 'on',\n 'show_content' => 'on',\n 'show_comment_count' => 'on',\n 'show_share' => 'on',\n 'share_style' => 'long',\n 'widget_name' => $this->classname\n );\n \n /* Merge saved input values with default values */\n $instance = wp_parse_args($instance, $defaults);\n \n $this->form_field('title', 'text', 'Widget Label (shows on admin only)', $instance);\n \n $fields = array();\n \n ?><p><strong>Genreal Options:</strong></p><?php \n \n if(isset($instance['show_title'])) {\n $fields[] = array(\n 'field_id' => 'widget_title',\n 'type' => 'text',\n 'label' => 'Title'\n );\n }\n \n if(isset($instance['show_subtitle'])) {\n $fields[] = array(\n 'field_id' => 'widget_subtitle',\n 'type' => 'text',\n 'label' => 'Sub-Title'\n );\n }\n \n \n if(isset($instance['show_share'])) {\n $fields[] = array(\n 'field_id' => 'share_style',\n 'type' => 'select',\n 'label' => 'Share Tools Style',\n 'options' => array(\n 'long' => 'Long (post footer bar)',\n 'short' => 'Short (button w. flyout)'\n )\n );\n }\n \n $this->form_fields($fields, $instance);\n \n ?><p><strong>Query Options:</strong></p><?php\n \n $limit = array(\n array(\n 'field_id' => 'limit',\n 'type' => 'select',\n 'label' => 'Number of posts',\n 'options' => range(0, 10)\n )\n );\n \n $this->form_fields($limit, $instance);\n \n $query_options = array(\n array(\n 'field_id' => 'filter-by',\n 'type' => 'select',\n 'label' => 'Filter By (save to update)',\n 'options' => array (\n // 'automatic' => 'Automatic',\n 'manual' => 'Manual',\n 'category' => 'Category',\n 'author' => 'Author',\n 'none' => 'No Filter (Sort by Date)'\n )\n )\n );\n if(isset($instance['filter-by'])){\n if($instance['filter-by'] == 'category') {\n \n $categories = get_categories(array('parent' => 0, 'hide_empty' => false, 'hierarchical' => true));\n foreach($categories as $cat){\n $cats[$cat->term_id] = $cat->name; \n }\n \n $query_options[] = array(\n 'field_id' => 'category',\n 'type' => 'select',\n 'label' => 'Category',\n 'options' => $cats \n );\n \n if(isset($instance['category'])){\n $categories = get_categories(array('parent' => $instance['category'], 'hide_empty' => false, 'hierarchical' => true));\n foreach($categories as $cat){\n $subcats[$cat->term_id] = $cat->name; \n }\n if(!empty($subcats)){\n $all = array($instance['category'] => 'All');\n $query_options[] = array(\n 'field_id' => 'subcategory',\n 'type' => 'select',\n 'label' => 'Subcategory',\n 'options' => $all + $subcats\n );\n } else unset($instance['subcategory']);\n }\n }\n\n \n\n if($instance['filter-by'] == 'author'){\n $authors = get_users();\n foreach($authors as $author){\n $users[$author->ID] = $author->user_nicename;\n }\n if(!empty($users)){\n $query_options[] = array(\n 'field_id' => 'author',\n 'type' => 'select',\n 'label' => 'Author',\n 'options' => $users\n );\n }\n }\n \n if ($instance['filter-by'] == 'manual') {\n for ($i = 1; $i < $instance['limit']+1; $i++) {\n $query_options[] = array(\n 'field_id' => \"post__in_\" . ($i),\n 'type' => 'text',\n 'label' => \"Post ID #\" . ($i),\n );\n }\n }\n }\n \n $this->form_fields($query_options, $instance);\n \n ?><label>Include:</label><?php\n $query_options = array(\n array(\n 'field_id' => 'include_post',\n 'type' => 'checkbox',\n 'label' => 'Blog Posts'\n ),\n array(\n 'field_id' => 'include_question',\n 'type' => 'checkbox',\n 'label' => 'Questions'\n ),\n array(\n 'field_id' => 'include_guide',\n 'type' => 'checkbox',\n 'label' => 'Articles'\n ),\n );\n \n $this->form_fields($query_options, $instance, true);\n \n ?><p><strong>Display Options:</strong></p><?php\n \n // $show_options = array(\n // array(\n // 'field_id' => 'style',\n // 'type' => 'select',\n // 'label' => 'Select a Template Style',\n // 'options' => array(\n // 'general' => 'General',\n // 'featured' => 'Featured'\n // )\n // ), \n // );\n // $this->form_fields($show_options, $instance);\n \n ?><p><label>Show:</label></p><?php\n \n $show_options = array(\n array(\n 'field_id' => 'show_title',\n 'type' => 'checkbox',\n 'label' => 'Title'\n ),\n array(\n 'field_id' => 'show_subtitle',\n 'type' => 'checkbox',\n 'label' => 'Sub-Title'\n ),\n array(\n 'field_id' => 'show_category',\n 'type' => 'checkbox',\n 'label' => 'Category'\n ),\n );\n \n \n $this->form_fields($show_options, $instance, true);\n \n \n $show_options = array(\n array(\n 'field_id' => 'show_content',\n 'type' => 'checkbox',\n 'label' => 'Post Content'\n ),\n array(\n 'field_id' => 'show_comment_count',\n 'type' => 'checkbox',\n 'label' => 'Response Count'\n ),\n );\n \n \n $this->form_fields($show_options, $instance, true);\n \n $show_options = array(\n array(\n 'field_id' => 'show_share',\n 'type' => 'checkbox',\n 'label' => 'Share Icons'\n ),\n array(\n 'field_id' => 'show_thumbnail',\n 'type' => 'checkbox',\n 'label' => 'Featured Image'\n ),\n array(\n 'field_id' => 'widget_name',\n 'type' => 'hidden',\n 'label' => ''\n ),\n );\n\n $this->form_fields($show_options, $instance, true);\n $show_options = array(\n array(\n 'field_id' => 'show_date',\n 'type' => 'checkbox',\n 'label' => 'Date'\n ),\n );\n $this->form_fields($show_options, $instance, true);\n }", "title": "" }, { "docid": "60ef12040991838102e3d49f0b16f934", "score": "0.5305512", "text": "function form( $instance ) {\n\t}", "title": "" }, { "docid": "18be4ad8cd89de08765316787c2fd838", "score": "0.52923924", "text": "private function makeWidgetClass()\n {\n $name = $this->qualifyClass($this->getNameInput());\n\n $path = $this->getPath($name);\n\n // First we will check to see if the class already exists. If it does, we don't want\n // to create the class and overwrite the user's code. So, we will bail out so the\n // code is untouched. Otherwise, we will continue generating this class' files.\n if ($this->alreadyExists($this->getNameInput())) {\n $this->error($this->qualifyClass($this->getNameInput()).'.php - Already exists (@_@)');\n\n return false;\n }\n\n // Next, we will generate the path to the location where this class' file should get\n // written. Then, we will build the class and make the proper replacements on the\n // stub files so that it gets the correctly formatted namespace and class name.\n $this->makeDirectory($path);\n\n $this->files->put($path, $this->buildClass($name));\n\n $this->info(' - '.$name.'.php - was created. (^_^)');\n }", "title": "" }, { "docid": "728dbc548ec21b0ee93687bf249e95ca", "score": "0.5261028", "text": "abstract public function do_widget_area( $classes = array() );", "title": "" }, { "docid": "4b68531583516ab0dc07a8bb0161d074", "score": "0.52276856", "text": "public static function instance($widget = '');", "title": "" }, { "docid": "0df5dd71c966687bebe764a5c93fa10b", "score": "0.52205735", "text": "public function __construct()\n {\n\n // widget actual processes\n parent::__construct(\n 'elit_find_your_do_widget', // Base ID\n 'Find Your DO widget', // Name\n array(\n 'description' => __( 'Find Your DO form for inside pages' )\n )\n );\n\n }", "title": "" }, { "docid": "3d6921ff73a74040d9fd8f182cef1b27", "score": "0.51867765", "text": "public function formClass($resource, $modelClass=null);", "title": "" }, { "docid": "99bb4cadd18f51849c4faaf922f341a4", "score": "0.5175378", "text": "public function set_form_class($form)\n {\n $this->_form = new $form();\n }", "title": "" }, { "docid": "47442eb5e11091e4f27da7840877cd55", "score": "0.5164294", "text": "public function form( $instance ) {\n\t\t/* ... */\n\t}", "title": "" }, { "docid": "86da2f9b4cd9ec3b12fff4d3fee09eb8", "score": "0.5151142", "text": "protected function generateForm($namespace,$object,$mode,$options = array()){\n switch ($mode){\n case 'create':\n return $this->createForm($namespace,$object,array_merge(array('mode'=>'create','translation_domain' => 'backend','attr'=>array('id'=>'data_entry_form')),$options));\n case 'edit':\n return $this->createForm($namespace,$object,array_merge(array('mode'=>'edit','translation_domain' => 'backend','attr'=>array('id'=>'data_entry_form')),$options));\n case 'search':\n return $this->createForm($namespace,$object,array_merge(array('mode'=>'search','translation_domain' => 'backend','method'=>'GET','attr'=>array('novalidate'=>'novalidate')),$options));\n default:\n return $this->createForm($namespace,$object,$options);\n }\n }", "title": "" }, { "docid": "8c8992446f91de0fc6d7ad32a9a04ca2", "score": "0.5135447", "text": "function acf_get_instance( $class = '' ) {\n}", "title": "" }, { "docid": "4debffdfc1a06b51aafce7915bb2d29c", "score": "0.5127712", "text": "public function customFormBuilder(RegistryInterface $registry, string $formClass): CustomFormBuilder\n {\n return new CustomFormBuilder(\n function ($builder) use ($formClass) {\n $this->pushElementBuilder(Form::class, $builder);\n\n return $this->container->get($formClass);\n },\n $registry->elementBuilder(Form::class)\n );\n }", "title": "" }, { "docid": "358e7652d8b050ba5291a3148d01e5fc", "score": "0.5125194", "text": "public function form($instance)\n {\n\n // Set widget defaults\n $defaults = array(\n 'title' => '',\n 'widgetId' => '',\n 'dimensions' => '',\n );\n\n // todo: these variables are being used but not set? line: 57ish\n if (!isset($title)) {\n $title = \"\";\n }\n\n if (!isset($dimensions)) {\n $dimensions = \"\";\n }\n\n if (!isset($widgetId)) {\n $widgetId = \"\";\n }\n\n // Parse current settings with defaults\n extract(wp_parse_args((array) $instance, $defaults)); ?>\n\n <?php // Widget Title\n ?>\n <p>\n <label for=\"<?php echo esc_attr($this->get_field_id('title')); ?>\"><?php _e('Widget Title', 'text_domain'); ?></label>\n <input class=\"widefat\" id=\"<?php echo esc_attr($this->get_field_id('title')); ?>\" name=\"<?php echo esc_attr($this->get_field_name('title')); ?>\" type=\"text\" value=\"<?php echo esc_attr($title); ?>\" />\n </p>\n\n <?php // Widget ID Field\n ?>\n <p>\n <label for=\"<?php echo esc_attr($this->get_field_id('widgetId')); ?>\"><?php _e('Widget ID:', 'text_domain'); ?></label>\n <input class=\"widefat\" id=\"<?php echo esc_attr($this->get_field_id('widgetId')); ?>\" name=\"<?php echo esc_attr($this->get_field_name('widgetId')); ?>\" type=\"text\" value=\"<?php echo esc_attr($widgetId); ?>\" />\n </p>\n\n <?php // Dropdown\n ?>\n <p>\n <label for=\"<?php echo $this->get_field_id('dimensions'); ?>\"><?php _e('Dimensions', 'text_domain'); ?></label>\n <select name=\"<?php echo $this->get_field_name('dimensions'); ?>\" id=\"<?php echo $this->get_field_id('dimensions'); ?>\" class=\"widefat\">\n <?php\n // Your options array\n $options = array(\n '' => __('Dimensions', 'text_domain'),\n 'd120x60' => __('120x60', 'text_domain'),\n 'd120x600' => __('120x600', 'text_domain'),\n 'd125x125' => __('125x125', 'text_domain'),\n 'd160x600' => __('160x600', 'text_domain'),\n 'd200x200' => __('200x200', 'text_domain'),\n 'd240x400' => __('240x400', 'text_domain'),\n 'd250x250' => __('250x250', 'text_domain'),\n 'd300x250' => __('300x250', 'text_domain'),\n 'd300x600' => __('300x600', 'text_domain'),\n 'd320x50' => __('320x50', 'text_domain'),\n 'd320x100' => __('320x100', 'text_domain'),\n 'd336x280' => __('336x280', 'text_domain'),\n 'd468x60' => __('468x60', 'text_domain'),\n 'd728x90' => __('728x90', 'text_domain'),\n 'd970x90' => __('970x90', 'text_domain'),\n 'd970x250' => __('970x250', 'text_domain'),\n );\n\n // Loop through options and add each one to the select dropdown\n foreach ($options as $key => $name) {\n echo '<option value=\"' . esc_attr($key) . '\" id=\"' . esc_attr($key) . '\" ' . selected($dimensions, $key, false) . '>' . $name . '</option>';\n } ?>\n </select>\n </p>\n\n<?php }", "title": "" }, { "docid": "5965cad9b8844e328961e6337b9800fa", "score": "0.51230574", "text": "public abstract function form();", "title": "" }, { "docid": "cbcf58d70cb8adf89a73c43791bf5f86", "score": "0.51043904", "text": "public static function register()\n {\n register_widget( __CLASS__ );\n }", "title": "" }, { "docid": "c702a619ee49f749ba3b458308a6282b", "score": "0.5103196", "text": "function research_admin_class() {\n $parentName = get_parent_class($this);\n $this->{$parentName}();\n }", "title": "" }, { "docid": "373f72b433c2851d82e2a081c7212901", "score": "0.50961304", "text": "public function init($class);", "title": "" }, { "docid": "6a559a523d7a0578dc08addc745d5faa", "score": "0.5093721", "text": "public function __construct() {\n\t\tparent::__construct(\n\t \t\t'bms_taxonomy_widget', // Base ID\n\t\t\t'BMS Taxonomy Widget', // Name\n\t\t\tarray( 'description' => __( 'Creates a simple widget to display custom taxonomies.', 'text_domain' ), ) // Args \n\t\t);\n\t}", "title": "" }, { "docid": "16c03f55e374f83ece96df6e13996456", "score": "0.5092829", "text": "public function __construct(){\n\t\t$widget_ops = array(\n\t\t\t'description' => $this->description,\n\t\t\t'classname' => $this->classname\n\t\t);\n\n\t\tparent::WP_Widget($this->id_base, $this->widget_name, $widget_ops);\n\t}", "title": "" }, { "docid": "9bb7e03e1b5cb2b54243b99584b9667e", "score": "0.50885063", "text": "public function __construct($class)\n\t{\n\t\tparent::__construct($class);\n\t\t/*\n\t\tif(is_object($class))\n\t\t{\n\t\t\t$this->instance = $class;\n\t\t\t$this->classname = get_class($class);\n\t\t}\n\t\telse if(is_string($class))\n\t\t{\n\t\t\t$this->classname = $class;\n\t\t}\n\t\t*/\n\t}", "title": "" }, { "docid": "9e658ca0c5884007f1e3d20fa3666e91", "score": "0.5085606", "text": "function FormBuilder(){\r\n }", "title": "" }, { "docid": "7b77a4ec6523a6eb34cdbda8228ef6bc", "score": "0.5064194", "text": "public function __construct() {\r\n $widget_ops = array(\r\n 'classname' => 'ohs_newsletter_widget',\r\n 'description' => 'OHS Newsletter double opt in widget',\r\n );\r\n parent::__construct( 'ohs_newsletter_widget', 'OHS Newsletter', $widget_ops );\r\n }", "title": "" }, { "docid": "e88e24ca26675d1a31078206bf455fcf", "score": "0.5050598", "text": "function form($instance){\n\t\t$defaults = array( 'title' => 'Filter Your Search By', 'button_text' => 'SEARCH', 'title-category' => 'Category' );\n\t\tforeach($this->custom_taxs as $custom_tax) {\n\t\t\t$defaults['title-'.$custom_tax] = ucfirst($custom_tax);\n\t\t}\n\t\t$instance = wp_parse_args( (array) $instance, $defaults );\n\t\t?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'search_page' ); ?>\"><?php _e('Search Results Page:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'search_page' ); ?>\" name=\"<?php echo $this->get_field_name( 'search_page' ); ?>\" style=\"width:100%;\">\n\t\t\t\t<option value=\"\">-- Select Page --</option>\n\t\t\t\t<?php\n\t\t\t\t$spages = get_pages('child_of=0');\n\t\t\t\tif ($spages) {\n\t\t\t\t\tforeach($spages as $spage) { ?>\n\t\t\t\t\t\t<option value=\"<?php echo $spage->ID; ?>\"<?php if ($instance['search_page'] == $spage->ID) { echo ' SELECTED'; } ?>><?php echo $spage->post_title; ?></option>\n\t\t\t\t\t<?php\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t</select>\n\t\t</p>\n\t\t<p>\n\t\t\t<label>Shop by Category</label><br/>\n\t\t\t<label>Title:</label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title-category' ); ?>\" name=\"<?php echo $this->get_field_name( 'title-category' ); ?>\" value=\"<?php echo $instance['title-category']; ?>\" style=\"width:80%;\" /><br/>\n\t\t\t<label>Exclude:</label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'exclude-category' ); ?>\" name=\"<?php echo $this->get_field_name( 'exclude-category' ); ?>\" value=\"<?php echo $instance['exclude-category']; ?>\" style=\"width:80%;\" /><br/>\n\t\t</p>\n\t\t<?php foreach($this->custom_taxs as $custom_tax) { ?>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'include-'.$custom_tax ); ?>\"><input type=\"checkbox\" id=\"<?php echo $this->get_field_id( 'include-'.$custom_tax ); ?>\" name=\"<?php echo $this->get_field_name( 'include-'.$custom_tax ); ?>\" value=\"1\"<?php if ($instance['include-'.$custom_tax] == '1') { echo ' CHECKED'; } ?>> Shop by <?php echo ucfirst($custom_tax); ?><?php if($custom_tax == 'size') { echo ' (if selected Shoes category)'; } else if ($custom_tax == 'ring-size') { echo ' (if selected Jewelry category)'; } ?></label><br/>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title-'.$custom_tax ); ?>\">Title:</label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title-'.$custom_tax ); ?>\" name=\"<?php echo $this->get_field_name( 'title-'.$custom_tax ); ?>\" value=\"<?php echo $instance['title-'.$custom_tax]; ?>\" style=\"width:80%;\" />\n\t\t</p>\n\t\t<?php } ?>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'button_text' ); ?>\"><?php _e('Button Text:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'button_text' ); ?>\" name=\"<?php echo $this->get_field_name( 'button_text' ); ?>\" value=\"<?php echo $instance['button_text']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t<?php }", "title": "" }, { "docid": "581fcd289444a8fc20fc335023fb3b4c", "score": "0.5048709", "text": "public function getFormClass()\n {\n return 'DivisionForm';\n }", "title": "" }, { "docid": "c8a06db1b5ccd4c0d6f31b01b9377478", "score": "0.5044646", "text": "public function mapFormClass($resource, $formClass);", "title": "" }, { "docid": "833192fbdea786c3e8befe58ba0c37d7", "score": "0.5042483", "text": "function call_tsc_app_box_class() {\n new Tsc_app_box_class();\n}", "title": "" }, { "docid": "9b8651d5a25859e86c8d8314a9cae651", "score": "0.5041087", "text": "function __construct() \n\t{\t\t\n\t\tparent::__construct(\n\t\t\t'widget-promo', \n\t\t\t__('Promo widget'), \n\t\t\tarray( \n\t\t\t\t'description' => __('Add a promo widget to sidebar.'), \n\t\t\t\t'classname' => 'widget-promo-widget'\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "3842b59ea776f0b4d5f5426edb81a7e4", "score": "0.5029144", "text": "public function initFormTypeNS()\n {\n return CategoryType::class;\n }", "title": "" }, { "docid": "3ef9549b076a1da55688df05d5dc73da", "score": "0.50198513", "text": "function register_foo_widget() {\n register_widget( 'Foo_Widget' );\n}", "title": "" }, { "docid": "af63df595df68fa5dcc827cd36082cb6", "score": "0.5011424", "text": "public static function add($class)\n {\n add_action('widgets_init', function() use ($class) { return register_widget($class);});\n }", "title": "" }, { "docid": "a72f93635c920b84ff3d58dfc1a8bf4e", "score": "0.50080043", "text": "function __construct() {\n\n\t\t\t/*\n\t\t\t Need to call parent's (WP_Widget) constructor because it is not\n\t\t\t alled by default\n\t\t\t WP_Widget::__construct( string $id_base, string $name, array $widget_options = array(), array $control_options = array() )\n\t\t\t Object in PHP -> like a class\n\t\t\t Array - can access properties by name\n\t\t\t \"::\" - indicates calling it statically\n\t\t\t*/\n\t\t\tparent::__construct(\n\t\t\t\t'DonutChart',\n\t\t\t\t__('Donut Chart', 'dx-text_domain'),\n\t\t\t\tarray( 'description' => __('A widget that shows a donut chart ', 'dx-text_domain') )\n\t\t\t);\n\n\t\t\t//self::function_name -> static way to call within a class\n\t\t\t//$this - dynamic way\n\t\t}", "title": "" }, { "docid": "0796426f0a23b59e43f0b1c091ff2ecc", "score": "0.49995267", "text": "abstract public function createForm();", "title": "" }, { "docid": "834ab577fecaf3ed3faa7ba867b8e3c5", "score": "0.49992514", "text": "public function run()\r\n\t{\r\n\t\tswitch ($this->type) {\r\n\t\t\tcase self::TYPE_CHECKBOX:\r\n\t\t\t\t$this->checkBox();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_CHECKBOXLIST:\r\n\t\t\t\t$this->checkBoxList();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_CHECKBOXLIST_INLINE:\r\n\t\t\t\t$this->checkBoxListInline();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_CHECKBOXGROUPSLIST:\r\n\t\t\t\t$this->checkBoxGroupsList();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_DROPDOWN:\r\n\t\t\t\t$this->dropDownList();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_FILE:\r\n\t\t\t\t$this->fileField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_PASSWORD:\r\n\t\t\t\t$this->passwordField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_PASSFIELD:\r\n\t\t\t\t$this->passfieldField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_RADIO:\r\n\t\t\t\t$this->radioButton();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_RADIOLIST:\r\n\t\t\t\t$this->radioButtonList();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_RADIOLIST_INLINE:\r\n\t\t\t\t$this->radioButtonListInline();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_RADIOBUTTONGROUPSLIST:\r\n\t\t\t\t$this->radioButtonGroupsList();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_TEXTAREA:\r\n\t\t\t\t$this->textArea();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'textfield': // backwards compatibility\r\n\t\t\tcase self::TYPE_TEXT:\r\n\t\t\t\t$this->textField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_MASKEDTEXT:\r\n\t\t\t\t$this->maskedTextField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_CAPTCHA:\r\n\t\t\t\t$this->captcha();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_UNEDITABLE:\r\n\t\t\t\t$this->uneditableField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_DATEPICKER:\r\n\t\t\t\t$this->datepickerField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_DATETIMEPICKER:\r\n\t\t\t\t$this->datetimepickerField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_REDACTOR:\r\n\t\t\t\t$this->redactorJs();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_MARKDOWNEDITOR:\r\n\t\t\t\t$this->markdownEditorJs();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_HTML5EDITOR:\r\n\t\t\t\t$this->html5Editor();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_DATERANGEPICKER:\r\n\t\t\t\t$this->dateRangeField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_TOGGLEBUTTON:\r\n\t\t\t\t$this->toggleButton();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_COLORPICKER:\r\n\t\t\t\t$this->colorpickerField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_CKEDITOR:\r\n\t\t\t\t$this->ckEditor();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_TIMEPICKER:\r\n\t\t\t\t$this->timepickerField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_SELECT2:\r\n\t\t\t\t$this->select2Field();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_TYPEAHEAD:\r\n\t\t\t\t$this->typeAheadField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_NUMBER:\r\n\t\t\t\t$this->numberField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::TYPE_CUSTOM:\r\n\t\t\t\t$this->customField();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new CException(__CLASS__ . ': Failed to run widget! Type is invalid.');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4fd9beb42316f6e6f5c0e968878492b9", "score": "0.49970812", "text": "function form($instance){\n\t\t$defaults = array( 'title' => '', 'include' => '' );\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'include' ); ?>\"><?php _e('Include:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Enter the Category IDs you want to include. Comma separate multiple categories. You can only use either include or exclude, not both!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'include' ); ?>\" name=\"<?php echo $this->get_field_name( 'include' ); ?>\" value=\"<?php echo $instance['include']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'exclude' ); ?>\"><?php _e('Exclude:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Enter the Category IDs you want to include. Comma separate multiple categories. You can only use either include or exclude, not both!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'exclude' ); ?>\" name=\"<?php echo $this->get_field_name( 'exclude' ); ?>\" value=\"<?php echo $instance['exclude']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'order' ); ?>\"><?php _e('Order:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'order' ); ?>\" name=\"<?php echo $this->get_field_name( 'order' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"ASC\" <?php selected('ASC', $instance[\"order\"]); ?>><?php _e('ASC', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"DESC\" <?php selected('DESC', $instance[\"order\"]); ?>><?php _e('DESC', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'orderby' ); ?>\"><?php _e('Order by:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'orderby' ); ?>\" name=\"<?php echo $this->get_field_name( 'orderby' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"name\" <?php selected('name', $instance[\"orderby\"]); ?>><?php _e('name', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"ID\" <?php selected('ID', $instance[\"orderby\"]); ?>><?php _e('ID', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"slug\" <?php selected('slug', $instance[\"orderby\"]); ?>><?php _e('slug', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"count\" <?php selected('count', $instance[\"orderby\"]); ?>><?php _e('count', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t\n\t<?php }", "title": "" }, { "docid": "8d3a9a053e533c6257cd89f16e18d618", "score": "0.4991546", "text": "abstract protected function newRelatedInstance($class);", "title": "" }, { "docid": "b9d1e02a5ebffb2ebb9601864389a84c", "score": "0.4988941", "text": "function form($instance){\n\t\t$defaults = array('title' => 'My Selection', 'text' => 'Get alerted when a new item is added', 'but_text' => 'Notify Me');\n\t\t$instance = wp_parse_args( (array) $instance, $defaults );\n\t\t?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'text' ); ?>\"><?php _e('Widget Text:', 'wpShop'); ?></label>\n\t\t\t<textarea id=\"<?php echo $this->get_field_id( 'text' ); ?>\" name=\"<?php echo $this->get_field_name( 'text' ); ?>\" style=\"width:100%;\"><?php echo $instance['text']; ?></textarea>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'but_text' ); ?>\"><?php _e('Button Text:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'but_text' ); ?>\" name=\"<?php echo $this->get_field_name( 'but_text' ); ?>\" value=\"<?php echo $instance['but_text']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t<?php\n\t}", "title": "" }, { "docid": "b697e970e9d171b3ad687eef00386167", "score": "0.49870512", "text": "public function __construct() {\n\t\tparent::__construct(\n\t\t\t'foo_widget', // Base ID\n\t\t\t__('Use Cases', 'text_domain'), // Name\n\t\t\tarray( 'description' => __( 'Use Cases Widget (links to in-screen pop-ups)', 'text_domain' ), ) // Args\n\t\t);\n\t}", "title": "" }, { "docid": "52c4de4d75d5d792a771ffc1bb4cc2b9", "score": "0.4978267", "text": "public function form ()\n {\n $class_name = $this->context->final_class_name ('EXECUTE_PUBLISHER_TASK_FORM', 'webcore/forms/execute_publisher_task_form.php');\n return new $class_name ($this->context);\n }", "title": "" }, { "docid": "95c20fe63f9855f0a0c262854a06409c", "score": "0.49741447", "text": "protected function getFormClass()\n {\n $class = new \\ReflectionClass( get_called_class() );\n\n $namespace = app()->getNamespace();\n\n $name = Str::singular(\n str_replace('Controller', '', $class->getShortName())\n );\n\n return sprintf('\\%sHttp\\Forms\\%sForm', $namespace,$name);\n }", "title": "" }, { "docid": "8a4f6cd863e8615383a8c2507cbf3ac2", "score": "0.49736315", "text": "function form($instance){\n\t\t$defaults = array( 'title' => '', 'include' => '' );\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'include' ); ?>\"><?php _e('Include:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Enter the Category IDs you want to include. Comma separate multiple categories. You can only use either include or exclude, not both!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'include' ); ?>\" name=\"<?php echo $this->get_field_name( 'include' ); ?>\" value=\"<?php echo $instance['include']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'exclude' ); ?>\"><?php _e('Exclude:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Enter the Category IDs you want to include. Comma separate multiple categories. You can only use either include or exclude, not both! If you are using a Blog you will probably want to exclude it here.', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'exclude' ); ?>\" name=\"<?php echo $this->get_field_name( 'exclude' ); ?>\" value=\"<?php echo $instance['exclude']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'order' ); ?>\"><?php _e('Order:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'order' ); ?>\" name=\"<?php echo $this->get_field_name( 'order' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"ASC\" <?php selected('ASC', $instance[\"order\"]); ?>><?php _e('ASC', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"DESC\" <?php selected('DESC', $instance[\"order\"]); ?>><?php _e('DESC', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'orderby' ); ?>\"><?php _e('Order by:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'orderby' ); ?>\" name=\"<?php echo $this->get_field_name( 'orderby' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"name\" <?php selected('name', $instance[\"orderby\"]); ?>><?php _e('name', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"ID\" <?php selected('ID', $instance[\"orderby\"]); ?>><?php _e('ID', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"slug\" <?php selected('slug', $instance[\"orderby\"]); ?>><?php _e('slug', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"count\" <?php selected('count', $instance[\"orderby\"]); ?>><?php _e('count', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t\n\t<?php }", "title": "" }, { "docid": "283bcd58d7ea50b06b44300ef0b8821c", "score": "0.49725187", "text": "function form( $instance ) \r\n\t{\r\n\r\n\t\t/* Set up some default widget settings. */\r\n\t\t$defaults = array( 'title' => __('You might be interested in this', 'all-related-posts'), 'postcount' => '5', 'type' => '*', 'excludewords'=>$_SERVER['HTTP_HOST'],'incprevisit'=>'true', 'incpostrel'=>'true','incsefull'=>'true','incsetags'=>'true');\r\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\r\n\t\t\r\n\t\t<p>\r\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'all-related-posts'); ?></label><br />\r\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" size=\"30\" />\r\n\t\t</p>\r\n\t\t<p>\r\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'type' ); ?>\"><?php _e('Search Pages or posts:', 'all-related-posts'); ?></label><br />\r\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'type' ); ?>\" name=\"<?php echo $this->get_field_name( 'type' ); ?>[select_value]\">\r\n \t\t\t<option value=\"*\" <?php if (empty($instance['type'])||$instance['type']=='*') echo \"selected\"; ?> ><?php _e('Posts and pages', 'all-related-posts'); ?></option>\r\n \t\t\t<option value=\"post\" <?php if ($instance['type'] == 'post') echo 'selected'; ?>><?php _e('Posts only', 'all-related-posts'); ?></option>\r\n\t\t\t\t<option value=\"page\" <?php if ($instance['type'] == 'page') echo 'selected'; ?>><?php _e('Pages only', 'all-related-posts'); ?></option>\r\n \t\t</select>\r\n\t\t</p>\r\n\t\t<p>\r\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'postcount' ); ?>\"><?php _e('Number of links to show:', 'all-related-posts'); ?></label><br />\r\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'postcount' ); ?>\" name=\"<?php echo $this->get_field_name( 'postcount' ); ?>\" value=\"<?php echo $instance['postcount']; ?>\" size=\"30\" />\r\n\t\t</p>\r\n\t\t<p>\r\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'excludewords' ); ?>\"><?php _e('Words to exclude in full search, separated by space. Put for example your blog\\'s domain here:', 'all-related-posts'); ?></label><br />\r\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'excludewords' ); ?>\" name=\"<?php echo $this->get_field_name( 'excludewords' ); ?>\" value=\"<?php echo $instance['excludewords']; ?>\" size=\"30\" />\r\n\t\t</p>\r\n\t\t<p><?php _e('Include:', 'all-related-posts'); ?>\r\n\t\t<br />\r\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php if ($instance['incprevisit']) echo 'checked=\"'.$instance['incprevisit'].'\"'; ?> id=\"<?php echo $this->get_field_id('incprevisit'); ?>\" name=\"<?php echo $this->get_field_name('incprevisit'); ?>\" />\r\n\t\t\t<label for=\"<?php echo $this->get_field_id('incprevisit'); ?>\"><?php _e('the first post a visitor came to on his previous visit', 'all-related-posts'); ?></label>\r\n\t\t<br />\r\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php if ($instance['incpostrel']) echo 'checked=\"'.$instance['incpostrel'].'\"'; ?> id=\"<?php echo $this->get_field_id('incpostrel'); ?>\" name=\"<?php echo $this->get_field_name('incpostrel'); ?>\" />\r\n\t\t\t<label for=\"<?php echo $this->get_field_id('incpostrel'); ?>\"><?php _e('posts related to the shown post', 'all-related-posts'); ?></label>\r\n\t\t<br />\r\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php if ($instance['incsetags']) echo 'checked=\"'.$instance['incsetags'].'\"'; ?> id=\"<?php echo $this->get_field_id('incsetags'); ?>\" name=\"<?php echo $this->get_field_name('incsetags'); ?>\" />\r\n\t\t\t<label for=\"<?php echo $this->get_field_id('incsetags'); ?>\"><?php _e('posts related to seach engine terms (tags and categories)', 'all-related-posts'); ?></label>\r\n\t\t<br />\r\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php if ($instance['incsefull']) echo 'checked=\"'.$instance['incsefull'].'\"'; ?> id=\"<?php echo $this->get_field_id('incsefull'); ?>\" name=\"<?php echo $this->get_field_name('incsefull'); ?>\" />\r\n\t\t\t<label for=\"<?php echo $this->get_field_id('incsefull'); ?>\"><?php _e('posts related to seach engine terms (full post content)', 'all-related-posts'); ?></label>\r\n\t\t</p>\r\n\t\t<p>Note: If no related posts are found for a post or page, no widget will be displayed.</p>\r\n\t\t<hr>\r\n\t\t<div style=\"text-align:right;font-size:0.8em\"><?php _e('Like this plugin? A', 'all-related-posts'); ?> <a href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=79AKXNVRT8YSQ&lc=NL&item_name=All%20Related%20Posts%20plugin%20by%20Maarten&item_number=All%20Related%20Posts%20plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted\" target=\"_blank\"><?php _e('small donation', 'all-related-posts'); ?></a> <?php _e('is highly appreciated.', 'all-related-posts'); ?><p></div>\r\n\t\t<?php\r\n\t}", "title": "" }, { "docid": "513d81915ca923e0c8f518e67fae55d6", "score": "0.4968425", "text": "public function __construct(){\n\t\t$widget_ops = array(\n\t\t\t'classname' \t=> 'custom-social-widget-container',\n\t\t\t'description'\t=> 'Custom Social Widget',\n\t\t);\n\t\tparent::__construct( 'custom_social_widget', 'Socoal Media', $widget_ops );\n\t}", "title": "" }, { "docid": "f8d9adb726247e9292bff1266c7cab62", "score": "0.4966975", "text": "public function setClass($class);", "title": "" }, { "docid": "d4f809302170a752c2bd19445a71fa42", "score": "0.4953944", "text": "public function form( $instance ) {\n\n\t\t\n\t}", "title": "" }, { "docid": "7d714cd8537729a69e762c6a6e8a13e0", "score": "0.4951944", "text": "protected function wrap_class() {\n\t\treturn ' wponion-element-spacing wponion-element-input_group';\n\t}", "title": "" }, { "docid": "0d14b291c17acba059efbe58cdb78c47", "score": "0.49504837", "text": "public function getInstanceOf($sNameClass,$aExtraParam=null);", "title": "" }, { "docid": "fa137c4d71df1f65b11a115e6ed894e2", "score": "0.49474147", "text": "function form($instance){\n\t\t$defaults = array( 'title' => __('', 'wpShop'), 'cat_slug' => '', 'cat_IDs' => '', 'current_cat' => FALSE, 'current_maincat' => FALSE, 'thumb_width' => '80', 'num_img_in_row' => '3');\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\"><?php _e('Category Name or Slug:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from one category enter it\\'s name or slug here. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_slug' ); ?>\" value=\"<?php echo $instance['cat_slug']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\"><?php _e('Category IDs:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from several categories enter their IDs seperated by comma eg. 1,3,4. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_IDs' ); ?>\" value=\"<?php echo $instance['cat_IDs']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t\n\t\t<!-- query current cat || current main cat? Checkbox -->\n\t\t<p style=\"background:#F1F1F1;\">\n\t\t\t<strong><?php _e('For use on Product Category Pages Only', 'wpShop'); ?></strong><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_cat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_cat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\"><?php _e('Query Current Category', 'wpShop'); ?></label><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_maincat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_maincat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\"><?php _e('Query Current Main (top level) Category', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Check the appropriate box (not both!) if you like to query Product tags/terms from the current category or the current main (top level) category being viewed. This will only work if you have activated this widget on category pages! If you are using the widget on other pages please use one of the options above.', 'wpShop'); ?></small>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'display' ); ?>\"><?php _e('Display as:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'display' ); ?>\" name=\"<?php echo $this->get_field_name( 'display' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"Drop Down\" <?php selected('Drop Down', $instance[\"display\"]); ?>><?php _e('Drop Down', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"List\" <?php selected('List', $instance[\"display\"]); ?>><?php _e('List', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"Images\" <?php selected('Images', $instance[\"display\"]); ?>><?php _e('Images', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t\t<small style=\"color:red;\"><?php _e('If you have selected to display your tags/terms as images, remember to create tag/term specific images for each!', 'wpShop'); ?></small>\n\t\t</p>\n\t\t\n\t\t<small><?php _e('The fields below apply only if you have checked \"Display Images\" from above.', 'wpShop'); ?></small>\n\t\t\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\"><?php _e('Thumb Width:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\" name=\"<?php echo $this->get_field_name( 'thumb_width' ); ?>\" value=\"<?php echo $instance['thumb_width']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\"><?php _e('Number of images per row:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\" name=\"<?php echo $this->get_field_name( 'num_img_in_row' ); ?>\" value=\"<?php echo $instance['num_img_in_row']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\"><?php _e('Image File Type', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\" name=\"<?php echo $this->get_field_name( 'img_file_type' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"jpg\" <?php selected('jpg', $instance[\"img_file_type\"]); ?>><?php _e('jpg', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"png\" <?php selected('png', $instance[\"img_file_type\"]); ?>><?php _e('png', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"gif\" <?php selected('gif', $instance[\"img_file_type\"]); ?>><?php _e('gif', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t\n\t\t\n\t<?php }", "title": "" }, { "docid": "fa137c4d71df1f65b11a115e6ed894e2", "score": "0.49474147", "text": "function form($instance){\n\t\t$defaults = array( 'title' => __('', 'wpShop'), 'cat_slug' => '', 'cat_IDs' => '', 'current_cat' => FALSE, 'current_maincat' => FALSE, 'thumb_width' => '80', 'num_img_in_row' => '3');\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\"><?php _e('Category Name or Slug:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from one category enter it\\'s name or slug here. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_slug' ); ?>\" value=\"<?php echo $instance['cat_slug']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\"><?php _e('Category IDs:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from several categories enter their IDs seperated by comma eg. 1,3,4. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_IDs' ); ?>\" value=\"<?php echo $instance['cat_IDs']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t\n\t\t<!-- query current cat || current main cat? Checkbox -->\n\t\t<p style=\"background:#F1F1F1;\">\n\t\t\t<strong><?php _e('For use on Product Category Pages Only', 'wpShop'); ?></strong><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_cat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_cat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\"><?php _e('Query Current Category', 'wpShop'); ?></label><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_maincat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_maincat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\"><?php _e('Query Current Main (top level) Category', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Check the appropriate box (not both!) if you like to query Product tags/terms from the current category or the current main (top level) category being viewed. This will only work if you have activated this widget on category pages! If you are using the widget on other pages please use one of the options above.', 'wpShop'); ?></small>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'display' ); ?>\"><?php _e('Display as:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'display' ); ?>\" name=\"<?php echo $this->get_field_name( 'display' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"Drop Down\" <?php selected('Drop Down', $instance[\"display\"]); ?>><?php _e('Drop Down', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"List\" <?php selected('List', $instance[\"display\"]); ?>><?php _e('List', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"Images\" <?php selected('Images', $instance[\"display\"]); ?>><?php _e('Images', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t\t<small style=\"color:red;\"><?php _e('If you have selected to display your tags/terms as images, remember to create tag/term specific images for each!', 'wpShop'); ?></small>\n\t\t</p>\n\t\t\n\t\t<small><?php _e('The fields below apply only if you have checked \"Display Images\" from above.', 'wpShop'); ?></small>\n\t\t\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\"><?php _e('Thumb Width:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\" name=\"<?php echo $this->get_field_name( 'thumb_width' ); ?>\" value=\"<?php echo $instance['thumb_width']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\"><?php _e('Number of images per row:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\" name=\"<?php echo $this->get_field_name( 'num_img_in_row' ); ?>\" value=\"<?php echo $instance['num_img_in_row']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\"><?php _e('Image File Type', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\" name=\"<?php echo $this->get_field_name( 'img_file_type' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"jpg\" <?php selected('jpg', $instance[\"img_file_type\"]); ?>><?php _e('jpg', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"png\" <?php selected('png', $instance[\"img_file_type\"]); ?>><?php _e('png', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"gif\" <?php selected('gif', $instance[\"img_file_type\"]); ?>><?php _e('gif', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t\n\t\t\n\t<?php }", "title": "" }, { "docid": "fa137c4d71df1f65b11a115e6ed894e2", "score": "0.49474147", "text": "function form($instance){\n\t\t$defaults = array( 'title' => __('', 'wpShop'), 'cat_slug' => '', 'cat_IDs' => '', 'current_cat' => FALSE, 'current_maincat' => FALSE, 'thumb_width' => '80', 'num_img_in_row' => '3');\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\"><?php _e('Category Name or Slug:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from one category enter it\\'s name or slug here. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_slug' ); ?>\" value=\"<?php echo $instance['cat_slug']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\"><?php _e('Category IDs:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from several categories enter their IDs seperated by comma eg. 1,3,4. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_IDs' ); ?>\" value=\"<?php echo $instance['cat_IDs']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t\n\t\t<!-- query current cat || current main cat? Checkbox -->\n\t\t<p style=\"background:#F1F1F1;\">\n\t\t\t<strong><?php _e('For use on Product Category Pages Only', 'wpShop'); ?></strong><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_cat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_cat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\"><?php _e('Query Current Category', 'wpShop'); ?></label><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_maincat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_maincat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\"><?php _e('Query Current Main (top level) Category', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Check the appropriate box (not both!) if you like to query Product tags/terms from the current category or the current main (top level) category being viewed. This will only work if you have activated this widget on category pages! If you are using the widget on other pages please use one of the options above.', 'wpShop'); ?></small>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'display' ); ?>\"><?php _e('Display as:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'display' ); ?>\" name=\"<?php echo $this->get_field_name( 'display' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"Drop Down\" <?php selected('Drop Down', $instance[\"display\"]); ?>><?php _e('Drop Down', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"List\" <?php selected('List', $instance[\"display\"]); ?>><?php _e('List', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"Images\" <?php selected('Images', $instance[\"display\"]); ?>><?php _e('Images', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t\t<small style=\"color:red;\"><?php _e('If you have selected to display your tags/terms as images, remember to create tag/term specific images for each!', 'wpShop'); ?></small>\n\t\t</p>\n\t\t\n\t\t<small><?php _e('The fields below apply only if you have checked \"Display Images\" from above.', 'wpShop'); ?></small>\n\t\t\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\"><?php _e('Thumb Width:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\" name=\"<?php echo $this->get_field_name( 'thumb_width' ); ?>\" value=\"<?php echo $instance['thumb_width']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\"><?php _e('Number of images per row:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\" name=\"<?php echo $this->get_field_name( 'num_img_in_row' ); ?>\" value=\"<?php echo $instance['num_img_in_row']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\"><?php _e('Image File Type', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\" name=\"<?php echo $this->get_field_name( 'img_file_type' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"jpg\" <?php selected('jpg', $instance[\"img_file_type\"]); ?>><?php _e('jpg', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"png\" <?php selected('png', $instance[\"img_file_type\"]); ?>><?php _e('png', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"gif\" <?php selected('gif', $instance[\"img_file_type\"]); ?>><?php _e('gif', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t\n\t\t\n\t<?php }", "title": "" }, { "docid": "fa137c4d71df1f65b11a115e6ed894e2", "score": "0.49474147", "text": "function form($instance){\n\t\t$defaults = array( 'title' => __('', 'wpShop'), 'cat_slug' => '', 'cat_IDs' => '', 'current_cat' => FALSE, 'current_maincat' => FALSE, 'thumb_width' => '80', 'num_img_in_row' => '3');\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\"><?php _e('Category Name or Slug:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from one category enter it\\'s name or slug here. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_slug' ); ?>\" value=\"<?php echo $instance['cat_slug']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\"><?php _e('Category IDs:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from several categories enter their IDs seperated by comma eg. 1,3,4. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_IDs' ); ?>\" value=\"<?php echo $instance['cat_IDs']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t\n\t\t<!-- query current cat || current main cat? Checkbox -->\n\t\t<p style=\"background:#F1F1F1;\">\n\t\t\t<strong><?php _e('For use on Product Category Pages Only', 'wpShop'); ?></strong><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_cat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_cat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\"><?php _e('Query Current Category', 'wpShop'); ?></label><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_maincat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_maincat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\"><?php _e('Query Current Main (top level) Category', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Check the appropriate box (not both!) if you like to query Product tags/terms from the current category or the current main (top level) category being viewed. This will only work if you have activated this widget on category pages! If you are using the widget on other pages please use one of the options above.', 'wpShop'); ?></small>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'display' ); ?>\"><?php _e('Display as:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'display' ); ?>\" name=\"<?php echo $this->get_field_name( 'display' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"Drop Down\" <?php selected('Drop Down', $instance[\"display\"]); ?>><?php _e('Drop Down', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"List\" <?php selected('List', $instance[\"display\"]); ?>><?php _e('List', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"Images\" <?php selected('Images', $instance[\"display\"]); ?>><?php _e('Images', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t\t<small style=\"color:red;\"><?php _e('If you have selected to display your tags/terms as images, remember to create tag/term specific images for each!', 'wpShop'); ?></small>\n\t\t</p>\n\t\t\n\t\t<small><?php _e('The fields below apply only if you have checked \"Display Images\" from above.', 'wpShop'); ?></small>\n\t\t\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\"><?php _e('Thumb Width:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\" name=\"<?php echo $this->get_field_name( 'thumb_width' ); ?>\" value=\"<?php echo $instance['thumb_width']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\"><?php _e('Number of images per row:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\" name=\"<?php echo $this->get_field_name( 'num_img_in_row' ); ?>\" value=\"<?php echo $instance['num_img_in_row']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\"><?php _e('Image File Type', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\" name=\"<?php echo $this->get_field_name( 'img_file_type' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"jpg\" <?php selected('jpg', $instance[\"img_file_type\"]); ?>><?php _e('jpg', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"png\" <?php selected('png', $instance[\"img_file_type\"]); ?>><?php _e('png', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"gif\" <?php selected('gif', $instance[\"img_file_type\"]); ?>><?php _e('gif', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t\n\t\t\n\t<?php }", "title": "" }, { "docid": "fa137c4d71df1f65b11a115e6ed894e2", "score": "0.49474147", "text": "function form($instance){\n\t\t$defaults = array( 'title' => __('', 'wpShop'), 'cat_slug' => '', 'cat_IDs' => '', 'current_cat' => FALSE, 'current_maincat' => FALSE, 'thumb_width' => '80', 'num_img_in_row' => '3');\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\"><?php _e('Category Name or Slug:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from one category enter it\\'s name or slug here. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_slug' ); ?>\" value=\"<?php echo $instance['cat_slug']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\"><?php _e('Category IDs:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from several categories enter their IDs seperated by comma eg. 1,3,4. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_IDs' ); ?>\" value=\"<?php echo $instance['cat_IDs']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t\n\t\t<!-- query current cat || current main cat? Checkbox -->\n\t\t<p style=\"background:#F1F1F1;\">\n\t\t\t<strong><?php _e('For use on Product Category Pages Only', 'wpShop'); ?></strong><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_cat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_cat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\"><?php _e('Query Current Category', 'wpShop'); ?></label><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_maincat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_maincat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\"><?php _e('Query Current Main (top level) Category', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Check the appropriate box (not both!) if you like to query Product tags/terms from the current category or the current main (top level) category being viewed. This will only work if you have activated this widget on category pages! If you are using the widget on other pages please use one of the options above.', 'wpShop'); ?></small>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'display' ); ?>\"><?php _e('Display as:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'display' ); ?>\" name=\"<?php echo $this->get_field_name( 'display' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"Drop Down\" <?php selected('Drop Down', $instance[\"display\"]); ?>><?php _e('Drop Down', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"List\" <?php selected('List', $instance[\"display\"]); ?>><?php _e('List', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"Images\" <?php selected('Images', $instance[\"display\"]); ?>><?php _e('Images', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t\t<small style=\"color:red;\"><?php _e('If you have selected to display your tags/terms as images, remember to create tag/term specific images for each!', 'wpShop'); ?></small>\n\t\t</p>\n\t\t\n\t\t<small><?php _e('The fields below apply only if you have checked \"Display Images\" from above.', 'wpShop'); ?></small>\n\t\t\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\"><?php _e('Thumb Width:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\" name=\"<?php echo $this->get_field_name( 'thumb_width' ); ?>\" value=\"<?php echo $instance['thumb_width']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\"><?php _e('Number of images per row:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\" name=\"<?php echo $this->get_field_name( 'num_img_in_row' ); ?>\" value=\"<?php echo $instance['num_img_in_row']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\"><?php _e('Image File Type', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\" name=\"<?php echo $this->get_field_name( 'img_file_type' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"jpg\" <?php selected('jpg', $instance[\"img_file_type\"]); ?>><?php _e('jpg', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"png\" <?php selected('png', $instance[\"img_file_type\"]); ?>><?php _e('png', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"gif\" <?php selected('gif', $instance[\"img_file_type\"]); ?>><?php _e('gif', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t\n\t\t\n\t<?php }", "title": "" }, { "docid": "fa137c4d71df1f65b11a115e6ed894e2", "score": "0.49474147", "text": "function form($instance){\n\t\t$defaults = array( 'title' => __('', 'wpShop'), 'cat_slug' => '', 'cat_IDs' => '', 'current_cat' => FALSE, 'current_maincat' => FALSE, 'thumb_width' => '80', 'num_img_in_row' => '3');\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\"><?php _e('Category Name or Slug:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from one category enter it\\'s name or slug here. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_slug' ); ?>\" value=\"<?php echo $instance['cat_slug']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\"><?php _e('Category IDs:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from several categories enter their IDs seperated by comma eg. 1,3,4. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_IDs' ); ?>\" value=\"<?php echo $instance['cat_IDs']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t\n\t\t<!-- query current cat || current main cat? Checkbox -->\n\t\t<p style=\"background:#F1F1F1;\">\n\t\t\t<strong><?php _e('For use on Product Category Pages Only', 'wpShop'); ?></strong><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_cat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_cat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\"><?php _e('Query Current Category', 'wpShop'); ?></label><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_maincat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_maincat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\"><?php _e('Query Current Main (top level) Category', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Check the appropriate box (not both!) if you like to query Product tags/terms from the current category or the current main (top level) category being viewed. This will only work if you have activated this widget on category pages! If you are using the widget on other pages please use one of the options above.', 'wpShop'); ?></small>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'display' ); ?>\"><?php _e('Display as:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'display' ); ?>\" name=\"<?php echo $this->get_field_name( 'display' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"Drop Down\" <?php selected('Drop Down', $instance[\"display\"]); ?>><?php _e('Drop Down', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"List\" <?php selected('List', $instance[\"display\"]); ?>><?php _e('List', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"Images\" <?php selected('Images', $instance[\"display\"]); ?>><?php _e('Images', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t\t<small style=\"color:red;\"><?php _e('If you have selected to display your tags/terms as images, remember to create tag/term specific images for each!', 'wpShop'); ?></small>\n\t\t</p>\n\t\t\n\t\t<small><?php _e('The fields below apply only if you have checked \"Display Images\" from above.', 'wpShop'); ?></small>\n\t\t\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\"><?php _e('Thumb Width:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\" name=\"<?php echo $this->get_field_name( 'thumb_width' ); ?>\" value=\"<?php echo $instance['thumb_width']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\"><?php _e('Number of images per row:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\" name=\"<?php echo $this->get_field_name( 'num_img_in_row' ); ?>\" value=\"<?php echo $instance['num_img_in_row']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\"><?php _e('Image File Type', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\" name=\"<?php echo $this->get_field_name( 'img_file_type' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"jpg\" <?php selected('jpg', $instance[\"img_file_type\"]); ?>><?php _e('jpg', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"png\" <?php selected('png', $instance[\"img_file_type\"]); ?>><?php _e('png', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"gif\" <?php selected('gif', $instance[\"img_file_type\"]); ?>><?php _e('gif', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t\n\t\t\n\t<?php }", "title": "" }, { "docid": "fa137c4d71df1f65b11a115e6ed894e2", "score": "0.49474147", "text": "function form($instance){\n\t\t$defaults = array( 'title' => __('', 'wpShop'), 'cat_slug' => '', 'cat_IDs' => '', 'current_cat' => FALSE, 'current_maincat' => FALSE, 'thumb_width' => '80', 'num_img_in_row' => '3');\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\"><?php _e('Category Name or Slug:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from one category enter it\\'s name or slug here. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_slug' ); ?>\" value=\"<?php echo $instance['cat_slug']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\"><?php _e('Category IDs:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from several categories enter their IDs seperated by comma eg. 1,3,4. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_IDs' ); ?>\" value=\"<?php echo $instance['cat_IDs']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t\n\t\t<!-- query current cat || current main cat? Checkbox -->\n\t\t<p style=\"background:#F1F1F1;\">\n\t\t\t<strong><?php _e('For use on Product Category Pages Only', 'wpShop'); ?></strong><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_cat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_cat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\"><?php _e('Query Current Category', 'wpShop'); ?></label><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_maincat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_maincat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\"><?php _e('Query Current Main (top level) Category', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Check the appropriate box (not both!) if you like to query Product tags/terms from the current category or the current main (top level) category being viewed. This will only work if you have activated this widget on category pages! If you are using the widget on other pages please use one of the options above.', 'wpShop'); ?></small>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'display' ); ?>\"><?php _e('Display as:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'display' ); ?>\" name=\"<?php echo $this->get_field_name( 'display' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"Drop Down\" <?php selected('Drop Down', $instance[\"display\"]); ?>><?php _e('Drop Down', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"List\" <?php selected('List', $instance[\"display\"]); ?>><?php _e('List', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"Images\" <?php selected('Images', $instance[\"display\"]); ?>><?php _e('Images', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t\t<small style=\"color:red;\"><?php _e('If you have selected to display your tags/terms as images, remember to create tag/term specific images for each!', 'wpShop'); ?></small>\n\t\t</p>\n\t\t\n\t\t<small><?php _e('The fields below apply only if you have checked \"Display Images\" from above.', 'wpShop'); ?></small>\n\t\t\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\"><?php _e('Thumb Width:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\" name=\"<?php echo $this->get_field_name( 'thumb_width' ); ?>\" value=\"<?php echo $instance['thumb_width']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\"><?php _e('Number of images per row:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\" name=\"<?php echo $this->get_field_name( 'num_img_in_row' ); ?>\" value=\"<?php echo $instance['num_img_in_row']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\"><?php _e('Image File Type', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\" name=\"<?php echo $this->get_field_name( 'img_file_type' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"jpg\" <?php selected('jpg', $instance[\"img_file_type\"]); ?>><?php _e('jpg', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"png\" <?php selected('png', $instance[\"img_file_type\"]); ?>><?php _e('png', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"gif\" <?php selected('gif', $instance[\"img_file_type\"]); ?>><?php _e('gif', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t\n\t\t\n\t<?php }", "title": "" }, { "docid": "fa137c4d71df1f65b11a115e6ed894e2", "score": "0.49474147", "text": "function form($instance){\n\t\t$defaults = array( 'title' => __('', 'wpShop'), 'cat_slug' => '', 'cat_IDs' => '', 'current_cat' => FALSE, 'current_maincat' => FALSE, 'thumb_width' => '80', 'num_img_in_row' => '3');\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\"><?php _e('Category Name or Slug:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from one category enter it\\'s name or slug here. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_slug' ); ?>\" value=\"<?php echo $instance['cat_slug']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\"><?php _e('Category IDs:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from several categories enter their IDs seperated by comma eg. 1,3,4. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_IDs' ); ?>\" value=\"<?php echo $instance['cat_IDs']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t\n\t\t<!-- query current cat || current main cat? Checkbox -->\n\t\t<p style=\"background:#F1F1F1;\">\n\t\t\t<strong><?php _e('For use on Product Category Pages Only', 'wpShop'); ?></strong><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_cat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_cat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\"><?php _e('Query Current Category', 'wpShop'); ?></label><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_maincat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_maincat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\"><?php _e('Query Current Main (top level) Category', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Check the appropriate box (not both!) if you like to query Product tags/terms from the current category or the current main (top level) category being viewed. This will only work if you have activated this widget on category pages! If you are using the widget on other pages please use one of the options above.', 'wpShop'); ?></small>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'display' ); ?>\"><?php _e('Display as:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'display' ); ?>\" name=\"<?php echo $this->get_field_name( 'display' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"Drop Down\" <?php selected('Drop Down', $instance[\"display\"]); ?>><?php _e('Drop Down', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"List\" <?php selected('List', $instance[\"display\"]); ?>><?php _e('List', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"Images\" <?php selected('Images', $instance[\"display\"]); ?>><?php _e('Images', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t\t<small style=\"color:red;\"><?php _e('If you have selected to display your tags/terms as images, remember to create tag/term specific images for each!', 'wpShop'); ?></small>\n\t\t</p>\n\t\t\n\t\t<small><?php _e('The fields below apply only if you have checked \"Display Images\" from above.', 'wpShop'); ?></small>\n\t\t\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\"><?php _e('Thumb Width:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\" name=\"<?php echo $this->get_field_name( 'thumb_width' ); ?>\" value=\"<?php echo $instance['thumb_width']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\"><?php _e('Number of images per row:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\" name=\"<?php echo $this->get_field_name( 'num_img_in_row' ); ?>\" value=\"<?php echo $instance['num_img_in_row']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\"><?php _e('Image File Type', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\" name=\"<?php echo $this->get_field_name( 'img_file_type' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"jpg\" <?php selected('jpg', $instance[\"img_file_type\"]); ?>><?php _e('jpg', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"png\" <?php selected('png', $instance[\"img_file_type\"]); ?>><?php _e('png', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"gif\" <?php selected('gif', $instance[\"img_file_type\"]); ?>><?php _e('gif', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t\n\t\t\n\t<?php }", "title": "" }, { "docid": "902ffb99c7e1a944ca9afd9f47ddb410", "score": "0.49467993", "text": "public function buildInstance(string $class, array $arguments = []);", "title": "" }, { "docid": "59987671f7ecaf76d2643bb8ccfeaf5c", "score": "0.49402535", "text": "public function __construct() {\n\n\t\t// load plugin text domain\n\t\tadd_action( 'init', array( $this, 'load_plugin_textdomain' ) );\n\n\t\t// Hooks fired when the Widget is activated and deactivated\n\t\tregister_activation_hook( __FILE__, array( $this, 'activate' ) );\n\t\tregister_deactivation_hook( __FILE__, array( $this, 'deactivate' ) );\n\n\t\tparent::__construct(\n\t\t\t$this->get_slug(),\n\t\t\t$this->get_widget_name(),\n\t\t\tarray(\n\t\t\t\t'classname' => $this->get_widget_class(),\n\t\t\t\t'description' => $this->get_widget_description()\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => $this->width, \n\t\t\t\t'height' => $this->height\n\t\t\t)\n\t\t);\n\n\t\t// Register admin styles and scripts\n\t\tadd_action( 'admin_print_styles', array( $this, 'register_admin_styles' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts' ) );\n\n\t\t// Register site styles and scripts\n\t\tif(!is_admin() && is_active_widget(false, false, $this->get_slug())){\n\t\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'register_widget_styles' ) );\n\t\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'register_widget_scripts' ) );\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "06a48cdd6b3b42102e4dc235fe70ea0f", "score": "0.49351448", "text": "function form($instance){\n\t\t$defaults = array( 'title' => __('', 'wpShop'), 'cat_slug' => '', 'cat_IDs' => '', 'current_cat' => FALSE, 'current_maincat' => FALSE, 'thumb_width' => '80', 'num_img_in_row' => '3');\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\"><?php _e('Category Name or Slug:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from one category enter it\\'s name or slug here. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_slug' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_slug' ); ?>\" value=\"<?php echo $instance['cat_slug']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\"><?php _e('Category IDs:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('If you like to query Product tags/terms from several categories enter their IDs seperated by comma eg. 1,3,4. Otherwise leave empty!', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'cat_IDs' ); ?>\" name=\"<?php echo $this->get_field_name( 'cat_IDs' ); ?>\" value=\"<?php echo $instance['cat_IDs']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t\n\t\t<!-- query current cat || current main cat? Checkbox -->\n\t\t<p style=\"background:#F1F1F1;\">\n\t\t\t<strong><?php _e('For use on Product Category Pages Only', 'wpShop'); ?></strong><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_cat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_cat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_cat' ); ?>\"><?php _e('Query Current Category', 'wpShop'); ?></label><br/>\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" <?php checked( (bool) $instance['current_maincat'], true ); ?> id=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\" name=\"<?php echo $this->get_field_name( 'current_maincat' ); ?>\" /> \n\t\t\t<label for=\"<?php echo $this->get_field_id( 'current_maincat' ); ?>\"><?php _e('Query Current Main (top level) Category', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Check the appropriate box (not both!) if you like to query Product tags/terms from the current category or the current main (top level) category being viewed. This will only work if you have activated this widget on category pages! If you are using the widget on other pages please use one of the options above.', 'wpShop'); ?></small>\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'display' ); ?>\"><?php _e('Display as:', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'display' ); ?>\" name=\"<?php echo $this->get_field_name( 'display' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"Drop Down\" <?php selected('Drop Down', $instance[\"display\"]); ?>><?php _e('Drop Down', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"List\" <?php selected('List', $instance[\"display\"]); ?>><?php _e('List', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"Images\" <?php selected('Images', $instance[\"display\"]); ?>><?php _e('Images', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t\t<small style=\"color:red;\"><?php _e('If you have selected to display your tags/terms as images, remember to create tag/term specific images for each!', 'wpShop'); ?></small>\n\t\t</p>\n\t\t\n\t\t<small><?php _e('The fields below apply only if you have checked \"Display Images\" from above.', 'wpShop'); ?></small>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\"><?php _e('Thumb Width:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'thumb_width' ); ?>\" name=\"<?php echo $this->get_field_name( 'thumb_width' ); ?>\" value=\"<?php echo $instance['thumb_width']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\"><?php _e('Number of images per row:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'num_img_in_row' ); ?>\" name=\"<?php echo $this->get_field_name( 'num_img_in_row' ); ?>\" value=\"<?php echo $instance['num_img_in_row']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\"><?php _e('Image File Type', 'wpShop'); ?></label>\n\t\t\t<select id=\"<?php echo $this->get_field_id( 'img_file_type' ); ?>\" name=\"<?php echo $this->get_field_name( 'img_file_type' ); ?>\" class=\"widefat\" style=\"width:97%;\">\n\t\t\t\t<option value=\"jpg\" <?php selected('jpg', $instance[\"img_file_type\"]); ?>><?php _e('jpg', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"png\" <?php selected('png', $instance[\"img_file_type\"]); ?>><?php _e('png', 'wpShop'); ?></option>\n\t\t\t\t<option value=\"gif\" <?php selected('gif', $instance[\"img_file_type\"]); ?>><?php _e('gif', 'wpShop'); ?></option>\n\t\t\t</select>\n\t\t</p>\n\t\t\n\t\t\n\t<?php }", "title": "" }, { "docid": "181db981ef68ba8aa675ccf33d45c3d3", "score": "0.49340978", "text": "public function build($class): mixed;", "title": "" }, { "docid": "efd0f95cbbdf0bfb0bb22ae986572d1c", "score": "0.4933129", "text": "public function __construct() {\n\t\t$widget_ops = array(\n\t\t\t'classname' => 'formulier',\n\t\t\t'description' => 'plak de contact form 7 shortcode hier.',\n\t\t);\n\t\tparent::__construct( 'formulier', 'formulier', $widget_ops );\n\t}", "title": "" }, { "docid": "ced74ed4dcbb6fb2fc74b1f0a57d062f", "score": "0.4928775", "text": "public function getFormClass()\n {\n return 'EventForm';\n }", "title": "" }, { "docid": "af4dfb420653663b6adda57affdd2b82", "score": "0.4926605", "text": "function usingForm($formId)\n{\n return new UsingForm(StoryTeller::instance(), [$formId]);\n}", "title": "" }, { "docid": "f2ce3f52b2d4eec283b81b77596abea0", "score": "0.49263328", "text": "function form($instance) {\n\t\t\t// Set up some default widget settings\n\t\t\t$instance = wp_parse_args( (array) $instance, apply_filters('trx_addons_filter_widget_args_default', array(\n\t\t\t\t'widget_title' => '',\n\t\t\t\t// Layout params\n\t\t\t\t\"type\" => \"default\",\n\t\t\t\t\"zoom\" => 16,\n\t\t\t\t\"style\" => 'default',\n\t\t\t\t\"marker_address\" => '',\n\t\t\t\t\"marker_latlng\" => '',\n\t\t\t\t\"marker_icon\" => '',\n\t\t\t\t\"marker_title\" => '',\n\t\t\t\t\"marker_description\" => '',\n\t\t\t\t\"width\" => \"100%\",\n\t\t\t\t\"height\" => \"400\",\n\t\t\t\t// Title params\n\t\t\t\t\"title\" => '',\n\t\t\t\t\"subtitle\" => '',\n\t\t\t\t\"description\" => '',\n\t\t\t\t\"link\" => '',\n\t\t\t\t\"link_style\" => 'default',\n\t\t\t\t\"link_image\" => '',\n\t\t\t\t\"link_text\" => esc_html__('Learn more', 'trx_addons'),\n\t\t\t\t\"title_align\" => \"left\",\n\t\t\t\t\"title_style\" => \"default\",\n\t\t\t\t\"title_tag\" => '',\n\t\t\t\t// Common params\n\t\t\t\t\"id\" => \"\",\n\t\t\t\t\"class\" => \"\",\n\t\t\t\t\"css\" => \"\"\n\t\t\t\t), 'trx_addons_sow_widget_googlemap')\n\t\t\t);\n\t\t\n\t\t\tdo_action('trx_addons_action_before_widget_fields', $instance, 'trx_addons_sow_widget_googlemap');\n\t\t\t\n\t\t\t$this->show_field(array('name' => 'widget_title',\n\t\t\t\t\t\t\t\t\t'title' => __('Widget title:', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t'value' => $instance['widget_title'],\n\t\t\t\t\t\t\t\t\t'type' => 'text'));\n\t\t\n\t\t\tdo_action('trx_addons_action_after_widget_title', $instance, 'trx_addons_sow_widget_googlemap');\n\t\t\t\n\t\t\t$this->show_field(array('title' => __('Layout parameters', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t'type' => 'info'));\n\t\t\t\n\t\t\t$this->show_field(array('name' => 'type',\n\t\t\t\t\t\t\t\t\t'title' => __('Layout:', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t'value' => $instance['type'],\n\t\t\t\t\t\t\t\t\t'options' => apply_filters('trx_addons_sc_type', trx_addons_components_get_allowed_layouts('sc', 'googlemap'), 'trx_sc_googlemap'),\n\t\t\t\t\t\t\t\t\t'type' => 'select'));\n\t\t\t\n\t\t\t$this->show_field(array('name' => 'style',\n\t\t\t\t\t\t\t\t\t'title' => __('Style:', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t'value' => $instance['style'],\n\t\t\t\t\t\t\t\t\t'options' => trx_addons_get_list_sc_googlemap_styles(),\n\t\t\t\t\t\t\t\t\t'type' => 'select'));\n\t\t\t\n\t\t\t$this->show_field(array('name' => 'zoom',\n\t\t\t\t\t\t\t\t\t'title' => __('Zoom:', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t\"description\" => wp_kses_data( __(\"Map zoom factor from 1 to 21. If 0 or empty - fit bounds to markers\", 'trx_addons') ),\n\t\t\t\t\t\t\t\t\t'value' => (int) $instance['zoom'],\n\t\t\t\t\t\t\t\t\t\"std\" => 16,\n\t\t\t\t\t\t\t\t\t\"options\" => trx_addons_get_list_range(0, 21),\n\t\t\t\t\t\t\t\t\t\"type\" => 'select'));\n\n\t\t\t$this->show_field(array('name' => 'width',\n\t\t\t\t\t\t\t\t\t'title' => __('Width:', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t\"description\" => wp_kses_data( __(\"Width of the map. Any CSS measurement units are allowed. If unit is not specified - use 'px'\", 'trx_addons') ),\n\t\t\t\t\t\t\t\t\t'value' => $instance['width'],\n\t\t\t\t\t\t\t\t\t\"std\" => \"100%\",\n\t\t\t\t\t\t\t\t\t\"type\" => 'text'));\n\n\t\t\t$this->show_field(array('name' => 'height',\n\t\t\t\t\t\t\t\t\t'title' => __('Height:', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t\"description\" => wp_kses_data( __(\"Height of the map. Any CSS measurement units are allowed. If unit is not specified - use 'px'\", 'trx_addons') ),\n\t\t\t\t\t\t\t\t\t'value' => $instance['height'],\n\t\t\t\t\t\t\t\t\t\"std\" => \"350\",\n\t\t\t\t\t\t\t\t\t\"type\" => 'text'));\n\t\t\t\n\t\t\t$this->show_field(array('title' => __('Marker', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t'type' => 'info'));\n\n\t\t\t$this->show_field(array('name' => 'marker_address',\n\t\t\t\t\t\t\t\t\t'title' => __('Address:', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t\"description\" => wp_kses_data( __(\"Specify address to place marker on the map\", 'trx_addons') ),\n\t\t\t\t\t\t\t\t\t'value' => $instance['marker_address'],\n\t\t\t\t\t\t\t\t\t\"std\" => \"\",\n\t\t\t\t\t\t\t\t\t\"type\" => 'text'));\n\n\t\t\t$this->show_field(array('name' => 'marker_latlng',\n\t\t\t\t\t\t\t\t\t'title' => __('or Latitude and Longitude:', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t\"description\" => wp_kses_data( __(\"Comma separated coorditanes of the marker (instead Address above)\", 'trx_addons') ),\n\t\t\t\t\t\t\t\t\t'value' => $instance['marker_latlng'],\n\t\t\t\t\t\t\t\t\t\"std\" => \"\",\n\t\t\t\t\t\t\t\t\t\"type\" => 'text'));\n\n\t\t\t$this->show_field(array('name' => 'marker_icon',\n\t\t\t\t\t\t\t\t\t'title' => __('Marker image:', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t\"description\" => wp_kses_data( __(\"Select or upload image for this marker\", 'trx_addons') ),\n\t\t\t\t\t\t\t\t\t'value' => $instance['marker_icon'],\n\t\t\t\t\t\t\t\t\t\"std\" => \"\",\n\t\t\t\t\t\t\t\t\t\"type\" => 'image'));\n\n\t\t\t$this->show_field(array('name' => 'marker_title',\n\t\t\t\t\t\t\t\t\t'title' => __('Title:', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t\"description\" => wp_kses_data( __(\"Title of the marker\", 'trx_addons') ),\n\t\t\t\t\t\t\t\t\t'value' => $instance['marker_title'],\n\t\t\t\t\t\t\t\t\t\"std\" => \"\",\n\t\t\t\t\t\t\t\t\t\"type\" => 'text'));\n\n\t\t\t$this->show_field(array('name' => 'marker_description',\n\t\t\t\t\t\t\t\t\t'title' => __('Description:', 'trx_addons'),\n\t\t\t\t\t\t\t\t\t\"description\" => wp_kses_data( __(\"Description of the marker\", 'trx_addons') ),\n\t\t\t\t\t\t\t\t\t'value' => $instance['marker_description'],\n\t\t\t\t\t\t\t\t\t\"std\" => \"\",\n\t\t\t\t\t\t\t\t\t\"type\" => 'textarea'));\n\n\t\t\t$this->show_fields_title_param($instance);\n\t\t\t$this->show_fields_id_param($instance);\n\t\t\n\t\t\tdo_action('trx_addons_action_after_widget_fields', $instance, 'trx_addons_sow_widget_googlemap');\n\t\t}", "title": "" }, { "docid": "f5b9b4ab81b42b1ff0e23b37b19d913e", "score": "0.4925387", "text": "function __construct()\n {\n parent::__construct(\n 'garbo_login_widget', // Base ID\n esc_html__('Garbo Login', 'nm-framework'), // Name\n array('description' => esc_html__('Garbo Newsletter shortcode', 'nm-framework'),) // Args\n );\n }", "title": "" }, { "docid": "f2e4ee80accd405b850944972a53b95d", "score": "0.49228942", "text": "public function __construct()\r\n\t{\r\n\t\t// additionally you can register prefix paths for custom validators, decorators, and elements\r\n\t\r\n\t\tparent::__construct();\r\n\t\t// parent::__construct must be called last because it calls $form->init()\r\n\t\t// and anything after it is not executed\r\n\t}", "title": "" }, { "docid": "c15f29644a471099a25d969aa2262753", "score": "0.49109596", "text": "public function testBuilderHasBuilderClass($formlet) { \n $res = $this->instantiateFormlet($formlet);\n $this->assertInstanceOf(\"Lechimp\\Formlets\\Internal\\Builder\", $res[\"builder\"]);\n }", "title": "" }, { "docid": "16cd3457ca4989bf2ae4ded7ea218dd4", "score": "0.49098927", "text": "protected abstract function getFullyNamespacedFormClassToTest();", "title": "" }, { "docid": "775fd90809eae18464a3ec40591debd2", "score": "0.49032325", "text": "function acf_register_admin_tool( $class ) {\n}", "title": "" }, { "docid": "f77d835a326448a3b977b83dcc21e037", "score": "0.49004853", "text": "public function __construct() {\n\n \t \t\t$widget_ops = array(\n \t \t\t\t'classname' \t=> 'localendar',\n \t \t\t\t'description' \t=> __( 'Use this widget to place a Localendar in your sidebar.', 'localendar' )\n \t \t\t);\n\n \t \t\t$control_ops = array(\n \t \t\t\t'id_base' \t=> 'localendar',\n \t \t\t\t'height' \t=> 350,\n \t \t\t\t'width' \t=> 400\n \t \t\t);\n\n \t \t\t$this->WP_Widget( 'localendar', __( 'Localendar', 'localendar' ), $widget_ops, $control_ops );\n\n \t \t}", "title": "" }, { "docid": "bdca0127447232d92d8d7974e7f8b89a", "score": "0.48987994", "text": "function form($instance)\n {\n $instance = wp_parse_args((array) $instance, array('title' => __('tinyCampaign Widget', 'wp-tinycampaign-widget'), 'descr' => __('', 'wp-tinycampaign-widget'), 'base_url' => __('', 'wp-tinycampaign-widget'), 'placeholder' => __('', 'wp-tinycampaign-widget'), 'label' => __('', 'wp-tinycampaign-widget'), 'button_txt' => __('', 'wp-tinycampaign-widget')));\n $title = esc_attr($instance['title']);\n $descr = esc_attr($instance['descr']);\n $base_url = esc_url('base_url');\n $list_code = esc_attr($instance['list_code']);\n $placeholder = esc_attr($instance['placeholder']);\n $label = esc_attr($instance['label']);\n $button_txt = esc_attr($instance['button_txt']);\n $ajax_form = esc_attr($instance['ajax_form']);\n\n ?>\n\n <p>\n <label for=\"<?php echo $this->get_field_id('title'); ?>\"><?php _e('Title', 'wp-tinycampaign-widget'); ?>:</label>\n <input class=\"widefat\" id=\"<?php echo $this->get_field_id('title'); ?>\" name=\"<?php echo $this->get_field_name('title'); ?>\" type=\"text\" value=\"<?php echo $instance['title']; ?>\" />\n </p>\n <p>\n <label for=\"<?php echo $this->get_field_id('descr'); ?>\"><?php _e('Text before form', 'wp-tinycampaign-widget'); ?>:</label>\n <textarea class=\"widefat\" id=\"<?php echo $this->get_field_id('descr'); ?>\" name=\"<?php echo $this->get_field_name('descr'); ?>\"><?php echo $instance['descr']; ?></textarea>\n </p>\n <p>\n <label for=\"<?php echo $this->get_field_id('base_url'); ?>\"><?php _e('Base URL of tinyCampaign Install', 'wp-tinycampaign-widget'); ?>:</label>\n <input class=\"widefat\" id=\"<?php echo $this->get_field_id('base_url'); ?>\" name=\"<?php echo $this->get_field_name('base_url'); ?>\" type=\"text\" value=\"<?php echo $instance['base_url']; ?>\" />\n </p>\n <p>\n <label for=\"<?php echo $this->get_field_id('list_code'); ?>\"><?php _e('Unique List Code', 'wp-tinycampaign-widget'); ?>:</label>\n <input class=\"widefat\" id=\"<?php echo $this->get_field_id('list_code'); ?>\" name=\"<?php echo $this->get_field_name('list_code'); ?>\" type=\"text\" value=\"<?php echo $instance['list_code']; ?>\" />\n </p>\n <p>\n <label for=\"<?php echo $this->get_field_id('placeholder'); ?>\"><?php _e('Placeholder text (inside input box)', 'wp-tinycampaign-widget'); ?>:</label>\n <input class=\"widefat\" id=\"<?php echo $this->get_field_id('placeholder'); ?>\" name=\"<?php echo $this->get_field_name('placeholder'); ?>\" type=\"text\" value=\"<?php echo $instance['placeholder']; ?>\" />\n </p>\n <p>\n <label for=\"<?php echo $this->get_field_id('label'); ?>\"><?php _e('Label text (above input box)', 'wp-tinycampaign-widget'); ?>:</label>\n <input class=\"widefat\" id=\"<?php echo $this->get_field_id('label'); ?>\" name=\"<?php echo $this->get_field_name('label'); ?>\" type=\"text\" value=\"<?php echo $instance['label']; ?>\" />\n </p>\n <p>\n <label for=\"<?php echo $this->get_field_id('button_txt'); ?>\"><?php _e('Button text (e.g, \"Subscribe\")', 'wp-tinycampaign-widget'); ?>:</label>\n <input class=\"widefat\" id=\"<?php echo $this->get_field_id('button_txt'); ?>\" name=\"<?php echo $this->get_field_name('button_txt'); ?>\" type=\"text\" value=\"<?php echo $instance['button_txt']; ?>\" />\n </p>\n <p>\n <label for=\"<?php echo $this->get_field_id('ajax_form'); ?>\"><?php _e('Use Ajax?', 'wp-tinycampaign-widget'); ?>:</label>\n <input class=\"checkbox\" type=\"checkbox\" <?php checked($instance['ajax_form'], 'on'); ?> id=\"<?php echo $this->get_field_id('ajax_form'); ?>\" name=\"<?php echo $this->get_field_name('ajax_form'); ?>\" /> \n </p>\n <?php\n }", "title": "" }, { "docid": "4729953c6837e11eef8f00cf2f6bb276", "score": "0.48975295", "text": "public function setClass($class) {\n\n }", "title": "" }, { "docid": "2d08828623cbf7081f736be87a026caa", "score": "0.48931202", "text": "function form($instance)\n{\n$instance = wp_parse_args((array)$instance, $defaults); ?><!-- Category -->\n<p><label for=\"<?php echo $this->get_field_id('categories'); ?>\">Select Category:</label><select\n id=\"<?php echo $this->get_field_id('categories'); ?>\"\n name=\"<?php echo $this->get_field_name('categories'); ?>\"\n style=\"width:100%;\"><?php $categories = get_categories('hide_empty=0&depth=1&type=post'); ?><?php foreach ($categories as $category) { ?>\n <option\n value='<?php echo $category->term_id; ?>' <?php if ($category->term_id == $instance['categories']) echo 'selected=\"selected\"'; ?>><?php echo $category->cat_name; ?></option><?php } ?>\n </select></p><?php }", "title": "" }, { "docid": "07a5794352c60a1f8479aa3eaccfb15d", "score": "0.48922345", "text": "function form($instance){\n\t\t$defaults = array( 'title' => '', 'include' => '' );\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'include' ); ?>\"><?php _e('Include:', 'wpShop'); ?></label><br/>\n\t\t\t<small><?php _e('Enter the Page IDs you want to include. Comma separate multiple page ids.', 'wpShop'); ?></small>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'include' ); ?>\" name=\"<?php echo $this->get_field_name( 'include' ); ?>\" value=\"<?php echo $instance['include']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t\n\t<?php }", "title": "" }, { "docid": "e8a953cb2e551d6b57da523186bc6a69", "score": "0.48865482", "text": "public function form( $instance ) {\n\n \t \t\t/** Set defaults */\n \t \t\t$defaults = array(\n \t \t\t\t'title' \t\t=> '',\n \t \t\t\t'username' \t\t=> '',\n \t \t\t\t'type' \t\t\t=> 'link',\n \t \t\t\t'style' \t\t=> 'mb',\n \t \t\t\t'link_text' \t=> '',\n \t \t\t\t'hide_events' \t=> 0,\n \t \t\t\t'width' \t\t=> '',\n \t \t\t\t'height' \t\t=> '',\n \t \t\t\t'query' \t\t=> ''\n \t \t\t);\n \t \t\t$defaults \t= wp_parse_args( (array) $instance, $defaults );\n \t \t\t$types \t\t= array( 'link', 'full', 'static', 'iframe', 'mini' );\n \t \t\t$styles \t= array( 'mb', 'mb2', 'ml', 'wb', 'wl', 'dv', 'th' );\n\n \t \t\t?>\n \t \t\t<style type=\"text/css\">.localendar-form .localendar-types input[type=\"radio\"] { vertical-align: middle; } .localendar-form .localendar-types label { margin-left: 5px; vertical-align: middle; }</style>\n \t \t\t<div id=\"localendar-instance-<?php echo $this->number; ?>\" class=\"localendar-form\">\n \t \t\t<?php do_action( 'tgmlo_widget_before_form', $instance ); ?>\n \t \t\t<p>\n \t \t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e( 'Widget Title', 'localendar' ); ?></label>\n \t \t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" type=\"text\" value=\"<?php echo esc_attr( $defaults['title'] ); ?>\" style=\"width: 100%;\" />\n \t \t\t</p>\n \t \t\t<?php do_action( 'tgmlo_widget_middle_form', $instance ); ?>\n \t \t\t<p>\n \t \t\t\t<label for=\"<?php echo $this->get_field_id( 'username' ); ?>\"><?php _e( 'Localendar Username', 'localendar' ); ?></label>\n \t \t\t\t<input id=\"<?php echo $this->get_field_id( 'username' ); ?>\" name=\"<?php echo $this->get_field_name( 'username' ); ?>\" type=\"text\" value=\"<?php echo esc_attr( $defaults['username'] ); ?>\" style=\"width: 100%;\" />\n\t\t\t\t<?php _e( '<a style=\"margin-left:10px;\" href=\"http://www.localendar.com/calendar/signup\" target=\"_blank\">Get a localendar account</a>', 'localendar' ); ?>\n \t \t\t</p>\n \t \t\t<p><strong><?php _e( 'Step 1: How do you want to include your calendar?', 'localendar' ); ?></strong></p>\n \t \t\t<p class=\"localendar-types\">\n\t\t\t<?php\n\t\t\t\tforeach ( $types as $type ) {\n\t\t\t\t\t$checked = ( $type == $defaults['type'] ) ? 'checked=\"checked\"' : '';\n\t\t\t\t\techo '<input id=\"' . $this->get_field_id( 'type' ) . '\" class=\"localendar-type-' . $type . '\" type=\"radio\" name=\"' . $this->get_field_name( 'type' ) . '\" value=\"' . $type . '\"' . $checked . ' />';\n\n\t\t\t\t\tswitch ( $type ) {\n\t\t\t\t\t\tcase 'link' :\n\t\t\t\t\t\t\techo '<label for=\"' . $this->get_field_id( 'type' ) . '\">' . __( 'a link to a <strong>full-page</strong> view of my calendar', 'localendar' ) . '</label><br />';\n\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t\tcase 'full' :\n\t\t\t\t\t\t\techo '<label for=\"' . $this->get_field_id( 'type' ) . '\">' . __( 'a <strong>fully-interactive</strong> embedded calendar', 'localendar' ) . '</label><br />';\n\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t\tcase 'static' :\n\t\t\t\t\t\t\techo '<label for=\"' . $this->get_field_id( 'type' ) . '\">' . __( 'a <strong>static</strong> (non-interactive) embedded calendar', 'localendar' ) . '</label><br />';\n\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t\tcase 'iframe' :\n\t\t\t\t\t\t\techo '<label for=\"' . $this->get_field_id( 'type' ) . '\">' . __( 'my calendar <strong>in an &#60;iframe&#62;</strong>', 'localendar' ) . '</label><br />';\n\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t\tcase 'mini' :\n\t\t\t\t\t\t\techo '<label for=\"' . $this->get_field_id( 'type' ) . '\">' . __( 'an <strong>interactive mini-calendar</strong> with pop-up event balloons', 'localendar' ) . '</label><br />';\n\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t?>\n \t \t\t</p>\n \t \t\t<p class=\"localendar-link-text\">\n \t \t\t\t<label for=\"<?php echo $this->get_field_id( 'link_text' ); ?>\"><?php _e( 'Link Text', 'localendar' ); ?></label>\n \t \t\t\t<input id=\"<?php echo $this->get_field_id( 'link_text' ); ?>\" name=\"<?php echo $this->get_field_name( 'link_text' ); ?>\" type=\"text\" value=\"<?php echo esc_attr( $defaults['link_text'] ); ?>\" style=\"width: 100%;\" />\n \t \t\t\t<span class=\"description\"><?php _e( 'Only applied when the link radio option is selected.', 'localendar' ); ?></span>\n \t \t\t</p>\n \t \t\t<p class=\"select-style\"><strong><?php _e( 'Step 2: Select the style for your calendar.', 'localendar' ); ?></strong></p>\n \t \t\t<p class=\"styles\">\n \t \t\t\t<select id=\"<?php echo $this->get_field_id( 'style' ); ?>\" class=\"localendar-styles\" name=\"<?php echo $this->get_field_name( 'style' ); ?>\">\n\t\t\t\t<?php\n\t\t\t\t\tforeach ( $styles as $style ) {\n\t\t\t\t\t\tswitch ( $style ) {\n\t\t\t\t\t\t\tcase 'mb' :\n\t\t\t\t\t\t\t\techo '<option value=\"' . esc_attr( $style ) . '\"' . selected( esc_attr( $style ), $defaults['style'], false ) . '>' . __( 'Month Block-View', 'localendar' ) . '</option>';\n\t\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t\t\tcase 'mb2' :\n\t\t\t\t\t\t\t\techo '<option value=\"' . esc_attr( $style ) . '\"' . selected( esc_attr( $style ), $defaults['style'], false ) . '>' . __( 'Month Block-View (Style #2)', 'localendar' ) . '</option>';\n\t\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t\t\tcase 'ml' :\n\t\t\t\t\t\t\t\techo '<option value=\"' . esc_attr( $style ) . '\"' . selected( esc_attr( $style ), $defaults['style'], false ) . '>' . __( 'Month List-View', 'localendar' ) . '</option>';\n\t\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t\t\tcase 'wb' :\n\t\t\t\t\t\t\t\techo '<option value=\"' . esc_attr( $style ) . '\"' . selected( esc_attr( $style ), $defaults['style'], false ) . '>' . __( 'Week Block-View', 'localendar' ) . '</option>';\n\t\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t\t\tcase 'wl' :\n\t\t\t\t\t\t\t\techo '<option value=\"' . esc_attr( $style ) . '\"' . selected( esc_attr( $style ), $defaults['style'], false ) . '>' . __( 'Week List-View', 'localendar' ) . '</option>';\n\t\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t\t\tcase 'dv' :\n\t\t\t\t\t\t\t\techo '<option value=\"' . esc_attr( $style ) . '\"' . selected( esc_attr( $style ), $defaults['style'], false ) . '>' . __( 'Day View', 'localendar' ) . '</option>';\n\t\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t\t\tcase 'th' :\n\t\t\t\t\t\t\t\techo '<option value=\"' . esc_attr( $style ) . '\"' . selected( esc_attr( $style ), $defaults['style'], false ) . '>' . __( 'Today + \"Happening Soon\"', 'localendar' ) . '</option>';\n\t\t\t\t\t\t\t\tbreak 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t?>\n\t\t\t\t</select>\n \t \t\t</p>\n \t \t\t<p class=\"localendar-hide-events\">\n \t \t\t\t<input id=\"<?php echo $this->get_field_id( 'hide_events' ); ?>\" name=\"<?php echo $this->get_field_name( 'hide_events' ); ?>\" type=\"checkbox\" value=\"<?php echo esc_attr( $defaults['hide_events'] ); ?>\" <?php checked( $defaults['hide_events'], 'true' ); ?> />\n \t \t\t\t<label for=\"<?php echo $this->get_field_id( 'hide_events' ); ?>\"><?php _e( 'Hide events that occur in the previous/next month when applicable?', 'localendar' ); ?></label><br />\n \t \t\t\t<span class=\"description\"><?php _e( 'This field is applied only when the \"Month Block-View\" style is selected.', 'localendar' ); ?></span>\n \t \t\t</p>\n\t\t\t<div class=\"localendar-mini-style\" style='display:none'>\n\t\t\t\tColor Customizations for mini-calendar. Use the color chooser or enter hex values.\n\t\t\t\t<table><tr><td>\n\t\t\t\t<label for=\"localendar-bgm-events\"><?php _e( 'background color, Days with events', 'localendar' ); ?></label>\n\t\t\t\t</td><td>\n\t\t\t\t#<input id=\"localendar-bgm-events\" style=\"font-family: Courier\" size=6 maxlength=\"6\" name=\"localendar-bgm-events\" type=\"text\" value=\"\" /><br />\n\t\t\t\t</td><td>\n\t\t\t\t<label for=\"localendar-bgm-balloon\">&nbsp;&nbsp;<?php _e( 'background color, Event baloon pop-up', 'localendar' ); ?></label>\n\t\t\t\t</td><td>\n\t\t\t\t#<input id=\"localendar-bgm-balloon\" style=\"font-family: Courier\" size=6 maxlength=\"6\" name=\"localendar-bgm-balloon\" type=\"text\" value=\"\" /><br />\n\t\t\t\t</td></tr></table>\n\t\t\t\t<small>More color customizations can be set directly from localendar.com</small>\n\t\t\t</div>\n \t \t\t<p class=\"step-3\"><strong><?php _e( 'Step 3: Additional Customizations', 'localendar' ); ?></strong></p>\n \t \t\t<p class=\"localendar-iframe-style\">\n \t \t\t\t<label for=\"<?php echo $this->get_field_id( 'width' ); ?>\"><?php _e( 'Iframe Width?', 'localendar' ); ?></label><br />\n \t \t\t\t<input id=\"<?php echo $this->get_field_id( 'width' ); ?>\" name=\"<?php echo $this->get_field_name( 'width' ); ?>\" type=\"text\" value=\"<?php echo esc_attr( $defaults['width'] ); ?>\" style=\"width: 100%;\" />\n \t \t\t\t<br /><br />\n \t \t\t\t<label for=\"<?php echo $this->get_field_id( 'height' ); ?>\"><?php _e( 'Iframe Height?', 'localendar' ); ?></label><br />\n \t \t\t\t<input id=\"<?php echo $this->get_field_id( 'height' ); ?>\" name=\"<?php echo $this->get_field_name( 'height' ); ?>\" type=\"text\" value=\"<?php echo esc_attr( $defaults['height'] ); ?>\" style=\"width: 100%;\" />\n \t \t\t\t<span class=\"description\"><?php _e( 'Used to determine height of an iframe (if iframe type is selected).', 'localendar' ); ?></span>\n \t \t\t</p>\n \t \t\t<p class=\"localendar-query-strings\">\n \t \t\t\t<?php _e( 'Localendar also accepts a number of other query string parameters. If there are extra parameters that you would like appended to your URL, you can place them in the text field below. <a href=\"http://localendar.com/docs/display/lc/Your+Calendar%27s+URL+and+Parameters\" target=\"_blank\">Learn more about formatting your calendar URL</a>.', 'localendar' ); ?><br /><br />\n \t \t\t\t<label for=\"<?php echo $this->get_field_id( 'query' ); ?>\"><?php _e( 'Extra Query Args', 'localendar' ); ?></label><br />\n \t \t\t\t<input id=\"<?php echo $this->get_field_id( 'query' ); ?>\" name=\"<?php echo $this->get_field_name( 'query' ); ?>\" type=\"text\" value=\"<?php echo esc_attr( $defaults['query'] ); ?>\" style=\"width: 100%;\" />\n \t \t\t</p>\n \t \t\t</div>\n \t \t\t<?php do_action( 'tgmlo_widget_after_form', $instance );\n\n \t \t}", "title": "" }, { "docid": "df38910e03f4fc8175c067903b45ac22", "score": "0.48849803", "text": "public function testClassTypeFuncional(){\n $this->assertInstanceOf(\"AGR\\Interfaces\\Element\", $this->form);\n }", "title": "" }, { "docid": "0c2d72f3547600fe37f644a94b02ca76", "score": "0.48772597", "text": "function myCustomFields() { $this->__construct(); }", "title": "" }, { "docid": "ecb182ec697eb97b215d9b92d145109c", "score": "0.4875814", "text": "function __construct() {\n\t\tparent::__construct(\n\t\t\t'foo_widget', // Base ID\n\t\t\tesc_html__( 'Widget Title', 'text_domain' ), // Name\n\t\t\tarray( 'description' => esc_html__( 'A Foo Widget', 'text_domain' ), ) // Args\n\t\t);\n\t}", "title": "" }, { "docid": "e3619a6b6cec6b84be5c7a1d175bc5fb", "score": "0.48691702", "text": "public function getWidget();", "title": "" }, { "docid": "10e6a8a9e8bb270615a7d41be0deddd9", "score": "0.48685512", "text": "function __construct( $optionNamespace ) {\r\n\r\n\t\t // Set current blog\r\n\t\t $this->blogId = get_current_blog_id();\r\n\r\n\t\t\t// Clean namespace.\r\n\t\t\t$optionNamespace = str_replace( ' ', '-', trim( strtolower( $optionNamespace ) ) );\r\n\r\n\t\t\t$this->optionNamespace = $optionNamespace;\r\n\t\t\t$this->settings = $this->defaultSettings;\r\n\r\n\t\t\tdo_action( 'dpf_init', $this );\r\n\t\t\tdo_action( 'dpf_init_' . $this->optionNamespace, $this );\r\n\r\n\t\t\t// $this->cssInstance = new DPF_CSS( $this );\r\n\r\n\t\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'loadAdminScripts' ) );\r\n\t\t\tadd_action( 'dpf_create_option_' . $this->optionNamespace, array( $this, 'rememberAllOptions' ) );\r\n\t\t\tadd_filter( 'dpf_create_option_continue_' . $this->optionNamespace, array( $this, 'removeChildThemeOptions' ), 10, 2 );\r\n\r\n\t\t\t// Create a save option filter for customizer options.\r\n\t\t\t// add_filter( 'pre_update_option', array( $this, 'addCustomizerSaveFilter' ), 10, 3 );\r\n\r\n\t\t}", "title": "" }, { "docid": "6e874da66397676d434dc64e91f79a2e", "score": "0.48656505", "text": "protected function widgetTemplate()\n {\n }", "title": "" }, { "docid": "25ddfc68c3fb52cbdc7e8fb16cdfd350", "score": "0.48652503", "text": "function form($instance)\n\t{\n\t\t//reasons to fail\n\t\tif (empty($this->widget['fields'])) return false;\n\t\tdo_action('bum_widget_before');\n\t\t\n\t\t$defaults = array(\n\t\t\t'id' => '',\n\t\t\t'name' => '',\n\t\t\t'desc' => '',\n\t\t\t'type' => '',\n\t\t\t'options' => '',\n\t\t\t'std' => '',\n\t\t);\n\t\t\n\t\tforeach ($this->widget['fields'] as $field)\n\t\t{\n\t\t\t$field = wp_parse_args($field, $defaults);\n\t\t\t\n\t\t\t\n\t\t\tif (isset($field['id']) && array_key_exists($field['id'], $instance))\n\t\t\t\t$meta = attribute_escape($instance[$field['id']]);\n\t\t\t\n\t\t\tif ($field['type'] != 'custom' && $field['type'] != 'metabox') \n\t\t\t{\n\t\t\t\techo '<p><label for=\"',$this->get_field_id($field['id']),'\">';\n\t\t\t}\n\t\t\tif (isset($field['name']) && $field['name']) echo $field['name'],':';\n\t\t\t\n\t\t\tswitch ($field['type'])\n\t\t\t{\n\t\t\t\tcase 'text':\n\t\t\t\t\techo '<input type=\"text\" name=\"', $this->get_field_name($field['id']), '\" id=\"', $this->get_field_id($field['id']), '\" value=\"', $meta ? $meta : $field['std'], '\" class=\"bum_text\" />', \n\t\t\t\t\t'<br/><span class=\"description\">', $field['desc'], '</span>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\techo '<textarea class=\"bum_textarea\" name=\"', $this->get_field_name($field['id']), '\" id=\"', $this->get_field_id($field['id']), '\" cols=\"60\" rows=\"4\" style=\"width:97%\">', $meta ? $meta : $field['std'], '</textarea>', \n\t\t\t\t\t'<br/><span class=\"description\">', $field['desc'], '</span>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\techo '<select class=\"bum_select\" name=\"', $this->get_field_name($field['id']), '\" id=\"', $this->get_field_id($field['id']), '\">';\n\t\t\t\t\tforeach ($field['options'] as $option)\n\t\t\t\t\t{\n\t\t\t\t\t\techo '<option', $meta == $option ? ' selected=\"selected\"' : '', '>', $option, '</option>';\n\t\t\t\t\t}\n\t\t\t\t\techo '</select>', \n\t\t\t\t\t'<br/><span class=\"description\">', $field['desc'], '</span>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\tforeach ($field['options'] as $option)\n\t\t\t\t\t{\n\t\t\t\t\t\techo '<input class=\"bum_radio\" type=\"radio\" name=\"', $this->get_field_name($field['id']), '\" value=\"', $option['value'], '\"', $meta == $option['value'] ? ' checked=\"checked\"' : '', ' />', \n\t\t\t\t\t\t$option['name'];\n\t\t\t\t\t}\n\t\t\t\t\techo '<br/><span class=\"description\">', $field['desc'], '</span>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox':\n\t\t\t\t\techo '<input type=\"hidden\" name=\"', $this->get_field_name($field['id']), '\" id=\"', $this->get_field_id($field['id']), '\" /> ', \n\t\t\t\t\t\t '<input class=\"bum_checkbox\" type=\"checkbox\" name=\"', $this->get_field_name($field['id']), '\" id=\"', $this->get_field_id($field['id']), '\"', $meta ? ' checked=\"checked\"' : '', ' /> ', \n\t\t\t\t\t'<br/><span class=\"description\">', $field['desc'], '</span>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'custom':\n\t\t\t\t\techo $field['std'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'metabox':\n\t\t\t\t\tif ((isset($_REQUEST['action']) && $_REQUEST['action'] == 'edit')\n\t\t\t\t\t|| (isset($_REQUEST['action']) && $_REQUEST['action'] == 'add' && isset($_REQUEST['addnew'])))\n\t\t\t\t\techo '</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div id=\"query_view_params\" class=\"postbox\">\n\t\t\t\t\t\t<div class=\"handlediv\" title=\"Click to toggle\"><br></div>\n\t\t\t\t\t\t<h3 class=\"hndle\">\n\t\t\t\t\t\t\t<span>Query View Parameters</span>\n\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t<div class=\"inside\">';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif ($field['type'] != 'custom' && $field['type'] != 'metabox') \n\t\t\t{\n\t\t\t\techo '</label></p>';\n\t\t\t}\n\t\t}\n\t\tdo_action('bum_widget_after');\n\t\treturn;\n\t}", "title": "" }, { "docid": "6753ee4afab287e9fc04ca2891dba99f", "score": "0.48611176", "text": "public function __construct() {\n parent::__construct('sample_widget', 'Sample Widget', ['description' => 'I am a sample widget.']);\n }", "title": "" }, { "docid": "dc4c310c60bbadeee649025c6eee0f4f", "score": "0.4855285", "text": "public function form($instance) {\n // print_r($instance);\n $instance = wp_parse_args((array) $instance, self::$default_options);\n\n $autoplay = checked($instance['autoplay'], true, false);\n $show_title = checked($instance['show_title'], true, false);\n\n $inputs = array();\n foreach ($instance as $key => $value) {\n $inputs[$key] = array(\n 'id' => $this->get_field_id($key), // This is to ensure multi instance works,\n 'name' => $this->get_field_name($key), // See http://justintadlock.com/archives/2009/05/26/the-complete-guide-to-creating-widgets-in-wordpress-28\n 'title' => __(ucwords(str_replace('_', ' ', $key)), 'youtube-widget'),\n 'value' => attribute_escape($value), // Be sure you format your options to be valid HTML attributes.\n );\n }\n\n if (empty($instance['videoid'])) {\n echo '<p class=\"error-message\">'.__('Video URL is empty or invalid.','youtube-widget').'</p>';\n }\n\n // Notice that we don't need a complete form as it is embedded into the existing form.\n echo <<<HTML\n\n <p>\n <label for=\"{$inputs['title']['id']}\">\n {$inputs['title']['title']}:\n <input class=\"widefat\" id=\"{$inputs['title']['id']}\" name=\"{$inputs['title']['name']}\" type=\"text\" value=\"{$inputs['title']['value']}\">\n </label>\n </p>\n <p>\n <label for=\"{$inputs['video']['id']}\">\n {$inputs['video']['title']}:\n <input class=\"widefat\" id=\"{$inputs['video']['id']}\" name=\"{$inputs['video']['name']}\" type=\"text\" value=\"{$inputs['video']['value']}\">\n </label>\n </p>\n <p>\n <label for=\"{$inputs['width']['id']}\">\n {$inputs['width']['title']}:\n <input style=\"width: 50px\" id=\"{$inputs['width']['id']}\" name=\"{$inputs['width']['name']}\" type=\"number\" min=\"50\" value=\"{$inputs['width']['value']}\">\n </label>\n <label for=\"{$inputs['height']['id']}\">\n {$inputs['height']['title']}:\n <input style=\"width: 50px\" id=\"{$inputs['height']['id']}\" name=\"{$inputs['height']['name']}\" type=\"number\" min=\"50\" value=\"{$inputs['height']['value']}\">\n </label>\n </p>\n <label for=\"{$inputs['autoplay']['id']}\">\n {$inputs['autoplay']['title']}:\n <input id=\"{$inputs['autoplay']['id']}\" name=\"{$inputs['autoplay']['name']}\" value=\"1\" type=\"checkbox\" $autoplay>\n </label>\n <label for=\"{$inputs['show_title']['id']}\">\n {$inputs['show_title']['title']}:\n <input id=\"{$inputs['show_title']['id']}\" name=\"{$inputs['show_title']['name']}\" value=\"1\" type=\"checkbox\" $show_title>\n </label>\n </p>\n <p>\n <label for=\"{$inputs['only_page']['id']}\">\n {$inputs['only_page']['title']}:\n <input class=\"widefat\" id=\"{$inputs['only_page']['id']}\" name=\"{$inputs['only_page']['name']}\" type=\"text\" value=\"{$inputs['only_page']['value']}\">\n </label>\n </p>\nHTML;\n\n /* Multilingual feature */\n if (function_exists('icl_widget_text_language_selectbox')) {\n icl_widget_text_language_selectbox($instance['icl_language'], $this->get_field_name('icl_language'));\n }\n\n // Video thumbnail\n if (!empty($instance['videoid'])) {\n echo <<<HTML\n\n <a href=\"{$inputs['video']['value']}\" target=\"_blank\" title=\"{$inputs['title']['value']}\">\n <img style=\"width: 100%; height: auto\" src=\"{$inputs['thumbnail']['value']}\" width=\"{$inputs['width']['value']}\" height=\"{$inputs['height']['value']}\">\n </a>\nHTML;\n }\n }", "title": "" }, { "docid": "ad74b0fad567ca21da9ba02dfc7adf5b", "score": "0.48545", "text": "private function buildForm() {\n\n $widget = new VTCore_Bootstrap_Form_BsInstance(array(\n 'type' => false,\n ));\n\n $widget\n ->BsText(array(\n 'text' => __('Title', 'victheme_core'),\n 'name' => $this->get_field_name('title'),\n 'id' => $this->get_field_id('title'),\n 'value' => $this->instance['title'],\n ))\n ->BsTextarea(array(\n 'text' => __('Description', 'victheme_core'),\n 'name' => $this->get_field_name('description'),\n 'id' => $this->get_field_id('description'),\n 'value' => $this->instance['description'],\n ))\n ->BsElement(array(\n 'type' => 'div',\n 'attributes' => array(\n 'class' => array('table-manager'),\n ),\n ))\n ->lastChild()\n ->Table(array(\n 'headers' => array(\n ' ',\n __('Content', 'victheme_core'),\n ' ',\n ),\n 'rows' => $this->buildRows(),\n 'attributes' => array(\n 'data-filter' => 2,\n ),\n ))\n ->Button(array(\n 'text' => __('Add New Entry', 'victheme_core'),\n 'attributes' => array(\n 'data-tablemanager-type' => 'addrow',\n 'class' => array('button', 'button-large', 'button-primary'),\n ),\n ));\n\n return $widget;\n }", "title": "" }, { "docid": "73821ec61015daa174533a16bdeaf150", "score": "0.485296", "text": "public function setClass ($class_name, $args = null) {}", "title": "" }, { "docid": "d210c258cd6c25fa4355f6fbbef5a0d1", "score": "0.484987", "text": "public function allowClassesInNamespace($namespace)\n\t{\n\t\t$this->namespaces[] = trim($namespace, '\\\\') . '\\\\';\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "2299c3ebe78131e5943b9893a0c6fab5", "score": "0.4848542", "text": "function form($instance) {\n $title = esc_attr($instance['title']);\n $form = esc_attr($instance['form']);\n\n require('widgets/contact/contact-fields.php');\n }", "title": "" }, { "docid": "7215112a4a627549146650019b77e786", "score": "0.48453668", "text": "protected function _initWidgetInstance()\n {\n $this->_title($this->__('CMS'))->_title($this->__('Widgets'));\n\n /** @var $widgetInstance Mage_Widget_Model_Widget_Instance */\n $widgetInstance = Mage::getModel('widget/widget_instance');\n\n $instanceId = $this->getRequest()->getParam('instance_id', null);\n $type = $this->getRequest()->getParam('type', null);\n $package = $this->getRequest()->getParam('package', null);\n $theme = $this->getRequest()->getParam('theme', null);\n\n if ($instanceId) {\n $widgetInstance->load($instanceId);\n if (!$widgetInstance->getId()) {\n $this->_getSession()->addError(Mage::helper('widget')->__('Wrong widget instance specified.'));\n return false;\n }\n } else {\n $packageTheme = $package . '/' . $theme == '/' ? null : $package . '/' . $theme;\n $widgetInstance->setType($type)\n ->setPackageTheme($packageTheme);\n }\n Mage::register('current_widget_instance', $widgetInstance);\n return $widgetInstance;\n }", "title": "" }, { "docid": "3ada0ae177069582976b90e24700e274", "score": "0.4842503", "text": "function addClass($class, $namespace = null);", "title": "" }, { "docid": "bdd567802b2219873cfa20d5fb2e989a", "score": "0.4841215", "text": "function form($instance){\n\t\t$defaults = array( 'title' => __('', 'wpShop'), 'q1' => '', 'link1' => '', 'q2' => '', 'link2' => '', 'q3' => '', 'link3' => '');\n\t\t$instance = wp_parse_args( (array) $instance, $defaults ); ?>\n\n\t\t<!-- Widget Title: Text Input -->\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Title:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php echo $instance['title']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'q1' ); ?>\"><?php _e('Question 1:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'q1' ); ?>\" name=\"<?php echo $this->get_field_name( 'q1' ); ?>\" value=\"<?php echo $instance['q1']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'link1' ); ?>\"><?php _e('Links to (full path):', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'link1' ); ?>\" name=\"<?php echo $this->get_field_name( 'link1' ); ?>\" value=\"<?php echo $instance['link1']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'q2' ); ?>\"><?php _e('Question 2:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'q2' ); ?>\" name=\"<?php echo $this->get_field_name( 'q2' ); ?>\" value=\"<?php echo $instance['q2']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'link2' ); ?>\"><?php _e('Links to (full path):', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'link2' ); ?>\" name=\"<?php echo $this->get_field_name( 'link2' ); ?>\" value=\"<?php echo $instance['link2']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'q3' ); ?>\"><?php _e('Question 3:', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'q3' ); ?>\" name=\"<?php echo $this->get_field_name( 'q3' ); ?>\" value=\"<?php echo $instance['q3']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id( 'link3' ); ?>\"><?php _e('Links to (full path):', 'wpShop'); ?></label>\n\t\t\t<input id=\"<?php echo $this->get_field_id( 'link3' ); ?>\" name=\"<?php echo $this->get_field_name( 'link3' ); ?>\" value=\"<?php echo $instance['link3']; ?>\" style=\"width:97%;\" />\n\t\t</p>\n\t<?php }", "title": "" } ]
9390869bd708d0f0a498ae685fc2a4f1
Add filters to the filter.
[ { "docid": "220b9fb050c352d3d609b1a21aee1aa3", "score": "0.656537", "text": "public function addFilters(Collection $filters)\n\t{\n\t\tforeach ( $filters as $filter ) {\n\t\t\tif (!$this->filters->contains($filter)) {\n\t\t\t\t$this->filters->add($filter);\n\t\t\t\t$filter->setAccountFilter($this);\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "08b6a46993bc9b679115740906f90daf", "score": "0.8206877", "text": "public function addFilters() {\n\t\t$this->addFilter(new Generator\\Filters\\Upper);\n\t\t$this->addFilter(new Generator\\Filters\\Lower);\n\t\t$this->addFilter(new Generator\\Filters\\Date);\n\t\t$this->addFilter(new Generator\\Filters\\Number);\n\t}", "title": "" }, { "docid": "0d28b851b7135d3b89a2598910b38479", "score": "0.79968506", "text": "function add_filters($filters)\n\t{\n\t\tif (empty($this->filters))\n\t\t{\n\t\t\t$this->filters = $filters;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->filters = array_merge($this->filters, $filters);\n\t\t}\n\t}", "title": "" }, { "docid": "4f32d6070fb445a80ca87679cc3a065c", "score": "0.77976745", "text": "public function register_filters() {\n\t\t}", "title": "" }, { "docid": "a3750f5b2c4562a44013cf7db05864c4", "score": "0.77725166", "text": "public function addFilter()\n\t{\n\t}", "title": "" }, { "docid": "507dd3c3337bd70959991ef1cf65fd7b", "score": "0.7594839", "text": "public function addFilters($filters)\n {\n $this->_addCustom('Filter', $filters);\n }", "title": "" }, { "docid": "d7a5534687e14bed03937c334290193c", "score": "0.7450768", "text": "public function addFilters() {\n\t\t$this->subscriber->addFilter( 'acf/settings/save_json', [$this, 'acfSavePoint'] );\n\t\t$this->subscriber->addFilter( 'acf/settings/load_json', [$this, 'acfSavePoint'] );\n\t}", "title": "" }, { "docid": "61328340026031d31679cb4743c228fe", "score": "0.7437846", "text": "private function setupFilters()\n {\n $this->channel_filter = $this->createChannelFilter();\n\n $channel = $this->getChannelModelFromFilter();\n\n $this->category_filter = $this->createCategoryFilter($channel);\n $this->status_filter = $this->createStatusFilter($channel);\n\n $this->filters = ee('CP/Filter')\n ->add($this->channel_filter)\n ->add($this->category_filter)\n ->add($this->status_filter)\n ->add('Date')\n ->add('EntryKeyword')\n ->add(\n 'SearchIn',\n [\n 'titles' => 'titles',\n 'titles_and_content' => 'titles_and_content',\n ],\n $this->search_in\n );\n\n if (in_array('Author', $this->extra_filters)) {\n $this->author_filter = $this->createAuthorFilter($channel);\n $this->filters->add($this->author_filter);\n }\n\n if (in_array('Columns', $this->extra_filters)) {\n $this->filters->add('Columns', $this->createColumnFilter($channel), $channel, $this->view_id);\n }\n }", "title": "" }, { "docid": "1c952309e4c933ae5f169aec3ada1492", "score": "0.7315929", "text": "function set_filters ( $filters ) {\n\t\t$this->filters = array();\n\t\tforeach ( $filters as $filter ) {\n\t\t\t$this->append_filter ( $filter );\n\t\t}\n\t}", "title": "" }, { "docid": "d3c3ee49c8d5e40b5c46321f3d0cc2be", "score": "0.7309495", "text": "function addFilter($filter) {\n $this->filters[] = $filter;\n }", "title": "" }, { "docid": "bb38fef4bddc8782a945609ab0eebc89", "score": "0.7309435", "text": "protected function InitFilter() {\n\t\tforeach ($this->ItemOptions->vFilters as $filter) {\n\t\t\t$this->AddFilter($filter);\n\t\t}\n\t}", "title": "" }, { "docid": "2dbb7aea71ef943c8e28b972c28d5d45", "score": "0.721347", "text": "public function add_option_filters()\n {\n }", "title": "" }, { "docid": "2dbb7aea71ef943c8e28b972c28d5d45", "score": "0.7213431", "text": "public function add_option_filters()\n {\n }", "title": "" }, { "docid": "2dbb7aea71ef943c8e28b972c28d5d45", "score": "0.7213431", "text": "public function add_option_filters()\n {\n }", "title": "" }, { "docid": "c9bb76bc853a826b5aff64abb5f8bf3e", "score": "0.7175805", "text": "protected function initFilters()\n {\n // Handle standard filters:\n if (isset($_REQUEST['filter'])) {\n if (is_array($_REQUEST['filter'])) {\n foreach ($_REQUEST['filter'] as $filter) {\n $this->addFilter($filter);\n }\n } else {\n $this->addFilter($_REQUEST['filter']);\n }\n }\n\n // Handle date range filters:\n $this->initDateFilters();\n }", "title": "" }, { "docid": "2628f877e2d7334c347fdf3577c73fde", "score": "0.7161577", "text": "protected function collect_filters()\n {\n }", "title": "" }, { "docid": "e574fd4591beea8119761cc0275285b4", "score": "0.71482885", "text": "public function addFilter($filter)\n {\n\n $this->filters[] = $filter;\n\n }", "title": "" }, { "docid": "98312722bf74b17d9d1362b07b0ccb73", "score": "0.7118319", "text": "public function add_filter($filter) {\n $this->filters[] = $filter;\n }", "title": "" }, { "docid": "af6d347d3a4c063a45fb5382d82b9182", "score": "0.710369", "text": "public function filters( $filters ) {\n\t\t$this->filters = $filters;\n\t}", "title": "" }, { "docid": "1abc30180110b77308bd236e52173515", "score": "0.70990926", "text": "public function addCustomFilters($customFilters)\n {\n }", "title": "" }, { "docid": "3af79df7edd6c709a58df1ccd2e066ae", "score": "0.7088351", "text": "function register_filters() {\n\t\t\t// ie. add_filter($this->slug.\"/get_feeds\", array($this,\"import_user_feed\"), 1,2);\n\t\t\tadd_filter($this->slug.\"/get_feeds\", array($this,\"get_feeds\"), 1,2);\n\t\t}", "title": "" }, { "docid": "2724b500784c62701c600f922a6d309d", "score": "0.7050589", "text": "public function addHooksAndFilters()\n {\n\n foreach (self::$_hooks as $hookName) {\n $functionName = Inflector::variablize($hookName);\n add_plugin_hook($hookName, array($this, $functionName));\n }\n\n foreach (self::$_filters as $filterName) {\n $functionName = Inflector::variablize($filterName);\n add_filter($filterName, array($this, $functionName));\n }\n\n }", "title": "" }, { "docid": "2724b500784c62701c600f922a6d309d", "score": "0.7050589", "text": "public function addHooksAndFilters()\n {\n\n foreach (self::$_hooks as $hookName) {\n $functionName = Inflector::variablize($hookName);\n add_plugin_hook($hookName, array($this, $functionName));\n }\n\n foreach (self::$_filters as $filterName) {\n $functionName = Inflector::variablize($filterName);\n add_filter($filterName, array($this, $functionName));\n }\n\n }", "title": "" }, { "docid": "ba30516eab0518a18a793184381cc4a7", "score": "0.69590306", "text": "public function add_get_filters()\n\t{\n\t\t$filters = Arr::get($_GET, 'filters', array());\n\t\tif (is_array($filters))\n\t\t{\n\t\t\tforeach ($filters as $filter) {\n\t\t\t\t$column = arr::get($filter, 'column', FALSE);\n\t\t\t\t$operator = arr::get($filter, 'operator', FALSE);\n\t\t\t\t$value = arr::get($filter, 'value', FALSE);\n\t\t\t\t$this->add_filter($column, $operator, $value);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "32ab85be9667dd2b64ffe13fc1b4f7a8", "score": "0.6925027", "text": "public function add_filter($filter)\n {\n array_push($this->_filters, $filter);\n\n return $this;\n }", "title": "" }, { "docid": "b27ee4d0906b6d60b64730cbe1ee9d5f", "score": "0.6909234", "text": "private function setup_filters() {\n add_filter( 'fm_element_markup_start', [ $this, 'filter_fm_element_markup_start' ], 10, 2 );\n add_filter( 'fm_element_markup_end', [ $this, 'filter_fm_element_markup_end_summary_buttons' ], 10, 2 );\n }", "title": "" }, { "docid": "b37435c5c83628aca4945b0ab65e2f2d", "score": "0.68866354", "text": "private function filters() {\n\n\t}", "title": "" }, { "docid": "31e57d460d18970b625b496dad9aa1b7", "score": "0.6879351", "text": "public function buildFilters()\n {\n $this->addFilter('id', new ORM\\StringFilterType('id'), 'kuma_lead_generation.rules.list.filter.id');\n }", "title": "" }, { "docid": "1c2bbf72b526d0e3d9802c64c2fb83bc", "score": "0.68353343", "text": "function addFilter(InterfaceFilter $filter);", "title": "" }, { "docid": "40056a4bf16ad7a2d57edebee89221ac", "score": "0.68185335", "text": "public function addFilter(){\n\t\t$params = func_get_args();\n\t\tforeach($params as $param){\n\t\t\tif(is_object($param)&&method_exists($param, 'execute')){\n\t\t\t\t$this->_bufferFilters[] = $param;\n\t\t\t} else {\n\t\t\t\t$className = $param.'Filter';\n\t\t\t\tif(class_exists($className, false)==false){\n\t\t\t\t\tself::load($className);\n\t\t\t\t}\n\t\t\t\t$filter = new $className();\n\t\t\t\t$this->_bufferFilters[] = $filter;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "64e2b2d87d68011f987decd3bcb19d5e", "score": "0.6805206", "text": "public function add_filters( $filters, $callback, $priority = 10, $accepted_args = 1 ) {\n\t\t$this->add_hooks( 'filter', $filters, $callback, $priority, $accepted_args );\n\t}", "title": "" }, { "docid": "9a0dcc2854eb280cd309f5b760d95389", "score": "0.67786604", "text": "public function addFilter(Filter $filter) {\n $this->filters[] = $filter;\n }", "title": "" }, { "docid": "0bfbf753d0067193067f19e225255cf5", "score": "0.6764648", "text": "public function addFilter($filter, $type);", "title": "" }, { "docid": "28c8a548457e8d391564120af7caaa87", "score": "0.67507577", "text": "public function add_tester_filters()\n\t{\n\t\t// hook our callback before and after all other callbacks\n\t\tforeach( $this->filters_to_watch as $filter )\n\t\t{\n\t\t\tadd_filter( $filter, array( $this, 'check_query' ), 1 );\n\t\t\tadd_filter( $filter, array( $this, 'check_query' ), 101 );\n\t\t}\n\t}", "title": "" }, { "docid": "ccf95a3e1d9b42a5e7bf3fad5fef83a0", "score": "0.6747854", "text": "private function setup_filters() {\n\n add_filter( \"manage_{$this->post_type}_posts_columns\", array( $this, 'filter_post_columns' ) );\n\n add_filter( 'cron_schedules', array( $this, 'filter_cron_schedules' ) );\n\n add_filter( 'fm_element_markup_start', array( $this, 'filter_fm_link_markup' ), 10, 2 );\n\n }", "title": "" }, { "docid": "ccf95a3e1d9b42a5e7bf3fad5fef83a0", "score": "0.6747854", "text": "private function setup_filters() {\n\n add_filter( \"manage_{$this->post_type}_posts_columns\", array( $this, 'filter_post_columns' ) );\n\n add_filter( 'cron_schedules', array( $this, 'filter_cron_schedules' ) );\n\n add_filter( 'fm_element_markup_start', array( $this, 'filter_fm_link_markup' ), 10, 2 );\n\n }", "title": "" }, { "docid": "6470f713d9eb3e0832582ab6e871f819", "score": "0.67372876", "text": "public function filters()\n {\n return $this->addDefaultFilters($this->filters->get());\n }", "title": "" }, { "docid": "39aa971e5238a769bfc16bf4ca20efd5", "score": "0.672078", "text": "public function push()\n {\n $args = func_get_args();\n if ($args[0] instanceof FilterCollection) {\n foreach ($args[0] as $filter) {\n $this->push($filter);\n }\n } elseif ($args[0] instanceof Filter) {\n $filter = $args[0];\n $this->filters[$filter->getField()] = $filter;\n } elseif (is_array($args[0])) {\n // Handles input in the format [['field' => 'my_field', 'value' => 'search value']]\n if ($this->is_assoc($args[0]) && isset($args[0]['field'])) {\n $filter = Filter::fromArray($args[0]);\n $this->filters[$filter->getField()] = $filter;\n // Handles input in the form ['my_field' => 'search value', 'second_field' => 'second value']\n } elseif ($this->is_assoc($args[0])) {\n foreach ($args[0] as $k => $v) {\n $this->filters[$k] = $v instanceof Filter ? $v : new Filter($k, $v);\n }\n // Otherwise, recursively call it's self.\n } else {\n foreach ($args[0] as $filter) {\n $this->push($filter);\n }\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "22525f772ff57c5bb88d50cf064a56d0", "score": "0.67092836", "text": "function addFilter($filter) {\r\n\t\t\tarray_push($this->filterArray,$filter);\r\n\t\t\t$this->tLog->debug('Filter added...'.$filter->toString());\r\n\t\t}", "title": "" }, { "docid": "fc39d47d1daae0f82e7493ef3f3e7061", "score": "0.6689579", "text": "public function load_filters()\n\t{\n\t\t$settings = $this->get_settings();\n\n\t\tforeach ( $settings as $setting )\n\t\t{\n\t\t\tif ( $setting['filter'] )\n\t\t\t{\n\t\t\t\t$this->load_filter( $setting['filter'] );\n\t\t\t\t$this->filters[ $setting['filter'] ]->endpoint = $setting['endpoint'];\n\t\t\t}// end if\n\t\t}// end foreach\n\t}", "title": "" }, { "docid": "e1a1d92ad643bb457c61da13f99b2ca0", "score": "0.6669382", "text": "public function load_admin_filters() {\n\t\t\t// add js and css files, tabs, pages, php files.\n\t\t\tadd_filter( 'WPSCORE-scripts', array( $this, 'add_admin_scripts' ) );\n\t\t\tadd_filter( 'WPSCORE-tabs', array( $this, 'add_admin_navigation' ) );\n\t\t\tadd_filter( 'WPSCORE-pages', array( $this, 'add_admin_navigation' ) );\n\t\t}", "title": "" }, { "docid": "0356b3a8364330099ee22f8f853314c6", "score": "0.6648696", "text": "public function addFilter($filter) {\n\t\t$this->filters[$filter->getTag()] = $filter;\n\t}", "title": "" }, { "docid": "c9efc8a299da2a0587a082b4a2261eac", "score": "0.6635815", "text": "public function init_filters() {\n add_filter( 'erp_settings_pages', array( $this, 'add_settings_page' ) );\n }", "title": "" }, { "docid": "58105587c5e852bf560faea7afd0fbd4", "score": "0.6628768", "text": "public function filters()\n {\n return [\n ];\n }", "title": "" }, { "docid": "7c7581fb2936a91754d982622a08d096", "score": "0.66220343", "text": "public function enableFilters();", "title": "" }, { "docid": "c7435ddcd14919bc3320638881626eb9", "score": "0.660701", "text": "public function registerFilters()\n {\n add_filter(\n 'post_type_link',\n array( $this, 'replaceProductLink' ),\n 1,\n 2\n );\n add_filter(\n 'term_link',\n array( $this, 'replaceTermLink' ),\n 0,\n 3\n );\n add_filter( 'rewrite_rules_array', array( $this, 'addRewriteRules' ), 99 );\n }", "title": "" }, { "docid": "0a8e81796381c5b43e26a3f48b2b4204", "score": "0.6600551", "text": "public function addFilter($filter){\n \n $filters = $this->getFilters();\n $filters[] = $filter;\n $this->setFilters($filters);\n return $this;\n }", "title": "" }, { "docid": "6f4c3d9ebd24038514d65a5e3460d1c0", "score": "0.6588567", "text": "public function AddFilter( in4mlFilter $filter ){\n\t\t$this->filters[] = $filter;\n\t}", "title": "" }, { "docid": "9a5f67d6e4e565b8f0bd48ec4eb3d4da", "score": "0.6579464", "text": "private function add_admin_filters() {\n\t\tadd_filter( 'fw_post_options', array( $this, '_admin_filter_set_custom_posts_seo_options' ), 10, 2 );\n\t\tadd_filter( 'fw_taxonomy_options', array( $this, '_admin_filter_set_taxonomy_seo_options' ), 10, 2 );\n\t}", "title": "" }, { "docid": "80b9b89694332661e3d69876a80ec087", "score": "0.6569576", "text": "public function addFilter(string $filter): self\n {\n $this->filters[] = $filter;\n\n return $this;\n }", "title": "" }, { "docid": "5321e7d14fa9e54a8b19e2b2087bcadf", "score": "0.656781", "text": "function addFilter($newFilter)\r\n {\r\n $this->filters[] = $newFilter;\r\n $this->headFilter = $this->filters[0];\r\n $this->tailFilter = end($this->filters);\r\n reset($this->filters);\r\n }", "title": "" }, { "docid": "4898bcf9e3bff02eb6ebad31d42ae0d4", "score": "0.6526525", "text": "protected function createFilters() {\n $this->basicHtmlFilter = FilterFormat::create([\n 'format' => 'basic_html',\n 'name' => 'Basic HTML',\n 'filters' => [\n 'filter_html' => [\n 'status' => 1,\n 'settings' => [\n 'allowed_html' => '<p> <br> <strong> <a> <em>',\n ],\n ],\n ],\n ]);\n $this->basicHtmlFilter->save();\n\n $this->fullHtmlFilter = FilterFormat::create([\n 'format' => 'full_html',\n 'name' => 'Full HTML',\n ]);\n $this->fullHtmlFilter->save();\n }", "title": "" }, { "docid": "421b128f8b3c5ca32724de2d8631555c", "score": "0.6498912", "text": "function SetupCustomFilters() {\n\n\t// 1. Register your custom filter below (see example)\n\t// 2. Write your custom filter function (see example fucntions: GetLastMonthFilter, GetStartsWithAFilter)\n\n}", "title": "" }, { "docid": "f1480f04ea5209d2635521ca99eab424", "score": "0.6489342", "text": "function add_filter($filter, $key = NULL)\n\t{\n\t\tif (!empty($key))\n\t\t{\n\t\t\t$this->filters[$key] = $filter;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->filters[] = $filter;\n\t\t}\n\t}", "title": "" }, { "docid": "58988857216d23cf4035481c0a4c16ba", "score": "0.6476562", "text": "public function register_filters() {\n\t\tadd_filter( 'comment_form_fields', array( $this, 'comment_form_fields' ), 1, 10 );\n\t\tadd_filter( 'comment_form_fields', array( $this, 'reorder_comment_fields' ) );\n\t\tadd_action( 'widgets_init', array( $this, 'remove_recent_comments_style' ) );\n\t}", "title": "" }, { "docid": "2145393b00d499975b441431c1ac1c63", "score": "0.6474177", "text": "public function studiorum_settings_setup_start__addFilters()\n\t\t{\n\n\t\t\t// Add the settings section\n\t\t\tadd_filter( 'studiorum_settings_settings_sections', array( $this, 'studiorum_settings_settings_sections__addUserGroupSettingsSection' ) );\n\n\t\t\t// Add the fields to the new section\n\t\t\tadd_filter( 'studiorum_settings_settings_fields', array( $this, 'studiorum_settings_settings_fields__addUserGroupSettingsFields' ) );\n\n\t\t}", "title": "" }, { "docid": "a6a44607119b0958004869c01677c0da", "score": "0.64588183", "text": "public function addFilters(array $filters) {\n\t\tforeach($filters as $filter) {\n\t\t\t$this->addFilter($filter);\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "bf8d1f1068c035b5a68e028bf17e657c", "score": "0.64530736", "text": "public function applyFilter();", "title": "" }, { "docid": "bf8d1f1068c035b5a68e028bf17e657c", "score": "0.64530736", "text": "public function applyFilter();", "title": "" }, { "docid": "eaad5602fbe086ccf4c2c109a50074f1", "score": "0.6452376", "text": "private function addcommonFilters()\n {\n $this->getInputFilter()->add([\n 'name' => 'password',\n 'required' => true,\n 'filters' => [\n ['name' => StripTags::class],\n ['name' => StringTrim::class],\n ],\n 'validators' => [\n [\n 'name' => StringLength::class,\n 'options' => [\n 'encoding' => 'UTF-8',\n 'min' => 8,\n 'max' => 100,\n ],\n ],\n ],\n ]);\n }", "title": "" }, { "docid": "6507d25acc272d70e7c9b907d64740cf", "score": "0.6447228", "text": "public function addFilter(\\Magento\\Framework\\Api\\Filter $filter)\n {\n $this->filters[] = $filter;\n return $this;\n }", "title": "" }, { "docid": "d73acd7f542cef4979e9a572a9537f16", "score": "0.6435224", "text": "public function registerFilters(array $filters): IFilterManager;", "title": "" }, { "docid": "2c65ccc187d6461625695e2729d434be", "score": "0.64241153", "text": "abstract protected function loadFilters();", "title": "" }, { "docid": "5aaa9ac351ee7cf2d3c2d33f79c18bd1", "score": "0.6420666", "text": "public function filters() \n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "d07651ac2b5cb77a0958abc54d43369f", "score": "0.6418058", "text": "public function addExtraFilters($filters)\r\n {\r\n if (is_array($filters))\r\n {\r\n foreach ($filters as $filter)\r\n {\r\n if ($filter && is_object($filter))\r\n {\r\n $this->addExtraFilter($filter);\r\n }\r\n }\r\n }\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "337b8e9a012458a7bc45d7a4a34fd52d", "score": "0.6408861", "text": "protected function _buildFilters() {\n\n//\t\tif (!isset($this->_Swagger->collectionFormat)) {\n//\t\t\tthrow new \\Exception('missing property: collectionFormat');\n//\t\t}\n\n\t\tparent::_buildFilters();\n\n\t\t$collectionFormat = isset($this->_data->collectionFormat)\n\t\t\t\t? $this->_data->collectionFormat\n\t\t\t\t: 'csv';\n\n\t\t// first filter will cut $value to array if necessary\n\t\t$this->_filters[] = function($value) use ($collectionFormat) {\n\t\t\tif (is_null($value));\n\t\t\telseif (is_array($value)) {\n\t\t\t\tif ($collectionFormat == 'multi') {\n\t\t\t\t\tthrow new \\Exception('TBI: MULTI');\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif (is_string($value)) {\n\t\t\t\tswitch ($collectionFormat) {\n\t\t\t\tcase 'ssv':\n\t\t\t\t\t$value = explode(' ', $value);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'tsv':\n\t\t\t\t\t$value = explode('\\\\', $value);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'pipes':\n\t\t\t\t\t$value = explode('|', $value);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'csv':\n\t\t\t\tdefault:\n\t\t\t\t\t$value = explode(',', $value);\n//\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new \\Exception('could not apply collectionFormat: ' . $collectionFormat);\n\t\t\t}\n\t\t\treturn $value;\n\t\t};\n\n\t\t// I'll run each value through the pseudo-param entity's filter by setting the value and getting it back\n\t\t$ItemParameterSample = $this->ParameterFactory->buildParameter($this->_data->items);\n\t\t$this->_filters[] = function($value) use ($ItemParameterSample) {\n\t\t\tif (is_array($value)) {\n\t\t\t\tforeach ($value as &$eachValue) {\n\t\t\t\t\t$ItemParameterSample->setValue($eachValue);\n\t\t\t\t\t$eachValue = $ItemParameterSample->getValue();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $value;\n\t\t};\n\t}", "title": "" }, { "docid": "918f70d57f6f6d10c2ec1d194ce6ebde", "score": "0.6408272", "text": "public function applyFilters()\n {\n if ($this->filters) {\n $requested_filter = $_GET['filter'] ?? null;\n foreach ($this->filters as $k => $filter) {\n if (\n isset($_GET[$filter['field']]) &&\n !empty($_GET[$filter['field']]) &&\n $_GET[$filter['field']] != $this->filterEmpty &&\n $requested_filter != $filter['field']\n ) {\n $this->model->addCondition($filter['field'], $_GET[$filter['field']]);\n }\n }\n }\n }", "title": "" }, { "docid": "1aeea9f01d8de48b1e5b3f380df7ec99", "score": "0.64052516", "text": "public function setFilters(Collection $filters): Filterable;", "title": "" }, { "docid": "cf5f9e3f19e8e641a249f8ab34466670", "score": "0.63946044", "text": "public function addFilterRule() {\n\t\t$numArgs = func_num_args();\n\t\t$args = func_get_args();\n\t\tif($numArgs == 1) {\n\t\t\tif($args[0]==null) {\n\t\t\t\treturn;\n\t\t\t}\t\t\t\n\t\t\t$this->_filterRules[] = $args[0];\n\t\t}\n\t\telseif($numArgs == 2) {\n\t\t\t$this->_filterRules[$args[0]] = $args[1];\t\n\t\t}\n\t}", "title": "" }, { "docid": "1d577fc4148aa4e01e9ca2797563edd7", "score": "0.6393394", "text": "public final function setFilters($filters) {\n\t\t$this->filters = $filters;\n\t}", "title": "" }, { "docid": "6b9faf6cebc1883a8dccdc571f3b2835", "score": "0.6386999", "text": "public function setFilters($filters)\n {\n $this->filters = C::Arrays()->array_merge_recursive($this->filters, $filters);\n return $this;\n }", "title": "" }, { "docid": "db0270009293ff61111c918087b820fc", "score": "0.63805366", "text": "public function filters()\n {\n\n add_filter(\n 'mce_external_plugins',\n array(&$this,'appendBtns')\n );\n\n add_filter(\n 'mce_buttons',\n array(&$this, 'registerButtons')\n );\n }", "title": "" }, { "docid": "35ee7bd0bfd655ce1fb5a05b7956743b", "score": "0.63748", "text": "public function processFilterChain($filters);", "title": "" }, { "docid": "ed020974f51d665a44aefcb97e5856d5", "score": "0.6369844", "text": "function _setup_filters() {\r\n /* Making sure imagefilter function exists */\r\n $php5 = substr(phpversion(),0,1);\r\n if\r\n (\r\n ( $php5 == 5 || $php5 > 5 ) \r\n && function_exists('imagefilter')\r\n && defined('IMG_FILTER_NEGATE')\r\n ) {\r\n $this->filters = array(\r\n /* array is filter name and number of args it accepts */\r\n 1 => array(IMG_FILTER_NEGATE,0),\r\n 2 => array(IMG_FILTER_GRAYSCALE,0),\r\n 3 => array(IMG_FILTER_BRIGHTNESS,1), // level,+/-\r\n 4 => array(IMG_FILTER_CONTRAST,1), // level,+/-\r\n 5 => array(IMG_FILTER_COLORIZE,4), // r-g-b-a\r\n 6 => array(IMG_FILTER_EDGEDETECT,0),\r\n 7 => array(IMG_FILTER_EMBOSS,0),\r\n 8 => array(IMG_FILTER_GAUSSIAN_BLUR,0),\r\n 9 => array(IMG_FILTER_SELECTIVE_BLUR,0),\r\n 10 => array(IMG_FILTER_MEAN_REMOVAL,0),\r\n 11 => array(IMG_FILTER_SMOOTH,1)\r\n );\r\n \r\n $this->filters_alias = array(\r\n 'negative' => 1,\r\n 'grayscale' => 2,\r\n 'brightness' => 3,\r\n 'contrast' => 4,\r\n 'colorize' => 5,\r\n 'edgedetect' => 6,\r\n 'emboss' => 7,\r\n 'gaussian_blur' => 8,\r\n 'selective_blur' => 9,\r\n 'mean_removal' => 10,\r\n 'smooth' => 11\r\n );\r\n if ( phpversion() == '5.3.0' ) {\r\n $this->filters[12] = array('IMG_FILTER_PIXELATE',2);\r\n $this->filters_alias['pixelate'] = 12;\r\n }\r\n \r\n return $this->filters;\r\n }\r\n }", "title": "" }, { "docid": "430744e4a889eaeb8f0dac2aa2559467", "score": "0.6369392", "text": "function render_filters() { }", "title": "" }, { "docid": "bcd8db3a091988e51cbb98bd891eb6aa", "score": "0.63580513", "text": "public function registerDefaultFilters()\n {\n $this->registerFilter('trim', function($value, array $args) {\n if (count($args) > 0) {\n return trim($value, implode($args));\n }\n return trim($value);\n });\n\n $this->registerFilter('clean_trim', function($value, array $args) {\n return trim(preg_replace(\"/\\s+/\", \" \", $value));\n });\n\n $this->registerFilter('ltrim', function($value, array $args) {\n if (count($args) > 0) {\n return ltrim($value, implode($args));\n }\n return ltrim($value);\n });\n\n $this->registerFilter('rtrim', function($value, array $args) {\n if (count($args) > 0) {\n return rtrim($value, implode($args));\n }\n return rtrim($value);\n });\n\n $this->registerFilter('upper', function($value, array $args) {\n return strtoupper($value);\n });\n\n $this->registerFilter('lower', function($value, array $args) {\n return strtolower($value);\n });\n\n $this->registerFilter('capfirst', function($value, array $args) {\n return ucfirst($value);\n });\n\n $this->registerFilter('lowerfirst', function($value, array $args) {\n return lcfirst($value);\n });\n\n $this->registerFilter('null', function($value, array $args) {\n if (empty($value)) {\n return null;\n }\n return $value;\n });\n\n $this->registerFilter('slug', function($value, array $args) {\n if (count($args) > 0) {\n return Str::slug($value, implode($args));\n }\n return Str::slug($value);\n });\n\n $this->registerFilter('bool', function($value, array $args) {\n return $value ? true : false;\n });\n\n $this->registerFilter('to_json', function($value, array $args) {\n return json_encode($value, JSON_UNESCAPED_UNICODE);\n });\n\n $this->registerFilter('to_array', function($value, array $args) {\n return json_decode($value, true);\n });\n\n $this->registerFilter('to_object', function($value, array $args) {\n return json_decode($value);\n });\n }", "title": "" }, { "docid": "006aceb464805b812e903bf1845b5b43", "score": "0.6350334", "text": "private function setup_filters() {\n\n\t\tadd_filter( 'liveblog_entry_avatar_size', function(){\n\t\t\treturn 48;\n\t\t});\n\n\t}", "title": "" }, { "docid": "ae5101ef6543530e9aa0ecf7d9bb55a5", "score": "0.635004", "text": "public function addFilters(array $filters)\n {\n foreach ($filters as $filter) {\n $this->addFilter($filter);\n }\n return $this;\n }", "title": "" }, { "docid": "1fa4c12280483424188fc0b8f033daff", "score": "0.63375676", "text": "public function initFilter() {\n\t\tforeach ($this->tableview->getFilterableFieldSettings() as $field_set) {\n\t\t\t$field = $field_set->getFieldObject();\n\t\t\t$value = ilDclCache::getFieldRepresentation($field)->addFilterInputFieldToTable($this);\n\n\t\t\t//Disable filters\n\t\t\t$filter = &end($this->filters);\n\t\t\tif (!$field_set->isFilterChangeable())\n\t\t\t{\n\t\t\t\t//always set tableview-filtervalue with disabled fields, so resetFilter won't reset it\n\t\t\t\t$value = $field_set->getFilterValue();\n\t\t\t\t$filter->setValueByArray($value);\n\t\t\t\t$value = $filter->getValue();\n\n\t\t\t\t$filter->setDisabled(true);\n\t\t\t\tif ($filter instanceof ilCombinationInputGUI)\n\t\t\t\t{\n\t\t\t\t\t$filter->__call('setDisabled', array(true));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->applyFilter($field->getId(), $value);\n\t\t}\n\t}", "title": "" }, { "docid": "ad3a6e64ef487b903936156b75ef41cc", "score": "0.6310953", "text": "abstract protected function initFilter();", "title": "" }, { "docid": "2c532fd84f9e99bb14c977bc31717cce", "score": "0.631024", "text": "public function setFilters(array $filters);", "title": "" }, { "docid": "77ffae8904c1a72f257a6ed6f9b1af19", "score": "0.63017803", "text": "function set_filter ( $filter ) {\n\t\t$this->filters = array();\n\t\t$this->append_filter ( $filter );\n\t}", "title": "" }, { "docid": "399025341fdef16779aaf2d81f67ce61", "score": "0.6291355", "text": "public function addFilter($name)\n {\n if (!in_array($name, $this->filters)) {\n $this->filters[] = $name;\n }\n\n return $this;\n }", "title": "" }, { "docid": "2f7b24189927065eb01d90a63bdaf742", "score": "0.6285287", "text": "public function filters(array $filters);", "title": "" }, { "docid": "6968cfa20d0867b9055fe31736e65c65", "score": "0.62843984", "text": "public function addBeforeFilter($filter) {\n\t\t$this->beforeFilters[] = $filter;\n\t}", "title": "" }, { "docid": "c52d6172600e99839219f1f686af7e3f", "score": "0.6283149", "text": "public function add_filters() {\n\n\t\t// Hook in late to do our best to ensure other plugins don't overwrite this.\n\t\tadd_filter( 'pre_wp_nav_menu', array( $this, 'pre_wp_nav_menu__hide_menu' ), 99, 2 );\n\n\t}", "title": "" }, { "docid": "70f582e8f6ea439e65859697cf2b2eca", "score": "0.62826675", "text": "public function addFilter(LogFilter $filter): void;", "title": "" }, { "docid": "a571f07ae9d37d729b0c5e44e9e7887c", "score": "0.6276424", "text": "public function __construct(){\n\t\t$this->_bufferFilters = array();\n\t\t$this->_filters = array();\n\t\t$params = func_get_args();\n\t\tcall_user_func_array(array($this, 'addFilter'), $params);\n\t}", "title": "" }, { "docid": "fd6d3447abb7e0906f5ba03aaca2be29", "score": "0.62672675", "text": "public function test_that_filters_can_be_added()\n {\n $this->loader->filter('test_filter', function ($inital) {\n return 'replaced';\n });\n $this->register_hooks();\n $this->assertEquals('replaced', apply_filters('test_filter', 'initial'));\n }", "title": "" }, { "docid": "a9bc4eeeeb0be02b796986189b0e0caa", "score": "0.62592715", "text": "protected function defineFilters(): array\n {\n return [];\n }", "title": "" }, { "docid": "17a8296b078bdecbaa35ca2aac529943", "score": "0.6257956", "text": "public function addFilter($name, $type = null, array $options = []);", "title": "" }, { "docid": "4569f984d03d0d548a782c5268e5f0c5", "score": "0.6254273", "text": "public function setup_filters() {\n add_filter( 'body_class', [ $this, 'filter_body_class' ] );\n }", "title": "" }, { "docid": "9f40c5b9387ece5c96fdf50130a72d6b", "score": "0.62529016", "text": "public function addFilter(string $key, string $value) : self\n {\n $this->filters[$key] = $value;\n return $this;\n }", "title": "" }, { "docid": "e4cf32d87f95cf949a2e81aeca4a0995", "score": "0.6247798", "text": "public function add_default_filters()\n {\n }", "title": "" }, { "docid": "e4cf32d87f95cf949a2e81aeca4a0995", "score": "0.6247018", "text": "public function add_default_filters()\n {\n }", "title": "" }, { "docid": "6f08e708bae03b0fb855dee5980c3bb0", "score": "0.6242811", "text": "public function getFilters()\n {\n return [\n new Twig_SimpleFilter('demo_filter', function () {\n return 'demo_filter';\n })\n ];\n }", "title": "" }, { "docid": "49d0565f7443c0d9617891bab656880c", "score": "0.6233493", "text": "public function addFilter(callable $filter)\n {\n $this->filters[] = $filter;\n return $this;\n }", "title": "" }, { "docid": "f820d952962711ece3e5777ca0152a6c", "score": "0.6220759", "text": "protected function _addFilters(Input &$input, array $filters)\n {\n foreach($filters as $filter) {\n $input->getFilterChain()->add(StaticFilter::create($filter));\n }\n }", "title": "" }, { "docid": "371ce2b0492d845cafa4207afd9331a6", "score": "0.6218228", "text": "function filters($filters = NULL) {\n if ($filters != NULL) {\n $this->options['filters'] = $filters;\n }\n return $this->options['filters'];\n }", "title": "" }, { "docid": "9fcd413195f8639d28c942471a1a5a67", "score": "0.620519", "text": "public function setFilters($filters){\n\t\t$this->filters = $filters;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "e850f9147178276f3b279d8fbefa4aae", "score": "0.6202644", "text": "public function __construct() {\n foreach($this->aFilters as $oFilter) {\n }\n }", "title": "" } ]
4f7648c12791c8677e525b891c8c9eab
Edit an organisation's details
[ { "docid": "121aeb60dcd99b64229100e10dfd1f1d", "score": "0.79804516", "text": "public function editAction() {\n $form = new OrganisationForm();\n $form->submit->setLabel('Update organisation');\n $this->view->form = $form;\n if ($this->_request->isPost()) {\n $formData = $this->_request->getPost();\n if ($form->isValid($formData)) {\n $updateData = $form->getValues();\n $audit = $this->_organisations->fetchRow('id=' . $this->_getParam('id'));\n $oldarray = $audit->toArray();\n $where = array();\n $where = $this->_organisations->getAdapter()->quoteInto('id = ?', $this->_getParam('id'));\n $this->_organisations->update($updateData, $where);\n $this->_helper->audit(\n $updateData,\n $oldarray,\n 'OrganisationsAudit',\n $this->_getParam('id'),\n $this->_getParam('id')\n );\n $this->getFlash()->addMessage('Organisation information updated!');\n $this->_redirect(self::REDIRECT.'organisation/id/' . $this->_getParam('id'));\n } else {\n $form->populate($this->_request->getPost());\n }\n } else {\n $id = (int)$this->_request->getParam('id', 0);\n if ($id > 0) {\n $organisation = $this->_organisations->fetchRow('id='.$id);\n $form->populate($organisation->toArray());\n }\n }\n }", "title": "" } ]
[ { "docid": "c989971097e8fc101a55ef8d6315e460", "score": "0.82706994", "text": "public function edit(Organisation $organisation)\n {\n //\n }", "title": "" }, { "docid": "d4df908a9d336e223823d90ecf0e2aaa", "score": "0.7204878", "text": "public function edit(Corporate $corporate)\n {\n //\n }", "title": "" }, { "docid": "026b1175ca8bea99d11ffd957c0d72da", "score": "0.7049981", "text": "public function edit(Org $org)\n {\n //\n $this->authorize('update',$org);\n $plans=Plan::all();\n return view('pages.org.create')->with(['org'=>$org,'plans'=>$plans]);\n }", "title": "" }, { "docid": "0d2dc40f368f129453350eeadbaa7a29", "score": "0.7029419", "text": "public function edit() {\n $organization = Auth::user()->organization;\n if(!empty($organization)) {\n if ($organization->contacts()->count() != 0) {\n $conts = $organization->contacts;\n } else {\n $contact = [\n \"organization_id\" => $organization->id,\n \"primary\" => 1,\n \"contact_name\" => $organization->contact_name,\n \"contact_name_en\" => $organization->contact_name_en,\n \"contact_email\" => $organization->contact_email,\n \"contact_phone\" => $organization->contact_phone,\n \"contact_fax\" => $organization->contact_fax,\n \"contact_url\" => $organization->contact_url,\n \"contact_available_lang\" => $organization->contact_available_lang,];\n $contacs = new Contacts($contact);\n $contacs->save();\n $conts = $organization->contacts;\n }\n }\n else{\n\n return redirect()->route('organization.create');\n }\n $regions = TendersRegions::orderBy('region_name')->active()->lists('region_ua', 'id');\n $languages = Languages::active()->lists('language_name', 'language_code');\n $countries = Country::active()->lists('country_name_ua', 'country_iso');\n\n $schemes = Identifier::all()->lists('country_iso', 'scheme');\n $schemes = groupByValue($schemes);\n\n return view('pages.organization.edit', compact('organization', 'regions', 'conts', 'languages', 'countries', 'schemes'));\n }", "title": "" }, { "docid": "a643a9d707708f188d2b193d7694df02", "score": "0.69080055", "text": "public function edit()\n {\n return view('orgmanagement::edit');\n }", "title": "" }, { "docid": "144163e002bfdc71f4b52c41268c54db", "score": "0.6840395", "text": "public function update(Request $request, Organisation $organisation)\n {\n //\n }", "title": "" }, { "docid": "e69715666c946426e3ba2ad1f210531c", "score": "0.6682169", "text": "public function edit($id)\n {\n $infos = OrganizationModel::find((int)$id);\n foreach (array_keys($this->fields) as $field) {\n $data[$field] = old($field, $infos->$field);\n }\n $data['id'] = (int)$id;\n\n $model = new \\App\\Models\\OrganizationModel();\n $data['organization'] = get_select_menu_k_v(\"首级单位\",$model,\"name\");\n return view($this->skin . '.organization.edit', $data);\n }", "title": "" }, { "docid": "8e6cec091ce56608bfb45a79f1e71f26", "score": "0.66815597", "text": "public function edit(){\n // $com = Companies::find($request->id);\n $company = Companies::where('owner_id', Auth::id())->first();\n return view('dashboard.companies.update', compact('company'));\n }", "title": "" }, { "docid": "1fbe53ad244d0bd772dc96bbc440a9e4", "score": "0.6645464", "text": "public function edit(Organisation $organisation)\n {\n return view('laravel-crm::organisations.edit', [\n 'organisation' => $organisation,\n 'emails' => $organisation->emails,\n 'phones' => $organisation->phones,\n 'addresses' => $organisation->addresses,\n ]);\n }", "title": "" }, { "docid": "fe20db32738adae8dd7edd47023086ad", "score": "0.6569506", "text": "public function edit(Collaboration $collaboration)\n {\n //\n }", "title": "" }, { "docid": "5a7be689631232e1c8203ffe20a4860f", "score": "0.6501487", "text": "public function organisationAction() {\n if($this->_getParam('id',false)){\n $this->view->orgs = $this->_organisations\n ->getOrgDetails($this->_getParam('id'));\n $this->view->members = $this->_organisations\n ->getMembers($this->_getParam('id'));\n } else {\n throw new Pas_Exception_Param($this->_missingParameter, 500);\n }\n }", "title": "" }, { "docid": "7a6580337da8bc0cc549a4cf18ac2faf", "score": "0.6464956", "text": "function edit() {\n\t\tif(!empty($this->data)) {\n\t\t //prevent from html-injection\n\t\t $this->data['Person']['description'] = strip_tags($this->data['Person']['description'], '<a><b>');\n\t\t \n\t\t $this->Person->read(null, $this->Session->read('person'));\n\t\t\tif ($this->Person->save($this->data, array('fieldList' => array('description', 'parent_id', 'born_intro', 'born_year', 'died_year', 'status')))) {\n\t\t\t $this->redirect(array('controller' => 'people', 'action' => 'view', 'id' => $this->Session->read('person')));\n\t\t\t}\n\t\t} else {\n\t\t $this->data = $this->Person->read(null, $this->Session->read('person'));\n\t\t //do not set ID in url\n\t\t unset($this->data['Person']['id']);\n }\n\t\t$this->set('people', $this->Person->findForParentList($this->Session->read('person')));\n\t}", "title": "" }, { "docid": "a8da677732624f6c6bfaad5bda0b2a42", "score": "0.6446356", "text": "public function edit(Approval $approval)\n {\n //\n }", "title": "" }, { "docid": "11679d899f53366fe62874cdacebd717", "score": "0.6442018", "text": "public function editPersonalInfoAction()\n {\n \t \n \t$em = Zend_Registry::get('em');\n \t// get country name as compare to country id\n \t$userid=Auth_UserAdapter::getIdentity()->getId();\n \t$userinfo=\\Extended\\ilook_user::getPersonalInformation($userid);\n \t$userinfo=$userinfo[0];\n \techo Zend_Json::encode($userinfo);\n \tdie;\n }", "title": "" }, { "docid": "f43aa7277a6fb8483055b948682bcc43", "score": "0.6426023", "text": "public function edit(Curso $curso)\n {\n //\n }", "title": "" }, { "docid": "f43aa7277a6fb8483055b948682bcc43", "score": "0.6426023", "text": "public function edit(Curso $curso)\n {\n //\n }", "title": "" }, { "docid": "d65c63e4f9b7b1226421fa1aedb7df58", "score": "0.6418832", "text": "public function edit($id)\n {\n $organisation = Organisation::findOrFail($id);\n $besoins = Besoin::all();\n \n $organisationbesoin = $organisation->besoins->pluck('id');\n\n return view('admin.organisation.editOrganisation', compact('organisation', 'besoins', 'organisationbesoin'));\n }", "title": "" }, { "docid": "eb0cf828167e5ccf54dfef2c65560a0a", "score": "0.64124775", "text": "public function update($tblOrganization);", "title": "" }, { "docid": "8b48b6ded98224bc3014b0f8d78b7240", "score": "0.64062035", "text": "public function edit(Office $office)\n {\n //\n }", "title": "" }, { "docid": "8b48b6ded98224bc3014b0f8d78b7240", "score": "0.64062035", "text": "public function edit(Office $office)\n {\n //\n }", "title": "" }, { "docid": "02c6caa6f24242462d6aa3ae229f8a14", "score": "0.6391549", "text": "public function edit($id = null){\n\t\t// fetch id\n\t\t$this->Address->id = $id;\n\t\t// Preventative Mesarue for invalid entries\n\t\tif (!$this->Address->exists()) {\n\t\t\tthrow new NotFoundException(__('Invalid Entires. Press BACK to return'));\n\t\t}\n\t\t// check if ready to update\n\t\tif ($this->request->is('post') || $this->request->is('put')) {\n\t\t\tif ($this->Address->save($this->request->data)) {\n\t\t\t\t$this->Session->setFlash(__('The address has been updated'),'default',array(),'good');\n\t\t\t\t$this->redirect(array('action' => 'index',$this->request->data['Address']['organisation_id']));\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(__('The address could not be saved. Please, try again.'));\n\t\t\t}\n\t\t} else {\n\t\t\t// if not, obtain content\n\t\t\t$this->request->data = $this->Address->read(null, $id);\n\t\t\t// provide organisation name\n\t\t\t$this->setOrganisation($this->request->data['Address']['organisation_id']);\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "5b1977664771ba5066e7b3d69899f94a", "score": "0.63781804", "text": "public function edit(Request $request)\n {\n $id=$request['id'];\n $companies=User::company_index();\n $portal=Portal::portal_show($id);\n return view('admin.portal.update',compact('portal','companies'));\n }", "title": "" }, { "docid": "d95d2ed538883a75938a7f3f37210970", "score": "0.6374656", "text": "public function edit($id)\n {\n //\n $org = org::findOrFail($id);\n\n return json_encode(['status' => 1, 'data' => $org]);\n }", "title": "" }, { "docid": "cf200de6815b89ad0f527f09c7d3b71c", "score": "0.6368772", "text": "public function edit(PersonalCenter $personalCenter)\n {\n //\n }", "title": "" }, { "docid": "285cef47afedf78187337a9992ced1f1", "score": "0.6358999", "text": "public function edit($id)\n {\n $banks = Bank::getActiveBanks();\n $editData = Organization::editData($id);\n\n return view('setup.generalSetup.organization.modals.editOrganization', compact('editData','banks'));\n }", "title": "" }, { "docid": "9745c9521f9fb939d3948d25844d457e", "score": "0.63500583", "text": "public function edit($id)\n {\n $org = Org::findOrFail($id);\n\n // authorization\n if (Gate::denies('update-org', $org)) abort(403);\n\n $orgs = Org::lists('name')->all();\n $categories = getCategories();\n $selections = $this->getSelections($org);\n\n return view('orgs.edit', compact('org', 'orgs', 'categories', 'selections'));\n }", "title": "" }, { "docid": "8768d93c01040fa090e37374564d58f9", "score": "0.63463664", "text": "public function edit($id)\n {\n $organization = Organization::where('id', $id)->first();\n\n return view('organizations.edit')->with('organization', $organization);\n }", "title": "" }, { "docid": "59c6b6943d9591003129889e2356f74e", "score": "0.63420755", "text": "public function edit($id)\n {\n $organizations = Organization::select('id', 'name')->get();\n $organizations = $organizations->pluck('name', 'id');\n $cities = City::select('id', 'name')->get();\n $cities = $cities->pluck('name', 'id');\n $office = Office::findOrFail($id);\n $office_organization = $office->organization_id;\n $office_city = $office->city_id;\n $html = view('admin.office.edit', compact('office','organizations','cities','office_organization','office_city'))->render();\n return response()->json(['html' => $html]);\n }", "title": "" }, { "docid": "59decb16dd3064dca9a245f794bf6269", "score": "0.63381565", "text": "function saveOrg($orgname, $phone, $address){\n\t\t//echo $orgname;\n\t\t//echo $phone;\n\t\t//echo $address;\n\t\t\n\t\tglobal $tborganization, $weburl;\n\t\t$conn = getConnection();\n\t\t\n\t\t$query = \"update $tborganization set name = '$orgname', phone = '$phone', address = '$address' where oid = 1\";\n\t\t//echo $query;\t \n\t\t$result = mysqli_query($conn, $query);\n\t\t\n\t\tif ($result){\n\t\t\theader( \"Location: \".$weburl.\"admin_welcomepage.php\" );\n\t\t}\n\t\telse {\n\t\t\theader( \"Location: \".$weburl.\"admin_record.php\" );\n\t\t}\n\t\tcloseConnection($conn);\n\t}", "title": "" }, { "docid": "416ff468d0df5e36ba2afa24c09017ea", "score": "0.63363504", "text": "public function edit(PersonalEntrega $personalEntrega)\n {\n //\n }", "title": "" }, { "docid": "a4a4c714e15e7078496976878bdcb218", "score": "0.632137", "text": "public function saveAction()\n {\n\n if (!$this->request->isPost()) {\n return $this->dispatcher->forward(array(\n \"controller\" => \"organisation\",\n \"action\" => \"index\"\n ));\n }\n\n $id = $this->request->getPost(\"id\");\n\n $organisation = Organisation::findFirstByid($id);\n if (!$organisation) {\n $this->flash->error(\"organisation does not exist \" . $id);\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"organisation\",\n \"action\" => \"index\"\n ));\n }\n\n $organisation->id = $this->request->getPost(\"id\");\n $organisation->name = $this->request->getPost(\"name\");\n $organisation->theme = $this->request->getPost(\"theme\");\n $organisation->image_path = $this->request->getPost(\"image_path\");\n \n\n if (!$organisation->save()) {\n\n foreach ($organisation->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"organisation\",\n \"action\" => \"edit\",\n \"params\" => array($organisation->id)\n ));\n }\n\n $this->flash->success(\"organisation was updated successfully\");\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"organisation\",\n \"action\" => \"index\"\n ));\n\n }", "title": "" }, { "docid": "4d25fc2c77c43d42cc2d1ea05634aa0b", "score": "0.6307209", "text": "public function update(Request $request, Organization $organization)\n {\n //\n }", "title": "" }, { "docid": "dd04c4ece24e40e592dc0cf129e6205b", "score": "0.63056993", "text": "public function edit(Company $company)\n {\n //\n }", "title": "" }, { "docid": "dd04c4ece24e40e592dc0cf129e6205b", "score": "0.63056993", "text": "public function edit(Company $company)\n {\n //\n }", "title": "" }, { "docid": "dd04c4ece24e40e592dc0cf129e6205b", "score": "0.63056993", "text": "public function edit(Company $company)\n {\n //\n }", "title": "" }, { "docid": "a9c97f8f0df53a41c8b0ed40ff87c517", "score": "0.6303641", "text": "public function edit($id)\n {\n $personal=DirectorioExternoModel::findOrFail($id);\n\n return view('nomina.directorio_externo.edit', ['personal'=>$personal]);\n //\n }", "title": "" }, { "docid": "809cd6f577f67a2cdae58462a80beac1", "score": "0.6301987", "text": "public function action_index()\n\t{\n\t\t$params = $this->request->query();\n\t\t$posted = $this->request->post();\n\t\t$id = $params['org_id'];\n\t\t\n\t\t$orgs = $this-> _get_organizations($id);\n\t\t$org = $orgs['results'][0]['organization'];\n\t\t//var_dump($org['org_id']);die();\n\t\t\n\t\t// Create Blank Form\n\t\t$form = Formo::form()\n\t\t\t->add('org_id',\n\t\t\t\tarray('value' => $org['org_id'],\n\t\t\t\t 'editable' => FALSE,)\n\t\t\t\t)\n\t\t\t->add('org_name',\n\t\t\t\tarray('value' => $org['org_name'],)\n\t\t\t\t)\n\t\t\t->add('org_addr',\n\t\t\t\tarray('value' => $org['org_addr'],)\n\t\t\t\t)\n\t\t\t->add('org_city',\n\t\t\t\tarray('value' => $org['org_city'],)\n\t\t\t\t)\n\t\t\t->add('org_state',\n\t\t\t\tarray('value' => $org['org_state'],)\n\t\t\t\t)\n\t\t\t->add('org_zip',\n\t\t\t\tarray('value' => $org['org_zip'],)\n\t\t\t\t)\n\t\t\t->add('submit','submit',array('value'=>'Save'));\n\n\t\t// Logic to execute on a successful post\n\t\tif ($form->load($_POST)->validate())\n\t\t{\n\t\t\t// Remove submit field if present in the post variables\n\t\t\t$fields = array ('fields' => $posted);\n\t\t\tunset($fields['fields']['submit']);\n\n\t\t\t// Execute put request to create record\n\t\t\t$request = Request::factory('http://'.Servers::$api_server.'/organizations/'.trim($id))\n\t\t\t\t->method(Request::PUT)\n\t\t\t\t->body(json_encode($fields['fields']))\n\t\t\t\t->headers('Content-Type', 'application/json');\n\t\t\n\t\t\t$response = $request->execute();\n\t\t\t//var_dump($response);die();\n\t\t\t$org = json_decode($response);\n\t\t\t//var_dump($org);die('gg');\n\t\t\t// Redirect to edit page\n\t\t\t$this->request->redirect('/admin/organizations'); \n\t\t}\n\n\t\t// Create view for the add page\n\t\t$view = View::factory('pages/admin/organization/edit');\n\n\t\t// Assign variables to be accessed in the view\n\t\t$view->form = $form;\n\n\t\t// Set over page title in template\n\t\t$this->template->title = __('smartlocalsocial.com: Edit an organization');\n\t\t\n\t\t// Display view in template\n\t\t$this->template->content = $view;\n\t}", "title": "" }, { "docid": "69142a154df5317bc2f3d7318176c94a", "score": "0.6289185", "text": "public function edit($id)\n {\n //\n $organizers = Organizers::where('organizer_id', $id)->first();\n // return view('/');\n }", "title": "" }, { "docid": "4791f8755eb723ef1e3c5a6ad2a28c6c", "score": "0.6288417", "text": "public function edit(ClientsConsortium $clientsConsortium)\n {\n //\n }", "title": "" }, { "docid": "41c0b40badb6a0b77ff79e9f01b384e4", "score": "0.6248609", "text": "public function edit(ApplicationsForCourse $applicationsForCourse)\n {\n //\n }", "title": "" }, { "docid": "68dd65220fa5c210184b2c96e1d2a720", "score": "0.6232323", "text": "public function viewOrganizationInformation()\n {\n $organization = $this->organizationManager->getOrganization(session('org_id'));\n $organizationTypes = $this->baseForm->getCodeList('OrganizationType', 'Organization');\n $countries = $this->baseForm->getCodeList('Country', 'Organization');\n $registrationAgency = $this->baseForm->getCodeList('OrganisationRegistrationAgency', 'Organization');\n $url = route('organization-information.update');\n $settings = $this->settingsManager->getSettings(session('org_id'));\n $users = $this->userManager->getAllUsersOfOrganization();\n\n $formOptions = [\n 'method' => 'PUT',\n 'url' => $url,\n 'model' => ['narrative' => $organization->reporting_org[0]['narrative']]\n ];\n $form = $this->organizationManager->viewOrganizationInformation($formOptions);\n\n return view('settings.organizationInformation', compact('form', 'organizationTypes', 'countries', 'organization', 'registrationAgency', 'settings', 'users'));\n }", "title": "" }, { "docid": "45c64895b6bf6ef49faf9586e3b87672", "score": "0.6224563", "text": "function EmployerEdit($err=\"\")\n\t\t{\n\t\t\t\n\t\t\tif(isset($_REQUEST['id']))\n\t\t\t{\n\t\t\t\t$emp_id = $_REQUEST['id'];\n\t\t\t\t$oEmployer = $this->oModel->getEmployerDetails($emp_id);\n\t\t\t\t$oEmployer = $oEmployer[0];\n\t\t\t\t$oEmployer->hear_mode = explode(\",\",$oEmployer->hear_mode);\n\t\t\t\t$oEmployer->category = explode(\",\",$oEmployer->category);\n\t\t\t}\n\t\t\t$oCategory = $this->oModel->getCategories();\n\t\t\t$oProvince = $this->oModel->getProvince();\n\t\t\t$this->oView->oCategory = $oCategory;\n\t\t\t$this->oView->oProvince = $oProvince;\n\t\t\t$this->oView->oEmployer = $oEmployer;\n\t\t\t$this->oView->search_field \t= $_REQUEST['search_field'];\n\t\t\t$this->oView->search_text \t= $_REQUEST['search_text'];\n\t\t\t\n\t\t\t$this->oView->sErrorMsg=$err;\n\t\t\t$this->oView->EmployerEdit();\n\t\t}", "title": "" }, { "docid": "38003d3f09f2134ef0314b4623961e35", "score": "0.62162095", "text": "public function edit() {\n\t\t$addressData = $this->lending->getAddress();\n\t\t$this->session->set_userdata('address', $addressData);\n\t\t$this->load->view('edit');\n\t}", "title": "" }, { "docid": "3bd9245b1e7e2624bc007e7f012e9f7b", "score": "0.6216081", "text": "public function edit($id_compra){}", "title": "" }, { "docid": "38d45369bb08a2c16f1303bfb0ec801a", "score": "0.6209181", "text": "public function edit(Agregado $agregado)\n {\n //\n }", "title": "" }, { "docid": "d9801ba3acc46ae32fc31af1363c6799", "score": "0.62088853", "text": "public function organisations() {\n\t\t$this->out(__('Getting organisation'), 1, Shell::VERBOSE);\n\t\ttry {\n\t\t\t$conditions = $this->_conditions(array(\n\t\t\t\t'modified_after' => $this->params['since']\n\t\t\t));\n\n\t\t\t$this->out(__('Organisation conditions: %s', json_encode($conditions)), 1, Shell::VERBOSE);\n\n\t\t\t$this->XeroOrganisation->update($this->_getOrganisation(), $conditions);\n\n\t\t\t$this->out(__('Organisation updated'), 1, Shell::VERBOSE);\n\t\t} catch (Exception $e) {\n\t\t\t$this->_updateError($e->getMessage(), $e->getTraceAsString());\n\t\t}\n\t}", "title": "" }, { "docid": "622859f86b8b7d1ed0482e5651a83988", "score": "0.6206505", "text": "public function edit($team_id)\n {\n //\n }", "title": "" }, { "docid": "45337c1d5d4a2ec2042ff49af34af18f", "score": "0.61969715", "text": "public function edit(AuthorizationCompanion $authorizationCompanion)\n {\n //\n }", "title": "" }, { "docid": "aee00da418ac4954688fcb1a48740dc8", "score": "0.61931056", "text": "public function update(StoreOrg $request, Org $org)\n {\n //\n $this->authorize('update',$org);\n $user=User::find($org->id);\n $user=$this->entry($user);\n return redirect()->route('orgs.show', ['org' => $user->id])->with('status', 'Successfully Updated');\n }", "title": "" }, { "docid": "8ee615f5a17c230cf3a8e94ed3ac0542", "score": "0.6191531", "text": "public function edit($id)\n\t{\n\t\t$organization_id = Session::get('organization_id');\n\n\t\t$staff_type = HrmStaffType::pluck('display_name','id');\n\t\t$staff_type->prepend('Select Staff','');\n\n\t\t$department = HrmDepartment::where('organization_id', $organization_id)->pluck('name', 'id');\n\t\t$department->prepend('Select Department', '');\n\n\t\t$designation = HrmDesignation::where('organization_id',$organization_id)->pluck('name','id');\n\t\t$designation->prepend('Select Designation', '');\n\n\t\t$branch = HrmBranch::where('organization_id', $organization_id)->pluck('branch_name', 'id');\n\t\t$branch->prepend('Select Branch', '');\n\n\t\t$country = Country::where('name', 'India')->first();\n\n\t\t$state = State::where('country_id', $country->id)->pluck('name', 'id');\n\t\t$state->prepend('Select State', '');\n\n\t\t$title = PeopleTitle::pluck('display_name','id');\n\t\t$title->prepend('Title','');\n\n\t\t$payment = PaymentMethod::where('organization_id', $organization_id)->pluck('display_name','id');\n\t\t$payment->prepend('Select Payment Method','');\n\n\t\t$blood_groups = BloodGroup::pluck('display_name','id');\n\t\t$blood_groups->prepend('Select Blood Groups','');\n\n\t\t$marital_status = MaritalStatus::pluck('display_name','id');\n\t\t$marital_status->prepend('Select Marital Status','');\n\n\t\t$license_type = LicenseType::pluck('display_name','id');\n\t\t$license_type->prepend('Select License Type','');\n\n\t\t$job_type = HrmEmploymentType::where('organization_id', $organization_id)->pluck('name', 'id');\n\t\t$job_type->prepend('Select Job Type', '');\n\n\t\t$genders = Gender::select('genders.id','genders.display_name as name')->get(); \n\t\t$gender_array = array();\n\n\t\t$terms = Term::where('organization_id', Session::get('organization_id'))->pluck('display_name','id');\n\t\t$terms->prepend('Select Terms','');\t\t\n\n\n\t\t$people = People::select('person_id AS id', DB::raw('IF(mobile_no, CONCAT(display_name, \" - \" , mobile_no), display_name) AS name'), 'person_id')->where('user_type', 0)->where('organization_id', Session::get('organization_id'))->pluck('name', 'id');\n\t\t$people->prepend('Select Person', '');\n\n\n\t\t$official = HrmEmployee::select('hrm_employees.id','hrm_employees.person_id','hrm_employees.first_name','hrm_employees.last_name','hrm_employees.employee_code','hrm_employees.phone_no','hrm_employees.email','hrm_employees.gender_id','hrm_employees.marital_status','hrm_employees.blood_group_id','hrm_employees.staff_type_id','hrm_staff_types.display_name as staff_type','genders.display_name as gender_name','blood_groups.display_name as blood_group','marital_statuses.display_name as marital_status_name','hrm_employees.title_id','people_titles.display_name AS title') \n\t ->leftjoin('hrm_staff_types','hrm_employees.staff_type_id','=','hrm_staff_types.id')\n\t ->leftjoin('genders','hrm_employees.gender_id','=','genders.id')\n\t \t->leftjoin('blood_groups','hrm_employees.blood_group_id','=','blood_groups.id')\n\t \t->leftjoin('marital_statuses','hrm_employees.marital_status','=','marital_statuses.id')\n\t \t->leftjoin('people_titles','hrm_employees.title_id','=','people_titles.id')\n\t ->where('hrm_employees.id',$id)->first();\n\n\t $work_periods = HrmEmployeeWorkingPeriod::select('hrm_employee_working_periods.joined_date','hrm_employee_working_periods.branch_id','hrm_employee_working_periods.employment_type_id','hrm_employment_types.id as job_type_id','hrm_employment_types.name as job_type','hrm_branches.branch_name')\n\t ->leftjoin('hrm_employment_types','hrm_employee_working_periods.employment_type_id','=','hrm_employment_types.id')\n\t ->leftjoin('hrm_branches','hrm_employee_working_periods.branch_id','=','hrm_branches.id')\n\t ->where('hrm_employee_working_periods.employee_id',$id)->first();\n\n\n\t $job = DB::table('hrm_employee_designation')\n\t\t->select('hrm_employee_designation.employee_id','hrm_employee_designation.designation_id','hrm_designations.name as designation_name','hrm_designations.department_id','hrm_departments.name as department_name')\n\t ->leftjoin('hrm_designations','hrm_employee_designation.designation_id','=','hrm_designations.id')\n\t ->leftjoin('hrm_departments','hrm_designations.department_id','=','hrm_departments.id')\n\t ->where('hrm_employee_designation.employee_id',$id)->first();\n\n\n\t $emp_address = HrmEmployeeAddress::select('hrm_employee_addresses.id as address_id','hrm_employee_addresses.person','hrm_employee_addresses.address','hrm_employee_addresses.city_id','hrm_employee_addresses.pin','hrm_employee_addresses.landmark','hrm_employee_addresses.google','cities.name as city_name','cities.state_id','states.name as state_name') \n\t ->leftjoin('cities','hrm_employee_addresses.city_id','=','cities.id')\n\t ->leftjoin('states','cities.state_id','=','states.id')\n\t ->where('hrm_employee_addresses.employee_id',$id)->first();\n\n\t $city = [];\n\n\t if(!empty($emp_address->city_id)) {\n\t \t\t$selected_city = City::where('id', $emp_address->city_id)->first();\n\t\t \t$selected_state = State::select('id')->where('id', $selected_city->state_id)->first()->id;\n\n\t\t\t$city = City::select('id', 'name')->where('state_id', $selected_state)->pluck('name', 'id');\n\t\t\t$city->prepend('Select City', '');\n\t }\n\n\t\t\n\t\treturn view('employees_edit', compact('id','people', 'state', 'title', 'payment', 'terms','blood_groups','department','designation','branch','genders','marital_status','license_type','job_type','bank','employee_salary_scale','staff_type','official','work_periods','job','emp_address','city'));\n\t}", "title": "" }, { "docid": "0ad18e366badb975f6e58ec570e1bf87", "score": "0.6191503", "text": "public function edit($id)\n {\n try {\n $organization = Organization::find($id);\n } catch (Exception $e) {\n return $e->getMessage();\n }\n return inertia('Organizations/Edit', ['organization' => $organization]);\n }", "title": "" }, { "docid": "654156eaff685eb4717cd98fd05e1b70", "score": "0.6177412", "text": "public function edit(Grupo $grupo)\n {\n //\n }", "title": "" }, { "docid": "85e1625f9a12ef3a5daaa911b0a20980", "score": "0.6152659", "text": "public function update($orgn,$option){\n $contact_id = $orgn['contact_id'];\n\n $query = \\Drupal::service('entity.query')->get('node');\n $node_ids = $query->condition('type','organization')\n ->condition('field_contact_id',$contact_id)\n ->execute();\n\n if(empty($node_ids)){\n $query = \\Drupal::service('entity.query')->get('node');\n $organization_name = $orgn['organization_name'];\n $node_ids = $query->condition('type','organization')\n ->condition('title',$organization_name)\n ->execute();\n }\n\n if(empty($node_ids) && $option=='S') {\n $this->messages[] = $orgn['organization_name'] . ' could not be found';\n } elseif(empty($node_ids) && $option=='C') {\n $this->messages[] = $orgn['organization_name'] . ' not found and created';\n $node = Node::create(\n ['type'=>'organization',\n 'field_contact_id'=>$contact_id\n ]);\n $this->setNode($node,$orgn);\n $node->save();\n } else {\n $node_id = reset($node_ids);\n $node = Node::load($node_id);\n $this->setNode($node, $orgn);\n $node->save();\n }\n }", "title": "" }, { "docid": "85b9c6abf04261bdf127fdc082f2a154", "score": "0.61517805", "text": "public function updateOrgInfo(Request $request)\n { \n $validator = Validator::make($request->all(), [\n 'rowOrganization' => 'required',\n 'rowPosition'=>'required',\n 'rowStartYear'=>'required',\n 'rowEndYear'=>'required',\n ]);\n\n if($validator->fails())\n {\n return response()->json( array('errors' => $validator->errors()->toArray(),'org_information_id'=>$request->org_information_id),422);\n }\n\n $course = TrOrg::find($request->org_information_id);\n $course->organization = $request->rowOrganization;\n $course->position = $request->rowPosition;\n $course->start_year = $request->rowStartYear;\n $course->end_year = $request->rowEndYear;\n $course->update_time = date('Y-m-d H:i:s');\n $course->update_by = Session::get('userinfo')['name_holder'] ;\n $course->save();\n\n return response()->json(['status'=>'success'],200);\n }", "title": "" }, { "docid": "5a73b8e4f4ab7ec53525482f908cd89f", "score": "0.6147988", "text": "abstract public function edit();", "title": "" }, { "docid": "ac53c5763e3a0b0ec0125039ef9bb509", "score": "0.6146743", "text": "public function edit()\n {\n $this->form();\n }", "title": "" }, { "docid": "ec1f8dd1ff8ab6478f5a77c31721e058", "score": "0.614569", "text": "public function edit(Convenio $convenio)\n {\n //\n }", "title": "" }, { "docid": "f2f4707c0368304af15fb6e66b011454", "score": "0.6143926", "text": "public function edit(Appoinment $appoinment)\n {\n //\n }", "title": "" }, { "docid": "4a7ee4dc2b089170a8369a1f4251f331", "score": "0.6137821", "text": "public function update(Request $request, $id)\n {\n $organization = PoliticianOrganization::find($id);\n $organization->organizations_id = $request->organizations_id;\n $organization->alternate_name = $request->alternate_name;\n $organization->name = $request->name;\n $organization->type = $request->type;\n $organization->website = $request->website;\n $organization->description = $request->description;\n $organization->logo = $request->logo;\n $organization->checkbook = $request->checkbook;\n $organization->internalnotes = $request->internalnotes;\n $organization->contacts_link = $request->contacts_link;\n $organization->dedupe = $request->dedupe;\n $organization->flag = 'modified';\n $organization->save();\n // var_dump($project);\n // exit();\n return response()->json($organization);\n }", "title": "" }, { "docid": "ae46321c6ed5d11789421e60225f8f89", "score": "0.61343396", "text": "public function edit(GroupDetails $groupDetails)\n {\n //\n }", "title": "" }, { "docid": "8f5d2d9f4d15aa8239a0555498b501fa", "score": "0.6130227", "text": "public function edit(staff $staff)\n {\n //\n }", "title": "" }, { "docid": "fe7a60bbb95d8cfde962c21ad9d3f5e2", "score": "0.61215943", "text": "function edit($id_distributor)\n {\n\n $data = array(\n\n 'title' => 'Halaman Data Distributor Barang',\n\n // variable data kategori\n 'distributor' => $this->M_distributor->getDataDistributorById_Distributor($id_distributor)\n );\n\n $this->load->view('template/header', $data);\n $this->load->view('distributor/distributor_edit');\n $this->load->view('template/footer');\n }", "title": "" }, { "docid": "ead627d0caf9566c3f89ef3a5a3255c0", "score": "0.6120425", "text": "public function companyEditPage($params)\n {\n\n $token = $this->require_authentication(User::TYPE_EDITOR);\n\n // Validate url params\n $id = $params['companyID'];\n if ($id == null) {\n $this->error404($params[0]);\n }\n\n $db = $this->getDBConn();\n\n // Fetch company\n $company = Unit::fetch($db, $id);\n if ($company == null) {\n $this->error404($params[0]);\n }\n\n // Fetch platoons, if any:\n if(!empty($company->getSubunits())) {\n $platoons = [];\n foreach ($company->getSubunits() as $platoonID) {\n $platoon = Unit::fetch($db, $platoonID);\n if($platoon) array_push($platoons, $platoon);\n }\n } else {\n $platoons = null;\n }\n\n // Display page, passing in company object.\n require \"app/views/company/company_edit.phtml\";\n }", "title": "" }, { "docid": "0684f08d821b742a560677139c4c3b98", "score": "0.61151683", "text": "public function edit(Application $application)\n {\n //\n }", "title": "" }, { "docid": "60d2f5acde15b1eb78b8072add007958", "score": "0.6101576", "text": "public function edit($id)//edit existing students info\n {\n }", "title": "" }, { "docid": "977f89ccbdbbdc17f177b7f10503d5ad", "score": "0.61008096", "text": "public function edit(department $department)\n {\n //\n }", "title": "" }, { "docid": "a70b4cecc3c8a3404c1bf2283bc738a8", "score": "0.60887516", "text": "public function edit(Coment $coment)\n {\n //\n }", "title": "" }, { "docid": "1c17dff2baa66e85b8f290b4dc9890c5", "score": "0.6087993", "text": "public function edit(Department $department)\n {\n //\n\n }", "title": "" }, { "docid": "1b219056d1a9efb9d3d79b1b3e51a49c", "score": "0.6087713", "text": "public function edit(Year $year)\n {\n //\n }", "title": "" }, { "docid": "0cd337dc85bc04aacdef946740a9d65a", "score": "0.6086548", "text": "public function edit(Programs $programs)\n {\n //\n }", "title": "" }, { "docid": "bba67f70302a87128e8cfcaf845f932a", "score": "0.6085761", "text": "public function edit(Department $department)\n {\n //\n }", "title": "" }, { "docid": "bba67f70302a87128e8cfcaf845f932a", "score": "0.6085761", "text": "public function edit(Department $department)\n {\n //\n }", "title": "" }, { "docid": "bba67f70302a87128e8cfcaf845f932a", "score": "0.6085761", "text": "public function edit(Department $department)\n {\n //\n }", "title": "" }, { "docid": "bba67f70302a87128e8cfcaf845f932a", "score": "0.6085761", "text": "public function edit(Department $department)\n {\n //\n }", "title": "" }, { "docid": "bba67f70302a87128e8cfcaf845f932a", "score": "0.6085761", "text": "public function edit(Department $department)\n {\n //\n }", "title": "" }, { "docid": "bba67f70302a87128e8cfcaf845f932a", "score": "0.6085761", "text": "public function edit(Department $department)\n {\n //\n }", "title": "" }, { "docid": "bba67f70302a87128e8cfcaf845f932a", "score": "0.6085761", "text": "public function edit(Department $department)\n {\n //\n }", "title": "" }, { "docid": "bba67f70302a87128e8cfcaf845f932a", "score": "0.6085761", "text": "public function edit(Department $department)\n {\n //\n }", "title": "" }, { "docid": "bd8555cbffcc7704a024851b0a3a4565", "score": "0.6085332", "text": "public function update_sharing_organisation(Request $request) { \n SharingOrganisation::where('orgIdx', $request->orgIdx)->update([\n 'orgName' => $request->orgName, \n ]); \n return response()->json(array( \"success\" => true )); \n }", "title": "" }, { "docid": "8e5ab3d758c131b5d4c9a117461dd44f", "score": "0.607954", "text": "public function editAction()\n {\t\n \t$vendorId = (int)Mage::helper('xcentia_vendors')->getDealer()->getId();\n \t$vendor\t= Mage::getModel('xcentia_vendors/vendor')\n \t\t->setStoreId(Mage::app()->getStore()->getId())\n \t\t->load($vendorId);\n Mage::register('current_vendor', $vendor);\n \t$headBlock = $this->getLayout()->getBlock('head');\n if ($headBlock) {\n $headBlock->setTitle('Edit Vendor');\n }\n $this->loadLayout();\n $this->_initLayoutMessages('catalog/session');\n $this->_initLayoutMessages('customer/session');\n $this->_initLayoutMessages('checkout/session');\n $this->renderLayout();\n }", "title": "" }, { "docid": "2c2c5732fdc0662849092e6dd40415f2", "score": "0.6079247", "text": "public function updateOrganisation()\n {\n $success = true;\n $errors = [];\n\n // Depending on whether a logo exists already, change the validation rule for the logo upload\n $logoValidationRule = 'required|image';\n if (file_exists(public_path() . \"/organisation/logo.png\")) {\n $logoValidationRule = 'image';\n }\n\n // Default validation rules\n $defaultRules = [\n 'organisationName' => 'required|min:4',\n 'organisationDescription' => 'required|min:4',\n 'organisationWebsite' => 'required|min:4',\n 'organisationLogo' => $logoValidationRule\n ];\n\n $validator = Validator::make(\n Input::all(),\n $defaultRules\n );\n\n // Check if the validator fails\n if (!$validator->fails()) {\n $image = Input::file('organisationLogo');\n if ($image != null && $image->isValid()) {\n // Set the destination path for the platform logo\n $destinationPath = public_path() . '/organisation/logo.png';\n Image::make($image->getRealPath())->resize(400, 400)->save($destinationPath);\n }\n Setting::set('organisation.name', Input::get('organisationName'));\n Setting::set('organisation.description', Input::get('organisationDescription'));\n Setting::set('organisation.website', Input::get('organisationWebsite'));\n Setting::set('organisation.valid', 'true');\n Session::flash('info', trans('backoffice.flash.org_update_success'));\n } else {\n // Validation has failed. Set success to false. Set validator messages\n $success = false;\n $errors = $validator->messages();\n }\n\n if ($success) {\n return Redirect::route('admin::organisation');\n } else {\n return Redirect::back()->withErrors($errors)->withInput(Input::all());\n }\n }", "title": "" }, { "docid": "99875f39bbd00b33e3617069278a5a0b", "score": "0.60755354", "text": "public function edit($id) {\n $award = Award::with('organization')->findOrFail($id);\n if(!Auth::user()->super_user && ($award->tender->organization && $award->tender->organization->id != \\Auth::user()->organization->id)) {\n abort(403);\n }\n $country_id = Country::find($award->organization->country_id)->country_iso;\n\n\n $countries = Country::active()->orderBy('country_name_ua')->lists('country_name_ua', 'country_iso');\n\n $regions = TendersRegions::orderBy('id')->active()->lists('region_ua', 'id');\n $region_id = $award->organization->region_id;\n $currencies = Currencies::orderBy('id')->lists('currency_code', 'id');\n $schemes = groupByValue(Identifier::active()->lists('country_iso', 'scheme'));\n\n// $award->organization->\n\n\n\n return view('pages.award.edit', ['award' => $award,\n 'tender' => $award->tender,\n 'regions' => $regions,\n \t\t\t\t\t\t\t\t 'region_id' => $region_id,\n 'currencies' => $currencies,\n 'countries' => $countries,\n 'country_id' => $country_id,\n 'schemes' => $schemes,\n ]);\n }", "title": "" }, { "docid": "3736499054b89a9776863393fe21594e", "score": "0.6075117", "text": "public function editAction()\n {\n $id = (int) $this->param('id');\n $project = $this->service->retrieveProjectById($id);\n if (!$project) {\n $this->flash('error')->addMessage('project.not.found');\n $this->redirectToRoute('list', ['page' => 1]);\n } else {\n $action = $this->view->url(['action' => 'update']);\n $projectForm = $this->service->getFormForEditing($action);\n $projectForm->populate($project->toArray());\n $this->view->project = $project;\n $this->view->projectForm = $projectForm;\n }\n }", "title": "" }, { "docid": "b07375708e27f31bd5205f7762787bc5", "score": "0.6070437", "text": "public function edit($id=0)\n\t{\t\n\t\t$userData = $this->Companies_model->getCompanyById($id);\n\t\t$userData['update'] = $userData['id'];\n\t\tset_data($userData);\n\t\t$data['title'] \t\t= 'Edit Admin : TDMA';\n\t\t$data['view'] \t\t= 'admin/companies/companies_add';\n\t\t$this->load->view('admin/layout', $data);\n\t}", "title": "" }, { "docid": "62f075d21fa3c84a29311063dc86b307", "score": "0.6068627", "text": "function editApplication($name, $gender, $number, $town, $occupation, $contactname, $contactnumber, $location, $project, $application_id, $landuse_id) {\n $query = \"UPDATE applications SET name = ?,gender = ?,phoneno = ?,town = ?, occupation = ?,contactname = ?,contactnumber = ?,location = ?,project_type = ?, WHERE applicationid = ?\";\n $paramType = \"sssssssssi\";\n $paramValue = array(\n strtoupper($name),\n $gender,\n $number,\n ucwords($town),\n ucwords($occupation),\n strtoupper($contactname),\n $contactnumber,\n $location,\n strtoupper($project),\n $application_id\n );\n \n $this->db_handle->update($query, $paramType, $paramValue);\n }", "title": "" }, { "docid": "d73b6272b02d5de4d7fc27c872ca66e1", "score": "0.6067013", "text": "public function edit(Expenditure $expenditure)\n {\n //\n }", "title": "" }, { "docid": "febd00a06dd96254cd05878a8b6b5c26", "score": "0.6059234", "text": "public function update(IModel $organization)\n {\n }", "title": "" }, { "docid": "9570217d6fc2e4f450e78e876d0dacf0", "score": "0.6047906", "text": "public function edit(Distributor $distributor)\n {\n //\n }", "title": "" }, { "docid": "8bfdc1681b7de50b11ebccc2b47afe97", "score": "0.604554", "text": "public function edit(Proyect $proyect)\n {\n //\n }", "title": "" }, { "docid": "61bf9ddf6d8ac06242de39449ecb1d3b", "score": "0.60418326", "text": "public function edit($id) {\n \n if (session('admin')) {\n \n $orgaos = Orgaos::find($id);\n \n return view('editdoadoresorgaos', array('orgao' => $orgaos));\n \n }\n\n }", "title": "" }, { "docid": "769a8f4cad2c07353dd65885207158b1", "score": "0.60416496", "text": "public function edit(Laborsocial $laborsocial)\n {\n //\n return view('laborsocial.edit',compact('laborsocial'));\n }", "title": "" }, { "docid": "376385c13539d3f51c463928129c72bf", "score": "0.60412043", "text": "public function edit($id)\n {\n $self = Auth::user();\n $user = App\\User::where('id',$id)->with(['organizations','teams'])->first();\n $this->authorize('update', $user);\n // Log::debug(print_r($user,true));\n return view('user.profile', [\n 'user'=>$user,\n 'orgteams'=> App\\Organization::with('teams')\n ->where('organizations.name','!=','Ministry Engage')\n ->get()\n ]);\n }", "title": "" }, { "docid": "da5c129a96d88cf775d27e7a784a156e", "score": "0.6039576", "text": "public function edit(Vital $vital)\n {\n //\n }", "title": "" }, { "docid": "85ac93b6428fe8421fc91e219c8ca7b4", "score": "0.6039297", "text": "public function edit($id) {\n $organizacoes = Organizacao::all();\n\n $apostadores = ApostadorGrupo::select('apostador.*', 'grupo.id as grupo', 'apostador_organizacao.organizacao_id as org')\n ->leftJoin('apostador', 'apostador.id', '=', 'apostador_grupo.apostador_id')\n ->leftJoin('grupo', 'grupo.id', '=', 'apostador_grupo.grupo_id')\n ->leftJoin('apostador_organizacao', 'apostador_organizacao.apostador_id', '=', 'apostador.id')\n ->get();\n $grupo = ApostadorGrupo::where('grupo_id', $id)\n ->select('apostador_id')\n ->get();\n $array_apostadores = [];\n foreach ($grupo as $i) {\n $array_apostadores[] = $i->apostador_id;\n }\n return view('milionarios.grupo.edit', compact('organizacoes', 'apostadores', 'id', 'array_apostadores'));\n }", "title": "" }, { "docid": "7337fde563620543eed20707841df1f4", "score": "0.6034001", "text": "public function edit(Sales $sales)\n {\n //\n }", "title": "" }, { "docid": "ae21d2b41e9fc5a46029c18a6d1da2a7", "score": "0.6032248", "text": "public function edit(account $account)\n {\n //\n }", "title": "" }, { "docid": "ae21d2b41e9fc5a46029c18a6d1da2a7", "score": "0.6032248", "text": "public function edit(account $account)\n {\n //\n }", "title": "" }, { "docid": "41722fd33130c9cd55296764ce502ef6", "score": "0.6031844", "text": "public function edit($id)\n {\n if (Auth::check())\n {\n if (Gate::denies('admin')) \n {\n if (Gate::denies('meetingorganizer')) \n {\n abort(403,\"Permission Denied\");\n }\n }\n }\n $orgs= Organization::find($id);\n $task = Task::findOrFail($id);\n return view('task.edit',['task'=>$task,'orgs' => Organization::where('user_id', $id)->get()]);\n }", "title": "" }, { "docid": "a6960af911e0500081ea13f2197bd220", "score": "0.60316736", "text": "public function editConsulting($id) {\n global $REQUEST_DATA;\n \n $query=\"UPDATE consulting SET\tprojectName ='\".$REQUEST_DATA['projectName'].\"',\n\t\t\t\t\t\t\t\t\t sponsorName ='\".$REQUEST_DATA['sponsorName'].\"',\n\t\t\t\t\t\t\t\t\t startDate = '\".$REQUEST_DATA['startDate'].\"',\n endDate = '\".$REQUEST_DATA['endDate'].\"',\n amountFunding = '\".$REQUEST_DATA['amountFunding'].\"',\n remarks = '\".$REQUEST_DATA['remarks'].\"',\n employeeId = '\".$REQUEST_DATA['employeeId'].\"'\n WHERE consultId=\".$id;\n return SystemDatabaseManager::getInstance()->executeUpdate($query); \n }", "title": "" }, { "docid": "93926ab93c39149dfd23d05a4250f676", "score": "0.60308623", "text": "public function edit(Actividad $actividad)\n {\n //\n }", "title": "" } ]
8e680dc439f2ce9215ea521dadcb2873
Test to add two numbers
[ { "docid": "ac134aa8b115e96a51885ed536576540", "score": "0.7464503", "text": "public function testAdd() {\n\t\t$equals = $this->calculator->add(1, 2);\n\t\t$this->assertEqual(3, $equals);\n\t\t\n\t\t$equals = $this->calculator->add(-1, -2);\n\t\t$this->assertEqual(-3, $equals);\n\t\t\n\t\t$equals = $this->calculator->add(-1, 2);\n\t\t$this->assertEqual(1, $equals);\n\t\t\n\t\t$equals = $this->calculator->add(0, 2);\n\t\t$this->assertEqual(2, $equals);\n\t}", "title": "" } ]
[ { "docid": "43a19a319d45da6807947357324f2dc6", "score": "0.7988629", "text": "public function testaddnumbers()\r\n {\r\n $no1=3;\r\n $no2=1;\r\n $res=addnumbers($no1, $no2);\r\n $this->assertEquals(3,$res);\r\n }", "title": "" }, { "docid": "d301a9de180495b475c44fb604cc68e7", "score": "0.79465514", "text": "function lets_add($num1,$num2){\n return ($num1 + $num2);\n }", "title": "" }, { "docid": "d18e156778ebdce795e14001866c8b13", "score": "0.74334514", "text": "function add_two($num1,$num2)\n{\n $result = $num1 + $num2;\n return $result;\n}", "title": "" }, { "docid": "e871ccb83df739443ce8eb53dca66a6c", "score": "0.7362016", "text": "private function addition($a, $b)\n {\n return $a + $b;\n }", "title": "" }, { "docid": "1cdde07656002b0e25838edb6e9afc1a", "score": "0.73385787", "text": "function addNumbers($num1,$num2){\n return $num1 + $num2;\n}", "title": "" }, { "docid": "795da33228113901eedbcae96331cb94", "score": "0.7336738", "text": "function addNumbers($num1, $num2){\n return $num1 + $num2;\n}", "title": "" }, { "docid": "6d8556e24f9bf4ba20bbeda455762116", "score": "0.7291134", "text": "public function testSum()\n {\n $num1 = 1;\n $num2 = 3;\n $suspectedResult = 4;\n\n $result = SumService::calculate($num1, $num2, \"+\");\n\n $this->assertTrue(($suspectedResult === $result), \"Check is sum result OK\");\n }", "title": "" }, { "docid": "a431d4583893cc34deecfd44842bf616", "score": "0.7264777", "text": "function add($x, $y)\n{\n\treturn $x+$y;\n}", "title": "" }, { "docid": "0cebc9453b7a9c52e23698efeb596bea", "score": "0.7248848", "text": "function addInt($intNumber1, $intNumber2)\n{\n $intResult = $intNumber1 + $intNumber2;\n return $intResult;\n}", "title": "" }, { "docid": "bcacdb43f410229a1b8fe34bdf24985d", "score": "0.7222971", "text": "public function testAdd()\n {\n $this->assertEquals(5, Num::add(3, 2));\n $this->assertEquals(-5, Num::add(-3, -2));\n $this->assertEquals(-1, Num::add(-3, 2));\n $this->assertEquals(5.75, Num::add(3.5, 2.25));\n }", "title": "" }, { "docid": "88a08c92fb006c5b32319d69a2b8b933", "score": "0.7166447", "text": "public function add($a, $b): int\n {\n return $a + $b;\n }", "title": "" }, { "docid": "cd51ba46a7f0679bd006c334ad50e985", "score": "0.71379346", "text": "function add($a, $b)\n {\n return $a + $b;\n }", "title": "" }, { "docid": "304373b67f6754ff46697f20b18b9c6a", "score": "0.710526", "text": "function add() {\n\t\t$one = 1;\n\t\t$two = 2;\n\t\t$sum = $one + $two;\n\t\treturn $sum;\n\t}", "title": "" }, { "docid": "878d2f242b49d0cfa15b2074e0895f3f", "score": "0.70607156", "text": "public function testAddition(){\n\t\tinclude('my_functions.php'); // must include if tests are for non OOP code\n\t\t$result = my_addition(1,1);\n\t\t$this->assertEquals(2, $result);\n\t}", "title": "" }, { "docid": "f4777e2bb25d23098f85e7c509346b0c", "score": "0.70360714", "text": "public function add(int $a, int $b): int\n {\n return $a + $b;\n }", "title": "" }, { "docid": "2bfa23dcaaa2950ee2fd402eaca94304", "score": "0.70344657", "text": "public function add($numb1, $numb2){\n\n return $numb1 + $numb2;\n }", "title": "" }, { "docid": "6ec7e4a956f881b5b31e2da61c4e809f", "score": "0.7013878", "text": "protected static function __add($a, $b) {\n\t\treturn $a + $b;\n\t}", "title": "" }, { "docid": "20170d7306286ebd8f30fe6cab749ddf", "score": "0.69862974", "text": "function addNumbers($firstInt, $secondInt){\n\t$sum = $firstInt + $secondInt;\n\techo $firstInt . ' + ' . $secondInt .' = ' . $sum;\n}", "title": "" }, { "docid": "4821cfaf80e6fc82250124692885dc0d", "score": "0.6974589", "text": "function sum($a,$b){\n return $a+$b;\n}", "title": "" }, { "docid": "093dc8a20ea75834c28d4dc900336b0c", "score": "0.695879", "text": "function add($a, $b)\n {\n $add = $a + $b;\n if ($add >= 20) {\n echo \"It's \" . $add;\n } else {\n echo \"Out of limit\";\n }\n\n }", "title": "" }, { "docid": "53f3027e76fcf147e0dcdd2a54773a62", "score": "0.6940379", "text": "function sum($a, $b){\n\treturn $a + $b;\n}", "title": "" }, { "docid": "63dad099cd7ce90327c22604603fd976", "score": "0.6932836", "text": "function addInt2($intNumber1, $intNumber2)\n{\n $intResult = $intNumber1 + $intNumber2;\n echo (\"Sum is: \" . $intResult);\n}", "title": "" }, { "docid": "9970cc5e0192d6ccbe0331399596003b", "score": "0.69029707", "text": "function add($val1, $val2){\n return $val1 + $val2;\n\n}", "title": "" }, { "docid": "8fcafbfdc3c5baf22b3838e38bada133", "score": "0.6871885", "text": "function addFunction($num1, $num2) {\n\t$sum = $num1 + $num2;\n\t//echo \"Sum of the two numbers is : $sum \\r\\n\";\n}", "title": "" }, { "docid": "11f731272386ecacc4d3588f05c500f6", "score": "0.6865975", "text": "function add_two2($num1,$num2)\n{\n $result = $num1 + $num2;\n echo $result;\n}", "title": "" }, { "docid": "656477972b0abf9ec4202fed7b38f594", "score": "0.6865655", "text": "function addNumbersAgain($number1, $number2)\n{\n $sum = $number1 + $number2;\n\n return $sum;\n}", "title": "" }, { "docid": "9077667658e8b456ff79f94970bd3791", "score": "0.68128574", "text": "function somar($a, $b){\n return $a+$b;\n}", "title": "" }, { "docid": "7aca9ae7bfc19bc20c46b5021ba9f891", "score": "0.68052316", "text": "function sum($num1,$num2){\necho $num1+$num2 . \"<br>\";\n}", "title": "" }, { "docid": "a302aa2724baa08cd6d01d7631ef2f03", "score": "0.68002754", "text": "function test_mixedSimpleAdd() {\n\t\t$result = $this->m21USD->add( $this->m12CHF );\n\t\t$this->assertEquals($this->moneybag2, $result, \"this should pass\");\n\n\t}", "title": "" }, { "docid": "e0e4243af772c3a8e6cdfbefafb6c336", "score": "0.6796467", "text": "function addFunction($num1, $num2) {\n $sum = $num1 + $num2;\n echo \"Sum of the two numbers is : $sum\";\n }", "title": "" }, { "docid": "ce1068e879938d575d1e1f44246d27c8", "score": "0.67957246", "text": "function addNumbers(int $a, int $b) { //menjalankan fungsi\r\n return $a + $b; //mengembalikan penjumlahan nilai variabel a dan b\r\n}", "title": "" }, { "docid": "b204058da4eaed3721d693fca883ed4d", "score": "0.6786346", "text": "function somar($a,$b){\n return $a+$b;\n}", "title": "" }, { "docid": "9f6636b6967f94286d12f7ca578dc13a", "score": "0.67776334", "text": "function sumar ($a, $b){\r\n $rta = $a + $b;\r\n return $rta;\r\n}", "title": "" }, { "docid": "8b212e15d3421502a7bf22d5472246a6", "score": "0.67686677", "text": "function sum ($value1, $value2) {\n\t\n\t$result = $value1 + $value2;\n\treturn $result;\n}", "title": "" }, { "docid": "ebcca1c9aa25d3189800f9362900f0d0", "score": "0.6767059", "text": "function add($number1, $number2) {\n $sum = $number1 + $number2;\n return $sum;\n //return $number1 + $number2; -- my inital answer see above for corrected version\n //$sum = return;\n}", "title": "" }, { "docid": "0ed925e1c8fadd2645bcc219bd903f98", "score": "0.6745939", "text": "static function add($value1, $value2) {\n return $value1 + $value2;\n }", "title": "" }, { "docid": "3c1ac5d52c627e93c76ed1a2b037e19d", "score": "0.6728131", "text": "function add_all( $n1, $n2 ){\n return $n1 + $n2;\n}", "title": "" }, { "docid": "dd37237dde084f03970ae90e7428186c", "score": "0.67256236", "text": "public function addNum($a, $b, $c, $d) {\n $math = new Math();\n $this->assertEquals($math->addNum($a,$b,$c), $d);\n }", "title": "" }, { "docid": "78b522693813a75d245bc8aea35cdf69", "score": "0.6685284", "text": "function sum($x,$y)\r\n\t{\r\n\t\t$sum = $x + $y;\r\n\t\treturn $sum;\r\n\t}", "title": "" }, { "docid": "5bf5917f55b50b32239753fec7a95b14", "score": "0.66847944", "text": "function sum ($x, $y) {\r\n\t\t\t\t\t\t#Inside the function, add the 2 numbers \r\n\t\t\t\t\t\t$z = $x + $y;\r\n\t\t\t\t\t\t#and return the result\r\n\t\t\t\t\t\treturn $z;\r\n\t\t\t\t\t}", "title": "" }, { "docid": "91611cf74e944894fe8b5ab1439010f4", "score": "0.6675416", "text": "function sum($a, $b) {\n $x = $a + $b;\n return $x;\n}", "title": "" }, { "docid": "ed09f05c5d7534a79eb39c63db2638b4", "score": "0.6672748", "text": "function Zadatak3(int $num1, int $num2)\n{\n\n if($num1 == 30 || $num2 == 30){\n return true;\n }else if($num1 + $num2 == 30){\n return true;\n }else{\n return false;\n }\n\n}", "title": "" }, { "docid": "dae7d2e8a386b439e5705d7f2b41c5cd", "score": "0.66556656", "text": "function addFunction($num1, $num2)\n {\n $sum=$num1+$num2;\n \n echo \"The sum of $num1 and $num2 is: $sum <br/>\";\n\n }", "title": "" }, { "docid": "a50174306316d0f727a67777dc4f3c5f", "score": "0.6653342", "text": "function add()\t{\n \t\t$args = func_num_args();\n \t\t$sum = 0;\n \t\t$i = 0;\n\n \t\tfor ($i; $i < $args; $i++) { \n \t\t\tis_int(func_get_arg($i)) ? $sum += func_get_arg($i) : die('user only integerts, please.');\n \t\t}\n \t\treturn $sum;\n \t}", "title": "" }, { "docid": "3b3f3fa3edd93fb31f478c00e0909adb", "score": "0.6644701", "text": "function test_simpleAdd() {\n\t\t$result = $this->m12CHF->add( $this->m14CHF );\n\t\t$this->assert( new Money(27, \"CHF\"), $result, \"This should fail\" );\n\t\t$this->assertEquals( new Money(27, \"CHF\"), $result, \"This should fail\" );\n\t}", "title": "" }, { "docid": "4756bf75e74a4fdc555b844006c9adb7", "score": "0.66444904", "text": "function sum($x, $y) {\n\t$z = $x + $y;\n\treturn $z;\n}", "title": "" }, { "docid": "d3e2c2fda681e349f47e13ee42d75b8e", "score": "0.6639039", "text": "public function testCanAdd($math){\n\t\t$expected = 52;\n\t\t$answer = $math->add(48,4);\n\t\t$this->assertEquals($expected,$answer,'Answer does not match the expected');\n\t}", "title": "" }, { "docid": "8488cfe499320384787942ddce626a0c", "score": "0.6627454", "text": "function add($v1,$v2)\n{\n return $v1 + $v2;\n}", "title": "" }, { "docid": "1c04f9792fcc89006451c268d69e537d", "score": "0.66249275", "text": "function sum($a,$b){\n if(!is_numeric($a) || !is_numeric($b)){\n throw new InvalidArgumentException(\"Invalid Argument\");\n }\n return ($a + $b);\n}", "title": "" }, { "docid": "e23422b0f5e878be685286f835b1f05f", "score": "0.661171", "text": "function somma(int $num1, int $num2){\n echo $num1 + $num2 . '<br />';\n }", "title": "" }, { "docid": "458ac8b20b4dc60664a4d7a3e46d58de", "score": "0.6601554", "text": "function sum($x, $y) {\r\n\t$z = $x + $y;\r\n\treturn $z;\r\n}", "title": "" }, { "docid": "268cdfe6ff207022a45e0ee72325e540", "score": "0.65751487", "text": "function sum($x, $y){\n $z = $x + $y;\n return $z;\n}", "title": "" }, { "docid": "3630ef996ebbe66c4b6275910c30b491", "score": "0.65743625", "text": "public function add($x, $y)\n {\n return $x + $y;\n }", "title": "" }, { "docid": "5efe988047a33945ac8c2c3c05c1f708", "score": "0.65692306", "text": "function add($x,$y=1){\r\n $z=$x+$y;\r\n echo 'Sum of x and y is'.$z.\"<br>\";\r\n }", "title": "" }, { "docid": "4a010185ae8c6d0448b0482240dceab6", "score": "0.6562426", "text": "public static function add($x, $y)\n {\n return $x + $y;\n }", "title": "" }, { "docid": "61169b448fa3875c1a2ae4b578fae36f", "score": "0.6548477", "text": "#[@test]\n public function addFloatToInt() {\n $this->assertEquals(new BigFloat(2.9), create(new BigInt(1))->add(new BigFloat(1.9)));\n }", "title": "" }, { "docid": "42e84a0a914c92644277583304472f3f", "score": "0.6546347", "text": "function add(int $a , int $b) : int {\n return $a + $b;\n}", "title": "" }, { "docid": "fb20746a3334abb26ebfcb3493e3dd54", "score": "0.652611", "text": "function sum($x, $y) \n{\n $z = $x + $y;\n return $z;\n}", "title": "" }, { "docid": "222b58f3a691cd34c8793e8afb934d9a", "score": "0.6520674", "text": "function sum($x,$y){\n\t$z = $x + $y;\n\treturn $z;\n}", "title": "" }, { "docid": "d47cb8980ac5581ab7b0c2af52ffb600", "score": "0.6504729", "text": "protected function suma($x, $y){\n\t\treturn $x+$y;\n\t}", "title": "" }, { "docid": "7a6ed4d9d76ad6b951b565403abb7cb5", "score": "0.6502686", "text": "public function testDecimalAdd()\n {\n $calc = Data\\DataFactory::make(['valuea' => '10', 'valueb' => '10', 'operator' => 'add']);\n $this->assertSame('20', $calc->calculate());\n\n $calc = Data\\DataFactory::make(['valuea' => '10', 'valueb' => '-10', 'operator' => 'add']);\n $this->assertSame('0', $calc->calculate());\n\n $calc = Data\\DataFactory::make(['valuea' => '-10', 'valueb' => '10', 'operator' => 'add']);\n $this->assertSame('0', $calc->calculate());\n\n $calc = Data\\DataFactory::make(['valuea' => '-10', 'valueb' => '11', 'operator' => 'add']);\n $this->assertSame('1', $calc->calculate());\n }", "title": "" }, { "docid": "f6ef891106784f32076246cf433ff651", "score": "0.6497418", "text": "public function AddNumbers($Num1, $Num2) {\r\n // Print the SUM of the parameters of this method $Num1, $Num2\r\n echo \"Sum of $Num1 + $Num2 : \".$Num1 + $Num2;\r\n }", "title": "" }, { "docid": "33538a850ea52eff099da2391e0abea2", "score": "0.64824283", "text": "private function sumar()\n\t\t{\n\t\t\tif ($this->validarOperacion()) {\n\t\t\t\treturn $this->_num1 + $this->_num2;\n\t\t\t\t// echo \"suma de verdad\";\n\t\t\t}else{\n\t\t\t\treturn $this->_errores[0];\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c82a965637465245aea9e94f365a3088", "score": "0.6469921", "text": "function test($number1 = 2, $number2 = 4 , $number3 = 5){\n return $number1 + $number2 + $number3 ;\n }", "title": "" }, { "docid": "c637ce9f44224dd4ae9e32a3e98057ab", "score": "0.6457792", "text": "function solveMeFirst($a,$b){\r\n echo($a+$b);\r\n}", "title": "" }, { "docid": "56eec881b564cf270213ca829afe6432", "score": "0.64504474", "text": "function addFunction($num1, $num2){\n $sum = $num1 * $num2;\n echo \"The sum of $num1 and $num2 is: $sum <br>\";\n }", "title": "" }, { "docid": "eee6b7ffba2a590d741accbf24e488fd", "score": "0.6424213", "text": "function sumar($a, $b){\n\t$c = $a + $b;\n\treturn $c;\n}", "title": "" }, { "docid": "c93a95846d2ebad24bbc4ccdf8757c94", "score": "0.64221984", "text": "function testAdd() { /*{{{*/\r\n $tmp = Math_ComplexOp::add($this->cnum1, $this->cnum2);\r\n $this->assertEquals('1.3 - 1.07079632679i', $tmp->toString());\r\n }", "title": "" }, { "docid": "cc34b741200b4aeb67633ca479d67f99", "score": "0.64054006", "text": "function addNumbers(int $a, int $b) /*fungsi dengan satu argumen (integer $a, integer $b)*/{\n return $a + $b;//statement immediately terminates the execution of a function when it is called from within that function.\n}", "title": "" }, { "docid": "6dffc6787087afaf51e6c729ec5e6937", "score": "0.64021873", "text": "function addfunction($num1,$num2){\r\n\t$sum = $num1+$num2;//block of code \r\n\techo \"sum of two numbers is : $sum</br>\";\r\n}", "title": "" }, { "docid": "8b371eef7c706faf21a1e72e79cc4ec9", "score": "0.6373203", "text": "protected static function testReturnInt2()\n {\n return $int + $int2;\n }", "title": "" }, { "docid": "9e30b32c78468370f05442085e186300", "score": "0.63419443", "text": "public function testSum2(): void\n {\n $diceHand = new DiceHand(5);\n $diceHand->setDiceFacesDiceHand(5, 2, 4, 3, 1);\n\n $exp = 15;\n $res = $diceHand->sum();\n\n $this->assertEquals($exp, $res);\n }", "title": "" }, { "docid": "304138095b16f2b97a14f25818e166c7", "score": "0.63165116", "text": "function checkNum($firstNum, $secNum){\n if($firstNum == 30 || $secNum == 30){\n return true;\n }else if(($firstNum + $secNum) == 30){\n return true;\n }else {\n return \"something went wrong\";\n }\n}", "title": "" }, { "docid": "3a141ef22676a9cf0ac1284fb08c6b12", "score": "0.6312164", "text": "function add($value) {\r\n\t\treturn ($this->value = $this->plus($value)) ? true : false;\r\n\t}", "title": "" }, { "docid": "b70ed73853cc8beaebf23135e934c192", "score": "0.62955785", "text": "function add(){\n// function body part \n$firstnum= 200;\n$secondnum=30;\n$add=$firstnum + $secondnum;\n$multiple=$firstnum * $secondnum;\n$min=$firstnum - $secondnum;\n$div=$firstnum / $secondnum;\n// add two numbers \necho \"total of $firstnum and $secondnum is:\".$add. \"\\n<br><br><br>\";\n// multiple two numbers \necho \"total of $firstnum and $secondnum is:\".$multiple. \"\\n<br><br><br>\";\n// minus two numbers \necho \"total of $firstnum and $secondnum is:\".$min. \"\\n<br><br><br>\";\n// division of two numbers \necho \"total of $firstnum and $secondnum is:\".$div. \"\\n<br><br><br>\";\n}", "title": "" }, { "docid": "334d4f6737ddb82ba6b60b04cdd2e461", "score": "0.62924767", "text": "function addNumbers(int $a, int $b) {\n \n return $a + $b; // menambahkan variabel\n}", "title": "" }, { "docid": "27cc64276a13a034179e4a306991ec0d", "score": "0.62907153", "text": "public function sum(float $a, float $b)\n {\n return $a + $b;\n }", "title": "" }, { "docid": "6639479614e44972dee587d0098e6408", "score": "0.628001", "text": "public function addition(float $first, float $second): float\n {\n return ($first + $second);\n }", "title": "" }, { "docid": "8b4995944ae3dba0eaa2443e39522709", "score": "0.62362504", "text": "function test_bagSimpleAdd() {\n\t\t$expected = $this->moneybag2->add( $this->m12CHF );\n\t\t$result = $this->m12CHF->add( $this->moneybag2 );\n\t\t$this->assertEquals($expected, $result, \"this should pass\");\n\t}", "title": "" }, { "docid": "14e2148efa2fcb68a70e0947d541694f", "score": "0.62287915", "text": "public function testAddNUmbers()\n {\n\n $numbers = [\n 1,2,6,10,7\n ];\n\n Calculator::add($numbers);\n\n $this->assertEquals(Calculator::add($numbers), 26);\n\n }", "title": "" }, { "docid": "6f0c7a11d555984e0235a0b80c785026", "score": "0.62093306", "text": "function Zadatak1(int $num1,int $num2)\n{\n\n return $num1===$num2 ? ($num1+$num1)*3: $num1+$num2;\n\n}", "title": "" }, { "docid": "c5343beb1119f07520fbf61cb781aa6d", "score": "0.62072474", "text": "function sum(int $a, int $b) :int {\n return $a + $b;\n}", "title": "" }, { "docid": "b00f859777b1e4bb6f6d79da2db17fc3", "score": "0.62069345", "text": "function test2($a, $b)\n{\n return ($a*$b);\n}", "title": "" }, { "docid": "4ebcab7e05372f4e6153b8f181516f8a", "score": "0.62020844", "text": "function computeAdditionWithoutAdd($number1, $number2)\n{\n $sum = 0;\n $carryIn = 0;\n $k = 1;\n // These temp numbers are only used to determine loop termination\n $tempNumber1 = $number1;\n $tempNumber2 = $number2;\n\n while ($tempNumber1 || $tempNumber2) {\n // Use a bitmask to get the kth bit of $number1\n $kthBitOfNumber1 = $number1 & $k;\n // Use a bitmask to get the kth bit of $number2\n $kthBitOfNumber2 = $number2 & $k;\n // Should we carry a bit or not?\n // If the kth bit of number1 is 1 and the kth bit of number2 is 0 and carryIn is 0, carry 0.\n // If the kth bit of number1 is 1 and the kth bit of number2 is 1 and carryIn is 0, carry 1.\n // If the kth bit of number1 is 1 and the kth bit of number2 is 0 and carryIn is 1, carry 1.\n // If the kth bit of number1 is 0 and the kth bit of number2 is 1 and carryIn is 1, carry 1.\n $carryOut = ($kthBitOfNumber1 & $kthBitOfNumber2)\n | ($kthBitOfNumber1 & $carryIn)\n | ($kthBitOfNumber2 & $carryIn);\n // Add to the sum.\n // If one of the kth bit of number1, the kth bit of number2 and carryIn is set, toggle the kth bit of sum.\n // If two of the kth bit of number1, the kth bit of number2 and carryIn is set, do not toggle the kth bit of sum.\n // If all of the kth bit of number1, the kth bit of number2 and carryIn are set, toggle the kth bit of sum.\n // This follows the basics of binary addition where 1 + 0 = 1, 1 + 1 = 0 carry the 1 and 1 + 1 + 1 = 1 carry the 1.\n $sum |= ($kthBitOfNumber1 ^ $kthBitOfNumber2 ^ $carryIn);\n // Shift carryOut by 1 so that carryIn is in the proper bit position for the next iteration.\n $carryIn = $carryOut << 1;\n // Shift k by 1 so that it is in the proper bit position for the next iteration.\n $k <<= 1;\n // Shift off the LSB of tempNumber1\n $tempNumber1 >>= 1;\n // Shift off the LSB of tempNumber2\n $tempNumber2 >>= 1;\n\n // If sum is larger than the maximum int or the sign bit gets toggled\n if ($sum > PHP_INT_MAX || $sum < 0) {\n throw new \\RuntimeException('$sum is too large to fit into an integer');\n }\n }\n\n return $sum | $carryIn;\n}", "title": "" }, { "docid": "a86d58a130e9bcfdc7f1828107847d11", "score": "0.61957633", "text": "public static function /* int */ AddValues(int $value1, int $value2) {\n // Combined the values and return the result\n return $value1 + $value2;\n\t}", "title": "" }, { "docid": "8849219be4e1562e555209d5e6978273", "score": "0.61953473", "text": "public function testAdd()\n {\n $result = $this->model->add(5.0, 5.0);\n $expectedResult = 10.0;\n $this->assertEquals($expectedResult, $result);\n }", "title": "" }, { "docid": "acca614d54bb8229f97ffce465e28c88", "score": "0.61913633", "text": "#[@test]\n public function addFloatToInt0() {\n $this->assertEquals(new BigInt(2), create(new BigInt(1))->add0(new BigFloat(1.9)));\n }", "title": "" }, { "docid": "3f21d8749d0f7b7069ede2f24c7e62ce", "score": "0.6175761", "text": "function returnExample($firstInt, $secondInt){\n\treturn $firstInt + $secondInt;\n}", "title": "" }, { "docid": "cece569159db8fa9207b5e4310085481", "score": "0.6087576", "text": "public function testDiceHandSumNumeric()\n {\n $diceHand = new DiceHand();\n $diceHand->roll();\n $res = $diceHand->sum();\n $this->assertIsNumeric($res);\n }", "title": "" }, { "docid": "eb32dc88f4bda07922c5fadaccf29533", "score": "0.6085738", "text": "function test_simpleBagAdd() {\n\t\t$expected = $this->moneybag1->addMoney( $this->m12CHF );\n\t\t$result = $this->moneybag1->add( $this->m12CHF );\n\t\t$this->assertEquals($expected, $result, \"this should pass\");\n\t}", "title": "" }, { "docid": "ccdb34c8b004d29e192529e500bc37e6", "score": "0.60761976", "text": "function add_two3()\n{\n $result = 5 + 6;\n return $result;\n}", "title": "" }, { "docid": "255cb2ea7b2f0db7ec0f02c963d9f849", "score": "0.6065444", "text": "public function sum($a, $b)\n {\n // return $cal->add($a,$b);\n // $var = new Calculate();\n // $cal = Calculate::add($a, $b);\n return ($a+$b);\n }", "title": "" }, { "docid": "cb7beaa511c3ef06257bc43c27eb1ff9", "score": "0.60454154", "text": "public static function plus(DecimalWholeNumbers $a, DecimalWholeNumbers $b) {\n $ret = new DecimalWholeNumbers('0');\n\n $ret->value = gmp_strval(\n gmp_add(\n gmp_init($a->value, 10),\n gmp_init($b->value, 10)\n )\n );\n\n return $ret;\n }", "title": "" }, { "docid": "143bff8e593eb62574eb160862d2c5ee", "score": "0.60351753", "text": "function add_2($n1, $n2) {\n $x = ($n1 & 0xffff) + ($n2 & 0xffff);\n\n return \n (((($n1 >> 16) & 0xffff) + \n (($n2 >> 16) & 0xffff) + \n ($x >> 16)) << 16) | ($x & 0xffff);\n}", "title": "" }, { "docid": "4300c89113539505a600eeab72d9da1c", "score": "0.6019069", "text": "function addNumbers(int $a, int $b) { //fungsi menambahkan nomor a, dan b bertipe data integer\r\n return $a + $b;//pengoperasian variabel a ditambah variabel b\r\n}", "title": "" }, { "docid": "68445222e6143eccd23189393e6a8271", "score": "0.600095", "text": "function SimpleAdding($num) { \n\n //if number is greater than 1\n if($num > 1) {\n $total = $num + SimpleAdding($num-1);\n }\n //if number is equal to one\n else {\n $total = $total + 1;\n }\n \n return $total; \n \n}", "title": "" }, { "docid": "f384b981bd7479e6ef912a81b3763eee", "score": "0.5990999", "text": "public function operar(){\n $this->resultado=$this->n1+$this->n2; \n }", "title": "" }, { "docid": "42a38aa382197d0ef30633440c59d975", "score": "0.5979965", "text": "public function isAddition($value)\n {\n return (preg_match('/\\+/', $value) == 1) || (!starts_with($value, ['+', '-']));\n }", "title": "" }, { "docid": "6596d0e5bc34b49e8385c67fd84a0b42", "score": "0.5971029", "text": "function lovefunc($flower1, $flower2) {\n if (($flower1+$flower2)%2!=0) {\n return true;\n }else{\n return false;\n }\n}", "title": "" }, { "docid": "69aa7c790efc3e3104aa6f9b23ac02d6", "score": "0.5964531", "text": "public function obtenerPlus();", "title": "" } ]
a0be0417ec9944f49ab7515685ff0291
Get a validator for an incoming registration request.
[ { "docid": "5c3cb181a3c186929c4aca7fbda04e07", "score": "0.0", "text": "public function showSignup()\n {\n\n $data['title'] = 'Create an account - Fulllance';\n return view('auth.register', ['data' => $data]);\n }", "title": "" } ]
[ { "docid": "36a8257885a3ff12838660c93e4db633", "score": "0.719754", "text": "protected function getValidatorInstance()\n {\n $factory = $this->container->make(Factory::class);\n\n if (method_exists($this, 'validator')) {\n return $this->container->call([$this, 'validator'], compact('factory'));\n }\n return $factory->make(\n $this->json()->all(),\n $this->container->call([$this, 'rules']),\n $this->messages(),\n $this->attributes()\n );\n }", "title": "" }, { "docid": "0384648c97a275672a76ec6647d2816a", "score": "0.71017957", "text": "public function getValidator();", "title": "" }, { "docid": "0384648c97a275672a76ec6647d2816a", "score": "0.71017957", "text": "public function getValidator();", "title": "" }, { "docid": "727f5231dce82cb7500701d82fd3788a", "score": "0.7074985", "text": "private static function validator()\n {\n if (null === static::$validator) {\n static::$validator = new Validator(\n new ClassMetadataFactory(new StaticMethodLoader),\n new ConstraintValidatorFactory\n );\n }\n\n return static::$validator;\n }", "title": "" }, { "docid": "687f56e3050d373972e4649698062c17", "score": "0.7048845", "text": "public function getValidator()\n {\n return $this->validator;\n }", "title": "" }, { "docid": "687f56e3050d373972e4649698062c17", "score": "0.7048845", "text": "public function getValidator()\n {\n return $this->validator;\n }", "title": "" }, { "docid": "687f56e3050d373972e4649698062c17", "score": "0.7048845", "text": "public function getValidator()\n {\n return $this->validator;\n }", "title": "" }, { "docid": "687f56e3050d373972e4649698062c17", "score": "0.7048845", "text": "public function getValidator()\n {\n return $this->validator;\n }", "title": "" }, { "docid": "687f56e3050d373972e4649698062c17", "score": "0.7048845", "text": "public function getValidator()\n {\n return $this->validator;\n }", "title": "" }, { "docid": "cd874f36e9937122a9b056f65cf7325a", "score": "0.6862882", "text": "public function getValidator() {\n\t\treturn $this->_validator;\n\t}", "title": "" }, { "docid": "9ba17b1a1b5c2be9a4f9af1ddef88808", "score": "0.6769023", "text": "public function getValidator()\n {\n return $this->defaultContext->getValidator();\n }", "title": "" }, { "docid": "0cc9e33d3b9c8f60519bdb637f4c9990", "score": "0.6726676", "text": "public function getValidator()\n {\n return $this->getService('symfony.component.validator.validator');\n }", "title": "" }, { "docid": "0811583ee6f6763c08c6914f0269b35e", "score": "0.6653778", "text": "public function getFactory()\n {\n return $this->validator;\n }", "title": "" }, { "docid": "85aac5b49345bb270e16d7c3a2e45ba0", "score": "0.65884525", "text": "public function getValidatorInstance()\n {\n if ($this->modelRequest) {\n $this->padronizaEntrada($this->modelRequest::$attributeNormalize);\n }\n \n // permite maninular os dados da request antes de validar\n if (method_exists($this, 'beforeValidator')) {\n $this->beforeValidator($this->request);\n }\n \n return parent::getValidatorInstance();\n }", "title": "" }, { "docid": "85ee7f69f27b1135b885db2f9515848d", "score": "0.65381205", "text": "public function getInstance(Constraint $constraint) {\n\n $className = $constraint->validatedBy();\n\n if (!isset($this->validators[$className])) {\n $this->validators[$className] = new $className();\n } elseif (is_string($this->validators[$className])) {\n $this->validators[$className] = $this->container[$this->validators[$className]];\n }\n\n return $this->validators[$className];\n }", "title": "" }, { "docid": "b903bc3f383bcc6e4174f681196bcb15", "score": "0.64817774", "text": "protected function getValidatorInstance()\n {\n\n $validator = parent::getValidatorInstance();\n $this->validator = $validator;\n\n return $validator;\n }", "title": "" }, { "docid": "2966a4a1a9310d67dd08a38613053224", "score": "0.64788884", "text": "protected function getValidatorService()\n {\n return $this->services['validator'] = ${($_ = isset($this->services['validator.builder']) ? $this->services['validator.builder'] : $this->get('validator.builder')) && false ?: '_'}->getValidator();\n }", "title": "" }, { "docid": "8fc651a0721c9edcd753bb62afd400e6", "score": "0.6457748", "text": "public function createValidator(Request $request);", "title": "" }, { "docid": "cfc3eb0a0e50546d326030fd07e9c10f", "score": "0.64559335", "text": "public function validator()\n {\n return $this->validatorClass;\n }", "title": "" }, { "docid": "dc6f0e4ca0906ca7081e5b78d0a5af2c", "score": "0.6448861", "text": "public function getValidator($event)\n {\n if (!$this->_validator) {\n $this->_validator = Mage::getModel('salesrule/validator')\n ->init($event->getWebsiteId(), $event->getCustomerGroupId(), $event->getCouponCode());\n }\n return $this->_validator;\n }", "title": "" }, { "docid": "861cd4748a779f1fa92b399155d21369", "score": "0.64255154", "text": "public function getValidator(): ?SlimAppValidator\n {\n return $this->validator;\n }", "title": "" }, { "docid": "c14e914153a79080b15160c3d1e00b61", "score": "0.640632", "text": "protected function getValidatorService()\n {\n return $this->services['validator'] = $this->get('validator.builder')->getValidator();\n }", "title": "" }, { "docid": "a0982f5f8d0615e635d36e33ee0ec208", "score": "0.6376786", "text": "public function getInstance(Constraint $constraint)\n {\n $name = $constraint->validatedBy();\n\n if (!isset($this->validators[$name])) {\n $this->validators[$name] = new $name();\n } elseif (is_string($this->validators[$name])) {\n // $this->validators[$name] = $this->container->get($this->validators[$name]);\n // @hack - The service with prototype scope is created only one time,\n // so that only one instance will be returned. This hack will return\n // new instance of the service every time it is requested.\n return $this->container->get($this->validators[$name]);\n }\n\n if (!$this->validators[$name] instanceof ConstraintValidatorInterface) {\n throw new UnexpectedTypeException($this->validators[$name], 'Symfony\\Component\\Validator\\ConstraintValidatorInterface');\n }\n\n return $this->validators[$name];\n }", "title": "" }, { "docid": "8629eb9d8dfab498aec8d4ec322d92d0", "score": "0.63427585", "text": "protected function getValidator()\n {\n return Forms::getFormValidator();\n }", "title": "" }, { "docid": "6a59179edbf2d5eb03afb8c519adede1", "score": "0.6337269", "text": "protected function getValidatorService()\n {\n return $this->services['validator'] = ($this->privates['validator.builder'] ?? $this->getValidator_BuilderService())->getValidator();\n }", "title": "" }, { "docid": "2c960a0e38e9e5644513808af88f37c0", "score": "0.63241863", "text": "public function getValidatorFor($class);", "title": "" }, { "docid": "3a2c4779a4e79cf06ab8db3db1d1638e", "score": "0.6319758", "text": "public function validator()\n {\n\n return RegulationValidator::class;\n }", "title": "" }, { "docid": "b1ea38b0df0eb413b9c72991b200ad9b", "score": "0.6293792", "text": "public function get($name)\r\n {\r\n try {\r\n return $this->make($name);\r\n } catch (ReflectionException $e) {\r\n throw new ValidatorNotFoundException(\"Failed to find a validator with the name '{$name}'.\");\r\n }\r\n }", "title": "" }, { "docid": "84b4990a512f176ead4ab8be4b5e14b3", "score": "0.62275493", "text": "function getValidator() {\n\t\tif ( !$this->_Validator instanceof utilityValidator ) {\n\t\t\t$this->_Validator = new utilityValidator();\n\t\t}\n\t\treturn $this->_Validator;\n\t}", "title": "" }, { "docid": "ea488fb7d7bdb83aecad0853cbe698e7", "score": "0.61857337", "text": "public static function getValidator($locale = 'en_US') {\n $translator = new Translator($locale, new MessageSelector());\n $validatorFactory = new Factory($translator);\n\n return $validatorFactory;\n }", "title": "" }, { "docid": "4070db1985998b1b80ef81125915d1ea", "score": "0.61769205", "text": "public function validator()\n {\n return PersonValidator::class;\n }", "title": "" }, { "docid": "640d413d8b01b89246f6d2440efd3ebb", "score": "0.61704624", "text": "public function getValidator()\n {//-------------------->> getVAlidator()\n\n $fullClassName = split( '_', get_class( $this ) );\n return DAO_Factory::getInstance()->getDAOModelValidator( $fullClassName[ count( $fullClassName ) - 1 ] );\n\n }", "title": "" }, { "docid": "4956c9005a57bf9a4151b2d0af8b2e7b", "score": "0.61667854", "text": "protected function getValidator($request)\n {\n $rules = [\n 'object_id' => 'required|integer',\n 'reviewer_id' => 'required|integer',\n 'review' => 'required',\n 'rating' => 'required|integer|between:1,5',\n 'target' => [\n 'required',\n Rule::in(['product', 'blog'])\n ]\n ];\n \n return Validator::make($request->all(), $rules);\n }", "title": "" }, { "docid": "7b78047b6a024bb15a87bb85055473f3", "score": "0.615666", "text": "protected function validator()\n {\n \treturn Phpfox::getLib('validator');\n }", "title": "" }, { "docid": "af0b496a411e9e550940777139fe6a6e", "score": "0.61559784", "text": "protected function registrationValidator(array $data)\n {\n return $this->validationHelper->getRegistrationValidator($data);\n }", "title": "" }, { "docid": "f6b225ff1f5a4ca914506fb6c0564fdf", "score": "0.6152353", "text": "public function validator() : ValidatorInterface;", "title": "" }, { "docid": "77f91601bb9d9f0f7fe4c34346753e12", "score": "0.61433744", "text": "public function getValidatorFactory(): Factory|null;", "title": "" }, { "docid": "76839ee945dac59e8b34d3814cf5cacc", "score": "0.61423844", "text": "protected function getValidatorInstance()\n\t{\n\t\tif (isset($this->currencies)) {\n\t\t\t// Add new data field before it gets sent to the validator\n\t\t\t$currenciesCodes = collect(explode(',', $this->currencies))->map(function ($value, $key) {\n\t\t\t\treturn trim($value);\n\t\t\t})->filter(function ($value, $key) {\n\t\t\t\treturn !empty($value);\n\t\t\t})->toArray();\n\t\t\t\n\t\t\t$input = [];\n\t\t\t$input['currencies'] = @implode(',', $currenciesCodes);\n\t\t\t\n\t\t\trequest()->merge($input); // Required!\n\t\t\t$this->merge($input);\n\t\t}\n\t\t\n\t\t// Fire the parent getValidatorInstance method\n\t\treturn parent::getValidatorInstance();\n\t}", "title": "" }, { "docid": "c5e02bf3f3cfa06ad78d7dba87e50d20", "score": "0.61356914", "text": "private function getValidatorObject(ServerRequestInterface $request): ?InputFilter\n {\n $routeValidationConfig = $this->optionsExtractor->getOptionsForRequest($request);\n\n if (count($routeValidationConfig) !== 0) {\n $method = strtolower($request->getMethod());\n $validation = array_change_key_case($routeValidationConfig, CASE_LOWER);\n\n if (array_key_exists($method, $validation)) {\n return $this->getInputFilter($validation[$method]);\n }\n\n if (array_key_exists('*', $validation)) {\n return $this->getInputFilter($validation['*']);\n }\n }\n\n // No associated validation\n return null;\n }", "title": "" }, { "docid": "74773beffe23f8f59d98fc9905f07752", "score": "0.6134229", "text": "public function getValidator()\n {\n if ($this->_validator === null) {\n\n if (class_exists('\\Klikasi\\\\Validator\\EtiketaRelEdukia')) {\n\n $this->setValidator(new \\Klikasi\\Validator\\EtiketaRelEdukia);\n }\n }\n\n return $this->_validator;\n }", "title": "" }, { "docid": "b55a3e983e479e0b343e7b568143bdff", "score": "0.61237746", "text": "public function validator()\n {\n\n return UserValidator::class;\n }", "title": "" }, { "docid": "e1adba0ac3cb65227daa4e600452f7b8", "score": "0.6109847", "text": "public function getGlobalValidator() : ?callable {\n return $this->validation['global'] ?? null;\n }", "title": "" }, { "docid": "0cfee9ac1d9a4ac1100b65b3001aeb87", "score": "0.6099453", "text": "public function getValidator(string $type) : ?callable {\n return $this->validation[strtolower($type)] ?? null;\n }", "title": "" }, { "docid": "31376832f261fab8d746df0953a8fa47", "score": "0.60820395", "text": "public function getUseValidator() : ?callable {\n return $this->getAliasValidator();\n }", "title": "" }, { "docid": "87636991fd3641b3991591ec3f70a518", "score": "0.6051084", "text": "public function get($input=array()) {\n\t\treturn new \\PHPixie\\Validate\\Validator($this->pixie, $input);\n\t}", "title": "" }, { "docid": "7e77c21ec2bae3c1951edfb2deb8bd2d", "score": "0.5972567", "text": "public function getValidator()\n {\n if ($this->_validator === null) {\n\n if (class_exists('\\Atezate\\\\Validator\\FileAccess')) {\n\n $this->setValidator(new \\Atezate\\Validator\\FileAccess);\n }\n }\n\n return $this->_validator;\n }", "title": "" }, { "docid": "87019fc9eb35640f4367f464a9462f8b", "score": "0.59532285", "text": "public function validator()\n {\n\n return ResidentialInsuranceValidator::class;\n }", "title": "" }, { "docid": "9c1bc6db54660c406766f53c7594458d", "score": "0.590577", "text": "public function validator()\n {\n return ClassroomValidator::class;\n }", "title": "" }, { "docid": "2d2839c8888ce4601776e95a0ad7a8c9", "score": "0.58945364", "text": "protected function getForm_TypeGuesser_ValidatorService()\n {\n return $this->services['form.type_guesser.validator'] = new \\Symfony\\Component\\Form\\Extension\\Validator\\ValidatorTypeGuesser(${($_ = isset($this->services['validator']) ? $this->services['validator'] : $this->get('validator')) && false ?: '_'});\n }", "title": "" }, { "docid": "b0a026aa53c848bd4af14151eced7cc8", "score": "0.5838168", "text": "public function getValidator() {\n\t\treturn new LessonValidator($this);\n\t}", "title": "" }, { "docid": "800c4bc8335553c9de85d44bf16f239d", "score": "0.58369815", "text": "public function getFirstValidator()\n {\n return $this->validators[0];\n }", "title": "" }, { "docid": "ccb9ced782493cdc368a0b31e5466807", "score": "0.5834349", "text": "protected function getValidatorInstance ()\n {\n $validator = parent::getValidatorInstance ();\n $validator->addCustomAttributes (__ ('approval::validation.attributes'));\n $validator->setCustomMessages (__ ('approval::validation.custom'));\n $validator->addCustomValues (__ ('approval::validation.values'));\n return $validator;\n }", "title": "" }, { "docid": "87e43e87542da13b21fa913b16c68817", "score": "0.582976", "text": "protected function validator(Request $request) {\n return Validator::make($request, [\n 'first_name' => 'required',\n 'last_name' => 'required',\n 'gender' => 'required',\n ]);\n }", "title": "" }, { "docid": "bb963e2eb43ff752440b42879c834115", "score": "0.5822972", "text": "public function getSuperglobalValidator() : ?callable {\n return $this->validation['superglobal'] ?? null;\n }", "title": "" }, { "docid": "f06565f97dd99b5cd782d5c35821c174", "score": "0.58073694", "text": "protected function getValidationFactory()\n\t{\n\t\treturn app('Illuminate\\Contracts\\Validation\\Factory');\n\t}", "title": "" }, { "docid": "e3483832e95a695d3e7c11d80f512d78", "score": "0.5785531", "text": "public function validator()\n {\n\n return LoginValidator::class;\n }", "title": "" }, { "docid": "5b44b21acd9121163b0fa3ca25b6436f", "score": "0.5757714", "text": "private static function getValidatorObject($validator)\n {\n $class = null;\n $isAlias = false;\n if (isset(self::$knownValidators[$validator])) {\n $name = self::$knownValidators[$validator];\n $class = __NAMESPACE__ . \"\\\\{$name}\";\n $isAlias = true;\n }\n\n if (is_null($class) && !class_exists($validator)) {\n throw new InvalidArgumentException(\n \"Unknown validator class. Cannot instantiate '{$validator}'\"\n );\n }\n\n $validatorObject = $isAlias ? new $class : new $validator;\n if (!($validatorObject instanceof ValidatorInterface)) {\n $itf = 'Fsilva\\HttpMessage\\Validator';\n throw new InvalidArgumentException(\n \"'{$validator}' does not implements {$itf}\"\n );\n }\n\n return $validatorObject;\n }", "title": "" }, { "docid": "2d0c0b259735e85233a467794b2473a7", "score": "0.57547766", "text": "public function validator()\n {\n\n return DietValidator::class;\n }", "title": "" }, { "docid": "9433994c8ef0be852999dd32d372e5d2", "score": "0.5751249", "text": "protected function getInstance()\n {\n return new ValidationHandler();\n }", "title": "" }, { "docid": "12c011e7312b631a732b5b7def81ac31", "score": "0.5748842", "text": "protected function getValidateRequestListenerService()\n {\n return $this->services['validate_request_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener();\n }", "title": "" }, { "docid": "12c011e7312b631a732b5b7def81ac31", "score": "0.5748842", "text": "protected function getValidateRequestListenerService()\n {\n return $this->services['validate_request_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener();\n }", "title": "" }, { "docid": "12c011e7312b631a732b5b7def81ac31", "score": "0.5748842", "text": "protected function getValidateRequestListenerService()\n {\n return $this->services['validate_request_listener'] = new \\Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener();\n }", "title": "" }, { "docid": "2408735e461f1ee044f0237fb201b58b", "score": "0.5748371", "text": "protected function getForm_TypeGuesser_ValidatorService()\n {\n return $this->services['form.type_guesser.validator'] = new \\Symfony\\Component\\Form\\Extension\\Validator\\ValidatorTypeGuesser($this->get('validator'));\n }", "title": "" }, { "docid": "788fe1955260df2ea77b45819e84f32d", "score": "0.57440877", "text": "public function getValidator(array $input)\n {\n return Validator::make($input, $this->rules, $this->error_messages);\n }", "title": "" }, { "docid": "863f93d2cf13c833395c95521a06514a", "score": "0.57417685", "text": "protected function registerValidationFactory()\n {\n $this->app->singleton('validator', function ($app) {\n $validator = new \\Illuminate\\Validation\\Factory($app['translator'], $app);\n\n // The validation presence verifier is responsible for determining the existence of\n // values in a given data collection which is typically a relational database or\n // other persistent data stores. It is used to check for \"uniqueness\" as well.\n if (isset($app['db'], $app['validation.presence'])) {\n $validator->setPresenceVerifier($app['validation.presence']);\n }\n\n return $validator;\n });\n }", "title": "" }, { "docid": "0bf598f916648d96c43202b8d86b1412", "score": "0.5739349", "text": "public function validator()\n {\n\n return SysuserValidator::class;\n }", "title": "" }, { "docid": "c4b4261aa7eaab9f5dced8a8796f2402", "score": "0.57224363", "text": "public function getValidatorInstance()\n {\n $validator = parent::getValidatorInstance();\n\n $validator -> after( function() use ( $validator )\n {\n $all = $this -> all();\n $all[ 'user_id' ] = Helper::currentUser() -> user_id;\n $all[ 'code_review_id' ] = $this -> route() -> parameter( 'codeReview' ) -> code_review_id;\n $this -> replace( $all );\n });\n\n return $validator;\n }", "title": "" }, { "docid": "2b9c68a538cb6f0e4cf1243d64fc4865", "score": "0.5712681", "text": "protected function getValidationFactory()\n {\n return app(Factory::class);\n }", "title": "" }, { "docid": "2b9c68a538cb6f0e4cf1243d64fc4865", "score": "0.5712681", "text": "protected function getValidationFactory()\n {\n return app(Factory::class);\n }", "title": "" }, { "docid": "2b9c68a538cb6f0e4cf1243d64fc4865", "score": "0.5712681", "text": "protected function getValidationFactory()\n {\n return app(Factory::class);\n }", "title": "" }, { "docid": "2b9c68a538cb6f0e4cf1243d64fc4865", "score": "0.5712681", "text": "protected function getValidationFactory()\n {\n return app(Factory::class);\n }", "title": "" }, { "docid": "2b9c68a538cb6f0e4cf1243d64fc4865", "score": "0.5712681", "text": "protected function getValidationFactory()\n {\n return app(Factory::class);\n }", "title": "" }, { "docid": "f83d34953b23846e04d11fe5a70ffbc8", "score": "0.5699505", "text": "protected function validator(Request $request)\n {\n return Validator::make($request, [\n 'name' => 'required|string|max:255',\n 'email' => 'required|string|max:255|unique:users',\n 'password' => 'required|string|min:6|confirmed',\n ]);\n }", "title": "" }, { "docid": "d9e24f261e0fd70069f8d4763bf4404e", "score": "0.56890965", "text": "public function getTokenValidator() : TokenValidatorInterface\n {\n return new TokenValidator($this->config->get(\"token\"));\n }", "title": "" }, { "docid": "0fe53365657fa82c718cb2697cf2b294", "score": "0.56866974", "text": "public function getInstance(Constraint $constraint)\n {\n $className = $constraint->validatedBy();\n $id = $this->getServiceIdFromClass($className);\n\n if (!$this->container->hasService($id)) {\n $this->container->setService($id, new $className());\n }\n\n $validator = $this->container->getService($id);\n\n if (!$validator instanceof ConstraintValidatorInterface) {\n throw new \\LogicException('Service ' . $id . ' is not instance of ConstraintValidatorInterface');\n }\n\n return $validator;\n }", "title": "" }, { "docid": "f6d52603b7a3bc66aaadccd7e9e530b8", "score": "0.56856525", "text": "private static function getUserValidator()\r\n\t{\r\n\t\tif(!self::$m_obj_UserValidator)\r\n\t\t{\r\n\t\t\tself::$m_obj_UserValidator = new cUser(true,cUser::C_INT_LOGIN_TYPE_HTTP);\r\n\t\t}\r\n\t\treturn self::$m_obj_UserValidator;\r\n\t}", "title": "" }, { "docid": "fac3d57fa4e68296b4eddc990fd5cefa", "score": "0.567009", "text": "public function getFrontEndValidator();", "title": "" }, { "docid": "163154db55a8d9a9ba3fa601dd0b69b4", "score": "0.5647625", "text": "public function validator()\n {\n return TokenValidator::class;\n }", "title": "" }, { "docid": "fbebda652cd54aacbe19165f43cd559a", "score": "0.56385297", "text": "protected function makeValidator()\n {\n $validator = Validator::make($this->request->all(), $this->validationRules());\n $validator->sometimes('new_password', 'different:current_password', function ($input) {\n return isset($input->current_password);\n });\n\n return $validator;\n }", "title": "" }, { "docid": "0abd5103bfb1fc0150880b02574da04a", "score": "0.5621191", "text": "function validation_manager()\n {\n return app(ValidationManager::class);\n }", "title": "" }, { "docid": "913be41c55b85910acbd638347d9c999", "score": "0.5618038", "text": "public function validator()\n {\n\n return EOInsuranceValidator::class;\n }", "title": "" }, { "docid": "fd90534832362d6cef2f044018824bd0", "score": "0.56119895", "text": "public function validator()\n {\n\n return MateriaiValidator::class;\n }", "title": "" }, { "docid": "44361b3c20f458dedd4d8a138a638f84", "score": "0.55987954", "text": "public function validator()\n {\n return UserUnitValidator::class;\n }", "title": "" }, { "docid": "30242b9237c6421f2d8ee7230399064b", "score": "0.5597914", "text": "public function validator()\n {\n\n return TypeValidator::class;\n }", "title": "" }, { "docid": "43f782fd278fbf28c2c1452c66f7a6c2", "score": "0.55941844", "text": "private function getValidator(array $input)\r\n {\r\n $this->validatorFactory->setRenderer(new MessagesOnlyRenderer());\r\n\r\n return $this->validatorFactory->build(array(\r\n 'input' => array(\r\n 'source' => $input,\r\n 'definition' => array(\r\n 'query' => new Pattern\\Query()\r\n )\r\n )\r\n ));\r\n }", "title": "" }, { "docid": "78590d758da4d4cc22c3c9f7582328b1", "score": "0.559212", "text": "public function validator()\n {\n\n return DuracaoValidator::class;\n }", "title": "" }, { "docid": "a3221db080d546653283523c2ad75429", "score": "0.5589698", "text": "protected function getAnnotationValidator() {\n $reader = new AnnotationReader();\n $classReflection = new \\ReflectionClass($this->object);\n $propertiesReflection = $classReflection->getProperties();\n\n foreach ($propertiesReflection as $property) {\n $annotations = $reader->getPropertyAnnotations($property);\n $propertyName = $property->getName();\n foreach ($annotations as $annotation) {\n if ($annotation instanceof ValidatorInterface) {\n $this->addValidator($propertyName, $annotation);\n }\n }\n }\n }", "title": "" }, { "docid": "36df4aedcba49c13dfd604c268f3d70d", "score": "0.55728346", "text": "protected function _createValidator()\n {\n $mock = $this->mock('Dhii\\Validation\\ValidatorInterface')\n ->validate()\n ->new();\n\n return $mock;\n }", "title": "" }, { "docid": "598b3c9930bd932521c9b445e25472bf", "score": "0.5561171", "text": "public function validatedBy ()\n {\n return get_class($this).'Validator';\n }", "title": "" }, { "docid": "e6f59c2a209a72465979cc06d977deec", "score": "0.5552483", "text": "protected function validator(Request $request)\n {\n return Validator::make($request, [\n 'email' => 'required|email|max:255|unique:users',\n 'password' => 'required|min:8|confirmed',\n 'firstname' => 'required',\n 'lastName' =>'required',\n 'mobile_number' => 'required',\n 'role' => 'required',\n\n ]);\n }", "title": "" }, { "docid": "fefb53628c1660a778947ae92c69ad31", "score": "0.5548532", "text": "public function getValidatedParam($name, $validator) {\n\t\treturn v::validate($this->getParam($name), $validator);\n\t}", "title": "" }, { "docid": "2fdc9c52498b520ef7ff990b6e63b116", "score": "0.5548132", "text": "protected function validator(Resquest $resquest)\n {\n return Validator::make($request, [\n 'name' => 'required|string|max:255',\n 'email' => 'required|string|email|max:255|unique:users',\n 'password' => 'required|string|min:6|confirmed',\n 'rg' => 'required|string|max:9|unique:users',\n 'cpf' => 'required|string|max:15|unique:users',\n ]);\n }", "title": "" }, { "docid": "bd20f9ef3b1b22c815b897109f72225e", "score": "0.5531519", "text": "public function validator()\n {\n\n return ActivityValidator::class;\n }", "title": "" }, { "docid": "c6fe38b08ae9c20b021810124a9ff332", "score": "0.5523697", "text": "public function getValidator($data = null, $uniqueRules = true, $context = null, $rules = [], $customMessages = [], $customAttributes = []);", "title": "" }, { "docid": "b5807d613aaf1758d1889eb9aad5c55d", "score": "0.5513418", "text": "public function validator()\n {\n\n return RoomValidator::class;\n }", "title": "" }, { "docid": "f1d6d6c6dc3a9358d5b57ffd57802647", "score": "0.55126214", "text": "public function validator()\n {\n\n return TemplatingValidator::class;\n }", "title": "" }, { "docid": "7421df57b7ce336860e638cb335fa32a", "score": "0.55011415", "text": "public function getFrontendCreateValidator() {\n\t\treturn ElementalFrontendCreateValidator::create();\n\t}", "title": "" }, { "docid": "090d944c4829afb2fc7b5773442080ce", "score": "0.54992837", "text": "public static function getValidators()\n {\n if (isset(static::$validators)) {\n return static::$validators;\n }\n\n // To match the route, we will use a chain of responsibility pattern with the\n // validator implementations. We will spin through each one making sure it\n // passes and then we will know if the route as a whole matches request.\n return static::$validators = [\n new UriValidator(),\n new MethodValidator(),\n new SchemeValidator(),\n new HostValidator()\n ];\n }", "title": "" }, { "docid": "6b155e2b4e10fbac799df2a57ee92c3f", "score": "0.54961014", "text": "public function validator()\n {\n return EntranceValidator::class;\n }", "title": "" }, { "docid": "2d379a227ac07dd0118780af46105e06", "score": "0.54941976", "text": "public function validator()\n {\n\n return SpecificationValidator::class;\n }", "title": "" }, { "docid": "7680bdfd492daf4aace4695667b8ae95", "score": "0.54935896", "text": "public function buildRequestValidatorSpec()\n {\n // TODO figure out path to get this to recognise properly\n // return new Validation(Validation::VALIDATE_QUERY_PARAMS);\n return new NoValidation();\n }", "title": "" } ]
b55a86a6438999dd529300a1090abae1
PHP's standard parse_url( ) looks useful. It splits apart a URL and returns an associative array containing the scheme, host, path, and so on. It works well on simple URLs like " However, it has problems parsing complex URLs, like " It is confused by some relative URLs, such as "//example.com/index.htm". And it doesn't properly handle URLs using IPv6 addresses. The parser also is not as strict as it should be and will allow illegal characters and invalid URL structure. This makes it hard to use parse_url( ) reliably for validating links in link checkers and other tools.
[ { "docid": "1a865fed1f51babfbdef9702778bad99", "score": "0.6258441", "text": "public function split_url($url, $decode = true)\n\t{\n\t\t$parts = [];\n\t\t$xunressub = 'a-zA-Z\\d\\-._~\\!$&\\'()*+,;=';\n\t\t$xpchar = $xunressub . ':@%';\n\n\t\t$xscheme = '([a-zA-Z][a-zA-Z\\d+-.]*)';\n\n\t\t$xuserinfo = '(([' . $xunressub . '%]*)' .\n\t\t\t'(:([' . $xunressub . ':%]*))?)';\n\n\t\t$xipv4 = '(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})';\n\n\t\t$xipv6 = '(\\[([a-fA-F\\d.:]+)\\])';\n\n\t\t$xhost_name = '([a-zA-Z\\d-.%]+)';\n\n\t\t$xhost = '(' . $xhost_name . '|' . $xipv4 . '|' . $xipv6 . ')';\n\t\t$xport = '(\\d*)';\n\t\t$xauthority = '((' . $xuserinfo . '@)?' . $xhost .\n\t\t\t'?(:' . $xport . ')?)';\n\n\t\t$xslash_seg = '(/[' . $xpchar . ']*)';\n\t\t$xpath_authabs = '((//' . $xauthority . ')((/[' . $xpchar . ']*)*))';\n\t\t$xpath_rel = '([' . $xpchar . ']+' . $xslash_seg . '*)';\n\t\t$xpath_abs = '(/(' . $xpath_rel . ')?)';\n\t\t$xapath = '(' . $xpath_authabs . '|' . $xpath_abs .\n\t\t\t'|' . $xpath_rel . ')';\n\n\t\t$xqueryfrag = '([' . $xpchar . '/?' . ']*)';\n\n\t\t$xurl = '^(' . $xscheme . ':)?' . $xapath . '?' .\n\t\t\t'(\\?' . $xqueryfrag . ')?(#' . $xqueryfrag . ')?$';\n\n\n\t\t// Split the URL into components.\n\t\tif (!preg_match('!' . $xurl . '!', $url, $m)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!empty($m[2])) {\n\t\t\t$parts['scheme'] = strtolower($m[2]);\n\t\t}\n\n\t\tif (!empty($m[7])) {\n\t\t\tif (isset($m[9])) {\n\t\t\t\t$parts['user'] = $m[9];\n\t\t\t} else {\n\t\t\t\t$parts['user'] = '';\n\t\t\t}\n\t\t}\n\t\tif (!empty($m[10])) {\n\t\t\t$parts['pass'] = $m[11];\n\t\t}\n\n\t\tif (!empty($m[13])) {\n\t\t\t$h = $parts['host'] = $m[13];\n\t\t} elseif (!empty($m[14])) {\n\t\t\t$parts['host'] = $m[14];\n\t\t} elseif (!empty($m[16])) {\n\t\t\t$parts['host'] = $m[16];\n\t\t} elseif (!empty($m[5])) {\n\t\t\t$parts['host'] = '';\n\t\t}\n\t\tif (!empty($m[17])) {\n\t\t\t$parts['port'] = $m[18];\n\t\t}\n\n\t\tif (!empty($m[19])) {\n\t\t\t$parts['path'] = $m[19];\n\t\t} elseif (!empty($m[21])) {\n\t\t\t$parts['path'] = $m[21];\n\t\t} elseif (!empty($m[25])) {\n\t\t\t$parts['path'] = $m[25];\n\t\t}\n\n\t\tif (!empty($m[27])) {\n\t\t\t$parts['query'] = $m[28];\n\t\t}\n\t\tif (!empty($m[29])) {\n\t\t\t$parts['fragment'] = $m[30];\n\t\t}\n\n\t\tif (!$decode) {\n\t\t\treturn $parts;\n\t\t}\n\t\tif (!empty($parts['user'])) {\n\t\t\t$parts['user'] = rawurldecode($parts['user']);\n\t\t}\n\t\tif (!empty($parts['pass'])) {\n\t\t\t$parts['pass'] = rawurldecode($parts['pass']);\n\t\t}\n\t\tif (!empty($parts['path'])) {\n\t\t\t$parts['path'] = rawurldecode($parts['path']);\n\t\t}\n\t\tif (isset($h)) {\n\t\t\t$parts['host'] = rawurldecode($parts['host']);\n\t\t}\n\t\tif (!empty($parts['query'])) {\n\t\t\t$parts['query'] = rawurldecode($parts['query']);\n\t\t}\n\t\tif (!empty($parts['fragment'])) {\n\t\t\t$parts['fragment'] = rawurldecode($parts['fragment']);\n\t\t}\n\t\treturn $parts;\n\t}", "title": "" } ]
[ { "docid": "aab81f6b63a85a187dd9ac4380ad1c5b", "score": "0.76315045", "text": "public static function parse($url)\n {\n $options = [\n 'path' => null,\n 'query' => [],\n 'fragment' => '',\n ];\n\n // External URLs: not using parse_url() here, so we do not have to rebuild\n // the scheme, host, and path without having any use for it.\n // The URL is considered external if it contains the '://' delimiter. Since\n // a URL can also be passed as a query argument, we check if this delimiter\n // appears in front of the '?' query argument delimiter.\n $scheme_delimiter_position = strpos($url, '://');\n $query_delimiter_position = strpos($url, '?');\n if ($scheme_delimiter_position !== false && ($query_delimiter_position === false || $scheme_delimiter_position < $query_delimiter_position)) {\n // Split off the fragment, if any.\n if (strpos($url, '#') !== false) {\n list($url, $options['fragment']) = explode('#', $url, 2);\n }\n\n // Split off everything before the query string into 'path'.\n $parts = explode('?', $url, 2);\n\n // Don't support URLs without a path, like 'http://'.\n list(, $path) = explode('://', $parts[0], 2);\n if ($path != '') {\n $options['path'] = $parts[0];\n }\n // If there is a query string, transform it into keyed query parameters.\n if (isset($parts[1])) {\n parse_str($parts[1], $options['query']);\n }\n } // Internal URLs.\n else {\n // parse_url() does not support relative URLs, so make it absolute. For\n // instance, the relative URL \"foo/bar:1\" isn't properly parsed.\n $parts = parse_url('http://example.com/' . $url);\n // Strip the leading slash that was just added.\n $options['path'] = substr($parts['path'], 1);\n if (isset($parts['query'])) {\n parse_str($parts['query'], $options['query']);\n }\n if (isset($parts['fragment'])) {\n $options['fragment'] = $parts['fragment'];\n }\n }\n\n return $options;\n }", "title": "" }, { "docid": "5ff5e5beebba00a38df492ce956b1f2a", "score": "0.74548906", "text": "function parse_url( $url ) {\n\t\t$r = \"^(?:(?P<scheme>\\w+)://)?\";\n\t\t$r .= \"(?:(?P<login>\\w+):(?P<pass>\\w+)@)?\";\n\t\t$r .= \"(?P<host>(?:(?P<subdomain>[-\\w\\.]+)\\.)?\" . \"(?P<domain>[-\\w]+\\.(?P<extension>\\w+)))\";\n\t\t$r .= \"(?::(?P<port>\\d+))?\";\n\t\t$r .= \"(?P<path>[\\w/]*/(?P<file>\\w+(?:\\.\\w+)?)?)?\";\n\t\t$r .= \"(?:\\?(?P<arg>[\\w=&]+))?\";\n\t\t$r .= \"(?:#(?P<anchor>\\w+))?\";\n\t\t$r = \"!$r!\"; // Delimiters\n\n\t\tpreg_match( $r, $url, $out );\n\n\t\treturn $out;\n\t}", "title": "" }, { "docid": "ca23a8ad4d8b5ac711f4258a88b44218", "score": "0.742432", "text": "public function parseURL()\n {\n if (isset($_GET['url'])) {\n $url = trim( $_GET['url'], '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n return $url;\n }\n }", "title": "" }, { "docid": "2ff3dc195a1602284f99b80a38ac8658", "score": "0.73762447", "text": "public function parseURL() {\n if(isset($_GET['url'])) {\n $url = rtrim($_GET['url'], '/');\n //rtrim is a function, it'll delete the last item\n\n //clean the url form unexpected character\n $url = filter_var($url, FILTER_SANITIZE_URL);\n\n //break down the url per '/'\n $url = explode('/', $url);\n\n return $url;\n }\n }", "title": "" }, { "docid": "11f2b7195225a16dc4efae197c77ed6b", "score": "0.7368596", "text": "public function parseUrl()\n {\n if (isset($_GET['url'])) {\n $url = $_GET['url'];\n $url = rtrim($url, '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n return $url;\n }\n }", "title": "" }, { "docid": "c18ffc4b9099587581d9e03aadc5722c", "score": "0.73376966", "text": "private function _parseUrl($url) {\n\t\tif (!is_array($url)) {\n\t\t\t$url = parse_url($url);\n\t\t}\n\t\t\n\t\t// normalize ports where possible\n\t\t$ports = array(20=>'ftp', 21=>'ftp', 22=>'ssh', 80=>'http', 443=>'https');\n\t\t\n\t\tif (!isset($url['scheme']) && !empty($url['port'])) {\n\t\t\tif (isset($ports[$url['port']])) {\n\t\t\t\t$url['scheme'] = $ports[$url['port']];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$url['scheme'] = 'http';\n\t\t\t}\n\t\t}\n\t\telseif (!isset($url['port']) && !empty($url['scheme'])) {\n\t\t\t$schemes = array_flip($ports);\n\t\t\tif (isset($schemes[$url['scheme']])) {\n\t\t\t\t$url['port'] = $schemes[$url['scheme']];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$url['port'] = 80;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// normalize http auth keys\n\t\t$auth = array('username'=>'', 'user'=>'', 'password'=>'', 'pass'=>'');\n\t\t\n\t\tif (array_intersect_key($url,$auth)) {\n\t\t\t$url += $auth;\n\t\t\t\n\t\t\t$url['username'] = $url['username'] ?: $url['user'] ?: '';\n\t\t\t$url['password'] = $url['password'] ?: $url['pass'] ?: '';\n\t\t\t\n\t\t\tunset($url['user'],$url['pass']);\n\t\t}\n\t\t\n\t\tunset($url['fragment']);\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "63204f9d4d95eaa32098c4c8242d998b", "score": "0.7310453", "text": "public function parseUrl() {\n if(isset($_GET['url'])) {\n return $url = explode('/', filter_var(rtrim($_GET['url'], '/'), FILTER_SANITIZE_URL));\n }\n }", "title": "" }, { "docid": "120d865627c44a34d1e386aef96aefa2", "score": "0.7284918", "text": "private function parseUrl()\n {\n $url = [];\n if (isset($_GET['url'])) {\n $url = explode('/', rtrim($_GET['url']));\n }\n return $url;\n }", "title": "" }, { "docid": "a492ef6fa1ecfe35e800203a607d02c5", "score": "0.7222675", "text": "public static function parseUrl()\n {\n /**\n * the GET[url]\n * is passed through the HTACCESS\n * to configure it\n */\n if (isset($_GET['url'])) \n {\n return $url = explode('/', filter_var(rtrim($_GET['url'], '/'), FILTER_SANITIZE_URL));\n // echo $url; \n }\n }", "title": "" }, { "docid": "d45debc3521ca0970feed69ef69c62c0", "score": "0.72171307", "text": "public function parseUrl() {\n\t\t\t$url = '/';\n\n\t\t\tif (isset($_GET['url'])) {\n\t\t\t\t$url .= $_GET['url'];\n\t\t\t}\n\t\t\t\n\t\t\t$url = array_values(array_filter(explode('/', $url)));\n\n\t\t\treturn $url;\n\t\t}", "title": "" }, { "docid": "c820e13eb58ca8e4bdd4d97e0b5b4ad2", "score": "0.7186326", "text": "function geturlarray($u) {\n $o = parse_url($u);\n if (!isset($o[\"scheme\"])) { $o = parse_url(\"http://\" . $u); }\n if (!isset($o[\"path\"])) { $o[\"path\"] = \"/\"; }\n return $o;\n}", "title": "" }, { "docid": "ec12f99edb7bedeb35628824639c780c", "score": "0.7177042", "text": "function url_parser($url)\n{\n $url = preg_replace('/(\\/{2,})/', '//', $url);\n\n $parse_url = parse_url($url);\n\n if (empty($parse_url[\"scheme\"])) {\n $parse_url[\"scheme\"] = \"http\";\n }\n if (empty($parse_url[\"host\"]) && !empty($parse_url[\"path\"])) {\n // Strip slash from the beginning of path\n $parse_url[\"host\"] = ltrim($parse_url[\"path\"], '\\/');\n $parse_url[\"path\"] = \"\";\n }\n\n $return_url = \"\";\n\n // Check if scheme is correct\n if (!in_array($parse_url[\"scheme\"], array(\"http\", \"https\", \"gopher\"))) {\n $return_url .= 'http' . '://';\n } else {\n $return_url .= $parse_url[\"scheme\"] . '://';\n }\n\n // Check if the right amount of \"www\" is set.\n $explode_host = explode(\".\", $parse_url[\"host\"]);\n\n // Remove empty entries\n $explode_host = array_filter($explode_host);\n // And reassign indexes\n $explode_host = array_values($explode_host);\n\n // Contains subdomain\n if (count($explode_host) > 2) {\n // Check if subdomain only contains the letter w(then not any other subdomain).\n if (substr_count($explode_host[0], 'w') == strlen($explode_host[0])) {\n // Replace with \"www\" to avoid \"ww\" or \"wwww\", etc.\n $explode_host[0] = \"www\";\n }\n }\n $return_url .= implode(\".\", $explode_host);\n\n if (!empty($parse_url[\"port\"])) {\n $return_url .= \":\" . $parse_url[\"port\"];\n }\n if (!empty($parse_url[\"path\"])) {\n $return_url .= $parse_url[\"path\"];\n }\n if (!empty($parse_url[\"query\"])) {\n $return_url .= '?' . $parse_url[\"query\"];\n }\n if (!empty($parse_url[\"fragment\"])) {\n $return_url .= '#' . $parse_url[\"fragment\"];\n }\n\n\n return $return_url;\n}", "title": "" }, { "docid": "baa414869420d2814f82861be2e99969", "score": "0.70592475", "text": "function j_parseUrl($url) \r\n {\r\n $strict = '/^(?:([^:\\/?#]+):)?(?:\\/\\/\\/?((?:(([^:@]*):?([^:@]*))?@)?([^:\\/?#]*)(?::(\\d*))?))?(((?:\\/(\\w:))?((?:[^?#\\/]*\\/)*)([^?#]*))(?:\\?([^#]*))?(?:#(.*))?)/';\r\n $loose = '/^(?:(?![^:@]+:[^:@\\/]*@)([^:\\/?#.]+):)?(?:\\/\\/\\/?)?((?:(([^:@]*):?([^:@]*))?@)?([^:\\/?#]*)(?::(\\d*))?)(((?:\\/(\\w:))?(\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/';\r\n preg_match($loose, $url, $match);\r\n if(empty($match))\r\n {\r\n //As odd as its sounds, we'll fall back to strict (as technically its more correct and so may salvage completely mangled urls)\r\n unset($match);\r\n preg_match($strict, $url, $match);\r\n }\r\n $parts = array(\"source\"=>'',\"scheme\"=>'',\"authority\"=>'',\"userinfo\"=>'',\"user\"=>'',\"password\"=>'',\"host\"=>'',\"port\"=>'',\"relative\"=>'',\"path\"=>'',\"drive\"=>'',\"directory\"=>'',\"file\"=>'',\"query\"=>'',\"fragment\"=>'');\r\n switch (count ($match)) { \r\n case 15: $parts['fragment'] = $match[14];\r\n case 14: $parts['query'] = $match[13];\r\n case 13: $parts['file'] = $match[12];\r\n case 12: $parts['directory'] = $match[11];\r\n case 11: $parts['drive'] = $match[10];\r\n case 10: $parts['path'] = $match[9];\r\n case 9: $parts['relative'] = $match[8];\r\n case 8: $parts['port'] = $match[7];\r\n case 7: $parts['host'] = $match[6];\r\n case 6: $parts['password'] = $match[5];\r\n case 5: $parts['user'] = $match[4];\r\n case 4: $parts['userinfo'] = $match[3];\r\n case 3: $parts['authority'] = $match[2];\r\n case 2: $parts['scheme'] = $match[1];\r\n case 1: $parts['source'] = $match[0];\r\n }\r\n return $parts;\r\n }", "title": "" }, { "docid": "b0eb6746bb92b4ae3ef8969cca470098", "score": "0.70416516", "text": "public function parseUrl(){\r\n\t\tif (isset($_GET['url'])) {\r\n\t\t\t//return array of controller/method/params/..... with sanitizing '/'\r\n\t\t\treturn $url = explode('/',filter_var(rtrim($_GET['url'],'/'), FILTER_SANITIZE_URL));\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c3cf1b872d2409e4ab9a1e912896e0de", "score": "0.6791999", "text": "public static function parse_url($url)\r\n\t{\r\n\t\t$result = array();\r\n\t\t// Build arrays of values we need to decode before parsing\r\n\t\t$entities = array('%21', '%2A', '%27', '%28', '%29', '%3B', '%3A', '%40', '%26', '%3D', '%24', '%2C', '%2F', '%3F', '%25', '%23', '%5B',\r\n\t\t\t'%5D');\r\n\t\t$replacements = array('!', '*', \"'\", \"(\", \")\", \";\", \":\", \"@\", \"&\", \"=\", \"$\", \",\", \"/\", \"?\", \"%\", \"#\", \"[\", \"]\");\r\n\t\t// Create encoded URL with special URL characters decoded so it can be parsed\r\n\t\t// All other characters will be encoded\r\n\t\t$encodedURL = str_replace($entities, $replacements, urlencode($url));\r\n\t\t// Parse the encoded URL\r\n\t\t$encodedParts = parse_url($encodedURL);\r\n\t\t// Now, decode each value of the resulting array\r\n\t\tforeach ($encodedParts as $key => $value)\r\n\t\t{\r\n\t\t\t$result[$key] = urldecode($value);\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "8081df98e62f66a2903cb7d5335db7fe", "score": "0.6772324", "text": "public static function parse(string $url): array {\n\t\t$url = trim($url);\n\t\tif (preg_match('%^[a-z][a-z0-9]*://.+|^mailto:.+@.+%', strtolower($url)) === 0) {\n\t\t\tthrow new SyntaxException('Not a URL');\n\t\t}\n\t\tif (strtolower(substr($url, 0, 7)) === 'file://') {\n\t\t\t$result = ['scheme' => 'file', 'host' => '', 'path' => substr($url, 7), ];\n\t\t} else {\n\t\t\t$result = parse_url($url);\n\t\t\tif (!is_array($result)) {\n\t\t\t\tthrow new SyntaxException('parse_url({url}) failed {type}', [\n\t\t\t\t\t'type' => Types::type($result), 'url' => $url,\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n\t\tforeach ($result as $k => $v) {\n\t\t\t$result[$k] = urldecode(strval($v));\n\t\t}\n\t\t$result['scheme'] = strtolower($result['scheme'] ?? '');\n\t\tif ($result['scheme'] === 'mailto' && array_key_exists('path', $result)) {\n\t\t\t$path = $result['path'];\n\t\t\tunset($result['path']);\n\t\t\t[$user, $host] = StringTools::reversePair($path, '@', '', $path);\n\t\t\tif ($user) {\n\t\t\t\t$result['user'] = $user;\n\t\t\t}\n\t\t\tif ($host) {\n\t\t\t\t$result['host'] = $host;\n\t\t\t}\n\t\t}\n\t\t$result['url'] = URL::stringify($result);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "55d32f3860e3604ed626acfe73954815", "score": "0.673143", "text": "function unparse_url($parsed_url)\n{\n $scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';\n $host = isset($parsed_url['host']) ? $parsed_url['host'] : '';\n $port = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';\n $user = isset($parsed_url['user']) ? $parsed_url['user'] : '';\n $pass = isset($parsed_url['pass']) ? ':' . $parsed_url['pass'] : '';\n $pass = ($user || $pass) ? \"$pass@\" : '';\n $path = isset($parsed_url['path']) ? $parsed_url['path'] : '';\n $query = isset($parsed_url['query']) ? '?' . $parsed_url['query'] : '';\n $fragment = isset($parsed_url['fragment']) ? '#' . $parsed_url['fragment'] : '';\n return \"$scheme$user$pass$host$port$path$query$fragment\"; \n}", "title": "" }, { "docid": "3bbd6bae2bdae99881ceaec7233d4528", "score": "0.67273706", "text": "function crack_url( $url )\n{\n $fields = array( 'scheme','user','pass','host','port','path','query','fragment' );\n $m = array();\n if( preg_match( \"/^((?P<scheme>\\w+):\\/\\/)?((?P<user>.+?)(:(?P<pass>.+?))?@)?(?P<host>[^\\/:?]+)?(:(?P<port>\\d+))?(?P<path>.+?)?([?](?P<query>.*?))?([#](?P<fragment>.*?))?$/\",$url,$m ) > 0 ) {\n $ret = array();\n foreach( $fields as $f ) {\n $ret[$f] = arr_get( $f, $m, '' );\n }\n return $ret;\n } else {\n /* actually, I'm not sure the preg_match can ever fail... every part is optional... */\n return FALSE;\n }\n}", "title": "" }, { "docid": "86584e1212e4891f8399a013cf2fd931", "score": "0.6710648", "text": "public static function urlParser($url) {\n if (preg_match('/^http:\\/\\//', $url)) {\n return $url;\n } else {\n return \"http://\" . $url;\n }\n \n }", "title": "" }, { "docid": "822948a43984b909ba34fe1f23837d81", "score": "0.6697624", "text": "public static function parseURL($url)\n {\n return \\parse_url($url);\n }", "title": "" }, { "docid": "a534a9072972493428f2ad30b3424044", "score": "0.6671333", "text": "function parse_url_ext ($url) {\n\tif(strpos($url, 'http') === false) {\n\t\t$parsed = parse_url('//' . $url);\n\t} else {\n\t\t$parsed = parse_url($url);\n\t}\n\treturn $parsed;\n}", "title": "" }, { "docid": "89d90f9c88c1e893cc03a95c0fb61354", "score": "0.6657881", "text": "public function parseUrl(){\n // Store get data\n $this->gets = $_GET;\n\n // Sanitize URL\n if (isset($this->gets['url'])){\n $this->url = filter_var(rtrim($this->gets['url'], '/'), FILTER_SANITIZE_URL);\n $this->urls = explode('/', $this->url);\n unset($this->gets['url']);\n }\n }", "title": "" }, { "docid": "3969a753ecf21c65ed43f0df61595cc5", "score": "0.66229165", "text": "public function testParseUrlSyntaxComponents()\n {\n // The following are two example URIs and their component parts:\n //\n // foo://example.com:8042/over/there?name=ferret#nose\n // \\_/ \\______________/\\_________/ \\_________/ \\__/\n // | | | | |\n // scheme authority path query fragment\n $input_url = 'foo://example.com:8042/over/there?name=ferret#nose';\n $expected_parts = [\n 'scheme' => 'foo',\n 'host' => 'example.com',\n 'port' => '8042',\n 'path' => '/over/there',\n 'query' => 'name=ferret',\n 'fragment' => 'nose',\n ];\n\n $this->assertEquals($expected_parts, parse_url($input_url));\n\n $result = Url::parseUrl($input_url);\n $this->assertEquals($expected_parts, $result);\n }", "title": "" }, { "docid": "0fc71c5a626633f81109857a547183b5", "score": "0.6608732", "text": "public static function parse_url($url)\n {\n $url = self::cast($url);\n $r = x::merge_arrays(parse_url($url), ['url' => $url,'query' => '','params' => []]);\n if ( strpos($url,'?') > 0 )\n {\n $p = explode('?',$url);\n $r['url'] = $p[0];\n $r['query'] = $p[1];\n $ps = explode('&',$r['query']);\n foreach ( $ps as $p ){\n $px = explode('=',$p);\n $r['params'][$px[0]] = $px[1];\n }\n }\n return $r;\n }", "title": "" }, { "docid": "95185f986b2812e4ac16eb273d49f14d", "score": "0.6537431", "text": "public function parseUrl() {\n if(isset($_GET['url'])) {\n $this->url = explode('/', rtrim($_GET['url'], '/'));\n }\n }", "title": "" }, { "docid": "abbfc51068904cb84e7f4bd7003e6ae3", "score": "0.6532857", "text": "function normalize($url) {\n $parts = parse_url($url);\n\n if(array_key_exists('path', $parts) && $parts['path'] == '')\n return false;\n\n // parse_url returns just \"path\" for naked domains\n if(count($parts) == 1 && array_key_exists('path', $parts)) {\n $parts['host'] = $parts['path'];\n unset($parts['path']);\n }\n\n if(!array_key_exists('scheme', $parts))\n $parts['scheme'] = 'http';\n\n if(!array_key_exists('path', $parts))\n $parts['path'] = '/';\n\n // Invalid scheme\n if(!in_array($parts['scheme'], array('http','https')))\n return false;\n\n return build_url($parts);\n}", "title": "" }, { "docid": "dfefddd9b52a32fa4a994aa2a9449fab", "score": "0.6520543", "text": "function urlunparse($scheme, $host, $port = null, $path = '/',\n$query = '', $fragment = '')\n{\nif (!$scheme) {\n$scheme = 'http';\n}\nif (!$host) {\nreturn false;\n}\nif (!$path) {\n$path = '';\n}\n$result = $scheme . \"://\" . $host;\nif ($port) {\n$result .= \":\" . $port;\n}\n$result .= $path;\nif ($query) {\n$result .= \"?\" . $query;\n}\nif ($fragment) {\n$result .= \"#\" . $fragment;\n}\nreturn $result;\n}", "title": "" }, { "docid": "734dc6b91901b342f6768d48e6071afb", "score": "0.6514119", "text": "public static function parseUrl($url) {\n\t\t$result = array();\n\t\t// Build arrays of values we need to decode before parsing\n\t\t$entities = array('%21', '%2A', '%27', '%28', '%29', '%3B', '%3A', '%40', '%26', '%3D', '%24', '%2C', '%2F', '%3F', '%25', '%23', '%5B', '%5D');\n\t\t$replacements = array('!', '*', \"'\", \"(\", \")\", \";\", \":\", \"@\", \"&\", \"=\", \"$\", \",\", \"/\", \"?\", \"%\", \"#\", \"[\", \"]\");\n\t\t// Create encoded URL with special URL characters decoded so it can be parsed\n\t\t// All other characters will be encoded\n\t\t$encodedURL = str_replace($entities, $replacements, urlencode($url));\n\t\t// Parse the encoded URL\n\t\t$encodedParts = parse_url($encodedURL);\n\t\t// Now, decode each value of the resulting array\n\t\tforeach ($encodedParts as $key => $value) {\n\t\t\t$result[$key] = urldecode($value);\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "108bcab2902468e549321a31dca831de", "score": "0.6508268", "text": "public function getURLInfo($url) {\t\t\t\t\t\t\n\t\t$url_info = parse_url(str_replace('&amp;', '&', $url));\n\t\t\n\t\t$url_info['scheme'] = isset($url_info['scheme']) ? $url_info['scheme'] . '://' : '';\n\t\t$url_info['user'] = isset($url_info['user']) ? $url_info['user'] : '';\n\t\t$url_info['pass'] = isset($url_info['pass']) ? ':' . $url_info['pass'] : '';\n\t\t$url_info['pass'] = ($url_info['user'] || $url_info['pass']) ? $url_info['pass'] . '@' : ''; \n\t\t$url_info['host'] = isset($url_info['host']) ? $url_info['host'] : '';\n\t\t$url_info['port'] = isset($url_info['port']) ? ':' . $url_info['port'] : '';\n\t\t$url_info['path'] = isset($url_info['path']) ? $url_info['path'] : '';\t\t\n\t\t\n\t\t$url_info['data'] = array();\n\t\t\n\t\tif (isset($url_info['query'])) {\n\t\t\tparse_str($url_info['query'], $url_info['data']);\n\t\t}\n\t\t\n\t\t$url_info['query'] = isset($url_info['query']) ? '?' . $url_info['query'] : '';\n\t\t$url_info['fragment'] = isset($url_info['fragment']) ? '#' . $url_info['fragment'] : '';\n\t\t\t\t\t\t\n\t\treturn $url_info;\n\t}", "title": "" }, { "docid": "7c2863931de9dd9b04bbfed72d82d792", "score": "0.64711124", "text": "public static function split_url( $url, $decode=TRUE )\n\t{\n\t\t$xunressub = 'a-zA-Z\\d\\-._~\\!$&\\'()*+,;=';\n\t\t$xpchar = $xunressub . ':@%';\n\n\t\t// Scheme from RFC3986.\n\t\t$xscheme = '([a-zA-Z][a-zA-Z\\d+-.]*)';\n\n\t\t// User info (user + password) from RFC3986.\n\t\t$xuserinfo = '(([' . $xunressub . '%]*)' .\n\t\t '(:([' . $xunressub . ':%]*))?)';\n\n\t\t// IPv4 from RFC3986 (without digit constraints).\n\t\t$xipv4 = '(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})';\n\n\t\t// IPv6 from RFC2732 (without digit and grouping constraints).\n\t\t$xipv6 = '(\\[([a-fA-F\\d.:]+)\\])';\n\n\t\t// Host name from RFC1035. Technically, must start with a letter.\n\t\t// Relax that restriction to better parse URL structure, then\n\t\t// leave host name validation to application.\n\t\t$xhost_name = '([a-zA-Z\\d-.%]+)';\n\n\t\t// Authority from RFC3986. Skip IP future.\n\t\t$xhost = '(' . $xhost_name . '|' . $xipv4 . '|' . $xipv6 . ')';\n\t\t$xport = '(\\d*)';\n\t\t$xauthority = '((' . $xuserinfo . '@)?' . $xhost .\n\t\t\t '?(:' . $xport . ')?)';\n\n\t\t// Path from RFC3986. Blend absolute & relative for efficiency.\n\t\t$xslash_seg = '(/[' . $xpchar . ']*)';\n\t\t$xpath_authabs = '((//' . $xauthority . ')((/[' . $xpchar . ']*)*))';\n\t\t$xpath_rel = '([' . $xpchar . ']+' . $xslash_seg . '*)';\n\t\t$xpath_abs = '(/(' . $xpath_rel . ')?)';\n\t\t$xapath = '(' . $xpath_authabs . '|' . $xpath_abs .\n\t\t\t\t '|' . $xpath_rel . ')';\n\n\t\t// Query and fragment from RFC3986.\n\t\t$xqueryfrag = '([' . $xpchar . '/?' . ']*)';\n\n\t\t// URL.\n\t\t$xurl = '^(' . $xscheme . ':)?' . $xapath . '?' .\n\t\t '(\\?' . $xqueryfrag . ')?(#' . $xqueryfrag . ')?$';\n\n\n\t\t// Split the URL into components.\n\t\tif ( !preg_match( '!' . $xurl . '!', $url, $m ) )\n\t\t\treturn FALSE;\n\n\t\tif ( !empty($m[2]) )\t\t$parts['scheme'] = strtolower($m[2]);\n\n\t\tif ( !empty($m[7]) ) {\n\t\t\tif ( isset( $m[9] ) )\t$parts['user'] = $m[9];\n\t\t\telse\t\t\t$parts['user'] = '';\n\t\t}\n\t\tif ( !empty($m[10]) )\t\t$parts['pass'] = $m[11];\n\n\t\tif ( !empty($m[13]) )\t\t$h=$parts['host'] = $m[13];\n\t\telse if ( !empty($m[14]) )\t$parts['host'] = $m[14];\n\t\telse if ( !empty($m[16]) )\t$parts['host'] = $m[16];\n\t\telse if ( !empty( $m[5] ) )\t$parts['host'] = '';\n\t\tif ( !empty($m[17]) )\t\t$parts['port'] = $m[18];\n\n\t\tif ( !empty($m[19]) )\t\t$parts['path'] = $m[19];\n\t\telse if ( !empty($m[21]) )\t$parts['path'] = $m[21];\n\t\telse if ( !empty($m[25]) )\t$parts['path'] = $m[25];\n\n\t\tif ( !empty($m[27]) )\t\t$parts['query'] = $m[28];\n\t\tif ( !empty($m[29]) )\t\t$parts['fragment']= $m[30];\n\n\t\tif ( !$decode )\n\t\t\treturn $parts;\n\t\tif ( !empty($parts['user']) )\n\t\t\t$parts['user'] = rawurldecode( $parts['user'] );\n\t\tif ( !empty($parts['pass']) )\n\t\t\t$parts['pass'] = rawurldecode( $parts['pass'] );\n\t\tif ( !empty($parts['path']) )\n\t\t\t$parts['path'] = rawurldecode( $parts['path'] );\n\t\tif ( isset($h) )\n\t\t\t$parts['host'] = rawurldecode( $parts['host'] );\n\t\tif ( !empty($parts['query']) )\n\t\t\t$parts['query'] = rawurldecode( $parts['query'] );\n\t\tif ( !empty($parts['fragment']) )\n\t\t\t$parts['fragment'] = rawurldecode( $parts['fragment'] );\n\t\treturn $parts;\n\t}", "title": "" }, { "docid": "d85158c16d38482e1a995471a3e664a5", "score": "0.64496017", "text": "public /* mixed */ function parseUrl($url, &$error = \"\") {\n\n /* Initialize the components array. */\n $components = array();\n\n /* Push url to components array. */\n $components[\"url\"] = $url;\n\n /* Initialize variables. */\n $scheme = null;\n $ipversion = null;\n $authority = null;\n $hostRequest = null;\n $host = null;\n $port = null;\n $hostname = null;\n $request = null;\n $path = null;\n $querystring = null;\n $fragment = null;\n\n /* Get the scheme of the url. */\n if (preg_match(\"/^([A-Z][A-Z0-9\\+\\-\\.]+):\\/\\//i\", $url) > 0) {\n $colonDoubleSlashesPos = strpos($url, \"://\");\n $scheme = substr($url, 0, $colonDoubleSlashesPos);\n $hostRequest = substr($url, $colonDoubleSlashesPos + 3);\n } else {\n /* PREVIOUS: $scheme = null; */\n $hostRequest = $url;\n }\n\n /* Get the host and the request and split them apart. */\n $slashPos = strpos($hostRequest, '/');\n\n if ($slashPos !== false) {\n $host = substr($hostRequest, 0, $slashPos);\n $request = substr($hostRequest, $slashPos + 1);\n } else {\n $host = $hostRequest;\n $request = null;\n }\n\n /* Get authority from host. */\n $atPos = strpos($host, '@');\n\n if ($atPos !== false) {\n $authority = substr($host, 0, $atPos);\n $host = substr($host, $atPos + 1);\n } else {\n $authority = null;\n }\n\n /* If the ip-version (of the host) is IPv6. */\n if ($host{0} == '[') {\n $squareBracketColonPos = strpos($host, \"]:\");\n\n if ($squareBracketColonPos !== false) {\n $hostname = substr($host, 0, $squareBracketColonPos + 1);\n $port = substr($host, $squareBracketColonPos + 2);\n } else {\n $hostname = $host;\n $port = null;\n }\n\n /* Set the ip version to 6. */\n $ipversion = 6;\n }\n\n /* If the ip-version is IPv4. */ else {\n $colonPos = strpos($host, ':');\n\n if ($colonPos !== false) {\n $hostname = substr($host, 0, $colonPos);\n $port = substr($host, $colonPos + 1);\n } else {\n $hostname = $host;\n $port = null;\n }\n\n /* Set the ip version to be 4. */\n $ipversion = 4;\n }\n\n /* Strip dot from hostname. */\n if ($hostname{strlen($hostname) - 1} == '.') {\n $hostname = substr($hostname, 0, -1);\n }\n\n /* Set the path to be request, initially. */\n $path = $request;\n\n /* Get the fragment of the url. */\n $hashPos = strpos($path, '#');\n\n if ($hashPos !== false) {\n $fragment = substr($path, $hashPos + 1);\n $path = substr($path, 0, $hashPos);\n }\n\n /* Get the query string of the url. */\n $questionMarkPos = strpos($path, '?');\n\n if ($questionMarkPos !== false) {\n $querystring = substr($path, $questionMarkPos + 1);\n $path = substr($path, 0, $questionMarkPos);\n }\n\n /* Push results to components. */\n $components[\"scheme\"] = $scheme;\n $components[\"ipversion\"] = $ipversion;\n $components[\"authority\"] = $authority;\n $components[\"port\"] = $port;\n $components[\"hostname\"] = $hostname;\n $components[\"request\"] = $request;\n $components[\"path\"] = $path;\n $components[\"querystring\"] = $querystring;\n $components[\"fragment\"] = $fragment;\n\n /* Validate the url components. */\n if ($this->validateUrlComponents($components, $error) === false) {\n /* If the url is not valid. */\n return false;\n } else {\n /* If the url is valid. */\n return $components;\n }\n }", "title": "" }, { "docid": "79a642bb124c63f234c771af6fe9611e", "score": "0.6435827", "text": "function normalizeMeURL($url) {\n $me = parse_url($url);\n\n if(array_key_exists('path', $me) && $me['path'] == '')\n return false;\n\n // parse_url returns just \"path\" for naked domains\n if(count($me) == 1 && array_key_exists('path', $me)) {\n $me['host'] = $me['path'];\n unset($me['path']);\n }\n\n if(!array_key_exists('scheme', $me))\n $me['scheme'] = 'http';\n\n if(!array_key_exists('path', $me))\n $me['path'] = '/';\n\n // Invalid scheme\n if(!in_array($me['scheme'], array('http','https')))\n return false;\n\n // // Invalid path\n // if($me['path'] != '/')\n // return false;\n\n // query and fragment not allowed\n if(array_key_exists('query', $me) || array_key_exists('fragment', $me))\n return false;\n\n return build_url($me);\n}", "title": "" }, { "docid": "4a44af39b16c8b70067c213191a065eb", "score": "0.6402667", "text": "public static function parse_URL($url)\n {\n }", "title": "" }, { "docid": "b04b1b74593369a8426181425d2d10b6", "score": "0.6398538", "text": "private function parseUrl($url)\n {\n $parsedUrl = parse_url($url);\n $parsedUrl[\"path\"] = ltrim($parsedUrl[\"path\"], \"/\");\n $parsedUrl[\"path\"] = trim($parsedUrl[\"path\"]);\n $parsedUrl[\"path\"] = strtolower($parsedUrl[\"path\"]);\n return preg_split('@/@',$parsedUrl[\"path\"],NULL,PREG_SPLIT_NO_EMPTY);\n }", "title": "" }, { "docid": "0453a5393aeb59988fd47b77534b976d", "score": "0.6393261", "text": "function urlAnalyze()\n{\n global $url;\n $url = rtrim($url, \"/\");\n $urlArray = explode(\"/\", $url);\n\n return $urlArray;\n}", "title": "" }, { "docid": "99bd594b78647f6c6524241eceb43f73", "score": "0.63625455", "text": "function normalize_url($url)\n{\n $parts = parse_url($url);\n\n $scheme = $parts['scheme'];\n $host = $parts['host'];\n $port = (isset($parts['port'])) ? $parts['port'] : null;\n $path = $parts['path'];\n\n if (! $port) {\n $port = ($scheme == 'https') ? '443' : '80';\n }\n if (($scheme == 'https' && $port != '443')\n || ($scheme == 'http' && $port != '80')) {\n $host = \"$host:$port\";\n }\n\n return \"$scheme://$host$path\";\n}", "title": "" }, { "docid": "b7f08fd88b7ed51b1eea93b228083e2d", "score": "0.6347629", "text": "public static function parse_url($url) {\n\t \n\t\t$parsed = parse_url(rtrim($url));\n\t\t\n\t\t// We change the key name to try to prevent confusion.\n\t\t$parsed['user_login'] = isset($parsed['user']) ? $parsed['user'] : '';\n\t\t\n\t\tunset($parsed['user']);\n\t\t\n\t\tif (!isset($parsed['query'])) {\n\t\t\t$parsed['token'] = '';\n\t\t\t$parsed['context'] = '';\n\t\t} else {\n\t\t\tparse_str($parsed['query'], $query_results);\n\n\t\t\t$parsed['context'] = isset($query_results['context']) ? $query_results['context'] : '';\n\t\t\t$parsed['token'] = isset($query_results['token']) ? $query_results['token'] : '';\n\t\t\t$parsed['form_id'] = isset($query_results['form_id']) ? $query_results['form_id'] : '';\n\t\t\t\n\t\t\tunset($parsed['query']);\n\t\t}\n\t\t\n\t\t$parsed['rest_url'] = $parsed['scheme'].'://'.$parsed['host'];\n\t\tif (isset($parsed['path'])) $parsed['rest_url'] .= $parsed['path'];\n\t\t$parsed['rest_url'] = rtrim($parsed['rest_url'], '/').'/wp-json/';\n\t\t\n\t\treturn $parsed;\n\t \n\t }", "title": "" }, { "docid": "05c515a308b84c61ba296eb2178e4bac", "score": "0.63420105", "text": "private static function parseUrls() {\r\n if (static::$urls !== null) return static::$urls;\r\n\t\tif (FALSE === $uri = strstr($_SERVER['REQUEST_URI'],'?',true))\r\n\t\t\t$uri = $_SERVER['REQUEST_URI'];\r\n\t\t$script = strtolower($_SERVER['SCRIPT_NAME']);\r\n\t\t$uri = str_replace(array($script, dirname($script), strtolower(BASE) . '/'), '', strtolower($uri));\r\n static::$urls = static::updateArrayKeys(explode('/',\r\n str_replace('?' . $_SERVER['QUERY_STRING'], '',\r\n $uri)), true);\r\n\t\treturn static::$urls;\r\n\t}", "title": "" }, { "docid": "43ae4bf33206a8c58322c661132374cc", "score": "0.629006", "text": "private function url_details($url)\n {\n $url = str_replace(\"http://\", \"\", $url);\n $host = preg_replace(\"/\\/.*/\", \"\", $url);\n $path = str_replace($host, \"\", $url);\n\n return array($host, $path);\n }", "title": "" }, { "docid": "3321cb7bdab9511079e123f4e4c2f886", "score": "0.62833387", "text": "public function extractURLs() {\r\n preg_match_all(self::$REGEX_VALID_URL, $this->tweet, $matches);\r\n list($all, $before, $url, $protocol, $domain, $path, $query) = array_pad($matches, 7, '');\r\n return $url;\r\n }", "title": "" }, { "docid": "6e4cf7edf3df9b53f7a8969a2b2c567c", "score": "0.6260707", "text": "private function get_urlparts(string $url): ?array\n\t{\n\t\tif ($this->regexp === '') {\n\t\t\t$scheme = '((?<scheme>https?):\\/\\/)';\n\t\t\t$ipv4address = '(?<ipv4address>(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})';\n\t\t\t$domain = '(?<domain>[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*)';\n\t\t\t$tld = '(?<tld>[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)';\n\t\t\t$fqdn = '(?<fqdn>'.$domain.'\\.'.$tld.')\\.?';\n\t\t\t$port = '(?<port>(6553[0-5]|(655[0-2]|(65[0-4]|(6[0-4]|[1-5][0-9]|[1-9])[0-9]|[1-9])[0-9]|[1-9])?[0-9]))';\n\t\t\t$authority = '(?<authority>('.$ipv4address.'|'.$fqdn.')(:'.$port.')?)';\n\t\t\t$unreserved = '[a-z0-9_.~-]';\n\t\t\t$pct_encoded = '%[0-9a-f]{2}';\n\t\t\t$sub_delims = '[!$&\\'()*+,;=]';\n\t\t\t$pchar = '('.$unreserved.'|'.$pct_encoded.'|'.$sub_delims.'|[:@])';\n\t\t\t$path = '(?<path>(\\/('.$pchar.'|\\/)*)?)';\n\t\t\t$query = '(?<query>(\\?('.$pchar.'|[\\/?])*)?)';\n\t\t\t$fragment = '(?<fragment>(#('.$pchar.'|[\\/?])*)?)';\n\t\t\t$this->regexp = '/^'.$scheme.'?'.$authority.$path.$query.$fragment.'$/in';\n\t\t}\n\n\t\t/**\n\t\t * Validate the URL.\n\t\t */\n\t\tif (!preg_match($this->regexp, $url, $matches, PREG_UNMATCHED_AS_NULL)) {\n\t\t\treturn null;\n\t\t}\n\n\t\t/**\n\t\t * The TLD may not solely consist of digits.\n\t\t */\n\t\tif (!is_null($matches['tld']) && preg_match('/^\\d+$/', $matches['tld'])) {\n\t\t\treturn null;\n\t\t}\n\n\t\t/**\n\t\t * The FQDN (excluding trailing dot) may not exceed 253 characters.\n\t\t */\n\t\tif (!is_null($matches['fqdn']) && strlen($matches['fqdn']) > 253) {\n\t\t\treturn null;\n\t\t}\n\n\t\t/**\n\t\t * Normalize all parts of the URL:\n\t\t * - All values are of type string except port which is integer (0 = no port).\n\t\t * - In absense of a scheme assume http.\n\t\t * - Convert to lower case when appropriate.\n\t\t * - Reconstruct authority so any trailing dot is removed.\n\t\t * - Make sure path only has one leading slash and is empty when redundant.\n\t\t * - Reconstruct the URL to reflect normalizations listed above.\n\t\t */\n\t\tforeach (['scheme', 'fqdn', 'domain', 'tld', 'ipv4address', 'port', 'path', 'query', 'fragment'] as $part) {\n\t\t\tswitch ($part) {\n\t\t\t\tcase 'scheme':\n\t\t\t\t\t$urlparts['scheme'] = strtolower($matches['scheme'] ?? 'http');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'fqdn':\n\t\t\t\tcase 'domain':\n\t\t\t\tcase 'tld':\n\t\t\t\t\t$urlparts[$part] = strtolower($matches[$part] ?? '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'port':\n\t\t\t\t\t$urlparts['port'] = (int) ($matches['port'] ?? 0);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$urlparts[$part] = $matches[$part] ?? '';\n\t\t\t}\n\t\t}\n\n\t\t$urlparts['authority'] = ($urlparts['fqdn'] !== '' ? $urlparts['fqdn'] : $urlparts['ipv4address']).($urlparts['port'] !== 0 ? ':'.$urlparts['port'] : '');\n\n\t\tif ($urlparts['query'] === '' && $urlparts['fragment'] === '') {\n\t\t\t$urlparts['path'] = preg_replace(['/^\\/\\/+/', '/^\\/$/'], ['/', ''], $urlparts['path']);\n\t\t} else {\n\t\t\t$urlparts['path'] = preg_replace(['/^\\/\\/+/', '/^$/'], ['/', '/'], $urlparts['path']);\n\t\t}\n\n\t\t$urlparts['url'] = $urlparts['scheme'].'://'.$urlparts['authority'].$urlparts['path'].$urlparts['query'].$urlparts['fragment'];\n\t\treturn $urlparts;\n\t}", "title": "" }, { "docid": "14befeef260304e52003e7e997d374af", "score": "0.6243511", "text": "function wpml_parse_url( $url, $component = -1 ) {\n\t$ret = null;\n\n\t$component_map = array(\n\t\tPHP_URL_SCHEME => 'scheme',\n\t\tPHP_URL_HOST => 'host',\n\t\tPHP_URL_PORT => 'port',\n\t\tPHP_URL_USER => 'user',\n\t\tPHP_URL_PASS => 'pass',\n\t\tPHP_URL_PATH => 'path',\n\t\tPHP_URL_QUERY => 'query',\n\t\tPHP_URL_FRAGMENT => 'fragment',\n\t);\n\n\tif ( $component === -1 ) {\n\t\t$ret = wp_parse_url( $url );\n\t} elseif ( isset( $component_map[ $component ] ) ) {\n\t\t$key = $component_map[ $component ];\n\t\t$parsed = wp_parse_url( $url );\n\t\t$ret = isset( $parsed[ $key ] ) ? $parsed[ $key ] : null;\n\t}\n\n\treturn $ret;\n}", "title": "" }, { "docid": "b6caf1278b9354895d8935bdf8173e6c", "score": "0.6222098", "text": "protected function parseUrl($url, array $defaults = ['scheme' => 'http', 'host' => 'localhost', 'path' => '/'])\n {\n $uri = parse_url($url) ?: [];\n $uri += $defaults;\n $uri += ['port' => $this->isSecure($uri) ? 443 : 80];\n return $uri;\n }", "title": "" }, { "docid": "dc7e3210d44674475843c625258c0f98", "score": "0.6213247", "text": "public function split_url( string $href ): array {\n\t\t$ret = array();\n\t\t// Ignore urls not from this site\n\t\tif ( ! transposh_utils::is_rewriteable_url( $href, $this->home_url ) ) {\n\t\t\treturn $ret;\n\t\t}\n\n\t\t// don't fix links pointing to real files as it will cause that the\n\t\t// web server will not be able to locate them\n\t\tif ( stripos( $href, '/wp-admin' ) !== false ||\n\t\t stripos( $href, WP_CONTENT_URL ) !== false ||\n\t\t stripos( $href, '/wp-login' ) !== false ||\n\t\t stripos( $href, '/.php' ) !== false ) /* ??? */ {\n\t\t\treturn $ret;\n\t\t}\n\n\t\t// todo - check query part... sanitize\n\t\t//if (strpos($href, '?') !== false) {\n\t\t// list ($href, $querypart) = explode('?', $href);\n\t\t//}\n\t\t//$href = substr($href, strlen($this->home_url));\n\t\t// this might include the sub directory for non rooted sites, but its not that important to avoid\n\t\t$href = parse_url( $href, PHP_URL_PATH );\n\t\t$parts = explode( '/', $href );\n\t\tforeach ( $parts as $part ) {\n\t\t\tif ( ! $part || is_numeric( $part ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$ret[] = $part;\n\t\t\tif ( $part != str_replace( '-', ' ', $part ) ) {\n\t\t\t\t$ret[] = str_replace( '-', ' ', $part );\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "d22b6dd0bc7b9e833457f61e1db7e0ba", "score": "0.61888015", "text": "function parseUrl($raw)\n{\n $result = '';\n\n // Checks if we even have an get parameter / parameters\n if (strpos($raw, '?') === FALSE) $result = $raw;\n else $result = substr($raw, 0, strpos($raw, '?'));\n\n // Removes the not required '/'\n if (substr($result, -1) === '/') $result = substr($result, 0, -1);\n if ($result === '') $result = '/';\n\n // Returns the result\n return $result;\n}", "title": "" }, { "docid": "26eb1dbd8cff9731fd89e740f1201da4", "score": "0.6175389", "text": "public static function laterpay_parse_url( $url, $component = -1 ) {\n\n if ( function_exists( 'wp_parse_url' ) ) {\n $result = wp_parse_url( $url, $component );\n } else {\n // This won't be used in a WordPress environment.\n $result = parse_url( $url, $component ); // phpcs:ignore\n }\n return $result;\n }", "title": "" }, { "docid": "4ba39d37606dbb7d55183214fa512117", "score": "0.6170569", "text": "private static function parseUrl(String $url, String $prefix)\n {\n $parsedUrl = trim($url); // Remove from beginning and end\n $parsedUrl = self::lmask($parsedUrl, \"/$prefix\"); /* start from left */\n $parsedUrl = self::rmask($parsedUrl);\n $parsedUrl = strtolower($parsedUrl);\n return explode(\"/\", $parsedUrl);\n }", "title": "" }, { "docid": "9e7956f840dfcf8900e86bf5580a6de5", "score": "0.61507446", "text": "private function parse_uri ()\n\t{\n\t\t// if url is defined then get it\n\t\t$url = isset($_GET['url']) ? $_GET['url'] : null;\n\n\t\t// remove the right \"/\" from the string\n\t\t$url = rtrim($url, '/');\n\n\t\t// explode the string to the array base on \"/\"\n\t\t$url = explode('/', $url);\n\n\t\t// make uri accessible all over the class\n\t\t$this->url = $url;\n\n\t\tvar_dump($this->url);\n\t}", "title": "" }, { "docid": "cf89637c98840eab59726fd812af8fa1", "score": "0.61390245", "text": "function elgg_normalize_url($url) {\n\t$url = str_replace(' ', '%20', $url);\n\n\tif (_elgg_sane_validate_url($url)) {\n\t\treturn $url;\n\t}\n\n\tif (preg_match(\"#^([a-z]+)\\\\:#\", $url, $m)) {\n\t\t// we don't let http/https: URLs fail filter_var(), but anything else starting with a protocol\n\t\t// is OK\n\t\tif ($m[1] !== 'http' && $m[1] !== 'https') {\n\t\t\treturn $url;\n\t\t}\n\t}\n\n\tif (preg_match(\"#^(\\\\#|\\\\?|//)#\", $url)) {\n\t\t// starts with '//' (protocol-relative link), query, or fragment\n\t\treturn $url;\n\t}\n\n\tif (preg_match(\"#^[^/]*\\\\.php(\\\\?.*)?$#\", $url)) {\n\t\t// root PHP scripts: 'install.php', 'install.php?step=step'. We don't want to confuse these\n\t\t// for domain names.\n\t\treturn elgg_get_site_url() . $url;\n\t}\n\n\tif (preg_match(\"#^[^/?]*\\\\.#\", $url)) {\n\t\t// URLs starting with domain: 'example.com', 'example.com/subpage'\n\t\treturn \"http://$url\";\n\t}\n\n\t// 'page/handler', 'mod/plugin/file.php'\n\t// trim off any leading / because the site URL is stored\n\t// with a trailing /\n\treturn elgg_get_site_url() . ltrim($url, '/');\n}", "title": "" }, { "docid": "701dfbd1a5408303daa0608231893172", "score": "0.61174643", "text": "protected static function parse_request_uri($value)\n {\n return parse_url($value, PHP_URL_PATH);\n }", "title": "" }, { "docid": "cd33584e9476d53c239cc48410b36f20", "score": "0.6090637", "text": "function parseURL() {\n global $username;\n global $post_id_scroll;\n\n if ($_SERVER[\"REQUEST_METHOD\"] == \"GET\") {\n $parsed_url = parse_url($_SERVER[\"REQUEST_URI\"], PHP_URL_QUERY);\n $params = array();\n parse_str($parsed_url, $params);\n\n if (isset($params['username'])) {\n $username = $params['username'];\n }\n\n if (isset($params['post_id'])) {\n $post_id_scroll = $params['post_id'];\n }\n }\n }", "title": "" }, { "docid": "2fa360c49f9c7ff155ba87e948a7889c", "score": "0.6068565", "text": "function is_url($url)\n{\n // Obviusly this can be improved, but right now for me is enough.\n if (preg_match('(^((https?|ftp)://)?([-\\w\\.]+)+(:\\d+)?(/([\\w/_\\.]*(\\?\\S+)?)?)?$)',$url))\n {\n return true;\n }\n else\n {\n return false;\n }\n}", "title": "" }, { "docid": "c2b51fdc1330a48cf4666ee333534aa2", "score": "0.6033233", "text": "function get_url_input() {\n\t\t// Parse users input\n\t\t$uri = $_SERVER['REQUEST_URI'];\n\t\t$uri = preg_replace('#\\.html#','',$uri); \t// Strip any .html from the URL\n\t\t$uri = preg_replace('#\\.xhtml#','',$uri); \t// Strip any .xhtml from the URL\n\t\t$uri = preg_replace('#\\.php#','',$uri);\t\t// Strip the .php from the URL (if there is one)\n\t\t$uri = preg_replace('#\\?\\/#','',$uri); \t\t// Strip the ? from the URL (handling weird configs in Apache)\n\t\t$temp = str_replace('/index.php', '', $_SERVER['PHP_SELF']);\n\t\t$uri = str_replace($temp, '', $uri);\n\t\n\t\tif ($uri[0] == '/') {\n\t\t\t$uri = substr($uri, 1); // If the first character of input is \"/\" this might break our array\n\t\t}\n\t\treturn explode('/',$uri); // Creates an array\n\t}", "title": "" }, { "docid": "3a8acd5b403f1cdbc52a30e72baa91d2", "score": "0.60295147", "text": "function uri($s, $base = null) { // see appendix B, http://www.ietf.org/rfc/rfc2396.txt\n\n if (empty($s)) return(array());\n\n if (isset($base) && $base !== '') {\n $b = uri($base);\n if (empty($b['scheme'])) return(array()); // scheme must be present in base\n } else {\n $b = array();\n }\n\n $a = array();\n\n if (preg_match('<^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?>', $s, $m)) { // using < and > expression delimiters\n\n $samescheme = empty($b['scheme']) || empty($m[2]) || ($b['scheme'] == $m[2]);\n\n //$a['m'] = $m;\n $a['scheme'] = (isset($m[2]) && $m[2] !== '') ? $m[2] : null;\n $a['authority'] = (isset($m[3]) && $m[3] !== '') ? $m[3] : null; // domain\n $a['path'] = (isset($m[5]) && $m[5] !== '') ? $m[5] : null;\n $a['query'] = (isset($m[7]) && $m[7] !== '') ? $m[7] : null;\n $a['fragment'] = (isset($m[9]) && $m[9] !== '') ? $m[9] : null;\n\n if (!empty($b['path'])) {\n $c = explode('/', $b['path']);\n array_pop($c);\n $basedirectory = join('/', $c);\n } else {\n $basedirectory = null;\n }\n\n $a['scheme'] = (isset($a['scheme']) ? $a['scheme'] : (isset($b['scheme']) ? $b['scheme'] : null));\n $a['authority'] = (isset($a['authority']) ? $a['authority'] : (isset($b['authority']) && $samescheme ? $b['authority'] : ''));\n\n if (isset($a['path'])) {\n if (isset($b['path']) && $samescheme && ($a['authority'] == $b['authority'])) $a['path'] = absolutepath($a['path'], $b['path']);\n } else {\n if (isset($b['path']) && $samescheme && $a['authority'] == $b['authority']) {\n if (empty($a['query'])) {\n $a['path'] = $b['path'];\n } else {\n $a['path'] = $basedirectory . '/';\n }\n } else {\n $a['path'] = null;\n }\n }\n\n $a['query'] = (isset($a['query']) ? $a['query'] : ((isset($b['path']) && $a['path'] == $b['path']) ? $b['query'] : null));\n $a['fragment'] = (isset($a['fragment']) ? ($a['fragment']) : null);\n $a['protocol'] = $a['scheme'];\n\n if (isset($a['authority']) && substr($a['authority'], 0, 2) == '//') {\n if (($i = strpos($a['authority'], '@'))) {\n $up = explode(':', substr($a['authority'], 2, $i - 2));\n $a['user'] = isset($up[0]) ? $up[0] : null;\n $a['password'] = isset($up[1]) ? $up[1] : null;\n $hostport = substr($a['authority'], $i + 1);\n } else {\n $hostport = substr($a['authority'], 2);\n }\n if (($i = strpos($hostport, ':'))) {\n $a['host'] = substr($hostport, 0, $i);\n $a['port'] = substr($hostport, $i + 1);\n } else {\n $a['host'] = $hostport;\n $a['port'] = null;\n }\n } else {\n $a['host'] = null;\n $a['port'] = null;\n $a['user'] = null;\n $a['password'] = null;\n }\n\n $a['full'] = (\n $a['scheme']\n . ':'\n . (isset($a['authority']) ? $a['authority'] : '')\n . $a['path']\n . (isset($a['query']) ? ('?' . $a['query']) : '')\n . (isset($a['fragment']) ? ('#' . $a['fragment']) : '')\n );\n }\n return($a);\n }", "title": "" }, { "docid": "175ed001b771db2dbba9a5271ceed396", "score": "0.6024872", "text": "public static function variables(string $url): array {\n\t\t$parts = self::parse($url);\n\t\t$parts['url'] = $url;\n\t\tif (array_key_exists('host', $parts)) {\n\t\t\t$parts['host:port'] = $parts['host'] . (array_key_exists('port', $parts) ? ':' . $parts['port'] : '');\n\t\t}\n\t\tif (array_key_exists('scheme', $parts)) {\n\t\t\t$parts['scheme:host:port'] = self::left($url, 'host');\n\t\t}\n\t\treturn $parts;\n\t}", "title": "" }, { "docid": "9ef4db7111566ee1a135323d37c7c90d", "score": "0.60205495", "text": "protected function parseUrl($url)\n {\n if (strpos($url, '//') === 0) {\n $url = \"http:$url\";\n }\n\n $this->info = parse_url($url);\n\n if (isset($this->info['query'])) {\n parse_str($this->info['query'], $this->info['query']);\n\n array_walk_recursive($this->info['query'], function (&$value) {\n $value = urldecode($value);\n });\n }\n\n if (isset($this->info['path'])) {\n $this->setPath($this->info['path']);\n }\n }", "title": "" }, { "docid": "15c983157ac0228b715f6b217e04d482", "score": "0.60196424", "text": "protected function getURLParams() {\n $url = \"/\";\n\n if (isset($_GET['url']))\n $url = $_GET['url']; \n if ($url == \"/\")\n return Array('/');\n \n self::$_url = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\n return preg_split('/\\//', $url, -1, PREG_SPLIT_NO_EMPTY);\n }", "title": "" }, { "docid": "5b8ae8aa3b48ac1b6a7de855d28e6f04", "score": "0.601932", "text": "public static function normalize($url)\n {\n $u = parse_url(preg_replace('#^file:/+([a-z]+:)#i', '$1', $url));\n\n if ($u === false) {\n return $url;\n }\n\n if (isset($u['scheme']) === false) {\n $u = null;\n return false;\n }\n\n $scheme = $u['scheme'];\n\n if (isset($scheme[1])) {\n $normalized = strtolower($scheme) . '://';\n } else {\n $normalized = strtoupper($scheme) . ':';\n }\n\n if (isset($u['user'])) {\n $normalized .= $u['user'];\n $normalized .= isset($u['pass']) ? (':' . $u['pass']) : '';\n $normalized .= '@';\n }\n\n if (isset($u['host'])) {\n if (in_array($scheme, static::$defaultSchemes)) {\n $host = urldecode($u['host']);\n $normalized .= mb_strtolower($host, mb_detect_encoding($host));\n } else {\n $normalized .= $u['host'];\n }\n }\n\n if (isset($u['port']) && !in_array($scheme . ':' . $u['port'], static::$defaultPorts)) {\n $normalized .= ':' . $u['port'];\n }\n\n if (empty($u['path']) || $u['path'] === '/') {\n $normalized .= '/';\n } else {\n $normalized .= '/' . ltrim(self::canonpath($u['path']), '/');\n }\n\n if (isset($u['query'])) {\n $normalized .= self::canonquery($u['query'], '?');\n }\n\n if (isset($u['fragment'])) {\n $normalized .= '#' . $u['fragment'];\n }\n\n $u = null;\n return $normalized;\n }", "title": "" }, { "docid": "bfd537bb813af5e4d924bfef1ead9624", "score": "0.60134554", "text": "function processURI() {\r\n\t\tglobal $REQUEST_URI;\r\n\t\t$array = explode(\"/\",$REQUEST_URI);\t\r\n\t\t$num = count($array);\r\n\t\t$url_array = array();\r\n\t\tfor ($i = 1 ; $i < $num ; $i++) {\r\n\t\t\t$url_array[$i] = $array[$i];\r\n\t\t}\r\n\t\treturn $url_array;\r\n\t}", "title": "" }, { "docid": "13295e78fb11f17482b04cdcbb204606", "score": "0.60068464", "text": "private static function checkParsedUrl(array $parsed): array\n {\n $scheme =& $parsed['scheme'];\n $user =& $parsed['user'];\n $pass =& $parsed['pass'];\n $host =& $parsed['host'];\n $port =& $parsed['port'];\n $path =& $parsed['path'];\n $path = '/'.ltrim($path, '/'); // If / is missing for path.\n $query =& $parsed['query'];\n $fragment =& $parsed['fragment'];\n\n return compact(\n 'scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment'\n );\n }", "title": "" }, { "docid": "f92b22bbf6898225b3ea7274a284cfb2", "score": "0.5988263", "text": "function getUri()\r\n{\r\n\treturn explode(\"/\", parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));\r\n}", "title": "" }, { "docid": "c6748981d4c21e1988ae687c0188dd8a", "score": "0.59882164", "text": "protected static function parse_url($url)\n {\n }", "title": "" }, { "docid": "d8f2c2823563e5e4c698c9d9f256e522", "score": "0.5982455", "text": "function splitUri($s){\n if(preg_match('@^(.+[/#]+)([^#/]+[#/]*)$@', $s, $m)){\n return array($m[1], $m[2]);\n }\n return array($s,'');\n }", "title": "" }, { "docid": "89d17f41b779ffde76175dfa2833d55d", "score": "0.5980245", "text": "protected function parseUrl($url) {\n\n }", "title": "" }, { "docid": "b19aca7f3e7bed3b4c8491664cd66c0e", "score": "0.5968262", "text": "public static function parseDeep(string $url): bool|array\n {\n $parsed = parse_url($url);\n\n if (isset($parsed[\"path\"])) {\n $parsed[\"path\"] = array_filter(explode(\"/\", rtrim(ltrim($parsed[\"path\"], \"/\"), \"/\")));\n } else {\n $parsed[\"path\"] = [];\n }\n\n if (isset($parsed[\"query\"])) {\n parse_str($parsed[\"query\"], $parsed['query']);\n } else {\n $parsed[\"query\"] = [];\n }\n return $parsed;\n }", "title": "" }, { "docid": "d2f03a70bce60ccc13724756cb1b0763", "score": "0.5960185", "text": "function _checkUrl ($value)\n\t{\n\t\t// if empty (eg. gone direct to addrule.php) then return ''\n\t\tif ($value == '') {return array(1,'No value');}\n\t\t// urls are encoded so we decode\n\t\t$unsafe_url = urldecode($value);\n\t\t\n\t\t\n\t\t// check url is valid (# used as regular expression delimeter so we don't have to escape /) and separate out the domain part \n\t\t$url_array = parse_url($unsafe_url);\n\t\t// check that this is a http / https (do not allow file://)\n\t\tif ($url_array == false || !isset($url_array['scheme']) || ($url_array['scheme']!= 'http' && $url_array['scheme']!= 'https'))\n\t\t{\n\t\t\treturn (array('2', \"Unrecognised scheme\\n$value\"));\n\t\t}\n\t\t\n\t\t// check no < are in the url which could be used for xss \n\t\t// if invalid then we set to '' - also set ['error'] to provide a message back\n\t\tif (preg_match ('/&lt;|</', $unsafe_url)) \n\t\t{\n\t\t\treturn (array('2', \"Invalid character\"));\n\t\t}\n\t\t// if passwed above tests then valid url\n\t\telse\n\t\t{\n\t\t\treturn (array(0, $unsafe_url));\n\t\t}\n\t}", "title": "" }, { "docid": "2d8917fbfca91621e4abf180b876d067", "score": "0.59404236", "text": "function URLValidator($url)\n\t\t{\n\t\t\n\t\t\t// Set of regular expression rules for parsing\n\t\t\n // URL and exracting its parts\n\n $PATTERNS = array(\n\n 'protocol' => '((http|https|ftp)://)',\n\n 'access' => '(([a-z0-9_]+):([a-z0-9-_]*)@)?',\n\n 'sub_domain' => '(([a-z0-9_-]+\\.)*)',\n\n 'domain' => '(([a-z0-9-]{2,})\\.)',\n\n 'tld' =>'(com|net|org|edu|gov|mil|int|arpa|aero|biz|coop|info|museum|name|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cf|cd|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|fi|fj|fk|fm|fo|fr|fx|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zr|zw)',\n\n 'port'=>'(:(\\d+))?',\n\n 'path'=>'((/[a-z0-9-_.%~]*)*)?',\n\n 'query'=>'(\\?[^? ]*)?'\n\n );\n\t\t\n\t\t\t\n $pattern = \"`^\"\n\n .$PATTERNS['protocol']\n\n .$PATTERNS['access']\n\n .$PATTERNS['sub_domain']\n\n .$PATTERNS['domain']\n\n .$PATTERNS['tld']\n\n .$PATTERNS['port']\n\n .$PATTERNS['path']\n\n .$PATTERNS['query']\n\n\t .\"$`iU\";\n\t\t\n\t\t $valid = preg_match($pattern, $url, $COMPONENTS);\t\t\n\t\t \n\t\t return $valid;\t\t\n\t\t}", "title": "" }, { "docid": "250de77aec74047040a441f8ac07417d", "score": "0.5937866", "text": "public function parseUrl($url, $parse)\n {\n return parse_url($url, $parse);\n }", "title": "" }, { "docid": "bbde7a85e0993177a77b06df55cb1e11", "score": "0.5932424", "text": "private function ParseUrl() \n\t{\n\t\t$url = explode('/', trim(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/'), 3);\n\n\t\tif (isset($url[0]) AND $url[0] != '') {\n\t\t\t$this->_controller = $url[0];\n\t\t}\n\t\tif (isset($url[1]) AND $url[1] != '') {\n\t\t\t$this->_action = $url[1];\n\t\t}\n\t\tif (isset($url[2]) AND $url[2] != '') {\n\t\t\t$this->_params = explode('/', $url[2]);\n\t\t}\n\t}", "title": "" }, { "docid": "ffae19dcae4c56d8b6e76596b4bc2902", "score": "0.5901453", "text": "function canonical_url($url)\n{\n if (isset($url)) {\n $parse = parse_url($url);\n if ($parse !== false) {\n if (isset($parse['scheme'])) {\n $parse['scheme'] = strtolower($parse['scheme']);\n switch ($parse['scheme']) {\n case 'http':\n unset($parse['scheme']);\n if (isset($parse['port']) && $parse['port'] == 80) {\n unset($parse['port']);\n }\n break;\n case 'https':\n if (isset($parse['port']) && $parse['port'] == 443) {\n unset($parse['port']);\n }\n } }\n if (isset($parse['path'])) {\n $part1 = preg_replace('/\\\\\\/','/', $parse['path']);\n $b = explode('/', $part1);\n foreach($b as $i => $folder) {\n $folder = trim($folder);\n \n if ($folder == '.') {\n unset($b[$i]);\n } else if ($folder == '..') {\n unset($b[$i]);\n while (--$i >= 0) {\n if (isset($b[$i])) {\n $prior = $b[$i];\n if ($prior != '' && strpos($prior, ':') === false) {\n unset($b[$i]);\n }\n break;\n } }\n } else {\n $b[$i] = $folder;\n } }\n $parse['path'] = implode('/', $b);\n }\n $ret = '';\n if (isset($parse['scheme'])) {\n $ret = $parse['scheme'] . ':';\n }\n if (isset($parse['user']) || isset($parse['password']) || isset($parse['host']) || isset($parse['port'])) {\n $ret .= '//';\n if (isset($parse['user']) || isset($parse['password'])) {\n if (isset($parse['user'])) {\n $ret .= $parse['user'];\n }\n if (isset($parse['password'])) {\n $ret .= ':' . $parse['password'];\n }\n $ret .= '@';\n }\n }\n if (isset($parse['host'])) {\n $ret .= strtolower(trim($parse['host']));\n }\n if (isset($parse['port'])) {\n $ret .= ':' . $parse['port'];\n }\n if (isset($parse['path'])) {\n $ret .= $parse['path'];\n }\n if (isset($parse['query'])) {\n parse_str($parse['query'], $b);\n ksort($b); \n $ret .= '?';\n $part1 = '';\n foreach($b as $i => $folder) {\n $lth = strlen($folder);\n $quote = null;\n if ($lth > 1) {\n switch ($folder[0]) {\n case '\\'':\n case '\"':\n if ($folder[$lth-1] == $folder[0]) {\n $folder = substr($folder, 1, $lth-2);\n } } }\n if (strpos($folder, '\\'') !== false) {\n $quote = '\"';\n } else if (strpos($folder, '\"') != false) {\n $quote = '\\'';\n } else if (strpbrk($folder, '?&;+%') != false) {\n $quote = '\\'';\n }\n if (isset($quote)) {\n $folder = $quote . $folder . $quote;\n }\n $ret .= $part1 . $i . '=' . $folder;\n $part1 = '&';\n }\n }\n if (isset($parse['fragment'])) {\n $ret .= '#' . trim($parse['fragment']);\n }\n return $ret;\n } }\n return $url;\n}", "title": "" }, { "docid": "c5d53a88327056a7b02f92d4bd500e00", "score": "0.5889335", "text": "function parseRequestUri()\n{\n\n list($path, $qs) = array_pad(explode(\"?\", $_SERVER[\"REQUEST_URI\"], 2), 2, null);\n parse_str($qs, $output);\n\n switch(substr($path, 1,2))\n {\n case 'en':\n $lang='english';\n break;\n case 'ja':\n $lang='japanese';\n break;\n default:\n $lang='';\n }\n\n return array(\n $lang,\n $locale = getLocaleFromLanguage($lang),\n $path,\n $output\n );\n\n}", "title": "" }, { "docid": "b042b7b2e84ab77fe5aa1b11f2da1236", "score": "0.5875354", "text": "public static function parseHost($url) {\n\t\t$url = @parse_url ( 'http://' . preg_replace ( '#^https?://#', '', $url ) );\n\t\treturn (isset ( $url ['host'] ) && ! empty ( $url ['host'] )) ? $url ['host'] : false;\n\t}", "title": "" }, { "docid": "c9e04fe3b95f835f645d03befb7dfb80", "score": "0.58641905", "text": "protected function parseURLs() {\n\t\tstatic $urlPattern = null;\n\t\tstatic $callback = null;\n\t\tif ($urlPattern === null) {\n\t\t\t$urlPattern = new Regex('\n\t\t\t(?<!\\B|\"|\\'|=|/|\\]|,|\\?)\n\t\t\t(?:\t\t\t\t\t\t# hostname\n\t\t\t\t(?:ftp|https?)://'.static::$illegalChars.'(?:\\.'.static::$illegalChars.')*\n\t\t\t\t|\n\t\t\t\twww\\.(?:'.static::$illegalChars.'\\.)+\n\t\t\t\t(?:[a-z]{2,4}(?=\\b))\n\t\t\t)\n\t\t\t\n\t\t\t(?::\\d+)?\t\t\t\t\t# port\n\t\t\t\n\t\t\t(?:\n\t\t\t\t/\n\t\t\t\t[^!.,?;\"\\'<>()\\[\\]{}\\s]*\n\t\t\t\t(?:\n\t\t\t\t\t[!.,?;(){}]+ [^!.,?;\"\\'<>()\\[\\]{}\\s]+\n\t\t\t\t)*\n\t\t\t)?', Regex::IGNORE_WHITESPACE | Regex::CASE_INSENSITIVE);\n\t\t}\n\t\tif ($callback === null) {\n\t\t\t$callback = new Callback(function ($matches) {\n\t\t\t\tif ((PreParser::getInstance()->allowedBBCodes === null || in_array('all', PreParser::getInstance()->allowedBBCodes) || in_array('media', PreParser::getInstance()->allowedBBCodes)) && BBCodeMediaProvider::isMediaURL($matches[0])) {\n\t\t\t\t\treturn '[media]'.$matches[0].'[/media]';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (PreParser::getInstance()->allowedBBCodes === null || in_array('all', PreParser::getInstance()->allowedBBCodes) || in_array('url', PreParser::getInstance()->allowedBBCodes)) {\n\t\t\t\t\treturn '[url]'.$matches[0].'[/url]';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $matches[0];\n\t\t\t});\n\t\t}\n\t\t\n\t\t$this->text = $urlPattern->replace($this->text, $callback);\n\t}", "title": "" }, { "docid": "eeb741c9af8a02962252afde991e93a3", "score": "0.5850038", "text": "function parse_content( $content ){\n \n $urls = [];\n\n preg_match_all(\"/href=[\\\"\\'](.+?)[\\\"\\']/\", $content, $matches );\n \n if( ! isset( $matches[1] ) ){\n return $this->urls_found;\n }\n \n // only local urls\n foreach( $matches[1] as $url ){\n \n if( isset( $this->urls_found[$url] ) ) continue;\n if( $url === '' ) continue;\n if( $url === '/' ) continue;\n if( $url === '#' ) continue;\n if( preg_match(\"/^javascript/\", $url) ) continue;\n \n $pattern = str_replace('.', '\\.', $this->site_url_nopro);\n \n if( preg_match(\"/^(https?:\\/\\/\".$pattern.\"|\\/)/i\", $url) ){\n $urls[] = $url;\n }\n }\n \n // remove assets urls and external urls\n foreach( $urls as $key => $url ){\n \n if( preg_match(\"/\\.(js|css|png|jpg|gif|jpeg|xml|ico)/i\", $url ) ){\n unset($urls[$key]);\n }\n \n $pattern = str_replace('.', '\\.', $this->site_url_nopro);\n \n // starts with // but external url\n if( preg_match(\"/^\\/\\//i\", $url) && ! preg_match(\"/^\\/\\/\".$pattern.\"/i\", $url) ){\n unset($urls[$key]);\n }\n }\n \n // exlcude these paths\n foreach( $urls as $key => $url ){\n if( preg_match(\"/(\\/wp-json\\/|xmlrpc\\.php|wp\\-content|wp\\-admin)/i\", $url ) ){\n unset($urls[$key]);\n }\n }\n\n // add domain to /example/\n foreach( $urls as $key => $url ){\n if( preg_match(\"/^\\/[0-9a-z]/i\", $url ) ){\n $urls[$key] = $this->site_url . preg_replace(\"/^\\//\", \"\", $url);\n }\n }\n\n // no duplications\n foreach( $urls as $key => $url ) {\n if( ! in_array( $url, $this->urls_found ) ){\n $this->urls_found[] = $url;\n }\n }\n\n }", "title": "" }, { "docid": "08b40bb4a9c7d0f40c2f1deab0490851", "score": "0.5830725", "text": "public function parseURL()\n\t{\n\t\tif (isset($_GET['url']))\n\t\t{\n\t\t\t$url \t= explode('/', filter_var(trim($_GET['url']), FILTER_SANITIZE_URL));\n\t\t\t$url[0] = $url[0] . 'Controller';\n\t\t}else{\n\t\t\t$url[0] = 'homeController';\n\t\t}\n\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "9e111f4dbfd364dd043aaaba7867d3b7", "score": "0.5797656", "text": "function is_valid_url($url) {\n $regex = '';\n\n $regex .= '&';\n $regex .= '^(ftp|http|https):';\t\t\t\t\t// protocol\n $regex .= '(//)';\t\t\t\t\t\t\t\t// authority-start\n $regex .= '([-a-z0-9/~;:@=+$,.!*()\\']+@)?';\t\t// userinfo\n $regex .= '(';\n $regex .= '((?:[^\\W_]((?:[^\\W_]|-){0,61}[^\\W_])?\\.)+[a-zA-Z]{2,6}\\.?)';\t\t// domain name\n $regex .= '|';\n $regex .= '([0-9]{1,3}(\\.[0-9]{1,3})?(\\.[0-9]{1,3})?(\\.[0-9]{1,3})?)';\t// OR ipv4\n $regex .= ')';\n $regex .= '(:([0-9]*))?';\t\t\t\t\t\t// port\n $regex .= '(/((%[0-9a-f]{2}|[-_a-z0-9/~;:@=+$,.!*()\\'\\&]*)*)/?)?';\t// path\n $regex .= '(\\?[^#]*)?';\t\t\t\t\t\t\t// query\n $regex .= '(#([-a-z0-9_]*))?';\t\t\t\t\t// anchor (fragment)\n $regex .= '$&i';\n\n $result = preg_match($regex, $url, $subpatterns);\n\n if ($result === 1) {\n return true;\n }\n\n return false;\n}", "title": "" }, { "docid": "08c6d27e5bf3f39bf54b3be5d787d607", "score": "0.5796142", "text": "function __validateURL($url) {\n\n if (preg_match(\"#\\b(http[s]?://|ftp[s]?://){1,}?([-a-zA-Z0-9\\.]+)([-a-zA-Z0-9\\.]){1,}([-a-zA-Z0-9_\\.\\#\\@\\:%_/\\?\\=\\~\\-\\//\\!\\'\\(\\)\\s\\^\\:blank:\\:punct:\\:xdigit:\\:space:\\$]+)#si\", $url)) {\n return TRUE;\n } else {\n return FALSE;\n }\n}", "title": "" }, { "docid": "7c1ca39a73707cbd2fd601c592a718d2", "score": "0.5795213", "text": "function prep_url($str = '')\r\n\t\t{\r\n\t\t\tif ($str == 'http://' OR $str == '')\r\n\t\t\t{\r\n\t\t\t\treturn '';\r\n\t\t\t}\r\n\r\n\t\t\t$url = parse_url($str);\r\n\r\n\t\t\tif ( ! $url OR ! isset($url['scheme']))\r\n\t\t\t{\r\n\t\t\t\t$str = 'http://'.$str;\r\n\t\t\t}\r\n\t\t\treturn $str;\r\n\t\t}", "title": "" }, { "docid": "1e9cc530ed5b1b510e02c7f03552c0d3", "score": "0.57897615", "text": "public static function unparseUrl($parsed)\n\t{\n\t\t$url = '';\n\n\t\tif (isset($parsed['scheme'])) {\n\t\t\t$url .= $parsed['scheme'] . '://';\n\t\t}\n\n\t\tif (isset($parsed['user'])) {\n\t\t\t$url .= $parsed['user'];\n\t\t\tif (isset($parsed['pass'])) {\n\t\t\t\t$url .= ':' . $parsed['pass'];\n\t\t\t}\n\t\t\t$url .= '@';\n\t\t}\n\n\t\tif (isset($parsed['host'])) {\n\t\t\t$url .= $parsed['host'];\n\t\t}\n\n\t\tif (isset($parsed['port'])) {\n\t\t\t$url .= ':' . $parsed['port'];\n\t\t}\n\n\t\tif (isset($parsed['path'])) {\n\t\t\t$url .= $parsed['path'];\n\t\t}\n\n\t\tif (isset($parsed['query'])) {\n\t\t\t$url .= '?' . $parsed['query'];\n\t\t}\n\n\t\tif (isset($parsed['fragment'])) {\n\t\t\t$url .= '#' . $parsed['fragment'];\n\t\t}\n\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "16b36fb47a1ea2507e560750bd73f3f3", "score": "0.5764995", "text": "protected function _parseUrls($str)\n {\n // $re = '/^(http:\\/\\/|https:\\/\\/)?(.*?\\.)?(.*?).com/';\n // preg_match_all($this->re_URL, $str, $matches);\n // $fullMatch = $matches[0]; // just for clarity w/ PHP match handle\n // $patternMatch = $matches[1];\n // foreach ($patternMatch as $match) {\n // preg_match($re, $match, $m);\n // $domain = $m[3];\n // $str = str_replace($match, $this->_renderAnchorTag($match, $domain), $str);\n // }\n return $str;\n }", "title": "" }, { "docid": "4b636f1e277b133b779549a4eed7d796", "score": "0.57536906", "text": "private function getUrl(): array\n {\n $default_url = explode('/', $GLOBALS['DEFAULT_URL']);\n\n /**\n * $_GET['url'] can be:\n * - NULL\n * - controller\n * - controller/method\n * - controller/method/params...\n */\n if (isset($_GET['url'])) {\n\n $url = $_GET['url'];\n $url = trim($url, '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n\n if (sizeof($url) <= 2) {\n $url = [\n (is_array($url) && isset($url[0]) ? $url[0] : $default_url[0]),\n (is_array($url) && isset($url[1]) ? $url[1] : $default_url[1]),\n ];\n }\n\n return $url;\n }\n return $default_url;\n }", "title": "" }, { "docid": "ddeda17fb297ec80982cd8648ff4274f", "score": "0.5744305", "text": "private function parseUrls($urls) {\n $urls = (array) $urls;\n $result = array();\n $counter = 0;\n\n foreach ($urls as $serverUrl) {\n if (!preg_match('|^https?://|', $serverUrl)) {\n $serverUrl = 'http://' . $serverUrl;\n }\n\n $parts = parse_url($serverUrl);\n\n // Remove the port from the server URL if it's equal to 80 when scheme is http, or if\n // it's equal to 443 when the scheme is https\n if (\n isset($parts['port']) && (\n ($parts['scheme'] === 'http' && $parts['port'] == 80) ||\n ($parts['scheme'] === 'https' && $parts['port'] == 443)\n )\n ) {\n if (empty($parts['path'])) {\n $parts['path'] = '';\n }\n\n $serverUrl = $parts['scheme'] . '://' . $parts['host'] . $parts['path'];\n }\n\n $serverUrl = rtrim($serverUrl, '/');\n\n if (!isset($result[$serverUrl])) {\n $result[$serverUrl] = $counter++;\n }\n }\n\n return array_flip($result);\n }", "title": "" }, { "docid": "3dacf9fb1274d843c2d40d65e07b2aca", "score": "0.5715221", "text": "public function getURL()\n {\n return isset($_GET['url']) ? explode('/', filter_var(rtrim($_GET['url']), FILTER_SANITIZE_URL)) : null;\n }", "title": "" }, { "docid": "6b55c20e08b008eb3b33c43f046834d9", "score": "0.5697195", "text": "public static function validateUrl($url) {\n if (preg_match(self::URL_REGEX, $url, $urlParts)) {\n return $urlParts;\n }\n return false;\n }", "title": "" }, { "docid": "83f6646dbd9ccda70e0db0d3e7237431", "score": "0.5695836", "text": "function validate_url($url) {\n\treturn preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url);\n}", "title": "" }, { "docid": "73a7aba4e9a14e8238e434596e419bc4", "score": "0.56882256", "text": "private function splitUrl()\n {\n if (!isset($_GET['url'])) {\n return;\n }\n // Split URL\n $url = trim($_GET['url'], '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n\n // Put URL parts into according properties\n // By the way, the syntax here is just a short form of if/else, called \"Ternary Operators\"\n if (isset($url[0])) {\n $this->url_controller = $url[0];\n }\n if (isset($url[1])) {\n $this->url_action =$url[1];\n }\n\n // Remove controller and action from the split URL\n unset($url[0], $url[1]);\n\n // Rebase array keys and store the URL params\n $this->url_params = array_values($url);\n\n }", "title": "" }, { "docid": "f6294b9889335681a015fe772d411b44", "score": "0.56859225", "text": "public static function parse($url)\n {\n $parts = parse_url($url);\n if (false === $parts) {\n throw new Exception('Passed URL could not be parsed. It may be malformed.');\n }\n \n // Parse query string as an array\n $parts['query'] = call_user_func(function($query) {\n parse_str($query);\n unset($query);\n return get_defined_vars();\n }, $parts['query']);\n \n // Strip auth parts and replace them as an array\n $auth = array();\n if (isset($parts['user'])) {\n $auth['username'] = $parts['user'];\n unset($parts['user']);\n }\n if (isset($parts['pass'])) {\n $auth['password'] = $parts['pass'];\n unset($parts['pass']);\n }\n $parts['auth'] = $auth;\n\n return new self($parts);\n }", "title": "" }, { "docid": "68f609359748033bd83aa92069fe5e28", "score": "0.5679052", "text": "public static function extractUrls(string $value): array\n {\n // remove invisible ASCII characters from the value\n $value = trim(preg_replace('/[^ -~]/u', '', $value));\n\n $count = preg_match_all(\n '!url\\(\\s*[\\'\"]?(.*?)[\\'\"]?\\s*\\)!i',\n $value,\n $matches,\n PREG_PATTERN_ORDER\n );\n\n if (is_int($count) === true && $count > 0) {\n return $matches[1];\n }\n\n return [];\n }", "title": "" }, { "docid": "fecd34eb1c5aa234a9be86324d63bfa3", "score": "0.56650263", "text": "public static function parseURL($url) {\n\t\t$route = array(\n\t\t\t'app' => '',\n\t\t\t'params' => array(),\n\t\t\t'mode' => '',\n\t\t\t'admin' => false\n\t\t);\n\n\t\tif (is_string($url)) {\n\t\t\t$url = trim($url, '/');\n\n\t\t\tif (!empty($url)) {\n\t\t\t\t$params = explode('/', $url);\n\n\t\t\t\t// Extract the mode if exists\n\t\t\t\tif (isset($params[0]) && in_array($params[0], array('m', 'v', 'mv', 'o'))) {\n\t\t\t\t\t$route['mode'] = array_shift($params);\n\t\t\t\t}\n\n\t\t\t\t// Extract the app\n\t\t\t\t$app = array_shift($params);\n\t\t\t\tif (!empty($app)) {\n\t\t\t\t\t// Admin route\n\t\t\t\t\tif ($app == 'admin') {\n\t\t\t\t\t\t$route['admin'] = true;\n\n\t\t\t\t\t\t$app = array_shift($params);\n\t\t\t\t\t\tif (!empty($app)) {\n\t\t\t\t\t\t\t// In WityCMS, to trigger an admin app, the app must be equal to \"admin/news\"\n\t\t\t\t\t\t\t$route['app'] = 'admin/'.$app;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$route['app'] = $app;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$route['params'] = $params;\n\t\t\t}\n\t\t}\n\n\t\treturn $route;\n\t}", "title": "" }, { "docid": "eb16126d1bcbef9025a371b3161bb58c", "score": "0.5659763", "text": "function isValidURL($url) {\n if (substr($url,0,4) === 'http') {\n return filter_var(filter_var($url, FILTER_SANITIZE_STRING), FILTER_VALIDATE_URL);\n }\n return false;\n}", "title": "" }, { "docid": "85ec04b8c07dd513e7897c493cd8200a", "score": "0.56582516", "text": "function splitUrl()\r\n{\r\n\tif (isset($_GET['url'])) {\r\n\r\n\t\t// removes the white spaces and slashes from the start and end if there are any\r\n\t\t$tmp_url = trim($_GET['url'], \"/\");\r\n\r\n\t\t// The FILTER_SANITIZE_URL filter removes all illegal URL characters from a string.\r\n\t\t$tmp_url = filter_var($tmp_url, FILTER_SANITIZE_URL);\r\n\r\n\t\t// explode splits the string at / and puts its back into $tmp_url as an array\r\n\t\t$tmp_url = explode(\"/\", $tmp_url);\r\n\r\n\t\t// takes the first one from the $tmp_url array and puts it as the controller and the second one as the action\r\n\t\t// in case there is no action it makes index into the action\r\n\t\t$url['controller'] = isset($tmp_url[0]) ? ucwords($tmp_url[0] . 'Controller') : null;\r\n\t\t$url['action'] = isset($tmp_url[1]) ? $tmp_url[1] : 'index';\r\n\r\n\t\t// removes those first 2 values from the $tmp_url array as they are now in a new associative array\r\n\t\tunset($tmp_url[0], $tmp_url[1]);\r\n\r\n\t\t// takes the remaining variables and puts them into the associative array as parameters \r\n\t\t$url['params'] = array_values($tmp_url);\r\n\r\n\t\t// return the associative array\r\n\t\treturn $url;\t\r\n\t}\t\r\n}", "title": "" }, { "docid": "ac00893a7c1770812263e3092eb0b2e8", "score": "0.56439966", "text": "private function getParsedUrlHost($url)\n {\n $parsed = parse_url($url);\n return $parsed['host'];\n }", "title": "" }, { "docid": "d4806c969e74587dc174095f70cad692", "score": "0.56420434", "text": "function getHostByUrl($url)\n{\n $url = trim($url, '/');\n\n // If scheme not included, prepend it\n if (!preg_match('#^http(s)?://#', $url)) {\n $url = 'http://' . $url;\n }\n\n $urlParts = parse_url($url);\n\n // remove www\n $domain = preg_replace('/^www\\./', '', $urlParts['host']);\n\n return $domain;\n}", "title": "" }, { "docid": "dfb6ae4ec4dbf4bd399eac66d20659f6", "score": "0.5625998", "text": "public function splitUrl(){\n\n /* Check if the url parameter in the query string is set */\n if(isset($_GET['url'])){\n\n /* Split the url in an array */\n /* Remove the '/' at the beginning / end */\n $url = trim($_GET['url']);\n /* Filter the URL to only have valid characters */\n $url = filter_var($url, FILTER_SANITIZE_URL);\n /* Splits the string */\n $url = explode('/', $url);\n\n /* Get the controller and action if set */\n $this->urlController = isset($url[0]) ? $url[0] : null;\n $this->urlAction = isset($url[1]) ? $url[1] : null;\n\n /* Put the remaining url in the parameters */\n $this->urlParameters = array_slice($url, 2);\n }\n }", "title": "" }, { "docid": "25300cdfee0f8ea5bfec571646ef9c2d", "score": "0.56237066", "text": "function validate_url_construction($url) {\n\t\n\t$urlregex = \"^(https?|ftp)\\:\\/\\/([a-z0-9+!*(),;?&=\\$_.-]+(\\:[a-z0-9+!*(),;?&=\\$_.-]+)?@)?[a-z0-9+\\$_-]+(\\.[a-z0-9+\\$_-]+)*(\\:[0-9]{2,5})?(\\/([a-z0-9+\\$_-]\\.?)+)*\\/?(\\?[a-z+&\\$_.-][a-z0-9,;:@/&%=+\\$_.-]*)?(#[a-z_.-][a-z0-9+\\$_.-]*)?\\$\";\n\tif (eregi($urlregex, $url)) {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "bc99165a034bb77d191f2f59c86f0086", "score": "0.56151104", "text": "public static function parseQuery($url) {\n $params = array();\n\n $args = parse_url($url);\n if (isset($args['query'])) {\n parse_str($args['query'], $params);\n }\n\n return $params;\n }", "title": "" }, { "docid": "7954f1f6ec1d25c5e9e057d0028692ac", "score": "0.5609819", "text": "function relativeToAbsolute($u, $m) {\n if(strpos($m, '//') === 0) {//http link //site.com/test\n return 'http:' . $m;\n }\n\n if(preg_match('#^[a-zA-Z0-9]+[:]#', $m) !== 0) {\n $pu = parse_url($m);\n\n if(preg_match('/^(http|https)$/i', $pu['scheme']) === 0) {\n return '';\n }\n\n $m = '';\n if(isset($pu['path'])) {\n $m .= $pu['path'];\n }\n\n if(isset($pu['query'])) {\n $m .= '?' . $pu['query'];\n }\n\n if(isset($pu['fragment'])) {\n $m .= '#' . $pu['fragment'];\n }\n\n return relativeToAbsolute($pu['scheme'] . '://' . $pu['host'], $m);\n }\n\n if(preg_match('/^[?#]/', $m) !== 0) {\n return $u . $m;\n }\n\n $pu = parse_url($u);\n $pu['path'] = isset($pu['path']) ? preg_replace('#/[^/]*$#', '', $pu['path']) : '';\n\n $pm = parse_url('http://1/' . $m);\n $pm['path'] = isset($pm['path']) ? $pm['path'] : '';\n\n $isPath = $pm['path'] !== '' && strpos(strrev($pm['path']), '/') === 0 ? true : false;\n\n if(strpos($m, '/') === 0) {\n $pu['path'] = '';\n }\n\n $b = $pu['path'] . '/' . $pm['path'];\n $b = str_replace('\\\\', '/', $b);//Confuso ???\n\n $ab = explode('/', $b);\n $j = count($ab);\n\n $ab = array_filter($ab, 'strlen');\n $nw = array();\n\n for($i = 0; $i < $j; ++$i) {\n if(isset($ab[$i]) === false || $ab[$i] === '.') {\n continue;\n }\n if($ab[$i] === '..') {\n array_pop($nw);\n } else {\n $nw[] = $ab[$i];\n }\n }\n\n $m = $pu['scheme'] . '://' . $pu['host'] . '/' . implode('/', $nw) . ($isPath === true ? '/' : '');\n\n if(isset($pm['query'])) {\n $m .= '?' . $pm['query'];\n }\n\n if(isset($pm['fragment'])) {\n $m .= '#' . $pm['fragment'];\n }\n\n $nw = null;\n $ab = null;\n $pm = null;\n $pu = null;\n\n return $m;\n}", "title": "" }, { "docid": "7ee01170814619790ca92fbeb31548c1", "score": "0.5602352", "text": "function parseURL($src_url) { \n\n // Alter from file_get_contents to use CURL\n $curl = curl_init();\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($curl, CURLOPT_HEADER, false);\n curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($curl, CURLOPT_URL, $src_url);\n curl_setopt($curl, CURLOPT_REFERER, $src_url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);\n $str = curl_exec($curl);\n curl_close($curl);\n\n return $str;\n\n}", "title": "" }, { "docid": "5d97633555fdfaffc8f0f648be7aa3b6", "score": "0.55826217", "text": "private function valid_url($url) {\n $allowed_schemes = array('http', 'https');\n $host = parse_url($url, PHP_URL_HOST);\n $scheme = parse_url($url, PHP_URL_SCHEME);\n\n if(!isset($url) || empty($url) || $url == '') {\n $e = 'Invalid Object > Requires an URL.';\n } else {\n if(!in_array(strtolower($scheme), $allowed_schemes)) {\n $e = 'Invalid URL > SEOstats supports soley RFC compliant URL\\'s with HTTP(/S) protocol.';\n } elseif(empty($host) || $host == '') {\n $e = 'Invalid URL > Hostname undefined (or invalid URL syntax).';\n } else {\n /**\n * Regex pattern found in and copied from the Nutch source\n * @url {http://nutch.apache.org/}\n *\n * Fyi: For the following reason, i decided to stay with preg_match.\n *\n * Testing 10k URL's, returned an average execution time (in seconds, per URL) of:\n * if(!preg_match($pattern, $this->url))\n * 0.000104904174805\n * if(!filter_var($this->url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED))\n * 0.000140905380249\n */\n $pattern = '([A-Za-z][A-Za-z0-9+.-]{1,120}:[A-Za-z0-9/](([A-Za-z0-9$_.+!*,;/?:@&~=-])';\n $pattern .= '|%[A-Fa-f0-9]{2}){1,333}(#([a-zA-Z0-9][a-zA-Z0-9$_.+!*,;/?:@&~=%-]{0,1000}))?)';\n if(!preg_match($pattern, $this->url)) {\n $e = 'Invalid URL > Invalid URL syntax.';\n } else {\n $e = 'valid';\n }\n }\n }\n return $e;\n }", "title": "" }, { "docid": "4bfa5b5c6a46955ca6d70b7bc51674c6", "score": "0.5580928", "text": "public static function parseUrl($rootUrl)\n {\n $currentUrl = preg_replace('/\\?.*/', '', $_SERVER['REQUEST_URI']);\n $currentUrl = str_replace(trim($rootUrl, '/'), '', trim($currentUrl, '/'));\n $parsedUrl = explode('/', trim($currentUrl, '/'));\n return $parsedUrl;\n }", "title": "" } ]
01a515de0aff373825efd66bddd3f10b
draws everything that comes before the body content
[ { "docid": "5b21d404c128dbbe463683e20ddc66f4", "score": "0.56166047", "text": "function draw_top($title)\n{\n print \"<html>\\n<head>\\n\";\n print \"<title>$title</title>\\n\";\n print \"<link href='include/default.css' rel='stylesheet' type='text/css' />\\n\";\n print \"</head>\\n\\n<body>\\n\";\n print \"<div id='top'>\\n\";\n top_bar($title);\n print \"</div>\\n<div id='content'>\\n<div id='left'>\\n\";\n left_nav();\n print \"</div>\\n<div id='main'>\\n\";\n}", "title": "" } ]
[ { "docid": "538f8a97bda329675d65a173b5132206", "score": "0.6472899", "text": "function draw_bottom()\n{\n print \"</div>\\n</div>\\n</body>\\n\\n</html>\";\n}", "title": "" }, { "docid": "b23a73e68a7ba0a979eb2d615e3aef87", "score": "0.64679414", "text": "public function drawBody()\n {\n }", "title": "" }, { "docid": "474f3e474289358871d0cf1bfd0d5e4f", "score": "0.6226621", "text": "public function frame()\n {\n $w = $this->GetPageWidth() - $this->lMargin - $this->rMargin;\n $h = $this->GetPageHeight() - $this->tMargin - $this->bMargin;\n \n $this->Rect(\n $this->lMargin,\n $this->tMargin,\n $w,\n $h\n );\n }", "title": "" }, { "docid": "b5b0a654469c0f70aa96f20588001482", "score": "0.5985977", "text": "function drawView()\n\t{\t\n\t\t// begin status block\n\t\techo \"<div class=\\\"status_block\\\">\";\n\n\t\techo \"<div id=\\\"col2\\\"><br/>\";\n\t\t\n\t\t$this->drawLinks();\n\t\t\n\t\techo \"</div>\";\n\t\t\n\t\t$this->writeSummary();\n\t\t\n\t\techo \"</div>\";\n\t}", "title": "" }, { "docid": "5bcf4708882c48bd5593be47ee8d1193", "score": "0.5983738", "text": "protected abstract function _renderBody();", "title": "" }, { "docid": "80121174be8b83ab36c7166b03ba4a90", "score": "0.591964", "text": "function renderBody() {\n (new FactionComponent($this->faction))->render();\n }", "title": "" }, { "docid": "1d380c94878bcbcdd8f2659e3104dad1", "score": "0.58782196", "text": "public function main()\n {\n $this->draw();\n $this->vars();\n Skin::setTemplate('dolibarr');\n }", "title": "" }, { "docid": "4f0231f00c66727cb5eeee0ac5ca9d88", "score": "0.5860239", "text": "function draw(){\n $this->build();\n echo $this->output;\n }", "title": "" }, { "docid": "a60baa301a07d8c21c1c202d626004a7", "score": "0.5770234", "text": "public function draw()\n {\n ncurses_wclear($this->window);\n\n // Get window dimensions\n ncurses_wrefresh($this->window);\n ncurses_getmaxyx($this->window, $winy, $winx);\n\n // Draw border\n ncurses_wborder($this->window, 0, 0, 0, 0, 0, 0, 0, 0);\n\n if (!$this->hasEnded) {\n foreach ($this->figures as $figure) {\n ncurses_wattron($this->window, NCURSES_A_REVERSE);\n $figure->getOutputter()->draw($this);\n ncurses_wattroff($this->window, NCURSES_A_REVERSE);\n }\n }\n\n // Not all terminals can handle disabling the cursor\n // So we move the cursor to the corner to hide it\n ncurses_wmove($this->window, 0, 0);\n\n // Refresh\n ncurses_wrefresh($this->window);\n }", "title": "" }, { "docid": "29000131565adc059cfe7437dbe97175", "score": "0.5719711", "text": "public function RenderBegin ();", "title": "" }, { "docid": "a7f3f1c29e64061dd579a2b9d2cdd8ee", "score": "0.5704085", "text": "public function Draw(){\r\n\t\t$this->AddPage();\t\t\r\n\t\t$storedY = $this->AddLogo();\t\r\n\t\t\t\r\n\t\t$stored1Y = $this->AddOrderDetails($storedY);\t\t\t\t\r\n\t\t$stored2Y = $this->AddCompanyDetails();\r\n\t\t\t\t\t\t\r\n\t\t$storedY = $this->AddAddress(($stored2Y > $stored1Y) ? $stored2Y : $stored1Y);\t\r\n\t\t$this->setY($storedY);\r\n\t\t\r\n\t\t$this->AddProducts($this->data['order']['products']);\t\t\r\n\t\t$this->AddVouchers($this->data['order']['vouchers']);\t\t\r\n\t\t$this->AddTotals($this->data['order']['totals']);\r\n\t\t\r\n\t\t$this->AddInvoiceText($this->data['config']['invoice_text']);\r\n\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "55bad4a9b68942516a1d428e5ccfeee5", "score": "0.56438786", "text": "protected function showBodyContent()\n {\n $this->bodyHeader();\n $this->mainMenu();\n $this->mainContent();\n $this->bodyFooter();\n }", "title": "" }, { "docid": "600e31090a5d1b10c7c42559a0d873fa", "score": "0.56432086", "text": "public function draw();", "title": "" }, { "docid": "600e31090a5d1b10c7c42559a0d873fa", "score": "0.56432086", "text": "public function draw();", "title": "" }, { "docid": "0048caacc4597af06da9ae25ab9ea837", "score": "0.56351817", "text": "public function beginBody() {\r\n echo self::PH_BODY_BEGIN;\r\n $this->trigger(self::EVENT_BEGIN_BODY);\r\n }", "title": "" }, { "docid": "dcc1cf21d87baff408204d702685ba9b", "score": "0.56209946", "text": "function paintDocumentStart() {\n\t\tob_start();\n\t\t$baseDir = $this->params['baseDir'];\n\t\tinclude CAKE_TESTS_LIB . 'templates' . DS . 'header.php';\n\t}", "title": "" }, { "docid": "0dff49911861d0b6d3a57f80012ebad5", "score": "0.5598843", "text": "public function flush() {\n\t\t$content = $this->doc->startPage($GLOBALS['LANG']->getLL('title'));\n\t\t$content.= $this->doc->moduleBody(\n\t\t\t$this->pageRecord,\n\t\t\t$this->getDocHeaderButtons(),\n\t\t\t$this->getTemplateMarkers()\n\t\t);\n\t\t$content.= $this->doc->endPage();\n\t\t\n\t\t// TODO: find out what we need this for - and anyway IF it is needed!\n\t\t#$content.= $this->doc->insertStylesAndJS($this->content);\n\n\t\t$this->content = null;\n\t\t$this->doc = null;\n\n\t\techo $content;\n\t\t\n\t}", "title": "" }, { "docid": "462650963d8f059b6a50982c86f793e4", "score": "0.5587408", "text": "function drawMyPage($sSelectedMenu, $sArticles, $sHead=\"\")\n{\n// echo \"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 1.0 Strict//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\\\">\\n\";\n echo \"<html>\\n\";\n\techo \"<head>\\n\";\n\techo '<script type=\"text/javascript\">' . \"\\n\";\n echo \"function loaded()\\n\";\n\techo \"{\\n\";\n\techo 'var maindiv=document.getElementById(\"main\");' . \"\\n\";\n\techo 'var contdiv=document.getElementById(\"container\");' . \"\\n\";\n\techo 'var menudiv=document.getElementById(\"menu\");' . \"\\n\";\n echo 'var menh=menudiv.offsetHeight + 10;' . \"\\n\";\n\techo 'var mainh=maindiv.offsetHeight;' . \"\\n\";\n echo 'var height=(menh>mainh) ? menh : mainh;' . \"\\n\";\n\techo 'contdiv.style.height=height + \"px\";' . \"\\n\";\n\techo \"}\\n\";\n echo \"</script>\\n\";\n echo \"<title>quazLayout Example Website</title>\\n\";\n echo \"<link rel=\\\"stylesheet\\\" href=\\\"Stylesheet.css\\\" type=\\\"text/css\\\"/>\\n\";\n echo $sHead;\n echo \"</head>\\n\";\n echo '<body onload=\"loaded();\">' . \"\\n\";\n echo \"\\n\";\n echo \"<div id=\\\"masthead\\\">\\n\";\n echo \"<img src=\\\"myPictures/Logo.png\\\" style=\\\"margin:8px;\\\" id=\\\"logo\\\"/>\\n\";\n\n echo \"<span style=\\\"color:#FFF; font-family:Arial; font-size:medium;\\\">\\n\";\n echo '...you could put some text here';\n echo \"\\n\";\n echo \"</span></div>\";\n echo \"\\n\";\n \n echo \"<div id=\\\"container\\\">\\n\";\n echo drawMyMenu($sSelectedMenu);\n echo \"<div id=\\\"main\\\">\\n\";\n echo $sArticles;\n echo \"</div>\\n\";\n echo \"</div>\\n\";\n\n echo \"<div id=\\\"footer\\\">Copyright 2018 Nigel Sharp\";\n echo '<a href=\"https://github.com/NigelGSharpUK/quazLayout\"> github.com/NigelGSharpUK/quazLayout</a>';\n echo \"</div>\\n\";\n \n echo \"</body></html>\\n\";\n}", "title": "" }, { "docid": "b524aa18a75360ebdf78009be94c05f0", "score": "0.55773896", "text": "public function beginPage(): void\n {\n ob_start();\n ob_implicit_flush(false);\n }", "title": "" }, { "docid": "7e362284d77882893adb49316eef3773", "score": "0.55576205", "text": "function body_content()\n {\n $sub_navigation = @$this->content['navigation']['sub'];\n if ($this->template === 'admin') {\n unset($this->content['navigation']['sub']);\n }\n $navigation = &$this->content['navigation'];\n if (isset($navigation['cat'])) {\n donut_remove_brackets($navigation['cat']);\n }\n $this->body_prefix();\n $this->notices();\n\n//\t\t\tif ($this->template !== 'question') {\n $this->output('<main class=\"donut-masthead\">');\n//\t\t\t\t$this->output('<div class=\"container\">');\n//\t\t\t\t$this->output('<div class=\"page-title\">');\n//\t\t\t\t$this->page_title_error();\n//\t\t\t\t$this->output('</div>');\n//\t\t\t\t$this->output('</div>');\n $this->output('</main>');\n//\t\t\t}\n\n $this->output('<div class=\"qa-body-wrapper\">', '');\n\n $this->widgets('full', 'top');\n $this->header();\n $this->widgets('full', 'high');\n\n if (count($sub_navigation)) {\n // create the left side bar\n $this->left_side_bar($sub_navigation);\n }\n\n $this->main();\n\n if ($this->template !== 'admin' && $this->template != 'user') {\n $this->sidepanel();\n }\n\n $this->widgets('full', 'low');\n $this->footer();\n $this->widgets('full', 'bottom');\n\n $this->output('</div> <!-- END body-wrapper -->');\n\n $this->body_suffix();\n }", "title": "" }, { "docid": "fc2b8fe1ef1af369790e7b3ef72e8ad0", "score": "0.5522081", "text": "protected function renderBodyBeginHtml()\r\n {\r\n $lines = [];\r\n \r\n if (!empty($this->externalJs[self::POS_BEGIN])) {\r\n $lines[] = implode(\"\\n\", $this->externalJs[self::POS_BEGIN]);\r\n }\r\n \r\n if (!empty($this->jsFiles[self::POS_BEGIN])) {\r\n $lines[] = implode(\"\\n\", $this->jsFiles[self::POS_BEGIN]);\r\n }\r\n if (!empty($this->js[self::POS_BEGIN])) {\r\n $lines[] = Html::script(implode(\"\\n\", $this->js[self::POS_BEGIN]));\r\n }\r\n\r\n return empty($lines) ? '' : implode(\"\\n\", $lines);\r\n }", "title": "" }, { "docid": "dfb1707e15dd321afbed7895dacb8922", "score": "0.5496697", "text": "function draw()\n {\n echo 'Drawwing rectangle';\n }", "title": "" }, { "docid": "a7f796487f1da019d377b754b4b2c1a8", "score": "0.54148954", "text": "abstract public function draw();", "title": "" }, { "docid": "a7f796487f1da019d377b754b4b2c1a8", "score": "0.54148954", "text": "abstract public function draw();", "title": "" }, { "docid": "a7f796487f1da019d377b754b4b2c1a8", "score": "0.54148954", "text": "abstract public function draw();", "title": "" }, { "docid": "07e989ab53d5a42ee82db28adf71dd0b", "score": "0.5408248", "text": "protected function renderMainContent() { }", "title": "" }, { "docid": "705ab04f67fadc5729d081fa8e7073a5", "score": "0.53973085", "text": "public function makePageTop()\n {\n $this->pushStylesheets();\n $this->render(self::HEAD_TEMPLATE);\n }", "title": "" }, { "docid": "751813d559e3d1c4201a8b86e9efcb8e", "score": "0.539027", "text": "public function body() {\n // When from admin panel we need parent->reset()\n if ($this->is_back()) {\n Base_BoxCommon::pop_main();\n }\n $this->admin();\n }", "title": "" }, { "docid": "4d498aba292d8e9ac2e456ff420059cb", "score": "0.53821886", "text": "public function flush() {\n\t\tglobal $LANG;\n\t\t$content = $this->doc->startPage($LANG->getLL('title'));\n\t\t$content .= $this->doc->moduleBody(\n\t\t\t\t$this->pageRecord,\n\t\t\t\t$this->getDocHeaderButtons(),\n\t\t\t\t$this->getTemplateMarkers()\n\t\t);\n\t\t$content .= $this->doc->endPage();\n\t\t//\t\t$content.= $this->doc->insertStylesAndJS($this->content);\n\n\t\t$this->content = null;\n\t\t$this->doc = null;\n\n\t\techo $content;\n\t}", "title": "" }, { "docid": "8c0b619a7b43d60960cbfd82f838c019", "score": "0.5359096", "text": "public function beginBody(): void\n {\n echo self::PH_BODY_BEGIN;\n }", "title": "" }, { "docid": "c00c69efcf94de7ae7e65c11678f8227", "score": "0.5344917", "text": "public function RenderContent() {\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "f139f4716b60c1d91b3ee736e9080ee5", "score": "0.53327143", "text": "function colorRoot() {\r\n\t $this->SetFillColor(0,0,0);\r\n\t $this->SetTextColor(255,255,255);\r\n\t $this->SetDrawColor(150,150,150);\r\n\t $this->SetLineWidth(0.4);\r\n\t $this->SetFont('','B',10);\r\n\t}", "title": "" }, { "docid": "231292044a06442bc91e5d58cb8f65ad", "score": "0.53082335", "text": "public function forceRedraw();", "title": "" }, { "docid": "74a06fa743ee86f9e03a237e66ca57e0", "score": "0.53031516", "text": "public function drawHeader()\n {\n $priceLabel = $this->mediaConfig->getFullPath('Magetrend_GiftCard::images/design/white/header.png');\n $imgWidth = $this->getImgWidth($priceLabel);\n $imgHeight = $this->getImgHeight($priceLabel);\n imagefilledrectangle($this->getImg(), 951, 0, 951+$imgWidth-1, $imgHeight-1, $this->getColor('color2'));\n imagecopy($this->getImg(), imagecreatefrompng($priceLabel), 951, 0, 0, 0, $imgWidth, $imgHeight);\n }", "title": "" }, { "docid": "cc479096b28f20e73debe4b780613c7c", "score": "0.5302438", "text": "function drawWidget()\n\t{\n\t\ttrigger_error(\"Not implemented\");\n\t}", "title": "" }, { "docid": "d80d220463362045992bd8ba150cd8bf", "score": "0.52859646", "text": "function head(){\t\n\t\tprint\"<!DOCTYPE HTML>\\n\";\n\t\tprint\"<html>\\n\";\n\t\tprint\"<head>\\n\";\n\t\tprint\"<title>Project 2 - Wheel of Fortune</title>\\n\";\n\t\tprint'<link href=\"http://www.wheeloffortunesolutions.com/favicon.ico\" type=\"image/vnd.microsoft.icon\" rel=\"icon\" />';\n\t\tprint'<link href=\"http://www.wheeloffortunesolutions.com/favicon.ico\" type=\"image/x-icon\" rel=\"shortcut icon\" />';\n\t\tprint '<link href=\"http://www.wheeloffortunesolutions.com/favicon.gif\" type=\"image/gif\" rel=\"icon\" />';\n\t\tprint\"<link rel='stylesheet' src='http://lovesonjoseph.com/reset.css' type='text/css'/>\";\n\t\t\n\t\tprint\"<style type='text/css'>\\n\";\n\t\tprint\"body{background:url('/bg.png') repeat-x black;}\";\n\t\tprint\".wrap{background:url('http://www.benfolds.com/sites/benfolds/themes/benfolds/images/bg-repeat.jpg') silver; border-radius:4px; margin-left:auto; margin-right:auto; min-height:700px; width:570px; padding:10px; border: 3px solid black;}\\n\";\n\t\tprint\".board{ margin-left:auto; margin-right:auto;}\\n\";\n\t\tprint\"img{margin:3px;}\\n\";\n\t\tprint\"td{ height:70px !important; width:70px !important; text-align:center; padding:0px; }\\n\";\n\t\tprint\"td:hover {background:url('/sq_hover.png') no-repeat; cursor:pointer;}\";\n\t\tprint\".green {background:url('/sq.png') no-repeat;}\\n\";\n\t\tprint\".white { background:url('/white.png') no-repeat;}\\n\";\n\t\tprint\" table {color:black; font-size:1.05em; font-weight:bolder; margin-left:auto; margin-right:auto; border-collapse:collapse; border:3px double darkblue; background:url('/sq.png');} \\n\";\n\t\tprint\".vanna{height:757px; width:484px; float:left; position:absolute; z-index:-1; margin-left:-400px; margin-top:70px; position: fixed;} \\n\";\n\t\tprint\".pat{height:829px; width:348px; float:right; position:absolute; z-index:-2; margin-left:550px; position:fixed; } \\n\";\n\t\tprint\".wheel{backgroung:blue; width:700px; height:189px; position:absolute; z-index:-99; margin-top:100px;}\";\n\t\tprint\" form{margin-left:auto; margin-right:auto;}\";\n\t\tprint\" fieldset{width:459px; height:150px; margin-left:auto; margin-right:auto; margin-top:3px; margin-bottom:3px; border:none; display:block; padding-top:3px; display:block;}\";\n\t\tprint\".black:hover{background:url('/black_hover.png') no-repeat; cursor:pointer; display:block;}\";\n\t\tprint\".gold:hover{background:url('/gold_hover.png') no-repeat; cursor:pointer; display:block;}\";\n\t\tprint\".guess, .reveal, .next{height:70px; width:150px; font-weight:bolder; cursor:pointer; border-radius:4px;}\";\n\t\tprint\".guess:hover, .reveal:hover, .next:hover{background:green; color:white}\";\n\t\tprint\".guess_value{height:70px; width:455px; text-align:center; font-size:3em; font-weight:bolder; margin-bottom:5px; text-transform:capitalize; border-radius:4px;}\";\n\t\tprint\"b {text-align:center !important;}\";\n\t\tprint\"</style>\\n\";\n\t\t\n\t\tprint\" <SCRIPT language=Javascript>\n\t\t function isNumberKey(evt){\n\t\t\t var charCode = (evt.which) ? evt.which : event.keyCode\n\t\t\t if (charCode < 65 && (charCode < 65 || charCode > 90) && charCode != 13 && charCode !=33 && charCode !=39 && charCode !=45 && charCode !=96 && charCode !=126)\n\t\t\t\treturn false;\n\n\t\t\t return true;\n\t\t }\n\t\t \";\n\t\t \n\t\t \n\t\tprint\"</SCRIPT>\";\n\t\tprint\"</head>\\n\";\n\t\tprint\"<body onLoad='document.textbox.guess_value.focus()' >\\n\";\n\t\tprint\"<body >\\n\";\n\t\tprint\"<div class='wrap'>\\n\";\n\t}", "title": "" }, { "docid": "3d953af40347b091b851f43de208997a", "score": "0.52749455", "text": "public function draw()\n {\n echo \"<!doctype html><html><head>\";\n echo \"<link rel='stylesheet' href='composite.css'>\";\n echo \"<meta charset='UTF-8'></head><body>\";\n echo \"<svg width='60%' height='25%' xmlns='http://www.w3.org/2000/svg' version='1.1'>\";\n foreach($this->artWork as $elVal)\n {\n $elVal->draw();\n }\n echo \"</svg>\";\n echo \"</body></html>\";\n }", "title": "" }, { "docid": "105b0c7742c109fb93a70a6cc3e2aa17", "score": "0.5258467", "text": "public function above_body() {\n\t\t$above_body = get_theme_mod('above_body');\n\n\t\tif($above_body) {\n\t\t\techo $above_body;\n\t\t}\n\t}", "title": "" }, { "docid": "84b8c1323fc9b66e0d212ab381dea49c", "score": "0.5249983", "text": "protected function renderBodyBeginHtml()\n {\n $lines = [];\n if (!empty($this->jsFiles[self::POS_BEGIN])) {\n $lines[] = implode(\"\\n\", $this->jsFiles[self::POS_BEGIN]);\n }\n if (!empty($this->js[self::POS_BEGIN])) {\n $this->storage->offsetSet(self::STORAGE_JS_BEGIN, $this->js[self::POS_BEGIN]);\n $lines[] = Html::jsFile(['js/begin', 'hash' => $this->hashKeys($this->js[self::POS_BEGIN])]);\n }\n\n return empty($lines) ? '' : implode(\"\\n\", $lines);\n }", "title": "" }, { "docid": "b0d4d851d763d1e20365cdb2e193da6a", "score": "0.524311", "text": "protected function preRender() {;}", "title": "" }, { "docid": "e51ff90b8ac5ed50275605f771039720", "score": "0.5237957", "text": "public function onBeforeWrite()\n {\n parent::onBeforeWrite();\n if (empty($this->height)) {\n $this->height = 60;\n }\n if (empty($this->bypassSlag)) {\n //$this->Slag = Utilities::SlagGen('Person', $this->Title, $this->ID);\n }\n\n if (!empty($this->inRow)) {\n switch ($this->inRow)\n {\n case 1:\n $this->y = 35;\n break;\n case 2:\n $this->y = 100;\n break;\n case 3:\n $this->y = 165;\n break;\n case 4:\n $this->y = 230;\n break;\n default:\n $this->y = null;\n }\n }\n }", "title": "" }, { "docid": "99990f96e7213ab4be19b0d6183ea6c8", "score": "0.5236549", "text": "public function fillBulbs()\n {\n return $this->drawLine() .\n $this->drawTopBulb() .\n $this->drawBottomBulb();\n }", "title": "" }, { "docid": "81c01c48ad62663c6281da0af2a24ba7", "score": "0.52259177", "text": "function tail(){\n\t\tprint\"</div>\";\n\t\tprint\"\\n</body>\\n\";\n\t\tprint\"</html>\\n\";\n\t}", "title": "" }, { "docid": "5f45ceafe33e313f1ade84e8439fc141", "score": "0.5203546", "text": "function paintDocumentEnd() {\n\t\t$baseDir = $this->params['baseDir'];\n\t\tinclude CAKE_TESTS_LIB . 'templates' . DS . 'footer.php';\n\t\tob_end_flush();\n\t}", "title": "" }, { "docid": "ed3b88b81854f14285ce4ad7c7f6beb3", "score": "0.52029705", "text": "public function renderAll(){\n\n\t\tif(isset(pRegister::arg()['ajax']))\n\t\t\tdie((new pTerminal)->ajax());\n\n\t\tp::Out('\n\t\t<div class=\"fake-browser-ui\">\n\t\t <div class=\"frame\">\n\t\t <span></span>\n\t\t <span></span>\n\t\t <span></span>\n\t\t </div>');\n\t\t(new pTerminal)->initialState();\n\t\tp::Out('</div>');\n\t}", "title": "" }, { "docid": "a62760849c6baee9b7477c56dc8e490a", "score": "0.5201557", "text": "protected function renderBodyBeginHtml(): string\n {\n $lines = [];\n if (!empty($this->jsFiles[self::POS_BODY_BEGIN])) {\n $lines[] = implode(\"\\n\", $this->jsFiles[self::POS_BODY_BEGIN]);\n }\n if (!empty($this->js[self::POS_BODY_BEGIN])) {\n $lines[] = Html::script(implode(\"\\n\", $this->js[self::POS_BODY_BEGIN]));\n }\n\n return empty($lines) ? '' : implode(\"\\n\", $lines) . \"\\n\";\n }", "title": "" }, { "docid": "a92398cdc45115351d7b031e5105298e", "score": "0.5196188", "text": "public function RenderContentWithoutStructure ();", "title": "" }, { "docid": "e5817bc50125a8ceffd400f05a28a7af", "score": "0.5184415", "text": "function paintHeader($test_name) {\n\t\t$this->paintDocumentStart();\n\t\techo \"$test_name\\n\";\n\t\tflush();\n\t}", "title": "" }, { "docid": "357848edb27d07f3b933a315193ba181", "score": "0.518282", "text": "function print_deposit_slip()\n{\n$this->layout='blank';\n\n\n}", "title": "" }, { "docid": "0b3fce7716cb0b0dbd35d0458f00fffa", "score": "0.5177468", "text": "function render() {\n\t\t\tif(!isset($_SESSION['status'])){\n\t\t\t\t$_SESSION['status']=0;\n\t\t\t}\n\t\t\t/*\n\t\t\tforeach($_SESSION as $key=>$value){\n\t\t\t\techo $value;\n\t\t\t}\n\t\t\t */\n\t\t\techo \"<!DOCTYPE HTML><html><head>\";\n\t\t\tforeach ($this->head_items as $key => $value) {\n\t\t\t\t$value->render();\n\t\t\t}\n\t\t\techo \"</head><body>\",PHP_EOL;\n\t\t\t//new toolbar render\n\t\t\t$this->toolbar->render();\n\t\t\tforeach ($this->body_items as $key => $value) {\n\t\t\t\t$value->render();\n\t\t\t}\n\t\t\techo \"</body></html>\";\n\t\t}", "title": "" }, { "docid": "167c1b770f4792983703094f7fd9c7e2", "score": "0.51677746", "text": "public function render() {\n\t\t$this->page->render();\n\t}", "title": "" }, { "docid": "70737b167b8a8687472a0c2e77990604", "score": "0.516751", "text": "function initArea()\r\n {\r\n $this->posXStart = 55;\r\n $this->posXEnd = $this->graphWidth - 5;\r\n $this->posYStart = 35;\r\n $this->posYEnd = $this->graphHeight - 15 - ($this->maxTextLength*6+15);\r\n \r\n ImageFilledRectangle($this->img, $this->posXStart, $this->posYStart, $this->posXEnd , $this->posYEnd, $this->colorBackground);\r\n ImageRectangle($this->img, $this->posXStart, $this->posYStart, $this->posXEnd , $this->posYEnd, $this->colorLines);\r\n }", "title": "" }, { "docid": "f935a59c766b17187b55404e344bb330", "score": "0.5165735", "text": "function startPost() {\r\n\t\techo '<div class=\"post\"><div class=\"post-bgtop\"><div class=\"post-bgbtm\">' . \"\\n\";\r\n\t}", "title": "" }, { "docid": "78dbd6327fbbe82e17dce7f61dbee14e", "score": "0.51537347", "text": "public function renderContents();", "title": "" }, { "docid": "5b65a99ef2c9848d9273324979189b3e", "score": "0.51528835", "text": "public function layout();", "title": "" }, { "docid": "5b65a99ef2c9848d9273324979189b3e", "score": "0.51528835", "text": "public function layout();", "title": "" }, { "docid": "2d32fa155e19e64b5ef4b4e8e7cc14fb", "score": "0.51487106", "text": "function colorNonRoot() {\r\n\t $this->SetFillColor(224,235,255);\r\n\t $this->SetTextColor(0);\r\n\t\t$this->SetDrawColor(150,150,150);\r\n\t $this->SetLineWidth(0.4);\r\n\t $this->SetFont('','',10);\r\n\t}", "title": "" }, { "docid": "4969fd692d0d368414a8723f7daaeada", "score": "0.5131163", "text": "function Footer()\n {\n /* -- CSS-PAGE -- */\n // PAGED MEDIA - CROP / CROSS MARKS from @PAGE\n if ($this->show_marks == 'CROP' || $this->show_marks == 'CROPCROSS') {\n // Show TICK MARKS\n $this->SetLineWidth(0.1); // = 0.1 mm\n $this->SetDColor($this->colorConverter->convert(0, $this->PDFAXwarnings));\n $l = $this->cropMarkLength;\n $m = $this->cropMarkMargin; // Distance of crop mark from margin\n $b = $this->nonPrintMargin; // Non-printable border at edge of paper sheet\n $ax1 = $b;\n $bx = $this->page_box['outer_width_LR'] - $m;\n $ax = max($ax1, $bx - $l);\n $cx1 = $this->w - $b;\n $dx = $this->w - $this->page_box['outer_width_LR'] + $m;\n $cx = min($cx1, $dx + $l);\n $ay1 = $b;\n $by = $this->page_box['outer_width_TB'] - $m;\n $ay = max($ay1, $by - $l);\n $cy1 = $this->h - $b;\n $dy = $this->h - $this->page_box['outer_width_TB'] + $m;\n $cy = min($cy1, $dy + $l);\n\n $this->Line($ax, $this->page_box['outer_width_TB'], $bx, $this->page_box['outer_width_TB']);\n $this->Line($cx, $this->page_box['outer_width_TB'], $dx, $this->page_box['outer_width_TB']);\n $this->Line($ax, $this->h - $this->page_box['outer_width_TB'], $bx, $this->h - $this->page_box['outer_width_TB']);\n $this->Line($cx, $this->h - $this->page_box['outer_width_TB'], $dx, $this->h - $this->page_box['outer_width_TB']);\n $this->Line($this->page_box['outer_width_LR'], $ay, $this->page_box['outer_width_LR'], $by);\n $this->Line($this->page_box['outer_width_LR'], $cy, $this->page_box['outer_width_LR'], $dy);\n $this->Line($this->w - $this->page_box['outer_width_LR'], $ay, $this->w - $this->page_box['outer_width_LR'], $by);\n $this->Line($this->w - $this->page_box['outer_width_LR'], $cy, $this->w - $this->page_box['outer_width_LR'], $dy);\n\n if ($this->printers_info) {\n $hd = date('Y-m-d H:i') . ' Page ' . $this->page . ' of {nb}';\n $this->SetTColor($this->colorConverter->convert(0, $this->PDFAXwarnings));\n $this->SetFont('arial', '', 7.5, true, true);\n $this->x = $this->page_box['outer_width_LR'] + 1.5;\n $this->y = 1;\n $this->Cell($headerpgwidth, $this->FontSize, $hd, 0, 0, 'L', 0, '', 0, 0, 0, 'M');\n $this->SetFont($this->default_font, '', $this->original_default_font_size);\n }\n }\n if ($this->show_marks == 'CROSS' || $this->show_marks == 'CROPCROSS') {\n $this->SetLineWidth(0.1); // = 0.1 mm\n $this->SetDColor($this->colorConverter->convert(0, $this->PDFAXwarnings));\n $l = 14 / 2; // longer length of the cross line (half)\n $w = 6 / 2; // shorter width of the cross line (half)\n $r = 1.2; // radius of circle\n $m = $this->crossMarkMargin; // Distance of cross mark from margin\n $x1 = $this->page_box['outer_width_LR'] - $m;\n $x2 = $this->w - $this->page_box['outer_width_LR'] + $m;\n $y1 = $this->page_box['outer_width_TB'] - $m;\n $y2 = $this->h - $this->page_box['outer_width_TB'] + $m;\n // Left\n $this->Circle($x1, $this->h / 2, $r, 'S');\n $this->Line($x1 - $w, $this->h / 2, $x1 + $w, $this->h / 2);\n $this->Line($x1, $this->h / 2 - $l, $x1, $this->h / 2 + $l);\n // Right\n $this->Circle($x2, $this->h / 2, $r, 'S');\n $this->Line($x2 - $w, $this->h / 2, $x2 + $w, $this->h / 2);\n $this->Line($x2, $this->h / 2 - $l, $x2, $this->h / 2 + $l);\n // Top\n $this->Circle($this->w / 2, $y1, $r, 'S');\n $this->Line($this->w / 2, $y1 - $w, $this->w / 2, $y1 + $w);\n $this->Line($this->w / 2 - $l, $y1, $this->w / 2 + $l, $y1);\n // Bottom\n $this->Circle($this->w / 2, $y2, $r, 'S');\n $this->Line($this->w / 2, $y2 - $w, $this->w / 2, $y2 + $w);\n $this->Line($this->w / 2 - $l, $y2, $this->w / 2 + $l, $y2);\n }\n\n /* -- END CSS-PAGE -- */\n\n // mPDF 6\n // If @page set non-HTML headers/footers named, they were not read until later in the HTML code - so now set them\n if ($this->page == 1) {\n if ($this->firstPageBoxHeader) {\n if (isset($this->pageHTMLheaders[$this->firstPageBoxHeader])) {\n $this->HTMLHeader = $this->pageHTMLheaders[$this->firstPageBoxHeader];\n }\n $this->Header();\n }\n if ($this->firstPageBoxFooter) {\n if (isset($this->pageHTMLfooters[$this->firstPageBoxFooter])) {\n $this->HTMLFooter = $this->pageHTMLfooters[$this->firstPageBoxFooter];\n }\n }\n $this->firstPageBoxHeader = '';\n $this->firstPageBoxFooter = '';\n }\n\n\n if (($this->mirrorMargins && ($this->page % 2 == 0) && $this->HTMLFooterE) || ($this->mirrorMargins && ($this->page % 2 == 1) && $this->HTMLFooter) || (!$this->mirrorMargins && $this->HTMLFooter)) {\n $this->writeHTMLFooters();\n }\n\n /* -- WATERMARK -- */\n if (($this->watermarkText) && ($this->showWatermarkText)) {\n $this->watermark($this->watermarkText, $this->watermarkAngle, 120, $this->watermarkTextAlpha); // Watermark text\n }\n if (($this->watermarkImage) && ($this->showWatermarkImage)) {\n $this->watermarkImg($this->watermarkImage, $this->watermarkImageAlpha); // Watermark image\n }\n /* -- END WATERMARK -- */\n }", "title": "" }, { "docid": "e5d1380447e21cf418aeecad01e5b64c", "score": "0.5116144", "text": "function cutRender(){\n $x=$this->api->template->get('document_ready');\n if(is_array($x))$x=join('',$x);\n if(!empty($x)) echo '<script type=\"text/javascript\">'.$x.'</script>';\n return;\n }", "title": "" }, { "docid": "b8e7890a656a29abe93933342ece753e", "score": "0.5099497", "text": "function draw()\n {\n echo 'Drawwing square';\n }", "title": "" }, { "docid": "94b017a59ebe2eb3058c863689861f25", "score": "0.5097597", "text": "public function chiudiBody() {\n?>\n<br /><br />\n<?php \nif ($this->bodyDiv) echo '</div>';\n?>\n</div>\n</div>\n</body>\n</html>\n<?php \n\t}", "title": "" }, { "docid": "0b22506b52cedb8820cc68fe28f77fb6", "score": "0.50878775", "text": "protected function _finalize(){\n\t\tparent::_finalize();\n\t\t\n\t\tif ( $this->header ){\n\t\t\tparent::prepend( new \\Snap\\Node\\Core\\Text(array('tag'=>'h5','text'=>$this->header)), true );\n\t\t}\n\t}", "title": "" }, { "docid": "12049073876240a00c82338ee49b4514", "score": "0.50878274", "text": "public function run()\n\t{\n\t\t$buttons=$this->createPageButtons();\n\t\tif(empty($buttons))\n\t\t\treturn;\n\t\techo $this->header;\n\t\techo implode(\"&nbsp;\",$buttons);\n\t\techo $this->footer;\n\t}", "title": "" }, { "docid": "fe1e761342fab3e20d8298f467f52c0f", "score": "0.50858486", "text": "function draw()\n {\n\n echo \"Recntangle draw() <br>\";\n }", "title": "" }, { "docid": "7f9eaf391902c69977c13269e39a07cc", "score": "0.50812054", "text": "public function RenderEnd ();", "title": "" }, { "docid": "d871923f7cf210612a06384084f96021", "score": "0.5071687", "text": "protected function render()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "81658a94d313a138de06946826e6f511", "score": "0.5053486", "text": "protected function _render()\n\t{\n\t\t$_endTag = $this->_renderContainer();\n\n\t\t$this->_renderCss();\n\t\t$this->_renderHtml();\n\t\t$this->_renderScripts();\n\n\t\t$this->_renderContainer( $_endTag );\n\t}", "title": "" }, { "docid": "037c4042af2358b0a39b6759c5262fbd", "score": "0.5051909", "text": "protected function _drawContent()\r\n\t{\r\n\t\t$maxDigit = strlen((string)$this->_getMaxValue($this->_dataArray));\r\n\t\t$maxMemoryValue = ceil($this->_getMaxValue($this->_dataArray) / $this->_power(10, $maxDigit - 1))\r\n\t\t\t\t\t\t * $this->_power(10, $maxDigit - 1);\r\n\t\t\r\n\t\t$lineX = $this->_memoryAreaWidth =\r\n\t\t\t\t\tstrlen((string)$this->_getMaxValue($this->_dataArray)) * self::CHARACTER_SIZE + self::MARGIN_LEFT;\r\n\t\t\r\n\t\t$lineColor = imagecolorallocate($this->_im, 100, 100, 100); // line color\r\n\t\t$i = 0;\r\n\t\tforeach ($this->_dataArray as $key => $value) {\r\n\t\t\t$lineHeight = round(($this->_height - self::MARGIN_TOP - self::MARGIN_BOTTOM) * $value / $maxMemoryValue);\r\n\t\t\t$lineY = self::MARGIN_TOP + ($this->_height - self::MARGIN_TOP - self::MARGIN_BOTTOM) - $lineHeight;\r\n\t\t\t\r\n\t\t\tif ($i > 0) {\r\n\t\t\t\timageline($this->_im, $preLineX + round(self::POINT_SIZE / 2), $preLineY + round(self::POINT_SIZE / 2),\r\n\t\t\t\t\t\t$lineX + round(self::POINT_SIZE / 2), $lineY + round(self::POINT_SIZE / 2), $lineColor);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\timagerectangle($this->_im, $lineX, $lineY, ($lineX + self::POINT_SIZE), ($lineY + self::POINT_SIZE),\r\n\t\t\t\t\t\t $this->_colors[$i]);\r\n\t\t\timagefilltoborder($this->_im, ($lineX + 1), ($lineY + 1), $this->_colors[$i], $this->_colors[$i]);\r\n\t\t\timagettftext($this->_im, self::CHARACTER_SIZE, 30, $lineX, ($this->_height - 5),\r\n\t\t\t\t\t\t $this->_textColor, $this->_font, (string)$key);\r\n\t\t\t\r\n\t\t\t$preLineX = $lineX;\r\n\t\t\t$preLineY = $lineY;\r\n\t\t\t$lineX += self::INTERVAL_WIDTH;\r\n\t\t\t$i++;\r\n\t\t}\r\n\t\t\r\n\t\t$this->_contentAreaWidth = $lineX - self::INTERVAL_WIDTH;\r\n\t}", "title": "" }, { "docid": "52941d0046eb0ea1162b603c28667693", "score": "0.50480664", "text": "function render_everything ()\n {\n \n if ($this->article['parent_id']!=0)\n {\n $this->set_article_data($this->article['parent_id']);\n } else\n {\n $this->set_article_data($this->article['id']);\n }\n\n $this->set_canonical_url();\n\n $this->set_mime_type ();\n\n $this->render();\n $this->render_summary();\n $this->render_attachments();\n $this->render_all_comments();\n $this->render_comments_list();\n $Cat = new Category;\n $Cat->get_article_catname_array($this->article['id']);\n\n $headerstring = \"<?php\\ninclude(\\\"shared/global.cfg\\\");\\n\";\n $headerstring .= \"header(\\\"Last-Modified: \" . gmdate(\"D, d M Y H:i:s\",time()) . \" GMT\\\");\\n\\n\";\n $headerstring .= \"\\$GLOBALS['page_title'] ='\";\n $headerstring .= $this->escape_quotes_newlines($this->article['heading']);\n $headerstring .= \"';\\n\";\n $headerstring .= \"\\$GLOBALS['page_description'] ='\";\n $headerstring .= $this->escape_quotes_newlines($this->article['summary']);\n $headerstring .= \"';\\n\";\n $headerstring .= \"\\$GLOBALS['page_id'] =\" . $this->article['id'] . \";\\n\";\n $headerstring .= '$GLOBALS[\"page_display\"] = \"' . $this->article['display'] . '\";' . \"\\n\";\n $headerstring .= '$GLOBALS[\"canonical_url\"] = \"' . $this->canonical_url . '\";' . \"\\n\";\n $headerstring .= $Cat->cat_name_match_printable . \"\\n\\n\";\n $headerstring .= \"sf_include_file(SF_INCLUDE_\".\"PATH, \\\"/article_header.inc\\\");\\n?\" . \">\\n\\n\";\n\n $this->html_header = $headerstring;\n\n $this->html_footer = \"\\n<?php sf_include_file(SF_INCLUDE_\".\"PATH, \\\"/article_footer.inc\\\"); ?\" . \">\";\n $commentstring=\"\"; \n \n return 1;\n }", "title": "" }, { "docid": "38d18ce9e83b9dae9959f36122b1f0e9", "score": "0.50344676", "text": "function paintDocumentStart() {\n\t\tif (!SimpleReporter::inCli()) {\n\t\t\theader('Content-type: text/plain');\n\t\t}\n\t}", "title": "" }, { "docid": "4a5aacfd3eb6eb100d171d2a4ab81334", "score": "0.50292003", "text": "public function beginPage() {\r\n ob_start();\r\n ob_implicit_flush(false);\r\n\r\n $this->trigger(self::EVENT_BEGIN_PAGE);\r\n }", "title": "" }, { "docid": "a455804255f22bd0743f986b48a7bae2", "score": "0.5024325", "text": "function Header()\n {\n\n //list($r, $b, $g) = $this->xheadercolor;\n $this->setY(15);\n //$this->SetFillColor($r, $b, $g);\n //$this->SetTextColor(0 , 0, 0);\n //$this->Cell(0,20, '', 0,1,'C', 1);\n //$this->Text(15,26,$this->xheadertext );\n\n\n $this->writeHTML($this->xheadertext, true, false, true, false, '');\n\n // Transformacion para la rotacion de el numero de orden y el contenedor de la muestra\n $this->StartTransform();\n $this->SetFont('freesans', '', 5);\n $this->Rotate(-90, 116, 120);\n //$tcpdf->Rect(39, 50, 40, 10, 'D');\n // $this->Text(5, 30, 'Software de Administración Médica \"SAM\" V.1.1 ® - www.gatolocostudios.com ®');\n // Stop Transformation\n $this->StopTransform();\n\n // if ( $this->variable = 1 )\n // {\n // draw jpeg image x, y ancho, alto\n // $this->Image(WWW_ROOT.'/img/BORRADOR.png', 40, 60, 450, 250, '', '', '', true, 72);\n\n // restore full opacity\n $this->SetAlpha(0);\n // }\n\n }", "title": "" }, { "docid": "000a35b849771bf01799ead297317154", "score": "0.50080866", "text": "public function do_footer() {\r\n echo \"\\n<!-- ===== START Dreamgrow Scroll Triggered Box \".DGDSCROLLBOX_VERSION.\" ===== -->\\n\\n\";\r\n echo '<div class=\"dgd_overlay\"></div>'.\"\\n\";\r\n echo $this->get_html();\r\n echo \"\\n<!-- ===== END OF Dreamgrow Scroll Triggered Box \".DGDSCROLLBOX_VERSION.\" ===== -->\\n\\n\";\r\n }", "title": "" }, { "docid": "f3a3e1062780f7c65a29892743d7e329", "score": "0.50075847", "text": "public function outputBody()\n\t{\n\t\techo \"<div class=\\\"welcome\\\">\"; //this can go in nav.php \n\t\techo \"\t<h1>Search Results</h1>\";\n\t\t//echo \"\t<p>Here you will find a bunch of things that I am too lazy to type out right now.</p>\";\n\t\techo \"</div>\";\n\t\t$this->nav_view->outputHTML();\n\t\t$this->searchresults_view->outputHTML();\n\t}", "title": "" }, { "docid": "1278d8cb1afba54a7ad2d888d7340ddc", "score": "0.5004479", "text": "function pageStart(){\n echo <<< END\n<html>\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n\n <style type=\"text/css\">\n.bordered{\n border: 2px solid #000000;\n margin-bottom: 5px;\n}\n\nform {\n\tmargin-bottom: 0;\n}\n\n</style>\n\n</head>\n<body>\n\nEND;\n\n}", "title": "" }, { "docid": "f46cc6e4fb9e1ee3d03aaabb12575a03", "score": "0.49980152", "text": "public function startBlock()\n\t{\n\t\t$this->__blocks[] = false;\n\t\tob_start();\n\t}", "title": "" }, { "docid": "4a9ae2449bf7b56cc357f8287640fa74", "score": "0.49954647", "text": "private function resetPosition()\n {\n $this->x = $this->textMarginL;\n $this->y = $this->pageHeight - $this->textMarginT - $this->fontSize;\n }", "title": "" }, { "docid": "ac7d479e1093c1ea54b0f54e01a8407b", "score": "0.4986214", "text": "function printContent()\t{\n\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "ac7d479e1093c1ea54b0f54e01a8407b", "score": "0.4986214", "text": "function printContent()\t{\n\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "d3ab239b7c4a20d225abad5cd60860e9", "score": "0.4980648", "text": "private function draw()\n {\n $source = $this->getSource();\n $color = $this->configuration->getColor();\n $allocatedColor = imagecolorallocate($source, $color->getRed(), $color->getGreen(), $color->getBlue());\n imagefill($source, 0, 0, $allocatedColor);\n\n foreach ($this->elements as $element) {\n $element->getDrawable()->draw($source, $element->getX(), $element->getY());\n }\n $this->elements = [];\n }", "title": "" }, { "docid": "e5bcb32be05663ae457ef8fc4074a211", "score": "0.49742833", "text": "public function willDraw(): void;", "title": "" }, { "docid": "25e7ba772ae8d4472ab7b75890571a3a", "score": "0.49726465", "text": "function printContent()\t{\r\n\t\t$this->content.=$this->doc->endPage();\r\n\t\techo $this->content;\r\n\t}", "title": "" }, { "docid": "7388657b9217c672784af202c16c1cc0", "score": "0.49723554", "text": "public function draw()\n {\n echo 'Inside Rectangle::draw() method' . PHP_EOL;\n }", "title": "" }, { "docid": "215a1956cd75937c5e321470bb535685", "score": "0.49722758", "text": "public function afterRender()\n\t{\n\t}", "title": "" }, { "docid": "3e68b22b3af75e6f2c109fa123a34c77", "score": "0.4971271", "text": "function printContent() {\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "75b873be53f9ad27715beb5614362dd3", "score": "0.49682426", "text": "private function beforeRender() {}", "title": "" }, { "docid": "a9b77ac5cc7e84b72c9ac85a993a1b52", "score": "0.4967063", "text": "function printContent()\t{\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "1985ffbba9ff8ef5ae7ad93f36d1ae0a", "score": "0.49621904", "text": "function printContent()\t{\n\n\t\t$this->content .= $this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "46ee5d21b00bcb9504cb7ac5cff97739", "score": "0.4960761", "text": "private function drawTopBulb()\n {\n $topBulb = '';\n $sandCount = 0;\n\n //generate sand for each level based on the height\n for ($level = 1; $level <= $this->height; $level++) {\n //draw spaces\n for ($idx = 1; $idx < $level; $idx++) {\n $topBulb .= ' ';\n }\n\n //draw left-side line\n $topBulb .= '\\\\';\n\n //insert sand\n for ($idx = 0; $idx <= 2 * ($this->height - $level); $idx++) {\n $topBulb .= 'x';\n $sandCount++;\n }\n\n //draw right-side line\n $topBulb .= \"/\\n\";\n }//for\n\n return $topBulb;\n }", "title": "" }, { "docid": "406f20afd844fac17afacf1cf4348761", "score": "0.49589506", "text": "protected function renderContentBegin()\n {\n echo Html::beginTag('div', ['class' => 'modal-content']) . \"\\n\";\n }", "title": "" }, { "docid": "72c2d4ab5ad44c564a872d23c98511bb", "score": "0.49588588", "text": "function printContent()\t{\n\n\t\t\t\t\t$this->content.=$this->doc->endPage();\n\t\t\t\t\techo $this->content;\n\t\t\t\t}", "title": "" }, { "docid": "72c2d4ab5ad44c564a872d23c98511bb", "score": "0.49588588", "text": "function printContent()\t{\n\n\t\t\t\t\t$this->content.=$this->doc->endPage();\n\t\t\t\t\techo $this->content;\n\t\t\t\t}", "title": "" }, { "docid": "8277c4b7d029bf6fdb3106f42c2ecf48", "score": "0.49582565", "text": "public function RenderContent ();", "title": "" }, { "docid": "23c9679041adeeedc36b4b65967de436", "score": "0.49537078", "text": "function render(){\n if($this->options->header){\n get_header();\n echo $this->header;\n }\n\n echo \"<div class='container'>\";\n echo \"<div class='row'>\";\n \n echo \"<main class='col-12 col-md-8'>\";\n echo $this->body;\n echo \"</main>\";\n \n // if wanna show sidebar\n if($this->options->sidebar && is_active_sidebar($this->sidebar)){\n echo \"<aside class='htron-theme-sidebar col-12 col-md-4 border'>\";\n get_sidebar($this->sidebar);\n echo \"</aside>\";\n }\n \n echo \"</div>\"; // row\n echo \"</div>\"; // container\n \n // if wanna show footer\n if($this->options->footer){\n get_footer();\n }\n }", "title": "" }, { "docid": "65bf4e4551707d91ea431abb905b6103", "score": "0.4952112", "text": "function printContent()\t{\r\n\r\n\t\t\t\t\t$this->content.=$this->doc->endPage();\r\n\t\t\t\t\techo $this->content;\r\n\t\t\t\t}", "title": "" }, { "docid": "c51111c85ffee505910fce15f628532c", "score": "0.4951833", "text": "protected function renderContent()\n {\n parent::render();\n }", "title": "" }, { "docid": "485fefa9ded1f5d36f41ffeb3558250a", "score": "0.49494588", "text": "function printContent()\t{\n\t\t$this->content .= $this->doc->endPage();\n\t\techo $this->content;\n\t}", "title": "" }, { "docid": "d189c845be5dd8c172d8f39c67e6c60a", "score": "0.4944789", "text": "function draw()\n {\n echo 'Drawwing circle';\n }", "title": "" }, { "docid": "cc97bc8160ef08ad5ed976c0c58d41cb", "score": "0.49164873", "text": "protected function newPage()\n {\n $this->pdf->end_page_ext(\"\");\n $this->pdf->begin_page_ext($this->pageWidth, $this->pageHeight, \"\");\n $this->setFont('p');\n $this->currentY = $this->pageHeight - 20;\n }", "title": "" }, { "docid": "4bd7755f8d93312a5b0a1a9c310d0887", "score": "0.49081382", "text": "abstract protected function renderBlock();", "title": "" } ]
4c7fddb0a24859d108522e2775bab393
Ajax call for Livraison List
[ { "docid": "daae5972a618ee276bed883cbcd3b6b5", "score": "0.0", "text": "public function index_json($id = 0)\n {\n $pagelength = $this->input->post('length');\n $pagestart = $this->input->post('start');\n\n $order = $this->input->post('order');\n $columns = $this->input->post('columns');\n $filters = $this->input->post('filters');\n if (empty($filters)) {\n $filters = null;\n }\n\n $filter_global = $this->input->post('filter_global');\n if (!empty($filter_global)) {\n\n // Ignore all other filters by resetting array\n $filters = array(\"_global\" => $filter_global);\n }\n\n if ($this->input->post('export')) {\n $pagelength = false;\n $pagestart = 0;\n }\n\n if (empty($order) || empty($columns)) {\n\n //list with default ordering\n $resultat = $this->m_airmail->liste($id, $pagelength, $pagestart, $filters);\n } else {\n\n //list with requested ordering\n $order_col_id = $order[0]['column'];\n $ordering = $order[0]['dir'];\n\n // tables for LINK columns\n $tables = array(\n 'airmail_id' => 't_airmail',\n );\n if ($order_col_id >= 0 && $order_col_id <= count($columns)) {\n $order_col = $columns[$order_col_id]['data'];\n if (empty($order_col)) {\n $order_col = 2;\n }\n\n if (isset($tables[$order_col])) {\n $order_col = $tables[$order_col] . '.' . $order_col;\n }\n\n if (!in_array($ordering, array(\"asc\", \"desc\"))) {\n $ordering = \"asc\";\n }\n\n $resultat = $this->m_airmail->liste($id, $pagelength, $pagestart, $filters, $order_col, $ordering);\n } else {\n $resultat = $this->m_airmail->liste($id, $pagelength, $pagestart, $filters);\n }\n }\n\n if ($this->input->post('export')) {\n //action export data xls\n $champs = $this->m_airmail->get_champs('read');\n $params = array(\n 'records' => $resultat['data'],\n 'columns' => $champs,\n 'filename' => 'Air mail',\n );\n $this->_export_xls($params);\n } else {\n $this->output->set_content_type('application/json')\n ->set_output(json_encode($resultat));\n }\n }", "title": "" } ]
[ { "docid": "8845b9bfb33325a1d4d2d329c94e6eb9", "score": "0.6731118", "text": "public function listeConsultationsAjaxAction() {\n\t \n\t\t$output = $this->getConsultationTable ()->getListeConsultations();\n\t\treturn $this->getResponse ()->setContent ( Json::encode ( $output, array ( 'enableJsonExprFinder' => true ) ) );\n\t}", "title": "" }, { "docid": "a5e216e80fda7a367f4997fba5feb17e", "score": "0.6711627", "text": "public function ajaxListAction() {\n $oTable = new \\Commun\\Grid\\ModeDifficulteGrid($this->getServiceLocator(), $this->getPluginManager());\n $oTable->setAdapter($this->getAdapter())\n ->setSource($this->getTable()->getBaseQuery())\n ->setParamAdapter($this->getRequest()->getPost());\n return $this->htmlResponse($oTable->render());\n }", "title": "" }, { "docid": "d45166dbe7d5fc974062dbc824f6890e", "score": "0.66725135", "text": "public function haalAjaxOp_lesPerVak()\n {\n $this->load->model('les_model');\n\n $vakId = $this->input->get('vakId');\n\n $data['lessen'] = $this->les_model->getAllWithKlasWhereKlas($vakId);\n\n echo json_encode($data['lessen']);\n }", "title": "" }, { "docid": "68637cf8322df4b1919257c299006be5", "score": "0.6551326", "text": "public function haalAjaxOp_lesKlas()\n {\n $this->load->model('les_model');\n\n $lessen = $this->input->get('lessen');\n\n $data['rooster'] = $this->les_model->getAllWithVakAndKlasWhereLessen(json_decode($lessen));\n echo json_encode($data['rooster']);\n }", "title": "" }, { "docid": "81bf62acd0004266382ccd907b12d384", "score": "0.6535989", "text": "function wp_ajax_fetch_list() {}", "title": "" }, { "docid": "246549f8dd14188c5e6c356adf7b9426", "score": "0.6503938", "text": "public function getListForUserAjax() {\n\t\tif (Yii::$app->user->getIsGuest())\n\t\t\treturn $this->sendError('You are not authorised', $statusCode = 301);\n\n\t\tif (isset($_POST['page']) && is_numeric($_POST['page']))\n\t\t\t$page = intval($_POST['page']);\n\t\telse\n\t\t\t$page = 1;\n\n\t\t$user = Yii::$app->user->identity;\n\t\t$queryParamsArray = ['user_id'=>$user->id];\n\n\t\tif (isset($_REQUEST['status']) && in_array(intval($_REQUEST['status']), range(0, 2)))\n\t\t\t$queryParamsArray['status'] = intval($_REQUEST['status']);\n\n\t\t$parkingQuery = Parking::find()\n\t\t\t->where($queryParamsArray)\n\t\t\t->orderBy('created DESC, id DESC');\n\n\t\t$pagination = new Pagination([\n\t\t\t'totalCount' => $parkingQuery->count(),\n\t\t\t'pageSize' => $this->itemsPerPage,\n\t\t\t'pageSizeParam' => false\n\t\t]);\n\n\t\tif ($page < 1) $page = 1;\n\t\telseif ($page > $pagination->pageCount)\n\t\t\t$page = $pagination->pageCount;\n\t\t$pagination->setPage($page-1);\n\n\t\t$parkings = $parkingQuery->offset($pagination->getOffset())\n\t\t\t->limit($pagination->getLimit())->asArray()->all();\n\n\t\tif (count($parkings) > 0) {\n\t\t\tforeach ($parkings as $key => $value)\n\t\t\t\t$parkings[$key] = $this->formParkingView($value);\n\t\t}\n\n\t\treturn $this->sendSuccess($parkings);\n\t}", "title": "" }, { "docid": "65e97ad5a2ba1c65dfb724c853a3b060", "score": "0.64450544", "text": "public function postListar()\n {\n if ( Request::ajax() ) {\n\n $softwares = Software::get(Input::all());\n return Response::json(array('rst'=>1,'datos'=>$softwares));\n }\n }", "title": "" }, { "docid": "8c4350b6b4ca7356eb2308b51956a355", "score": "0.6407679", "text": "public function getList()\r\n {\r\n $data['rating'] = $this->ratingService->getList();\r\n include_once '../views/content-ajax.php';\r\n }", "title": "" }, { "docid": "3d3c1895e5d54d3e5078190db4011846", "score": "0.6400833", "text": "public function ajax_api_list()\n {\n $list = $this->po->get_api_datatables();\n $data = array();\n \n foreach ($list as $po) {\n\n $row = array();\n $row['po_id'] = $po->po_id;\n $row['supplier_id'] = $po->supplier_id;\n $row['supplier_name'] = $po->supplier_name;\n $row['user_id'] = $po->user_id;\n $row['username'] = $po->username;\n \n $row['date'] = $po->date;\n $row['status'] = $po->status;\n\n $row['encoded'] = $po->encoded;\n\n $data[] = $row;\n }\n \n //output to json format\n echo json_encode($data);\n }", "title": "" }, { "docid": "5e24cc4dd233e27b9ffccc61ba425103", "score": "0.63675195", "text": "public function actionList_json()\n {\n\n\t\tif (Yii::$app->request->getIsAjax())\n {\n\t\t\t$query= new Query();\n\t\t\t$rows='';\n\t\t\tif(isset($_GET['combo']))\n\t\t\t{\n\t\t\t\t$like='';\n\t\t\t\tif(isset($_GET['q']))\n\t\t\t\t\t$like=$_GET['q'];\n\t\t \t\t\t$rows = $query\n\t\t \t\t\t\t->from('slip_for_rent')\n\t\t \t\t\t\t->orderBy(array('slip_for_rent.id_slip_for_rent'=>SORT_ASC))\n\t\t\t \t->join('inner join','housing','slip_for_rent.id_housing=housing.id_housing')\n\t\t\t \t->join('inner join','usuario','slip_for_rent.id_usuario=usuario.id_usuario')\n\t\t\t \t->select('slip_for_rent.*,housing.name_housing ,usuario.username ,slip_for_rent.code_slip_for_rent as text ,slip_for_rent.id_slip_for_rent as id ')\n\t\t\t \t->where('slip_for_rent.code_slip_for_rent LIKE '.\"'%\".$like.\"%'\")\n\t\t\t \t->all();\n\t\t\t\t$result['data']=$rows;\n\t\t\t\t$rows=$result;\n\t\t\t}\n\t\t\telse\n\t\t \t$rows = $query\n\t\t \t\t->from('slip_for_rent')\n\t\t \t\t->orderBy(array('slip_for_rent.id_slip_for_rent'=>SORT_ASC))\n\t\t\t \t->join('inner join','housing','slip_for_rent.id_housing=housing.id_housing')\n\t\t\t \t->join('inner join','usuario','slip_for_rent.id_usuario=usuario.id_usuario')\n\t\t\t \t->select('slip_for_rent.*,housing.name_housing ,usuario.username ')\n\t\t\t \t->all();\n\t\t\tif (isset($_GET['callback'])) {\n \\Yii::$app->response->format = \\yii\\web\\Response::FORMAT_JSONP;\n $callback = $_GET['callback'];\n return ['callback' => $callback, 'data' => $rows];\n } else {\n \\Yii::$app->response->format = \\yii\\web\\Response::FORMAT_JSON;\n return $rows;\n }\n\t\t}\n\n }", "title": "" }, { "docid": "ec1684517757578d0af2ed42858a1b85", "score": "0.63656056", "text": "public function ajax_get_lists() {\n \n try {\n\n if ( !$_POST['data']['api_token'] || empty( $_POST['data']['api_token'] ) || !$_POST['data']['api_username'] || empty( $_POST['data']['api_username'] ) ) {\n\n return $this->toJSON( array( 0 => __( 'Enter your api token and username above to see your lists', 'emailplatform-woocommerce' ) ) );\n\n }\n\n $api_token = $_POST['data']['api_token'];\n $api_username = $_POST['data']['api_username'];\n\n $lists = $this->empwc->emailplatform($api_token, $api_username)->get_lists();\n\n $results = array(0 => 'Select a list...') + $lists;\n\n }\n catch ( Exception $e ) {\n\n return $this->toJSON( array( 'error' => $e->getMessage() ) );\n\n }\n\n return $this->toJSON( $results );\n\n }", "title": "" }, { "docid": "d854b63c40333d4075b8c6bd28800050", "score": "0.63257533", "text": "public function ajax_load(){\n $this->checkRequestGetAjax();\n $keyword = toSlug(toNormal($this->input->get(\"q\")));\n $data = $this->_data->get_status_filter($keyword);\n if(!empty($data)) foreach ($data as $item) {\n $item = (object) $item;\n $json[] = ['id'=>$item->id, 'text'=>$item->name_status];\n }\n die(json_encode($json));\n }", "title": "" }, { "docid": "122a155f0f2813a8ee33c1d4a896c72c", "score": "0.630907", "text": "public function listeAdmissionAjaxAction() {\r\n\t\t$output = $this->getPatientTable ()->laListePatientsAjax();\r\n\t\treturn $this->getResponse ()->setContent ( Json::encode ( $output, array (\r\n\t\t\t\t'enableJsonExprFinder' => true\r\n\t\t) ) );\r\n\t}", "title": "" }, { "docid": "506aca45dca9ff992a8d318ee35ad2ae", "score": "0.6289284", "text": "public function listeHistoriqueConsultationsAjaxAction() {\n\t \n\t $output = $this->getConsultationTable ()->getListeHistoriquesConsultations();\n\t return $this->getResponse ()->setContent ( Json::encode ( $output, array ( 'enableJsonExprFinder' => true ) ) );\n\t}", "title": "" }, { "docid": "0ea23558f35fc0ceec63c17e749186c7", "score": "0.62872887", "text": "function list_data() {\n\t\t$map ['token'] = get_token ();\n\t\t$map ['aim_table'] = 'lottery_games';\n\t\t$dao = D ( 'Addons://RealPrize/RealPrize' );\n\t\t$list_data = $dao->where ( $map )->field ( 'id' )->order ( 'id DESC' )->select ();\n\t\t\n\t\tforeach ( $list_data as &$v ) {\n\t\t\t$v = $dao->getInfo ( $v ['id'] );\n\t\t\t$v ['background'] = get_cover_url ( $v ['prize_image'] );\n\t\t\t$v ['title'] = $v ['prize_name'];\n\t\t\t$v ['num'] = $v ['prize_count'];\n\t\t}\n\t\t$list_data ['list_data'] = $list_data;\n\t\t// dump ( $list_data );\n\t\t$this->ajaxReturn ( $list_data, 'JSON' );\n\t}", "title": "" }, { "docid": "7851d8d25c72b2a10c3a990ad58ea0b6", "score": "0.62634754", "text": "public function post_ajax()\n\t{\n\t\tif ($listing = Listing::find(Input::get('id')))\n\t\t{\n\t\t\t$vars = array(\n\t\t\t\t'id' => $listing->id,\n\t\t\t\t'uri' => $listing->uri,\n\t\t\t\t'title' => $listing->title,\n\t\t\t\t'summary' => $listing->summary\n\t\t\t);\n\t\t\texit(json_encode($vars));\n\t\t}\n\t\texit(json_encode(array('error' => 'Could not load bundle.')));\n\t}", "title": "" }, { "docid": "d23f8775c8d251e14ea0852326bcd5f1", "score": "0.6255144", "text": "public function ajax_listar_entrega(){\n //header( 'Content-type: application/xml; charset=\"utf-8\"', true );\n \n $this->load->helper(array('form','url'));\n \n $msgBusiness = $this->Factory->createBusiness(\"com_pedidos\");\n $listMsg = $msgBusiness->ajax_listar_entrega(); \n \n echo json_encode($listMsg); \n \n }", "title": "" }, { "docid": "37dd1ab7264792e9a7447a5b7382f1dd", "score": "0.61922854", "text": "public function ajax_api_list()\n {\n $list = $this->units->get_api_datatables();\n $data = array();\n \n foreach ($list as $units) {\n\n $row = array();\n $row['unit_id'] = $units->unit_id;\n $row['name'] = $units->name;\n $row['descr'] = $units->descr;\n \n $row['pcs'] = $units->pcs;\n\n $row['encoded'] = $units->encoded;\n\n $data[] = $row;\n }\n \n //output to json format\n echo json_encode($data);\n }", "title": "" }, { "docid": "b79907108d35097cf04f082c5741e2f6", "score": "0.61462027", "text": "public function haalAjaxOp_UurroosterPerKlas()\n {\n $this->load->model('les_model');\n\n $klasId = $this->input->get('klasId');\n\n $data['vakken'] = $this->les_model->getAllWithVakAndKlasWhereKlas($klasId);\n echo json_encode($data['vakken']);\n }", "title": "" }, { "docid": "7683066f8e19f31463c6d477324a388b", "score": "0.6121142", "text": "public function GetLivros()\n\t{\n\t\t// Carrega os livros da base de dados\n\t\t$livros = $this->M_Livros->retrieve_livro();\n\n\t\tforeach ($livros as $linha) {\n\t\t\t$linha->teste = \"testando a atribuicao de valores\";\n\t\t\t$linha->autor = $this->M_Autores->get_autor($linha->id_autor);// Getting in BD\n\t\t\t$linha->editora = $this->M_Editoras->get_editora($linha->id_editora);// Getting in BD\n\t\t\t$linha->genero = $this->M_Generos->get_genero($linha->id_genero_literario);// Getting in BD\n \t\t}\n\n\n\t\n\t\t// Envia os livros para a view\n\t\t$this->output\n\t\t->set_content_type('application/json')\n\t\t->set_output(json_encode($livros));\n\t}", "title": "" }, { "docid": "68bc63d72423090250f8bb234bfeb6ec", "score": "0.61206686", "text": "public function list_data()\n {\n $this->layout = 'none';\n if ($this->input->post() && $this->input->is_ajax_request()) {\n $post = $this->input->post();\n $param['search_value'] = $post['search']['value'];\n $param['search_field'] = $post['columns'];\n if (isset($post['order'])) {\n $param['order_field'] = $post['columns'][$post['order'][0]['column']]['data'];\n $param['order_sort'] = $post['order'][0]['dir'];\n }\n $param['row_from'] = $post['start'];\n $param['length'] = $post['length'];\n $count_all_records = $this->RAM->CountAllData();\n $count_filtered_records = $this->RAM->CountAllData($param);\n $records = $this->RAM->GetAllData($param);\n $return = [];\n $return['draw'] = $post['draw'];\n $return['recordsTotal'] = $count_all_records;\n $return['recordsFiltered'] = $count_filtered_records;\n $return['data'] = [];\n foreach ($records as $row => $record) {\n $return['data'][$row]['DT_RowId'] = $record['id'];\n \n $return['data'][$row]['nik'] = $record['nik'];\n $return['data'][$row]['name'] = $record['firstname'].' '.$record['lastname'];\n $return['data'][$row]['jobs_name'] = $record['jobs_name'];\n $return['data'][$row]['group_golongan_name'] = $record['group_golongan_name'];\n \n \n \n }\n json_exit($return);\n }\n redirect($this->class_path_name);\n }", "title": "" }, { "docid": "0a2ec3fb178255a04ecd5f222ccf1cc3", "score": "0.60932183", "text": "public function executeAjax_emission_list()\n {\n $this->facility = $this->getEntityFromRequest('facility_slug', 'Source44\\Entity\\CompanyLocation');\n\n return $this->renderComponent('facility', 'emission_list');\n }", "title": "" }, { "docid": "75e97b522e4344198606fee2e6721245", "score": "0.6076595", "text": "public function lists() {\n\t $pageRow = Request::input('rows',15);\n\n $backup_list = BackupLog::paginate($pageRow);\n\n\t if(Request::ajax()){\n\t $view = view('home.backupLog.li',array('backup_list' => $backup_list));\n\n\t return Response::json(array('error'=>0,'data'=>array('html'=>$view->render())));\n\t }else{\n\t return view('home.backupLog.lists',array('backup_list' => $backup_list));\n\t }\n\t}", "title": "" }, { "docid": "e1fa2523c1d56247f382f67dbc1506b1", "score": "0.6047106", "text": "public function listInfoVraAction()\n {\t\t\n $this->_helper->viewRenderer->setNoRender(true);\n\n $params = $this->_request->getPost();\n $data = $this->_model->getListInfoVra($params);\n die(json_encode($data));\n }", "title": "" }, { "docid": "f74f3950d406d5d76ac33afcd1fed444", "score": "0.60431", "text": "public function vehiculeAjaxAction(Request $request)\n {\n $search = $request->get('search')['value'];\n $col = $request->get('order')[0]['column'];\n $dir = $request->get('order')[0]['dir'];\n $em = $this->getDoctrine()->getManager();\n\t$aColumns = array( 'r.immatriculation', 'r.chassis', 'ma.libelle', 'p.nom');\n $start = ($request->get('start') != NULL && intval($request->get('start')) > 0) ? intval($request->get('start')) : 0;\n $end = ($request->get('length') != NULL && intval($request->get('length')) > 10) ? intval($request->get('length')) : 10;\n $sCol = (intval($col) > 0 && intval($col) < 3) ? intval($col)-1 : 0;\n $sdir = ($dir =='asc') ? 'asc' : 'desc';\n $searchTerm = ($search != '') ? $search : NULL;\n $rResult = $em->getRepository('AppBundle:Vehicule')->findAllAjax($start, $end, $aColumns[$sCol], $sdir, $searchTerm);\n\t$iTotal = $em->getRepository('AppBundle:Vehicule')->countRows();\n $iTotalFiltre = $em->getRepository('AppBundle:Vehicule')->countRowsFiltre($searchTerm);\n\t$output = array(\"sEcho\" => intval($request->get('sEcho')), \"iTotalRecords\" => $iTotal, \"iTotalDisplayRecords\" => $iTotalFiltre, \"aaData\" => array());\n\tforeach ( $rResult as $aRow )\n\t{\n $action = $this->genererAction($aRow['id']);\n $output['aaData'][] = array($aRow['immatriculation'], $aRow['chassis'], $aRow['marque'].'<br/>'.$aRow['modele'],$aRow['nom'].'<br/>'.$aRow['prenom'], $action);\n\t}\n\treturn new Response(json_encode( $output )); \n }", "title": "" }, { "docid": "f6ce176f63f181f27b69bf3902be25cb", "score": "0.6037916", "text": "public function listarAjax()\n {\n $this->_acl->acceso('eliminar_post');\n $filtro = 'nomina = Terapeutas';\n if (!$this->_personal->getAlgunosPersonal(0, 0, 'apellidos', $filtro, $campos = array('*'))) {\n $this->redireccionar('option=Personal');\n }\n }", "title": "" }, { "docid": "08be45b4d02b863275e159d26e6ad1fa", "score": "0.60204667", "text": "function index($list = 'active') {\n $this->lists = array(\n 'active' => 0,\n 'bidded' => 1,\n 'not-recruiting' => 2\n );\n $this->list_id = $this->lists[$list];\n\n if (request::is_ajax()) {\n $this->recruits = ORM::factory('recruit')->orderby('name', 'ASC')->find_by_list(null, null);\n $response = array();\n foreach ($this->recruits as $recruit) {\n $response[] = (object) array(\n 'id' => $recruit->id,\n 'name' => $recruit->name(),\n 'phone' => $recruit->phone(),\n 'email' => $recruit->email,\n 'picture' => theme::image('small', $recruit->picture(), array(), TRUE),\n 'list' => $recruit->list_name(),\n 'bid_status' => $recruit->bid_status(),\n 'good_fit' => format::plural($recruit->like_count, Kohana::lang('recruitment.good_fit.singular'), Kohana::lang('recruitment.good_fit.plural'))\n );\n }\n response::json(TRUE, NULL, $response);\n }\n\n $this->title = 'Recruitment Lists';\n $this->year = $this->input->get('year');\n $this->hometown = $this->input->get('hometown');\n $this->high_school = $this->input->get('high_school');\n $this->recruits = ORM::factory('recruit')->find_by_list($this->list_id, $this->year, $this->hometown, $this->high_school);\n $this->list_counts = ORM::factory('recruit')->list_counts();\n if ($this->list_id == 1) {\n $this->bid_counts = ORM::factory('recruit')->bid_counts();\n }\n foreach (ORM::factory('recruit')->find_by_list($this->list_id) as $recruit) {\n $this->stats['year'][$recruit->year]++;\n $key = text::searchable($recruit->hometown);\n $this->stats['hometown'][$key]['name'] = $recruit->hometown;\n $this->stats['hometown'][$key]['count']++;\n $key = text::searchable($recruit->high_school);\n $this->stats['high_school'][$key]['name'] = $recruit->high_school;\n $this->stats['high_school'][$key]['count']++;\n }\n unset($this->stats['year']['']);\n ksort($this->stats['hometown']);\n ksort($this->stats['high_school']);\n unset($this->stats['hometown']['']);\n unset($this->stats['high_school']['']);\n }", "title": "" }, { "docid": "6c274d3cec2d67ebeba58f62d9a10e5d", "score": "0.6014516", "text": "public function actionAjaxVegetativeList($living_plant_id) {\n $model_livingPlant = $this->loadModel($living_plant_id);\n\n // render the list\n $this->renderPartial(\n 'form_vegetativesList', array(\n 'model_livingPlant' => $model_livingPlant\n ), false, true);\n }", "title": "" }, { "docid": "a7a8ab8b181583047b0bcc5e680408b4", "score": "0.60104096", "text": "public function xhrGetListings()\n {\n header('Content-Type: application/json; charset=utf-8');\n echo json_encode($this->db->select('select * from data'));\n }", "title": "" }, { "docid": "dc0c0f5b8d33f517182ab08645bea5c9", "score": "0.60060287", "text": "function ajax_list()\r\n {\r\n $AllPostData = $this->input->post();\r\n $list = $this->Batch_distribution_model->get_datatables();\r\n $data = array();\r\n\r\n $output = array(\r\n \"meta\" => array('page'=>$AllPostData['datatable']['pagination']['page'],'pages'=>$AllPostData['datatable']['pagination']['pages'],'perpage'=>$AllPostData['datatable']['pagination']['perpage'],'total'=>$this->Batch_distribution_model->count_filtered(),'sort'=>'asc','field'=>'company_id'),\r\n \"data\" => $list,\r\n );\r\n //output to json format\r\n echo json_encode($output);\r\n }", "title": "" }, { "docid": "7cc5612fc8fbbd27f4f9e392f154cd19", "score": "0.59958965", "text": "public function ajaxuserslistAction() {\n $em = $this->getEntityManager();\n $basePath = $this->getRequest()->getBasePath();\n $request = $this->getRequest();\n $userChangeStatusUrl = $this->url()->fromRoute('userchangestatus');\n $userDeleteUrl = $this->url()->fromRoute('userdelete');\n $sqlArr['searchKey'] = $request->getQuery('sSearch');\n $sqlArr['sortcolumn'] = $request->getQuery('iSortCol_0');\n $sqlArr['sorttype'] = $request->getQuery('sSortDir_0'); // desc or asc \n $sqlArr['iDisplayStart'] = $request->getQuery('iDisplayStart'); // offset\n $sqlArr['sEcho'] = $request->getQuery('sEcho');\n $sqlArr['limit'] = $request->getQuery('iDisplayLength');\n $userData = $em->getRepository('\\Admin\\Entity\\Users')->getUsersListingAtAdminForDataTable($sqlArr, $userChangeStatusUrl, $userDeleteUrl, $basePath);\n echo json_encode($userData);\n exit();\n }", "title": "" }, { "docid": "27870c474efe19dce57aee8ac99c8d93", "score": "0.5989475", "text": "public function postListar()\n {\n //si la peticion es ajax\n if ( Request::ajax() ) {\n $flujoTipoRsp = FlujoTipoRespuesta::getFlujoTipoRsp();\n return Response::json(array('rst'=>1,'datos'=>$flujoTipoRsp));\n }\n }", "title": "" }, { "docid": "f2841ae4f5b905659624dd85d23cd9be", "score": "0.596501", "text": "function ajax_list()\n {\n $AllPostData = $this->input->post();\n $list = $this->this_model->get_datatables();\n $data = array();\n\n $output = array(\n \"meta\" => array('page'=>$AllPostData['datatable']['pagination']['page'],'pages'=>$AllPostData['datatable']['pagination']['pages'],'perpage'=>$AllPostData['datatable']['pagination']['perpage'],'total'=>$this->this_model->count_filtered(),'sort'=>'asc','field'=>'company_id'),\n \"data\" => $list,\n );\n //output to json format\n echo json_encode($output);\n }", "title": "" }, { "docid": "f445cd4c37ad8a10a2a2464f4e3e1688", "score": "0.59491163", "text": "public function historiques_bons_livraison()\n {\n $has_permission = has_permission('bon_livraison', '', 'view');\n if (!has_permission('bon_livraison', '', 'view') && !has_permission('bon_livraison', '', 'view_own')) {\n access_denied('Bon livraison');\n }\n\n if ($this->input->is_ajax_request()) {\n $id_E = $this->session->userdata('staff_user_id_entreprise');\n\n $aColumns = array();\n array_push($aColumns, 'tblbonlivraison.id', 'tblbonlivraison.nom', 'tblbonlivraison.type', 'tblbonlivraison.commentaire', 'a.firstname as livreur_firstname', 'tblbonlivraison.date_created', 'b.lastname as user_lastname');\n\n $sIndexColumn = \"id\";\n $sTable = 'tblbonlivraison';\n\n $join = array(\n 'LEFT JOIN tblstaff as a ON a.staffid = tblbonlivraison.id_livreur',\n 'LEFT JOIN tblstaff as b ON b.staffid = tblbonlivraison.id_utilisateur',\n 'LEFT JOIN tblcolisbonlivraison ON tblcolisbonlivraison.bonlivraison_id = tblbonlivraison.id'\n );\n\n $where = array();\n if (!$has_permission) {\n array_push($where, 'AND tblbonlivraison.id_utilisateur = ' . get_staff_user_id());\n }\n\n //Filtre\n if ($this->input->post('f-coli-id') && is_numeric($this->input->post('f-coli-id'))) {\n array_push($where, ' AND tblcolisbonlivraison.colis_id = ' . $this->input->post('f-coli-id'));\n }\n\n $result = data_tables_init($aColumns, $sIndexColumn, $sTable, $join, $id_E, $where, array('a.staffid as livreur_staffid', 'a.lastname as livreur_lastname', 'b.staffid as user_staffid', 'b.firstname as user_firstname'), '', '', '', false);\n $output = $result['output'];\n $rResult = $result['rResult'];\n\n foreach ($rResult as $aRow) {\n $row = array();\n for ($i = 0; $i < count($aColumns); $i++) {\n if (strpos($aColumns[$i], 'as') !== false && !isset($aRow[$aColumns[$i]])) {\n $_data = $aRow[strafter($aColumns[$i], 'as ')];\n } else {\n $_data = $aRow[$aColumns[$i]];\n }\n\n if ($aColumns[$i] == 'tblbonlivraison.nom') {\n $_data = '<a href=\"' . admin_url('bon_livraison/bon/' . $aRow['tblbonlivraison.id']) . '\">' . $_data . '</a>';\n } else if ($aColumns[$i] == 'tblbonlivraison.type') {\n if ($_data == 1) {\n $_data = '<span class=\"label label-info\">' . _l('delivery_note_type_output') . '</span>';\n } else if ($_data == 2) {\n $_data = '<span class=\"label label-danger\">' . _l('delivery_note_type_returned') . '</span>';\n }\n } else if ($aColumns[$i] == 'tblbonlivraison.commentaire') {\n $_data = '<p style=\"text-align: center;\">' . total_rows('tblcolisbonlivraison', array('bonlivraison_id' => $aRow['tblbonlivraison.id'])) . '</p>';\n } else if ($aColumns[$i] == 'a.firstname as livreur_firstname') {\n $firstname = $_data;\n $_data = staff_profile_image($aRow['livreur_staffid'], array('staff-profile-image-small'));\n $_data .= '<a href=\"' . admin_url('staff/member/' . $aRow['livreur_staffid']) . '\">' . $firstname . ' ' . $aRow['livreur_lastname'] . '</a>';\n } else if ($aColumns[$i] == 'tblbonlivraison.date_created') {\n $_data = date('d/m/Y', strtotime($_data));\n } else if ($aColumns[$i] == 'b.lastname as user_lastname') {\n $lastname = $_data;\n $_data = staff_profile_image($aRow['user_staffid'], array('staff-profile-image-small'));\n $_data .= '<a href=\"' . admin_url('staff/member/' . $aRow['user_staffid']) . '\">' . $aRow['user_firstname'] . ' ' . $lastname . '</a>';\n }\n $row[] = $_data;\n }\n\n $options = icon_btn('admin/bon_livraison/bon/' . $aRow['tblbonlivraison.id'], 'pencil-square-o', 'btn-default', array('title' => 'Modifier Bon Livraison'));\n $options .= icon_btn('admin/bon_livraison/pdf/' . $aRow['tblbonlivraison.id'], 'file-pdf-o', 'btn-success', array('title' => 'Imprimer PDF Bon Livraison'));\n $options .= icon_btn('admin/bon_livraison/etiquette/' . $aRow['tblbonlivraison.id'], 'file-image-o', 'btn-info', array('title' => 'Imprimer Etiquette'));\n\n $row[] = $options;\n $output['aaData'][] = $row;\n }\n\n echo json_encode($output);\n die();\n }\n }", "title": "" }, { "docid": "0ca5a90e19fad460a65a994e50256682", "score": "0.5948335", "text": "public function fetchlogisticsPopup() {\n $this->autoRender = false;\n if ($this->request->is('ajax')) {\n $id = $this->request->data['id'];\n $connection = ConnectionManager::get('default');\n $sql = \"SELECT users.* ,l.user_id,l.logistic_id,l.r_status from users LEFT JOIN logistics_arrangement as l on l.user_id=users.id where users.id = '\" . $id . \"' \";\n $users = $connection->execute($sql)->fetchAll('assoc');\n //$users = TableRegistry::get('Users')->find()\n // ->where(['id' => $id])\n // ->toArray();\n if (!empty($users)) {\n $arrData = json_encode($users);\n }\n echo $arrData;\n }\n }", "title": "" }, { "docid": "37bdd35db2b71c936b7560d208b21fb7", "score": "0.5943085", "text": "public function executeAjaxlist(sfWebRequest $request)\n {\n $this->getResponse()->setContentType('application/json');\n $query = $request->getParameter('q');\n $limit = $request->getParameter('limit');\n $id = $request->getParameter('association_id');\n $members = MemberTable::magicSearch($query, $limit, $id);\n $result = array();\n\n foreach ($members as $member)\n {\n $key = $member->getId();\n $value = $member->getFirstname() . ' ' . $member->getLastname();\n $result[$key] = $value;\n }\n\n if (count($result) === 0)\n {\n $result = null;\n }\n\n return $this->renderText(json_encode($result));\n }", "title": "" }, { "docid": "b172032dd624aa369f3f25aad423efc7", "score": "0.59410506", "text": "public function list_penduduk_bersurat_ajax()\n\t{\n\t\t$cari = $this->input->get('q');\n\t\t$page = $this->input->get('page');\n\t\t$penduduk = $this->surat_model->list_penduduk_bersurat_ajax($cari,$page);\n\t\techo json_encode($penduduk);\n\t}", "title": "" }, { "docid": "d2f11b82d01c42b471a90a434601f760", "score": "0.5938126", "text": "public function listAction()\n {\t\t\n $this->_helper->viewRenderer->setNoRender(true);\n\n $params = $this->_request->getPost();\n $data = $this->_model->getList($params);\n die(json_encode($data));\n }", "title": "" }, { "docid": "d2f11b82d01c42b471a90a434601f760", "score": "0.5938126", "text": "public function listAction()\n {\t\t\n $this->_helper->viewRenderer->setNoRender(true);\n\n $params = $this->_request->getPost();\n $data = $this->_model->getList($params);\n die(json_encode($data));\n }", "title": "" }, { "docid": "9c3fdfa9a1f32cac49fc7aa61b008ddc", "score": "0.5937873", "text": "public function actionList()\n {\n $this->checkAccess('integration___integration__manage');\n return $this->renderAjax('_list');\n }", "title": "" }, { "docid": "49ee1d75a0364a4384420ee36106c553", "score": "0.5932758", "text": "public function ajax_list()\n\t{\n\t\t$list = $this->Model_ekstra->get_datatables();\n\t\t$data = array();\n\t\t$no = $_POST['start'];\n\n\t\t// Membuat loop/ perulangan\n\t\tforeach ($list as $data_ekstra) {\n\t\t\t$no++;\n\t\t\t$row = array();\n\t\t\t$row[] = $no;\n\t\t\t$row[] = $data_ekstra->e_nama;\n $row[] = '<a onclick=\"return edit('.$data_ekstra->idekstra.')\" class=\"btn btn-info btn-sm text-light\"><i class=\"fa fa-edit\"></i> Edit</a> \n <a onclick=\"return delete_data(\\''.$data_ekstra->idekstra.'\\',\\''.$data_ekstra->e_nama.'\\')\" class=\"btn btn-danger btn-sm text-light\"><i class=\"fa fa-window-close\"></i> Hapus</a>';\n\n\t\t\t$data[] = $row;\n\t\t}\n\t\t$output = array(\n\t\t\t\"draw\" => $_POST['draw'],\n\t\t\t\"recordsTotal\" => $this->Model_ekstra->count_all(),\n\t\t\t\"recordsFiltered\" => $this->Model_ekstra->count_filtered(),\n\t\t\t\"data\" => $data\n\t\t);\n\t\t//output to json format\n\t\techo json_encode($output);\n }", "title": "" }, { "docid": "b025adb681617ee4b50e732b7f4df3f7", "score": "0.59252053", "text": "public function ajax_list() {\n\t\t$this->load->helper( 'url' );\n\n\t\t$list = $this->person->get_datatables( $this->relationship->id );\n\t\t$data = array();\n\t\t$no = $this->input->post['start'];\n\t\tforeach ( $list as $person )\n\t\t{\n\t\t\t$no ++;\n\t\t\t$row = array();\n\t\t\t$row[] = $person->first_name;\n\t\t\t$row[] = $person->last_name;\n\t\t\t$row[] = $person->gender;\n\t\t\t$row[] = $person->address;\n\t\t\t$row[] = $person->dob;\n\t\t\tif ( $person->photo )\n\t\t\t{\n\t\t\t\t$row[] = '<a href=\"' . base_url( 'upload/' . $person->photo ) . '\" target=\"_blank\"><img src=\"' .\n\t\t\t\t\t\t base_url( 'upload/' . $person->photo ) . '\" class=\"img-responsive\" /></a>';\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$row[] = '(No photo) ';\n\t\t\t}\n\n\t\t\t//add html for action\n\t\t\t$row[] = '<a class=\"btn btn-sm btn-primary\" href=\"javascript:void(0)\" title=\"Edit\" onclick=\"editPerson('\n\t\t\t\t\t . \"'\" . $person->id . \"'\" . ')\"><i class=\"glyphicon glyphicon-pencil\"></i> Edit</a>\n\n \t\t<a class=\"btn btn-sm btn-danger\" href=\"javascript:void(0)\" title=\"Hapus\" onclick=\"deletePerson('\n\t\t\t\t\t . \"'\" . $person->id . \"'\" . ')\"><i class=\"glyphicon glyphicon-trash\"></i> Delete</a>';\n\n\t\t\t$data[] = $row;\n\t\t}\n\n\t\t$output = array(\n\t\t\t\"draw\" => $this->input->post['draw'],\n\t\t\t\"recordsTotal\" => $this->person->count_all( $this->relationship->id ),\n\t\t\t\"recordsFiltered\" => $this->person->count_filtered(),\n\t\t\t\"data\" => $data,\n\t\t);\n\t\t//output to json format\n\t\techo json_encode( $output );\n\t}", "title": "" }, { "docid": "a9e2b85fa08d1258d48687cdc1be65a9", "score": "0.59124255", "text": "public function displayAjaxListStoredCards()\n {\n $templatePath = TemplateHelper::getFrontendTemplatePath('creditcard_list');\n $cards = $this->credit_card_vault_model->getUserCardsByAddressId($this->context->cart->id_address_invoice);\n $this->context->smarty->assign([ 'cards' => $cards ]);\n $html = $this->context->smarty->fetch($templatePath);\n\n $response = new JsonResponse([ 'count' => count($cards), 'html' => $html ]);\n $response->send();\n }", "title": "" }, { "docid": "ca82423777290ad3be342e8d31879492", "score": "0.59057575", "text": "function getStList() {\r\n $response = HttpClient::get(url() . \"/liststudent\");\r\n\r\n // raw content\r\n $list = $response->content();\r\n $list = json_decode($list, TRUE);\r\n //print_r($res);\r\n $data['body'] = View::make('home')->with(\"list\", $list)->with(\"url\", \"postst\");\r\n return View::make('index', $data);\r\n }", "title": "" }, { "docid": "218d13955a03f99177744eff918a1833", "score": "0.5905725", "text": "public function listePatientsAdmettreAjaxAction() {\n\t\t$output = $this->getPatientTable()->getListePatientsAAdmettre();\n\t\treturn $this->getResponse ()->setContent ( Json::encode ( $output, array ( 'enableJsonExprFinder' => true ) ) );\n\t}", "title": "" }, { "docid": "c9c57d436cfef6f6d3272cb762ee92c8", "score": "0.5891005", "text": "public function historiquesConsultationsSuiviPatientAjaxAction() {\n\t $idpatient = $this->params ()->fromRoute ( 'id', 0 );\n\t $output = $this->getConsultationTable()->getListeHistoriquesConsultationsSuivis($idpatient);\n\t return $this->getResponse ()->setContent ( Json::encode ( $output, array (\n\t 'enableJsonExprFinder' => true\n\t ) ) );\n\t}", "title": "" }, { "docid": "4fad19f7686f2fa28b9cf5c2516c5be3", "score": "0.5883114", "text": "function project_list_ajax(){\n\t\t\n\t\t$output=\"\";\n\t\t$model = $this->getModel('webfontsproject');\n\t\t$pageStart = (isset($_GET['pageStart']))?$_GET['pageStart']:0;\n\t\t$wfs_details = getUnPass();\n\t\t//Fetching the json data from WFS\n\t\t$apiurl = \"json/Projects/?wfspstart=\".$pageStart.\"&wfsplimit=\".PROJECT_LIMIT;\n\t\t$wfs_api = new Services_WFS($wfs_details[1],$wfs_details[2],$apiurl);\n\t\t$jsonUrl = $wfs_api->wfs_getInfo_post();\n\t\t//creating a Array from Json\n\t\t$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);\n\t\t$projectsArray = $json->decode($jsonUrl);\n\t\t$cnt=1;\n\t\t$message = $projectsArray['Projects']['Message'];\n\t\tif($message == \"Success\"){\t\t\t\n\t\t\t$projects = $projectsArray['Projects']['Project'];\n\t\t\tif(!empty($projects)){\n\t\t\t\t$is_multi = is_multi($projects);\n\t\t\t\tif($is_multi == 1){\n\t\t\t\t\t\n\t\t\t\t\t$projectName = $projects['ProjectName'];\n\t\t\t\t\t$projectKey = $projects['ProjectKey'];\n\t\t\t\t\t$wfs_projects =$model->getProjectProfile($projectKey, \"project_key\");\n\t\t\t\t\t$sn =$cnt+$pageStart;\n\t\t\t\t\tif(empty($wfs_projects[0]->project_key)){\n\t\t\t\t\t\t$output.='<tr><td>'.$sn.'</td><td width=\"20\"><input type=\"checkbox\" class=\"imp_prj_checkboxes\" name=\"project_key['.$projectKey.']\" id=\"'.$projectKey.'\" value=\"'.$projectKey.'\"/></td><td style=\"text-align:left\"> '.$projectName.'<input type=\"hidden\" name=\"project_name['.$projectKey.']\" value=\"'.$projectName.'\" /></td></tr>';\n\t\t\t\t\t\t$cnt++;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$output.='<tr><td>'.$sn.'</td><td width=\"20\"><input type=\"checkbox\" disabled=\"disabled\" name=\"project_key['.$projectKey.']\" id=\"'.$projectKey.'\" value=\"'.$projectKey.'\"/></td><td> '.$projectName.' <i style=\"color:#0b55c4\">(Project already added.</i>)<input type=\"hidden\" name=\"project_name['.$projectKey.']\" value=\"'.$projectName.'\" /></td></tr>';\n\t\t\t\t\t\t$cnt++;\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tforeach( $projects as $project )\n\t\t\t\t\t{\n\t\t\t\t\t\t$projectName = $project['ProjectName'];\n\t\t\t\t\t\t$projectKey = $project['ProjectKey'];\n\t\t\t\t\t\t$wfs_projects =$model->getProjectProfile($projectKey, \"project_key\");\n\t\t\t\t\t\t$sn =$cnt+$pageStart;\n\t\t\t\t\t\tif(empty($wfs_projects[0]->project_key)){\n\t\t\t\t\t\t\t$output.='<tr><td>'.$sn.'</td><td width=\"20\"><input type=\"checkbox\" class=\"imp_prj_checkboxes\" name=\"project_key['.$projectKey.']\" id=\"'.$projectKey.'\" value=\"'.$projectKey.'\"/></td><td style=\"text-align:left\"> '.$projectName.'<input type=\"hidden\" name=\"project_name['.$projectKey.']\" value=\"'.$projectName.'\" /></td></tr>';\n\t\t\t\t\t\t\t$cnt++;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$output.='<tr><td>'.$sn.'</td><td width=\"20\"><input type=\"checkbox\" disabled=\"disabled\" name=\"project_key['.$projectKey.']\" id=\"'.$projectKey.'\" value=\"'.$projectKey.'\"/></td><td> '.$projectName.' <i style=\"color:#0b55c4\">(Project already added.</i>)<input type=\"hidden\" name=\"project_name['.$projectKey.']\" value=\"'.$projectName.'\" /></td></tr>';\n\t\t\t\t\t\t\t$cnt++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}//end of foreach\n\t\t\t\t}//end of els for is_multi\n\t\t\t}//end of empty project\n\t\t\t\n\t\t\tif($cnt == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$output.=\"<tr><td colspan='2'>No project available.</td></tr>\";\n\t\t\t\t\t}\n\t\t\t\n\t\t\t//Pagination data\n\t\t\t\t$totalRecord =$projectsArray['Projects']['TotalRecords'];\n\t\t\t\t$pageStart =$projectsArray['Projects']['PageStart'];\n\t\t\t\t$pageLimit =$projectsArray['Projects']['PageLimit'];\n\t\t\t}//enf of if for success\n\t\t\telse{\n\t\t\t\t$output.='<tr><td colspan=\"2\">'.$message.'</td></tr>';\n\t\t\t\t}\n\t\n\t\t\n\t\t$pageLimit = $pageLimit;\n\t\t$totalRecord = $totalRecord ;\n\t\tif($totalRecord!=0 && $pageLimit!=\"\" && $cnt!=1){\n\t\t\t$wfs_pg = new wfs_pagination($totalRecord,$pageStart,$pageLimit,'imp_project_div','project_pagination_div',\"index.php?option=com_webfonts&controller=webfontsproject&task=project_list_ajax\");\n\t\t\t$wfs_pg_projects = $wfs_pg->getPagination();\n\t\t}\n\t\t$value = array('data'=>$output, 'pagination' => $wfs_pg_projects);\n\t\t$json = new Services_JSON();\n\t\t$result = $json->encode($value);\n\t\techo $result;\n\t\texit;\n\t\t}", "title": "" }, { "docid": "44f8b0efc6d498e33e1ee34ac0f53e1a", "score": "0.5881962", "text": "public function postListar()\n {\n if ( Request::ajax() ) {\n $a = new Proveedor;\n $listar = Array();\n $listar = $a->getProveedor();\n\n return Response::json(\n array(\n 'rst' => 1,\n 'datos' => $listar\n )\n );\n }\n }", "title": "" }, { "docid": "f42ca86ad86f510588f3601a8f399b15", "score": "0.5880193", "text": "public function listAction() \r\n {\r\n $request = $this->getRequest();\r\n \r\n $em = $this->getDoctrine()->getManager();\r\n $perdidos = $em->getRepository('JMPCPetFriendsProtectorsBundle:AnimalLost');\r\n \r\n $consulta = $em->createQuery(\"SELECT l FROM JMPC\\PetFriends\\ProtectorsBundle\\Entity\\AnimalLost l WHERE l.encontrado='false' ORDER BY l.fechaperdida DESC\");\r\n \r\n $perdidos = $consulta->getResult();\r\n\r\n //Paginacion con KNP Paginator Bundle\r\n $paginator = $this->get('knp_paginator');\r\n $pagination = $paginator->paginate(\r\n $perdidos,\r\n $this->get('request')->query->get('page',1),1\r\n );\r\n\r\n // Respuesta AJAX para que la paginacion no recargue la pagina\r\n if ($request->isXmlHttpRequest()) {\r\n return $this->render('JMPCPetFriendsProtectorsBundle:Lost:indexAjax.html.twig', array(\r\n 'losts' => $pagination\r\n ));\r\n }\r\n \r\n return $this->render('JMPCPetFriendsProtectorsBundle:Lost:index.html.twig', array(\r\n 'losts' => $pagination\r\n ));\r\n }", "title": "" }, { "docid": "ea82797efcc031cef3443e7713faea71", "score": "0.58800435", "text": "function handleGetSRListAjaxEndpoint(array $params) {\r\n // switch between functions based on external server type\r\n $extServerType = $params['ext_server_type'];\r\n if ($extServerType === 'MOCK') {\r\n //Mock server specific\r\n } else if ($extServerType === 'SIEBEL') {\r\n echo $this->getDataForSiebel();\r\n } else {\r\n echo $this->getAjaxJsonResponse(null, 'Invalid External Server type');\r\n }\r\n }", "title": "" }, { "docid": "a13f622d156a4f6e3073efc640081ca1", "score": "0.5867646", "text": "public function list_penduduk_ajax()\n\t{\n\t\t$cari = $this->input->get('q');\n\t\t$page = $this->input->get('page');\n\t\t$filter_sex = $this->input->get('filter_sex');\n\t\t$filter['sex'] = ($filter_sex == 'perempuan') ? 2 : $filter_sex;\n\t\t$penduduk = $this->surat_model->list_penduduk_ajax($cari, $filter, $page);\n\t\techo json_encode($penduduk);\n\t}", "title": "" }, { "docid": "40a7dd722903f56cd89af0bc96e7fe56", "score": "0.5865522", "text": "public function ajaxList()\n {\n $result = $this->fileList('app/controller/', 'php');\n\n return $result;\n }", "title": "" }, { "docid": "f88c8f658f4d85ebb7631c35a56ee061", "score": "0.58645535", "text": "public function get_team_list_ajax(Request $req) {\n $draw = $req->draw;\n $searchStr = $req->search['value'];\n $teams = $this->teams->select('teams.*', 'standings.standing_name')\n ->leftJoin('standings', 'standings.id', '=', 'teams.standing_id')\n ->where('teams.status', 1)->orderBy('teams.team_name');\n if ($searchStr != '') {\n $teams->where('teams.team_name', 'like', '%' . $searchStr . '%');\n }\n $totalTeams = $teams->count();\n $teams->limit($req->length)->offset($req->start);\n $teamData = $teams->get();\n $teamJson = '{\n \"draw\": ' . $draw . ',\n \"recordsTotal\": ' . $totalTeams . ',\n \"recordsFiltered\": ' . $totalTeams . ',';\n\n $teamJson .= '\"data\": [';\n\n $totalData = count($teamData);\n foreach ($teamData as $key => $val) {\n $confirm = 'return confirm(\\\"Are you sure you want to delete this team?\\\");';\n $del = \"<a onclick='$confirm' href='\" . URL::to('delete_team') . \"/\" . $val->id . \"' title='Delete team'>\";\n $del .= \"<i class='color_red fa fa-trash'></i></a>\";\n $teamJson .='{\n \"team_name\": \"' . $val->team_name . '\",\n \"standing\": \"' . $val->standing_name . '\",\n \"won\": \"' . $val->won . '\",\n \"lost\": \"' . $val->lost . '\",\n \"tied\": \"' . $val->tied . '\",\n \"gf\": \"' . $val->gf . '\",\n \"ga\": \"' . $val->ga . '\",\n \"diff\": \"' . $val->diff . '\",\n \"points\": \"' . $val->points . '\",\n \"action\": \"' . $del . '\"\n }';\n if ($key + 1 < $totalData) {\n $teamJson .=',';\n }\n }\n\n\n $teamJson .= ']}';\n\n\n echo $teamJson;\n }", "title": "" }, { "docid": "5fc2cbaa57895f367e3994638939768f", "score": "0.58600926", "text": "public function fetchlistAction(){}", "title": "" }, { "docid": "1f4c000c81317753b2070e685a22f666", "score": "0.5840315", "text": "public function getChildList() {\n \n if (Request::ajax()) {\n\n \treturn json_encode($this->locationRepository->getChildrenList(Input::get('id')));\n }\n \n }", "title": "" }, { "docid": "8fe72bae537753c15509fc95076570bc", "score": "0.58396935", "text": "public function listAction()\n {\t\t\n $this->_helper->viewRenderer->setNoRender(true);\n\n $params = $this->_request->getPost();\n\t\t$params['task_name'] = \"TN_KASTRASI_SANITASI\";\n $data = $this->_model->getList($params);\n\t\t$data['cek'] = $this->_global->checkLockSequence($params);\n die(json_encode($data));\n }", "title": "" }, { "docid": "f88fef15ccc320d9fb5447a0b46807da", "score": "0.583043", "text": "public function ajaxListarMiembro(){\n\n\n\t\t$respuesta = ControladorMiembros::ctrListarMiembroPendiente($_SESSION[\"empresa\"]);\n\n\t\techo json_encode($respuesta);\n\n\t}", "title": "" }, { "docid": "827dba6b7140766e54554b7d0a13d5da", "score": "0.5825563", "text": "public function get_stadium_list_ajax(Request $req) {\n $draw = $req->draw;\n $searchStr = $req->search['value'];\n $stadiums = $this->stadium->where('status', 1)->orderBy('stadium_name');\n if ($searchStr != '') {\n $stadiums->where('stadium_name', 'like', '%' . $searchStr . '%');\n }\n $totalStadiums = $stadiums->count();\n $stadiums->limit($req->length)->offset($req->start);\n $stadiumData = $stadiums->get();\n $stadiumJson = '{\n \"draw\": ' . $draw . ',\n \"recordsTotal\": ' . $totalStadiums . ',\n \"recordsFiltered\": ' . $totalStadiums . ',';\n\n $stadiumJson .= '\"data\": [';\n\n $totalData = count($stadiumData);\n $sl = 1 + $req->start;\n foreach ($stadiumData as $key => $val) {\n $confirm = 'return confirm(\\\"Are you sure you want to delete this location?\\\");';\n $del = \"<a onclick='$confirm' href='\" . URL::to('delete_stadium') . \"/\" . $val->id . \"' title='Delete team'>\";\n $del .= \"<i class='color_red fa fa-trash'></i></a>\";\n $stadiumJson .='{\n \"sl\": \"' . $sl . '\",\n \"stadium_name\": \"' . $val->stadium_name . '\",\n \"action\": \"' . $del . '\"\n }';\n if ($key + 1 < $totalData) {\n $stadiumJson .=',';\n }\n $sl++;\n }\n $stadiumJson .= ']}';\n echo $stadiumJson;\n }", "title": "" }, { "docid": "1e6af388e59560d1705c89383195ad94", "score": "0.5825284", "text": "public function ajax_car_makes_list(){\n\t\t\t\t$requestData = $_REQUEST;\n\t\t\t\t$columns = array(\n\t\t\t\t\t\t// datatable column index => database column name\n\t\t\t\t\t\t0 => 'name'\n\t\t\t\t);\n\n\t\t\t\t$query = \"SELECT count(id) as total\n\t\t\t\t\t\t\t\t\tFROM urend_car_makes\n\t\t\t\t\t\t\t\t\t\";\n\t\t\t\t$query = $this->db->query($query);\n\t\t\t\t$query = $query->row_array();\n\t\t\t\t$totalData = (count($query)>0)?$query['total']:0;\n\t\t\t\t$totalFiltered = $totalData;\n\t\t\t\t$sql = \"SELECT * FROM urend_car_makes where 1=1 \";\n\t\t\t\t// getting records as per search parameters\n\t\t\t\t if( !empty($requestData['columns'][0]['search']['value']) ){ //name\n\t\t\t\t\t$sql.=\" AND name LIKE '\".$requestData['columns'][0]['search']['value'].\"%' \";\n\t\t\t\t\t}\n\n\t\t\t\t$query = $this->db->query($sql)->result();\n\t\t\t\t$totalFiltered = count($query); // when there is a search parameter then we have to modify total number filtered rows as per search result.\n\n\t\t\t\t$sql.=\" ORDER BY \" . $columns[$requestData['order'][0]['column']] . \" \" . $requestData['order'][0]['dir'] . \" LIMIT \" . $requestData['start'] . \" ,\" . $requestData['length'] . \" \"; // adding length\n\n\t\t\t\t$result = $this->db->query($sql)->result();\n\t\t\t\t$data = array();\n\t\t\t\tforeach ($result as $r) { // preparing an array\n\t\t\t\t\t\t$nestedData = array();\n\n\t\t\t\t\t\t$nestedData[] = $r->name;\n\t\t\t\t\t\t$nestedData[] = \"<a class='btn-sm btn btn-info' href='\".AUTH_PANEL_URL.\"make_model/edit_car_makes/\".$r->id.\"'>Edit</a>&nbsp;\";;\n\n\t\t\t\t\t\t$data[] = $nestedData;\n\t\t\t\t}\n\n\t\t\t\t$json_data = array(\n\t\t\t\t\t\t\"draw\" => intval($requestData['draw']), // for every request/draw by clientside , they send a number as a parameter, when they recieve a response/data they first check the draw number, so we are sending same number in draw.\n\t\t\t\t\t\t\"recordsTotal\" => intval($totalData), // total number of records\n\t\t\t\t\t\t\"recordsFiltered\" => intval($totalFiltered), // total number of records after searching, if there is no searching then totalFiltered = totalData\n\t\t\t\t\t\t\"data\" => $data // total data array\n\t\t\t\t);\n\n\t\t\t\techo json_encode($json_data); // send data as json format\n\n\t\t\t}", "title": "" }, { "docid": "9ba5fd42233863b681b9ee18cde0a84b", "score": "0.5805836", "text": "function ajax_dynamic_list(){\n global $txxchange_config;\n $privateKey = $txxchange_config['private_key'];\n // $_GET['letters']='che';\n // $_GET['getCountriesByLetters']='hari';\n\t\t\t$query = \"select user_id,admin_access,therapist_access from user where username = '\".$_SESSION['username'].\"' and AES_DECRYPT(UNHEX(password),'{$privateKey}') = '\".$_SESSION['password'].\"' and status = 1 and usertype_id = 2 \" ;\n\t\t\t$result = @mysql_query($query);\n\t\t\t$row = @mysql_fetch_array($result);\n $clinicId = $this->clinicInfo('clinic_id',$row['user_id']);\n\t\t\t$therapist_id = $row['user_id'];\n if(isset($_GET['getCountriesByLetters']) && isset($_GET['letters'])){\n\t\t\t\t$letters = $_GET['letters'];\n\t\t\t\t$letters = preg_replace(\"/[^a-z0-9. ]/si\",\"\",$letters);\n\t\t\t\tif(strlen($letters)>2){\n\t\t\t\t$queryt= \"select user_id ,usertype_id,concat(AES_DECRYPT(UNHEX(name_first),'{$privateKey}'),' ',AES_DECRYPT(UNHEX(name_last),'{$privateKey}')) as username from user\n\t\t\t\t\t\t where ((concat(CAST(AES_DECRYPT(UNHEX(name_first),'{$privateKey}') AS CHAR),' ',CAST(AES_DECRYPT(UNHEX(name_last),'{$privateKey}') AS CHAR)) like '\".$letters.\"%') || (concat(AES_DECRYPT(UNHEX(name_last),'{$privateKey}'),' ',AES_DECRYPT(UNHEX(name_first),'{$privateKey}')) like '\".$letters.\"%')) and \n user_id in(SELECT user.user_id FROM user inner join clinic_user on clinic_user.user_id = user.user_id \nand (user.status = '1' or user.status = '2') and clinic_user.clinic_id in \n(select clinic_id from clinic where parent_clinic_id = '{$clinicId}' or clinic_id = '{$clinicId}' and ( status = 1 or status = 2) ) \ninner join clinic on clinic.clinic_id = clinic_user.clinic_id and ( clinic.status = '1' or clinic.status = '2' ) WHERE user.usertype_id = '2' and user.user_id !=\".\n$row['user_id'].\")\";\n $query = \"(select user_id ,usertype_id,concat(AES_DECRYPT(UNHEX(name_first),'{$privateKey}'),' ',AES_DECRYPT(UNHEX(name_last),'{$privateKey}')) as username from user\n\t\t\t\t\t\t where ((concat(CAST(AES_DECRYPT(UNHEX(name_first),'{$privateKey}') AS CHAR),' ',CAST(AES_DECRYPT(UNHEX(name_last),'{$privateKey}') AS CHAR)) like '\".$letters.\"%') || (concat(AES_DECRYPT(UNHEX(name_last),'{$privateKey}'),' ',AES_DECRYPT(UNHEX(name_first),'{$privateKey}')) like '\".$letters.\"%')) \n\t\t\t\t\t\t and user_id in (select patient_id from therapist_patient where therapist_id = '\".$therapist_id.\"' and status = 1 )\t\n\t\t\t\t\t\t and usertype_id = 1 and ( status in (1,2) or user_id in (select u_id from program_user where p_status = '1'))) union ( $queryt )\";\n \n \n\t\t\t\t\n\t\t\t\tif($row['admin_access']==1){\n\t\t\t\t //echo \"1###strlen($letters)'\".strlen($letters).'cid'.$clinicId.\"'|\";\n $sql=\"select u.user_id from user as u \n inner join clinic_user as cu on u.user_id=cu.user_id \n and cu.clinic_id in (select clinic_id from clinic where (parent_clinic_id = '{$clinicId}' or clinic_id = '{$clinicId}') and ( status = 1 or status = 2 ) ) \n inner join clinic on clinic.clinic_id = cu.clinic_id and (clinic.status = 1 or clinic.status = 2) \n where u.usertype_id='1' and u.mass_message_access=1\";\n \n $queryt= \"select user_id ,usertype_id,concat(AES_DECRYPT(UNHEX(name_first),'{$privateKey}'),' ',AES_DECRYPT(UNHEX(name_last),'{$privateKey}')) as username from user\n\t\t\t\t\t\t where ((concat(CAST(AES_DECRYPT(UNHEX(name_first),'{$privateKey}') AS CHAR),' ',CAST(AES_DECRYPT(UNHEX(name_last),'{$privateKey}') AS CHAR)) like '\".$letters.\"%') || (concat(AES_DECRYPT(UNHEX(name_last),'{$privateKey}'),' ',AES_DECRYPT(UNHEX(name_first),'{$privateKey}')) like '\".$letters.\"%')) and \n user_id in(SELECT user.user_id FROM user inner join clinic_user on clinic_user.user_id = user.user_id \nand (user.status = '1' or user.status = '2') and clinic_user.clinic_id in \n(select clinic_id from clinic where parent_clinic_id = '{$clinicId}' or clinic_id = '{$clinicId}' and ( status = 1 or status = 2) ) \ninner join clinic on clinic.clinic_id = clinic_user.clinic_id and ( clinic.status = '1' or clinic.status = '2' ) WHERE user.usertype_id = '2' and user.user_id !=\".\n$row['user_id'].\")\"; \n \n $query = \"(select user_id ,usertype_id,concat(AES_DECRYPT(UNHEX(name_first),'{$privateKey}'),' ',AES_DECRYPT(UNHEX(name_last),'{$privateKey}')) as username from user\n\t\t\t\t\t\t where ((concat(CAST(AES_DECRYPT(UNHEX(name_first),'{$privateKey}') AS CHAR),' ',CAST(AES_DECRYPT(UNHEX(name_last),'{$privateKey}') AS CHAR)) like '\".$letters.\"%') || (concat(AES_DECRYPT(UNHEX(name_last),'{$privateKey}'),' ',AES_DECRYPT(UNHEX(name_first),'{$privateKey}')) like '\".$letters.\"%')) \n\t\t\t\t\t\t \t and user_id in (\".$sql.\") and ( status in (1,2) or user_id in (select u_id from program_user where p_status = '1' ))) union ($queryt)\"; \n \n\t\t\t\t}\n //echo $query;\n $res = mysql_query($query) or die(mysql_error()); \n \t\t\t\t\n \n # echo \"1###strlen($letters)'\".strlen($letters).\"'|\";\n \n while($inf = mysql_fetch_array($res)){\n\t\t\t\t // if($row[\"therapist_access\"]==1){\n\t\t\t\t if($inf[\"usertype_id\"]==2){\n echo $inf[\"user_id\"].\"###\".$inf[\"username\"].' (Staff)'.\"|\";\n // }\n }else{\n echo $inf[\"user_id\"].\"###\".$inf[\"username\"].\"|\";\n \n }\n }\n \n \n \n if($row[\"admin_access\"]==1){\n if($letters=='all' or $letters=='All' or $letters=='all ' or $letters=='All ' )\n {\n echo '-1'.\"###\".'All Current Patients'.\"|\"; \n echo '-2'.\"###\".'All Discharged Patients'.\"|\";\n echo '-3'.\"###\".'All Patients'.\"|\";\n }\n } \t\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "fda09f40ab803a27e197eec44e67fbe9", "score": "0.57913065", "text": "public function list_states()\n {\n if (!is_admin()) {\n access_denied('States Colis');\n }\n\n if ($this->input->is_ajax_request()) {\n // ID entreprise \n $id_E = $this->session->userdata('staff_user_id_entreprise');\n\n $aColumns = array('name');\n\n $sIndexColumn = \"id\";\n $sTable = 'tbletatcolis';\n\n $join = array();\n\n $result = data_tables_init($aColumns, $sIndexColumn, $sTable, $join, $id_E, array(), array('id'));\n $output = $result['output'];\n $rResult = $result['rResult'];\n\n foreach ($rResult as $aRow) {\n $row = array();\n for ($i = 0; $i < count($aColumns); $i++) {\n $_data = $aRow[$aColumns[$i]];\n $row[] = $_data;\n }\n $options = icon_btn('#', 'pencil-square-o', 'btn-default', array('data-toggle' => 'modal', 'data-target' => '#states_colis_modal', 'data-id' => $aRow['id']));\n $row[] = $options .= icon_btn('admin/colis/delete_states_colis/' . $aRow['id'], 'remove', 'btn-danger btn-delete-confirm');\n\n $output['aaData'][] = $row;\n }\n\n echo json_encode($output);\n die();\n }\n $data['title'] = _l('states_colis');\n $this->load->view('admin/colis/manage_states_colis', $data);\n }", "title": "" }, { "docid": "b29a477daa40d3e2a257493b0c91e2f7", "score": "0.57890683", "text": "private function ajax_listing($data) {\n\n\t\t$out = '';\n\t\tfor($i=0 ; $i < count($data['entries']) ; $i++ ) {\n\n\t\t\t$class = ($i%2) ? 'even' : 'odd';\n\t\t\t$out .= '<tr class=\"'.$class.'\"><td>';\n\t\t\t$out .= implode('</td><td>',$data['entries'][$i]);\n\t\t\t$out .= '</td></tr>';\n\t\t}\n\n\t\tif(!$data['entries']) {\n\t\t\t$out = '<td colspan=\"5\">'.$this->EE->lang->line('dm_no_results').'</td>';\n\t\t}\n\n\t\t$this->EE->load->library('javascript');\n\t\techo $this->EE->javascript->generate_json(array('table' => $out,'pagination' => $data['pagination']));\n\t\texit;\n\t}", "title": "" }, { "docid": "14f6d31eca2707d3394c7c16859f72a1", "score": "0.57610595", "text": "public function actionAjax()\n {\n //if (Yii::$app->request->isAjax and Yii::$app->request->get()){\n if (Yii::$app->request->get()){\n\n $products = ProductFiltres::filter(Yii::$app->request->get());\n return $this->renderAjax('list_products', [\n 'products' => $products,\n ]);\n \n //$products = ProductFiltres::filterNew(Yii::$app->request->get());\n //return $this->renderAjax('list_product_new', [\n // 'products' => $products,\n //]);\n }\n }", "title": "" }, { "docid": "4cee5624c9e11a0c079119c337ce8147", "score": "0.57607347", "text": "function lostandfoundlist() {\n $this->global['pageTitle'] = 'tiqs : Listing';\n $where = (empty($_POST)) ? ['userId' => $_SESSION['userId']] : $this->input->post(null, true);\n $where['label_type_id'] = $this->config->item('labelLost');\n\n $records = $this->label_model->filterLabels($where);\n\n if (!count($records)) { \n $data['userId'] = $this->session->userdata['userId'];\n $view = ($_SESSION['dropoffpoint'] === '1') ? 'nolabels' : 'nolabelsconsumer';\n\t\t} else {\n $data = [\n 'userId' => $this->session->userdata['userId'],\n 'userRecords' => $records,\n 'categories' => $this->category_model->getCategories(),\n 'dropoffpoint' => $_SESSION['dropoffpoint'],\n 'userLat' => $_SESSION['lat'],\n 'userLng' => $_SESSION['lng'],\n 'isDeleted' => ((isset($where['isDeleted'])) ? $where['isDeleted'] : '0'),\n ];\n\t\t\t$view = 'labels';\n }\n\n $this->loadViews($view , $this->global, $data, NULL);\n }", "title": "" }, { "docid": "b5210d7fae07699d38ebc214cc9f3c6a", "score": "0.57601476", "text": "public function list()\n {\n $data = Late::all();\n return $this->responseOut($data);\n }", "title": "" }, { "docid": "60b6794f46372d7e2a6e2f5bbd49aa07", "score": "0.5756484", "text": "public function ajaxGridList($params);", "title": "" }, { "docid": "101e70f8b24ca3096e906c6f2ac704de", "score": "0.57540846", "text": "public function ajaxAction (Request $request) {\n $entite_id = $request->get('entite_id');\n $em = $this->getDoctrine();\n\n if( $entite_id ) {\n $return = [];\n $r_bu_entitej = $em->getRepository('UsersBundle:RelationBusinessEntite')->findBy(['iDentite' => $entite_id]);\n foreach($r_bu_entitej as &$r_bu) {\n $pro = $em->getRepository('UsersBundle:Back\\UsersParamRelationsProfessionnelles')->findOneBy(['id' => $r_bu->getIDRelationsProfessionnelles()]);\n $r_bu->setRelationsProfessionnelles($pro);\n\n $return[ $r_bu->getId() ] = sprintf(\"%s - %s\", $r_bu->getBusinessunit()->getNomBusinessUnit(), $r_bu->getRelationsProfessionnelles()->getLabel());\n }\n\n return new JsonResponse($return);\n }\n\n }", "title": "" }, { "docid": "aef8d04ff7a43c397149df2621a41218", "score": "0.5740279", "text": "public function getInstituteListByAjax(Request $request)\n {\n $data = [];\n\n $institutes = $this->instituteRepository->getInstituteList();\n\n return response()->json([\n 'success' => true,\n 'data' => $institutes,\n ]);\n }", "title": "" }, { "docid": "23dc51074cef9a8eb6c13762632a36b0", "score": "0.57304704", "text": "public function ajax_response() {}", "title": "" }, { "docid": "626774f0cb5b1be60be2c6a661bcc11a", "score": "0.5718781", "text": "public function listAction()\n {\n $this->view->headTitle('Vehicle Listing ', 'PREPEND');\n $this->view->vehicles = $this->vehicleService->listService();\n }", "title": "" }, { "docid": "e675825ee3f6e0708ff5aab722a213e5", "score": "0.5712179", "text": "function get_list_pages_callback() {\n\t\tif ( !wp_verify_nonce( trx_utils_get_value_gp('ajax_nonce'), 'ajax_nonce' ) )\n\t\t\tdie();\n\n\t\t$this->prepare_vars();\n\n\t\t$response = array(\n\t\t\t'error' => empty($_POST['demo_type']) ? esc_html__('Incorrect parameters', 'trx_utils') : '',\n\t\t);\n\n\t\tif (!empty($_POST['demo_type']))\n\t\t\t$response['data'] = $this->get_list_pages_from_demo($_POST['demo_type']);\n\n\t\techo json_encode($response);\n\t\tdie();\n\t}", "title": "" }, { "docid": "3bc8f8205270f50d6a93e198151da5fe", "score": "0.5708212", "text": "public function ajaxConsultarEmpleados(){\n\n\t\t$respuesta = ControladorEmpleados::ctrMostrarEmpleados();\n\n\t\techo json_encode($respuesta);\n\t}", "title": "" }, { "docid": "8a73c574cf7f559863858cc54a6381a1", "score": "0.57046455", "text": "public function userlogisticData() {\n $this->autoRender = false;\n if ($this->request->is('ajax')) {\n $user_id = $this->request->data('user_id');\n $logArgmntTbl = TableRegistry::getTableLocator()->get('LogisticsArrangement');\n $query = $logArgmntTbl->find('all')\n ->where(['user_id' => $user_id])\n ->contain(['Logistics']);\n $logData = [];\n foreach ($query as $rw) {\n if (!empty($rw)) {\n $logData[] = $rw->toArray();\n }\n }\n echo json_encode($logData);\n die;\n }\n }", "title": "" }, { "docid": "3f13801f79764610c5aca1a38608bb2a", "score": "0.569248", "text": "public function listdata() {\n\n // Calling this method is only allowed through Ajax / POST\n if ( ! $this->input->is_ajax_request() || empty ( $this->input->post()) ) {\n $this->redirect();\n exit;\n }\n \n $this->authentication_library->check('jobsrch/'. $this->urlSegment());\n\n // Extract parameters from POST (start, limit, draw ID).\n $draw = (integer)$this->input->post('draw');\n $start = (integer)$this->input->post('start');\n $length = (integer)$this->input->post('length');\n $columns = $this->input->post('columns');\n $order = $this->input->post('order');\n \n $_SESSION[$this->sessionKey('list_display_start')] = $start;\n $_SESSION[$this->sessionKey('list_page_length')] = $length;\n\n $crit = $_SESSION[$this->sessionKey('crit')];\n \n // Determine on which columns to sort\n $sort = array();\n $list_order = array();\n if($order !== NULL)\n foreach($order as $oe) {\n // Column in order array is the index to the column, but the model needs the attribute name.\n $sort[] = array('column' => $this->attribute_for_column($columns[$oe['column']]['data']), 'dir' => $oe['dir']);\n if ( $oe['dir'] !== 'asc' && $oe['dir'] !== 'desc' )\n $oe['dir'] = 'asc';\n $list_order[] = array($oe['column'], $oe['dir']);\n }\n $_SESSION[$this->sessionKey('list_order')] = $list_order;\n \n // Load the data as required\n $totalRows = 0;\n $data = $this->getModel()->search($crit, $start, $length, $sort, $totalRows);\n \n // Turn found data into JSON and return\n $json = array('draw' => $draw, 'recordsTotal' => $totalRows, 'recordsFiltered' => $totalRows, 'data' => $this->list_data($data));\n \n echo json_encode($json);\n }", "title": "" }, { "docid": "eabcc5b74c1297052f278ada14bc3d88", "score": "0.5688347", "text": "public function admin_ajax_list() {\n if (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) &&\n empty($_SERVER['HTTP_X_REQUESTED_WITH']) &&\n strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest'\n )\n show_404();\n\n\n $this->load->model('Permohonan_m');\n\n $where = array();\n \n $column_order = array(\n 'id_permohonan', 'no_permohonan', 'tanggal_char', 'kategori', 'judul', 'status', 'id_permohonan'\n );\n $column_search = $column_order;\n $order = array('tanggal' => 'desc'); // default order \n\n $list = $this->Permohonan_m->get_datatables($column_order, $order, $column_search, $where);\n $data = array();\n $no = $_POST['start'];\n foreach ($list as $r) {\n $no++;\n $row = array();\n for ($i = 0; $i < count($column_search); $i++) {\n $row[] = $r[$column_search[$i]];\n }\n\n $data[] = $row;\n }\n\n $output = array(\n \"draw\" => $_POST['draw'],\n \"recordsTotal\" => $this->Permohonan_m->count_all($where),\n \"recordsFiltered\" => $this->Permohonan_m->count_filtered($column_order, $order, $column_search, $where),\n \"data\" => $data,\n );\n echo json_encode($output);\n }", "title": "" }, { "docid": "15a0457da033fc175e8489ee8cefde4c", "score": "0.56825703", "text": "public function ajaxGetContractsAction()\n {\n $ajax_params=$this->_request->getParams();\n if($ajax_params['clientId'])\n {\n $contract_obj=new Ep_Contract_Contract();\n\n $clientId=$ajax_params['clientId'];\n $contract_list=$contract_obj->getContractList($clientId);\n $options='<select name=\"contract_id\" id=\"contract_list\" data-placeholder=\"S&eacute;lectionner contract\"><option value=\"\"></option>';\n if($contract_list!='NO')\n {\n foreach($contract_list as $contract)\n {\n $options.='<option value=\"'.$contract['id'].'\">'.$contract['title'].'</option>';\n }\n $options.='</select>';\n echo $options;\n }\n else{\n echo trim('NO');\n\t\t\t\t\texit;\n }\n\n }\n }", "title": "" }, { "docid": "a7d8451c76b40ba888a56c698c26ecdc", "score": "0.56819797", "text": "public function actionAjaxList(){\n\t\tif(isset($_POST['id']) && $_POST['ajax'] ==='ajax')\n {\n $area_model = Area::model();\n\n $criteria = new CDbCriteria();\n\n \t$criteria->condition = \"grade = 2 and pid = \".$_POST['id'];\n\n \t$area_list = $area_model->findAll($criteria);\n\n \tforeach ($area_list as $key => $value) {\n\t\t\t $html .= '<p class=\"List_area_'.$_POST['id'].'\">&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"icon icon-color icon-treeview-vertical-line\"></span>&nbsp;<button class=\"btn\" type=\"button\" id=\"parent_area\">'.$value['area_name'].'</button></p>';\n \t}\n\n \techo $html;\n }\n\t}", "title": "" }, { "docid": "71407043b23f6cc8af07cdb14bbdaf56", "score": "0.568193", "text": "public function getAll()\n {\n\t\t$this->autoRender = false;\n $this->viewBuilder()->setLayout('ajax');\n $licences = $this->Licences->find('all');\n $collection = new Collection($licences);\n $licences = $collection->extract(function($licence){\n $lic ['id_borne'] = $licence->id_borne;\n $lic ['id_borne_encode'] = strtoupper( rtrim(strtr(base64_encode($licence->id_borne), '+/', '-_'), '='));\n $lic ['numero_serie_non_crypte'] = $licence->numero_serie_non_crypte; \n $lic ['numero_serie_crypte'] = $licence->numero_serie_crypte;\n\n return $lic;\n });\n\n echo json_encode($licences);\n }", "title": "" }, { "docid": "c7e75adc9927b760a0aa2495e0c853c9", "score": "0.56816894", "text": "public function postListar()\n {\n if ( Request::ajax() ) {\n $listar = Documento::getDocumento();\n return Response::json(\n array(\n 'rst' => 1,\n 'datos' => $listar\n )\n );\n }\n }", "title": "" }, { "docid": "39d991cecf09c182183f61b4d8974ec0", "score": "0.5679772", "text": "public function loadItemsJsonAction()\n {\n if ($this->request->isAjax() !== true) {\n $this->response->setJsonContent(['success' => 0, 'errors' => 'Invalid access']);\n return $this->response->send();\n }\n\n $sportTypeId = $this->dispatcher->getParam('type', null, null);\n $list = $this->getLeagueRepo()->getList($sportTypeId);\n\n $rows = [];\n foreach ($list as $row) {\n $rows[$row['id']] = sprintf('%s', $row['title']);\n }\n\n $this->response->setJsonContent(['success' => 1, 'data' => $rows]);\n\n return $this->response->send();\n }", "title": "" }, { "docid": "a86d7182bf1432b62ab796fd9bb52477", "score": "0.5672359", "text": "public function actionList_json()\n\t{\n\n\t\tif (Yii::$app->request->getIsAjax())\n\t\t{\n\t\t\t$query= new Query();\n\t\t\t$rows='';\n\t\t\tif(isset($_GET['combo']))\n\t\t\t{\n\t\t\t\t$like='';\n\t\t\t\tif(isset($_GET['q']))\n\t\t\t\t\t$like=$_GET['q'];\n\t\t\t\t$rows = $query\n\t\t\t\t\t\t->from('usuario')\n\t\t\t\t\t\t->orderBy(array('usuario.id_usuario'=>SORT_ASC))\n\t\t\t\t\t\t->join('inner join','role','usuario.id_role=role.id_role')\n\t\t\t\t\t\t->select('usuario.*,role.name_role ,usuario.username as text ,usuario.id_usuario as id ')\n\t\t\t\t\t\t->where('usuario.username LIKE '.\"'%\".$like.\"%'\")\n\t\t\t\t\t\t->all();\n\t\t\t\t$result['data']=$rows;\n\t\t\t\t$rows=$result;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$rows = $query\n\t\t\t\t\t\t->from('usuario')\n\t\t\t\t\t\t->orderBy(array('usuario.id_usuario'=>SORT_ASC))\n\t\t\t\t\t\t->join('inner join','role','usuario.id_role=role.id_role')\n\t\t\t\t\t\t->select('usuario.*,role.name_role ')\n\t\t\t\t\t\t->all();\n\t\t\tif (isset($_GET['callback'])) {\n\t\t\t\t\\Yii::$app->response->format = \\yii\\web\\Response::FORMAT_JSONP;\n\t\t\t\t$callback = $_GET['callback'];\n\t\t\t\treturn ['callback' => $callback, 'data' => $rows];\n\t\t\t} else {\n\t\t\t\t\\Yii::$app->response->format = \\yii\\web\\Response::FORMAT_JSON;\n\t\t\t\treturn $rows;\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "8c0cbc129f58f0b40d8d706a1a4cfd55", "score": "0.5664526", "text": "public function getLodgingList() {\n try {\n\n $query = [];\n $parameters = [];\n $errorsFilter = [];\n \n if (isset($_GET['query-submit'])) {\n $date_arrival = sanitize_input($_GET['date_arrival']);\n $date_departure = sanitize_input($_GET['date_departure']);\n $gite_name = sanitize_input($_GET['name']);\n $gite_type = sanitize_input($_GET['type']);\n $gite_city = sanitize_input($_GET['city']);\n $gite_postal = (int)str_replace(\" \", \"\", sanitize_input($_GET['postal']));\n $gite_price = (int)sanitize_input($_GET['price']);\n $gite_guest = (int)sanitize_input($_GET['guest']);\n $gite_bed = (int)sanitize_input($_GET['bed']);\n $gite_bathroom = (int)sanitize_input($_GET['bathroom']);\n $gite_wifi = empty($_GET['wifi']) ? false : \"Yes\";\n $gite_garden = empty($_GET['garden']) ? false : \"Yes\";\n $gite_pool = empty($_GET['pool']) ? false : \"Yes\"; \n $gite_kitchen = empty($_GET['kitchen']) ? false : \"Yes\";\n\n\n if (!empty($date_arrival) || !empty($date_departure)) {\n if ((!strtotime($date_arrival) && !empty($date_arrival)) || (!strtotime($date_departure) && !empty($date_departure))) {\n $errorsFilter[] = \"\\\"Check in\\\" and \\\"Check out\\\" fiels must contain only valid date.\";\n } else {\n if (!empty($date_arrival) && empty($date_departure)) {\n $date_departure_tmp = new DateTime($date_arrival);\n $date_departure = $date_departure_tmp->modify('+ 1 day')->format('Y-m-d');\n }\n if (empty($date_arrival) && !empty($date_departure)) {\n $date_arrival_tmp = new DateTime($date_departure);\n $date_arrival = $date_arrival_tmp->modify('- 1 day')->format('Y-m-d');\n }\n $query[] = \"gite_id NOT IN (SELECT DISTINCT id_booking_gite FROM booking WHERE booking_date_arrival <= :booking_date_departure AND booking_date_departure >= :booking_date_arrival)\";\n $parameters[] = [':booking_date_departure', $date_departure, PDO::PARAM_STR];\n $parameters[] = [':booking_date_arrival', $date_arrival, PDO::PARAM_STR];\n } \n }\n \n if (!empty($gite_name)) {\n if (preg_match(\"/[^a-zA-Z'\\\"éà-]/\", $gite_name)) {\n $errorsFilter[] = \"\\\"Property infos\\\" field must only contain valid input (letters, numbers, hyphens, etc.).\";\n } else {\n $query[] = \"gite_name LIKE :gite_name\";\n $parameters[] = [\":gite_name\", \"%{$gite_name}%\", PDO::PARAM_STR];\n } \n }\n \n if (!empty($gite_type)) {\n if (preg_match(\"/[^a-zA-Z'àé-]/\", $gite_type)) {\n $errorsFilter[] = \"\\\"Property type\\\" field must only contain valid input (letters, numbers, hyphens, etc.).\";\n } else {\n $query[] = \"category_gite_name = :gite_type\";\n $parameters[] = [\":gite_type\", $gite_type, PDO::PARAM_STR];\n } \n }\n \n if (!empty($gite_city)) {\n if (preg_match(\"/[^a-zA-Z'àé-]/\", $gite_city)) {\n $errorsFilter[] = \"\\\"City\\\" field must only contain valid input (letters, hyphens, etc.).\";\n } else {\n $query[] = \"gite_city LIKE :gite_city\";\n $parameters[] = [\":gite_city\", \"%{$gite_city}%\", PDO::PARAM_STR];\n } \n }\n \n if (!empty($gite_postal)) {\n if (preg_match(\"/\\D/\", $gite_postal)) {\n $errorsFilter[] = \"\\\"Postal code\\\" field must only contain non null, positive, whole number.\";\n } elseif (strlen($gite_postal) !== 5 && strlen($gite_postal) !== 2) {\n $errorsFilter[] = \"\\\"Postal code\\\" field must only contain 2 or 5 digits.\";\n } else {\n $query[] = \"gite_postal LIKE :gite_postal\";\n $parameters[] = [\":gite_postal\", \"{$gite_postal}%\", PDO::PARAM_STR];\n }\n }\n \n if (!empty($gite_price)) {\n if (!is_numeric($gite_price) || $gite_price < 0) {\n $errorsFilter[] = \"\\\"Price per night\\\" field must only contain non null, positive, whole number.\";\n } else {\n $query[] = \"gite_price <= :gite_price\";\n $parameters[] = [\":gite_price\", $gite_price, PDO::PARAM_INT];\n } \n }\n\n if (!empty($gite_guest)) {\n if (!is_int($gite_guest) || $gite_guest < 0) {\n $errorsFilter[] = \"\\\"Guest\\\" field must only contain non null, positive, whole number.\";\n } else {\n $query[] = \"gite_guest <= :gite_guest\";\n $parameters[] = [\":gite_guest\", $gite_guest, PDO::PARAM_INT];\n } \n }\n \n if (!empty($gite_bed)) {\n if (!is_int($gite_bed) || $gite_bed < 0) {\n $errorsFilter[] = \"\\\"Bed\\\" field must only contain non null, positive, whole number.\";\n } else {\n $query[] = \"gite_bed <= :gite_bed\";\n $parameters[] = [\":gite_bed\", $gite_bed, PDO::PARAM_INT];\n } \n }\n \n if (!empty($gite_bathroom)) {\n $gite_bathroom = (int)$gite_bathroom;\n if (!is_int($gite_bathroom) || $gite_bathroom < 0) {\n $errorsFilter[] = \"Le champ \\\"Nombre de salles de bain\\\" doit contenir uniquement des valeurs entières positives\";\n } else {\n $query[] = \"gite_bathroom <= :gite_bathroom\";\n $parameters[] = [\":gite_bathroom\", $gite_bathroom, PDO::PARAM_INT];\n }\n }\n \n if ($gite_garden === \"Yes\") {\n $query[] = \"category_gite_garden = :category_gite_garden\";\n $parameters[] = [\":category_gite_garden\", 1, PDO::PARAM_INT];\n }\n \n if (!$gite_pool === \"Yes\") {\n $query[] = \"category_gite_pool = :category_gite_pool\";\n $parameters[] = [\":category_gite_pool\", 1, PDO::PARAM_INT];\n }\n \n if ($gite_kitchen === \"Yes\") {\n $query[] = \"category_gite_kitchen = :category_gite_kitchen\";\n $parameters[] = [\":category_gite_kitchen\", 1, PDO::PARAM_INT];\n } \n \n if ($gite_wifi === \"Yes\") {\n $query[] = \"gite_wifi = :gite_wifi\";\n $parameters[] = [\":gite_wifi\", 1, PDO::PARAM_INT];\n } \n }\n \n // if data is invalid, print errors and return all lodging\n if (count($errorsFilter) > 0) {\n $query = \"\";\n $parameters = null;\n session_start();\n $_SESSION['filter-error'] = $errorsFilter;\n } else {\n $query = empty($query) ? [] : $query;\n $parameters = empty($parameters) ? null : $parameters; \n }\n\n $sql = \"SELECT * FROM gite \n INNER JOIN category_gite ON gite.id_gite_category_gite = category_gite.category_gite_id\"; \n $sql = empty($query) ? $sql : \"$sql WHERE \" . implode(\" AND \", $query) . \" ORDER BY gite_name\";\n $stmt = $this->conn->prepare($sql); \n if ($parameters) {\n foreach($parameters as $p) {\n $stmt->bindValue($p[0], $p[1], $p[2]);\n } \n } \n $stmt->execute();\n $count = $stmt->rowCount();\n $rows = $stmt->fetchAll();\n $output = [];\n $output['rows'] = $rows;\n $output['count'] = $count;\n $output['sql'] = $sql;\n $output['parameters'] = $parameters;\n return $output;\n\n } catch (PDOException $e) {\n die(\"Error : \" . $e->getMessage());\n }\n }", "title": "" }, { "docid": "b1a62aabd1c8450dd8e633053dd0b86a", "score": "0.56589097", "text": "function ajax_list() {\n\t\t$offset = isset($_POST['page']) ? intval($_POST['page']) : 1;\n\t\t$limit = isset($_POST['rows']) ? intval($_POST['rows']) : 10;\n\t\t$tgl_dari = isset($_POST['tgl_dari']) ? $_POST['tgl_dari'] : '';\n\t\t$tgl_samp = isset($_POST['tgl_samp']) ? $_POST['tgl_samp'] : '';\n\t\t$sort = isset($_POST['sort']) ? $_POST['sort'] : 'tanggal';\n\t\t$order = isset($_POST['order']) ? $_POST['order'] : 'desc';\n\t\t$search = array(\n\t\t\t'tgl_dari' => $tgl_dari,\n\t\t\t'tgl_samp' => $tgl_samp\n\t\t);\n\t\t\n\t\t$offset = ($offset-1)*$limit;\n\t\t$data = $this->m_backup->get_data_db_ajax($offset,$limit,$search,$sort,$order);\n\t\t$i\t= 0;\n\t\t$rows = array();\n\t\tif($data){\n\t\t\tforeach ($data[\"data\"] as $r) {\n\t\t\t\t//array keys ini = attribute 'field' di view nya\n\n\t\t\t\t$rows[$i]['no'] = $i+1;\n\t\t\t\t$rows[$i]['id'] = 'BCKP'.$r->id;\n\t\t\t\t$rows[$i]['pathdb'] = $r->pathdb;\n\t\t\t\t$rows[$i]['nama_backup'] = $r->nama_backup;\n\t\t\t\t$rows[$i]['tanggal'] = date_format(date_create($r->tanggal), \"d F Y\");\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\t//keys total & rows wajib bagi jEasyUI\n\t\t$result = array('total'=>$data['count'],'rows'=>$rows);\n\t\techo json_encode($result); //return nya json\n\t}", "title": "" }, { "docid": "00f86da59c84321bd53c5ac1f750b7dc", "score": "0.56447387", "text": "public function ajax_load_available_items() {}", "title": "" }, { "docid": "20c5fe1c4a95cf63307dce790ceca4be", "score": "0.56441766", "text": "public function index()\n {\n $lcs = LC::all();\n return response()->json($lcs);\n }", "title": "" }, { "docid": "d86163f59adbe09eb7666654ac417d50", "score": "0.56362695", "text": "public function fetchroadmapPopup() {\n $this->autoRender = false;\n if ($this->request->is('ajax')) {\n $id = $this->request->data['id'];\n $connection = ConnectionManager::get('default');\n $sql = \"SELECT users.* ,l.user_id,l.logistic_id from users LEFT JOIN logistics_arrangement as l on l.user_id=users.id where users.id = '\" . $id . \"' \";\n $users = $connection->execute($sql)->fetchAll('assoc');\n if (!empty($users)) {\n $arrData = json_encode($users);\n }\n echo $arrData;\n }\n }", "title": "" }, { "docid": "346b76f19390e25cdc611023d206e893", "score": "0.5636035", "text": "public function haalAjaxOp_Klassen()\n {\n $this->load->model('persoon_model');\n $this->load->model('klas_model');\n\n $klasId = $this->input->get('klasId');\n $klasOpties = array();\n\n $personen = $this->persoon_model->getAllWhereKlas($klasId);\n $data['personen'] = $personen;\n $klas = $this->klas_model->get($klasId);\n $data['klas'] = $klas;\n $klassen = $this->klas_model->getAllKlassen();\n foreach ($klassen as $klasOptie) {\n array_push($klasOpties, $klasOptie->naam);\n }\n $data['klassen'] = $klasOpties;\n\n $this->load->view('Student/ajax_klaslijsten', $data);\n }", "title": "" }, { "docid": "89e5ef13a83a1fb0566d89b5a7afeb7b", "score": "0.56348675", "text": "public function listDataAction() {\n $logs = $this->_getLogsForDomain($this->domain);\n $logsList = new Modules_Dotnetcore_Logs_List($this->view, $this->_request, $logs);\n\n $this->_helper->json($logsList->fetchData());\n }", "title": "" }, { "docid": "49a5da31c9507360cd514e0c908e238f", "score": "0.5624137", "text": "public function ajax_list()\n\t{\n $idkelas = $this->uri->segment(4);\n $kelas = $this->Model_users->read_users_by_kelas($idkelas);\n if ($kelas!=false){\n $idusers = $kelas->idusers;\n } else {\n $idusers = 0;\n }\n\n\t\t//get_datatables terletak di model\n\t\t$list = $this->Model_ekstra_siswa->get_datatables_admin($this->session->userdata('tahun'),$idusers);\n\t\t$data = array();\n\t\t$no = $_POST['start'];\n\n\t\t// Membuat loop/ perulangan\n\t\tforeach ($list as $data_ekstra_siswa) {\n\t\t\t$no++;\n\t\t\t$row = array();\n\t\t\t$row[] = $no;\n\t\t\t$row[] = $data_ekstra_siswa->k_tingkat.' ('.$data_ekstra_siswa->k_keterangan.')';\n\t\t\t$row[] = $data_ekstra_siswa->s_nama;\n\t\t\t$row[] = $data_ekstra_siswa->e_nama;\n\t\t\t$row[] = $data_ekstra_siswa->es_nilai;\n\t\t\t$row[] = $data_ekstra_siswa->es_deskripsi;\n\t\t\t$row[] = $data_ekstra_siswa->first_name.' '.$data_ekstra_siswa->last_name;\n\n\t\t\t$data[] = $row;\n\t\t}\n\t\t$output = array(\n\t\t\t\"draw\" => $_POST['draw'],\n\t\t\t\"recordsTotal\" => $this->Model_ekstra_siswa->count_all_admin($this->session->userdata('tahun'),$idusers),\n\t\t\t\"recordsFiltered\" => $this->Model_ekstra_siswa->count_filtered_admin($this->session->userdata('tahun'),$idusers),\n\t\t\t\"data\" => $data\n\t\t);\n\t\t//output to json format\n\t\techo json_encode($output);\n }", "title": "" }, { "docid": "9ebae448eb449e898752d310fca313d5", "score": "0.56237763", "text": "public function getList()\n {\n return $this->render('ville/getList.html.twig', [\n 'title' => 'Villes',\n ]);\n }", "title": "" }, { "docid": "443c1ed051c412c645eecf92a9792f61", "score": "0.5621549", "text": "public function listAction()\n {\n $request=$this->getRequest();\n $requestUtil=$this->getRequestUtil();\n \n $pageRequestData=$requestUtil->getPageRequestDataFrom($request);\n $dataPage=$this->getSystemUserManager()->findPageFrom($pageRequestData);\n \n return $requestUtil->defaultListJsonResponse($dataPage->getData(), $dataPage->getTotalRecords());\n }", "title": "" }, { "docid": "26f03d62ea0d4ad6935315704fd983bb", "score": "0.5615258", "text": "public function action_ajaxGetLevels() { //preguntas transversales por niveles\n $this->auto_render = false;\n if ($this->request->is_ajax()) {\n $id = $this->request->post('campaign');\n $campaign = ORM::factory('Campaign', $id);\n if ($campaign->name) {\n $levels = $campaign->levels\n ->where('level', '!=', 0)\n ->order_by('level')\n ->find_all()->as_array('level', 'name');\n\n $query = DB::query(Database::SELECT, 'SELECT COUNT(id) as count, level FROM employee '\n . 'WHERE campaign_id=' . $id . ' GROUP BY level order by level');\n $count = $query->execute()->as_array('level', 'count');\n\n $result = array();\n\n foreach ($levels as $level => $name) {\n array_push($result, array($name, intval($count[$level])));\n }\n\n $response = array('data' => $result, 'count' => count($levels));\n echo json_encode($response);\n } else {\n $response = array('count' => 0);\n echo json_encode($response);\n }\n }\n }", "title": "" }, { "docid": "4f1ff86134bada237469629501bec79f", "score": "0.56147105", "text": "public function index() {\n $list_ad=Ad::getList(['paixu'=>'sort'],['st'=>1]);\n\n return json(['code'=>0,'msg'=>'ad list from \"ad/index\"','data'=>$list_ad]);\n\n }", "title": "" }, { "docid": "862a64d1d24cb7e5f3edcd0162aca07a", "score": "0.56143713", "text": "private function lists(){\n\t\t\t$constrain = '';\n\t\t\t$offset = $this->validateNumber(isset($_GET['offset'])?$_GET['offset']:NULL);\n\t\t\t$idAjusteEntrada = $this->validateNumber(isset($_GET['id'])?$_GET['id']:NULL);\n\t\t\t$constrains = isset($_POST['constrains'])?$_POST['constrains']:'1 = 1';\n\t\t\t\n\t\t\tif($constrains === '1 = 1'){\n\t\t\t\t$constrain = $constrains;\n\t\t\t}else{\n\t\t\t\t$tam = count($constrains);\n\t\t\t\tforeach ($constrains as $campo => $valor) {\n\t\t\t\t\tif(--$tam){\n\t\t\t\t\t\tif(is_numeric($valor)){\n\t\t\t\t\t\t\t$constrain.=$campo.' = '.$valor.' AND ';\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$constrain.=$campo.' LIKE \"%'.$valor.'%\" AND ';\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(is_numeric($valor)){\n\t\t\t\t\t\t\t$constrain.=$campo.' = '.$valor;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$constrain.=$campo.' LIKE \"%'.$valor.'%\"';\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\tif($offset!==''){ \n\t\t\t\tif ($idAjusteEntrada!=='') {\n\t\t\t\t\tif(($result = $this->model->listsDetails($idAjusteEntrada))){\n\t\t\t\t\t\tif(is_numeric($result)){\n\t\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\t\techo $this->json_encode(array('error'=>VACIO,'data'=>NULL,'mensaje'=>'No se encontro Registro alguno'));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('vacio.html');\n\t\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>NULL));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\t\techo $this->json_encode(array('error'=>OK,'data'=>$result,'mensaje'=>'Correcto'),JSON_UNESCAPED_UNICODE);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$this->session['action']='list';\n\t\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('ajusteEntradaForm.html');\n\t\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>$result));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>FORMATO_INCORRECTO,'data'=>NULL,'mensaje'=>'Formato Incorrecto'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//CARGAR VISTA FORMATO INCORRECTO\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else if(($result = $this->model->lists($offset,-1,$constrain))){\n\t\t\t\t\tif(is_numeric($result)){\n\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>VACIO,'data'=>NULL,'mensaje'=>'No se encontro Registro alguno'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('vacio.html'); echo $template->render(array('session'=>$this->session,'data'=>NULL));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>OK,'data'=>$result,'mensaje'=>'Correcto'),JSON_UNESCAPED_UNICODE);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('ajusteEntradaList.html');\n\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>$result));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif($this->api){\n\t\t\t\t\t\techo $this->json_encode(array('error'=>ERROR_DB,'data'=>NULL,'mensaje'=>'Error al Realizar la Consulta'));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//CARGAR VISTA ERROR DB\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif($this->api){\n\t\t\t\t\techo $this->json_encode(array('error'=>FORMATO_INCORRECTO,'data'=>NULL,'mensaje'=>'Formato Incorrecto'));\n\t\t\t\t}else{\n\t\t\t\t\t//CARGAR VISTA FORMATO INCORRECTO\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "b38c6e027ef1e4cdf12813550a7c1863", "score": "0.5614281", "text": "public function index()\n {\n if(Request::ajax())\n {\n return json_encode([ 'data' => LendLog::with('itemprofile')->get() ]);\n }\n\n return view('lend.index');\n }", "title": "" }, { "docid": "60c18309dc85c807689d7c80900ae2c3", "score": "0.56114984", "text": "public static function donationSlabsList(Request $request){\n $donationDetailObj = new \\App\\ProjectDonationSlab;\n $input = $request->all();\n $donation = $donationDetailObj->donation_slab($input['project_id']);\n $message = 'Donation list.';\n $jsonResponse = General::jsonResponse(1,$message,$donation,'','','form');\n return $jsonResponse;\n }", "title": "" }, { "docid": "86745a6a2da89c507e7a583b9986ccbc", "score": "0.5606894", "text": "function jsonGetChargelists() {\n\t\t\n\t\t\t//Controllo i permessi\n\t\t\tif (!DMAcl::checkPrivilege(\"FH_CHARGELISTS\")) {\n\t\t\t\tparent::outputError(-110);\n\t\t\t}\n\t\t\t\n\t\t\trequire_once(DM_APP_PATH . DS . 'helpers' . DS . 'chargelisthelper.php');\n\t\t\t\n\t\t\t$searchParams = array();\n\t\t\t$searchParams['archived'] = DMInput::getInt('archived', -1);\n\t\t\t$chargelists = FHChargelistHelper::getChargelists($searchParams);\n\t\t\t\n\t\t\tforeach ($chargelists as $chargelist) {\n\t\t\t\t$chargelist->chargelist_date_str = DMFormat::formatDate($chargelist->chargelist_date, 'd/m/Y', 'Y-m-d');\n\t\t\t\tif ($chargelist->archived) {\n\t\t\t\t\t$chargelist->archived_str = 'Si';\n\t\t\t\t} else {\n\t\t\t\t\t$chargelist->archived_str = 'No';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tparent::outputResult(count($chargelists), $chargelists, 'chargelists');\n\t\t\n\t\t}", "title": "" }, { "docid": "cc198a763fa63c906eeb476db8abb1d1", "score": "0.5605685", "text": "public function ajax_fetch()\n {\n $conditions = array();\n\n if ($this->request->isget() && $this->request->query != null) {\n $data = $this->request->query;\n\n //Working for Global AJAX search featire\n if (isset($data['searchTerm']) && ($data['searchTerm'] != '' && $data['searchTerm'] != null )) {\n $search_term = true;\n $where_conditions['Post.subject LIKE'] = \"%\" . $data['searchTerm'] . \"%\";\n if (preg_match('/active/i',$data['searchTerm'])) {\n $where_conditions['Post.status'] = 1;\n }\n if (preg_match('/inactive/i',$data['searchTerm'])) {\n $where_conditions['Post.status'] = 0;\n }\n $conditions['conditions'] = array(\"OR\" => $where_conditions);\n }\n }\n\n $faqMasters = $this->Crud->listdata(array('find_configs' => $conditions));\n $this->autoRender = false;\n echo $faqMasters;\n exit();\n }", "title": "" }, { "docid": "220b2c0d8d6593c868bc86b80b7bb99e", "score": "0.5601426", "text": "public function ajax();", "title": "" }, { "docid": "908342eca55a0cff0d15a0f85b967a80", "score": "0.55929583", "text": "function dataSatuanListAjax($superUserID=\"\"){\n $role = $this->session->userdata('role'); \n\n $searchText = $this->security->xss_clean($_POST['search']['value']);\n $limit = $_POST['length'];\n $start = $_POST['start'];\n\n // here order processing\n if(isset($_POST['order'])){\n $orderByColumnIndex = $_POST['order']['0']['column'];\n $orderDir = $_POST['order']['0']['dir'];\n }\n else {\n $orderByColumnIndex = 1;\n $orderDir = \"ASC\";\n }\n\n $result = $this->satuanModel->getSatuanListData($searchText,$orderByColumnIndex,$orderDir, $start,$limit);\n $resultTotalAll = $this->satuanModel->count_all();\n $resultTotalFilter = $this->satuanModel->count_filtered($searchText);\n\n $data = array();\n $no = $_POST['start'];\n foreach ($result as $item) {\n $no++;\n $date_created=date_create($item['created']);\n $date_lastModified=date_create($item['lastUpdated']);\n $row = array();\n $row[] = $no;\n $row[] = $item['satuanID'];\n $row[] = $item['satuanName'];\n $row[] = $item['satuanShortName'];\n $row[] = $item['isActive'];\n $row[] = date_format($date_created,\"d M Y\").\" by \".$item['createdBy'];\n $row[] = date_format($date_lastModified,\"d M Y\").\" by \".$item['lastUpdatedBy']; \n $data[] = $row;\n }\n\n $output = array(\n \"draw\" => $_POST['draw'],\n \"recordsTotal\" => $resultTotalAll,\n \"recordsFiltered\" => $resultTotalFilter,\n \"data\" => $data,\n );\n\n //$this->output->enable_profiler(TRUE);\n //output to json format\n echo json_encode($output);\n }", "title": "" }, { "docid": "6dd13bfb67e15e92a741760eed715987", "score": "0.5583304", "text": "public function displayAjaxGet()\n {\n $controller = new BaseSystemInfoController();\n\n PacklinkPrestaShopUtility::dieDtoEntities($controller->get());\n }", "title": "" } ]
4bba10d28ea02a1689c4208a6db552f1
/ Forms Delete form text.
[ { "docid": "0258e4644c13275cef2ee5f79bee0e89", "score": "0.7809928", "text": "function formsDeleteForm($text){\n array_push($text, array('key' => 'PARENT_FORMS_DELETE_FORM',\n 'parent' => '',\n 'text' => 'Forms - Delete form'));\n \n array_push($text, array('key' => 'FORMS_DELETE_FORM_CONFIRMATION',\n 'parent' => 'PARENT_FORMS_DELETE_FORM',\n 'text' => 'Are you sure you want to delete this form?'));\n array_push($text, array('key' => 'FORMS_DELETE_FORM_SUBMIT',\n 'parent' => 'PARENT_FORMS_DELETE_FORM',\n 'text' => 'Delete form'));\n array_push($text, array('key' => 'FORMS_DELETE_FORM_DELETING',\n 'parent' => 'PARENT_FORMS_DELETE_FORM',\n 'text' => 'Deleting form ...'));\n array_push($text, array('key' => 'FORMS_DELETE_FORM_SUCCESS',\n 'parent' => 'PARENT_FORMS_DELETE_FORM',\n 'text' => 'You have succesfully deleted the form.'));\n \n return $text;\n }", "title": "" } ]
[ { "docid": "77a2426981ea0cb5dab70e3cdc963d36", "score": "0.77150893", "text": "function formsFormDeleteField($text){\n array_push($text, array('key' => 'PARENT_FORMS_FORM_DELETE_FIELD',\n 'parent' => '',\n 'text' => 'Forms - Delete form field'));\n \n array_push($text, array('key' => 'FORMS_FORM_DELETE_FIELD_CONFIRMATION',\n 'parent' => 'PARENT_FORMS_FORM_DELETE_FIELD',\n 'text' => 'Are you sure you want to delete this form field?'));\n array_push($text, array('key' => 'FORMS_FORM_DELETE_FIELD_SUBMIT',\n 'parent' => 'PARENT_FORMS_FORM_DELETE_FIELD',\n 'text' => 'Delete'));\n array_push($text, array('key' => 'FORMS_FORM_DELETE_FIELD_DELETING',\n 'parent' => 'PARENT_FORMS_FORM_DELETE_FIELD',\n 'text' => 'Deleting form field ...'));\n array_push($text, array('key' => 'FORMS_FORM_DELETE_FIELD_SUCCESS',\n 'parent' => 'PARENT_FORMS_FORM_DELETE_FIELD',\n 'text' => 'You have succesfully deleted the form field.'));\n \n return $text;\n }", "title": "" }, { "docid": "9adde70bdb0e386fd972b28014777356", "score": "0.7487217", "text": "protected function delForm()\n {\n \n }", "title": "" }, { "docid": "cdadb54304ae95185cf5c1ed2ef2e2ee", "score": "0.7302374", "text": "public function deleteForm() {\n\t\t\trequire 'View/delete_form.php';\n\t\t}", "title": "" }, { "docid": "0a1bee73a2487eb3e3a157b219836803", "score": "0.7292697", "text": "public function getPostAdminDeleteItem()\n {\n $title = \"Ta bort text\";\n $form = new AdminDeleteCommForm($this->di);\n\n $form->check();\n\n $data = [\n \"form\" => $form->getHTML(),\n ];\n\n $crud = \"comm/crud/admindelete\";\n $this->toRender($title, $crud, $data);\n }", "title": "" }, { "docid": "1fff620aff07689535623cf365c55df8", "score": "0.70918435", "text": "public function del() //method untuk delete form masuk\n\t{\n\t\t$u = $this->uri->segment(3);\n\t\t$this->adminModel->delete($u);\n\t\tredirect('admin/viewform');\n\t}", "title": "" }, { "docid": "ae06500374089c947982a41287b842b8", "score": "0.7091629", "text": "public function destroy()\n {\n $id = request('delete_entry_text_id');\n if($id != '') {\n entry_text::where('entry_id', $id)->delete();\n return redirect()->back()->with('success', 'Successfully Delete');\n }\n else{\n return redirect()->back()->with('error', 'Form Has Been Error');\n }\n }", "title": "" }, { "docid": "b0c09dae91162c258c96681789646355", "score": "0.6978391", "text": "public function post_delete(){\n\t\t\t\n\t\t$data \t= \tFiledb::_rawurldecode(json_decode(stripcslashes(Input::get('data')), true));\n\n\t\tif($data[\"delete\"] == 'delete'){\n\n\t\t\t$status = Modules::delete($data[\"id\"]);\n\n\t\t\tif($status){\n\n\t\t\t\treturn Utilites::alert(__('forms.deleted_word'), 'success');\n\n\t\t\t}else{\n\n\t\t\t\treturn Utilites::alert(__('forms_errors.undefined'), 'error');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a834ac358191df7d1288d81403936d16", "score": "0.6760535", "text": "public function Display_delete_form() {\r\n\r\n echo \"<form action='{$_SERVER[\"PHP_SELF\"]}' method='post'>\r\n <b><font size='+1'>Are you sure you want to delete this record?</b></font>\";\r\n\r\n echo \"<input type='hidden' name='fc' value='{$this->GetValue($this->fcKeyName)}' />\";\r\n echo \"<br><input type='submit' name='deleterecord_forsure' value='YES, DELETE RECORD'><br><br>\";\r\n echo \"<input type='hidden' name='{$this->keyIdName}' value='{$this->keyId}'></form>\";\r\n }", "title": "" }, { "docid": "a7c7bbbe3db6f99cd009dcd36bd9ec4a", "score": "0.676032", "text": "public function postDelete()\n {\n return '';\n }", "title": "" }, { "docid": "5c21321dd30d29a5ca2e7ff0563cfada", "score": "0.6703536", "text": "function formsFormFieldSelectDeleteOption($text){\n array_push($text, array('key' => 'PARENT_FORMS_FORM_FIELD_SELECT_DELETE_OPTION',\n 'parent' => '',\n 'text' => 'Forms - Form field - Delete select option'));\n \n array_push($text, array('key' => 'FORMS_FORM_FIELD_SELECT_DELETE_OPTION_CONFIRMATION',\n 'parent' => 'PARENT_FORMS_FORM_FIELD_SELECT_DELETE_OPTION',\n 'text' => 'Are you sure you want to delete this select option?'));\n array_push($text, array('key' => 'FORMS_FORM_FIELD_SELECT_DELETE_OPTION_SUBMIT',\n 'parent' => 'PARENT_FORMS_FORM_FIELD_SELECT_DELETE_OPTION',\n 'text' => 'Delete'));\n array_push($text, array('key' => 'FORMS_FORM_FIELD_SELECT_DELETE_OPTION_DELETING',\n 'parent' => 'PARENT_FORMS_FORM_FIELD_SELECT_DELETE_OPTION',\n 'text' => 'Deleting select option ...'));\n array_push($text, array('key' => 'FORMS_FORM_FIELD_SELECT_DELETE_OPTION_SUCCESS',\n 'parent' => 'PARENT_FORMS_FORM_FIELD_SELECT_DELETE_OPTION',\n 'text' => 'You have succesfully deleted the select option.'));\n \n return $text;\n }", "title": "" }, { "docid": "3fdf55171f51c295ea16ecfd6a79ec8a", "score": "0.6700621", "text": "function locale_translate_delete_form($form, &$form_state, $source) {\n $form['lid'] = array('#type' => 'value', '#value' => $source->lid);\n return confirm_form($form, t('Are you sure you want to delete the string \"%source\"?', array('%source' => $source->source)), 'admin/config/regional/translate/translate', t('Deleting the string will remove all translations of this string in all languages. This action cannot be undone.'), t('Delete'), t('Cancel'));\n}", "title": "" }, { "docid": "50f50617b7256fdf5e2dab897f43aa1f", "score": "0.6676405", "text": "function delete_noidung_media_server($form,&$form_state,$value) {\n $form = array();\n $form['header'] = array(\n '#type' => 'item',\n '#markup' => '<h4>Vui lòng xác nhận để hủy nội dung</h4>',\n );\n $form['nd_nid'] = array(\n '#type' => 'hidden',\n '#value' => $value,\n );\n return confirm_form($form,'Vui lòng xác nhận để xóa nội dung','tainoidung/list',t(''),t('Xác nhận'),t('Hủy bỏ'));\n}", "title": "" }, { "docid": "e82c25063edaa3dab023125e9b13ee8e", "score": "0.66243607", "text": "function deleteForms()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n $ProductID = $this->ID;\r\n\r\n $query = \"DELETE FROM eZTrade_ProductFormDict\r\n WHERE ProductID=$ProductID\r\n \";\r\n $db->query( $query );\r\n }", "title": "" }, { "docid": "ba648d9176a53df36cc4ac26b78c8f96", "score": "0.6611245", "text": "function delete_form_link($routeParams, $label = 'Cancella', $confirmmsg = 'Cancellare elemento?')\n{\n $form = Form::open(['method' => 'DELETE', 'url' => $routeParams, 'class' => 'pull-left']);\n $form .= \"&nbsp;\";\n $form .= Form::submit($label, ['class' => 'linkdestroy', '' => 'confirmDelUsr(\"'.$confirmmsg.'\")']);\n return $form .= Form::close();\n}", "title": "" }, { "docid": "82ef358647cee7f43f148f4c453aeb2d", "score": "0.66096085", "text": "function pf_page_delete(){\n $name = @$_GET['delete'];\n $id = @$_GET['id']; \n ?>\n <div class=\"wrap\">\n <?php pf_title( \"Tipo de Post\" ); ?>\n <hr class=\"wp-header-end\">\n \n <?php pf_panel_borrar( 'Esta seguro que desea borrar el Tipo de Post: ' .$name, admin_url( 'admin.php?page=pf-form'), [ $id, $name ] ) ;?> \n <hr class=\"wp-header-end\" >\n </div>\n <?php\n}", "title": "" }, { "docid": "6c6b1d1a8190124d9deb675ee6fecba0", "score": "0.66058517", "text": "function text_deleteData($vPageID) {\n\tglobal $Auth;\n\t\n\t## multiclient\n\t$client_id = $Auth->auth[\"client_id\"];\n\n\t## data connection\n\t$db_connectionMain = new DB_Sql();\n\t## get all text elements\n\t$query = \"DELETE FROM \".PAGE_CONTENT.\" WHERE page_id='$vPageID' AND client_id='$client_id'\";\n\t$result_pointer = $db_connectionMain->query($query);\n}", "title": "" }, { "docid": "c2b3630bd2bfdf5e4520619dd88bd7fd", "score": "0.65736896", "text": "function deleteitemform_submit(Pieform $form, $values) {\n global $SESSION, $todelete;\n\n $todelete->delete();\n $SESSION->add_ok_msg(get_string('itemdeletedsuccessfully', 'artefact.checklist'));\n\n redirect('/artefact/checklist/checklist.php?id='.$todelete->get('parent'));\n}", "title": "" }, { "docid": "c7f821ecac0e7d862af2379066224546", "score": "0.6546048", "text": "function so_forms_delete_field($id) {\r\n\r\n db_query(\"DELETE FROM {so_forms_fields} WHERE id=?\", array($id));\r\n db_query(\"DELETE FROM {so_forms_fields_displays} WHERE fid=?\", array($id));\r\n\r\n drupal_set_message('Field has been deleted');\r\n drupal_goto($_GET['destination']);\r\n}", "title": "" }, { "docid": "75ccc49f6a2227346ddbf860ac8cabfb", "score": "0.6543458", "text": "private function getDeleteForm(){\r\n $insertElement = '<form method=\"POST\" action=\"/deleteHero\" >\r\n <label>Insert a number of the Hero you want to remove:</label><br>\r\n <label for=\"fNumber\">Nº</label><br>\r\n <input type=\"number\" id=\"fNumber\" name=\"fNumber\"> <br>\r\n <input type=\"submit\" value=\"Submit\" name=\"submit\"> \r\n </form>';\r\n return ($insertElement);\r\n }", "title": "" }, { "docid": "18e0241f16d9056a1ee0927de08c6c15", "score": "0.6541645", "text": "function DeleteForm()\n\t{\tob_start();\n\t\t$booking = new AdminBooking($_GET[\"bookid\"]);\n\t\t\n\t\tif ($_GET[\"confirm\"])\n\t\t{\tif ($booking->Delete())\n\t\t\t{\techo \"1|~|booking deleted\";\n\t\t\t} else\n\t\t\t{\techo \"0|~|<!--bookdelete-->sorry, this booking cannot be deleted\";\n\t\t\t}\n\t\t\t\n\t\t} else\n\t\t{\techo \"0|~|<!--bookdelete--><p>Please confirm you want to delete \", $this->InputSafeString($booking->user->details[\"firstname\"] . \" \" . $booking->user->details[\"surname\"]), \"'s booking</p><p><a class='bdConfirm' onclick='BookingDeletePopUp(\", $booking->details[\"course\"], \",\", $booking->id, \", true);'>Confirm Deletion</a></p>\";\n\t\t}\n\t\t\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "c9a9c6b5f6341678913b2fa2557f837e", "score": "0.6532437", "text": "public function deleted(Form $form)\n {\n //\n }", "title": "" }, { "docid": "832e3171863b510b9fa1817ba8eb5722", "score": "0.6530638", "text": "public function deleteTemplateForm(){\n\t\tAccess::denied(\"can_edit_templates\");\n\t\t$provider = new PageAdminTemplate();\n\t\treturn $provider->getDeleteTemplateForm();\n\t}", "title": "" }, { "docid": "11112834aa812c4f22e2a50205d05b90", "score": "0.6515529", "text": "function dfusion_user_delete_form($form, $form_state, $account, $aid = 0) {\n $authname = db_query(\"SELECT authname FROM {authmap} WHERE uid = :uid AND aid = :aid AND module = 'dfusion'\", array(\n ':uid' => $account->uid,\n ':aid' => $aid,\n ))\n ->fetchField();\n return confirm_form(array(), t('Are you sure you want to delete the DFusion %authname for %user?', array('%authname' => $authname, '%user' => $account->name)), 'user/' . $account->uid . '/dfusion');\n}", "title": "" }, { "docid": "bcc803941d54b5ab5cd834634417f913", "score": "0.65058315", "text": "function thumbwhere_contentclassification_form_submit_delete(&$form, &$form_state) {\n $form_state['redirect'] = 'admin/thumbwhere/thumbwhere_contentclassifications/thumbwhere_contentclassification/' . $form_state['thumbwhere_contentclassification']->pk_contentclassification . '/delete';\n}", "title": "" }, { "docid": "c0398c16b8508a17ffb66f3489e52826", "score": "0.65029395", "text": "function webfonts_selectors_delete(&$form_state, $delta, $selector, $projectid){\n\tdrupal_add_js(\"$(document).ready(function() {showWFSlogo()});\", 'inline');\n\t$data = webfonts_project_profile_load($projectid);\n\t$projectkey=$data->project_key;\n\t\n\t//The question to ask the user.\n $question = t('Are you sure you want to delete the selector %selector?', array('%selector' => $selector));\n \t\n\t// The page to go to if the user denies the action.\n $path = 'admin/settings/webfonts/projectdetails/'.$projectid;\n\n // Additional text to display (defaults to \"This action cannot be undone.\").\n $description = t('This action cannot be undone.');\n\n // A caption for the button which confirms the action.\n $yes = t('Delete');\n\n // A caption for the link which denies the action.\n $no = t('Cancel');\n\n // set delta value to use in submit function.\n $form['delta'] = array('#type' => 'value', '#value' => $delta);\n\t$form['projectkey'] = array('#type' => 'value', '#value' => $projectkey);\n\t$form['projectid'] = array('#type' => 'value', '#value' => $_SESSION['webfonts_project_id']);\n\t\n\t\n \n // set the redirect path value to use in submit function.\n $form['#redirect'] = $path;\n return confirm_form(\n $form,\n $question,\n $path,\n $description,\n $yes,\n $no\n );\n}", "title": "" }, { "docid": "a1db05af00726a23bf80c29deab567cf", "score": "0.64839333", "text": "public function delete()\n\t{\n\t\tif ( empty( $_POST['csrf'] ) || !$this->checkCSRF( $_POST['csrf'] ) )\n\t\t{\n\t\t\t$this->ErrorHandler->setErrors( \"Invalid CSRF token, refresh the page and try again\" );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (!empty($_POST['type']))\n\t\t\t{\n\t\t\t\t$file = empty($_POST['file']) ? '' : urldecode( $_POST['file'] ); \n\t\t\t\t$file = basename( $file );\n\t\t\t\t\t\t\t\n\t\t\t\tif ($_POST['type'] == 'file')\n\t\t\t\t{\n\t\t\t\t\tif ($this->FileHandler->checkFile($this->dir.$file))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!$this->FileHandler->rmFile($this->dir.$file))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->ErrorHandler->setErrors('Unable To Remove File At This Time');\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$this->ErrorHandler->setErrors('Unable To Remove: Non-Existant File');\n\t\t\t\t\t}\n\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->deleteDir( $file );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->index();\n\t}", "title": "" }, { "docid": "09a51cdc1a8527923b8396c710db6184", "score": "0.64656156", "text": "function formEntryDelete(){\n\t\t$id = $_POST['id'];\n\t\t$delete = $this->wpdb->delete( $this->entry_table, array( 'id' => $id ), array( '%d' ) );\n\t\tif($delete){\n\t\t\techo 'success';\n\t\t}else{\n\t\t\techo 'fail';\n\t\t}\n\t\tdie();\n\t}", "title": "" }, { "docid": "75ef35ed29a7a37cfd718b26fb221c94", "score": "0.64645356", "text": "function delete_form($routeParams, $label = 'Cancella')\n{\n $form = Form::open(['method' => 'DELETE', 'url' => $routeParams]);\n $form .= Form::submit($label, ['class' => 'btn btn-danger']);\n return $form .= Form::close();\n}", "title": "" }, { "docid": "7c6d26ab25e5bc65ff013c368c9b705d", "score": "0.64632356", "text": "function create_delete_button($eid) {\n return '<form method=\"POST\"> \n<input type=SUBMIT action=\"<?php delete_request('.$eid.') ?>\"\nvalue=\"delete\"> \n</form>';\n}", "title": "" }, { "docid": "7b2b6620908a085a878f96f2a9d9f45e", "score": "0.64300215", "text": "function newt_form_destroy($form){}", "title": "" }, { "docid": "fa0eb874bca26aa7592b0edb950d620d", "score": "0.64296085", "text": "function getDeleteForm($p = array())\n {\n $return = '<script>pz_refresh_calendar_lists();pz_remove_calendar_events_by_id('.$this->calendar_event->getId().');pz_tooltipbox_close()</script>';\n return $return;\n\n }", "title": "" }, { "docid": "55f6690dde791773f86f01e132a488a3", "score": "0.6406605", "text": "public function renderDeleteForm()\n {\n $showDelete = !current_user_can('manage_options');\n $url = add_query_arg([\n 'gdpr_action' => 'forget',\n 'gdpr_nonce' => wp_create_nonce(\"gdpr/dashboard/privacy-tools/action/forget\"),\n ]);\n\n echo gdpr('view')->render(\n \"modules/wordpress-user/dashboard/data-page/form-delete\",\n compact('url', 'showDelete')\n );\n }", "title": "" }, { "docid": "cdcce65aab692216ecdac2f395ba9553", "score": "0.6392758", "text": "function redhen_donation_type_form_submit_delete(&$form, &$form_state) {\n $form_state['redirect'] = 'admin/structure/redhen/donation_types/manage/' . $form_state['redhen_donation_type']->name . '/delete';\n}", "title": "" }, { "docid": "265181bed31c91be550242337dfbaa09", "score": "0.63630784", "text": "function trashSubmitOnly() {\n global $lang;\n require_once (\"themes/include/java_script/select_all.js\");\n //print \"<input type=submit value=\\\"$lang->delete\\\">\";\n //print \"<img src=/themes/base/base_theme/_img/trash.png>\\n\";\n print \"<br><nobr><input type=button onClick=select_all(this.form) value='[x]'><input type=reset value=$lang->reset></nobr>\";\n return;\n }", "title": "" }, { "docid": "a19a499d93e553ac65cd01ccf27bf7e1", "score": "0.6354384", "text": "function dh_sprayquan_form_submit_delete(&$form, &$form_state) {\r\n $parms = drupal_get_query_parameters();\r\n if (isset($parms['finaldest'])) {\r\n $extras['query']['destination'] = $parms['finaldest'];\r\n }\r\n $url = implode('/', array('admin/content/dh_adminreg_feature/manage/' . $form_state['dh_adminreg_feature']->adminid . '/delete'));\r\n drupal_goto($url, $extras);\r\n}", "title": "" }, { "docid": "d548c5d8b29b87cea62d8ca2979df61b", "score": "0.6346699", "text": "function neatline_deleteConfirmForm()\n{\n\n $action = neatline_getDeleteExhibitUrl();\n $name = 'delete-neatline';\n $value = 'Delete';\n $attribs = array('class' => 'neatline btn danger large');\n $formName = 'delete-neatline';\n $formAttribs = array('class' => 'inline', 'action' => $action);\n $fieldsetClass = 'neatline-inline';\n\n $view = __v();\n if (!array_key_exists('method', $formAttribs)) {\n $formAttribs['method'] = 'post';\n }\n\n $fieldset = '<fieldset class=\"' . $fieldsetClass . '\">'\n . $view->formSubmit($name, $value, $attribs)\n . '</fieldset>'\n . $view->formHidden('confirmed', 'confirmed');\n\n $form = $view->form($formName, $formAttribs, $fieldset);\n\n return $form;\n\n}", "title": "" }, { "docid": "1e2b73798bc0be61d0cec588056ba107", "score": "0.6346482", "text": "function webfonts_domains_delete(&$form_state, $domain_id,$project_id,$domain_name)\n{\n\tdrupal_add_js(\"$(document).ready(function() {showWFSlogo()});\", 'inline');\n\t$domain_name=urldecode($domain_name);\n\t$data = webfonts_project_profile_load($project_id);\n\t$project_key=$data->project_key;\n\t//The question to ask the user.\n $question = t('Are you sure you want to delete the domain %domain?', array('%domain' => $domain_name));\n \t\n\t// The page to go to if the user denies the action.\n $path = 'admin/settings/webfonts/projectdetails/'.$project_id;\n\n // Additional text to display (defaults to \"This action cannot be undone.\").\n $description = t('This action cannot be undone.');\n\n // A caption for the button which confirms the action.\n $yes = t('Delete');\n\n // A caption for the link which denies the action.\n $no = t('Cancel');\n\n // set project_id value to use in submit function.\n $form['domain_id'] = array('#type' => 'hidden', '#value' => $domain_id);\n\t$form['project_key'] = array('#type' => 'hidden', '#value' => $project_key);\n\t\n\t$form['actions']['submit']['#attributes']=array('class' => 'wfs_b_s','prefix' =>'<span class=\"wfs_b_o\"><span class=\"wfs_b_i\">','suffix' =>'</span></span>');\n \n // set the redirect path value to use in submit function.\n $form['#redirect'] = $path;\n return confirm_form(\n $form,\n $question,\n $path,\n $description,\n $yes,\n $no\n );\n}", "title": "" }, { "docid": "7958ed5840e20facd165a70571f1a446", "score": "0.63460654", "text": "function PDF_delete_textflow($pdfdoc, $textflow){}", "title": "" }, { "docid": "1206997e4eb665c88a2e462f4c72bfe1", "score": "0.6331017", "text": "public function delete()\n\t{\n\t\tif (!$this->auth($_SESSION['leveluser'], 'perangkat_daerah', 'delete')) {\n\t\t\techo $this->pohtml->error();\n\t\t\texit;\n\t\t}\n\t\tif (!empty($_POST)) {\n\t\t\t$query = $this->podb->deleteFrom('perangkat_daerah')->where('id', $this->postring->valid($_POST['id'], 'sql'));\n\t\t\t$query->execute();\n\t\t\t$this->poflash->success('perangkat_daerah has been successfully deleted', 'admin.php?mod=perangkat_daerah');\n\t\t}\n\t}", "title": "" }, { "docid": "eb3388a82c124f4a4489672838ef92e8", "score": "0.6327207", "text": "public function delete(){\n\n \t\t/// Just to be really sure... \n \t\tif( !(CurrentUser::$admin || CurrentUser::$uploader) ){\n \t\t\treturn;\n \t\t}\n\n \t\tif(!is_array($_POST['del'])){\n\t \t\t$del \t=\tFile::r2a(stripslashes($_POST['del']));\n\t \t\treturn \tAdmin::rec_del($del);\n \t\t}else{\n \t\t\tforeach($_POST['del'] as $todel){\n\t\t \t\t$del \t=\tFile::r2a(stripslashes($todel));\n\t\t \t\tAdmin::rec_del($del);\n \t\t\t}\n \t\t}\n\t}", "title": "" }, { "docid": "da41497cc8eb96ae8773223cb8d0b6a2", "score": "0.63241374", "text": "function webfonts_selectors_delete_submit($form, &$form_state) {\n\t//get user details\n\t$wfs_details=getUnPass();\n\t$project_key = $form['projectkey']['#value'];\n\t$selector_id = $form_state[values][delta];\n\t//Fetching the xml data from WFS\n\t$apiurl = \"xml/Selectors/?wfspid=\".$project_key.\"&wfsselector_id=\".urlencode($selector_id);\n\t$wfs_api = new Services_WFS($wfs_details[1],$wfs_details[2],$apiurl);\n\t$xmlUrl = $wfs_api->deleteSelector();\n\t//Creating xml Instance\n\t$doc = new DOMDocument();\n\t$doc->loadXML($xmlUrl);\n\t$messages = $doc->getElementsByTagName( \"Message\" );\n\t$Message = $messages->item(0)->nodeValue;\n\n\t//fetching Json data\n\tif($Message==\"Success\"){\n\t\tdrupal_set_message(\"Selectors successfully deleted\");\n\t\t\n\t}else{\n\t\tdrupal_set_message($Message,\"error\");\n\t}\n\tdrupal_goto(\"admin/settings/webfonts/projectdetails/\".$form['projectid']['#value']);\n\tdie(); \n}", "title": "" }, { "docid": "9e5a43f0c5baff2d79dbe3048fb6ddea", "score": "0.6320731", "text": "function quicktabs_block_delete($form, $form_state, $qt) {\n $form['machine_name'] = array('#type' => 'hidden', '#value' => $qt->machine_name);\n $form['title'] = array('#type' => 'hidden', '#value' => $qt->title);\n return confirm_form($form, t('Are you sure you want to delete the quicktab block %title?', array('%title' => $qt->title)), 'admin/structure/quicktabs', '', t('Delete'), t('Cancel'));\n}", "title": "" }, { "docid": "3de14a614b90cfb1958ecb0237696582", "score": "0.63191015", "text": "function do_Del ($lang)\n {\n global $func, $DB, $conf, $vnT;\n $id = (int) $vnT->input['id'];\n $ext = $vnT->input[\"ext\"];\n\n if(empty($vnT->input['csrf_token']) || ($vnT->input['csrf_token'] != $_SESSION['vnt_csrf_token']) ) {\n $mess = $vnT->lang['err_csrf_token'] ;\n }else{\n\n $del = 0;\n $qr = \"\";\n if ($id != 0)\n {\n $ids = $id;\n }\n if (isset($vnT->input[\"del_id\"]))\n {\n $ids = implode(',', $vnT->input[\"del_id\"]);\n }\n $res = $DB->query(\"SELECT * FROM sitedoc WHERE doc_id IN (\" . $ids . \") \");\n if ($DB->num_rows($res))\n {\n while ($row = $DB->fetch_row($res))\n {\n $name = $row['doc_name'];\n $DB->query(\"DELETE FROM sitedoc WHERE doc_name ='\" . $name . \"' \");\n }\n $mess = $vnT->lang[\"del_success\"];\n } else\n {\n $mess = $vnT->lang[\"del_failt\"];\n }\n\n unset($_SESSION['vnt_csrf_token']);\n }\n\n $ext_page = str_replace(\"|\", \"&\", $ext);\n $url = $this->linkUrl . \"&{$ext_page}\";\n $func->html_redirect($url, $mess);\n }", "title": "" }, { "docid": "a6773252f1a99583a5470b56af72b4b8", "score": "0.631848", "text": "public function Delete()\n\t{\t$sql = 'DELETE FROM fptext WHERE fptlabel=\"' . $this->SQLSafe($this->name) . '\"';\n\t\tif ($result = $this->db->Query($sql))\n\t\t{\tif ($this->db->AffectedRows())\n\t\t\t{\t$this->Reset();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f58f016306320e5ed14cfda07869bf25", "score": "0.6313406", "text": "public function delete_textanywhere($id)\n\t{\n\n\t\t$this->load->model('textanywhere/textanywhere_model');\n\t\t$this->textanywhere_model->delete_textanywhere($id);\n\n\t\t$this->session->set_flashdata('type', '1');\n\t\t$this->session->set_flashdata('msg', '<strong>Entry removed</strong> ');\n\n\t\tredirect(\"admin/textanywhere\",\"refresh\");\n\n\n\t}", "title": "" }, { "docid": "eaa4008507a0dab581680b4514a2db81", "score": "0.6307972", "text": "function style_library_entity_delete_form_validate(&$form, &$form_state) {\n\n}", "title": "" }, { "docid": "8c1d41ab47e3235577a54c425d0a81ec", "score": "0.6290276", "text": "function thumbwhere_contentclassification_delete_form($form, &$form_state, $thumbwhere_contentclassification) {\n $form_state['thumbwhere_contentclassification'] = $thumbwhere_contentclassification;\n\n $form['#submit'][] = 'thumbwhere_contentclassification_delete_form_submit';\n\n $form = confirm_form($form,\n t('Are you sure you want to delete thumbwhere_contentclassification %name?', array('%name' => $thumbwhere_contentclassification->name)),\n 'admin/thumbwhere/thumbwhere_contentclassifications/thumbwhere_contentclassification',\n '<p>' . t('This action cannot be undone.') . '</p>',\n t('Delete'),\n t('Cancel'),\n 'confirm'\n );\n\n return $form;\n}", "title": "" }, { "docid": "bd20c860de15109a94b1beabd78111f4", "score": "0.6284966", "text": "function component_entity_form_submit_delete(&$form, &$form_state) {\n $form_state['redirect'] = 'admin/content/component_entities/component_entity/' . $form_state['component_entity']->wcid . '/delete';\n}", "title": "" }, { "docid": "db479c4d3193bd95efee1385600610c2", "score": "0.6279276", "text": "function confirmDelete()\n\t{\n\t\tglobal $ilCtrl, $lng, $ilUser;\n\n\t\t$cnt = 0;\n\t\tforeach($_POST[\"note\"] as $id)\n\t\t{\n\t\t\t$note = new ilNote($id);\n\t\t\tif ($this->checkDeletion($note))\n\t\t\t{\n\t\t\t\t$note->delete();\n\t\t\t\t$cnt++;\n\t\t\t}\n\t\t}\n\t\tif ($cnt > 1)\n\t\t{\n\t\t\t$ilCtrl->setParameter($this, \"note_mess\", \"ntsdel\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$ilCtrl->setParameter($this, \"note_mess\", \"ntdel\");\n\t\t}\n\t\t$ilCtrl->redirect($this, \"showNotes\", \"notes_top\", $this->ajax);\n\t}", "title": "" }, { "docid": "d9bf3321bf1cd15e154a17f14a2b80f6", "score": "0.627664", "text": "function quicktabs_block_delete_submit($form, &$form_state) {\n quicktabs_delete($form_state['values']['machine_name']);\n drupal_set_message(t('The Quicktabs instance %name has been removed.', array('%name' => $form_state['values']['title'])));\n cache_clear_all();\n $form_state['redirect'] = 'admin/structure/quicktabs';\n}", "title": "" }, { "docid": "55915e4cb3c3a445793f0b7caa1b9bbf", "score": "0.6256997", "text": "function itg_autosave_form_delete($form_id) {\n $itg_query = db_delete('itg_autosave_forms');\n $itg_query->condition('id', $form_id)\n ->execute();\n if ($itg_query) {\n drupal_goto('admin/config/administration/itg_autosave');\n }\n}", "title": "" }, { "docid": "77978f56035aac29c0dc6e3e268d466c", "score": "0.62359875", "text": "function thumbwhere_contentclassification_delete_form_wrapper($thumbwhere_contentclassification) {\n // Add the breadcrumb for the form's location.\n //thumbwhere_contentclassification_set_breadcrumb();\n return drupal_get_form('thumbwhere_contentclassification_delete_form', $thumbwhere_contentclassification);\n}", "title": "" }, { "docid": "24c642548d21cf2b79198d74418665a0", "score": "0.6230182", "text": "function deleteComment()\r\n\t{\r\n\t\tglobal $self, $T_PASSWORD, $plugins, $action;\r\n\r\n\t\t$ret = \"\";\r\n\r\n\t\tif($this->authentified() == false) {\r\n\t\t\t$ret .= '\r\n<form action=\"'.$self.'\" method=\"post\">\r\n<input type=\"hidden\" name=\"action\" value=\"admin-deletecomment\" />\r\n<input type=\"hidden\" name=\"page\" value=\"'.h($_REQUEST[\"page\"]).'\" />\r\n<input type=\"hidden\" name=\"filename\" value=\"'.h($_REQUEST[\"filename\"]).'\" />\r\n'.$T_PASSWORD.': <input type=\"password\" name=\"sc\" value=\"\" />\r\n<input type=\"submit\" value=\"Delete\" />\r\n</form>';\r\n\t\t\t$action = \"view-html\";\r\n\r\n\t\t\treturn $ret;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$filename = clear_path($_REQUEST[\"filename\"]);\r\n\t\t\t$page = clear_path($_REQUEST[\"page\"]);\r\n\r\n\t\t\tif(preg_match(\"/([0-9]{8}-[0-9]{4}-[0-9]{2})\\.txt/\", $filename, $m)) // is it really a comment file?\r\n\t\t\t\tunlink($plugins[\"Comments\"]->comments_dir . $page . \"/\" . $filename);\r\n\r\n\t\t\tHeader(\"Location:$self?page=\" . u($page) . \"#commentWrap\");\r\n\t\t\tdie();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f5d0e0375b27d1cd78b22ab32a00fa94", "score": "0.62257963", "text": "function delete() {\n $this->access_only_admin();\n $this->validate_submitted_data(array(\n \"id\" => \"numeric|required\"\n ));\n\n $id = $this->request->getPost('id');\n if (get_setting(\"default_template\") === $id) {\n app_redirect(\"forbidden\");\n }\n\n if ($this->request->getPost('undo')) {\n if ($this->Contract_templates_model->delete($id, true)) {\n echo json_encode(array(\"success\" => true, \"data\" => $this->_row_data($id), \"message\" => app_lang('record_undone')));\n } else {\n echo json_encode(array(\"success\" => false, app_lang('error_occurred')));\n }\n } else {\n if ($this->Contract_templates_model->delete($id)) {\n echo json_encode(array(\"success\" => true, 'message' => app_lang('record_deleted')));\n } else {\n echo json_encode(array(\"success\" => false, 'message' => app_lang('record_cannot_be_deleted')));\n }\n }\n }", "title": "" }, { "docid": "cbeec5ea29f5d0fcb81fbcbf26efdc35", "score": "0.6224036", "text": "function transaction_delete_form($data) {\n $transaction = new Transaction();\n $transaction->byID($data['id']);\n //$transaction->loadSingle('id='.$data['transaction_id']);\n if($transaction->affected>0){\n $frm = new DbForm();\n $frm->build('transaction_delete_form', $transaction, $_SESSION['log_access_level']);\n }else{\n return FALSE;\n }\n}", "title": "" }, { "docid": "176e76367df97edd27fe478aa96b2d94", "score": "0.62225187", "text": "function _content_admin_field_remove_submit($form_id, $form_values) {\n $type = content_types($form_values['type_name']);\n $field = $type['fields'][$form_values['field_name']];\n\n if ($type && $field && $form_values['confirm']) {\n include_once('./'. drupal_get_path('module', 'content') .'/content_crud.inc');\n content_field_instance_delete($form_values);\n\n drupal_set_message(t('Removed field %field from %type.', array('%field' => $field['widget']['label'], '%type' => $type['name'])));\n content_clear_type_cache();\n return 'admin/content/types/'. $type['url_str'] .'/fields';\n }\n}", "title": "" }, { "docid": "3200a20446342e5dfafe224348ff0460", "score": "0.6216995", "text": "function locale_translate_delete_form_submit($form, &$form_state) {\n db_delete('locales_source')\n ->condition('lid', $form_state['values']['lid'])\n ->execute();\n db_delete('locales_target')\n ->condition('lid', $form_state['values']['lid'])\n ->execute();\n // Force JavaScript translation file recreation for all languages.\n _locale_invalidate_js();\n cache_clear_all('locale:', 'cache', TRUE);\n drupal_set_message(t('The string has been removed.'));\n $form_state['redirect'] = 'admin/config/regional/translate/translate';\n}", "title": "" }, { "docid": "dc2a82b643d3cc2c369850b9c9b13d72", "score": "0.6210285", "text": "function gigya_delete_admin_form() {\n\n $form['gigya_delete_enable'] = ['#type' => 'checkbox',\n '#default_value' => variable_get('gigya_delete_enable', 0),\n '#title' => t('Enable')];\n\n $form['gigya_delete_mode'] = [\n '#type' => 'select',\n '#options' => [\n 'soft' => t('Deletion notification'),\n 'hard' => t('Full user deletion'),\n ],\n '#default_value' => variable_get('gigya_delete_mode', 'soft'),\n '#title' => t('Action'),\n '#description' => t('Full user deletion means all the data associated with this user will be permanently deleted from Drupal\\'s database.<br> \nDeletion notification means that the user is not deleted, but an indication is added that they were deleted from Gigya.<br> In this case, you should usually add custom code to handle the user data in Drupal\\'s database. For more information, see Gigya\\'s Developer Guide.')\n ];\n\n $form['gigya_delete_frequency'] = ['#type' => 'textfield',\n '#default_value' => variable_get('gigya_delete_frequency', 60),\n '#title' => t('Job frequency (minutes)')];\n\n $form['gigya_delete_success_email'] = ['#type' => 'textfield',\n '#default_value' => variable_get('gigya_delete_success_email', ''),\n '#title' => t('Email on success'),\n '#description' => t('A comma-separated list of email that will be notified when the job completes successfully')\n ];\n\n $form['gigya_delete_fail_email'] = ['#type' => 'textfield',\n '#default_value' => variable_get('gigya_delete_fail_email', ''),\n '#title' => t('Email on failure'),\n '#description' => t('A comma-separated list of email that will be notified when the job fails or completes with errors')\n ];\n\n $form['gigya_delete_s3_bucket'] = [\n '#type' => 'textfield',\n '#default_value' => variable_get('gigya_delete_s3_bucket', ''),\n '#title' => t('Bucket name')\n ];\n\n $form['gigya_delete_s3_access_key'] = [\n '#type' => 'textfield',\n '#default_value' => variable_get('gigya_delete_s3_access_key', ''),\n '#title' => t('Access key')\n ];\n\n $description = t('Specify the Gigya Secret (Base64 encoded) key for this domain');\n $secret_key = gigya_decrypt_value(variable_get('gigya_delete_s3_secret_key', ''));\n if (strlen($secret_key) > 0) {\n $description .= \", current key first and last letters are \" . substr($secret_key, 0, 2) . \"****\" . substr($secret_key, strlen($secret_key) - 2, 2);\n }\n\n $form['gigya_delete_s3_secret_key'] = [\n '#type' => 'password',\n '#default_value' => $secret_key,\n '#title' => t('Secret key'),\n '#description' => $description,\n ];\n\n $form['gigya_delete_s3_object_key_prefix'] = [\n '#type' => 'textfield',\n '#default_value' => variable_get('gigya_delete_s3_object_key_prefix', ''),\n '#title' => t('Object key prefix')\n ];\n\n\n return system_settings_form($form);\n}", "title": "" }, { "docid": "9234869f8d883dd4f527bdd2134c9bc3", "score": "0.61901164", "text": "function scholar_pages_category_delete_form_submit($form, &$form_state) // {{{\n{\n global $language;\n\n $record = $form['#record'];\n\n if ($record) {\n scholar_delete_record('categories', $record);\n drupal_set_message(t('Category %name deleted successfully', array('%name' => $record->names[$language->language])));\n drupal_goto(scholar_path(\"categories.{$record->table_name}.{$record->subtype}\"));\n }\n}", "title": "" }, { "docid": "10fd547d457d35f4647894f3a7d4eed9", "score": "0.6187981", "text": "function DeleteTextBoxCon($db, $mysqli)\n{\n $sql=\"Delete from FormResults\";\n $mysqli->query($sql);\n \n $sql=\"Delete from RadioOption\";\n $mysqli->query($sql);\n \n \n $sql=\"Delete from TextBox\";\n $mysqli->query($sql);\n}", "title": "" }, { "docid": "df5004c15cb2404c5a7cd754780b2c02", "score": "0.61849946", "text": "function Delete_Selected()\n {\n //if ( $form_action == \"list\" && $this->FG_FILTER_SEARCH_FORM)\n {\n $instance_table = new Table($this -> FG_TABLE_NAME, $this -> FG_COL_QUERY);\n\t\t\t$result = $instance_table -> Delete_Selected ($this -> DBHandle, $this -> FG_TABLE_CLAUSE, $this->FG_ORDER, $this->FG_SENS, null, null,\n\t\t\t \t\t\t\t\t $this -> FG_LIMITE_DISPLAY, $this -> CV_CURRENT_PAGE * $this -> FG_LIMITE_DISPLAY, $this -> SQL_GROUP);\n }\n }", "title": "" }, { "docid": "c8dbffc843359b97bd0d9e9cf56f43c0", "score": "0.6171491", "text": "function thumbwhere_contentclassification_delete_form_submit($form, &$form_state) {\n $thumbwhere_contentclassification = $form_state['thumbwhere_contentclassification'];\n\n thumbwhere_contentclassification_delete($thumbwhere_contentclassification);\n\n drupal_set_message(t('The thumbwhere_contentclassification %name has been deleted.', array('%name' => $thumbwhere_contentclassification->name)));\n watchdog('thumbwhere_contentclassification', 'Deleted thumbwhere_contentclassification %name.', array('%name' => $thumbwhere_contentclassification->name));\n\n $form_state['redirect'] = 'admin/thumbwhere/thumbwhere_contentclassifications';\n}", "title": "" }, { "docid": "fda386009a58949ab653b2d0d845cb0a", "score": "0.6169569", "text": "public function actionTopicDelete(){\n\t\t$form = $_POST;\n\t\t$container = $this->getContext();\n\t\t$actionModel = new \\Models\\ActionModel($container);\n\t\t$actionModel->deleteTopic($form['topicId']);\n\t\t$this->redirect('actionPages:topics', array('id' => $this->getParam('id')));\n\t}", "title": "" }, { "docid": "36e1499cc908d491338be64e7ee19e6a", "score": "0.61606073", "text": "public function delete(){\r\n echo $this->del(set_value('id'));\r\n }", "title": "" }, { "docid": "f03b8d98d26ad07e4c15f121fd649f26", "score": "0.6154791", "text": "function thumbwhere_mediaitem_delete_form($form, &$form_state, $thumbwhere_mediaitem) {\n $form_state['thumbwhere_mediaitem'] = $thumbwhere_mediaitem;\n\n $form['#submit'][] = 'thumbwhere_mediaitem_delete_form_submit';\n\n $form = confirm_form($form,\n t('Are you sure you want to delete thumbwhere_mediaitem %name?', array('%name' => $thumbwhere_mediaitem->title)),\n 'admin/thumbwhere/thumbwhere_mediaitems/thumbwhere_mediaitem',\n '<p>' . t('This action cannot be undone.') . '</p>',\n t('Delete'),\n t('Cancel'),\n 'confirm'\n );\n\n return $form;\n}", "title": "" }, { "docid": "3139ad6f2a816aaa8d44f4eaa5df8383", "score": "0.6141679", "text": "public function processDeleteForm(EntityInterface $entity);", "title": "" }, { "docid": "dbb37ab5d765a7f47b70424ce177f86e", "score": "0.6140863", "text": "public function delete_field( $field ) {}", "title": "" }, { "docid": "dc24ead3f8e44bc2209be248f7b6e21a", "score": "0.6139433", "text": "function cancelDelete()\n\t{\n\t\treturn $this->getNotesHTML();\n\t}", "title": "" }, { "docid": "93c977f0f01ddebe166c5206b722383e", "score": "0.6132872", "text": "function delete_appointment_form_process() {\n global $wpdb;\n\n $actualID = $_POST['delete_id'];\n $delete = $wpdb->delete('programari', array('id_prog' => $actualID));\n\n if ($delete != false) {\n echo (\"success\");\n } else {\n echo (\"Database delete failed. Please try again.\");\n }\n\n wp_die();\n}", "title": "" }, { "docid": "046ffd4ef9694fa953c167c6ded1a109", "score": "0.61294377", "text": "public function deleteSearch()\n {\n\t\t\techo \"</head>\";\n echo \"<body>\";\n\t\t\techo \"<h1>Please select sales associate to Delete</h1>\";\n echo \"<form method=POST>\";\n\t\t\techo \"<input type=text name=name required>\";\n\t\t\techo \"<button type=submit name='Dsearch'>Find</button>\\n\";\n\t\t\techo \"</form>\";\n }", "title": "" }, { "docid": "91a7a37ca4c61daaf49d05b8ca4a3585", "score": "0.6124279", "text": "function delete( ) {\n\t\tglobal $Cmtys;\n\t\tglobal $HDUP;\n\t\tglobal $G_DEBUG;\n\n\t\tif (isset($_GET['delete']) && is_numeric($_GET['delete'])) {\n\t\t\t$this->setId($_GET['delete']);\n\t\t} \n\n\t\tif (!isset($_GET['confirm_del'])) { \n\t\t\t$date = $this->Date->toString( );\n\t\t\t$title = format_html( $this->title, true );\n\t\t\techo <<<EOHTML\n\t\t\t\t<div class=\"agreement\">\n\t\t\t\t\t<h2>Are you sure you want to delete this entry?</h2>\n\t\t\t\t\t<h1 class=\"agrm\">{$title} agreement: {$date}</h1>\n\t\t\t\t</div>\n\n\t\t\t\t<form action=\"?\" method=\"get\">\n\t\t\t\t<input type=\"hidden\" name=\"id\" value=\"admin\">\n\t\t\t\t<input type=\"hidden\" name=\"doctype\" value=\"agreement\">\n\t\t\t\t<input type=\"hidden\" name=\"delete\" value=\"{$this->id}\">\n\t\t\t\t<div align=\"right\">\n\t\t\t\t\t<a href=\"?id=admin&amp;doctype=agreement&amp;delete={$this->id}&amp;confirm_del=1\">\n\t\t\t\t\t\t<img class=\"tango\" src=\"display/images/tango/32x32/actions/edit-delete.png\" alt=\"delete\">\n\t\t\t\t\t\tconfirm delete</a>\n\t\t\t\t</div>\n\t\t\t\t</form>\nEOHTML;\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$HDUP['table'] = 'agreements';\n\t\t$success = my_delete( $G_DEBUG, $HDUP, 'id', $this->id );\n\t\tif ( !$success ) {\n\t\t\techo '<div class=\"error\">Error: Item was not deleted</div>' . \"\\n\";\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// also delete any related previous versions\n\t\t$HDUP['table'] = 'agreements_versions';\n\t\t$success = my_delete( $G_DEBUG, $HDUP, 'agr_id', $this->id );\n\t\tif ( !$success ) {\n\t\t\techo <<<EOHTML\n\t\t\t\t<div class=\"error\">Error: Prior versions were not deleted</div>\nEOHTML;\n\t\t\treturn FALSE;\n\t\t}\n\n\t\techo \"<p>Item deleted</p>\\n\";\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "c24249cba2e2b3a9113baf3bde8cc096", "score": "0.6122403", "text": "public function deleteField($fieldName){}", "title": "" }, { "docid": "c24249cba2e2b3a9113baf3bde8cc096", "score": "0.61216253", "text": "public function deleteField($fieldName){}", "title": "" }, { "docid": "10795a0d79e92f1cce2fb03705f2002f", "score": "0.61071366", "text": "public function deleteAction()\n\t{\n\t\t$deleted = false;\n\t\t$message = 'Une erreur est survenue. Votre formation n\\'a pas &eacute;t&eacute; supprim&eacute;.';\n\n\t\t$entity = Curriculum::find( (int) $this->getRequest()->post('id') );\n\t\t$deleted = $entity->delete();\n\n\t\tif ( $deleted ) {\n\t\t\t$message = 'Votre formation a correctement &eacute;t&eacute; supprim&eacute;.';\n\t\t}\n\n\t\t$this->render( View::make( 'curriculums/index' , array(\n\t\t\t'status' => $deleted,\n\t\t\t'message' => $message,\n\t\t\t'title' => 'Mes Formations',\n\t\t\t'entities' => Curriculum::all()\n\t\t) ) );\n\t}", "title": "" }, { "docid": "58b8c2b1818be67f1925028abb7dd0e8", "score": "0.61018836", "text": "function remove3() {\n\t$id = intval( $_GET[\"id\"] );\n//delete the database record\n$q1 = \"delete from qlns_formwritten where for_id='$id' \";\n@mysql_query($q1) or die(mysql_error());\n@unlink(\"../images/news/\".$_GET[file]);\n\n\tredirect(\"formwritten.php?dialoose=select\");\n\n}", "title": "" }, { "docid": "f6bf4c9023f2c1bce2f89260271501e3", "score": "0.609947", "text": "function audio_entity_delete_confirm($form, &$form_state, $audio_entity) {\n $form['aid'] = array('#type' => 'value', '#value' => $audio_entity->aid);\n return confirm_form($form,\n t('Are you sure you want to delete %title?', array(\n '%title' => $audio_entity->title,\n )),\n 'admin/structure/audio_entity',\n t('This action cannot be undone.'),\n t('Delete'),\n t('Cancel')\n );\n}", "title": "" }, { "docid": "e67b3f1a8f614d612c916d1a98f40163", "score": "0.60906446", "text": "public function submitDelete($Dsa)\n {\n //gets a row from the controller containing the sa\n $associate=$this->controller->getSA($Dsa);\n //html to the screen\n echo \"\\t\\t<title>Conferm Delete</title>\\r\\n\";\n echo \"\\t</head>\\r\\n\";\n echo \"\\t<body>\\r\\n\";\n\t\t\techo \"\\t\\t<form method=post>\\r\\n\";\n echo \"\\t\\t\\tName<br>\\r\\n\";\n echo \"\\t\\t\\t<input type='text' readonly name='name' value='$associate[name]'><br>\\r\\n\";\n echo \"\\t\\t\\tAddress<br>\\r\\n\";\n\t\t\techo \"\\t\\t\\t<input type='text' readonly name='address' value='$associate[address]'><br>\";\n echo \"\\t\\t\\t<button type=submit name='DELEATNOW'>Delete</button>\\r\\n\";\n echo \"\\t\\t</form>\\r\\n\";\n\t\t\t\n }", "title": "" }, { "docid": "f13c6b4efaa8efdcf783badcf0c96318", "score": "0.6084836", "text": "function thumbwhere_mediaitem_form_submit_delete(&$form, &$form_state) {\n $form_state['redirect'] = 'admin/thumbwhere/thumbwhere_mediaitems/thumbwhere_mediaitem/' . $form_state['thumbwhere_mediaitem']->pk_mediaitem . '/delete';\n}", "title": "" }, { "docid": "ffe9d697533dd497c4b97a901a523350", "score": "0.607814", "text": "function so_forms_delete_group($id) {\r\n\r\n db_query(\"DELETE FROM {so_forms_fields} WHERE id=?\", array($id));\r\n db_query(\"DELETE FROM {so_forms_fields_displays} WHERE fid=?\", array($id));\r\n db_query(\"UPDATE {so_forms_fields_displays} SET gid='' WHERE gid=?\", array($id));\r\n\r\n drupal_set_message('Group has been deleted');\r\n drupal_goto($_GET['destination']);\r\n}", "title": "" }, { "docid": "d58f8d7e4325d2f7975a7622b69fb0df", "score": "0.6067781", "text": "public function deleteForm($row, $href, $label, $title, $icon, $attributes)\r\r\n\t{\r\r\n\t\tif (!$this->User->isAdmin)\r\r\n\t\t{\r\r\n\t\t\treturn '';\r\r\n\t\t}\r\r\n\r\r\n\t\treturn '<a href=\"'.$this->addToUrl($href.'&amp;id='.$row['id']).'\" title=\"'.specialchars($title).'\"'.$attributes.'>'.$this->generateImage($icon, $label).'</a> ';\r\r\n\t}", "title": "" }, { "docid": "ffad69609d07ddcfa1fdebd39a9cdcee", "score": "0.60655445", "text": "public function deletenotes() {\n\n if ( isset( $_POST['jobNoteId'] ) ) {\n // Delete data row on job checklist\n $this->jobnote_model->delete( $_POST['jobNoteId'] );\n } else {\n echo \"error\";\n }\n }", "title": "" }, { "docid": "78a1fe7d616653ba06a7a8912090b559", "score": "0.6064188", "text": "public function deleteTextFieldFromProduct($id_product, $index) {\r\n\t\tglobal $cookie;\r\n\t\t\r\n\t\tunset ( $cookie->{'textFields_' . ( int ) ($id_product) . '_' . ( int ) ($index)} );\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "0ed10c02150354cbafef56136c47179d", "score": "0.6051898", "text": "function deleteButton()\n\t{\n\t\t$this->returnTo(\"deleteConfirm\");\n\t\tCommon::confirm(\"User deletion\",\n\t\t\t\"Are you sure to delete the user <p><center><b>\"\n\t\t\t. Html::text($this->name->getValue())\n\t\t\t. \"</b> ?</center>\", \"Cancel\", \"Delete\");\n\t}", "title": "" }, { "docid": "9ba4b6dbaf2cce3373ce59ef5a5867a2", "score": "0.6051296", "text": "public function confirmDelete( );", "title": "" }, { "docid": "bc2ee54f595cc2a439e01742b1b5bed9", "score": "0.6050315", "text": "function thumbwhere_mediaitem_delete_form_wrapper($thumbwhere_mediaitem) {\n // Add the breadcrumb for the form's location.\n //thumbwhere_mediaitem_set_breadcrumb();\n return drupal_get_form('thumbwhere_mediaitem_delete_form', $thumbwhere_mediaitem);\n}", "title": "" }, { "docid": "70661b0495469328b6ee10d0374c3724", "score": "0.60484034", "text": "public function action_clientDelete()\n {\n\t\tif ( $this->validateEdit() )\n {\n\t\t\t\n\t\t\ttry\n {\n\t\t\t\t// 2. usunięcie rekordu\n\t\t\t\tApp::getDB()->delete(\"terminarz\",[\n\t\t\t\t\t\"clientid\" => $this->form->id\n\t\t\t\t]);\n\t\t\t\tUtils::addInfoMessage('Pomyślnie usunięto rekord');\n\t\t\t} catch (\\PDOException $e)\n {\n\t\t\t\tUtils::addErrorMessage('Wystąpił błąd podczas usuwania rekordu');\n\t\t\t\tif (App::getConf()->debug) \n Utils::addErrorMessage($e->getMessage());\t\t\t\n\t\t\t}\t\n\t\t}\n\t\t// 3. Przekierowanie na stronę listy produktow\n\t\tApp::getRouter()->forwardTo('schedulesShow');\t\t\n\t}", "title": "" }, { "docid": "fa2673a12ace3db0a0c7ab679226dd35", "score": "0.6043949", "text": "public function delete() {\n\t\t$this->autoRender = false;\n\t\t$id = $this->request->params['named']['id'];\n\t\t$this->Message->delete($id);\n\t}", "title": "" }, { "docid": "60fc80b5b5221a88b2b8b9dbee765c8c", "score": "0.6040888", "text": "public function Delete()\n\t{\n\t\t$this->M_permohonancuti->deleteCuti($_POST['id_cuti']);\n\t}", "title": "" }, { "docid": "b8b86a0d6f99bd84730af77cc38e964b", "score": "0.60375774", "text": "function deletehfadocument()\n\t\t{\n\t\t\tif(checkLogin())\n\t\t\t{\n\t\t\t\tif(isset($_POST['id']))\n\t\t\t\t{\n\t\t\t\t\t$this->hfa_model->deletehfadocument($_POST['id']);\n\t\t\t\t\techo \"done\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\techo \"LO\";\n\t\t}", "title": "" }, { "docid": "2a34bae9ca5059653002e0afcbe3da5e", "score": "0.6037032", "text": "public function actionDelete()\n\t{\n\t\t$this->loadModel($_POST[\"id\"])->delete();\n\n\t}", "title": "" }, { "docid": "8b3118dcd78e7d9a388e2179cfc56ff4", "score": "0.6034267", "text": "function timetracking_delete_form_submit($form, &$form_state) {\n $timetracking = $form_state['timetracking'];\n\n $result = timetracking_delete($timetracking);\n \n drupal_set_message(t('The timetracking %subject has been deleted.', array('%subject' => $timetracking->defaultLabel())));\n watchdog('timetracking', 'Deleted timetracking %subject.', array('%subject' => $timetracking->defaultLabel()));\n \n $form_state['redirect'] = '';\n}", "title": "" }, { "docid": "ea5f5389bd9a03adbbeded22b94051c9", "score": "0.60285556", "text": "public function indexDelete()\n\t{\n\t\t$result = $this->noteModel->deleteNote($this->url->post('id'));\n\t\t$this->session->data['message'] = array('alert' => 'success', 'value' => 'Note deleted successfully.');\n\t\t$this->url->redirect('notes');\n\t}", "title": "" }, { "docid": "46837078f4f366b214c73d490b72576d", "score": "0.60229427", "text": "private function createDeleteForm()\n {\n return $this->createFormBuilder()\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "d0610c90ecce77ef5185ae0e161ebd0e", "score": "0.60223097", "text": "abstract public function actionDelete();", "title": "" }, { "docid": "f9aea5e6776234e7fd77f7814e7e2bf4", "score": "0.6018571", "text": "function audio_entity_delete_confirm_submit($form, &$form_state) {\n if ($form_state['values']['confirm']) {\n $audio_entity = audio_entity_load($form_state['values']['aid']);\n audio_entity_delete($audio_entity);\n drupal_set_message(t('%title has been deleted.', array(\n '%title' => $audio_entity->title,\n )));\n }\n $form_state['redirect'] = 'admin/structure/audio_entity';\n}", "title": "" }, { "docid": "efdcd0fbc5516d9d13aab9811c006e59", "score": "0.60185546", "text": "public function delete(){\n if (!empty($_POST)) {\n $result = $this->Article->delete($_POST['id']);\n return $this->index();\n }\n }", "title": "" }, { "docid": "75dbcc8931c15fe4da090c85b5ecd14d", "score": "0.60174686", "text": "function remove2() {\n\n//delete the database record\n$q1 = \"delete from qlns_formwritten where for_id = '$_GET[id]' \";\n@mysql_query($q1) or die(mysql_error());\n\n//delete the file\n@unlink(\"../images/news/\".$_GET[file]);\n\n\tredirect(\"formwritten.php?dialoose=validate\");\n\n}", "title": "" }, { "docid": "015c8f6497d81dcf94f16319320315fe", "score": "0.60165346", "text": "function remove() {\n\n//delete the database record\n$q1 = \"delete from qlns_formwritten where for_id = '$_GET[id]' \";\n@mysql_query($q1) or die(mysql_error());\n\n//delete the file\n@unlink(\"../images/news/\".$_GET[file]);\n\n\tredirect(\"\".getenv(\"HTTP_REFERER\").\"\");\n\n}", "title": "" }, { "docid": "e3eacfba6edb9d06d58334b01c4a7be9", "score": "0.6011901", "text": "public function delete() {\n \t// entitą da eliminare\n \t$leakedParams = $this->getParamsUnsetRouting();\n \t$ntt = $leakedParams['crudNtt'];\n\t\t// qui va chiamata la funzione per il controllo input\n\t\t$cecked_input = $leakedParams;\n\t\t// elimino\n $deletedOk = $this->deleteSingleNtt($ntt, $cecked_input);\n\t\t\tif($deletedOk === false) {\n\t\t\t\t// eliminazione fallita\n\t\t\t} else {\n\t\t\t\t// eliminazione riuscita\n\t\t\t\t$this->idDeleted = $this->instancedObj->id_performed;\n\t\t\t\t// Next page + id entitą inserita (la prima per convenzione)\n\t\t\t\t$fwParams = $_SESSION['nextOkPage']\n\t\t\t\t\t\t\t\t+ array(\t'ntt' => $ntt,\n\t\t\t\t\t\t\t\t\t\t\t'idNtt' => $this->idDeleted);\n\t\t\t\t// adesso usa la view!\n\t\t\t\t$this->forward(\"getPage\",\"Page\", null, $fwParams);\n\t\t\t}\n }", "title": "" }, { "docid": "8358d48a9e28373dc6f0617394765aef", "score": "0.6008661", "text": "public function process_delete() {\n\n\t\t// Check for run switch.\n\t\tif ( empty( $_GET['action'] ) || empty( $_GET['form_id'] ) || 'deleteall' !== $_GET['action'] ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Security check.\n\t\tif ( empty( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], 'wpforms_entry_list_deleteall' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\twpforms()->entry->delete_by( 'form_id', absint( $_GET['form_id'] ) );\n\t\twpforms()->entry_meta->delete_by( 'form_id', absint( $_GET['form_id'] ) );\n\n\t\t$this->alerts[] = array(\n\t\t\t'type' => 'success',\n\t\t\t'message' => esc_html__( 'All entries for the currently selected form were successfully deleted.', 'wpforms' ),\n\t\t\t'dismiss' => true,\n\t\t);\n\t}", "title": "" } ]
903e33307b953f04a77fe304521fd27e
get filtered orders for this seller
[ { "docid": "abc415ecdf6a2946ff9fc1b962ee596f", "score": "0.67161715", "text": "public function sellerOrderListFiltered(Request $request){\n $orders = \\App::call('App\\Http\\Controllers\\OrderController@viewBySeller', [$request->user()->seller->id]);\n return view('seller.order-list-data', compact('orders'));\n }", "title": "" } ]
[ { "docid": "c7da32ac106594c2869beb826b3beee4", "score": "0.65357584", "text": "public function getOrders($filter = array()) {\n return $this->getTable()->getOrders();\n }", "title": "" }, { "docid": "0f78ffb792d0e3cea51d6eb6ab4ad131", "score": "0.65243787", "text": "public function getFilteredOrderCollection()\n {\n $enabledStoreIds = array();\n foreach (Mage::app()->getStores(true, true) as $store) {\n if (!$this->config->isPaymentCancellationEnabled($store->getId())) {\n continue;\n }\n\n $enabledStoreIds[] = $store->getId();\n }\n\n /** @var Mage_Sales_Model_Resource_Order_Collection $orderCollection */\n $orderCollection = Mage::getModel('sales/order')->getCollection();\n $orderCollection\n ->addAttributeToSelect('*')\n ->addFieldToFilter('store_id', array('in' => $enabledStoreIds))\n ->addFieldToFilter('status', array('eq' => Mage_Sales_Model_Order::STATE_PENDING_PAYMENT));\n $orderCollection\n ->getSelect()\n ->join(\n array(\"payment\" => \"sales_flat_order_payment\"),\n 'main_table.entity_id = payment.parent_id',\n array('payment_method' => 'payment.method')\n );\n $orderCollection->addFieldToFilter('payment.method', array(\"like\" => '%ops_%'));\n\n return $orderCollection;\n }", "title": "" }, { "docid": "b4a8bb258851135b05191cb38c6b3c5a", "score": "0.64906013", "text": "function getSellerOrders($params = array()){\n\t\tMpApi::sleep(); \n\t\treturn json_decode($this->callCurl(MpApi::GET , '/multivendor/seller/'.(int)$params['seller_id'].'/orders.json',$params),true);\n\t}", "title": "" }, { "docid": "5e9b51deb5bf209dfa6e9010617e8f23", "score": "0.6315127", "text": "function getOrders() {\n\t\t$orders = Mage::getModel ( 'sales/order' )->getCollection ()->addAttributeToSelect ( \"*\" )->addAttributeToFilter ( 'status', array ('complete') );\n\t\t$orders_data = $this->preapreOrdersTosend ( $orders );\n\t\treturn $orders_data;\n\t}", "title": "" }, { "docid": "2ce674a4c879e58dd8c9fac51cb06f45", "score": "0.6209283", "text": "protected function getVendorOrders() {\n\n\t\t$this->load->model('sale/vdi_order');\n\t\t$data = array();\n\n if (isset($this->request->request['filter_order_status'])) {\n //check input - should be list of integers\n if (1 === preg_match('/^[0-9,\\s]+$/',\n $this->request->request['filter_order_status'])) {\n $data['filter_order_status'] = $this->request->request['filter_order_status'];\n }\n }\n\n $result = array();\n $orderCount = $this->model_sale_vdi_order->getTotalOrders($data);\n $result['total_order_count'] = $orderCount;\n\n if (!isset($this->request->request['metaonly']) ||\n (\"true\" !== $this->request->request['metaonly'])) {\n $orders = $this->model_sale_vdi_order->getOrdersByOrderProductStatus($data);\n $result['orders'] = $orders;\n }\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "5eb7af6847cd922b7eb5fa8e559f4c76", "score": "0.60501176", "text": "public function getOrders()\n {\n return $this->orders;\n }", "title": "" }, { "docid": "0a819a61973311c66a88a4b8fca272dd", "score": "0.5947933", "text": "private function GetOrders()\n\t{\t$orders = array();\n\t\t$where = array();\n\t\t\n\t\tif ($this->startdate)\n\t\t{\t$where[] = 'orderdate>=\"' . $this->startdate . ' 00:00:00\"';\n\t\t}\n\t\tif ($this->enddate)\n\t\t{\t$where[] = 'orderdate<=\"' . $this->enddate . ' 23:59:59\"';\n\t\t}\n\t\tif (!$this->showunpaid)\n\t\t{\t$where[] = 'NOT paiddate=\"0000-00-00 00:00:00\"';\n\t\t}\n\t\t\n\t\t$sql = 'SELECT * FROM storeorders';\n\t\tif ($wstr = implode(' AND ', $where))\n\t\t{\t$sql .= ' WHERE ' . $wstr;\n\t\t}\n\t\t$sql .= ' ORDER BY orderdate DESC';\n\t\t\n\t\tif ($result = $this->db->Query($sql))\n\t\t{\twhile ($row = $this->db->FetchArray($result))\n\t\t\t{\t$orders[$row['id']] = $row;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $orders;\n\t}", "title": "" }, { "docid": "e5c6ba1a822cce547eb451f75765e8bc", "score": "0.5896069", "text": "public function getOrders(){\n if ( is_null($this->orders) ){\n $db = $this->getTable()->getAdapter();\n $sid = $this->getCourier()->getId();\n\n //get all orders of courier service\n $sql = sprintf(\"select id from orders\n where (billCourier=0 or billCourier is NULL)\n and courierId = %d\",$sid);\n \n $rows = $db->fetchAll($sql);\n $orders = new SplObjectStorage();\n foreach($rows as $o){\n try{\n $order = new Yourdelivery_Model_Order($o['id']);\n\n if ( $order->getMode() == \"great\" && $order->getState() != 2 &&\n //check for great which do not provide pfand\n //kreiner, gela\n !in_array($order->getCourier()->getId(),array(12123,12115)) ){\n continue;\n }\n\n if ( $order->getState() < 0 ){\n continue;\n }\n\n if ( $order->getDeliverTime() > $this->until ){\n continue;\n }\n\n $orders->attach($order);\n }\n catch ( Yourdelivery_Exception_Database_Inconsistency $e ){\n\n }\n }\n $this->orders = $orders;\n }\n return $this->orders;\n }", "title": "" }, { "docid": "3d96db48d34760356ea421ccd4c0cf27", "score": "0.58843195", "text": "public function getAllPartnerOrders() {\n\n $query = $this->db->prepare(\"SELECT * FROM `orders` WHERE `order_partner_id` <> 28\");\n\n try {\n\n $query->execute();\n\n $result = $query->fetchAll();\n return $result;\n\n } catch (PDOException $e) {\n die($e->getMessage());\n }\n }", "title": "" }, { "docid": "3168e0472e2d4ba1f15172b2f335116d", "score": "0.58653265", "text": "public function get_all_my_orders()\n {\n return $this->_request('allmyorders');\n }", "title": "" }, { "docid": "31a877badd3f15ed34949027a5ce4172", "score": "0.5844211", "text": "public static function buyerFilterSearch()\n {\n\n $buyerfilters = DB::table('intra_hp_buyer_posts')\n ->select('intra_hp_buyer_posts.*')\n ->where('is_active', 1)\n ->get();\n\n return $buyerfilters;\n\n }", "title": "" }, { "docid": "000d0f8140809d69250f6ed987ea2e8c", "score": "0.5841867", "text": "function getAllOrders()\n {\n $dataService = new OrderDataService();\n\n return $dataService->getAllOrders();\n }", "title": "" }, { "docid": "bb678f39178e99b5b866f6230341c107", "score": "0.5812173", "text": "public function retrieveOrders() {\r\n $client = new Client(\r\n str_replace('/public', '', get_site_url()),\r\n // get_site_url(),\r\n $this->consumer_key,\r\n $this->consumer_secret,\r\n [\r\n 'wp_api' => true,\r\n 'version' => 'wc/v3',\r\n 'query_string_auth' => true,\r\n 'timeout' => PADBSYNC_CURL_TIMEOUT\r\n ]\r\n );\r\n \r\n global $wpdb;\r\n \r\n $query = \"SELECT ID FROM {$wpdb->prefix}posts WHERE profaktura_status = %d AND post_type = %s ORDER BY post_date DESC\";\r\n \r\n $sql = $wpdb->prepare($query, [0, 'shop_order']);\r\n \r\n $dbOrdersProStatZero = $wpdb->get_results($sql);\r\n \r\n $allOrders = $client->get('orders');\r\n \r\n $orders = [];\r\n \r\n if (count($allOrders) > 0 && count($dbOrdersProStatZero) > 0) {\r\n foreach ($allOrders as $o) {\r\n foreach ($dbOrdersProStatZero as $d) {\r\n if ($o->id == $d->ID) {\r\n $orders[] = $o;\r\n continue;\r\n }\r\n }\r\n } \r\n }\r\n \r\n if (count($orders) < 1) {\r\n return new WP_REST_Response(['message' => 'No orders found!']);\r\n }\r\n \r\n return new WP_REST_Response($orders);\r\n }", "title": "" }, { "docid": "34e6ea01c197711266b4be03f1764bb8", "score": "0.57656115", "text": "public function get_orders_user($seller)\n\t{\n\t\t$conn = $this->inv_conn();\n\t\t$qry_all = \"SELECT `ord_id`,`ord_ref_item`,`ord_quant`,`buyer_nm`,`buyer_add`, `buyer_apt`, `ord_city`, `ord_zip`, `ord_state`,`ord_country`,`ord_date`,`ord_observ`,`seller`,`ord_track`\n\t\t\t\t\tFROM `order` WHERE `seller` = '$seller'\";\n\t\t$result = mysqli_query($conn, $qry_all);\n\t\tmysqli_close($conn);\n\t\treturn $result;\n\n\t}", "title": "" }, { "docid": "8b3fe31e7247958eb4ba9daa8b080331", "score": "0.5760543", "text": "public function getOrdersData() {\n $store = Auth::user()->stores()->first();\n $store_ids = [];\n\n if (!$store) {\n $request->session()->flash('alert-danger', 'There is no store associated with this account.');\n } else {\n $stores = Auth::user()->stores()->get();\n foreach ($stores as $s) {\n $store_ids[] = $s->id;\n }\n }\n\n $query = Order::select('orders.*');\n $query->join('order_status', 'orders.order_status_id', '=', 'order_status.id');\n $query->leftJoin('order_items', 'orders.id', '=', 'order_items.orders_id');\n $query->leftJoin('products', 'order_items.products_id', '=', 'products.id');\n // $query->join('users', 'orders.users_id', '=', 'users.id');\n $query->groupBy('orders.id');\n\n // only show orders related to one of user's stores\n $query = $query->whereIn('orders.store_id', $store_ids);\n\n $query = $this->customFilters($query);\n // tableCustomFilter\n $orders = $this->tablePaginate($query);\n\n $form_body = view('backoffice.orders.tables.orders-list', ['orders' => $orders])->render();\n $form_pagination = view('backoffice.orders.tables.orders-list-pagination', ['orders' => $orders])->render();\n\n $form_data = [ 'form_body' => $form_body, 'form_pagination' => $form_pagination ];\n\n return $form_data;\n }", "title": "" }, { "docid": "cd88a98daa81f5b997ed7c64bf99f779", "score": "0.5735628", "text": "public function getOrdersForCustomer($customerId);", "title": "" }, { "docid": "09bd0756b10ec6d8818958a5f111863d", "score": "0.573118", "text": "public function getSellerOffers($sellerId);", "title": "" }, { "docid": "ffc23b2db1a7feb80fc0cad21e699fd5", "score": "0.570871", "text": "public function AllOrders_get() {\n extract($_GET);\n $result = $this->feeds_model->AllOrders($per_page, $offset);\n return $this->response($result);\n }", "title": "" }, { "docid": "26574403eb77b88916a893d18186ff5b", "score": "0.5703481", "text": "public function findAllOrders()\n {\n return $this->createQueryBuilder('o')\n ->orderBy('o.createdDate' , 'DESC');\n }", "title": "" }, { "docid": "57f51121926b500db0803a564757ddeb", "score": "0.57007146", "text": "public function getOrders()\n {\n $response = $this->orderDesk->get( \"orders\" );\n $orders = $response[ \"orders\" ];\n $values = [];\n\n if (!empty($orders)) {\n foreach ( $orders as $order ) {\n\n $value = [\n $order[\"shipping\"][\"first_name\"],\n $order[\"shipping\"][\"last_name\"],\n $order[\"email\"],\n $order[\"shipping_method\"],\n $order[\"payment_type\"],\n $order[\"order_total\"]\n ];\n \n array_push( $values, $value );\n }\n \n $this->updateGoogleSheets( $values );\n } else {\n return $response['message'];\n }\n }", "title": "" }, { "docid": "0db20fc69bde23fe097e3126d5cd89c3", "score": "0.5687587", "text": "public function getAllOwnOrders() {\n\n $query = $this->db->prepare(\"SELECT * FROM `orders` WHERE `order_partner_id` = 28\");\n\n try {\n\n $query->execute();\n\n $result = $query->fetchAll();\n return $result;\n\n } catch (PDOException $e) {\n die($e->getMessage());\n }\n }", "title": "" }, { "docid": "a3182a2de9c3663c9a9c30083b8576c2", "score": "0.5678886", "text": "private function getCustomerOrders()\n {\n $order = \\Magento\\Framework\\App\\ObjectManager::getInstance()->get(\\Magento\\Sales\\Model\\OrderFactory::class);\n $orderCollection = $order->create()->getCollection()->addFieldToFilter(\n 'customer_id', $this->getCustomerId()\n )->addFieldToFilter(\n 'status', \\Magento\\Sales\\Model\\Order::STATE_COMPLETE\n );\n return $orderCollection;\n }", "title": "" }, { "docid": "b37ead17547c86618a622179fbf70da9", "score": "0.56770337", "text": "protected function getAllOrders()\n {\n return Order::withTrashed()\n ->with(['address', 'user'])\n ->orderBy('id', 'DESC')\n ->get();\n }", "title": "" }, { "docid": "b21a3aa1cf949592ca166a84c5e963d1", "score": "0.5676444", "text": "function getAllUsersOrders(){\n\n}", "title": "" }, { "docid": "574e5a2b079631bb7891cc32e361f0b5", "score": "0.5654998", "text": "public static function getSellersItems($sellers)\n {\n return Product::whereIn('seller_id',$sellers)->get()->toArray();\n }", "title": "" }, { "docid": "f094fc4f473c0deadb88754a85c69995", "score": "0.5646725", "text": "public function Orders()\n {\n return $this->getOrders();\n }", "title": "" }, { "docid": "418f8bd969f8d2db65325f3ece610bdb", "score": "0.56306183", "text": "public function getUserOrders()\n {\n $orders = $this->orderRepository->getUserOrders();\n return api_response_paginate(\n 200,\n 'success',\n (new OrderCollection($orders))\n ->paginate(Request::get('per-page') ?? 10));\n }", "title": "" }, { "docid": "99441e8d4962cbd840a31ea6cba101be", "score": "0.56304395", "text": "private function searchOrders(): Builder\n {\n $search = request('search');\n $searchTerm = \"%{$search}%\";\n\n return Order::where(function ($query) use ($searchTerm) {\n $query->where('customer', 'like', $searchTerm)\n ->orWhere('id', 'like', $searchTerm)\n ->orWhere('number', 'like', $searchTerm)\n ->orWhere('status', 'like', $searchTerm)\n ->orWhere('total_amount', 'like', $searchTerm)\n ->orWhere('created_at', 'like', $searchTerm);\n });\n }", "title": "" }, { "docid": "47e761d9c581d944ee39fd8f0fb6640a", "score": "0.56296116", "text": "public function getPendingOrders($status) {\r\n if($status != \"all\"):\r\n $orders = Mage::getModel('marketplace/commission')->getCollection();\r\n $orders->addFieldToSelect('*');\r\n $orders->addFieldToFilter('seller_id', Mage::getSingleton('customer/session')->getCustomer()->getId());\r\n $orders ->getSelect()\r\n ->columns('SUM(seller_amount) as seller_amount')\r\n ->group('order_id'); \r\n /**\r\n * Set order for manage order\r\n */\r\n $orders->setOrder('order_id', 'desc');\r\n /**\r\n * Return orders\r\n */\r\n $condition = new Zend_Db_Expr(\"sales.entity_id = main_table.order_id AND sales.status = '$status'\");\r\n $orders->getSelect()->join(array('sales' => $orders->getTable('sales/order')),\r\n $condition,\r\n array('status' => 'sales.status'));\r\n elseif($status == \"all\"):\r\n $orders = Mage::getModel('marketplace/commission')->getCollection();\r\n $orders->addFieldToSelect('*');\r\n $orders->addFieldToFilter('seller_id', Mage::getSingleton('customer/session')->getCustomer()->getId());\r\n $orders ->getSelect()\r\n ->columns('SUM(seller_amount) as seller_amount')\r\n ->group('order_id'); \r\n /**\r\n * Set order for manage order\r\n */\r\n $orders->setOrder('order_id', 'desc');\r\n /**\r\n * Return orders\r\n */\r\n endif;\r\n return $orders; \r\n }", "title": "" }, { "docid": "7209114313ccd008b87662dfa005fe77", "score": "0.56274414", "text": "public function query() {\n\t\tif (get_current_login_user() == 'admin') {\n\t\t\treturn Order::get();\n\t\t} else if (get_current_login_user() == 'store') {\n\t\t\t$store_id = auth()->guard('store')->user()->id;\n\t\t\treturn Order::where('store_id', $store_id)->get();\n\t\t}\n\t}", "title": "" }, { "docid": "2b54a13763bf8d67cc1d527944641665", "score": "0.5621931", "text": "public function getDifferentOrders()\n\t{\n\t\t$select = $this->_getReadAdapter()\n\t\t\t->select()\n\t\t\t->from($this->getMainTable()) \n\t\t\t->columns('ebay_order_id') \t\n ->where('order_created = ? AND ebay_order_status = ? AND ebay_order_id <> ?',0,Mbid_Magebid_Model_Transaction::EBAY_ORDER_STATUS_COMPLETED,'')\n ->group('ebay_order_id'); \n \n return $this->_getReadAdapter()->fetchAll($select);\t\n\t}", "title": "" }, { "docid": "dd17095762e727cadea16c8887171290", "score": "0.5619713", "text": "public function buyer_orders()\n {\n $query = $this->db->where('buyer_id', $this->current_user->user_id)\n ->order_by('time desc')\n //->order_by('progress asc, time desc')\n ->get('orders');\n #echo $this->db->last_query();\n return ($query->num_rows() > 0) ? $this->build_array($query->result_array()) : array();\n\n }", "title": "" }, { "docid": "aca0906ada4df828d95fc626e3f44a79", "score": "0.5617105", "text": "public function getNotShippedOrders(){\n\n $resource = $this->_productFactory->create()->getResource();\n $connection = $resource->getConnection();\n $select = $connection->select();\n $select->from(\n [\"main_table\"=>$resource->getTable('ves_vendor_sales_order')],\n ['*']\n )->join(\n [\n 'order_grid'=>$resource->getTable('sales_order')],\n 'main_table.order_id = order_grid.entity_id',\n [\n 'is_virtual'\n ]\n )->join(\n [\n 'order_item'=>$resource->getTable('sales_order_item')],\n 'main_table.entity_id=order_item.vendor_order_id',\n [\n 'is_virtual',\n 'locked_do_ship',\n 'parent_item_id',\n ]\n )->where(\n 'main_table.vendor_id = :vendor_id'\n )->where(\n 'order_grid.is_virtual = 0'\n )->where(\n 'order_item.locked_do_ship IS NULL'\n )->where(\n 'order_item.is_virtual = 0'\n )\n ->where(\n 'order_item.parent_item_id IS NULL'\n )->where(\n '(order_item.qty_ordered - order_item.qty_shipped - order_item.qty_refunded - order_item.qty_canceled) >= 1'\n )->group('main_table.order_id');\n $bind = ['vendor_id' => $this->getVendor()->getId()];\n\n $total = $connection->fetchALL($select,$bind);\n\n return count($total);\n }", "title": "" }, { "docid": "a02339954c9461d96cf823ddbab65087", "score": "0.56066585", "text": "public static function getOrders()\n\t{\n $orders = DB::query(\"SELECT orderproducts.*, products.strName, products.strDescription, products.strFeatures, products.price, products.category_id, products.status_id, orders.totalAmount, orders.date, inventoryproducts.name AS inventoryproductsname\n FROM orderproducts\n LEFT JOIN orders ON orderproducts.orderId=orders.id\n LEFT JOIN products ON orderproducts.productId=products.id\n LEFT JOIN inventoryproducts ON products.inventoryproductsId=inventoryproducts.id\");\n\n // acting as a factory\n // empty array to avoid errors when nothing was found\n\t\t$ordersArray = array();\n\t\tforeach($orders as $order)\n\t\t{\n\t\t\t// create an instance / object for this SPECIFIC \n\t\t\t$ordersArray[] = new OrdersAdmin($order); // put this object onto the array\n }\n\t\t// return the list of objects\n\t\t//return $ordersArray;\n }", "title": "" }, { "docid": "ad320121f45eab9b8fe0eb309cef14f6", "score": "0.5587261", "text": "function get_recent_orders(){\n\t $orders = $this->Order->get_recent_orders();\n\t if($this->params['requested']){\n\t return $orders;\n\t }else{\n\t $this->set('orders', $orders);\n\t }\n \n\t}", "title": "" }, { "docid": "b263286658a11179fc02262707e696d8", "score": "0.5579299", "text": "public function getOrders()\n {\n return $this->hasMany(Order::className(), ['customer_id' => 'id']);\n }", "title": "" }, { "docid": "79845a5c8cae1bef74de016eeb2abf7e", "score": "0.5572774", "text": "public function getOrders()\n {\n $request = new Request;\n $request->setUrl(\"order\");\n $this->populateMetadata($request);\n $response = $this->send($request);\n if ($response->code !== 200) {\n $msg = \"Error occured when obtaining order data from the API.\";\n $this->logger->error($msg, [\"request\" => $request, \"response\" => $response]);\n throw new ShoeppingResponseException($msg);\n }\n return $response->data;\n }", "title": "" }, { "docid": "23c34043d2d205674a9127db3da22fe8", "score": "0.55715495", "text": "public function vendor_orders()\n {\n $query = $this->db->where('vendor_hash', $this->current_user->user_hash)\n ->where('progress >', '0')\n ->order_by('time desc')\n ->get('orders');\n\n if ($query->num_rows() > 0) {\n $row = $query->result_array();\n return $this->build_array($row);\n } else {\n return array();\n }\n }", "title": "" }, { "docid": "81b846be6ae2dd33047df4387efac179", "score": "0.55662316", "text": "public function getOrderings() {}", "title": "" }, { "docid": "def170c9821c0684a175f291f50c014d", "score": "0.5563342", "text": "public function getCustomerOrders()\n {\n $customer = auth()->user();\n $orders = Order::where('customer_id', $customer->getKey())->get();\n\n return response()->json($orders->transform(function($order) use ($customer) {\n return [\n 'order_id' => $order->order_id,\n 'total_amount' => $order->total_amount,\n 'created_on' => $order->created_on,\n 'shipped_on' => $order->shipped_on,\n 'name' => $customer->name,\n ];\n }));\n }", "title": "" }, { "docid": "7f251d868027566a4640f0d508872793", "score": "0.55470824", "text": "public function purchasedBooks()\n { \n return $this->orders();\n }", "title": "" }, { "docid": "613e25f90aebca51e831d178c1cc06ab", "score": "0.55455494", "text": "public function gets($user, $organization_id, $where=[], $debug=false) {\n\n $results = [];\n $where_order = [];\n\n if(Configure::read('social_market_delivery_id')===false)\n return $results;\n\n if(isset($where['Orders']))\n $where_order = $where['Orders'];\n $where_order = array_merge([$this->getAlias().'.organization_id' => Configure::read('social_market_organization_id')],\n $where_order);\n if($debug) debug($where_order);\n\n $where_delivery = ['Deliveries.organization_id' => Configure::read('social_market_organization_id'),\n 'Deliveries.id' => Configure::read('social_market_delivery_id')];\n\n /*\n * estraggo i produttori attivi del GAS per escluderli\n */\n $suppliersOrganizationsTable = TableRegistry::get('SuppliersOrganizations');\n $suppliersOrganizations = $suppliersOrganizationsTable->find()\n ->select(['id'])\n ->where (['organization_id' => $user->organization->id, 'stato' => 'Y'])\n ->all();//dd($suppliersOrganizations);\n $exclude_ids = [];\n foreach ($suppliersOrganizations as $suppliersOrganization)\n $exclude_ids[$suppliersOrganization->id] = $suppliersOrganization->id;\n\n /*\n * estraggo solo i GAS abilitati\n */\n $socialmarketOrganizationsTable = TableRegistry::get('SocialmarketOrganizations');\n $socialmarketOrganizations = $socialmarketOrganizationsTable->find()\n ->select(['supplier_organization_id'])\n ->where (['organization_id' => $user->organization->id])\n ->all();\n if($socialmarketOrganizations->count()==0)\n return $socialmarketOrganizations;\n\n $include_ids = [];\n foreach ($socialmarketOrganizations as $socialmarketOrganization)\n $include_ids[$socialmarketOrganization->supplier_organization_id] = $socialmarketOrganization->supplier_organization_id;\n\n $where_supplier = [];\n if(!empty($exclude_ids))\n $where_supplier += ['SuppliersOrganizations.id NOT IN ' => $exclude_ids];\n if(!empty($include_ids))\n $where_supplier += ['SuppliersOrganizations.id IN ' => $include_ids];\n\n $results = $this->find()\n ->where($where_order)\n ->contain([\n 'OrderTypes' => ['conditions' => ['code' => 'SOCIALMARKET']],\n 'OrderStateCodes',\n 'SuppliersOrganizations' => [\n 'Suppliers', 'conditions' => $where_supplier\n ],\n 'Deliveries' => ['conditions' => $where_delivery]\n ])\n ->order([$this->getAlias().'.data_inizio'])\n ->all();\n // debug($results);\n\n return $results;\n\n }", "title": "" }, { "docid": "fd0ea2487372d0cd9289456705d112ad", "score": "0.55408657", "text": "public function fetchWarehouseOrders() {\n $pullList = $this->find('all', array(\n 'conditions' => array(\n 'Order.status' => array('Released', 'Pulled')\n ),\n 'contain' => array(\n 'User',\n 'UserCustomer' => array(\n 'Customer' => array(\n 'fields' => array(\n 'id',\n 'allow_backorder'\n )\n )\n ),\n 'Budget',\n 'OrderItem' => array(\n 'Catalog' => array(\n 'ParentCatalog' => array(\n 'Item'\n )\n ),\n 'Item' => array(\n 'Image',\n 'Location'\n )\n ),\n 'Shipment',\n 'Document' => array(\n 'fields' => array(\n 'id'\n )\n )\n )));\n $this->groupWarehouseOrders($pullList);\n return $this->statusOutputOrder;\n }", "title": "" }, { "docid": "8a070a6daae786254c5b692c97c0cce7", "score": "0.55299807", "text": "public function sellerOrderList(Request $request){\n $orders = \\App::call('App\\Http\\Controllers\\OrderController@viewBySeller', [$request->user()->seller->id]);\n return view('seller.order-list', compact('orders'));\n }", "title": "" }, { "docid": "b77c5e4c9bbf51ae14c1ad008cc2bf65", "score": "0.55267745", "text": "public function getDailyOrders($id=null)\n {\n $startDate = date(\"Y-m-d H:i:s\", strtotime('-1 month', time()));\n $endDate = date('Y-m-d H:i:s');\n\n $userData = User::find()->andFilterWhere(['u_id' => $id])->andWhere(['IS NOT', 'u_mws_seller_id', null])->all();\n\n foreach ($userData as $user) {\n \\Yii::$app->data->getMwsDetails($user->u_mws_seller_id, $user->u_mws_auth_token);\n\n $orderList = \\Yii::$app->api->getOrdersList('Created', $startDate, $endDate);\n foreach ($orderList as $order) {\n $order = (array)$order;\n $order = array_shift($order);\n if ($order) {\n\n $model = AllOrdesList::findOne(['aol_amazon_order_id' => $order['AmazonOrderId'], 'aol_user_id' => $user->u_id]);\n if (!$model) {\n $model = new AllOrdesList();\n }\n $model->aol_amazon_order_id = (key_exists('AmazonOrderId', $order)) ? $order['AmazonOrderId'] : null;\n $model->aol_seller_order_id = (key_exists('SellerOrderId', $order)) ? $order['SellerOrderId'] : null;\n $model->aol_purchase_date = (key_exists('PurchaseDate', $order)) ? $order['PurchaseDate'] : null;\n $model->aol_last_updated_date = (key_exists('LastUpdateDate', $order)) ? $order['LastUpdateDate'] : null;\n $model->aol_order_status = (key_exists('OrderStatus', $order)) ? $order['OrderStatus'] : null;\n $model->aol_fulfilment_channel = (key_exists('FulfillmentChannel', $order)) ? $order['FulfillmentChannel'] : null;\n $model->aol_sales_channel = (key_exists('SalesChannel', $order)) ? $order['SalesChannel'] : null;\n $model->aol_ship_service = (key_exists('ShipServiceLevel', $order)) ? $order['ShipServiceLevel'] : null;\n $model->aol_order_total = (key_exists('OrderTotal', $order)) ? $order['OrderTotal']['Amount'] : 0;\n $model->aol_shipped_items = (key_exists('NumberOfItemsShipped', $order)) ? $order['NumberOfItemsShipped'] : null;\n $model->aol_unshipped_items = (key_exists('NumberOfItemsUnshipped', $order)) ? $order['NumberOfItemsUnshipped'] : null;\n $model->aol_user_id = $user->u_id;\n if($model->save(false)) {\n echo $model->aol_amazon_order_id.\" is Saved. \";\n }\n\n $model = AllOrdesList::findOne($model->aol_amazon_order_id);\n if($model) {\n sleep(2);\n /**\n * Get Finance Event Data\n */\n $financeEventData = \\Yii::$app->api->getFinanceEventList($model->aol_amazon_order_id);\n $amazonOrderId = $sellerOrderId = $shipmentRefundId = null;\n\n if ($financeEventData) {\n // print_r($financeEventData); exit();\n /**\n * Store Shipment Event Data 111-8188019-0760241\n */\n if ($shipmentData = $financeEventData['shipmentEventData']) {\n foreach ($shipmentData as $sVal) {\n $modelSR = new ShipmentRefundEventData();\n $modelSR->sred_amazon_order_id = $amazonOrderId = $sVal['AmazonOrderId'];\n $modelSR->sred_seller_order_id = $sellerOrderId = $sVal['SellerOrderId'];\n $modelSR->sred_marketplace_name = $sVal['MarketplaceName'];\n $modelSR->sred_shipment_posted_date = $sVal['PostedDate'];\n $modelSR->sred_event_type = 'Order';\n\n if ($modelSR->save(false)) {\n $shipmentRefundId = $modelSR->sred_id;\n if (key_exists('ShipmentItemList', $sVal) && is_array($sVal['ShipmentItemList']) && $shipmentItemData = $sVal['ShipmentItemList']) {\n foreach ($shipmentItemData as $sItem) {\n $sellerSku = $sItem['SellerSKU'];\n $orderItemId = $sItem['OrderItemId'];\n $shippedQuantity = $sItem['QuantityShipped'];\n\n if (key_exists('ItemChargeList', $sItem) && is_array($sItem['ItemChargeList']) && $itemChargeData = $sItem['ItemChargeList']) {\n foreach ($itemChargeData as $iData) {\n $itemModel = new ItemChargeListData();\n $itemModel->icld_quantity_shipped = $shippedQuantity;\n $itemModel->icld_seller_sku = $sellerSku;\n $itemModel->icld_order_item_id = $orderItemId;\n $itemModel->icld_amazon_order_id = $modelSR->sred_amazon_order_id;\n $itemModel->icld_seller_order_id = $modelSR->sred_seller_order_id;\n $itemModel->icld_item_charge_type = $iData['ChargeType'];\n $itemModel->icld_charge_amount = $iData['Amount'];\n $itemModel->icld_currency = $iData['CurrencyCode'];\n $itemModel->icld_transaction_type = 'Order';\n $itemModel->icld_item_type = 'Shipment';\n $itemModel->icld_shipment_refund_event_data_id = $modelSR->sred_id;\n if ($itemModel->save(false)) {\n echo \"Item Charge Saved.\";\n }\n } //$itemChargeData\n }\n\n if (key_exists('ItemFeeList', $sItem) && is_array($sItem['ItemFeeList']) && $itemFeeChargeData = $sItem['ItemFeeList']) {\n foreach ($itemFeeChargeData as $ifData) {\n $feeModel = new ItemFeeListData();\n $feeModel->ifld_quantity_shipped = $shippedQuantity;\n $feeModel->ifld_seller_sku = $sellerSku;\n $feeModel->ifld_order_item_id = $orderItemId;\n $feeModel->ifld_amazon_order_id = $modelSR->sred_amazon_order_id;\n $feeModel->ifld_seller_order_id = $modelSR->sred_seller_order_id;\n $feeModel->ifld_fee_type = $ifData['FeeType'];\n $feeModel->ifld_fee_amount = $ifData['Amount'];\n $feeModel->ifld_currency = $ifData['CurrencyCode'];\n $feeModel->ifld_transaction_type = 'Order';\n $feeModel->ifld_item_type = 'Shipment';\n $feeModel->ifld_shipment_refund_event_id = $modelSR->sred_id;\n if ($feeModel->save(false)) {\n echo \"Item Fee Saved.\";\n }\n } // $itemFeeChargeData\n }\n } // $shipmentItemData\n }\n }\n } //$shipmentData\n } // if : $shipmentData\n\n /**\n * Store Refund Event Data\n */\n if ($refundData = $financeEventData['refundEventData']) {\n foreach ($refundData as $rValue) {\n $modelSR = new ShipmentRefundEventData();\n $modelSR->sred_amazon_order_id = $rValue['AmazonOrderId'];\n $modelSR->sred_seller_order_id = $rValue['SellerOrderId'];\n $modelSR->sred_marketplace_name = $rValue['MarketplaceName'];\n $modelSR->sred_refund_posted_date = $rValue['PostedDate'];\n $modelSR->sred_event_type = 'Refund';\n\n if ($model->save(false)) {\n /*$vnModel = new VaNotification();\n $vnModel->vn_amazon_order_id = $modelSR->sred_amazon_order_id;\n $vnModel->vn_refund_posted_date = $modelSR->sred_refund_posted_date;\n $vnModel->vn_shipment_refund_event_data_id = $modelSR->sred_id;\n $vnModel->save(false);*/\n\n if (key_exists('ShipmentItemAdjustmentList', $rValue) && is_array($rValue['ShipmentItemAdjustmentList']) && $shipmentItemData = $rValue['ShipmentItemAdjustmentList']) {\n foreach ($shipmentItemData as $sItem) {\n $sellerSku = $sItem['SellerSKU'];\n $orderItemId = (key_exists('OrderAdjustmentItemId', $sItem)) ? $sItem['OrderAdjustmentItemId'] : null;\n $shippedQuantity = (key_exists('QuantityShipped', $sItem)) ? $sItem['QuantityShipped'] : null;\n\n if (key_exists('ItemChargeAdjustmentList', $sItem) && is_array($sItem['ItemChargeAdjustmentList']) && $itemChargeData = $sItem['ItemChargeAdjustmentList']) {\n foreach ($itemChargeData as $iData) {\n $itemModel = new ItemChargeListData();\n $itemModel->icld_quantity_shipped = $shippedQuantity;\n $itemModel->icld_seller_sku = $sellerSku;\n $itemModel->icld_order_adjustment_item_id = $orderItemId;\n $itemModel->icld_amazon_order_id = $modelSR->sred_amazon_order_id;\n $itemModel->icld_seller_order_id = $modelSR->sred_seller_order_id;\n $itemModel->icld_item_charge_type = $iData['ChargeType'];\n $itemModel->icld_charge_amount = $iData['Amount'];\n $itemModel->icld_currency = $iData['CurrencyCode'];\n $itemModel->icld_transaction_type = 'Refund';\n $itemModel->icld_item_type = 'Refund';\n $itemModel->icld_shipment_refund_event_data_id = $modelSR->sred_id;\n if ($itemModel->save(false)) {\n echo \"Refund Item Charge Saved.\";\n }\n } //$itemChargeData\n }\n\n if (key_exists('ItemFeeAdjustmentList', $sItem) && is_array($sItem['ItemFeeAdjustmentList']) && $itemFeeChargeData = $sItem['ItemFeeAdjustmentList']) {\n foreach ($itemFeeChargeData as $ifData) {\n $feeModel = new ItemFeeListData();\n $feeModel->ifld_quantity_shipped = $shippedQuantity;\n $feeModel->ifld_seller_sku = $sellerSku;\n $feeModel->ifld_order_adjustment_item_id = $orderItemId;\n $feeModel->ifld_amazon_order_id = $modelSR->sred_amazon_order_id;\n $feeModel->ifld_seller_order_id = $modelSR->sred_seller_order_id;\n $feeModel->ifld_fee_type = $ifData['FeeType'];\n $feeModel->ifld_fee_amount = $ifData['Amount'];\n $feeModel->ifld_currency = $ifData['CurrencyCode'];\n $feeModel->ifld_transaction_type = 'Refund';\n $feeModel->ifld_item_type = 'Refund';\n $feeModel->ifld_shipment_refund_event_id = $modelSR->sred_id;\n if ($feeModel->save(false)) {\n echo \"Refund Item Fee Saved.\";\n }\n } // $itemFeeChargeData\n }\n } // $shipmentItemData\n }\n }\n }\n } // if : Refund Event\n\n /*\n * Store Service Fee Event Data\n */\n if ($serviceFeeEventData = $financeEventData['serviceFeeEventData']) {\n foreach ($serviceFeeEventData as $rValue) {\n $aOrderId = $rValue['AmazonOrderId'];\n $feeReason = $rValue['FeeReason'];\n $sellerSku = $rValue['SellerSKU'];\n $fnSku = $rValue['FnSKU'];\n $feeDesc = $rValue['FeeDescription'];\n $asin = $rValue['ASIN'];\n\n if (key_exists('FeeList', $rValue) && is_array($rValue['FeeList']) && $itemChargeData = $rValue['FeeList']) {\n foreach ($itemChargeData as $iData) {\n $sModel = new ServiceFeeData();\n $sModel->sfd_amazon_order_id = $aOrderId;\n $sModel->sfd_seller_order_id = $sellerOrderId;\n $sModel->sfd_fee_reason = $feeReason;\n $sModel->sfd_seller_sku = $sellerSku;\n $sModel->sfd_fnsku = $fnSku;\n $sModel->sfd_fee_description = $feeDesc;\n $sModel->sfd_asin = $asin;\n $sModel->sfd_fee_type = $iData['FeeType'];\n $sModel->sfd_fee_amount = $iData['Amount'];\n $sModel->sfd_currency = $iData['CurrencyCode'];\n $sModel->sfd_shipment_refund_event_data_id = $shipmentRefundId;\n if ($sModel->save(false)) {\n echo \"Service Fee Data Saved.\";\n }\n }\n }\n }\n } // if : service Fee Event\n\n /**\n * Adjustment Event Data\n */\n if ($adjustmentEventData = $financeEventData['adjustmentEventData']) {\n foreach ($adjustmentEventData as $raValue) {\n $adModel = new OrderAdjustmentEventData();\n $adModel->oaed_amazon_order_id = $amazonOrderId;\n $adModel->oaed_seller_order_id = $sellerOrderId;\n $adModel->oaed_adjustment_type = $raValue['AdjustmentType'];\n $adModel->oaed_amount = $raValue['Amount'];\n $adModel->oaed_currency = $raValue['CurrencyCode'];\n\n if ($adModel->save(false)) {\n if (key_exists('AdjustmentItemList', $raValue) && is_array($raValue['AdjustmentItemList']) && $AdjustmentItemList = $raValue['AdjustmentItemList']) {\n foreach ($AdjustmentItemList as $siItem) {\n $adIModel = new OrderAdjustmentItemListData();\n $adIModel->oaild_amazon_order_id = $amazonOrderId;\n $adIModel->oaild_seller_order_id = $sellerOrderId;\n $adIModel->oaild_quantity = $siItem['Quantity'];\n $adIModel->oaild_per_unit_amount = $siItem['PerUnitAmount']['Amount'];\n $adIModel->oaild_total_amount = $siItem['TotalAmount']['Amount'];\n $adIModel->oaild_currency = $siItem['TotalAmount']['CurrencyCode'];\n $adIModel->oaild_seller_sku = $siItem['SellerSKU'];\n $adIModel->oaild_fnsku = $siItem['FnSKU'];\n $adIModel->oaild_product_description = $siItem['ProductDescription'];\n $adIModel->oaild_asin = $siItem['ASIN'];\n $adIModel->order_adjustment_event_data_id = $adModel->oaed_id;\n $adIModel->oaild_shipment_refund_event_data_id = $shipmentRefundId;\n if ($adIModel->save(false)) {\n echo \"Adjustment Item Data Saved.\";\n }\n }\n }\n }\n }\n } // if : adjustment Event Data\n\n } // main if : $financeEventData\n\n $model = AllOrdesList::findOne(['aol_amazon_order_id' => $amazonOrderId]);\n if($model) {\n $model->aol_status = 1; // Finance Event Data Pulled.\n if ($model->save(false)) {\n echo \"Finance Event Data of Order No: \" . $model->aol_amazon_order_id . \" is Saved.\";\n }\n }\n sleep(3);\n\n /**\n * Get Shipped Order Details\n */\n $model = AllOrdesList::findOne(['aol_amazon_order_id' => $model->aol_amazon_order_id]);\n if ($model && $model->aol_order_status == 'Shipped') {\n $orderDetails = \\Yii::$app->api->getOrderDetails($model->aol_amazon_order_id);\n $orderItemAsin = \\Yii::$app->api->getOrderItems($model->aol_amazon_order_id);\n if ($orderDetails) {\n $model->aol_shipping_username = key_exists('Name', $orderDetails['ShippingAddress']) ? $orderDetails['ShippingAddress']['Name'] : null;\n $model->aol_shipping_address_1 = key_exists('AddressLine1', $orderDetails['ShippingAddress']) ? $orderDetails['ShippingAddress']['AddressLine1'] : null;\n $model->aol_shipping_address_2 = key_exists('AddressLine2', $orderDetails['ShippingAddress']) ? $orderDetails['ShippingAddress']['AddressLine2'] : null;\n $model->aol_shipping_address_3 = key_exists('AddressLine3', $orderDetails['ShippingAddress']) ? $orderDetails['ShippingAddress']['AddressLine3'] : null;\n $model->aol_city = key_exists('City', $orderDetails['ShippingAddress']) ? $orderDetails['ShippingAddress']['City'] : null;\n $model->aol_country = key_exists('County', $orderDetails['ShippingAddress']) ? $orderDetails['ShippingAddress']['County'] : null;\n $model->aol_district = key_exists('District', $orderDetails['ShippingAddress']) ? $orderDetails['ShippingAddress']['District'] : null;\n $model->aol_state_or_region = key_exists('StateOrRegion', $orderDetails['ShippingAddress']) ? $orderDetails['ShippingAddress']['StateOrRegion'] : null;\n $model->aol_postal_code = key_exists('PostalCode', $orderDetails['ShippingAddress']) ? $orderDetails['ShippingAddress']['PostalCode'] : null;\n $model->aol_country_code = key_exists('CountryCode', $orderDetails['ShippingAddress']) ? $orderDetails['ShippingAddress']['CountryCode'] : null;\n $model->aol_phone = key_exists('Phone', $orderDetails['ShippingAddress']) ? $orderDetails['ShippingAddress']['Phone'] : null;\n $model->aol_buyer_name = key_exists('BuyerName', $orderDetails) ? $orderDetails['BuyerName'] : null;\n $model->aol_buyer_email = key_exists('BuyerEmail', $orderDetails) ? $orderDetails['BuyerEmail'] : null;\n $model->aol_asin = $orderItemAsin;\n $model->aol_shipped_status = 1; //Order Details Pulled\n if ($model->save(false))\n echo $model->aol_amazon_order_id . \" Details Saved.\";\n }\n sleep(3);\n\n /**\n * Get All ASIN for Order\n */\n $orderItemAsinData = \\Yii::$app->api->getOrderItems($model->aol_amazon_order_id, true);\n if ($orderItemAsinData) {\n foreach ($orderItemAsinData as $asinData) {\n $modelOI = OrderItemsAsin::findOne(['oia_order_id' => $model->aol_amazon_order_id]);\n if (!$modelOI) {\n $modelOI = new OrderItemsAsin();\n }\n $modelOI->oia_order_id = $model->aol_amazon_order_id;\n $modelOI->oia_asin = $asinData['ASIN'];\n $catData = ($modelOI->oia_asin) ? \\Yii::$app->api->getProductCategory($modelOI->oia_asin) : null;\n if ($catData) {\n $modelP = FbaAllListingData::findOne(['asin1' => $modelOI->oia_asin]);\n $sPrice = ($modelP) ? $modelP->price : 0;\n $fees = GetApiData::mwsFeesEstimate($modelOI->oia_asin, $sPrice);\n $referralFee = ($fees) ? $fees['ReferralFee'] : 0;\n\n $modelOI->oia_referral_fee = $referralFee;\n $modelOI->oia_category = $catData;\n $modelOI->oia_purchase_date = $model->aol_purchase_date;\n\n $productDimensionData = \\Yii::$app->api->getProductDimensions($modelOI->oia_asin);\n if ($productDimensionData) {\n $modelOI->oia_item_height = $productDimensionData['ItemHeight'];\n $modelOI->oia_item_length = $productDimensionData['ItemLength'];\n $modelOI->oia_item_weight = $productDimensionData['ItemWeight'];\n $modelOI->oia_item_width = $productDimensionData['ItemWidth'];\n $modelOI->oia_package_height = $productDimensionData['PackageHeight'];\n $modelOI->oia_package_length = $productDimensionData['PackageLength'];\n $modelOI->oia_package_weight = $productDimensionData['PackageWeight'];\n $modelOI->oia_package_width = $productDimensionData['PackageWidth'];\n }\n }\n if ($modelOI->save(false)) {\n echo \"ASIN Saved.\";\n }\n sleep(3);\n }\n }\n }\n }\n }\n }\n\n /*if($id) {\n $user->order_cron_status = 1;\n $user->save(false);\n }*/\n }\n echo \"Done..\";\n }", "title": "" }, { "docid": "8165fca97a51b403b1b1d3e197ecc622", "score": "0.55245143", "text": "public function AllClosed_Orders_get() {\n extract($_GET);\n $result = $this->feeds_model->AllClosed_Orders();\n return $this->response($result);\n }", "title": "" }, { "docid": "0d18187368fccbf9216b08f0a80a2344", "score": "0.55151236", "text": "public function getAllOrdersInBasket() {\n\n $basketUser = $this->getBasketUserFromAuth();\n\n $basketDetailModel = new Application_Model_BasketDetail();\n\n $result = $basketDetailModel->getAllOrdersInBasket($basketUser);\n\n return $result;\n }", "title": "" }, { "docid": "f91c451ad85ee35cd85baac7f8745c31", "score": "0.55093575", "text": "public function getOrderings();", "title": "" }, { "docid": "3d81b9b14672178b15286c3d20d61a13", "score": "0.54994553", "text": "public function getOrders($searchTerm = \"\", $startDate = null, $endDate = null, $accountId = Account::LOGGED_IN_ACCOUNT) {\n $query = \"WHERE account_id = ?\";\n\n if ($searchTerm) {\n $query .= \" AND (buyer_name LIKE '%$searchTerm%' OR address LIKE '%$searchTerm%' OR status LIKE '%$searchTerm%' OR total LIKE '%$searchTerm%')\";\n }\n\n if ($startDate) {\n $query .= \" AND date >= '$startDate'\";\n }\n\n if ($endDate) {\n $query .= \" AND date <= '$endDate'\";\n }\n\n return Order::filter($query, $accountId);\n }", "title": "" }, { "docid": "9472fa8be19f6ad3332cef8319c51717", "score": "0.5497316", "text": "public function index(Orders $orders , Request $request)\n {\n $orders = $orders->with('customs');\n $request->user()->customer_id && $orders = $orders->where('cid',$request->user()->customer_id);\n if($request->money){\n $arr = explode('-',$request->money);\n if(count($arr) == 1){\n $orders = $orders->where('money','>',$arr[0]);\n }else if(count($arr) == 2){\n $orders = $orders->whereBetween('money',explode('-',$request->money));\n }\n }\n $request->status && $orders = $orders->where('order_status',$request->status);\n $request->name && $orders = $orders->whereHas('customs',function($query) use ($request){\n $query->where('company_name','like',\"%{$request->name}%\")->orWhere('company_addr','like','%'.$request->name.'%');\n });\n $request->time && $orders = $orders->whereDate('created_at',$request->time);\n return new OrdersResources($orders->orderBy('id','desc')->paginate($request->pageSize ?? $request->pageSize));\n }", "title": "" }, { "docid": "a162d77611008a21fd9714d54bb78c46", "score": "0.5494234", "text": "public function GetAllOrders() {\n return $this->orderManager->GetAllOrders();\n }", "title": "" }, { "docid": "853887cdfdabdd606b0b4e581c20ab9f", "score": "0.5491335", "text": "function admin_get_all_orders(){\n\t //$orders = $this->Order->find('all');\n\t $this->paginate = array('limit' => 10, 'order' => 'Order.od_date DESC');\n\t \n\t $this->set('orders', $this->paginate());\n\t \n\t \n\t if(!empty($this->data)){\n\t $this->Order->id = $this->data['Order']['id'];\n\t $this->Order->saveField('od_status', $this->data['Order']['od_status']);\n\t \n\t $result = $this->Order->get_ordered_items($this->data['Order']['id']);\n\t \n\t\t//enviar el correo electronico de la situacion\n\t $this->set('orderedProducts',$result);\n\t $this->set('status', $this->data['Order']['od_status']);\n\t $this->MyEmail->sendOrderStatusEmail($this->data['Order']['od_payment_email']);\n\t $this->redirect($this->referer());\n\t } \n\t}", "title": "" }, { "docid": "9f59092b229a9fc55512cbcc997b674d", "score": "0.54713416", "text": "public function getFOrders()\n {\n // 花店管理员身份验证\n if (session(\"admin_level\") == 3){\n $toFlower = M('weixin_order');\n $data = $toFlower->where('type = 0')->select();\n $this->assign('data',$data);\n }\n\n $toTrade = M('pub_trade_logs');\n $con['uid'] = session('uid');\n //$this->ajaxReturn(0 , $con['uid'] , 1);\n $TradeLogs = $toTrade->query(\"SELECT `xt_pub_trade_logs`.* ,`xt_pub`.`title` FROM `xt_pub_trade_logs` left join `xt_pub` on `xt_pub_trade_logs`.`pub_id` = `xt_pub`.`pub_id` WHERE 1\");\n // $this->ajaxReturn(0 , $TradeLogs , 1);\n\n $this->assign('tradelogs',$TradeLogs);\n $this->display();\n }", "title": "" }, { "docid": "526c4711d342bf8ec906342e87e76a47", "score": "0.5464996", "text": "public function allOrders()\n\t{\n\t\trequire 'Database.php';\n\n\t\t$req = $db->prepare(\"SELECT lol_server,lol_summoner,lol_account,lol_password,order_id, order_queue, order_boost, order_type, order_wins, start_league, start_division, desired_league, desired_division, order_date, DATE_FORMAT(order_date, '%d/%m/%Y') AS date, order_price, order_status, order_pause FROM orders WHERE user_id = ? ORDER BY order_status\");\n\t\t$req->execute(array($_SESSION['id']));\n\n\t\treturn $req->fetchAll();\n\t}", "title": "" }, { "docid": "a8a95de364678bfd91c83f183f8d29bc", "score": "0.5461755", "text": "private function fetchOrders(): Builder\n {\n $sortOrder = request('order') ?? 'desc';\n $sortBy = request('sort') ?? 'created_at';\n\n if (! request()->filled('search')) {\n return Order::orderBy($sortBy, $sortOrder);\n }\n\n return $this->searchOrders();\n }", "title": "" }, { "docid": "e2513f5dae55d20d0de89a70759f69ba", "score": "0.5460506", "text": "public function orders()\n {\n return $this->hasMany(Order::class, 'buyer_id');\n }", "title": "" }, { "docid": "243a9e77f96edc90417386de7ac3ae8c", "score": "0.5453216", "text": "public function getOrders() \n {\n return $this->_fields['Orders']['FieldValue'];\n }", "title": "" }, { "docid": "391bd1435c6de7379188760523fad194", "score": "0.54366153", "text": "protected function obtainDataOrders()\n\t{\n\t\t$this->dbQueryResult['ORDERS'] = CSaleOrder::GetList(array($this->sortBy => $this->sortOrder), $this->filter);\n\t\t$this->dbQueryResult['ORDERS']->NavStart($this->arParams[\"ORDERS_PER_PAGE\"], false);\n\n\t\tif(empty($this->dbQueryResult['ORDERS']))\n\t\t\treturn;\n\n\t\twhile ($arOrder = $this->dbQueryResult['ORDERS']->GetNext())\n\t\t{\n\t\t\t$arOBasket = array();\n\t\t\t$dbBasket = CSaleBasket::GetList(array('NAME' => 'asc'), array(\"ORDER_ID\"=>$arOrder[\"ID\"]), false, false, array('*'));\n\t\t\twhile ($arBasket = $dbBasket->Fetch())\n\t\t\t{\n\t\t\t\tif (CSaleBasketHelper::isSetItem($arBasket))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$arOBasket[] = $arBasket;\n\t\t\t}\n\n\t\t\t$this->dbResult['ORDERS'][] = array(\n\t\t\t\t\"ORDER\" => $arOrder,\n\t\t\t\t\"BASKET_ITEMS\" => $arOBasket,\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "41fdfaf11c19328bc64611ba9da01bc7", "score": "0.5428803", "text": "public function Orders()\n {\n $this->_Orders->ClearAllOptions();\n return $this->_Orders;\n }", "title": "" }, { "docid": "5980bb3eec628b37ff79c37668d42f6a", "score": "0.54271305", "text": "static private function explodeOrders($orders)\n {\n //Log::info('explodeOrders goods=' . print_r($orders, 1));\n\n $goods = [];\n if ($orders['result'] = true) {\n foreach ($orders['order_goods_list'] as $avail) {\n $avail = $avail[0];\n Log::info('avail=' . print_r($avail, 1));\n\n $goods[$avail['goods_internal_id']] = [\n 'id' => $avail['goods_internal_id'],\n 'goods_id' => $avail['goods_id'],\n 'company_name' => $avail['company_name'],\n 'count' => $avail['count'],\n 'count_avail' => $avail['count_avail'],\n 'expected_delivery_days' => $avail['expected_delivery_days'],\n 'goods_name' => $avail['goods_name'],\n 'goods_supplier_sh_id' => $avail['goods_supplier_sh_id'],\n 'num' => $avail['num'],\n 'price' => $avail['price'],\n 'price_reseller' => $avail['price_reseller'],\n 'state' => $avail['state'],\n 'state_change_date' => $avail['state_change_date'],\n 'supplier_point_id' => $avail['supplier_point_id'],\n 'tags' => $avail['tags'],\n 'user_comment' => $avail['user_comment'],\n ];\n }\n }\n\n return $goods;\n }", "title": "" }, { "docid": "c6890af422de5567fbd3dcbf4451a3ee", "score": "0.5423607", "text": "public function getOrders($request, $perPage)\n {\n return $this->timeFilter($request)->byUser()->orderBy('id','desc')->paginate($perPage);\n }", "title": "" }, { "docid": "f051f59382a6f257d6c0f6ecaff6e806", "score": "0.5407715", "text": "public static function allPurchaseOrders()\n {\n try {\n $result = JasminConnect::callJasmin('/purchases/orders');\n } catch (Exception $e) {\n return $e->getMessage();\n }\n\n $purchaseOrders = array();\n\n foreach(json_decode($result->getBody(), true) as $order) {\n if($order['documentStatus'] === 1) {\n $purchaseOrder = [\n 'sort_key' => substr($order['naturalKey'], '9'),\n 'id' => str_replace('.', '-', $order['naturalKey']),\n 'owner' => $order['sellerSupplierParty'],\n 'date' => substr($order['documentDate'], 0, 10),\n 'items' => []\n ];\n\n foreach ($order['documentLines'] as $product) {\n array_push($purchaseOrder['items'], [\n 'id' => $product['purchasesItem'],\n 'description' => $product['description'],\n 'quantity' => $product['quantity'],\n 'stock' => Products::getProductStock($product['purchasesItem']),\n 'zone' => Products::getProductWarehouseSection($product['purchasesItem'])\n ]);\n }\n\n array_push($purchaseOrders, $purchaseOrder);\n }\n }\n\n // Array sorting in ascending order\n usort($purchaseOrders, function ($a, $b) {return $a['sort_key'] > $b['sort_key'];});\n\n return $purchaseOrders;\n }", "title": "" }, { "docid": "010e404ab80a7903b734c16c1ca3c76e", "score": "0.54028964", "text": "public function getOrders()\n {\n $result = array();\n\n if (!empty(\\XLite\\Core\\Request::getInstance()->order_ids)) {\n $orderIds = explode(',', \\XLite\\Core\\Request::getInstance()->order_ids);\n\n foreach ($orderIds as $orderId) {\n $orderId = trim($orderId);\n $order = \\XLite\\Core\\Database::getRepo('XLite\\Model\\Order')->find(intval($orderId));\n if ($order) {\n $result[] = $order;\n }\n }\n\n } else {\n $result[] = $this->getOrder();\n }\n\n return $result;\n }", "title": "" }, { "docid": "9baecbb200ccb59aae10f2d85ee672cb", "score": "0.5396199", "text": "private function getShopOrderList() {\n\t\tif (array_key_exists('shopTemplate', $this->template->conf)) {\n\t\t\t$templateCode = $this->template->plugin->fileResource($this->template->conf['shopTemplate']);\n\t\t\t//$templateCode = $this->template->tplutils->getSubpart($tmpl, '###ORDERS_LIST_TEMPLATE###');\n\t\t} else {\n\t\t\t$templateCode = $this->template->plugin->getTemplate('###SHOP###');\n\t\t}\n\n\t\t$feusers_uid = $GLOBALS['TSFE']->fe_user->user['uid'];\n\t\tif (!$feusers_uid) {\n\t\t\treturn $this->template->tplutils->getSubpart($templateCode, '###MEMO_NOT_LOGGED_IN###');\n\t\t}\n\n\t\t$cond = array();\n\t\t$cond['select'] = '*';\n\t\t$cond['from'] = 'sys_products_orders';\n\t\t$cond['order'] = 'crdate';\n\n\t\t$cond['limit'] = '';\n\n\t\t// Get a custom where, or default if none\n\t\t$cond = $this->calc->custom->getOrderListCondition();\n\t\tif (!$cond) {\n\t\t\t$cond['where'] = 'feusers_uid=' . intval($feusers_uid) . ' AND NOT deleted';\n\t\t} else if (!is_array($cond)) {\n\t\t\t$cond['where'] = $cond;\n\t\t}\n\n\t\treturn $this->layoutOrderList($templateCode, $cond);\n\t}", "title": "" }, { "docid": "28d94e01bb4af1102fef1c85bb96de10", "score": "0.53924876", "text": "public function getOrderExportRules()\n {\n $filters = [];\n if ($this->hasOrderExportRules()) {\n foreach (self::FILTER_ORDERS_BY_MAP as $orderDataField => $systemConfig) {\n $filters[$orderDataField] =\n $this->scopeConfig->getValue('wesupply_api/wesupply_order_export/' . $systemConfig, ScopeInterface::SCOPE_STORE)\n ?? '';\n }\n }\n\n return $filters;\n }", "title": "" }, { "docid": "f0e246c4cdf82f26794eb683716a8340", "score": "0.53823334", "text": "public function getAcceptedOrders(Request $request)\n {\n $id = $request->id;\n $aAcceptedOrders = Order::with('user', 'order_item.menu_item')\n ->where('restaurant_id', '=', $id)\n ->where('status', '=', 0)\n ->where('accepted', '=', 1)\n ->orderBy('delivery_time', 'asc')\n ->get();\n return response()->json($aAcceptedOrders);\n }", "title": "" }, { "docid": "1de59c7512e9ca0b89c612030c3d288c", "score": "0.5377284", "text": "function getOrderings() ;", "title": "" }, { "docid": "abe7fb22dde7c37cb929b2b948b14298", "score": "0.53512233", "text": "public function fetchOrders($id, $omit = false, $watched = false, $conditions = array()) {\n if (!is_array($id)) {\n $id = array($id);\n }\n if(empty($conditions)){\n $conditions = [\n 'OR' => [\n 'Order.user_id' => $id,\n 'Order.user_customer_id' => $id,\n ],\n 'NOT' => [\n ['Order.status' => 'Archived'],\n ['Order.status' => 'Invoiced'],\n ['Order.status' => 'Shipped']\n ]\n ];\n }\n\n // $ids is no an IN list of one or more user ids\n $myOrders = $this->find('all', array(\n 'conditions' => $conditions,\n 'contain' => array(\n 'User',\n 'UserCustomer' => array(\n 'Customer' => array(\n 'fields' => array(\n 'id',\n 'allow_backorder'\n )\n )\n ),\n 'Budget',\n 'OrderItem' => array(\n 'Item' => array(\n 'fields' => array('id', 'available_qty')\n ),\n 'Catalog' => array(\n 'ParentCatalog' => array(\n 'Item'\n )\n )\n ),\n 'Shipment',\n 'Document' => array(\n 'fields' => array(\n 'id'\n )\n )\n )));\n\n $this->groupByStatus($myOrders, $omit);\n $keys = array_keys($this->orderSet);\n if ($watched) {\n $this->breakOutWatched();\n }\n return $this->orderSet;\n }", "title": "" }, { "docid": "5759d7aa386ab0d1a64845e0a62ff7ba", "score": "0.5348736", "text": "public function build(): SearchOrdersFulfillmentFilter\n {\n return CoreHelper::clone($this->instance);\n }", "title": "" }, { "docid": "7bf1472f77bff64f55dfc4ae10fe3890", "score": "0.5347073", "text": "public function getOrders($status = null, $shown = true)\n {\n $sql = \"SELECT *\n FROM `{$this->db_prefix}{$this->table}`\n WHERE `id_shop` = {$this->shop->id}\";\n\n if (!is_null($status)) {\n $sql .= \" AND `status` = '{$status}'\";\n }\n\n if (!$shown) {\n $sql .= ' AND `shown` = 0';\n }\n\n $sql .= ' ORDER BY `id_order` DESC;';\n\n if (!$this->checkTable() || !$result = $this->db->executeS($sql)) {\n return [];\n }\n\n return $result;\n }", "title": "" }, { "docid": "9903c60a8740151cb6cc4cefef72b045", "score": "0.53352517", "text": "public function get_top_sellers()\n\t{\n\t\t$this->db->select('vendor.vendor_id, vendor.vendor_store_name, count(vendor.vendor_id) AS total_occurences')->from('product, vendor, order_item')->where(\"product.product_id = order_item.product_id AND product.created_by = vendor.vendor_id\")->order_by(\"total_occurences\", 'DESC');\n\t\t$query = $this->db->get('',10);\n\t\t\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "ecab836e62778ed3e0b998da2e3edc62", "score": "0.5328915", "text": "public function getSorders()\n {\n return $this->hasMany(Sorder::className(), ['currency_id' => 'currency_id']);\n }", "title": "" }, { "docid": "06601ce855ca799257aa83067d25981a", "score": "0.5319862", "text": "private static function getShiptoSalesOrders($custID, $shiptoID, $limit = 10) {\n\t\t$filter = new Filters\\Mso\\SalesOrder();\n\t\t$filter->user(self::pw('user'));\n\t\t$filter->custid($custID);\n\t\t$filter->shiptoid($shiptoID);\n\t\treturn $filter->query->paginate(1, $limit);\n\t}", "title": "" }, { "docid": "5c762b872f7a275eee2ba0c891351a2b", "score": "0.531486", "text": "public function getOrdersAll()\n {\n $data = DB::table('orders')\n ->select(\n 'orders.id',\n 'orders.room_id',\n 'orders.user_id',\n 'users.name',\n 'rooms.room_name',\n DB::raw('date_format(orders.check_in, \"%e %M %Y\") as check_in'),\n DB::raw('date_format(orders.check_out, \"%e %M %Y\") as check_out'),\n 'orders.message',\n 'orders.status')\n ->join('rooms', 'room_id', 'rooms.id')\n ->join('users', 'user_id', 'users.id')\n ->get();\n\n return response()->json($data);\n }", "title": "" }, { "docid": "9bbf02aa568a334e6a5e4e0eb28beb6d", "score": "0.5305556", "text": "public static function getRecentDoneOrders() {\n\n\t\treturn Order::fullActive()\n\t\t\t\t\t->where('state', '=', '3')\n\t\t\t\t\t->orderBy('date', 'desc')\n\t\t\t\t\t->take(10)\n\t\t\t\t\t->get();\n\t}", "title": "" }, { "docid": "3381b1386bebab1801153ab493d86492", "score": "0.5298811", "text": "public function get_top_sellers2()\n\t{\n\t\t$this->db->select('vendor.vendor_id, vendor.vendor_store_name')->from('vendor')->where(\"vendor.vendor_status = 1\")->order_by(\"vendor_store_name\", 'ASC');\n\t\t$query = $this->db->get('',10);\n\t\t\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "4df5e734a94f72fdf3fbe702a618c0fe", "score": "0.528785", "text": "public function actionGetOrders(): \\yii\\web\\Response\n {\n return $this->asJson(CommerceReports::$plugin->orders->getOrders());\n }", "title": "" }, { "docid": "d7f2a2e5ba1aed248fcd125ebb6734e7", "score": "0.5287318", "text": "public function index(FilteredRequest $request): OrderResource\n {\n $query = $this->fetchOrders();\n\n $activeFilterBadges = $this->queryFilters($query, $request->filters);\n\n $orders = $this->paginatedOrders($query->get());\n\n return (new OrderResource($orders))\n ->columnPreferenceKey('butik.orders.columns')\n ->additional(['meta' => [\n 'activeFilterBadges' => $activeFilterBadges,\n ]]);\n }", "title": "" }, { "docid": "681cdf72ad03226170390b0a6569b5c8", "score": "0.52829504", "text": "public function getDailyOrdersData($id=null)\n {\n $startDate = date(\"Y-m-d H:i:s\", strtotime('-7 day', time()));\n $endDate = date('Y-m-d H:i:s');\n\n $userData = User::find()->andFilterWhere(['u_id' => $id, 'u_type' => 2])->andWhere(['IS NOT', 'u_mws_seller_id', null])->all();\n\n foreach ($userData as $user) {\n \\Yii::$app->data->getMwsDetails($user->u_mws_seller_id, $user->u_mws_auth_token);\n $orderList = \\Yii::$app->api->getOrdersList('Created', $startDate, $endDate);\n foreach ($orderList as $order) {\n $orderDetail = false;\n $order = (array)$order;\n $order = array_shift($order);\n if($order) {\n $model = AllOrdesList::findOne(['aol_amazon_order_id' => $order['AmazonOrderId'], 'aol_user_id' => $user->u_id]);\n if (!$model) {\n $model = new AllOrdesList();\n }\n $model->aol_amazon_order_id = (key_exists('AmazonOrderId', $order)) ? $order['AmazonOrderId'] : null;\n $model->aol_seller_order_id = (key_exists('SellerOrderId', $order)) ? $order['SellerOrderId'] : null;\n $model->aol_purchase_date = (key_exists('PurchaseDate', $order)) ? $order['PurchaseDate'] : null;\n $model->aol_last_updated_date = (key_exists('LastUpdateDate', $order)) ? $order['LastUpdateDate'] : null;\n $model->aol_order_status = (key_exists('OrderStatus', $order)) ? $order['OrderStatus'] : null;\n $model->aol_fulfilment_channel = (key_exists('FulfillmentChannel', $order)) ? $order['FulfillmentChannel'] : null;\n $model->aol_sales_channel = (key_exists('SalesChannel', $order)) ? $order['SalesChannel'] : null;\n $model->aol_ship_service = (key_exists('ShipServiceLevel', $order)) ? $order['ShipServiceLevel'] : null;\n $model->aol_order_total = (key_exists('OrderTotal', $order)) ? $order['OrderTotal']['Amount'] : 0;\n $model->aol_shipped_items = (key_exists('NumberOfItemsShipped', $order)) ? $order['NumberOfItemsShipped'] : null;\n $model->aol_unshipped_items = (key_exists('NumberOfItemsUnshipped', $order)) ? $order['NumberOfItemsUnshipped'] : null;\n if($model->aol_order_status == 'Shipped') {\n $model->aol_shipping_username = (key_exists('ShippingAddress', $order)) ? $order['ShippingAddress']['Name'] : null;\n $model->aol_shipping_address_1 = (key_exists('ShippingAddress', $order)) ? $order['ShippingAddress']['AddressLine1'] : null;\n $model->aol_shipping_address_2 = (key_exists('ShippingAddress', $order)) ? $order['ShippingAddress']['AddressLine2'] : null;\n $model->aol_shipping_address_3 = (key_exists('ShippingAddress', $order)) ? $order['ShippingAddress']['AddressLine3'] : null;\n $model->aol_city = (key_exists('ShippingAddress', $order)) ? $order['ShippingAddress']['City'] : null;\n $model->aol_country = (key_exists('ShippingAddress', $order)) ? $order['ShippingAddress']['County'] : null;\n $model->aol_district = (key_exists('ShippingAddress', $order)) ? $order['ShippingAddress']['District'] : null;\n $model->aol_state_or_region = (key_exists('ShippingAddress', $order)) ? $order['ShippingAddress']['StateOrRegion'] : null;\n $model->aol_postal_code = (key_exists('ShippingAddress', $order)) ? $order['ShippingAddress']['PostalCode'] : null;\n $model->aol_country_code =(key_exists('ShippingAddress', $order)) ? $order['ShippingAddress']['CountryCode'] : null;\n $model->aol_phone = (key_exists('ShippingAddress', $order)) ? $order['ShippingAddress']['Phone'] : null;\n $model->aol_buyer_name = key_exists('BuyerName', $order) ? $order['BuyerName'] : null;\n $model->aol_buyer_email = key_exists('BuyerEmail', $order) ? $order['BuyerEmail'] : null;\n $orderDetail = true;\n }\n $model->aol_user_id = $user->u_id;\n if($model->save(false)) {\n $olModel = OrderDataLog::findOne(['odl_order_id' => $model->aol_amazon_order_id, 'odl_user_id' => $user->u_id]);\n if (!$olModel) {\n $olModel = new OrderDataLog();\n $olModel->odl_order_id = $model->aol_amazon_order_id;\n $olModel->odl_user_id = $user->u_id;\n if($orderDetail) {\n $olModel->odl_shipped_order_data = 1;\n }\n if($olModel->save(false)) {\n echo $model->aol_amazon_order_id.\" Log is Saved. \";\n }\n }\n echo $model->aol_amazon_order_id.\" is Saved. \";\n }\n }\n }\n echo \"Done..\";\n }\n }", "title": "" }, { "docid": "856fb8c3c43f1088627cbe71c5f48969", "score": "0.52828395", "text": "public function getFiltroStars()\n {\n return Query::fetch('Busca/Filtros/QryBuscarQtdProdutosPorAvaliacao');\n }", "title": "" }, { "docid": "1f8ef1b7f98574ef0139fe798a95218d", "score": "0.5270406", "text": "function get_all_distributor_orders(){\r\n\r\n $distributor = $this->aauth->get_user();\r\n $distributor_id = $distributor->distributor_id;\r\n\r\n $date_from = $this->session->userdata('dashboard_date_from');\r\n $date_to = $this->session->userdata('dashboard_date_to');\r\n\r\n $query_string = \"SELECT \r\n a.id as 'order_number',\r\n b.company_name as 'customer',\r\n do.distributor_id as 'distributor',\r\n c.name as 'payment_type', \r\n a.status, \r\n a.delivery_date, \r\n a.createdate,\r\n a.delivery_type,\r\n sum(oi.price * oi.quantity) as total,\r\n sum(oi.quantity) as product_count\r\n FROM `orders` as a, `order_items` as `oi`,`customers` as b, `payment_types` as c,`distributor_orders` as do \r\n WHERE a.customer_id = b.id \r\n AND a.id = do.order_id \r\n AND a.id = oi.order_id \r\n AND do.distributor_id = '$distributor_id'\r\n AND a.createdate > '$date_from' \r\n AND a.createdate < '$date_to' \r\n GROUP BY oi.order_id ORDER by a.createdate desc \";\r\n\r\n $query = $this->db->query($query_string);\r\n \r\n $return['query'] = $query_string;\r\n $return['orders'] = $query->result_array();\r\n return $return;\r\n }", "title": "" }, { "docid": "385d5230583bba618c04c6864795b930", "score": "0.52664244", "text": "public function getFilterProducts()\n {\n return $this->filterProducts;\n }", "title": "" }, { "docid": "73ee417bfda7efa0797a5c631a1eac1b", "score": "0.5256033", "text": "public function getSyncOrders($store)\n {\n $storeId = $this->getStoreId($store);\n\n $syncOrders = Mage::getModel('shippit/sync_order')\n ->getCollection()\n ->join(\n array('order' => 'sales/order'),\n 'order.entity_id = main_table.order_id',\n array(),\n null,\n 'left'\n )\n ->addFieldToFilter('main_table.status', Shippit_Shippit_Model_Sync_Order::STATUS_PENDING)\n ->addFieldToFilter('main_table.attempt_count', array('lteq' => Shippit_Shippit_Model_Sync_Order::SYNC_MAX_ATTEMPTS))\n ->addFieldToFilter('order.state', array('eq' => Mage_Sales_Model_Order::STATE_PROCESSING))\n ->addFieldToFilter('order.store_id', array('eq' => $storeId));\n\n // Check if order status filtering is active\n if ($this->helper->isFilterOrderStatusActive()) {\n $filterStatus = $this->helper->getFilterOrderStatus();\n\n // ensure there is a filtering value present\n if (!empty($filterStatus)) {\n $syncOrders->addFieldToFilter(\n 'order.status',\n array(\n 'in' => $filterStatus\n )\n );\n }\n }\n\n return $syncOrders;\n }", "title": "" }, { "docid": "95ad2d4fc1571e6bc6854c3b53a6d44e", "score": "0.5247685", "text": "public function search(Request $request)\n {\n try {\n $orders = array();\n $filter = Input::get('filter');\n $searchKey = Input::get('search_key');\n\n if($filter != '') {\n switch ($filter) {\n case 'all':\n if($searchKey != '') {\n $sql = \"select * from orders o \ninner join users u on u.id = o.order_user_id \ninner join products p on p.product_id = o.order_product_id \nwhere o.deleted = 0\nand (p.product_name like '%\".$searchKey.\"%'\nor u.username like '%\".$searchKey.\"%') \nunion \nselect * from orders o \ninner join users u on u.id = o.order_user_id \ninner join products p on p.product_id = o.order_product_id \nwhere o.deleted = 0 \nand (u.username like '%\".$searchKey.\"%'\nor p.product_name like '%\".$searchKey.\"%')\norder by order_id desc\";\n $orders = DB::select($sql);\n $orders = $this->arrayPaginator($orders, $request);\n\n } else {\n $sql = \"select * from orders o \ninner join users u on u.id = o.order_user_id \ninner join products p on p.product_id = o.order_product_id \nwhere o.deleted = 0 order by o.order_id desc\";\n $orders = DB::select($sql);\n $orders = $this->arrayPaginator($orders, $request);\n }\n\n break;\n case 'week':\n if($searchKey != '') {\n $sql = \"select * from orders o \ninner join users u on u.id = o.order_user_id \ninner join products p on p.product_id = o.order_product_id \nwhere o.deleted = 0\nand o.created_at > DATE_SUB(NOW(), INTERVAL 7 DAY)\nand (p.product_name like '%\".$searchKey.\"%'\nor u.username like '%\".$searchKey.\"%') \nunion\nselect * from orders o \ninner join users u on u.id = o.order_user_id \ninner join products p on p.product_id = o.order_product_id \nwhere o.deleted = 0 \nand o.created_at > DATE_SUB(NOW(), INTERVAL 7 DAY)\nand (u.username like '%\".$searchKey.\"%'\nor p.product_name like '%\".$searchKey.\"%')\norder by order_id desc\";\n $orders = DB::select($sql);\n $orders = $this->arrayPaginator($orders, $request);\n\n } else {\n $sql = \"select * from orders o \ninner join users u on u.id = o.order_user_id \ninner join products p on p.product_id = o.order_product_id \nwhere o.deleted = 0\nand o.created_at > DATE_SUB(NOW(), INTERVAL 7 DAY)\norder by o.order_id desc\";\n $orders = DB::select($sql);\n $orders = $this->arrayPaginator($orders, $request);\n }\n\n break;\n case 'today':\n if($searchKey != '') {\n $sql = \"select * from orders o \ninner join users u on u.id = o.order_user_id \ninner join products p on p.product_id = o.order_product_id \nwhere o.deleted = 0\nand DATE(o.created_at) = CURDATE()\nand (p.product_name like '%\".$searchKey.\"%'\nor u.username like '%\".$searchKey.\"%') \nunion \nselect * from orders o \ninner join users u on u.id = o.order_user_id \ninner join products p on p.product_id = o.order_product_id \nwhere o.deleted = 0 \nand DATE(o.created_at) = CURDATE()\nand (u.username like '%\".$searchKey.\"%'\nor p.product_name like '%\".$searchKey.\"%')\norder by order_id desc\";\n $orders = DB::select($sql);\n $orders = $this->arrayPaginator($orders, $request);\n\n } else {\n $sql = \"select * from orders o \ninner join users u on u.id = o.order_user_id \ninner join products p on p.product_id = o.order_product_id \nwhere o.deleted = 0\nand DATE(o.created_at) = CURDATE()\norder by o.order_id desc\";\n $orders = DB::select($sql);\n $orders = $this->arrayPaginator($orders, $request);\n }\n\n break;\n }\n }\n //echo $sql;\n //echo '<pre>'; print_r($orders); exit;\n\n return view('orders.show')->with(['orders' => $orders, 'filter' => $filter, 'serachKey' => $searchKey]);\n } catch (Exception $e) {\n Flash::message('Something went wrong ' . $e->getMessage());\n }\n }", "title": "" }, { "docid": "1b1260755b0e4e700574f9e64834835f", "score": "0.52410734", "text": "public function getOrdersDispatched(Request $request)\n {\n $id = $request->id;\n $aOrdersInPorgress = Order::with('user', 'order_item.menu_item')\n ->where('restaurant_id', '=', $id)\n ->where('status', '=', 2)\n ->where('accepted', '=', 1)\n ->orderBy('delivery_time', 'asc')\n ->get();\n return response()->json($aOrdersInPorgress);\n }", "title": "" }, { "docid": "58f20113da5387d4da795da5b24311b9", "score": "0.5237308", "text": "public function findByFilter(array $filter, array $order);", "title": "" }, { "docid": "bf7c1bd5dd163525e0b11e3fe978eac4", "score": "0.52343756", "text": "public function getOrders(Request $request) {\n $orders = Orders::orders();\n $status = $request->input('status', null);\n\n if ($status !== null) {\n $orders->where('status', $status);\n }\n\n $orders = $orders->paginate(Orders::getPageSize());\n\n return response()->json($orders);\n }", "title": "" }, { "docid": "21c304698cd603c4e27d109d6ce776ac", "score": "0.5234142", "text": "public function filter_orders_by_export_status() {\n\t\tglobal $typenow;\n\n\t\tif ( 'shop_order' === $typenow ) {\n\n\t\t\t$count = $this->get_order_count();\n\n\t\t\t$terms = array(\n\t\t\t\t0 => (object) array( 'count' => $count['not_exported'], 'term' => __( 'Not Exported to CSV', 'woocommerce-customer-order-csv-export' ) ),\n\t\t\t\t1 => (object) array( 'count' => $count['exported'], 'term' => __( 'Exported to CSV', 'woocommerce-customer-order-csv-export' ) )\n\t\t\t);\n\n\t\t\t?>\n\t\t\t<select name=\"_shop_order_csv_export_status\" id=\"dropdown_shop_order_csv_export_status\">\n\t\t\t\t<option value=\"\"><?php _e( 'Show all orders', 'woocommerce-customer-order-csv-export' ); ?></option>\n\t\t\t\t<?php foreach ( $terms as $value => $term ) : ?>\n\t\t\t\t<option value=\"<?php echo esc_attr( $value ); ?>\" <?php echo esc_attr( isset( $_GET['_shop_order_csv_export_status'] ) ? selected( $value, $_GET['_shop_order_csv_export_status'], false ) : '' ); ?>>\n\t\t\t\t\t<?php printf( '%1$s (%2$s)', esc_html( $term->term ), esc_html( $term->count ) ); ?>\n\t\t\t\t</option>\n\t\t\t\t<?php endforeach; ?>\n\t\t\t</select>\n\t\t\t<?php\n\t\t}\n\t}", "title": "" }, { "docid": "90133124fc9a86c8d7d6816ca3b5c760", "score": "0.52339184", "text": "public function getFilteredItems($offer_types,$tags,$artist_id=null,$order='chronological') {\n\t\tif(!$artist_id) { $artist_id = $this->artist_id; }\n\t\t$addedIDs = array();\n\t\t$addedItems = array();\n\t\t## In Offer Types\n\t\t$in_offer_type = '';\n\t\t$total_offer_types = 0;\n\t\tforeach($offer_types as $key=>$offer_type) {\n\t\t\tif(strlen($offer_type)) {\n\t\t\t\t$total_offer_types++;\n\t\t\t\tif($key==0) { $in_offer_type .= '\\''.$offer_type.'\\''; }\n\t\t\t\telse { $in_offer_type .= ', \\''.$offer_type.'\\''; }\n\t\t\t}\n\t\t}\n\t\t$WHERE_IN_OFFER_TYPE = ($total_offer_types) ? ' AND '.$this->wpdb->prefix.'topspin_items.offer_type IN ('.$in_offer_type.')' : '';\n\t\t## In Tags\n\t\t$in_tags = '';\n\t\t$total_tags = 0;\n\t\tforeach($tags as $key=>$tag) {\n\t\t\tif(strlen($tag)) {\n\t\t\t\t$total_tags++;\n\t\t\t\tif($key==0) { $in_tags .= '\\''.$tag.'\\''; }\n\t\t\t\telse { $in_tags .= ', \\''.$tag.'\\''; }\n\t\t\t}\n\t\t}\n\t\t$WHERE_IN_TAGS = ($total_tags) ? ' AND '.$this->wpdb->prefix.'topspin_items_tags.tag_name IN ('.$in_tags.')' : '';\n\t\t## Order By\n\t\t$order_by = ($order=='alphabetical') ? $this->wpdb->prefix.'topspin_items.name ASC' : $this->wpdb->prefix.'topspin_items.id ASC';\n\t\t$sql = <<<EOD\n\t\tSELECT\n\t\t\t{$this->wpdb->prefix}topspin_items.id,\n\t\t\t{$this->wpdb->prefix}topspin_items.artist_id,\n\t\t\t{$this->wpdb->prefix}topspin_items.reporting_name,\n\t\t\t{$this->wpdb->prefix}topspin_items.embed_code,\n\t\t\t{$this->wpdb->prefix}topspin_items.width,\n\t\t\t{$this->wpdb->prefix}topspin_items.height,\n\t\t\t{$this->wpdb->prefix}topspin_items.url,\n\t\t\t{$this->wpdb->prefix}topspin_items.poster_image,\n\t\t\t{$this->wpdb->prefix}topspin_items.poster_image_source,\n\t\t\t{$this->wpdb->prefix}topspin_items.product_type,\n\t\t\t{$this->wpdb->prefix}topspin_items.offer_type,\n\t\t\t{$this->wpdb->prefix}topspin_offer_types.name AS offer_type_name,\n\t\t\t{$this->wpdb->prefix}topspin_items.description,\n\t\t\t{$this->wpdb->prefix}topspin_items.price,\n\t\t\t{$this->wpdb->prefix}topspin_items.name,\n\t\t\t{$this->wpdb->prefix}topspin_items.campaign,\n\t\t\t{$this->wpdb->prefix}topspin_items.offer_url,\n\t\t\t{$this->wpdb->prefix}topspin_items.mobile_url,\n\t\t\t{$this->wpdb->prefix}topspin_items_tags.tag_name,\n\t\t\t{$this->wpdb->prefix}topspin_currency.currency,\n\t\t\t{$this->wpdb->prefix}topspin_currency.symbol\n\t\tFROM {$this->wpdb->prefix}topspin_items\n\t\tLEFT JOIN\n\t\t\t{$this->wpdb->prefix}topspin_items_tags ON {$this->wpdb->prefix}topspin_items.id = {$this->wpdb->prefix}topspin_items_tags.item_id\n\t\tLEFT JOIN\n\t\t\t{$this->wpdb->prefix}topspin_currency ON {$this->wpdb->prefix}topspin_items.currency = {$this->wpdb->prefix}topspin_currency.currency\n\t\tLEFT JOIN\n\t\t\t{$this->wpdb->prefix}topspin_offer_types ON {$this->wpdb->prefix}topspin_items.offer_type = {$this->wpdb->prefix}topspin_offer_types.type\n\t\tWHERE\n\t\t\t{$this->wpdb->prefix}topspin_items.artist_id = %d\n\t\t\t{$WHERE_IN_TAGS}\n\t\t\t{$WHERE_IN_OFFER_TYPE}\n\t\tORDER BY\n\t\t\t{$order_by}\nEOD;\n\t\t$data = $this->wpdb->get_results($this->wpdb->prepare($sql,$artist_id),ARRAY_A);\n\t\tforeach($data as $key=>$row) {\n\t\t\t$row['campaign'] = unserialize($row['campaign']);\n\t\t\t##\tAdd Images\n\t\t\t$row['images'] = $this->getItemImages($row['id']);\n\t\t\t##\tGet Default Image\n\t\t\t$row['default_image'] = (strlen($row['poster_image_source'])) ? $this->getItemDefaultImage($row['id'],$row['poster_image_source']) : $row['poster_image'];\n\t\t\t$row['default_image_large'] = (strlen($row['poster_image_source'])) ? $this->getItemDefaultImage($row['id'],$row['poster_image_source'],'large') : $row['poster_image'];\n\t\t\tif(!in_array($row['id'],$addedIDs)) {\n\t\t\t\tarray_push($addedIDs,$row['id']);\n\t\t\t\tarray_push($addedItems,$row);\n\t\t\t}\n\t\t}\n\t\treturn $addedItems;\n\t}", "title": "" }, { "docid": "3680641c1a488ac3f2d6793e3cb4fc53", "score": "0.5228574", "text": "public function deliverOrdersModel()\n\t\t{\n\t\t\t$result=$this->db->query(\"SELECT * FROM users, orders, customers, delivery_method \n\t\t\t\tWHERE orders.customer_id=customers.customer_id\n\t\t\t\tAND orders.vender_id=users.id\n\t\t\t\tAND orders.delivery_method_id=delivery_method.id\n\t\t\t\tAND orders.order_status=3\"\n\t\t\t);\n\t\t\t\n\t\t\treturn $result->result_array();\n\t\t}", "title": "" }, { "docid": "d6e76c428404b152ffc663f5bc6b8403", "score": "0.52270985", "text": "public function getIndex(Request $request)\n {\n $query = Order::whereRaw('1=1');\n\n if ($request->has('filter')) {\n $filters = array_filter($request->input('filter'), 'strlen');\n\n foreach ($filters as $filter_name => $filter_value) {\n switch ($filter_name) {\n case 'search':\n $query->where($filters['search_column'], 'like', '%'.$filter_value.'%');\n break;\n\n case 'date_from':\n $query->where('created_at', '>', $filter_value);\n break;\n\n case 'date_to':\n $query->where('created_at', '<', $filter_value);\n break;\n\n case 'tool_id':\n $query->whereHas('items', function ($sub_query) use ($filter_value) {\n $sub_query->where('tool_id', $filter_value);\n });\n break;\n\n case 'tool_category_id':\n $query->whereHas('items.tool', function ($sub_query) use ($filter_value) {\n $sub_query->where('tool_category_id', $filter_value);\n });\n break;\n\n case 'total_price':\n $query->where('total_price', $filters['price_comparison_sign'], $filter_value);\n break;\n\n case 'payment_type':\n $query->where('payment_type', $filter_value);\n break;\n\n case 'currency':\n $query->where('currency', $filter_value);\n break;\n\n case 'order_status_id':\n $query->where('order_status_id', $filter_value);\n break;\n\n default:\n continue 2;\n }\n }\n }\n\n $query->orderBy('created_at', 'desc');\n\n if ($request->has('print_pdf')) {\n return @PDF::loadView('admin::pdf.orders', ['orders' => $query->get()])->download('orders.pdf');\n }\n\n $orders = $query->paginate(15);\n\n return view('admin::orders.index', compact('orders'));\n }", "title": "" }, { "docid": "5277f3ab95beb5ed88e76de3bd2f034e", "score": "0.5222943", "text": "public function getAllOrders($symbol = NULL, $orderId = NULL, $limit = NULL, $recvWindow = NULL);", "title": "" }, { "docid": "9358d4e3cd20c018952a2805c4cde2f8", "score": "0.5215343", "text": "public function getFilteredDetails();", "title": "" }, { "docid": "e0be2efe2179911441f302430ec4a093", "score": "0.5205851", "text": "public function orders()\r\n {\r\n return $this->hasMany('Syscover\\Market\\Models\\Order', 'customer_id');\r\n }", "title": "" }, { "docid": "d6272c1a25e0266039eb6a0bf2639606", "score": "0.52034205", "text": "function returned_orders() {\n global $wpdb;\n $woo_cust_id = get_current_user_id();\n $returned_orders = $wpdb->get_results( $wpdb->prepare( \"SELECT * FROM randys_orders o LEFT JOIN randys_customers c ON c.custnmbr = o.randys_customer_id WHERE c.woocustid=%s AND status='returned'\", array($woo_cust_id) ) );\n\n return $returned_orders;\n}", "title": "" }, { "docid": "e3ec1970f02c547821d94d25349c6db1", "score": "0.5201473", "text": "private function getOrders()\n {\n $OD = $this->dbclient->coins->OwnOrderBook;\n\n $ownOrders = $OD->find(\n array('$or'=>\n array(array('Status'=>'buying'), array('Status'=>'selling'))\n ));\n\n $output = ' {\n \"success\" : true,\n \"message\" : \"\",\n \"result\" : [';\n foreach ($ownOrders as $ownOrder) {\n\n if ($ownOrder) {\n if ($ownOrder->Status == 'buying' or $ownOrder->Status == 'selling') {\n $uri = $this->baseUrl . 'public/getorderbook';\n $params['market'] = $ownOrder->MarketName;\n if ($ownOrder->Status == 'buying') {\n $params['type'] = 'sell';\n $params['uuid'] = $ownOrder->BuyOrder->uuid;\n $limit = 'buy';\n } elseif ($ownOrder->Status == 'selling') {\n $params['type'] = 'buy';\n $params['uuid'] = $ownOrder->SellOrder->uuid;\n $limit = 'sell';\n }\n\n if (!empty($params)) {\n $uri .= '?' . http_build_query($params);\n }\n\n $sign = hash_hmac('sha512', $uri, $this->apiSecret);\n $ch = curl_init($uri);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array('apisign: ' . $sign));\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $result = curl_exec($ch);\n $answer = json_decode($result);\n $success = false;\n $quantity = 0;\n $rate = 0;\n\n if ($answer->success == true) {\n $closest_rate = $answer->result[0]->Rate;\n\n if ($ownOrder->Status == 'buying' && $ownOrder->BuyOrder->Rate >= $closest_rate) {\n $success = true;\n $quantity = $answer->result[0]->Quantity;\n $rate = $answer->result[0]->Rate;\n }\n\n if ($ownOrder->Status == 'selling' && $ownOrder->SellOrder->Rate <= $closest_rate) {\n $success = true;\n $quantity = $answer->result[0]->Quantity;\n $rate = $answer->result[0]->Rate;\n }\n\n if (!$success) {\n $output = $output.'{\n \"AccountId\" : null,\n \"OrderUuid\" : \"' . $params['uuid'] . '\",\n \"Exchange\" : \"' . $params['market'] . '\",\n \"Type\" : \"LIMIT_' . strtoupper($limit) . '\",\n \"Quantity\" : ' . $quantity . ',\n \"QuantityRemaining\" : 0.00000000,\n \"Limit\" : 0.00000001,\n \"Reserved\" : 0.00001000,\n \"ReserveRemaining\" : 0.00001000,\n \"CommissionReserved\" : 0.00000002,\n \"CommissionReserveRemaining\" : 0.00000002,\n \"CommissionPaid\" : 0.00000000,\n \"Price\" : ' . $rate . ',\n \"PricePerUnit\" : ' . $closest_rate . ',\n \"Opened\" : \"2014-07-13T07:45:46.27\",\n \"Closed\" : null,\n \"IsOpen\" : true,\n \"Sentinel\" : \"6c454604-22e2-4fb4-892e-179eede20972\",\n \"CancelInitiated\" : false,\n \"ImmediateOrCancel\" : false,\n \"IsConditional\" : false,\n \"Condition\" : \"NONE\",\n \"ConditionTarget\" : null\n },';\n\n }\n }\n }\n }\n }\n $output = rtrim($output, ',').']\n}';\n return $output;\n }", "title": "" }, { "docid": "cffd11337015d63ebd03bf1e4000133f", "score": "0.5195131", "text": "public function getProducts(){\n\t\t$user = Auth::user();\n\t\tif($user->hasRole('admin')){\n\t\t\t$products = Product::all();\n\t\t}\n\t\telse if($user->hasRole('distributor') || $user->hasRole('sub_distributor')){\n\t\t\t$products = Product::where('days', '!=', 0)->get();\n\t\t}\n\t\treturn $products;\n\t}", "title": "" }, { "docid": "00bd341c98f8fbf69f12c73422a3898f", "score": "0.5193357", "text": "public function getOffersList()\n {\n $query = $this->createQueryBuilder('offers')\n ->getQuery();\n\n return $query->getResult();\n }", "title": "" }, { "docid": "9b8591cb949bb4cd95c6871bf9aa4bf2", "score": "0.51901513", "text": "protected function _getVendorCollection()\n {\n if (is_null($this->_vendorCollection)) {\n $queryText = $this->getQueryText();\n $vendorShoptable = $this->_resourceConnection->getTableName('ced_csmarketplace_vendor_shop');\n $this->_vendorCollection = $this->_collectionFactory->create();\n $this->_vendorCollection->addAttributeToSelect('*');\n //$this->_vendorCollection->getSelect()->join(['vendor_shop' => $vendorShoptable], 'e.entity_id=vendor_shop.vendor_id AND vendor_shop.shop_disable=' . Vshop::ENABLED, ['shop_disable']);\n\n $this->_vendorCollection->addAttributeToFilter('meta_keywords', ['like' => '%' . $queryText . '%']);\n if ($this->_csmarketplaceHelper->isSharingEnabled()) {\n $this->_vendorCollection->addAttributeToFilter('website_id', $this->_storeManager->getStore()->getWebsiteId());\n }\n\n if ($this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::MODULE_ENABLE)) {\n //------------------- Custom Filter----------------[START]\n\n $savedLocationFromSession = $this->_hyperlocalHelper->getShippingLocationFromSession();\n $filterType = $this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::FILTER_TYPE);\n $radiusConfig = $this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::FILTER_RADIUS);\n $distanceType = $this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::DISTANCE_TYPE);\n $apiKey = $this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::API_KEY);\n $filterProductsBy = $this->_csmarketplaceHelper->getStoreConfig(HyperlocalHelper::FILTER_PRODUCTS_BY);\n\n if ($filterProductsBy == 'vendor_location' || $filterType == 'distance') {\n $vendorIds = [0];\n if ($savedLocationFromSession) {\n\n /** Filter Products By Vendor Location */\n if ($filterType == 'city_state_country') {\n\n //------------------- Filter By City,country & state----------------[START]\n $locationCollection = $this->_hyperlocalHelper->getFilteredlocationByCityStateCountry($savedLocationFromSession);\n if ($locationCollection) {\n $vendorIds = $locationCollection->getColumnValues('vendor_id');\n }\n\n //------------------- Filter By City,country & state----------------[END]\n } elseif ($filterType == 'zipcode' && isset($savedLocationFromSession['filterZipcode'])) {\n\n //------------------- Filter By Zipcode----------------[START]\n $resource = $this->_resourceConnection;\n $tableName = $resource->getTableName('ced_cshyperlocal_shipping_area');\n $this->zipcodeCollection->getSelect()->joinLeft($tableName, 'main_table.location_id = ' . $tableName . '.id', ['status', 'is_origin_address']);\n $this->zipcodeCollection->addFieldToFilter('main_table.zipcode', $savedLocationFromSession['filterZipcode'])\n ->addFieldToFilter('status', Shiparea::STATUS_ENABLED);\n $this->zipcodeCollection->getSelect()->where(\"`is_origin_address` IS NULL OR `is_origin_address` = '0'\");\n $vendorIds = $this->zipcodeCollection->getColumnValues('vendor_id');\n //------------------- Filter By Zipcode----------------[END]\n } elseif ($filterType == 'distance') {\n $tolat = $savedLocationFromSession['latitude'];\n $tolong = $savedLocationFromSession['longitude'];\n $vIds = [];\n if ($tolat != '' && $tolong != '') {\n $vendorCollection = $this->_collectionFactory->create();\n $vendorCollection->addAttributeToSelect('*');\n if ($vendorCollection->count()) {\n foreach ($vendorCollection as $vendor) {\n $distance = $this->_hyperlocalHelper->calculateDistancebyHaversine($vendor->getLatitude(), $vendor->getLongitude(), $tolat, $tolong);\n if ($distance <= $radiusConfig) {\n $vendorIds[] = $vendor->getId();\n }\n }\n }\n }\n }\n $this->_vendorCollection->addAttributeToFilter('entity_id', ['in' => $vendorIds]);\n }\n }\n //------------------- Custom Filter ----------------[END]\n }\n\n $this->prepareSortableFields();\n }\n return $this->_vendorCollection;\n }", "title": "" }, { "docid": "fcc9958d6f620c2404ff5c836a658611", "score": "0.5187697", "text": "public function orders() {\n if ($this->orders != null)\n return $this->orders;\n $ids = Pdb::fetchAll('small_order', self::$table);\n return $this->orders = safe_array_map(function ($id) { return new Order($id); }, $ids); // no paging here\n }", "title": "" } ]
aac63630c81b9e497bdc10191a392b71
add a node to the head of the list
[ { "docid": "c32c4c93a0bf4625966511c8f654cad4", "score": "0.6438281", "text": "public function attach($head,$node){\n $node->setPrevious($head);\n $node->setNext($head->getNext());\n $head->getNext()->setPrevious($node);\n $head->setNext($node);\n }", "title": "" } ]
[ { "docid": "1eabbc6b2af459c540878f0ac2c94e7c", "score": "0.76509655", "text": "function addAtHead($val) {\n\t\t$new_node = new self($val);\n\t\t$new_node->next = $this->next;\n\t\t$this->next = $new_node;\n\t}", "title": "" }, { "docid": "7bfc097fe429f47709f19cd582b0eaa2", "score": "0.75340164", "text": "public function addFirst($data)\n {\n $link = new ListNode($data);\n $link->next = $this->firstNode;\n $this->firstNode = &$link;\n \n /* If this is the first node inserted in the list\n then set the lastNode pointer to it.\n */\n if($this->lastNode == NULL)\n $this->lastNode = &$link;\n \n $this->count++;\n }", "title": "" }, { "docid": "a4ad41f0fe50aeb7b50467335ccf9361", "score": "0.7366942", "text": "public function addFirst($data)\n {\n $node = new Node($data);\n $node->next = $this->head;\n $this->head = $node;\n if ($this->last==NULL)\n $this->last = $node;\n $this->count++;\n }", "title": "" }, { "docid": "2142656283e7c1e03714c2be15d8d772", "score": "0.73602617", "text": "public function addFirst($value)\n\t{\n\t\t$temp = $this->head;\n\t\t$this->head = new Node($value, $temp);\n\t\t$this->size++;\n\t}", "title": "" }, { "docid": "7d380c1bfd4807848be072c2df1e2a69", "score": "0.7256211", "text": "public function addFirst($value) {\n if($this->isEmpty()) {\n $tmp = new Node($value, null, null);\n $this->head = $tmp;\n $this->tail = $tmp;\n $this->size++;\n }\n else {\n $this->head->prev = new Node($value, $this->head, null);\n $this->head = $this->head->prev;\n $this->size++;\n }\n }", "title": "" }, { "docid": "54fce412ce610214632d10ca45dc2495", "score": "0.7198446", "text": "function insertfirst($data)\n {\n $newnode=new Node($data);// Create a new node with given data \n if(self::$head==null)\n {\n self::$head=$newnode;\n $this->size++;\n }\n else\n {\n \n $newnode->next=self::$head;\n self::$head=$newnode;\n \n $this->size++;\n }\n }", "title": "" }, { "docid": "d36283b7f29711f72bed468d75cf8dd7", "score": "0.7122757", "text": "public function add(Lumine_Tree_Node $node){\n\t\tif( !in_array($node,$this->nodeList) ){\n\t\t\t$this->nodeList[] = $node;\n\t\t\t$node->setNodeList( $this );\n\t\t}\n\t}", "title": "" }, { "docid": "8a7c7fac2054ab46439bdee5c5cd8c12", "score": "0.693322", "text": "public function addFirst($value)\n\t{\n\t\t$temp = new Node($value);\n\n\t\tif ($this->tail == null) {\n\t\t\t$this->tail = $temp;\n\t\t\t$this->tail->setNext($this->tail);\n\t\t} else { \n\t\t\t$temp->setNext($this->tail->next());\n\t\t\t$this->tail->setNext($temp);\n\t\t}\n\n\t\t$this->size++;\n\t}", "title": "" }, { "docid": "53bf1f4c1b8d59640244c26ce53fc2bf", "score": "0.68510264", "text": "public function addToFront(DTNode $node)\n\t{\n\t\t// Set the new node's pointer to point to the current head node\n\t\tif ($this->head) {\n\t\t\t$node->setNextNode($this->head);\n\t\t}\n\n\t\t// Set the head node to point to the current node\n\t\t$this->setHead($node);\n\t}", "title": "" }, { "docid": "f8e928094e65158b0e586e5c2985f479", "score": "0.68390095", "text": "public function insertFront($item) {\n\t\t\n\t\t$node = new SListNode($item);\n\t\t$node->_next($this->_head);\t//old head pointer is now next\n\t\t\n\t\t//head is now this node\n\t\t$this->_head = &$node;\n\t\t\n\t\t//if no nodes in list\n\t\tif ($this->_tail == NULL) {\n\t\t\t$this->_tail = &$node;\t//set new node as tail too\n\t\t}\n\t\t\n\t\t$this->size++;\n\t\t\n\t\treturn $this->_head;\n\t\t\n\t}", "title": "" }, { "docid": "5783ae1543a8959045399c0d18238457", "score": "0.682516", "text": "function add($data)\n {\n $temp = new Node($data);\n //check if list is empty\n if ($this->isEmpty()) {\n //add at first ie head;\n $this->head = $temp;\n $this->head->next = $this->tail;\n }\n //check id data is less than the data in head\n else if ($this->head->data > $data) {\n $temp->next = $this->head;\n $this->head = $temp;\n }\n //stores in desired position\n else {\n $node = $this->head;\n $prev;\n while ($node != null) {\n if ($data < $node->data) {\n $prev->next = $temp;\n $temp->next = $node;\n $this->size++;\n return;\n }\n $prev = $node;\n $node = $node->next;\n }\n $prev->next = $temp;\n } \n //incrementing size\n $this->size++;\n }", "title": "" }, { "docid": "3f8a98c7f4d6ec33d17d0a36aab1dfe4", "score": "0.6791869", "text": "public function insertFront($data) {\n $newNode = new ListNode($data);\n \n if($this->head == null)\n {\n $this->head = $newNode;\n $this->tail = $newNode;\n }\n else\n {\n $newNode->setNext($this->head);\n $this->head->setPrev($newNode);\n $this->head = $newNode;\n }\n \n $this->length++;\n }", "title": "" }, { "docid": "fc4b4c9db3075b332fb2b9dc0a8d04fc", "score": "0.6751577", "text": "public function setHead(DTNode $node)\n\t{\n\t\t$this->head = $node;\n\t}", "title": "" }, { "docid": "a6203b8b9b55df34d2f47194122c19f9", "score": "0.6715041", "text": "function ll_push($data){\n \t$node = new Node($data);\n\t\tif($this->num_nodes == 0){\n\t\t\t$this->head = $node;\n\t\t\t$this->tail = $node;\n\t\t}\n\t\telse{\n\t\t\t$current = $this->head;\n\t\t\t$node->set_Next($current);\n\t\t\t$this->head = $node;\n\t\t\t\t\n\t\t}\n\t\t$this->num_nodes++;\n }", "title": "" }, { "docid": "2aefcf37053b8099ee072c8c3e7b1f93", "score": "0.67024904", "text": "public function add($val)\n\t{\n \n \t\t//check to see if there is not a head because than we can create the head node\n \t\tif($this->head == null)\n \t\t{\n \t\t//point head to that new node\n \t\t$this->head = new Node($val);\n \t\t}\n \t\telse\n \t\t{\n \t\t//we have a head lets navigate through the Linked List till we get to the end\n \t\t//when we reach the end we can add the new node there\n \n \t\t//temp to help us navigate the linked list\n\t \t$current = $this->head;\n\t \n\t \t//while loops are extremely skilled at looping through a linked list \n\t \twhile($current->next)\n\t \t{\n\t \t\t//move our pointer forward to the next node\n\t \t\t$current = $current->next;\n\t \t}\n\t \t//we reached the end! time to add the new node to the end\n\t \t$current->next = new Node($val);\n \t\t}\n \t}", "title": "" }, { "docid": "1037f0a9abd20b0696c2e8c7c1183b16", "score": "0.6696935", "text": "public function add($data)\n {\n if($this->firstNode != NULL)\n {\n $link = new ListNode($data);\n $this->lastNode->next = $link;\n $link->next = NULL;\n $this->lastNode = &$link;\n $this->count++;\n }\n else\n {\n $this->addFirst($data);\n }\n }", "title": "" }, { "docid": "d57afbce77f6bf739a23b82356ff7dcd", "score": "0.66163945", "text": "public function addnode(){\n\n\t}", "title": "" }, { "docid": "3d14757d73ae5dd0460cf01c52a400fb", "score": "0.64974535", "text": "function add_node($node){\r\n \t if ($this->job_chain_nodes==null){\r\n \t\t$this->job_chain_nodes=new SOS_Scheduler_Job_list_job_chain_nodes();\r\n \t} \t\r\n \t$this->job_chain_nodes->addNode($node);\r\n \treturn $node;\r\n }", "title": "" }, { "docid": "8891c2ff9ee6865dbde6fed7eba90154", "score": "0.64845765", "text": "function ll_append($data){\n\t\t$new_node = new Node($data);\n\t\t\n\t\tif($this->num_nodes == 0){\n\t\t\t$this->head = $new_node;\n\t\t\t$this->tail = $new_node;\n\t\t}\n\t\telse{\n\t\t\t$last_node = $this->tail;\n\t\t\t$last_node->set_Next($new_node);\n\t\t\t$this->tail = $new_node;\n\t\t}\n\t\t$this->num_nodes++;\n\t}", "title": "" }, { "docid": "eaf502e2c17c3d0d16fcc10c382ab1a7", "score": "0.64652145", "text": "function addFirst(int $element) {\n $new = new Node($element);\n if ($this->length == 0)\n $this->last = $new;\n else\n $new->next = $this->first;\n \n $this->first = $new;\n ++$this->length;\n }", "title": "" }, { "docid": "46220374c541ceefcf9c1082fe92a4c6", "score": "0.63772583", "text": "public function add($node) {\n return $this->addNode($node);\n }", "title": "" }, { "docid": "a59d51146861297404c29c55caa2a6fe", "score": "0.636904", "text": "public function Add($data) {\r\n\r\n // No data to insert into list\r\n if ($data == null)\r\n return null;\r\n\r\n $node = new Node($data);\r\n\r\n // The Linked list is empty\r\n if ($this->head == null)\r\n {\r\n $this->head = &$node;\r\n $this->tail = $this->head;\r\n $this->count++;\r\n return $node;\r\n }\r\n\r\n // Add to the end of the list\r\n $this->tail->next = &$node;\r\n $node->previous = $this->tail;\r\n $this->tail = &$node;\r\n $this->count++;\r\n return $node;\r\n }", "title": "" }, { "docid": "4d09060a199d52bd9b0c70a90f278d3a", "score": "0.6206686", "text": "public function addNode($node) {\n $this->nodes[] = $node;\n return $this;\n }", "title": "" }, { "docid": "1fbd8c0eb2904ea87dfbe0c81d8264d9", "score": "0.61936975", "text": "public function push($item) {\n\n if ($head === null) {\n\n $this->head = $node;\n $this->tail = $node;\n $this->length++;\n return $node;\n }\n $this->$node = new Node($value);\n $this->tail = $node;\n $this->length++;\n\n return $node;\n }", "title": "" }, { "docid": "196a79b51a7dba5b6e0543ee09f77672", "score": "0.6137712", "text": "public function addNode($node){\n\t\tif($node){\n\t\t\tarray_push($this->containedNodes, $node) ;\n\t\t}else{\n\t\t\treturn ;\n\t\t}\n\t}", "title": "" }, { "docid": "d1474002e2b09f1c20ba4ec0759eabb7", "score": "0.6116413", "text": "public function add($t){\n\t\tarray_push($this->topList, $t);\n\t}", "title": "" }, { "docid": "64f1eb23c66b7bd1b8521376e5936ef9", "score": "0.6108532", "text": "public function add(NodeInterface $node);", "title": "" }, { "docid": "4cf5f3a0d554e62652a2542f33903048", "score": "0.60860443", "text": "public function addNode(RiakNode $node)\n {\n $this->nodes[] = $node;\n }", "title": "" }, { "docid": "88dcc13090999472b78849237a989b86", "score": "0.6003828", "text": "public function addNode($node)\r\n\t{\r\n\t\t$this->nodeCache[$node->__toString()] = $node;\r\n\t}", "title": "" }, { "docid": "7973c49dbf89a6f66dc44489be0677ab", "score": "0.59853876", "text": "public function addNode($hash, $node)\n {\n $this->nodeList[$hash] = new Vertex($hash, $node);\n }", "title": "" }, { "docid": "9edf7141b8303b77166f9015c1576587", "score": "0.5980423", "text": "protected function nodeAdd() {\n //debug('nodeadd');\n $this->prepareNodeUpdate();\n\n /** @var \\Drupal\\node\\Entity\\Node $node */\n $node = entity_create('node', $this->array);\n $node->setNewRevision();\n $node->save();\n }", "title": "" }, { "docid": "343200832f637ff1755ab8c007e77397", "score": "0.59753275", "text": "public function push($node);", "title": "" }, { "docid": "14938fb906024cbeec1137c6c43146e6", "score": "0.59680086", "text": "public function addLast($value) {\n if($this->isEmpty()) {\n // If empty, insert and setup.\n $tmp = new Node($value, null, null);\n $this->head = $tmp;\n $this->tail = $tmp;\n $this->size++;\n }\n else \n {\n $this->tail->next = new Node($value, null, $this->tail);\n $this->tail = $this->tail->next;\n $this->size++;\n }\n }", "title": "" }, { "docid": "14938fb906024cbeec1137c6c43146e6", "score": "0.59680086", "text": "public function addLast($value) {\n if($this->isEmpty()) {\n // If empty, insert and setup.\n $tmp = new Node($value, null, null);\n $this->head = $tmp;\n $this->tail = $tmp;\n $this->size++;\n }\n else \n {\n $this->tail->next = new Node($value, null, $this->tail);\n $this->tail = $this->tail->next;\n $this->size++;\n }\n }", "title": "" }, { "docid": "31e309fd3517984ddd1c63df49fcb66e", "score": "0.5902628", "text": "public function unshift($data)\n {\n\n $node = new node();\n $node->data = $data;\n $node->next = &$this->head->next;\n\n $this->head->next = &$node;\n\n $this->length++;\n }", "title": "" }, { "docid": "b9033bf24bf2e0e84d864d31e7a65e4d", "score": "0.58543766", "text": "public function addLast($value)\n\t{\n\t\t$temp = new Node($value, null);\n\t\tif ($this->head != null) {\n\t\t\t$node = $this->head;\n\t\t\twhile ($node->next() != null) {\n\t\t\t\t$node = $node->next();\n\t\t\t}\n\t\t\t$node->setNext($temp);\n\t\t} else {\n\t\t\t$this->head = $temp;\n\t\t}\n\t\t$this->size++;\n\t}", "title": "" }, { "docid": "14386c4654da313c7ddffc6e7be3de99", "score": "0.57934856", "text": "function addAtTail($val) {\n\t\t$p = $this;\n\n\t\twhile ($p->next) {\n\t\t\t$p = $p->next;\n\t\t}\n\t\t$new_node = new self($val);\n\t\t$new_node->next = $p->next;\n\t\t$p->next = $new_node;\n\t}", "title": "" }, { "docid": "e3983856142bc24b5358e20339293861", "score": "0.5785897", "text": "public function addBefore($key, $toAdd) {\n if($this->isEmpty()) {\n throw new Exception(\"Key \". $key . \" does not exist!\");\n }\n $tmp = $this->head;\n while($tmp) {\n if($tmp->value == $key) {\n $newNode = new Node($toAdd, $tmp, $tmp->prev);\n $tmp->prev = $newNode;\n if($newNode->prev) {\n $newNode->prev->next = $newNode;\n } else {\n $this->head = $tmp;\n }\n\n $this->size++;\n return;\n }\n $tmp = $tmp->next;\n }\n throw new Exception(\"Key \". $key . \" does not exist!\");\n }", "title": "" }, { "docid": "38050dda0fbd37b558eacfa2920ddc6e", "score": "0.57820284", "text": "function insertFront($value) {\n // 队列已经满了\n if ($this->isFull()) {\n return false;\n }\n\n if ($this->head == null) {\n $node = new Node($value, null);\n $this->head = $node;\n $this->tail = $node;\n } else {\n $node = new Node($value, $this->head);\n $this->head = $node;\n }\n\n $this->count ++;\n return true;\n }", "title": "" }, { "docid": "6017ef05752f8ee4861fcb503fcc5156", "score": "0.5773674", "text": "public function addNode( $nodeName );", "title": "" }, { "docid": "1076b9ffe5bf2cbd9143cc4f8846b2ae", "score": "0.5752307", "text": "public function push($node) {\n parent::push($node);\n }", "title": "" }, { "docid": "84eb525915d8fb9b23082d5216953026", "score": "0.57241213", "text": "public function prepend(?Node $node): bool {\n if ($node === null) {\n return false;\n }\n /*\n * need to clone the object otherwise the object\n * references are going crazy.\n *\n * Furthermore, setting previous and next to null\n * as they will be set later.\n */\n $newNode = clone $node;\n $newNode->setPrevious(null);\n $newNode->setNext(null);\n\n if ($this->getHead() === null) {\n $this->setHead($newNode);\n return true;\n }\n $head = $this->getHead();\n $head->setPrevious($newNode);\n $newNode->setNext($head);\n $this->setHead($newNode);\n return true;\n }", "title": "" }, { "docid": "471327877986e99b5f37cab2e764e1e3", "score": "0.5708612", "text": "public function head () {}", "title": "" }, { "docid": "69cf23303278c6cef6cbf12b42ad54ae", "score": "0.56112766", "text": "public function add() {\n\t\t$this->_add ();\n\t}", "title": "" }, { "docid": "e753d3109f536c5d832b3e0e875b2095", "score": "0.5592197", "text": "public function prependList(string $value)\n {\n $item = new LinkedListItem($value);\n $item->setPrev(null);\n\n if($this->getFirst() == null) {\n $this->setFirst($item);\n $this->setLast($item);\n $item->setNext(null);\n } else {\n $this->getFirst()->setPrev($item);\n $item->setNext($this->getFirst());\n $this->setFirst($item);\n }\n\n return $item;\n }", "title": "" }, { "docid": "4bc236a0326ccb8379f8dc0c5ae4a76c", "score": "0.5587119", "text": "function TreeListNode(&$d) {\n\t\t$this->contents = $d;\n\t}", "title": "" }, { "docid": "a8c1114b60306a270f08ac250984653c", "score": "0.55819684", "text": "protected function preListItem($node)\n {\n echo EOL.str_repeat($this->indent,$this->depth);\n if ($this->depth != 0) {\n $this->openListTag($node);\n }\n }", "title": "" }, { "docid": "281e52cce51c6a6979e374069172dd8f", "score": "0.55718976", "text": "public function push(Node $node)\n {\n return array_push($this->_items, $node);\n }", "title": "" }, { "docid": "fcb82f5ac81458969260d609e2d94e8b", "score": "0.55462706", "text": "public function addLast($data)\n {\n if ($this->head !=NULL)\n {\n $node = new Node($data);\n $this->last->next = $node;\n $node->next = NULL;\n $this->last = $node;\n $this->count++;\n }else{\n $this->addFirst($data);\n }\n }", "title": "" }, { "docid": "fdc8a8de0d2816429978a4957a89127c", "score": "0.55369097", "text": "public function setStartingNode(Node $node) {\n $this->paths[] = array($node);\n $this->startingNode = $node;\n }", "title": "" }, { "docid": "35e3d22e6a5c86a5cc6a4d26344d1307", "score": "0.5534954", "text": "function add($item) {\n $this->bst->add($item);\n }", "title": "" }, { "docid": "96a2341b11d9c230ff8b2f2ce4d1854f", "score": "0.5532007", "text": "public function addNode(Node $node, $id = '')\n {\n if ($id === '') {\n $node->id = count($this->nodes);\n $this->nodes[] = $node;\n } else {\n $node->id = $id;\n $this->nodes[$id] = $node;\n ksort($this->nodes);\n }\n \n if ($this->maintainAdjacencyMatrix) {\n $this->adjacencyMatrix[$node->id] = array();\n for ($i = 0; $i < count($this->adjacencyMatrix); $i++) {\n $this->adjacencyMatrix[$node->id][$i] = null;\n $this->adjacencyMatrix[$i][$node->id] = null;\n }\n }\n }", "title": "" }, { "docid": "ebf99f59e8a2e1bbd30c2e078a7e4b8a", "score": "0.5529359", "text": "public function addFirst($uid) {\n if(empty($uid)) {\n throw new Exception('A unique ID is required.');\n }\n $this->addChild($this->_head, $uid);\n }", "title": "" }, { "docid": "df1ea6a2612e197df05ab7e5c340a487", "score": "0.5517168", "text": "function addSibling($d) {\n\t\t$temp = new TreeListNode($d);\n\t\t$temp->indent = $this->indent;\n\t\tif ($this->hasSibling() ) {\n\t\t\t$kid = & $this->sibling;\n\t\t\twhile ($kid->hasSibling() ) {\n\t\t\t\t$kid = & $kid->sibling;\n\t\t\t}\n\t\t\t$kid->sibling = &$temp;\n\t\t} else {\n\t\t\t$this->sibling = &$temp;\n\t\t}\n\t}", "title": "" }, { "docid": "0df33f26ebda7f7f09ee0cba9cc252a8", "score": "0.54845446", "text": "public function addHead($content)\n\t{\n\t\t$this->elements['head'][] = $content;\n\t\treturn $this->save();\n\t}", "title": "" }, { "docid": "7749931cb1abd03d0d7be4136602cf12", "score": "0.54824257", "text": "public function addNode($node, $type) {\n $this->request('addnode', array($node, $type));\n }", "title": "" }, { "docid": "aea1953d25c88eaf76861a28e0f8d56b", "score": "0.5459153", "text": "function addChild($d) {\n\t\t$temp = new TreeListNode($d);\n\t\t$temp->indent = $this->indent +1;\n\t\tif ($this->hasChild() ) {\n\t\t\t$kid = & $this->child;\n\t\t\twhile ($kid->hasSibling() ) {\n\t\t\t\t$kid = & $kid->sibling;\n\t\t\t}\n\t\t\t$kid->sibling = &$temp;\n\t\t} else {\n\t\t\t$this->child = &$temp;\n\t\t}\n\t}", "title": "" }, { "docid": "d8979f18d3ed8b34a0977c6921591eef", "score": "0.5431245", "text": "public function add()\n\t{\n\t\n\t}", "title": "" }, { "docid": "6fc7707a19d0eb9cf72be30b479e48ed", "score": "0.5424113", "text": "public function unshift($node) {\n return parent::unshift($node);\n }", "title": "" }, { "docid": "f7bba24cb3cca76371c192b4bf502cd7", "score": "0.5424022", "text": "public static function add();", "title": "" }, { "docid": "0eca1a0e077ff1dca9f91304d8f2473d", "score": "0.5424019", "text": "function append_node_list($urls, $referer)\n {\n if(isset($this->first_line_referer)) \n {\n if($this->first_line_referer != $referer) {\n print \"error in usage 'oddio': $referer called as first line\";\n print \" the first line is $this->first_line_referer\\n\";\n exit;\n }\n } else {\n $this->first_line_referer = $referer;\n print \"set as first line referer $referer\\n\";\n }\n\n $previous_obj; $inuse_obj; foreach ($urls as $url) \n {\n $inuse_obj = new oddio_node($referer, $url);\n $this->first_line_nodes[] += $inuse_obj;\n $inuse_obj->my_value = $this->first_line_elements;\n\n if(isset($previous_obj))\n $previous_obj->next_node = $inuse_obj;\n\n $previous_obj = $inuse_obj;\n\n $this->first_line_elements += 1;\n }\n }", "title": "" }, { "docid": "a826848f2c5428df329b4d26ca6831bb", "score": "0.54147804", "text": "public function add()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "410800f8a69726f1256b423691a0caf5", "score": "0.5413704", "text": "public function IndexAt($index)\r\n {\r\n //Index was negative or larger then the amount of Nodes in the list\r\n if ($index < 0 || $index > $this->Size())\r\n return null;\r\n\r\n $tmp = &$this->head;\r\n\r\n // Move to index\r\n for ($i = 0; $i < $index; $i++)\r\n {\r\n $tmp = $tmp->next;\r\n }\r\n // return the node at the index position\r\n return $tmp;\r\n }", "title": "" }, { "docid": "5850461f822052475459c4875f7ec8a8", "score": "0.54084986", "text": "public function addChild( $node ) {\n\t\t\t$this->children[] = $node;\n\t\t}", "title": "" }, { "docid": "8ed224e5caa5f5edadd44ee1804b22d4", "score": "0.53949714", "text": "public function unshift(Node $node)\n {\n return array_unshift($this->_items, $node);\n }", "title": "" }, { "docid": "ace2b081cbc0b5bc47c3856ea698d574", "score": "0.5391611", "text": "public function insertLast($item) {\n\t\t\n\t\t//create the node\n\t\t$node = new SListNode($item);\n\t\t$node->_next = NULL;\n\t\t\n\t\tif ($this->size > 0) {\n\t\t\t//point the old last to this node\n\t\t\t$this->_tail->_next = &$node;\n\t\t} else {\n\t\t\t$this->_head = &$node;\n\t\t}\n\t\t\n\t\t//set the tail to our new node\n\t\t$this->_tail = &$node;\n\t\t$this->size++;\n\t\t\n\t\treturn $this->_tail;\n\t}", "title": "" }, { "docid": "01ea6a164998af259922903bcf5a3bb5", "score": "0.53711206", "text": "public function add($element) {\r\n\t\tarray_push($this->lista, $element); \r\n\t}", "title": "" }, { "docid": "7c34f6f64b5ae02508b4e4cb3ba5860f", "score": "0.53315526", "text": "protected function _createListNode() {\n $listNode = $this->_document->createElement('li');\n $this->_currentNode->appendChild($listNode);\n return $listNode;\n }", "title": "" }, { "docid": "771d6b77c312ee22150e9b2e4bae61c5", "score": "0.5317416", "text": "function add()\n {\n }", "title": "" }, { "docid": "b9d57ad8f595c2e8429d8d3f5d72bd52", "score": "0.5306618", "text": "function add() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "78093d066e4d4356330982b70dc2f506", "score": "0.52894944", "text": "public function insertBack($data) {\n $newNode = new ListNode($data);\n \n if($this->head == null)\n {\n $this->head = $newNode;\n $this->tail = $newNode;\n }\n else\n {\n $this->tail->setNext($newNode);\n $newNode->setPrev($this->tail);\n $this->tail = $newNode;\n $newNode->setNext();\n }\n \n $this->length++;\n }", "title": "" }, { "docid": "6ff6830d259df32ca1a49bc8935ac782", "score": "0.52854365", "text": "public function add()\n\t{\n\n\t}", "title": "" }, { "docid": "6ff6830d259df32ca1a49bc8935ac782", "score": "0.52854365", "text": "public function add()\n\t{\n\n\t}", "title": "" }, { "docid": "6ff6830d259df32ca1a49bc8935ac782", "score": "0.52854365", "text": "public function add()\n\t{\n\n\t}", "title": "" }, { "docid": "71b88196fe50a6c5bd6b3193e319c321", "score": "0.52586585", "text": "public function testAddingAFirstNode() {\n\t\t$aNode = drupalReader\\rawNodeToES(drupalStubs\\stubRawNode());\n\t\t$indexName = esWriter\\indexNameFromEntity(self::TEST_INDEX_NAME, 'node', $aNode);\n\t\t$aliasName = esWriter\\aliasNameFromEntity(self::TEST_INDEX_NAME, 'node', $aNode);\n\n\t\tesWriter\\writeInto($this->esClient, $aliasName, $indexName, [$aNode]);\n\t\t$alias = esWriter\\aliasNameFromEntity(self::TEST_INDEX_NAME, $entityType = 'node', $aNode);\n\n\t\t//force refresh\n\t\t$this->esClient->indices()->refresh([\n\t\t\t'index' => $alias\n\t\t]);\n\n\t\t// has document been added to index ?\n\t\t$params = ['index' => $alias];\n\t\t$response = $this->esClient->count($params);\n\t\t$this->assertEquals(1, $response['count']);\n\n\t\t// and has index alias been added to ES\n\t\t$params = ['index' => esWriter\\aliasNameFromEntity(self::TEST_INDEX_NAME, 'node', $aNode)];\n\t\t$response = $this->esClient->count($params);\n\t\t$this->assertEquals(1, $response['count']);\n\t}", "title": "" }, { "docid": "f2496ee74e99e299df170a7a4121aed1", "score": "0.52534765", "text": "function addNode($element_id) {\n\t\t$elearray = $this->ath->getExtraFieldElements($this->field_id);\n\t\tforeach ($elearray as $e) {\n\t\t\tif ($element_id !== $e['element_id']) {\n\t\t\t\t$this->_addEvent($e['element_id'], $element_id);\n\t\t\t\t$this->_addEvent($element_id, $e['element_id']);\n\t\t\t}\n\t\t}\n\n\t\t// Allow the new element for the Submit form (Initial values).\n\t\t$this->_addEvent('100', $element_id);\n\t}", "title": "" }, { "docid": "204f50bca048f96190468aa5ad0982a4", "score": "0.5252641", "text": "public function add_iNode(iNode $iNode) {\r\n\t\tif ($this->count == 0) {\r\n\t\t\t$iNode->Next = null;\r\n\t\t\t$this->first = $iNode;\r\n\t\t\t$this->last = $iNode;\r\n\t\t\t$this->count ++;\r\n\t\t\r\n\t\t} else if ($this->count >= 1) {\r\n\t\t\t$iNode->Next = null;\r\n\t\t\t$this->last->Next = $iNode;\r\n\t\t\t$this->last = $iNode;\r\n\t\t\t$this->count ++;\r\n\t\t\r\n\t\t}\r\n\t\r\n\t}", "title": "" }, { "docid": "a55dc837a18ff4ec02def7736a1a2363", "score": "0.5245008", "text": "public function add() {\n }", "title": "" }, { "docid": "1c176b173f2bd65c37df54f49279dbf8", "score": "0.5243988", "text": "public function add()\n {\n //\n }", "title": "" }, { "docid": "5c82e34261bff49ce3c6ad4a412666ca", "score": "0.5227697", "text": "function add($node){\n\t\t$node = $this->doc->importNode($node, true);\n\t\t$this->doc->documentElement->appendChild($node);\n\t\t$this->doc->save($this->file);\n\t}", "title": "" }, { "docid": "41e8e1b303b34598286e1da39cc6feec", "score": "0.52269393", "text": "function addIdToNode($id=null){\n\t\t\t$result = $this->client->run(\"match (n) where id(n)=$id set n.id=id(n) return id(n)\");\n\t\t\t$record = $result->getRecord();\n\t\t\t$id = $record->value('id(n)');\n\t\t\treturn($id);\n\t\t}", "title": "" }, { "docid": "fcfdf34790a3969befc7edefb0999dc1", "score": "0.5225257", "text": "public function add()\n {\n }", "title": "" }, { "docid": "e2fe2f9ea6aff0269bf3d0cdf1323731", "score": "0.5211587", "text": "function enqueue($item)\n {\n $this->list->append($item);\n }", "title": "" }, { "docid": "4ae40952e6d8764c69cc8d2ce5d96b34", "score": "0.52072436", "text": "public function prependItem(LinkedListItem $nextItem, string $value)\n {\n $tmp = $this->first;\n while ($tmp->getValue() != $nextItem->getValue()) {\n $tmp = $tmp->getNext();\n };\n\n $nextItem = $tmp;\n\n $item = new LinkedListItem($value);\n $item->setNext($nextItem);\n if($nextItem->getPrev() == null) {\n $this->first = $item;\n $item->setPrev(null);\n } else {\n $item->setPrev($nextItem->getPrev());\n $nextItem->getPrev()->setNext($item);\n }\n $nextItem->setPrev($item);\n\n return $item;\n }", "title": "" }, { "docid": "18459b1897d60644de54060f028a576a", "score": "0.51972914", "text": "public function addToBack(DTNode $node)\n\t{\n\t\t$lastNode = $this->fetchFrontElement();\n\n\t\tif (!$lastNode) {\n\t\t\t$this->addToFront($node);\n\t\t\treturn;\n\t\t}\n\n\t\t// Loop through lists until you find a node without a next node\n\t\twhile ($lastNode->nextNode) {\n\t\t\t$lastNode = $lastNode->nextNode;\n\t\t}\n\n\t\t// Set new node as next node on that element\n\t\t$lastNode->setNextNode($node);\n\t}", "title": "" }, { "docid": "8ab6540655fbd192ab0cf2e1142c0c3f", "score": "0.5197029", "text": "public function insert(Module_Node_Model $node);", "title": "" }, { "docid": "4be37bbd7fd14d0f236484a98ee6da3e", "score": "0.5185827", "text": "function addLink ($node) {\n\t\t\t$cache = $this->readCache();\n\t\t\t$linkarray = $cache[14];\n\t\t\t$count = sizeof($linkarray);\n\t\t\t\n\t\t\t\n\t\t\t// let's not add it twice.\n\t\t\t$path = $node->getPath(\"String\");\n\t\t\t$type = ($node->isLeaf()) ? 'leaf' : 'node';\n\t\t\tfor ($i = 0; $i < $count; $i++) {\n\t\t\t\tif ($linkarray[$i]['path'] == $path && $linkarray[$i]['type'] == $type) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t$linkarray[$count]['path'] = $node->getPath(\"String\");\n\t\t\tif ($node->isLeaf()) {\n\t\t\t\t$linkarray[$count]['type'] = 'leaf';\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$linkarray[$count]['type'] = 'node';\n\t\t\t}\n\t\t\t$cache[14] = $linkarray;\n\t\t\t$this->writeCache($cache);\n\t\t}", "title": "" }, { "docid": "b46bdb3473c8256cf88d648b49a0892d", "score": "0.51811785", "text": "function setHead($head) {\n $this->head = (boolean) $head;\n }", "title": "" }, { "docid": "e9091e4704a726870dfbe666c89aa856", "score": "0.51705843", "text": "public function __construct(){\n //initialize a list\n $this->length = 0;\n $this->head = null;\n $this->tail = null;\n }", "title": "" }, { "docid": "c8876a3e171bd9eaf2b937b587cc5e5e", "score": "0.5164698", "text": "protected function add()\n {\n // TODO: Implement add() method.\n }", "title": "" }, { "docid": "e32e0669aba923587a3f858ad61edf89", "score": "0.51622146", "text": "public function toLinkedList(): LinkedList;", "title": "" }, { "docid": "43f7c0699128e5e43091a897fce62096", "score": "0.51465213", "text": "public function removeFront() {\n if($this->head == null)\n {\n echo \"The list is empty!\";\n }\n else if($this->length == 1)\n {\n $temp = $this->head;\n $this->head = null;\n $this->tail = null;\n $temp = null;\n }\n else\n {\n $temp = $this->head;\n $this->head = $this->head->getNext();\n $this->head->setPrev(); \n $temp = null;\n }\n \n $this->length--;\n }", "title": "" }, { "docid": "c321a52c282eeea038b6ba452b27a6de", "score": "0.5145414", "text": "function prependChild(\\DOMNode $newNode, \\DOMNode $existingNode): void\n {\n if ($existingNode->firstChild) {\n $existingNode->insertBefore($newNode, $existingNode->firstChild);\n } else {\n $existingNode->appendChild($newNode);\n }\n }", "title": "" }, { "docid": "3a8f0a920030a0115ec763af637d0412", "score": "0.51362777", "text": "public function add()\n {\n // TODO: Implement add() method.\n }", "title": "" }, { "docid": "e4ee27914aa88d59c7c04df8bca156c3", "score": "0.5127547", "text": "function hydrate_node(Node_With_Headwords $node){\n\t\t\n\t\t$query =\n\t\t\t'SELECT *' .\n\t\t\t' FROM headwords' .\n\t\t\t\" WHERE parent_node_id = {$node->get_node_id()}\" .\n\t\t\t' ORDER BY `order`' .\n\t\t\t';';\n\t\t$headwords_result = $this->database->fetch_all($query);\n\t\t\n\t\tforeach($headwords_result as $headword_result){\n\t\t\t$headword = $node->add_headword();\n\t\t\t$headword->set_id($headword_result['headword_id']);\n\t\t\t$headword->set($headword_result['headword']);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "cd7b0a24d3d46d63ae4834f1c2ded34f", "score": "0.51151806", "text": "public function insertAtEnd(string $data = null)\n { \n $newNode = new ListNode($data); \n\n if ($this->firstNode === null) { \n $this->firstNode = &$newNode; \n } else { \n $currentNode = $this->firstNode; \n while ($currentNode->next !== $this->firstNode) { \n $currentNode = $currentNode->next; \n } \n $currentNode->next = $newNode; \n } \n\n $newNode->next = $this->firstNode; \n $this->totalNode++; \n\n return true; \n }", "title": "" }, { "docid": "894a00d760ffd631f0b057504d583cef", "score": "0.51050353", "text": "public function addBeforeNode(DTNode $node, $data)\n\t{\n\t\t$foundAMatchingNode = false;\n\t\t$nodeBeforeFoundNode = false;\n\t\t$currentSearchNode = $this->fetchFrontElement();\n\n\t\twhile (!$foundAMatchingNode && $currentSearchNode->nextNode) {\n\t\t\t$foundAMatchingNode = $currentSearchNode->data == $data;\n\t\t\tif(!$foundAMatchingNode) {\n\t\t\t\t$nodeBeforeFoundNode = $currentSearchNode;\n\t\t\t\t$currentSearchNode = $currentSearchNode->nextNode;\n\t\t\t}\n\t\t}\n\n\t\tif (!$foundAMatchingNode) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$node->setNextNode($currentSearchNode);\n\t\t$nodeBeforeFoundNode->setNextNode($node);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2bf8d1000926486baff1ad84c0652f30", "score": "0.50916237", "text": "function add($v)\n\t{\n\t\t$this->liste[] = $v;\n\t}", "title": "" }, { "docid": "4b7df5297f0aa4a987266b6c7569638e", "score": "0.50912017", "text": "public function getHead() : HtmlNode {\n return $this->head;\n }", "title": "" }, { "docid": "dbc71c4ac5ae72508b67a7cc48446151", "score": "0.5052642", "text": "function prepend($record){ $this->_add($record,-1); }", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "76d41b5ce0641a57166c8f9e54e2de28", "score": "0.0", "text": "public function run()\n {\n $stationary = Stationary::first();\n $stationary->stationary_pathological_anatomical()->create([\n 'autopsy_date' => now(),\n 'autopsy_protocol' => 787,\n 'cause_of_death' => 'Ճակատագիր',\n 'pathological_anatomical_epicrisis' => 'Սրտիս ողբաձայն հառաչանքների աղաղակն, ահա, Դէպ երկինքն ի վեր` քեզ եմ ընծայում, գաղտնատե՛ս Աստուած.'\n ]);\n }", "title": "" } ]
[ { "docid": "963776365fb19044e27fa4db733ae2fd", "score": "0.80740553", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // factory(App\\User::class, 1001)->create()->each(function ($user) {\n // $user->roles()->attach([4]);\n // });\n\n // factory(App\\Model\\Listing\\Listing::class, 1000)->create()->each(function ($listing) {\n // for ($i=1; $i < rand(1, 10); $i++) { \n // $listing->categories()->attach([rand(1, 1719)]);\n // } \n // });\n\n //factory(App\\Model\\Category\\Category::class, 1720)->create();\n\n //factory(App\\Model\\Listing\\Ratings::class, 1000)->create();\n factory(App\\Model\\Listing\\Reviews::class, 7500)->create();\n }", "title": "" }, { "docid": "0106cc017f1041544cb660c0b7b15aa4", "score": "0.80636656", "text": "public function run()\n {\n\n // $this->call(UsersTableSeeder::class);\n factory(App\\Party::class, 50)->create();\n factory(App\\Parcel::class, 100)->create();\n factory(App\\Transfer::class, 200)->create();\n\n DB::table('document_type')->insert([\n 'name' => 'Quick Claim Deed'\n ]);\n DB::table('document_type')->insert([\n 'name' => 'Warranty Deed'\n ]);\n DB::table('document_type')->insert([\n 'name' => 'Other Deed'\n ]);\n\n }", "title": "" }, { "docid": "e58d26f8aeda30b8582ea97455c145f1", "score": "0.79895705", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('users')->truncate();\n DB::table('posts')->truncate();\n DB::table('categories')->truncate();\n DB::table('tags')->truncate();\n\n factory(App\\User::class,10)->create();\n $users = App\\User::all();\n factory(App\\Post::class,20)->make()->each(function($post)use($users){\n // dd($users->random()->id);\n $post->user_id = $users->random()->id;\n $post->save();\n });\n factory(App\\Tag::class,10)->create();\n $tags = App\\Tag::all();\n App\\Post::all()->each(function($post)use($tags){\n $post->tags()->sync($tags->random(rand(1,3))->pluck('id')->toArray());\n });\n }", "title": "" }, { "docid": "e2ab26233d4e02ab726b5051b8407cc4", "score": "0.7973096", "text": "public function run() {\n\t\t\n\t\t$this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n\t\t\n\t\t//factory(User::class,10)->create();\n\t\t$tags = factory('App\\Tag',8)->create();\n\t\t$categories = factory('App\\Category',5)->create();\n\t\t\n\t\tfactory('App\\Post',15)->create()->each(function($post) use ($tags) {\n\t\t\t$post->comments()->save(factory('App\\Comment')->make());\n\t\t\t$post->categories()->attach(mt_rand(1,5));\n\t\t\t$post->tags()->attach($tags->random(mt_rand(1,4))->pluck('id')->toArray());\n\t\t\t});\n\t\t\n\t\t}", "title": "" }, { "docid": "f9793248863f4c34dbb3819cb4517afd", "score": "0.7960071", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $ath = Athlete::create([\n 'name' => 'Carlos',\n 'surname' => 'Cebrecos',\n 'genre' => Genre::M,\n 'role' => 'Velocista',\n 'habilities' => '100 mll - 200 mll',\n 'license' => 'CT-19433',\n 'date_birth' => '1993-08-23',\n 'active' => True\n ]);\n\n Velocity::create([\n 'athlete_id' => $ath->id,\n 'category' => Category::PR,\n 'track' => '200mll',\n 'result' => '00:00:21.970',\n 'place' => 'San Sebastián',\n 'date' => '2013-02-11',\n 'field' => 'PC'\n ]);\n \n factory(App\\Athlete::class, 12)->create()->each(function ($u){\n $u->velocities()->save(factory(App\\Velocity::class)->make());\n $u->competitions()->save(factory(App\\Competition::class)->make());\n });\n }", "title": "" }, { "docid": "5b7510aab66d08421776839e939b8736", "score": "0.79478914", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\n DB::table('users')->insert([\n 'name' =>\"locphan\",\n 'email' => '[email protected]',\n 'password' => Hash::make('12344321'),\n ]);\n\n DB::table('tags')->insert([\n 'name' =>\"HL\"\n ]);\n DB::table('tags')->insert([\n 'name' =>\"AI\"\n ]);\n\n DB::table('categories')->insert([\n 'name' =>\"Technology\"\n ]);\n DB::table('categories')->insert([\n 'name' =>\"Science\"\n ]);\n }", "title": "" }, { "docid": "71b82164ac0d4793056f9cd6e930fd2b", "score": "0.79316914", "text": "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n\n $tags = factory('App\\Tag', 8)->create();\n $categories = factory('App\\Category', 5)->create();\n\n factory('App\\Post', 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory('App\\Comment')->make());\n $post->categories()->attach(mt_rand(1,5));\n $post->tags()->attach($tags->random(mt_rand(1,4))->pluck('id')->toArray());\n });\n }", "title": "" }, { "docid": "9172ae0257f26680f6efc009f6e63b7c", "score": "0.79181814", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n $faker = Faker::create();\n \tforeach (range(1,10) as $index) {\n DB::table('posts')->insert([\n 'title' => $faker->sentence,\n 'body' => $faker->paragraph \n ]);\n\t}\n \n\n }", "title": "" }, { "docid": "5bfaf90476324edc67c90adf206a9eca", "score": "0.78917843", "text": "public function run()\n {\n\n $this->call(UsersTableSeeder::class);\n $this->call(PostsTableSeeder::class);\n $this->call(ContactsTableSeeder::class);\n\n\n DB::table('users')->insert([\n 'name' => Str::random(10),\n 'email' => Str::random(10).'@gmail.com',\n 'password' => Hash::make('password'),\n ]);\n\n DB::table('posts')->insert([\n 'post_id' => 1,\n 'post_content' => Str::random(10),\n 'post_title' => Str::random(10),\n 'post_status'=> Str::random(10),\n 'post_name'=> Str::random(10),\n 'post_type'=> Str::random(10),\n 'post_category'=> Str::random(10),\n 'post_date'=> '2020-03-13 12:00', \n \n ]);\n }", "title": "" }, { "docid": "9ca436f3408c7ae5cd47415014ebf341", "score": "0.7885604", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Book::truncate();\n \n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n $quantity= $faker->randomDigit;\n Book::create([\n 'title' => $faker->sentence,\n 'author' => $faker->firstName . \" \" . $faker->lastName,\n 'editor' => $faker->company,\n 'price' => $faker->randomFloat(2,5,50),\n 'quantity' => $quantity,\n 'available' => $quantity != 0\n ]);\n }\n }", "title": "" }, { "docid": "c466d72cc0a5ffc2ce690349590795f2", "score": "0.78851664", "text": "public function run()\n {\n $this->call(RoleSeeder::class);\n\n $this->call(UserSeeder::class);\n $programas = Programa::factory(10)->create();\n $canales = Canal::factory(10)->create();\n\n foreach($programas as $programa){\n $programa->canales()->attach([\n rand(1,4),\n rand(5,8)\n ]);\n }\n\n Plan::factory(10)->create();\n\n foreach($canales as $canal){\n $canal->plans()->attach([\n rand(1,4),\n rand(5,8)\n ]);\n }\n\n Cable::factory(10)->create();\n Internet::factory(10)->create(); \n Telefonia::factory(10)->create(); \n Paquete::factory(10)->create();\n Factura::factory(10)->create();\n\n \n }", "title": "" }, { "docid": "6b480d5190ccba10aa7f084898878fda", "score": "0.7878214", "text": "public function run()\n {\n // reset the contents table\n DB::table('contents')->truncate();\n\n // generate 10 dummy contents data\n $contents = [];\n $faker = Factory::create();\n\n for ($i = 1; $i <= 10; $i++)\n {\n $contents[] = [\n 'user_id' => rand(1, 3),\n 'cancertype_id' => rand(1, 4),\n 'treatment_stage_id' => rand(1, 5),\n 'category_id' => rand(1, 4),\n 'title' => $faker->sentence(rand(5, 10)),\n 'body' => $faker->paragraphs(rand(10, 15), true),\n ];\n }\n\n DB::table('contents')->insert($contents);\n }", "title": "" }, { "docid": "b574cee3e999997b96242d9e48e9e538", "score": "0.7860442", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\n App\\User::create([\n 'name' => 'Administrador',\n 'email' => '[email protected]',\n 'password' => Hash::make('abc123')\n ]);\n\n App\\NegocioDigital::create([\n 'titulo' => 'Negocio 1',\n 'descripcion' => 'Lorem ipsum dolor sit amet 1',\n 'imagen' => '1.png',\n 'orden' => 1\n ]);\n\n App\\NegocioDigital::create([\n 'titulo' => 'Negocio 2',\n 'descripcion' => 'Lorem ipsum dolor sit amet 2',\n 'imagen' => '2.png',\n 'orden' => 2\n ]);\n\n App\\NegocioDigital::create([\n 'titulo' => 'Negocio 3',\n 'descripcion' => 'Lorem ipsum dolor sit amet 3',\n 'imagen' => '3.png',\n 'orden' => 3\n ]);\n }", "title": "" }, { "docid": "82184a634a30971b8da09162488cf43d", "score": "0.7856666", "text": "public function run()\n {\n // Truncate Employee table truncate before seeding\n Employee::truncate();\n \n $faker = Factory::create();\n \n foreach (range(1,50) as $index) {\n Employee::create([\n 'first_name' => $faker->firstname,\n 'last_name' => $faker->lastname,\n 'email' => $faker->unique()->safeEmail,\n 'company_id' => $faker->numberBetween($min = 1, $max = 10),\n 'phone' => $faker->numerify('##########'),\n 'created_at' => $faker->dateTime($max = 'now', $timezone = null),\n 'updated_at' => $faker->dateTime($max = 'now', $timezone = null)\n ]);\n }\n }", "title": "" }, { "docid": "58dde04e1aff533900aaa1de2e3c771b", "score": "0.78543514", "text": "public function run()\n {\n // $this->call(ProfileSeeder::class);\n // $this->call(UserSeeder::class);\n \\DB::table('profiles')->insert(\n ['name' => 'admisnitrador']);\n\n\n \\DB::table('users')->insert(\n ['username' =>\t'Administrador',\n 'email'\t\t =>\t'[email protected]',\n 'password' =>\tbcrypt('1234'),\n 'act' \t\t =>\t'1',\n 'perfil_id' => '1']);\n\n \\DB::table('locations')->insert(\n ['name' =>\t'Avellaneda']);\n\n \\DB::table('streets')->insert(\n ['name' =>\t'Calle Falsa',\n 'num_from' =>\t'0',\n 'num_to' =>\t'2000',\n 'state' =>\t'Buenos Aires',\n 'locations_id' =>\t'1']);\n\n \\DB::table('ranks')->insert(\n ['name' =>\t'Bombero']);\n\n }", "title": "" }, { "docid": "039707eb1db799d2a572e0887a732e6f", "score": "0.7853228", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n Country::truncate();\n State::truncate();\n City::truncate();\n $countries = [\n \t['name'=>'India'],\n \t['name'=>'US']\n ];\n $states =[\n \t['country_id'=>1,'name'=>'Gujrat'],\n \t['country_id'=>1,'name'=>'Maharashtra'],\n \t['country_id'=>2,'name'=>'New York'],\n ];\n $cities=[\n \t['state_id'=>1,'name'=>'Rajkot'],\n \t['state_id'=>1,'name'=>'Ahmedabad'],\n \t['state_id'=>2,'name'=>'Mumbai'],\n \t['state_id'=>3,'name'=>'New York'],\n ];\n\n Country::insert($countries);\n State::insert($states);\n City::insert($cities);\n\n }", "title": "" }, { "docid": "a4fd61f33599e71641de766104f5ee0f", "score": "0.7852123", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n \n $data = [];\n\n $users = App\\User::pluck('id')->toArray();\n \n for($i = 1; $i <= 100 ; $i++) {\n $title = $faker->sentence(rand(6,10));\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($users),\n ]);\n }\n \n DB::table('articles')->insert($data);\n }", "title": "" }, { "docid": "9c1ad9c9a665a5e45b19a020f38bf940", "score": "0.7845105", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n DB::table('posts')->insert(['title' => 'First post','Slug' => 'First_post','user_id' => 1,'text' =>$faker->text]);\n DB::table('posts')->insert(['title' => 'Second post','Slug' => 'Second_post','user_id' => 1,'text' =>$faker->text]);\n DB::table('posts')->insert(['title' => 'Thirth post','Slug' => 'Thirth_post','user_id' => 1,'text' =>$faker->text]);\n }", "title": "" }, { "docid": "8033d2ffe9933ed1497d756039c9da85", "score": "0.7842638", "text": "public function run()\n {\n $this->call(ArticlesTableSeeder::class);\n $this->call(RecommendsTableSeeder::class);\n $this->call(HotsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(CommentsSeeder::class);\n DB::table('categories')->insert([\n 'name' => \"读书\",\n 'userid' => 1,\n 'queryid'=>md5(uniqid()),\n 'type' =>\"article\",\n ]);\n DB::table('categories')->insert([\n 'name' => \"编程\",\n 'userid' => 1,\n 'queryid'=>md5(uniqid()),\n 'type' =>\"article\",\n ]);\n DB::table('categories')->insert([\n 'name' => \"javascript\",\n 'userid' => 1,\n 'queryid'=>md5(uniqid()),\n 'type' =>\"wiki\",\n ]);\n }", "title": "" }, { "docid": "ed2ed28b5f19c08009fb043458a6ea1d", "score": "0.78390396", "text": "public function run()\n {\n $faker = Faker\\Factory::create('ja_JP');\n DB::table('MST_SALES')->delete();\n foreach (range(1, 100) as $value) {\n DB::table('MST_SALES')->insert([\n 'id' => $value,\n 'sum_price' => rand(2000,40000),\n 'name' => $faker->name(),\n 'sex' => rand(1, 2),\n 'post_num' => $faker->postcode(),\n 'address' => $faker->address(),\n 'email' => $faker->email(),\n 'created_at' => $faker->dateTime(),\n 'user_id' => NULL\n ]);\n }\n }", "title": "" }, { "docid": "7fce381c2d283331a49697d2b2a44912", "score": "0.7830409", "text": "public function run()\n {\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n Photo::create(['route_photo' => 'usuarioAnonimo.jpg']);\n Miniature::create(['route_miniature' => 'maxresdefault.jpg']);\n Video::create(['route_video' => 'https://www.youtube.com/embed/ZCsS1GGPrWU']);\n Post::factory(100)->create();\n Commentary::factory(200)->create();\n }", "title": "" }, { "docid": "6b5f92492d382fd188a9ad7effd7e348", "score": "0.783006", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n Role::create([\n 'id' => 1,\n 'name' => 'Administrator',\n 'description' => 'Full access to create, edit, and update',\n ]);\n Role::create([\n 'id' => 2,\n 'name' => 'Customer',\n 'description' => 'A standard user that can have a licence assigned to them. No administrative features.',\n ]);\n User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'role_id' => 1,\n ]);\n User::create([\n 'name' => 'User',\n 'email' => '[email protected]',\n 'password' => bcrypt('user'),\n 'role_id' => 2,\n ]);\n }", "title": "" }, { "docid": "f40e64bcdfa16f568b70a3375936cf0c", "score": "0.78271097", "text": "public function run()\n {\n $this->seeds([\n KategoriKualifikasi::class => ['kepegawaian/kategori.csv', 13],\n Jabatan::class => ['kepegawaian/jabatans.csv', 9],\n Kualifikasi::class => ['kepegawaian/kualifikasis.csv', 167],\n Pegawai::class => ['kepegawaian/pegawais.csv', 301],\n ]);\n }", "title": "" }, { "docid": "a23bab42fc12cca6d1a9a36e50f365f4", "score": "0.78265446", "text": "public function run()\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\n DB::table('ratings')->truncate();\n \n // Rating::create([\n // 'id' => 1,\n // 'givenBy' => 2,\n // 'givenTo' => 3,\n // 'ratingValue' => 5\n // ]);\n\n Rating::create([\n 'id' => 2,\n 'givenBy' => 2,\n 'givenTo' => 4,\n 'ratingValue' => 3\n ]);\n\n Rating::create([\n 'id' => 3,\n 'givenBy' => 2,\n 'givenTo' => 5,\n 'ratingValue' => 4\n ]);\n\n Rating::create([\n 'id' => 4,\n 'givenBy' => 6,\n 'givenTo' => 5,\n 'ratingValue' => 3\n ]);\n \n Rating::create([\n 'id' => 1,\n 'givenBy' => 6,\n 'givenTo' => 3,\n 'ratingValue' => 5\n ]);\n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n }", "title": "" }, { "docid": "739c29c39e152a09634953cafca33ad9", "score": "0.78206795", "text": "public function run()\n\t{\n\t\t// DB::table('models')->delete();\n\n\t\t$models = array(\n\t\t\tarray('name' =>'Pamela' ,'age' => '20', 'description' =>'El video fue dirigido por Stephen Schuster. Comienza con un avión aterrizando y chicas en bikini, bronceándose y nadando en la playa.' ),\n\t\t\tarray('name' =>'Tania' ,'age' => '24', 'description' =>'l sencillo debutó el 6 de agosto de 2009, en el número ocho en la lista Swedish Singles Chart.' ),\n\t\t);\n\n\t\t// Uncomment the below to run the seeder\n\t\tDB::table('models')->insert($models);\n\t}", "title": "" }, { "docid": "e987cd48edea67e81cb2403a2e69c023", "score": "0.7820271", "text": "public function run()\n {\n $this->call(UserTableSeeder::class);\n $this->call(EmployeeTableSeeder::class);\n // $this->call(PartnerTableSeeder::class);\n $this->call(OtherTableSeeder::class);\n $this->call(TrafficSignSeeder::class);\n App::truncate();\n App::create([\n 'name' => 'FASKES PROV',\n 'logo' => 'logo.png'\n ]);\n }", "title": "" }, { "docid": "717334b3d328066c91d6d64c0cb10819", "score": "0.7820166", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $users = factory(App\\User::class,3)->create();\n// $carteiras = factory(App\\Carteira::class,6)->create();\n $ativos = factory(App\\Ativo::class,1)->create();\n// $trades = factory(App\\Trade::class,5)->create();\n// $tradeEntradas = factory(App\\TradeEntrada::class,20)->create();\n// $tradeSaidas = factory(App\\TradeSaida::class,20)->create();\n }", "title": "" }, { "docid": "496536ac82829ff2c3488b1bc428a7f1", "score": "0.7814424", "text": "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // factory('App\\StudentUser', 100)->create();\n // factory('App\\Music', 1000)->create();\n // factory('App\\RobotOrder', 100)->create();\n // factory('App\\UserAction', 1000)->create();\n // factory('App\\Practice', 20)->create();\n }", "title": "" }, { "docid": "42081848f882af09bfd4cf0f8efe8eb5", "score": "0.7813038", "text": "public function run()\n {\n // $faker = Faker::create();\n\n // $dataClass = DB::table('users')->pluck('id')->toArray();\n // $dataClass = DB::table('movies')->pluck('id')->toArray();\n\n // foreach(range(1, 100) as $index) {\n // DB::table('movie_user')->insert([\n // 'user_id' => $faker->randomElement($dataClass),\n // 'movie_id' => $faker->randomElement($dataClass)\n // ]);\n // }\n }", "title": "" }, { "docid": "630b1e277c10f7d8cf32cba237b4da38", "score": "0.78121483", "text": "public function run()\n {\n \\DB::table('users')->delete();\n \\DB::table('answers')->delete();\n \\DB::table('questions')->delete();\n\n $user = new \\App\\User();\n $user->name = 'John Doe';\n $user->email = '[email protected]';\n $user->password = Hash::make('password');\n $user->save();\n\n // $this->call(UserSeeder::class);\n factory(App\\User::class, 3)->create()\n ->each(function($u) {\n $u->questions()\n ->saveMany(\n factory(App\\Question::class, rand(1, 5))->make()\n )\n ->each(function($q) {\n $q->answers()\n ->saveMany(\n factory(App\\Answer::class, rand(1, 5))->make()\n );\n });\n });\n }", "title": "" }, { "docid": "e5e2525215ec8bf3881f1c6e341aec83", "score": "0.7806573", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n User::truncate();\n Category::truncate();\n Brand::truncate();\n Product::truncate();\n Address::truncate();\n PaymentMethod::truncate();\n Order::truncate();\n\n $users = 1000;\n $categories = 20;\n $brands = 15;\n $products = 1000;\n $address = 3000;\n $paymentMethod = 100;\n $order = 100;\n $orderDetail = 500;\n\n factory(User::class, $users)->create();\n factory(Category::class, $categories)->create();\n factory(Brand::class, $brands)->create();\n factory(Address::class, $address)->create();\n factory(Product::class, $products)->create();\n factory(PaymentMethod::class,$paymentMethod)->create();\n factory(Order::class,$order)->create();\n factory(OrderDetails::class,$orderDetail)->create();\n }", "title": "" }, { "docid": "33db14990dd20205cbf0ed23ac91d8a5", "score": "0.7797709", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(\\App\\Models\\Blog\\Category::class,10)->create();\n factory(\\App\\Models\\Blog\\Post::class,100)->create();\n $this->call(PostsCategoriesTableSeeder::class);\n }", "title": "" }, { "docid": "7d4a8acce261539d99f3a600a7fded39", "score": "0.7794814", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // Stocks\n $stocks = factory(Stock::class, 5)->create();\n\n $categories = factory(Category::class, 10)->create();\n\n $products = factory(Product::class, 500)->create();\n\n $products->each(function (Product $product) use ($categories, $stocks) {\n $randomCategories = $categories->random(3);\n $randomStocks = $stocks->random(rand(1, 3));\n\n $product->categories()->attach($randomCategories->pluck('id'));\n\n // associate with stocks\n foreach ($randomStocks as $stock) {\n $product->stocks()->attach($stock->id, [\n 'products_count' => rand(10, 100)\n ]);\n }\n });\n\n // Empty categories\n factory(Category::class, 5)->create();\n }", "title": "" }, { "docid": "8a2ce50a7068a74d62b9970c1f9302e3", "score": "0.7790919", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n foreach (range(1, 20) as $value) {\n \\App\\Models\\posts::create([\n 'title' => $faker->text('20'),\n 'content' => $faker->text('500'),\n 'user_id'=> \\App\\Models\\Users::inRandomOrder()->first()->id,\n 'cate_id'=> \\App\\Models\\Catogery::inRandomOrder()->first()->id\n ]);\n\n }\n }", "title": "" }, { "docid": "4c9d16245dfaaf355245ed6f6be2592c", "score": "0.7789509", "text": "public function run()\n {\n\n $this->call(RolSeeder::class);\n\n \\App\\Models\\User::factory(10)->create();\n\n User::create([\n 'name' => 'gabriel',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345678')\n ])->assignRole('Administrador');\n\n Categoria::factory(4)->create();\n Almacen::factory(3)->create();\n Kit::factory(5)->create();\n Proveedor::factory(4)->create();\n Producto::factory(40)->create();\n Empleado::factory(5)->create();\n Proyecto::factory(5)->create();\n $this->call(PrestamoSeeder::class);\n\n\n\n // Proveedor::factory(4)->create();\n // $this->call(ProductoSeeder::class);\n }", "title": "" }, { "docid": "6e3d9c728792a048ad7cb291d3db22d9", "score": "0.77889967", "text": "public function run()\n {\n /**\n * This is a dummy data seeder. All the information is here for demonstration purposes.\n */\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n DB::statement('TRUNCATE TABLE assignments');\n \n $data = [\n ['id' => 1, 'name' => 'Biología', 'created_at' => now()],\n ['id' => 2, 'name' => 'Geografía', 'created_at' => now()],\n ['id' => 3, 'name' => 'Historia', 'created_at' => now()],\n ['id' => 4, 'name' => 'Lengua y Literatura', 'created_at' => now()],\n ['id' => 5, 'name' => 'Matemáticas', 'created_at' => now()],\n ['id' => 6, 'name' => 'Educación Física', 'created_at' => now()],\n ['id' => 7, 'name' => 'Música', 'created_at' => now()],\n ['id' => 8, 'name' => 'Educación Plástica', 'created_at' => now()],\n ['id' => 9, 'name' => 'Computación', 'created_at' => now()],\n ['id' => 10, 'name' => 'Idioma', 'created_at' => now()]\n ];\n\n DB::table('assignments')->insert($data);\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n }", "title": "" }, { "docid": "88446e1bf24041ad962665525b97b12d", "score": "0.7787001", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $users = [\n [\n 'name' => 'nur',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'monjur',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'farhana',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'towhid',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'majedul',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'mobarok',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'jahed',\n 'email' => '[email protected]'\n ],\n [\n 'name' => 'jb',\n 'email' => '[email protected]'\n ],\n ];\n foreach ($users as $user) {\n factory(User::class)->create([\n 'name' => $user['name'],\n 'email' => $user['email']\n ]);\n }\n factory(Note::class, 30)->create();\n }", "title": "" }, { "docid": "4b87096935422c5247afb2aaa8f23776", "score": "0.7781426", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $cats = factory(App\\ProductCategory::class, 3)->create()->each(function ($cat) {\n factory(App\\ProductCategory::class, 5)->create([\n 'parent_id' => $cat->id,\n ]);\n });\n factory(App\\User::class, 50)->create()->each(function ($user) use($cats) {\n factory(App\\Product::class, 2)->create([\n 'user_id' => $user->id,\n 'category_id' => $cats->random()->id,\n ]);\n });\n\n }", "title": "" }, { "docid": "f436dada1953139b05cfe23060658c72", "score": "0.7780704", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(0,0) as $index) {\n \t DB::table('users')->insert([\n \t 'name' => 'Vinay Paramanand',\n \t 'email' => '[email protected]',\n 'password' => bcrypt('vinaytest'),\n 'main_image_path'=>'/img/img.jpg',\n 'active'=>1\n ]);\n }\n\n foreach (range(0,0) as $index) {\n\t DB::table('socials')->insert([\n\t 'linkedin_url' => $faker->url,\n 'contact_email' => $faker->url,\n 'rss_feed' => $faker->text,\n\t 'quora_url' => $faker->url,\n 'contact_email' => $faker->url\n ]);\n }\n\n\n\n }", "title": "" }, { "docid": "3d653e15cd03e74996be098cff42dfca", "score": "0.77792233", "text": "public function run()\n {\n \\App\\Models\\Admin::factory(10)->create();\n \\App\\Models\\User::factory(10)->create();\n\n Book::create(\n [\n \"title\" => \"Self Discipline\",\n \"author\" => \"Shawn Norman\",\n \"publisher\" => \"Google\",\n \"year\" => 2018,\n \"stock\" => 50,\n ]\n );\n\n Book::create(\n [\n \"title\" => \"Atomic Habits\",\n \"author\" => \"James Clear\",\n \"publisher\" => \"Google\",\n \"year\" => 2018,\n \"stock\" => 20,\n ]);\n\n Book::create(\n [\n \"title\" => \"The Last Thing He Told Me\",\n \"author\" => \"Laura Dave\",\n \"publisher\" => \"Google\",\n \"year\" => 2021,\n \"stock\" => 10,\n ]\n );\n }", "title": "" }, { "docid": "8a56b49c8ccacd412dc12ad6eb4f1c17", "score": "0.7772089", "text": "public function run()\n {\n User::factory(10)->create();\n Category::factory(4)->create();\n SubCategory::factory(4)->create();\n Color::factory(4)->create();\n Size::factory(4)->create();\n Product::factory(4)->create();\n ProductQuantity::factory(4)->create();\n Banner::factory(4)->create();\n Favourite::factory(4)->create();\n Gallery::factory(4)->create();\n City::factory(4)->create();\n Region::factory(4)->create();\n District::factory(4)->create();\n Address::factory(4)->create();\n RateComment::factory(4)->create();\n\n $this->call(PermissionsTableSeeder::class);\n $this->call(UpdatePermissionsTableSeeder::class);\n $this->call(SettingTableSeeder::class);\n $this->call(AddTaxToSettingTableSeeder::class);\n\n }", "title": "" }, { "docid": "defbf35392fe9a4d769e6b94f0fcd99b", "score": "0.7768574", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\t\tPost::truncate();\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n\t\tforeach(range(1, 30) as $index)\n\t\t{\n\t\t\t// MYSQL\n\t\t\t$userId = User::orderBy(DB::raw('RAND()'))->first()->id;\n\n\t\t\t// SQLITE\n\t\t\t// $userId = User::orderBy(DB::raw('random()'))->first()->id;\n\n\t\t\tPost::create([\n\t\t\t\t'user_id' => $userId,\n\t\t\t\t'title' => $faker->name($gender = null|'male'|'female'),\n\t\t\t\t'body' => $faker->catchPhrase\n\t\t\t]);\n\t\t}\n\n\t\t// $this->call('UserTableSeeder');\n\t}", "title": "" }, { "docid": "88876dd02f4a05f504ca51338370b797", "score": "0.7765722", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(App\\User::class, 2)->create();\n factory(App\\Type::class, 8)->create();\n factory(App\\Room::class, 6)->create();\n \n\n // foreach($rooms as $room){\n // $room->owners()->attach(\n // $owners->random(random_int(1,3))\n // );\n // }\n \n }", "title": "" }, { "docid": "b11c80e4171d8992cf52a3d8c6ff07f3", "score": "0.77626616", "text": "public function run()\n {\n Eloquent::unguard();\n $faker = Faker::create();\n\n foreach(range(1, 3) as $index) {\n\n $title = $faker->sentence(2);\n\n Category::create(array(\n 'title' => $title,\n 'slug' => $this->generateSlug($title),\n 'description' => $faker->paragraph(2)\n ));\n }\n }", "title": "" }, { "docid": "c3a07070351bd000cfaf6a6bb53c9e90", "score": "0.77616376", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \n User::truncate();\n Products::truncate();\n \n // $this->call(UserSeeder::class);\n factory(User::class,10)->create();\n factory(Products::class,10)->create();\n \n }", "title": "" }, { "docid": "373927e90cd67705d12a2a2602b9c28a", "score": "0.7761006", "text": "public function run()\n {\n $faker = Factory::create();\n\n Product::truncate();\n Category::truncate();\n\n foreach (range(1, 10) as $key => $value) {\n Category::create([\n 'name' => $faker->word\n ]);\n }\n\n foreach (range(1,10) as $key => $value) {\n Product::create([\n 'name' => $faker->word,\n 'stock' => $faker->randomDigit(3),\n 'description' => $faker->paragraph(1),\n 'category_id' => $faker->randomDigit(2),\n 'user_id' =>$faker->randomDigit(2)\n ]);\n }\n }", "title": "" }, { "docid": "7fd6f0c247e33899edabe04b649cd22c", "score": "0.7756213", "text": "public function run()\n {\n // $this->call(UserTableSeeder::class);\n Model::unguard();\n $this->call(RoleTableSeeder::class);\n $this->call(TagTableSeeder::class);\n // DB::table('users')->delete();\n\n $users = [\n ['name' => 'root', 'email' => '[email protected]',\n 'password' => Hash::make('qwerty')],\n ['name' => 'test', 'email' => '[email protected]',\n 'password' => Hash::make('qwerty')],\n ['name' => 'vova', 'email' => '[email protected]',\n 'password' => Hash::make('qwerty')],\n ['name' => 'bob', 'email' => '[email protected]',\n 'password' => Hash::make('qwerty')],\n\n ];\n // Loop through each user above and create the record for them in the database\n foreach ($users as $user) {\n $newUser = User::create($user);\n if ($user['name'] == 'root') {\n $newUser->roles()->attach(1);\n } else {\n $newUser->roles()->attach(2);\n }\n }\n\n Model::reguard();\n }", "title": "" }, { "docid": "05f5b66919509425a7194863454ee9d7", "score": "0.77492213", "text": "public function run()\n {\n\n $this->seedStudies();\n $this->seedCourses();\n\n }", "title": "" }, { "docid": "6ac18121221894258f25afa3e3a09f99", "score": "0.77469724", "text": "public function run()\n {\n Costumer::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Costumer::create([\n 'name' => $faker->name,\n 'phone' => $faker->sentence,\n 'Type' => $faker->sentence,\n 'city' => $faker->sentence,\n 'adress' => $faker->sentence,\n 'contact' => $faker->sentence,\n 'contact_phone' => $faker->sentence,\n 'created_by' => 1,\n ]);\n }\n }", "title": "" }, { "docid": "14aa0fd99ba18e6fb7278892a18441fc", "score": "0.7746705", "text": "public function run()\n {\n //delete all records from role table\n Role::truncate();\n\n $faker = Factory::create();\n\n for ($i = 0; $i < 50; $i++) {\n Role::create([\n 'name' => $faker->name\n ]);\n }\n }", "title": "" }, { "docid": "f5bfd65a0ab76fe80a146147ec5ed014", "score": "0.77440494", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call(UserTableSeeder::class);\n\n Model::reguard();\n\n # =========================================================================\n # CATEGORIES SEEDS\n # =========================================================================\n\n DB::table('categories')->delete();\n\n $categories = [\n [ 'name' => 'Wildlife',\n 'created_at' =>\\Carbon\\Carbon::now('Africa/Johannesburg')->toDateTimeString()\n ],\n [ 'name' => 'Pollution',\n 'created_at' =>\\Carbon\\Carbon::now('Africa/Johannesburg')->toDateTimeString()\n ]\n ];\n\n foreach ($categories as $category) {\n Category::create($category);\n }\n }", "title": "" }, { "docid": "ecb482ed5a02df8c19bf99957a103522", "score": "0.77431524", "text": "public function run()\n {\n Model::unguard();\n $faker = Faker::create();\n\n // DB::table('users')->delete();\n\n // $users = array(\n // ['name' => 'Tyler Torola', 'email' => '[email protected]', 'password' => Hash::make('password')],\n // ['name' => 'Bobby Anderson', 'email' => '[email protected]', 'password' => Hash::make(\"***REMOVED***\")],\n // ['name' => 'Ike Goss', 'email' => '[email protected]', 'password' => Hash::make('***REMOVED***')],\n // );\n \n // // Loop through each user above and create the record for them in the database\n // foreach ($users as $user)\n // {\n // User::create($user);\n // }\n\n // foreach (range(1,10) as $index) {\n // $invoice = [\n // 'first_name' => $faker->firstName,\n // 'last_name' => $faker->lastName,\n\n // ]\n // }\n\n foreach (range(1,10) as $index) {\n \n }\n\n Model::reguard();\n }", "title": "" }, { "docid": "115c012dd8846c3cb80cbb9f7a8327c6", "score": "0.7742761", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $categories = factory(Category::class)->times(10)->create();\n\n $users = factory(User::class)->times(20)->create();\n\n $products = factory(Product::class)->times(40)->create();\n\n $transactions = factory(Transaction::class)->times(10)->create();\n\n\n }", "title": "" }, { "docid": "0136ec9783e5809a5fe2c594d8780c7e", "score": "0.7741538", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Eloquent::unguard();\n\n $faker = Faker\\Factory::create();\n factory(App\\Answer::class, 100)->create();\n factory(App\\Kerja::class, 100)->create();\n factory(App\\Lulus::class, 100)->create();\n factory(App\\Nikah::class, 100)->create();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "42daa4f7485840fe27f640e7e7069e40", "score": "0.77378654", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call([UsuarioSeed::class]);\n $this->call([CategoriasSeed::class]);\n $this->call([ExperienciaSeeder::class]);\n }", "title": "" }, { "docid": "d253031e250b9050d7af431c4c10f0bf", "score": "0.7737546", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->disableForeignKeyCheck();\n User::truncate();\n Tag::truncate();\n Post::truncate();\n\n factory(User::class, 50)->create();\n factory(Tag::class, 20)->create();\n factory(Post::class, 100)->create()->each(function ($post) {\n $tags = Tag::all()->random(mt_rand(1, 5))->pluck('id');\n $post->tags()->attach($tags);\n });\n }", "title": "" }, { "docid": "f70d3c8ab2d963dc7360a2749f67f6b7", "score": "0.7736429", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n Course::factory(3)->create();\n assignament::factory(9)->create();\n exercise::factory(6)->create();\n }", "title": "" }, { "docid": "31bba37eb86cd9ac68eaf41572a295dc", "score": "0.7735254", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n DB::table('roles')->insert([\n [ \n 'name' => 'voter'\n ],\n [ \n 'name' => 'admin'\n ],\n ]);\n\n DB::table('organizers')->insert([\n [\n 'name' => 'BEM UI'\n ],\n [\n 'name' => 'BEM FT UI'\n ]\n ]);\n\n DB::table('elections')->insert([\n [\n 'name' => 'Pemira UI',\n 'unique_code' => 'UI012021',\n 'election_date' => '2021-04-26',\n 'end_date' => '2021-05-28'\n ],\n [\n 'name' => 'Pemira FT UI',\n 'unique_code' => 'FT3012021',\n 'election_date' => '2021-05-03',\n 'end_date' => '2021-05-28'\n ]\n ]);\n\n $this->call([\n CandidateSeeder::class,\n UserSeeder::class,\n VoteSeeder::class\n ]);\n\n }", "title": "" }, { "docid": "de1da3761353d82d818811e2158ffcc6", "score": "0.77292454", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n\n // Let's truncate our existing records to start from scratch.\n Product::truncate();\n\n $faker = \\Faker\\Factory::create();\n $types = ['t-shirt', 'mug', 'boots', 'phone-case'];\n $colors = ['whitesilver','grey','black','navy','blue','cerulean','sky blue','turquoise','blue-green','azure','teal','cyan','green','lime','chartreuse','live','yellow','gold','amber','orange','brown','orange-red','red','maroon','rose','red-violet','pink','magenta','purple','blue-violet','indigo','violet','peach','apricot','ochre','plum'];\n $sizes = ['xs','s','m','l','xl'];\n\n // And now, let's create a few prods in our database:\n for ($i = 0; $i < 50; $i++) {\n\n $prod = Product::create([\n 'title' => $faker->sentence,\n 'body' => $faker->paragraph,\n 'price' => rand(0, 1000)/10,\n 'productType' => $types[array_rand($types)],\n 'color' => $colors[array_rand($colors)],\n 'size' => $sizes[array_rand($sizes)],\n ]);\n }\n Schema::enableForeignKeyConstraints();\n }", "title": "" }, { "docid": "0ae073ea04e3e51b9a5a234a6645d3a1", "score": "0.77288526", "text": "public function run()\n {\n $this->truncateTables([\n //'products',\n //'services',\n //'categories',\n //'subcategories',\n 'products_users',\n //'users',\n 'avatars',\n ]);\n\n // Ejecutar los seeders:\n //$products = factory(Product::class)->times(4)->create();\n //$categories = factory(Category::class)->times(2)->create();\n //$subcategories = factory(SubCategory::class)->times(5)->create();\n //factory(Service::class)->times(4)->create();\n //factory(User::class)->times(10)->create();\n $avatars = factory(Avatar::class)->times(15)->create();\n\n /*foreach ($products as $oneProduct) {\n $oneProduct->category()->associate($categories->random(1)->first()->id);\n $oneProduct->subcategory()->associate($subcategories->random(1)->first()->id);\n $oneProduct->save();\n };*/\n\n // foreach ($products as $oneProduct) {\n // $oneProduct->category()->associate($categories->random(1)->first()->id);\n // $oneProduct->subcategory()->associate($subcategories->random(1)->first()->id);\n // $oneProduct->save();\n // };c9b1c36c8caeabda8347106e58f70033dd0265ca\n }", "title": "" }, { "docid": "a8c4b0faab2536f6924d6a6f05f50027", "score": "0.77278227", "text": "public function run()\n {\n $faker = Factory::create('fr_FR');\n $categories = ['Animaux', 'Nature', 'People', 'Sport', 'Technologie', 'Ville'];\n foreach ($categories as $category) {\n DB::table('categories')->insert([\n 'name' => $category,\n 'created_at' => $faker->date('Y-m-d H:i'),\n 'updated_at' => $faker->date('Y-m-d H:i'),\n ]);\n }\n $this->call(UserSeeder::class);\n }", "title": "" }, { "docid": "e424e7ea028abae43ad7eb31b541b451", "score": "0.771601", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // $this->call(ProductsTableSeeder::class);\n // $this->call(ProductImageSeeder::class);\n // $this->call(VariationSeeder::class);\n \\App\\Models\\Product::factory()->count(5)->create();\n \\App\\Models\\ProductImage::factory()->count(10)->create();\n //\\App\\Models\\Variation::factory()->create();\n }", "title": "" }, { "docid": "3d5934c5d799d5a3b3747a0bbd0e3d71", "score": "0.77135783", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n DB::table('tasks')->delete();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Task::create([\n 'idCustomer' => $faker->numberBetween($min = 1, $max = 10),\n 'title' => $faker->sentence,\n 'description' => $faker->sentence,\n 'price' => $faker->numberBetween($min = 10, $max = 1000),\n 'deadline' => $faker->dateTimeBetween($startDate = 'now', $endDate = '+2 years', $timezone = 'Asia/Bishkek'),\n ]);\n }\n }", "title": "" }, { "docid": "f204d23341cb7fd2b48bb27ffde1b8f2", "score": "0.77124816", "text": "public function run()\n {\n // $this->call('UsersTableSeeder');\n factory(App\\User::class, 4)->create();\n factory(App\\Group::class, 2)->create()->each(function($u) { $u->users()->save(App\\User::find(1)); });\n factory(App\\Item::class, 10)->create();\n }", "title": "" }, { "docid": "70fbcb2aeac3103c8556e273a1ea07ef", "score": "0.7712306", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'nome' => \"Felipe Gustavo Braiani Santos\",\n 'siape' => 2310754,\n 'password' => bcrypt('2310754'),\n 'perfil' => '3'\n ]);\n DB::table('cursos')->insert(['nome' => \"Técnico em Mecânica\"]);\n DB::table('cursos')->insert(['nome' => \"Técnico em Informática\"]);\n DB::table('cursos')->insert(['nome' => \"Técnico em Eletrotécnica\"]);\n }", "title": "" }, { "docid": "72deab4b4ba460677188b9e5ddc3d631", "score": "0.77109", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Article::truncate();\n Store::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Store::create([\n 'name' => $faker->name,\n 'address' => $faker->address,\n ]);\n }\n }", "title": "" }, { "docid": "9877b188f4441322b489cf690def43a1", "score": "0.7704052", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(\\App\\Category::class,10)->create();\n factory(\\App\\User::class,10)->create();\n\n $fake = \\Faker\\Factory::create();\n\n $users = \\App\\User::all();\n\n foreach ($users as $user){\n for ($i=0 ; $i<10 ; $i++){\n \\App\\Post::create([\n 'user_id' => $user->id,\n 'title' => $fake->name,\n 'description' => $fake->paragraph(5),\n ]);\n }\n }\n }", "title": "" }, { "docid": "b2a9f176c7df114ff184aa138ee5c05e", "score": "0.77025133", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(App\\Players::class, 10000)->create();\n \n factory(App\\GamePlay::class, 3835)->create(); \n\n $this->call(GamesTableSeeder::class);\n \n }", "title": "" }, { "docid": "3b2cd726bae9a08c2dfd89fc525f4d5f", "score": "0.77025044", "text": "public function run()\n {\n\n $this->call(UsersTableSeeder::class);\n $this->call(CuentaTableSeeder::class);\n $this->call(MovimientoTableSeeder::class);\n // factory ('App\\Vehiculo',6)->create();\n // factory ('App\\Estacionamiento',6)->create();\n $this->call(VehiculoTableSeeder::class);\n $this->call(OrigenTableSeeder::class);\n $this->call(TarifasTableSeeder::class);\n $this->call(ZonasTableSeeder::class);\n $this->call(EstaciomamientoTableSeeder::class);\n factory ('App\\Inspector',10)->create();\n }", "title": "" }, { "docid": "acf364571e79e5cefded12cff1dc405e", "score": "0.7700658", "text": "public function run()\n\t{\n\t\t$faker = Faker::create();\n\t\tforeach (range(1, 50) as $key) {\n\t\t\tDB::table('books')->insert([\n\t\t\t'title' => $faker->sentence(),\n\t\t\t'description' => $faker->paragraph(),\n\t\t\t'author' => $faker->name(),\n\t\t\t'created_at' => Carbon::now(),\n\t\t\t'updated_at' => Carbon::now(),\n\t\t\t]);\n\t\t}\n}", "title": "" }, { "docid": "443e869bc448f240356820ce99b73eba", "score": "0.76993686", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(SettingSeeder::class);\n\n factory(Category::class, 7)->create();\n\n factory(Product::class,150)->create();\n\n $categories = App\\Category::all();\n\n Product::all()->each(function ($product) use ($categories)\n {\n $product->categories()->attach(\n // $categories->random(rand(3,6))->pluck('id')->toArray()\n $categories->random(rand(1,6))->pluck('id')->toArray()\n );\n });\n }", "title": "" }, { "docid": "8fe4489137a56b956b08ecc256a24aa7", "score": "0.7697992", "text": "public function run()\n {\n //\n Product::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 < 5; $i++) {\n\n\n $cost=$faker->randomFloat(2,0,1000);\n\n Product::create([\n 'category_id' => random_int(1,5),\n 'cost' => $cost,\n 'stock' => random_int(1,20),\n 'priceTotal' => $cost+10,\n 'tax' => random_int(1,10),\n 'description' => 'Descripcion'. $i,\n 'reference' => 'Referencia'. $i,\n 'user_id'=> random_int(1,User::count())\n ]);\n }\n }", "title": "" }, { "docid": "a3ead8af61223146f6e3fdec15b00904", "score": "0.7697128", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call([QuizSeeder::class]);\n $this->call([AnswererSeeder::class]);\n $this->call([SectionSeeder::class]);\n $this->call([QuestionSeeder::class]);\n $this->call([AnswerSeeder::class]);\n $this->call([OptionSeeder::class]);\n $this->call([OptionColSeeder::class]);\n }", "title": "" }, { "docid": "02a3de1d1d158c365800c7a0830fe308", "score": "0.7693202", "text": "public function run()\n {\n //\n // DB::table('articles')->delete();\n\n\t // for ($i=0; $i < 10; $i++) {\n\t // \\App\\Article::create([\n\t // 'title' => 'Title '.$i,\n\t // 'body' => 'Body '.$i,\n\t // 'user_id' => 1,\n\t // 'like' => 0,\n\t // 'draft' => true\n\t // ]);\n\t // }\n\n\n\t // DB::table('articles')->insert([\n // 'title' => 'Title '.str_random(10),\n // 'body' => 'Body '.str_random(10),\n // 'user_id' => 1,\n // 'like' => 0,\n // 'draft' => true\n // ]);\n\n \t// factory(App\\Article::class, 50)->create()->each(function ($u) {\n\t // $u->posts()->save(factory(App\\Article::class)->make());\n\t // });\n\t factory(App\\Article::class, 50)->create();\n\n }", "title": "" }, { "docid": "1c370e9bc1f2d1d56de7442838321847", "score": "0.7689267", "text": "public function run()\n {\n $this->call(CompanySeeder::class);\n $this->call(JobsSeeder::class);\n $this->call(UserSeeder::class);\n\n $categories=[\n 'Government','NGO','Banking','software','Networking','2nd optionb'\n ];\n foreach ($categories as $category){\n \\App\\Models\\Category::create(['name'=>$category]);\n }\n }", "title": "" }, { "docid": "d821e4330d8dabc502854ce12d329af5", "score": "0.7686517", "text": "public function run()\n {\n $this->call(ColorsTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(SexesTableSeeder::class);\n $this->call(SizesTableSeeder::class);\n\n $this->call(User_StatusesTableSeeder::class);\n\n $this->call(SubcategoriesTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n\n $this->call(ProductsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n // factory(\\App\\Product::class, 62)->create();\n factory(\\App\\User::class, 25)->create();\n factory(\\App\\Cart::class, 99)->create();\n }", "title": "" }, { "docid": "29695a5ff1fa3c45993913799e105323", "score": "0.76861745", "text": "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\t$dateset = new Seed(self::TABLE_NAME);\n\n\t\tforeach ($dateset as $rows) {\n\t\t\t$records = [];\n\t\t\tforeach ($rows as $row)\n\t\t\t\t$records[] = [\n\t\t\t\t\t'id'\t\t\t=> $row->id,\n\t\t\t\t\t'created_at'\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t\t'updated_at'\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t\t'sport_id'\t\t=> $row->sport_id,\n\t\t\t\t\t'country_id'\t=> $row->country_id,\n\t\t\t\t\t'gender_id'\t\t=> $row->gender_id,\n\n\t\t\t\t\t'name'\t\t\t=> $row->name,\n\t\t\t\t\t'external_id'\t=> $row->external_id ?? null,\n\t\t\t\t\t'logo'\t\t\t=> $row->logo ?? null,\n\t\t\t\t];\n\n\t\t\tinsert(self::TABLE_NAME, $records);\n\t\t}\n\t}", "title": "" }, { "docid": "3114668392a1c46e1e1ae8969bf609b6", "score": "0.76837957", "text": "public function run()\n {\n $faker = Faker::create();\n\n // seeder for authorised member\n User::create([\n 'role' => \"auth_member\",\n 'name' => \"Mr.Django\",\n 'email' => \"[email protected]\",\n 'password' => Hash::make('1234')\n ]);\n User::create([\n 'role' => \"auth_member\",\n 'name' => \"Mr.Prism\",\n 'email' => \"[email protected]\",\n 'password' => Hash::make('1234')\n ]);\n\n // seeder for 3 second markers\n foreach(range(1, 3) as $index) {\n User::create([\n 'role' => 'second_marker',\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => Hash::make('1234')\n ]);\n }\n\n // seeder for 4 supervisors\n foreach(range(1, 4) as $index) {\n User::create([\n 'role' => 'supervisor',\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => Hash::make('1234')\n ]);\n }\n\n // seeder for 30 students\n foreach(range(1, 30) as $index) {\n User::create([\n 'role' => 'student',\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => Hash::make('1234')\n ]);\n }\n }", "title": "" }, { "docid": "8b162d964f15bb87bea6b64c3def25df", "score": "0.7679688", "text": "public function run()\n {\n //TODO Seeder create X Users\n factory(\\App\\User::class, 10)->create();\n //TODO Seeder create X Authors\n factory(\\App\\Author::class, 10)->create();\n //TODO Seeder create X Libraries and looping Libraries\n factory(\\App\\Library::class, 10)->create()->each(function($library){\n //TODO Seeder create X Books and looping Books\n factory(\\App\\Book::class, 10)->make()->each(function($book) use($library){\n //TODO Seeder asign Books to Libraries (relationship)\n $library->books()->save($book);\n });\n });\n }", "title": "" }, { "docid": "bdd67eaf9bb5c705971ec25aad3d2bf9", "score": "0.76768607", "text": "public function run()\n {\n $faker = Faker\\Factory::create('es_ES');\n\n DB::table('empresas')->delete();\n for ($cantidadEmpresas = 0; $cantidadEmpresas != 6; $cantidadEmpresas++) {\n DB::table('empresas')->insert(array(\n 'nombre' => $faker->company,\n 'direccion' => $faker->address,\n 'email' => $faker->companyEmail,\n 'url' => $faker->url,\n 'telefono' => $faker->numberBetween(600000000,699999999),\n 'created_at' => date('Y-m-d H:m:s'),\n 'updated_at' => date('Y-m-d H:m:s'),\n ));\n }\n }", "title": "" }, { "docid": "01775d6adda6df1ce8c05497acdfcd54", "score": "0.76755834", "text": "public function run()\n {\n\n News::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['business', 'popular', 'hotnews', 'lifestyle', 'world', 'world', 'sports'];\n for ($i = 0; $i < count($categories); $i++) {\n for ($j = 0; $j < 5; $j++) {\n News::create([\n 'title' => $categories[$i] . ' title ' . $j,\n 'content' => $faker->paragraph(),\n 'category' => $categories[$i],\n 'image' => $faker->image('public/uploads/news/', 640, 480, null, false),\n ]);\n }\n }\n }", "title": "" }, { "docid": "b186d6546035ec76f8db21fdbd2a0e44", "score": "0.7674704", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1,10) as $index) {\n DB::table('products')->insert([\n 'id' => $index,\n 'name' => $faker->name,\n 'image' => $faker->imageUrl(600,400),\n 'price' => $faker->numberBetween(0,1000)\n ]);\n }\n $this->call(ProductSeeder::class);\n }", "title": "" }, { "docid": "ae0478774917d2a61935b3bb56a50045", "score": "0.76742005", "text": "public function run()\n {\n State::create(['id' => 1, 'name' => 'not state']);\n State::create(['id' => 2, 'name' => 'to do']);\n State::create(['id' => 3, 'name' => 'doing']);\n State::create(['id' => 4,'name' => 'done']);\n\n Role::create(['name' => 'Scrum Master']);\n Role::create(['name' => 'Product Owner']);\n Role::create(['name' => 'Developer']);\n\n Tag::factory(5)->create();\n Category::factory(5)->create();\n\n User::create([\n // 'id' => 1,\n 'name' => 'Joel',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('1234567')\n ]);\n\n User::factory(10)->create()->each(function ($user) {\n $number_tasks = rand(1, 11);\n\n for ($i=0; $i < $number_tasks; $i++) {\n $user->tasks()->save(Task::factory()->make());\n }\n });\n\n Team::factory(5)->create()->each(function ($team) {\n $number_tasks = rand(1, 11);\n\n for ($i=0; $i < $number_tasks; $i++) {\n $team->tasks()->save(Task::factory()->make());\n }\n\n $team->users()->attach($this->array(rand(2, 11)));\n });\n }", "title": "" }, { "docid": "8ba9e1eb60aa2ce75e4f67b85523a3b3", "score": "0.76738054", "text": "public function run()\n {\n //\n\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n // $name = $faker->unique()->word;\n // $quantity = $faker->numberBetween(1, 50);\n // $price = $faker->randomFloat(2,10,200);\n // $value = $price * $quantity;\n User::create([\n 'name' => $faker->unique()->word,\n 'email' => $faker->unique()->word.'@gmail.com',\n 'password' => bcrypt('123456'),\n 'email_verified_at' => Carbon::now(),\n 'remember_token' => Carbon::now(),\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n }\n }", "title": "" }, { "docid": "0a6360cbcc87c10411cfdb8218573c6a", "score": "0.7670969", "text": "public function run()\n {\n $faker = Faker::create('id_ID');\n foreach (range(1, 100) as $index) {\n DB::table('products')->insert([\n 'code' => $faker->unique()->randomNumber,\n 'name' => $faker->sentence(4),\n 'stock' => $faker->randomNumber,\n 'varian' => $faker->sentence(1),\n 'description' => $faker->text,\n 'image' => $faker->imageUrl(\n $width = 640,\n $height = 480\n ),\n 'category_id' => rand(1, 5)\n ]);\n }\n }", "title": "" }, { "docid": "e7c35bf1a78291d3c85c164ebd658980", "score": "0.7670915", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //seeding the furnitures\n $this->call(FurnituresTableSeeder::class);\n\n // seeding the tags\n $this->call(TagsTableSeeder::class);\n\n // seeding the users, houses, and rooms table by creating room for each\n // house for each user\n factory(App\\User::class, 3)->create()->each(function ($user) {\n $user->houses()->saveMany(factory(App\\House::class, 2)->create()->each(function ($house) {\n $house->rooms()->saveMany(factory(App\\Room::class, 3)->create());\n }));\n });\n }", "title": "" }, { "docid": "c4192461f63978082f8fcbfb0f3a4b92", "score": "0.7668657", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // User::create([\n\t\t// 'username' => 'admin',\n\t\t// 'password' => Hash::make('admin'),\n\t\t// 'real_password' => 'admin'\n\t\t// ]);\n\n //check and count inventory records\n $inventory = inventory::all();\n if(count($inventory)){\n $item_id = 'inv_'.$this->randomString().'_'.(count($inventory)+1);\n }else{\n $item_id = 'inv_'.$this->randomString().'_'.'1';\n }\n \n inventory::create([\n 'item_id' => $item_id,\n 'username' => 'admin',\n 'item_name' => 'Medicine 3',\n 'item_description' => 'If you take this you will eventually die',\n 'item_quantity' => 20\n ]);\n }", "title": "" }, { "docid": "7b59b344bf9bf9580742222e5ba42ec2", "score": "0.7665538", "text": "public function run()\n {\n \t // DB::table('users')->insert([\n \n // 'username' => \"quy\",\n // 'email' => \"[email protected]\",\n // 'sex' => 0,\n // 'phone_number' => 0,\n // 'password' => Hash::make('123456'),\n // ]);\n $faker = Faker\\Factory::create();\n for($i = 0; $i < 20; $i++) {\n App\\news::create([\n 'tittle' => $faker->text(40),\n 'intro' => $faker->text($minNbChars = 60),\n 'content' => $faker->text($minNbChars = 400),\n 'image' => $faker->imageUrl($width = 640, $height = 480),\n 'user_id' => 6\n ]);\n }\n\n }", "title": "" }, { "docid": "8c8e23570f05312b54416c1cbcb81e7b", "score": "0.766276", "text": "public function run()\n {\n // $this->call('UsersTableSeeder');\n // $this->call([\n // UserSeeder::class,\n // PostSeeder::class,\n // CommentSeeder::class,\n // ]);\n\n // User Table Seeding\n User::factory()\n ->count(5)\n ->create();\n\n // Category Table Seeding\n ProductCategory::factory()\n ->count(5)\n ->create();\n\n // Product Table Seeding\n Product::factory()\n ->count(10)\n ->create();\n }", "title": "" }, { "docid": "d4833208ba9ca3bb97bd734168301979", "score": "0.7659574", "text": "public function run()\n {\n $this->call(ReligionsTableSeeder::class);\n $this->call(SubjectsTableSeeder::class);\n $this->call(BuildingsTableSeeder::class);\n $this->call(ScholarshipsTableSeeder::class);\n $this->call(GradesTableSeeder::class);\n $this->call(CollegesTableSeeder::class);\n $this->call(DepartmentsTableSeeder::class);\n factory('App\\Faculty', 500)->create();\n // factory('App\\Student', 1000)->create();\n factory('App\\Room', 140)->create();\n $this->call(CurriculaTableSeeder::class);\n $this->call(CurriculumSubjectsTableSeeder::class);\n $this->call(StudentsTableSeeder::class); \n }", "title": "" }, { "docid": "6fdeeeb37f42681366483a8c2c186b05", "score": "0.765777", "text": "public function run()\n {\n Model::unguard();\n $userId = DB::table('users')->pluck('id')->toArray();\n $bookId = DB::table('books')->pluck('id')->toArray();\n $faker = Faker::create();\n for ($i = 0; $i <= 15; $i++) {\n factory(App\\Model\\Post::class, 1)->create([\n 'user_id' => $faker->randomElement($userId),\n 'book_id' => $faker->randomElement($bookId)\n ]);\n }\n Model::reguard();\n }", "title": "" }, { "docid": "ade397526ae1d55557124d57dafcccd2", "score": "0.765603", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(\\App\\empresa::class,10)->create();\n factory(\\App\\tut_lab::class,20)->create();\n factory(\\App\\tut_doc::class,20)->create();\n factory(\\App\\ciclo::class,20)->create();\n factory(\\App\\fecha::class,20)->create();\n factory(\\App\\alumno::class,20)->create();\n \n\n }", "title": "" }, { "docid": "43a50dd07282ff905667d4ed0c2f4a4b", "score": "0.76543665", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create(\n [\n 'email' => '[email protected]',\n 'name' => 'Leszek'\n ]\n );\n\n factory(User::class)->create(\n [\n 'email' => '[email protected]',\n 'name' => 'Gosia'\n ]\n );\n\n factory(User::class)->create(\n [\n 'email' => '[email protected]',\n 'name' => 'Agnieszka'\n ]\n );\n }", "title": "" }, { "docid": "f39736a1dd58b24415fb18f580a15480", "score": "0.7653886", "text": "public function run()\n {\n //$faker = Factory::create('uk_UA');\n $faker = Factory::create('ru_RU');\n\n foreach (range(1, 10) as $i) {\n Staff::create([\n 'first_name' => (($i % 2) == 0) ? $faker->firstNameMale : $faker->firstNameFemale,\n 'last_name' => $faker->lastName,\n 'middle_name' => (($i % 2) == 0) ? $faker->middleNameMale() : $faker->middleNameFemale(),\n 'sex' => (($i % 2) == 0) ? 'мужской' : 'женский',\n 'salary' => 600,\n ]);\n }\n\n foreach (Staff::all() as $people) {\n $positions = Position::inRandomOrder()->take(rand(1,3))->pluck('id');\n $people->positions()->attach($positions);\n }\n }", "title": "" }, { "docid": "727a6eb0cfb135db37a834cd42286ad5", "score": "0.7651371", "text": "public function run()\n {\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n //factory(Post::class, 48)->create();\n }", "title": "" }, { "docid": "0aa9e71a7d39d8e1c143c2676348855e", "score": "0.7650461", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // call our class and run our seeds\n\n DB::table('armari_a')->insert([\n\n 'id' => '2',\n 'nom_armari' => 'armari A',\n 'nom_producte' => 'Bosses puntes pipetes',\n 'stock_inicial' => '4',\n 'stock_actual' => '5',\n 'proveedor' => 'PIDISCAT',\n 'referencia_proveedor'=> '11971',\n 'marca_equip' => 'null',\n 'num_lot' => '0',\n\n ]);\n DB::table('armari_a')->insert([\n\n 'id' => '3',\n 'nom_armari' => 'armari A',\n 'nom_producte' => 'Puntes micropipeta',\n 'stock_inicial' => '17',\n 'stock_actual' => '17',\n 'proveedor' => 'PIDISCAT',\n 'referencia_proveedor'=> '0',\n 'marca_equip' => 'null',\n 'num_lot' => '0',\n\n\n ]);\n\n\n }", "title": "" }, { "docid": "3a36602f580a4a0d79e184724854eff2", "score": "0.76479024", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::truncate();\n Admin::truncate();\n factory(User::class, 2)->create();\n factory(Admin::class, 1)->create();\n //factory(Link::class, 10)->create();\n //factory(Category::class, 2)->create();\n }", "title": "" }, { "docid": "8a18fcb1937bb7f261796040e1fcfa6d", "score": "0.76466405", "text": "public function run()\n {\n //$this->call(StudentSeeder::class);\n $this->call(ClassroomSeeder::class);\n $this->call(FacultyMemberSeeder::class);\n $this->call(LectureSeeder::class);\n $this->call(LectureRegisterSeeder::class);\n\n DB::table('users')->insert([\n 'role' => '1',\n 'name' => 'Öğrenci işleri',\n 'email' => '[email protected]',\n 'password' => Hash::make( '123123' )\n ]);\n DB::table('users')->insert([\n 'role' => '2',\n 'name' => 'İlk',\n 'surname' => 'Öğrenci',\n 'code' => '1231231231',\n 'email' => '[email protected]',\n 'password' => Hash::make( '123123' )\n ]);\n DB::table('users')->insert([\n 'role' => '2',\n 'name' => 'İkinci',\n 'surname' => 'Öğrenci',\n 'code' => '1231231232',\n 'email' => '[email protected]',\n 'password' => Hash::make( '123123' )\n ]);\n }", "title": "" }, { "docid": "bcb79b7af39bcb53c4feae04acbb1a67", "score": "0.76453894", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n Attribute::create(['title' => 'Expertise and Competence']);\n Attribute::create(['title' => 'Responsiveness']);\n Attribute::create(['title' => 'Communication and Reporting']);\n Attribute::create(['title' => 'Trustworthiness (Confidentiality)']);\n Attribute::create(['title' => 'Quality of Service']);\n }", "title": "" }, { "docid": "41157008c4eff9687b3dcc670f9e4f1e", "score": "0.7644173", "text": "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n User::create([\n 'username' => $faker->word,\n 'fullname' => $faker->word,\n 'state' => 0,\n 'tel' => $faker->word,\n 'whatsapp' => $faker->word,\n 'token' => $faker->sentence,\n 'address' => $faker->word,\n 'email' => $faker->email,\n 'password' => $faker->word\n ]);\n }\n }", "title": "" }, { "docid": "9fde55e4c96d4dec4240ddd0ecd757be", "score": "0.7643901", "text": "public function run()\n {\n\t\t$this->call(CategoryTableSeeder::class);\n\t\t$this->call(GenreTableSeeder::class);\n\t\t$this->call(StateTableSeeder::class);\n\t\t$this->call(ImageTableSeeder::class);\n\t\t$this->call(AuthorImageTableSeeder::class);\n\t\t$this->call(CharacterImageTableSeeder::class);\n\n\t factory(User::class, 10)->create();\n\t factory(Customer::class, 10)->create();\n\t factory(Product::class, 20)->create();\n }", "title": "" } ]
22503261743fa2f0f456ffd1e18c90d3
utils for dashbord change menu list. change labels && remove item form menu.
[ { "docid": "b553cc190bc674ac488da085e53a85af", "score": "0.6662935", "text": "function change_menulist() {\n global $menu;\n global $submenu;\n // var_dump($menu);\n // var_dump($submenu);\n // $menu[5][0] = 'ニュース'; // 投稿をニュースに変更\n // $submenu['edit.php'][5][0] = 'ニュース一覧'; // 投稿一覧をニュース一覧に変更\n unset($menu[25]); // コメント\n unset($menu[75]); // ツール\n }", "title": "" } ]
[ { "docid": "8eb1b192f4a1c335063525d86a11b590", "score": "0.6706497", "text": "function crm_change_post_menu_label() {\n\tglobal $menu;\n\tglobal $submenu;\n\t$menu[5][0] = 'Slides';\n\t$submenu['edit.php'][5][0] = 'Slides';\n\t$submenu['edit.php'][10][0] = 'Add Slides';\n\t$submenu['edit.php'][15][0] = 'Presentations';\n\techo '';\n}", "title": "" }, { "docid": "2cc11e85d6b39480e64a76d65cfd7d79", "score": "0.64089185", "text": "public function hook_menu() {\n $items = parent::hook_menu();\n\n // Extend the 'add' path.\n $items[$this->path . '/add']['title'] = 'Add ' . eventsign_get_string('entity label');\n return $items;\n }", "title": "" }, { "docid": "2f85dc742c67736d604babfdbf437514", "score": "0.63944775", "text": "function OnBuildMenu()\n {\n $items = array( \n 'adminrename' => array( 'menu_text' => 'Upload Renaming',\n 'menu_group' => 'configure',\n 'access' => CC_ADMIN_ONLY,\n 'weight' => 30,\n 'action' => ccl('admin','renaming')\n ),\n );\n\n CCMenu::AddItems($items);\n }", "title": "" }, { "docid": "9d559884e2f4b4b8c9aca7892f41d31e", "score": "0.63697666", "text": "function change_post_menu_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'Actualités';\n $submenu['edit.php'][5][0] = 'Actualités';\n $submenu['edit.php'][10][0] = 'Ajouter une actualité';\n echo '';\n}", "title": "" }, { "docid": "470ae9d10d1ffefae18d5ba3f17658a1", "score": "0.6289674", "text": "function revcon_change_post_label() {\r\n global $menu;\r\n global $submenu;\r\n $menu[5][0] = 'Slides';\r\n $submenu['edit.php'][5][0] = 'Slides';\r\n $submenu['edit.php'][10][0] = 'Add Slide';\r\n $submenu['edit.php'][16][0] = 'Slide Tags';\r\n echo '';\r\n}", "title": "" }, { "docid": "9d605256f7f1f98854e1160cd93406af", "score": "0.628672", "text": "function change_post_menu_label() {\n global $menu;\n\tglobal $submenu;\n\t$menu[5][0] = __('Tin tức', 'themecustom');\n $menu[5][6] = 'dashicons-format-aside'; \n $submenu['edit.php'][5][0] = __('Tất cả tin tức', 'themecustom');\n $submenu['edit.php'][10][0] = __('Thêm mới', 'themecustom');\n $submenu['edit.php'][15][0] = __('Danh mục', 'themecustom');\n\t$submenu['edit.php'][16][0] = __('Các tag', 'themecustom');\n\n\t// var_dump($menu[26]);\n\t// $menu[26][0] = __('Sản phẩm', 'themecustom');\n\t// $submenu['edit.php?post_type=product'][5][0] = __('Tất cả sản phẩm', 'themecustom');\n\t// $submenu['edit.php?post_type=product'][10][0] = __('Thêm mới', 'themecustom');\n\t// $submenu['edit.php?post_type=product'][15][0] = __('Danh mục', 'themecustom');\n\t// $submenu['edit.php?post_type=product'][17][0] = __('Thuộc tính', 'themecustom');\n}", "title": "" }, { "docid": "8a227a07b3724be9d6563a01f2503ebb", "score": "0.6286384", "text": "function revcon_change_post_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = __( 'News', 'toro_developer' );\n $submenu['edit.php'][5][0] = __( 'News', 'toro_developer' );\n $submenu['edit.php'][10][0] = __( 'Add News', 'toro_developer' );\n $submenu['edit.php'][16][0] = __( 'News Tags', 'toro_developer' );\n echo '';\n }", "title": "" }, { "docid": "ac84b29ab85872668791829397d5c614", "score": "0.62697047", "text": "function edit_admin_menus() {\n\tglobal $menu;\n\t$menu[5][0] = 'News';\n}", "title": "" }, { "docid": "6517e9272da08b1d1f09885d5e783e93", "score": "0.6258203", "text": "function revcon_change_post_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'News';\n $submenu['edit.php'][5][0] = 'News';\n $submenu['edit.php'][10][0] = 'Add Post';\n $submenu['edit.php'][16][0] = 'News Tags';\n}", "title": "" }, { "docid": "fbb32f763eece08be3882acc0cd2a3f8", "score": "0.62528807", "text": "function change_post_menu_label() {\n global $menu;\n $menu[10][0] = 'Media Library';\n\treturn;\n}", "title": "" }, { "docid": "f3cf421f04e303be038fc25033c3d947", "score": "0.6201067", "text": "function swdev_bendaharas_modifymenu() {\n\tadd_menu_page('Bendahara', //page title\n\t'Bendahara', //menu title\n\t'manage_options', //capabilities\n\t'swdev_bendahara_list', //menu slug\n\tswdev_bendahara_list //function\n\t);\n\t\n\t//this is a submenu\n\tadd_submenu_page('swdev_bendahara_list', //parent slug\n\t'Tambahkan Bendahara', //page title\n\t'Tambahkan', //menu title\n\t'manage_options', //capability\n\t'swdev_bendahara_create', //menu slug\n\t'swdev_bendahara_create'); //function\n\t\n\t//this submenu is HIDDEN, however, we need to add it anyways\n\tadd_submenu_page(null, //parent slug\n\t'Update Bendahara', //page title\n\t'Update', //menu title\n\t'manage_options', //capability\n\t'swdev_bendahara_update', //menu slug\n\t'swdev_bendahara_update'); //function\n}", "title": "" }, { "docid": "73bce0c472ef9dac86afd9ddd953edbc", "score": "0.6200764", "text": "function sld_manage_menu_items() {\n if( !current_user_can( 'administrator' ) ) {\n }\n remove_menu_page('edit-comments.php'); // Comments\n remove_menu_page('tools.php'); // Tools\n\n}", "title": "" }, { "docid": "aeaedf237a43c59622e3e5354cfbca26", "score": "0.61822546", "text": "function vh_modifymenu() {\n\tadd_submenu_page(\"menu_transportes\",\n\t'Vehiculos', //page title\n\t'Vehiculos', //menu title\n\t'manage_options', //capabilities\n\t'tran_vh_list', //menu slug\n\t'tran_vh_list' //function\n\t);\n\n\t//this submenu is HIDDEN, however, we need to add it anyways\n\tadd_submenu_page(null, //parent slug\n\t'Update Vehiculos', //page title\n\t'Update', //menu title\n\t'manage_options', //capability\n\t'tran_vh_update', //menu slug\n\t'tran_vh_update'); //function\n\n\t//this is a submenu\n\tadd_submenu_page(null, //parent slug\n\t'New Vehiculos', //page title\n\t'New', //menu title\n\t'manage_options', //capability\n\t'tran_vh_create', //menu slug\n\t'tran_vh_create'); //function\n\t\n}", "title": "" }, { "docid": "222cab5ba7f8cd47d028f425c749b6a9", "score": "0.616949", "text": "private function change_post_menu_label() {\n\t\tglobal $menu;\n\t\tglobal $submenu;\n\n\t\t$n = (array)$this->posts_menu_label;\n\n\t\t$menu[5][0] = $n['name'];\n\t\tif($n['name']) $submenu['edit.php'][5][0] = __('Všechny').' '.$n['name'];\n\t\tif($n['add_new']) $submenu['edit.php'][10][0] = $n['add_new'];\n\t\techo '';\n\t}", "title": "" }, { "docid": "3fd9e3dcd2a08ec14a6388233578e883", "score": "0.6150047", "text": "function change_post_label() {\n\n global $menu;\n global $submenu;\n $menu[5][0] = 'Stories';\n $submenu['edit.php'][5][0] = 'Stories';\n $submenu['edit.php'][10][0] = 'Add Stories';\n $submenu['edit.php'][16][0] = 'Stories Tags';\n echo '';\n\n}", "title": "" }, { "docid": "a67af1174dea70c491f6a7b6a8b1dc9d", "score": "0.61355686", "text": "function change_post_menu_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'Blog';\n $submenu['edit.php'][5][0] = 'Blogs';\n $submenu['edit.php'][10][0] = 'Add Blog Post';\n echo '';\n}", "title": "" }, { "docid": "047d12cde5611a67452cf2f23799acdf", "score": "0.6133144", "text": "function remove_admin_menu_items() {\n\t if (!current_user_can('update_core')) {\n\n\t\t\t$remove_menu_items = array(__('Comments'),__('Tools'));\n\t\t\tglobal $menu;\n\t\t\tend ($menu);\n\t\t\twhile (prev($menu)){\n\t\t\t\t$item = explode(' ',$menu[key($menu)][0]);\n\t\t\t\tif(in_array($item[0] != NULL?$item[0]:\"\" , $remove_menu_items)){\n\t\t\t\tunset($menu[key($menu)]);}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "01cc714c6630e955ca031e822738e67c", "score": "0.61127657", "text": "function filter_AddMenuItems($menu_items) {\n $this->admin_menu_entries = array(array(\n 'label' => $this->name,\n 'slug' => $this->addon->short_slug,\n 'class' => $this->admin,\n 'function' => 'render_AdminPage'\n ));\n return parent::filter_AddMenuItems($menu_items);\n }", "title": "" }, { "docid": "bbb4c66f550438fd904c86cce060f0c2", "score": "0.6089655", "text": "function hook_os_menus_alter(&$menus) {\n\n // Remove this menu.\n if (isset($menus['primary-menu'])) {\n unset($menus['primary-menu']);\n }\n}", "title": "" }, { "docid": "0a24d5d6526cf2e8d29a6719575d9d58", "score": "0.608945", "text": "function menu_hook_handler($hook, $type, $items, $params) {\n\n\tforeach ($items['default'] as $key => $item) {\n\t\tswitch ($item->getName()) {\n\t\t\tcase 'groups:all': \n\t\t\tcase 'groups:member': \n\t\t\tcase 'groups:owned': \n\t\t\tcase 'groups:user:invites': \n\t\t\tcase 'rss': \n\t\t\t\tunset($items['default'][$key]); \n\t\t\t\tbreak;\t\n\t\t}\n }\n return $items;\n}", "title": "" }, { "docid": "6652b263ed9145599a1afbc12097b275", "score": "0.6035972", "text": "function remove_admin_menus () { \n global $menu; \n $removed = array( \n __('LMS'), \n\t__('WPLMS'),\n __('Font Awesome') \n\t); \n end ($menu); \n while (prev($menu)){ \n $value = explode(\n ' ',\n $menu[key($menu)][0]); \n if(in_array($value[0] != NULL?$value[0]:\"\" , $removed)){\n unset($menu[key($menu)]);\n }\n } \n}", "title": "" }, { "docid": "54c7cbb40540ec13c7d3554ff1494977", "score": "0.60339326", "text": "function gleamsoft_demo_modifymenu() {\n\tadd_menu_page('Gleamsoft', //page title\n\t'Gleamsoft', //menu title\n\t'manage_options', //capabilities\n\t'gleamsoft_demo_list', //menu slug\n\t'gleamsoft_demo_list' //function\n\t);\n\t\n\t//this is a submenu\n\tadd_submenu_page('gleamsoft_demo_list', //parent slug\n\t'Crear nuevo', //page title\n\t'Nuevo', //menu title\n\t'manage_options', //capability\n\t'gleamsoft_demo_create', //menu slug\n\t'gleamsoft_demo_create'); //function\n\t\n\t//this submenu is HIDDEN, however, we need to add it anyways\n\tadd_submenu_page(null, //parent slug\n\t'Actualizar registro', //page title\n\t'Actualizar', //menu title\n\t'manage_options', //capability\n\t'gleamsoft_demo_update', //menu slug\n\t'gleamsoft_demo_update'); //function\n}", "title": "" }, { "docid": "c84e7f7c929139910bd76292170b32e3", "score": "0.600334", "text": "function User_modifymenu() {\n add_menu_page('User', //page title\n 'User', //menu title\n 'manage_options', //capabilities\n 'User_list', //menu slug\n 'User_list' //function\n );\n \n //this is a submenu\n add_submenu_page('User_list', //parent slug\n 'Add New User', //page title\n 'Add New', //menu title\n 'manage_options', //capability\n 'User_create', //menu slug\n 'User_create'); //function\n \n //this submenu is HIDDEN, however, we need to add it anyways\n add_submenu_page(null, //parent slug\n 'Update User', //page title\n 'Update', //menu title\n 'manage_options', //capability\n 'User_update', //menu slug\n 'User_update'); //function\n }", "title": "" }, { "docid": "2cc27c09e754461a9cf7097686c6fb21", "score": "0.5995028", "text": "function montarMenuPrograma(){\n\t\t$menu = parent::montarMenuPrograma();\n\t\t$menu->removerItem($this->inter->pegarTexto('botaoExcluir'));\n\t\t$menu->removerItem($this->inter->pegarTexto('botaoListagem'));\n\t\treturn $menu;\n\t}", "title": "" }, { "docid": "5f1e7e4c7d5a7ca8e22b154c19d17f95", "score": "0.59582394", "text": "function bareskin_modify_menu_display($items, $menu, $args){\n\t\n\t/* Define an array that will hold all the ids of the menu items that have childen*/\n\t$menu_ids_that_have_childern = array();\n\t\n\t/* Populate the array by looping through all the menu items */\n\tforeach ( $items as $item ){ \n\t\t\n\t\tif( $item->menu_item_parent != '0'){\n\t\t\tif( !in_array($item->menu_item_parent, $menu_ids_that_have_childern ) )\n\t\t\t\t$menu_ids_that_have_childern[] = $item->menu_item_parent;\t\t\t\n\t\t}\n \n }\n\t\n\t/* Add class 'has-children' to the items that have tha id in the previously populated $menu_ids_that_have_childern array */\n\tforeach ( $items as $item ){\n\t\tif( in_array( $item->ID, $menu_ids_that_have_childern ) ){\n\t\t\t$item->classes[] = 'has-children';\n\t\t}\n\t}\n\n\t\n\treturn $items;\n}", "title": "" }, { "docid": "41e6b7c25bd3f6282e58c7edfabfe008", "score": "0.59546393", "text": "public function choose_menu_name()\n {\n require_code('form_templates');\n\n $rows = $GLOBALS['SITE_DB']->query_select('menu_items', array('DISTINCT i_menu'), null, 'ORDER BY i_menu');\n $rows = list_to_map('i_menu', $rows);\n $list = new Tempcode();\n foreach ($rows as $row) {\n $item_count = $GLOBALS['SITE_DB']->query_select_value('menu_items', 'COUNT(*)', array('i_menu' => $row['i_menu']));\n $label = do_lang_tempcode('MENU_ITEM_COUNT', escape_html($row['i_menu']), escape_html(integer_format($item_count)));\n $list->attach(form_input_list_entry($row['i_menu'], false, $label));\n }\n if ((!isset($rows['main_menu'])) && (get_option('header_menu_call_string') == 'main_menu')) {\n $list->attach(form_input_list_entry('', false, do_lang_tempcode('DEFAULT')));\n }\n\n $fields = new Tempcode();\n\n $set_name = 'menu';\n $required = true;\n $set_title = do_lang_tempcode('MENU');\n $field_set = alternate_fields_set__start($set_name);\n\n if (!$list->is_empty()) {\n $field_set->attach(form_input_list(do_lang_tempcode('EXISTING'), do_lang_tempcode('EXISTING_MENU'), 'id', $list, null, true, false));\n }\n\n $field_set->attach(form_input_codename(do_lang_tempcode('NEW'), do_lang_tempcode('NEW_MENU'), 'id_new', '', false));\n\n $fields->attach(alternate_fields_set__end($set_name, $set_title, '', $field_set, $required));\n\n // Actualiser URL\n $map = array('page' => '_SELF', 'type' => 'edit');\n if (get_param_string('redirect', '!') != '!') {\n $map['redirect'] = get_param_string('redirect');\n }\n $post_url = build_url($map, '_SELF', null, false, true);\n\n $submit_name = do_lang_tempcode('EDIT');\n\n return do_template('FORM_SCREEN', array(\n '_GUID' => 'f3c04ea3fb5e429210c5e33e5a2f2092',\n 'GET' => true,\n 'SKIP_WEBSTANDARDS' => true,\n 'TITLE' => $this->title,\n 'HIDDEN' => '',\n 'TEXT' => do_lang_tempcode('CHOOSE_EDIT_LIST'),\n 'FIELDS' => $fields,\n 'URL' => $post_url,\n 'SUBMIT_ICON' => 'buttons__proceed',\n 'SUBMIT_NAME' => $submit_name,\n ));\n }", "title": "" }, { "docid": "f93018687fb1f96299d375011db8b885", "score": "0.59520334", "text": "function dfi_remove_menu_items(){\n \tremove_menu_page( 'edit.php' ); // Posts\n \tremove_menu_page( 'edit-comments.php' ); // Posts\n \tremove_menu_page( 'users.php' ); // Users\n\t}", "title": "" }, { "docid": "f423fd92bbb1cd2bb680fa947088ab3a", "score": "0.5946618", "text": "function cleannoc_component_addmenu($arg = null)\n{\n global $cleannoc_component_name;\n\n $urlbase = get_component_url_base($cleannoc_component_name);\n\n\n $mi = find_menu_item(MENU_HOME, \"menu-home-tacticaloverview\", \"id\");\n if ($mi == null)\n return;\n\n $order = grab_array_var($mi, \"order\", \"\");\n if ($order == \"\")\n return;\n\n $neworder = $order + 0.1;\n add_menu_item(MENU_HOME, array(\n \"type\" => \"link\",\n \"title\" => gettext(\"Clean NOC\"),\n \"id\" => \"menu-home-cleannoc\",\n \"order\" => $neworder,\n \"opts\" => array(\n \"href\" => $urlbase . \"/index.php\",\n )\n ));\n\n}", "title": "" }, { "docid": "a5aef5d7826afc03124df8fb495c3af1", "score": "0.5935154", "text": "function pxp_hide_add_menu()\n\t{\n\t\tglobal $submenu;\n\t\t\n\t\tunset($submenu['edit.php?post_type=pxp_credit_blocks'][10]);\n\t\tunset($submenu['edit.php?post_type=pxp_promo_codes'][10]);\n\t\tunset($submenu['edit.php?post_type=pxp_adjustments'][10]);\n\t}", "title": "" }, { "docid": "ada6b5e44cc15ef43c920c7cd014324e", "score": "0.5903595", "text": "function m3_remove_admin_bar_items() {\r\n\tglobal $wp_admin_bar;\r\n\t$wp_admin_bar->remove_menu( 'new-link', 'new-content' );\r\n\t$wp_admin_bar->remove_menu( 'new-media', 'new-content' );\r\n}", "title": "" }, { "docid": "d8fa5d284640dea560dd430f7fea11ce", "score": "0.5887129", "text": "private function addMenu()\n {\n }", "title": "" }, { "docid": "439799c391d01a9fa8c0e068192f1d6a", "score": "0.5870717", "text": "function remove_menus () {\n global $menu, $submenu, $current_user;\n\n // Remove 'Posts'\n if ( ! cbstdsys_opts('m_blog') )\n unset($menu[multidimensional_search( $menu, array( 2 =>'edit.php') )]);\n\n\t\t\t\t// Remove 'Links'.\n if ( ! cbstdsys_opts('m_links') )\n unset($menu[multidimensional_search( $menu, array( 2 =>'link-manager.php') )]);\n \n // Remove 'Comments'. \n if ( ! cbstdsys_opts('m_comments') )\n unset($menu[multidimensional_search( $menu, array( 2 =>'edit-comments.php') )]);\n\n // Remove Tags\n if ( ! cbstdsys_opts('m_tags') )\n unset($submenu['edit.php'][multidimensional_search( $submenu['edit.php'], array( 2 =>'edit-tags.php?taxonomy=post_tag') )]);\n\n\t\t\t\t// Removes 'Widgets'.\n if ( cbstdsys_opts('m_widgets') == 'not' ) {\n \t\tunset($submenu['themes.php'][multidimensional_search( $submenu['themes.php'], array( 2 =>'widgets.php') )]);\n\t\t\t\t} elseif ( cbstdsys_opts('m_widgets') == 'admins' && !in_array($current_user->ID, cbstdsys_opts('a_admin_user_IDs') ) ) {\n\t\t\t\t\t\tunset($submenu['themes.php'][multidimensional_search( $submenu['themes.php'], array( 2 =>'widgets.php') )]);\n } else {\n // get the the role object\n $role_object = get_role( apply_filters( 'cbstdsys_define_role_to_change_themeoptions', 'editor' ) );\n // add $cap capability to this role object\n $role_object->add_cap( 'edit_theme_options' );\n\n\t\t\t\t}\n\n // Show 'Menu' to Editors also\n if ( current_theme_supports( 'menus' ) ) {\n // get the the role object\n $role_object = get_role( apply_filters( 'cbstdsys_define_role_to_change_themeoptions', 'editor' ) );\n // add $cap capability to this role object\n $role_object->add_cap( 'edit_theme_options' );\n }\n\n // Removes 'Background'.\n if ( ! cbstdsys_opts('d_bg_images') )\n unset($submenu['themes.php'][multidimensional_search( $submenu['themes.php'], array( 2 =>'custom-background') )]);\n\n\t\t\t\t// Removes 'Header Images'.\n if ( ! cbstdsys_opts('d_header_images') )\n unset($submenu['themes.php'][multidimensional_search( $submenu['themes.php'], array( 2 =>'custom-header') )]);\n\n // Remove for non-Admins\n if ( !in_array($current_user->ID, cbstdsys_opts('a_admin_user_IDs') ) ) {\n\n // Remove 'Plugins'. \n \t\tunset($menu[multidimensional_search( $menu, array( 2 =>'plugins.php') )]);\n\n\t\t\t\t\t\t// Remove 'Tools' or 'Werkzeuge'.\t\n \t\tunset($menu[multidimensional_search( $menu, array( 2 =>'tools.php') )]);\n\n\t\t\t\t\t\t// Remove Settings\n \t\tunset($menu[multidimensional_search( $menu, array( 2 =>'options-general.php') )]);\n\t\t\t\t\t\t\n // Remove CF7 'Formular'.\n \t\tunset($menu[multidimensional_search( $menu, array( 2 =>'wpcf7') )]);\n\t\t\t\t\t\t\t\n // Remove 'BackWPup'.\n \t\tunset($menu[multidimensional_search( $menu, array( 2 =>'backwpup') )]);\n \n // Removes 'Updates' and duplicated submenu \"Home\"\n unset($submenu['index.php'][multidimensional_search( $submenu['index.php'], array( 2 =>'update-core.php') )]);\n unset($submenu['index.php'][multidimensional_search( $submenu['index.php'], array( 2 =>'index.php') )]);\n \n // Removes 'Themes'.\n unset($submenu['themes.php'][multidimensional_search( $submenu['themes.php'], array( 2 =>'themes.php') )]);\n\n\t\t\t\t\t\t// Removes 'Editor'.\n unset($submenu['themes.php'][multidimensional_search( $submenu['themes.php'], array( 2 =>'theme-editor.php') )]);\n }\n }", "title": "" }, { "docid": "608bb75e002701f4c17ef580d06bfbf6", "score": "0.5861129", "text": "private function initMenu() {\n $items = array();\n Menu::setMenu($items, __CLASS__);\n }", "title": "" }, { "docid": "1d08545a70b72aed12e1d52b2d78b402", "score": "0.5858425", "text": "public function wpua_subscriber_remove_menu_bar_items() {\n global $wp_admin_bar;\n $wp_admin_bar->remove_menu('comments');\n $wp_admin_bar->remove_menu('new-content');\n }", "title": "" }, { "docid": "89e967b42246266be6538f6b38690dc9", "score": "0.58396465", "text": "function wps_admin_bar() {\n global $wp_admin_bar;\n $wp_admin_bar->remove_menu('wp-logo');\n $wp_admin_bar->remove_menu('about');\n $wp_admin_bar->remove_menu('wporg');\n $wp_admin_bar->remove_menu('documentation');\n $wp_admin_bar->remove_menu('support-forums');\n $wp_admin_bar->remove_menu('feedback');\n $wp_admin_bar->remove_menu('view-site');\n $wp_admin_bar->remove_menu('updates');\n\n}", "title": "" }, { "docid": "cf61f41fe5debdfeb00a9e431598e5fe", "score": "0.5823619", "text": "protected function setupListMenu($actions)\n {\n\n $this->listBuilder = new WgtListMenu($actions);\n\n }", "title": "" }, { "docid": "c7d7e68a11480dbd21ea12a987b8b71f", "score": "0.58231544", "text": "function remove_menu_items() {\n\n remove_menu_page( 'edit.php' ); # posts page\n remove_menu_page( 'themes.php' ); # theme selection\n remove_menu_page( 'plugins.php' ); # plugins selection\n remove_menu_page( 'edit-comments.php' ); # comments page\n remove_menu_page( 'users.php' ); # users page\n remove_menu_page( 'options-general.php' ); # options page\n remove_menu_page( 'ms-delete-site.php' ); # delete website\n remove_menu_page( 'mlang' ); # polylang page\n remove_menu_page( 'edit.php?post_type=acf-field-group' ); # acf page\n\n}", "title": "" }, { "docid": "7ea722632b1caa2417397989fc6bddc4", "score": "0.58205545", "text": "function add_menu_special_labels( $items, $args ) {\n\n foreach( $items as &$item ) {\n\n $icon = get_field('page_submenu_icon', $item->ID);\n// var_dump($icon);\n\n\n if( $icon ) {\n// var_dump($item);\n $item->title .= '<span class=\"menu-item__icon\"><img src=\"' . $icon['url'] . '\" alt=\"\"></span>';\n\n }\n }\n\n return $items;\n}", "title": "" }, { "docid": "47d3b45ed22aa339c53c9a60f1cb1c21", "score": "0.581474", "text": "function local_main_nav_update(&$menu)\n{\n foreach($menu as $key => $value)\n {\n // remove subnav menu items\n if (strstr($value['path'], '/'))\n {\n unset($menu[$key]);\n }\n // hide Groups and Content menu item\n if($value['path'] === 'content')\n {\n unset($menu[$key]);\n }\n // change the title of the 'Portfolio\" button\n if($value['path'] === 'myportfolio')\n {\n $menu[$key]['title'] = get_string('views', 'mahara');\n }\n // detect if eschool admin is logged in\n if($value['path'] === 'configusers')\n {\n $eschooladmin = true;\n }\n // decect if site admin is logged in\n if($value['path'] === 'configextensions')\n {\n $siteadmin = true;\n }\n }\n\n // Its an community admin, so add the custom config site button\n if(isset($eschooladmin) && !isset($siteadmin))\n {\n foreach($menu as $key => $value)\n {\n if($value['path'] === 'manageinstitutions')\n {\n $menu[$key]['url'] = 'admin/users/institutionusers.php';\n }\n }\n $config_element = array('configsite' => array('path' => 'configsite',\n 'url' => 'artefact/eschooladmin/settings.php',\n 'title' => get_string('configsite', 'admin'),\n 'weight' => 0));\n array_splice($menu, 0, 0, $config_element);\n }\n\n // Not on an admin page, so add the Custom Profile and Courses buttons\n\n if(count($menu) === 3)\n {\n /*\n $profile_element = array('profile' => array('path' => 'profile',\n 'url' => 'user/view.php',\n 'title' => ucfirst(get_string('profile', 'mahara')),\n 'weight' => 20,\n 'accesskey' => 'p'));\n */\n $courses_element = array('courses' => array('path' => 'courses',\n 'url' => 'artefact/courses',\n 'title' => get_string('courses', 'globalclassroom'),\n 'weight' => 50,\n 'accesskey' => 'c'));\n //array_splice($menu, 1, 0, $profile_element);\n array_splice($menu, 3, 0, $courses_element);\n }//var_dump($menu);die;\n}", "title": "" }, { "docid": "ee22406a1d814fe181e89f6f4efd7a9c", "score": "0.58119303", "text": "function bpt_remove_menu() {\nglobal $menu;\n\n\tforeach($menu as $menu_item){\n\t\tif($menu_item[2] == \"edit.php?post_type=ep_reg\"){\n\t\t\t$registration_menu_arr_key = array_keys($menu,$menu_item);\n\t\t\tunset($menu[$registration_menu_arr_key[0]]);\n\t\t\tbreak;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "bbb84f43626c36c4ad9b198e862f0066", "score": "0.5811842", "text": "function remove_items() {\r\n if ( current_user_can( 'editor' ) ) {\r\n remove_menu_page('edit-comments.php'); // Ocultando comentarios\r\n remove_menu_page('edit.php'); // Ocultando las entradas/post\r\n }\r\n\r\n // En caso de ser un autor\r\n if ( current_user_can( 'author' ) ) {\r\n remove_menu_page('tools.php'); // Ocultando herramientas \r\n remove_menu_page('upload.php'); // Ocultando medios\r\n }\r\n\r\n // En caso de ser un suscriptor\r\n if ( current_user_can( 'subscriber' ) ) {\r\n remove_menu_page('index.php'); // Ocultando escritorio del suscriptor\r\n }\r\n\r\n}", "title": "" }, { "docid": "2834aced4c0a1909758832c512d77336", "score": "0.5798841", "text": "public function menus();", "title": "" }, { "docid": "d2e4d89dbf25baa19441e96e5f0fc8b2", "score": "0.5796433", "text": "function custom_vendor_dashboard_menu( $menu_items ) {\n\t$menu_items['tab_name'] = array(\n\t\t\"icon\" => \"earnings\",\n\t\t\"task\" => array( 'tab_name' ),\n\t\t\"name\" => __( 'Tab Name', 'edd_fes' ), // the text that appears on the tab\n\t);\n\treturn $menu_items;\n}", "title": "" }, { "docid": "2e27133326334909e9e9666f9f5a357e", "score": "0.5784197", "text": "static function add_menu() {\n add_management_page( 'Simple Changed Files', 'Simple Changed Files', 'manage_options', 'scf_tool_page', array(__CLASS__, 'tool_page'));\n }", "title": "" }, { "docid": "c43c5b6c4dd3dd44fa33512ea6738820", "score": "0.5758592", "text": "function remove_menus()\n\t{\n\t\tglobal $menu;\n\t\n\t\t$hidePages = false;\n\t\t$hidePosts = false;\n\t\t\n\t\t\n\t\t$items = array(\n\t\t\t//__('Media'),\n\t\t\t__('Links')\n\t\t);\n\t\t\n\t\tif ($hidePages)\n\t\t\t$items[] = __('Pages');\n\t\telse if ($hidePosts)\n\t\t\t$items[] = __('Posts');\n\t\t\n\t\t\n\t\tif (!current_user_can('add_users'))\n\t\t\t$items[] = __('Users');\n\t\t\n\t\tif (!current_user_can('switch_themes'))\n\t\t\t$items[] = __('Appearance');\n\t\t\n\t\tif (!current_user_can('manage_options'))\n\t\t{\n\t\t\t$items[] = __('Settings');\n\t\t\t$items[] = __('Tools');\n\t\t\t$items[] = __('Plugins');\n\t\t}\n\t\t\n\t\n\t\tend ($menu);\n\t\twhile (prev($menu))\n\t\t{\n\t\t\t$value = explode(' ',$menu[key($menu)][0]);\n\t\t\t\n\t\t\tif(in_array($value[0] != NULL ? $value[0] : \"\" , $items))\n\t\t\t\tunset($menu[key($menu)]);\n\t\t}// end while\n\t\t\n\t\t\n\t\t// Add categories section under pages\n\t\tif ($hidePosts)\n\t\t\tadd_pages_page('Categories', 'Categories', 'edit_pages', 'edit-tags.php?taxonomy=category', null);\n\t\t\n\t\t// Remove widgets\n\t\t//remove_submenu_page('themes.php', 'widgets.php');\n\t}", "title": "" }, { "docid": "9664e8a60e415958d616efd107d82d8a", "score": "0.57406455", "text": "public function create_menu()\n\t{\n\t\tinclude(APPPATH.'views/'.$this->theme_path.'menu/menu.php');\n\t\t$removed_items = config::get('removed_menu_items', '*');\n\t\tif (!empty($removed_items)) {\n\t\t\t$remove_items = unserialize($removed_items);\n\t\t\t$this->remove_menu_items($menu_base, $menu_items, $remove_items);\n\t\t}\n\t\treturn $menu_base;\n\t}", "title": "" }, { "docid": "639d054e64b50ea35cdedf70893731f1", "score": "0.5737888", "text": "public static function label()\n {\n return 'Menus';\n }", "title": "" }, { "docid": "853e9b174350203b0d2702e5eec761cf", "score": "0.5728423", "text": "function menuConfig()\n {\n global $LANG;\n $this->MOD_MENU = Array(\n 'function' => Array(\n '1' => $LANG->getLL('function1'\n ),\n '2' => $LANG->getLL('function2'\n ), '3' => $LANG->getLL('function3'),));\n parent:: menuConfig();\n }", "title": "" }, { "docid": "12af74d4dd4b71d9c505b95aeba20f45", "score": "0.5724733", "text": "function wps_admin_bar() {\n global $wp_admin_bar;\n $wp_admin_bar->remove_menu('wp-logo');\n $wp_admin_bar->remove_menu('about');\n $wp_admin_bar->remove_menu('wporg');\n $wp_admin_bar->remove_menu('documentation');\n $wp_admin_bar->remove_menu('support-forums');\n $wp_admin_bar->remove_menu('feedback');\n $wp_admin_bar->remove_menu('view-site');\n}", "title": "" }, { "docid": "db1a939bc1ba27642459f71194ef02c5", "score": "0.57172334", "text": "function menuConfig()\t{\r\n\t\t\t\t\tglobal $LANG;\r\n\t\t\t\t\t$this->MOD_MENU = Array (\r\n\t\t\t\t\t\t'function' => Array (\r\n\t\t\t\t\t\t\t'1' => $LANG->getLL('function1'),\r\n\t\t\t\t\t\t\t'2' => $LANG->getLL('function2'),\r\n\t\t\t\t\t\t\t'3' => $LANG->getLL('function3'),\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t);\r\n\t\t\t\t\tparent::menuConfig();\r\n\t\t\t\t}", "title": "" }, { "docid": "93f70ca8cb17869a3916f01be5e2f8e0", "score": "0.57154787", "text": "public function hook_menu() {\n\n $items = array();\n \n // Add a notification page...\n $items['thumbwhere/host_role_subrole/notify'] = array(\n 'title' => 'Notifications Callback for \"HostSubRole\" Entity',\n 'page callback' => '_thumbwhere_host_role_subrole_notify',\n 'access arguments' => array(\n 'send thumbwhere hostsubrole notifications'\n ),\n 'file' => 'thumbwhere_hostsubrole.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n ); \n \n $id_count = count(explode('/', $this->path));\n $wildcard = isset($this->entityInfo['admin ui']['menu wildcard']) ? $this->entityInfo['admin ui']['menu wildcard'] : '%' . $this->entityType;\n\n $items[$this->path] = array(\n 'title' => 'HostSubRole',\n 'description' => 'Add edit and update thumbwhere_hostsubroles.',\n 'page callback' => 'system_admin_menu_block_page',\n 'access arguments' => array('access administration pages'),\n 'file path' => drupal_get_path('module', 'system'),\n 'file' => 'system.admin.inc',\n );\n\n // Change the overview menu type for the list of thumbwhere_hostsubroles.\n $items[$this->path]['type'] = MENU_LOCAL_TASK;\n\n // Change the add page menu to multiple types of entities\n $items[$this->path . '/add'] = array(\n //'title' => 'Add a HostSubRole',\n 'title' => 'Add',\n 'description' => 'Add a new HostSubRole',\n 'page callback' => 'thumbwhere_hostsubrole_form_wrapper',\n 'page arguments' => array(thumbwhere_hostsubrole_create(array('type' => 'thumbwhere_hostsubrole'))),\n 'access callback' => 'thumbwhere_hostsubrole_access',\n 'access arguments' => array('edit', 'edit ' . 'thumbwhere_hostsubrole'),\n 'file' => 'thumbwhere_hostsubrole.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n\n\n/*\n // Change the add page menu to multiple types of entities\n $items[$this->path . '/add'] = array(\n //'title' => 'Add a HostSubRole',\n 'title' => 'Add',\n\t 'description' => 'Add a new HostSubRole',\n 'page callback' => 'thumbwhere_hostsubrole_add_page',\n 'access callback' => 'thumbwhere_hostsubrole_access',\n 'access arguments' => array('edit'),\n 'type' => MENU_NORMAL_ITEM,\n 'weight' => 20,\n 'file' => 'thumbwhere_hostsubrole.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n\n );\n*/ \n/*\n $items[$this->path . '/add/' . 'thumbwhere_hostsubrole'] = array(\n 'title' => 'Add ' . 'ThumbWhereHostSubRole',\n 'page callback' => 'thumbwhere_hostsubrole_form_wrapper',\n 'page arguments' => array(thumbwhere_hostsubrole_create(array('type' => 'thumbwhere_hostsubrole'))),\n 'access callback' => 'thumbwhere_hostsubrole_access',\n 'access arguments' => array('edit', 'edit ' . 'thumbwhere_hostsubrole'),\n 'file' => 'thumbwhere_hostsubrole.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n*/\n // Loading and editing thumbwhere_hostsubrole entities\n $items[$this->path . '/thumbwhere_hostsubrole/' . $wildcard] = array(\n 'page callback' => 'thumbwhere_hostsubrole_form_wrapper',\n 'page arguments' => array($id_count + 1),\n 'access callback' => 'thumbwhere_hostsubrole_access',\n 'access arguments' => array('edit', $id_count + 1),\n 'weight' => 0,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n 'file' => 'thumbwhere_hostsubrole.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n $items[$this->path . '/thumbwhere_hostsubrole/' . $wildcard . '/edit'] = array(\n 'title' => 'Edit',\n 'type' => MENU_DEFAULT_LOCAL_TASK,\n 'weight' => -10,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n );\n\n $items[$this->path . '/thumbwhere_hostsubrole/' . $wildcard . '/delete'] = array(\n 'title' => 'Delete',\n 'page callback' => 'thumbwhere_hostsubrole_delete_form_wrapper',\n 'page arguments' => array($id_count + 1),\n 'access callback' => 'thumbwhere_hostsubrole_access',\n 'access arguments' => array('edit', $id_count + 1),\n 'type' => MENU_LOCAL_TASK,\n 'context' => MENU_CONTEXT_INLINE,\n 'weight' => 10,\n 'file' => 'thumbwhere_hostsubrole.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n\n // Menu item for viewing thumbwhere_hostsubroles\n $items['thumbwhere_hostsubrole/' . $wildcard] = array(\n //'title' => 'Title',\n 'title callback' => 'thumbwhere_hostsubrole_page_title',\n 'title arguments' => array(1),\n 'page callback' => 'thumbwhere_hostsubrole_page_view',\n 'page arguments' => array(1),\n 'access callback' => 'thumbwhere_hostsubrole_access',\n 'access arguments' => array('view', 1),\n 'type' => MENU_CALLBACK,\n );\n return $items;\n }", "title": "" }, { "docid": "5ce4eedfb526bfb7ab65c04dcd23b6eb", "score": "0.57073164", "text": "function admin_add_menus() {\r\n $this->admin_settings_add_menu();\r\n }", "title": "" }, { "docid": "a4dfa7b303f2b8ac58e5129275184f16", "score": "0.57052267", "text": "function init_menu() {\n if (func_num_args()>0) {\n $arg_list = func_get_args();\n }\n\n // menu entries\n\n // add more detail\n module::set_detail($this->description, $this->version, $this->author, $this->module);\n\n }", "title": "" }, { "docid": "a4dfa7b303f2b8ac58e5129275184f16", "score": "0.57052267", "text": "function init_menu() {\n if (func_num_args()>0) {\n $arg_list = func_get_args();\n }\n\n // menu entries\n\n // add more detail\n module::set_detail($this->description, $this->version, $this->author, $this->module);\n\n }", "title": "" }, { "docid": "09ca698856428bbacdc6fa212a2ca737", "score": "0.5704989", "text": "abstract protected function acceuilMenu();", "title": "" }, { "docid": "b8cf11ef2dd6ec6fbbdeeed6adf42823", "score": "0.5703311", "text": "function init_menu() \n {\n // under LIBRARIES\n if (func_num_args()>0) \n {\n $arg_list = func_get_args();\n }\n \n // menu entries\n module::set_menu($this->module, \"FP Follow-ups\", \"CONSULTS\", \"_mc_followup\");\n module::set_menu($this->module, \"FP History\", \"LIBRARIES\", \"_fp_history\");\n module::set_menu($this->module, \"FP Methods\", \"LIBRARIES\", \"_fp_methods\");\n \n // add more detail\n module::set_detail($this->description, $this->version, $this->author, $this->module);\n \n }", "title": "" }, { "docid": "b4ec8fd77a01fe5228dd5c9cf6f9da9c", "score": "0.569673", "text": "public function reregister_menu_items() {\n\t\tglobal $menu, $submenu;\n\n\t\t// Change the menu only when rendered in Calypso.\n\t\tif ( $this->is_api_request || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) {\n\t\t\t// Reset menus so there are no third-party plugin items.\n\t\t\t$menu = array(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited\n\t\t\t$submenu = array(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited\n\n\t\t\tparent::reregister_menu_items();\n\n\t\t\t$this->add_feedback_menu();\n\t\t\t$this->add_wp_admin_menu();\n\n\t\t\tksort( $GLOBALS['menu'] );\n\t\t}\n\t}", "title": "" }, { "docid": "d0413b824910ea15703eef25d64f01dd", "score": "0.5693049", "text": "function remove_menu_items() {\n\n remove_menu_page( 'index.php' );\n remove_menu_page( 'separator1' ); \n remove_menu_page( 'upload.php' );\n remove_menu_page( 'edit.php?post_type=page' ); \n remove_menu_page( 'edit-comments.php' ); \n\n}", "title": "" }, { "docid": "28599ef7cc64206f43bfa83ea792f906", "score": "0.56863344", "text": "function form_admin_actions() {\n add_menu_page(\"Packages\", \"Packages\", 'manage_options',__FILE__ , \"package_section\");\n add_submenu_page(__FILE__,'Packages','Packages','manage_options','packages','admin_list_packages');\n add_submenu_page(__FILE__,'Groups','Groups','manage_options','groups', 'admin_list_groups');\n add_submenu_page(__FILE__,'Group Packages','Group Packages','manage_options','group_packages', 'admin_group_packages');\n}", "title": "" }, { "docid": "31a4c7e037081fe8ada64543dfc56538", "score": "0.56854206", "text": "function bm_set_menu(){\n /* MAIN MENU */\n add_menu_page( \"My_Book\",\"My Book\",\"manage_options\",\"book-list\",\"bm_view_book_list\",\"dashicons-book-alt\",30);\n\n /* SUBMENUS */\n add_submenu_page(\"book-list\",\"Book List\",\"Book List\",\"manage_options\",\"book-list\",\"bm_view_book_list\");\n add_submenu_page(\"book-list\",\"Add New Book\",\"Add New Book\",\"manage_options\",\"add-new-book\",\"bm_add_new_book\");\n add_submenu_page(\"book-list\",\"\",\"\",\"manage_options\",\"edit-book\",\"bm_edit_book\");\n}", "title": "" }, { "docid": "e010ec79d530ad4dcdb2138e3d2580d7", "score": "0.5683138", "text": "function menu() {\n\t\t$data['menu'] = $this->m_menu->get_menu();\n\t\t$this->template->load('admin/v_admin', 'admin/v_tbl_menu', $data);\n\t}", "title": "" }, { "docid": "de4b45d93e87058a2c85c597e11adbde", "score": "0.5677586", "text": "function menuConfig()\t{\n\t\t\t\t\tglobal $LANG;\n\t\t\t\t\t$this->MOD_MENU = Array (\n\t\t\t\t\t\t'function' => Array (\n\t\t\t\t\t\t\t'1' => $LANG->getLL('function1'),\n\t\t\t\t\t\t\t'2' => $LANG->getLL('function2'),\n\t\t\t\t\t\t\t'3' => $LANG->getLL('function3'),\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tparent::menuConfig();\n\t\t\t\t}", "title": "" }, { "docid": "de4b45d93e87058a2c85c597e11adbde", "score": "0.5677586", "text": "function menuConfig()\t{\n\t\t\t\t\tglobal $LANG;\n\t\t\t\t\t$this->MOD_MENU = Array (\n\t\t\t\t\t\t'function' => Array (\n\t\t\t\t\t\t\t'1' => $LANG->getLL('function1'),\n\t\t\t\t\t\t\t'2' => $LANG->getLL('function2'),\n\t\t\t\t\t\t\t'3' => $LANG->getLL('function3'),\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\tparent::menuConfig();\n\t\t\t\t}", "title": "" }, { "docid": "a369dcf03326c5d31f5de7150b976c45", "score": "0.56752694", "text": "public function hook_menu() {\n \n $items = array();\n $id_count = count(explode('/', $this->path));\n $wildcard = isset($this->entityInfo['admin ui']['menu wildcard']) ? $this->entityInfo['admin ui']['menu wildcard'] : '%' . $this->entityType;\n\n $items[$this->path] = array(\n 'title' => 'Things Identifiers',\n 'description' => 'Add edit and update Things Identifiers.',\n 'page callback' => 'system_admin_menu_block_page',\n 'access arguments' => array('access administration pages'),\n 'file path' => drupal_get_path('module', 'system'),\n 'file' => 'system.admin.inc',\n );\n \n // Change the overview menu type for the list of Things Identifiers.\n $items[$this->path]['type'] = MENU_LOCAL_TASK;\n \n // Change the add page menu to multiple types of entities\n $items[$this->path . '/add'] = array(\n 'title' => 'Add a Things Identifier',\n 'description' => 'Add a new Things Identifier',\n 'page callback' => 'things_ids_add_page',\n 'access callback' => 'things_ids_access',\n 'access arguments' => array('edit'),\n 'type' => MENU_NORMAL_ITEM,\n 'weight' => 20,\n 'file' => 'things_ids.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n\n );\n \n // Add menu items to add each different type of entity.\n foreach (things_ids_get_types() as $type) {\n $items[$this->path . '/add/' . $type->type] = array(\n 'title' => 'Add ' . $type->label,\n 'page callback' => 'things_ids_form_wrapper',\n 'page arguments' => array(things_ids_create(array('type' => $type->type))),\n 'access callback' => 'things_ids_access',\n 'access arguments' => array('edit', 'edit ' . $type->type),\n 'file' => 'things_ids.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n }\n\n // Loading and editing things_ids entities\n $items[$this->path . '/things_ids/' . $wildcard] = array(\n 'page callback' => 'things_ids_form_wrapper',\n 'page arguments' => array($id_count + 1),\n 'access callback' => 'things_ids_access',\n 'access arguments' => array('edit', $id_count + 1),\n 'weight' => 0,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n 'file' => 'things_ids.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n $items[$this->path . '/things_ids/' . $wildcard . '/edit'] = array(\n 'title' => 'Edit',\n 'type' => MENU_DEFAULT_LOCAL_TASK,\n 'weight' => -10,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n );\n \n $items[$this->path . '/things_ids/' . $wildcard . '/delete'] = array(\n 'title' => 'Delete',\n 'page callback' => 'things_ids_delete_form_wrapper',\n 'page arguments' => array($id_count + 1),\n 'access callback' => 'things_ids_access',\n 'access arguments' => array('edit', $id_count + 1),\n 'type' => MENU_LOCAL_TASK,\n 'context' => MENU_CONTEXT_INLINE,\n 'weight' => 10,\n 'file' => 'things_ids.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n \n // Menu item for viewing Things Identifiers\n $items['things_ids/' . $wildcard] = array(\n //'title' => 'Title',\n 'title callback' => 'things_ids_page_title',\n 'title arguments' => array(1),\n 'page callback' => 'things_ids_page_view',\n 'page arguments' => array(1),\n 'access callback' => 'things_ids_access',\n 'access arguments' => array('view', 1),\n 'type' => MENU_CALLBACK,\n );\n return $items;\n }", "title": "" }, { "docid": "ebf3ca563ed96dd3699d0c1a42b97913", "score": "0.56683236", "text": "function remove_dashboard_menus($remove){\n\n\t\tglobal $menu; end($menu);\n\n\t\twhile( prev($menu) ) {\n\t\t\t$value = explode(' ',$menu[key($menu)][0]);\n\t\t\tif(in_array($value[0] != NULL ? $value[0] : '' , $remove)){\n\t\t\t\tunset( $menu[key($menu)] );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ad878bc34abe8831de30f5688b30bd3e", "score": "0.56667286", "text": "function getMenuItems()\n {\n }", "title": "" }, { "docid": "f841aaec7307cd0f994d325e4511b6b3", "score": "0.566644", "text": "function be_remove_menus () {\n\tglobal $menu;\n\t$restricted = array(__('Links'));\n\t// Example:\n\t//$restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins'));\n\tend ($menu);\n\twhile (prev($menu)){\n\t\t$value = explode(' ',$menu[key($menu)][0]);\n\t\tif(in_array($value[0] != NULL?$value[0]:\"\" , $restricted)){unset($menu[key($menu)]);}\n\t}\n}", "title": "" }, { "docid": "68a47ecb8f02e0f1aeb4e73b2f2ab2a7", "score": "0.5666267", "text": "function my_admin_bar_render() {\n global $wp_admin_bar;\n $wp_admin_bar->remove_menu('comments');\n $wp_admin_bar->remove_menu('wp-logo');\n $wp_admin_bar->remove_menu('site-name');\n $wp_admin_bar->remove_menu('customize');\n $wp_admin_bar->remove_menu('new-content');\n $wp_admin_bar->remove_menu('wp-rest-api-cache-empty');\n}", "title": "" }, { "docid": "2ddc7d33f00ee929f5975ef9072e5bca", "score": "0.5661398", "text": "public function hook_menu() {\n $items = array();\n $id_count = count(explode('/', $this->path));\n $wildcard = isset($this->entityInfo['admin ui']['menu wildcard']) ? $this->entityInfo['admin ui']['menu wildcard'] : '%entity_object';\n $plural_label = isset($this->entityInfo['plural label']) ? $this->entityInfo['plural label'] : $this->entityInfo['label'] . 's';\n\n $items[STORY_MAP_STORY_INDEX_PATH] = array(\n 'title' => $plural_label,\n 'page callback' => 'drupal_get_form',\n 'page arguments' => array($this->entityType . '_overview_form', $this->entityType),\n 'description' => 'Manage ' . $plural_label . '.',\n 'access callback' => 'entity_access',\n 'access arguments' => array('update', $this->entityType),\n 'file' => 'includes/entity.ui.inc',\n );\n\n $items[$this->path . '/add'] = array(\n 'title callback' => 'entity_ui_get_action_title',\n 'title arguments' => array('add', $this->entityType),\n 'page callback' => 'entity_ui_get_form',\n 'page arguments' => array($this->entityType, NULL, 'add'),\n 'access callback' => 'entity_access',\n 'access arguments' => array('create', $this->entityType),\n 'type' => MENU_LOCAL_ACTION,\n );\n\n $items[$this->path . '/' . $wildcard] = array(\n 'title callback' => 'story_map_story_page_title',\n 'title arguments' => array($id_count),\n 'page callback' => 'story_map_story_page_view',\n 'page arguments' => array($id_count),\n 'access callback' => 'entity_access',\n 'access arguments' => array('view', $this->entityType, $id_count),\n 'type' => MENU_NORMAL_ITEM,\n );\n\n $items[$this->path . '/' . $wildcard . '/view'] = array(\n 'title' => t('View'),\n 'access callback' => 'entity_access',\n 'access arguments' => array('view', $this->entityType, $id_count),\n 'type' => MENU_DEFAULT_LOCAL_TASK,\n );\n\n $items[$this->path . '/' . $wildcard . '/edit'] = array(\n 'title' => 'Edit',\n 'page callback' => 'entity_ui_get_form',\n 'page arguments' => array($this->entityType, $id_count),\n 'load arguments' => array($this->entityType),\n 'access callback' => 'entity_access',\n 'access arguments' => array('update', $this->entityType, $id_count),\n 'weight' => 1,\n 'type' => MENU_LOCAL_TASK,\n );\n\n $items[$this->path . '/' . $wildcard . '/edit/sequence'] = array(\n 'title' => t('Edit story sequence'),\n 'page callback' => 'story_map_story_manage_sequence',\n 'page arguments' => array($id_count),\n 'access callback' => 'entity_access',\n 'access arguments' => array('update', $this->entityType, $id_count),\n 'type' => MENU_LOCAL_ACTION,\n );\n\n // Clone form, a special case for the edit form.\n $items[$this->path . '/' . $wildcard . '/clone'] = array(\n 'title' => 'Clone',\n 'page callback' => 'entity_ui_get_form',\n 'page arguments' => array($this->entityType, $id_count, 'clone'),\n 'load arguments' => array($this->entityType),\n 'access callback' => 'entity_access',\n 'access arguments' => array('create', $this->entityType),\n 'weight' => 2,\n 'type' => MENU_LOCAL_TASK,\n );\n\n // Menu item for operations like revert and delete.\n $items[$this->path . '/' . $wildcard . '/%'] = array(\n 'page callback' => 'drupal_get_form',\n 'page arguments' => array($this->entityType . '_operation_form', $this->entityType, $id_count, $id_count + 1),\n 'load arguments' => array($this->entityType),\n 'access callback' => 'entity_access',\n 'access arguments' => array('delete', $this->entityType, $id_count),\n 'file' => 'includes/entity.ui.inc',\n );\n\n // TODO: Importing is broken.\n /*\n if (!empty($this->entityInfo['exportable'])) {\n // Menu item for importing an entity.\n $items[$this->path . '/import'] = array(\n 'title callback' => 'entity_ui_get_action_title',\n 'title arguments' => array('import', $this->entityType),\n 'page callback' => 'drupal_get_form',\n 'page arguments' => array($this->entityType . '_operation_form', $this->entityType, NULL, 'import'),\n 'access callback' => 'entity_access',\n 'access arguments' => array('create', $this->entityType),\n 'file' => 'includes/entity.ui.inc',\n 'type' => MENU_LOCAL_ACTION,\n );\n }\n */\n\n if (!empty($this->entityInfo['admin ui']['file'])) {\n // Add in the include file for the entity form.\n foreach (array(\"/$wildcard\", \"/$wildcard/edit\", \"/$wildcard/edit/sequence\", \"/$wildcard/clone\", '/add') as $path_end) {\n $items[$this->path . $path_end]['file'] = $this->entityInfo['admin ui']['file'];\n $items[$this->path . $path_end]['file path'] = isset($this->entityInfo['admin ui']['file path']) ? $this->entityInfo['admin ui']['file path'] : drupal_get_path('module', $this->entityInfo['module']);\n }\n }\n return $items;\n }", "title": "" }, { "docid": "a744d3648d27df5afd0689ff00de3c8d", "score": "0.56606215", "text": "protected function _menu()\n\t{\n\t\tif (ee()->view->disabled('ee_menu'))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tee()->load->library('menu');\n\t\tee()->view->cp_menu_items = ee()->menu->generate_menu();\n\t}", "title": "" }, { "docid": "b3b7e1cbf44257d4e74c7de2ca7efa1f", "score": "0.56573683", "text": "function change_label_title_depoimento() {\n global $wp_post_types;\n $labels = &$wp_post_types['depoimento']->labels;\n $labels->add_new_item = 'Adicionar o nome da empresa do cliente';\n }", "title": "" }, { "docid": "66e2db5c8b40ca60ecf3f82f2785578b", "score": "0.56558424", "text": "public function hook_menu() {\n $items = array();\n $id_count = count(explode('/', $this->path));\n $wildcard = isset($this->entityInfo['admin ui']['menu wildcard']) ? $this->entityInfo['admin ui']['menu wildcard'] : '%' . $this->entityType;\n\n $items[$this->path] = array(\n 'title' => 'Badges',\n 'description' => 'Add, edit, and update badges.',\n );\n \n // Change the overview menu type for the list of badges.\n $items[$this->path]['type'] = MENU_LOCAL_TASK;\n \n // Change the add page menu to multiple types of entities\n $items[$this->path . '/add'] = array(\n 'title' => 'Add Badge',\n 'page callback' => 'imagex_userbadge_form_wrapper',\n 'page arguments' => array(imagex_userbadge_create(array('type' => 'badge'))),\n 'access callback' => 'imagex_userbadge_access',\n 'file' => 'imagex_userbadge.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n \n // Loading and editing badge entities\n $items[$this->path . '/badge/' . $wildcard] = array(\n 'page callback' => 'imagex_userbadge_form_wrapper',\n 'page arguments' => array($id_count + 1),\n 'access callback' => 'imagex_userbadge_access',\n 'weight' => 0,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n 'file' => 'imagex_userbadge.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n $items['badge/' . $wildcard . '/edit'] = array(\n 'title' => 'Edit',\n 'type' => MENU_LOCAL_TASK,\n 'weight' => -5,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n 'page callback' => 'imagex_userbadge_form_wrapper',\n 'page arguments' => array(1),\n 'access callback' => 'imagex_userbadge_access',\n 'weight' => 0,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n 'file' => 'imagex_userbadge.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n \n $items['badge/' . $wildcard . '/delete'] = array(\n 'title' => 'Delete',\n 'page callback' => 'imagex_userbadge_delete_form_wrapper',\n 'page arguments' => array(1),\n 'access callback' => 'imagex_userbadge_access',\n 'type' => MENU_LOCAL_TASK,\n 'context' => MENU_CONTEXT_INLINE,\n 'weight' => 10,\n 'file' => 'imagex_userbadge.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n \n // Menu item for viewing badges\n $items['badge/' . $wildcard] = array(\n //'title' => 'Title',\n 'title callback' => 'imagex_userbadge_page_title',\n 'title arguments' => array(1),\n 'page callback' => 'imagex_userbadge_page_view',\n 'page arguments' => array(1),\n 'access callback' => 'imagex_userbadge_access',\n 'access arguments' => array('view', 1),\n 'type' => MENU_CALLBACK,\n );\n \n $items['badge/' . $wildcard . '/view'] = array(\n 'title' => 'View',\n 'type' => MENU_DEFAULT_LOCAL_TASK,\n 'weight' => -10,\n );\n return $items;\n }", "title": "" }, { "docid": "97ca414e09e7ab38bf8de0acf42a8bf5", "score": "0.5655803", "text": "function remove_items(){\n global $current_user;\n \n // Get Super User - specify admin nicename\n $super_user = array('stephenscaff', 'admin');\n if ( $current_user->user_nicename !== $super_user ) {\n remove_menu_page( 'edit.php' );\n remove_menu_page( 'edit-comments.php' );\n remove_menu_page( 'themes.php' );\n remove_menu_page( 'plugins.php' ); \n remove_menu_page( 'tools.php' ); \n remove_menu_page( 'edit.php?post_type=acf-field-group' ); \n }\n }", "title": "" }, { "docid": "477c52bd97529e67e2742640fbb45e7f", "score": "0.5653381", "text": "function add_my_menu_items( $items ) {\n $my_items = array(\n // endpoint => label\n 'generation-table' => __( 'Generation', 'my_plugin' ),\n 'wallet-table' => __( 'Wallet', 'my_plugin' ),\n 'transaction-table' => __( 'Transection Passworrd', 'my_plugin' ),\n );\n\n $my_items = array_slice( $items, 0, 1, true ) +\n $my_items +\n array_slice( $items, 1, count( $items ), true );\n\n return $my_items;\n}", "title": "" }, { "docid": "7f011cba4a359ebd17e66ab9492ddc51", "score": "0.5651389", "text": "function pinglog_plugin_menu(&$menuItems){\r\n\tglobal $_;\r\n\t$menuItems[] = array('sort'=>10,'content'=>'<a href=\"index.php?module=pinglog\"><i class=\"icon-th-large\">L</i>Etats des PC</a>');\r\n}", "title": "" }, { "docid": "8c5421a7b2334351605c498a7f79ac18", "score": "0.56468934", "text": "public function change_admin_bar_menu() {\n\t\t\tglobal $wp_admin_bar;\n\t\t\t\n\t\t\tif ( !is_super_admin() || !is_admin_bar_showing() ) \n\t\t\t\treturn;\n\n\t\t\tforeach ( $this->args->admin_bar->add as $menu ) {\n\t\t\t\t$wp_admin_bar->add_menu( $menu );\n\t\t\t}\n\n\t\t\tforeach ( $this->args->admin_bar->remove as $menu ) {\n\t\t\t\t$wp_admin_bar->remove_menu( $menu );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "3ffbcc5ceb105a513a49a788d81c2e34", "score": "0.56360084", "text": "function init_menu() {\n if (func_num_args()>0) {\n $arg_list = func_get_args();\n }\n\n // menu entries\n module::set_menu($this->module, \"Drug Category\", \"LIBRARIES\", \"_drug_cat\");\n module::set_menu($this->module, \"Drug Formulation\", \"LIBRARIES\", \"_drug_formulation\");\n module::set_menu($this->module, \"Drug Preparation\", \"LIBRARIES\", \"_drug_preparation\");\n module::set_menu($this->module, \"Drug Packaging\", \"LIBRARIES\", \"_drug_packaging\");\n module::set_menu($this->module, \"Drug Manufacturer\", \"LIBRARIES\", \"_drug_manufacturer\");\n module::set_menu($this->module, \"Drug Source\", \"LIBRARIES\", \"_drug_source\");\n module::set_menu($this->module, \"Drugs\", \"LIBRARIES\", \"_drugs\");\n module::set_menu($this->module, \"Drug Inventory\", \"SUPPORT\", \"_drug_inventory\");\n\n // add more detail\n module::set_detail($this->description, $this->version, $this->author, $this->module);\n\n }", "title": "" }, { "docid": "e874884132e14b6e5fda1bcaf0198fda", "score": "0.56320345", "text": "public function syncMenuSources();", "title": "" }, { "docid": "a29653654a3e730348db8b4c1d9231a5", "score": "0.56267476", "text": "public function edit_default_dashboard_menu() {\n\n\t\t// We don't want no stinking admin bar\n\t\tadd_action( 'init', array( $this, 'init__hide_admin_bar' ), 10 );\n\n\t\t// Tools/Settings menu unnecessary for everyone but those who can manage_options\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__remove_tools_options_menus' ) );\n\n\t\t// Remove Profile from main menu\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__remove_profile' ) );\n\n\t\t// Remove the Media menu from all but those who can manage_options\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__remove_media' ) );\n\n\t\t// Comments now lives in the Blog menu\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__remove_comments' ) );\n\n\t\t// Add a new menu item called 'Blog' which will contain posts/comments\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__add_blog_menu' ), 15 );\n\n\t\t// Now add the submenu items for the Blog menu\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__add_blog_submenu' ), 9999 );\n\n\t\t// Rename 'Pages' to 'Course Info'\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__rename_pages_menu' ) );\n\n\t\t// // Adjust the 'Appearance' menu\n\t\t// add_action( 'admin_menu', array( $this, 'admin_menu__adjust_appearance_menu' ) );\n\t\t//\n\t\t// // Hide the site settings menu for students/tas\n\t\t// add_action( 'admin_menu', array( $this, 'admin_menu__hide_site_settings_as_appropriate' ) );\n\t\t//\n\t\t// 'Media' menu becomes 'Files' and shifts down\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__adjust_media_menu' ) );\n\t\t//\n\t\t// // 'Quiz' menu\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__adjust_quiz_menu' ), 100 );\n\n\t\t// Remove 'Blog' menu for student role\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__hide_blog_for_students' ), 20 );\n\t\t//\n\t\t// Remove the WordPress version from the admin footer\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__remove_wp_version' ) );\n\n\t\t// Add logout to the dashboard menu\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__add_logout_to_dashboard' ) );\n\n\t\t// Add view site link to dashboard menu\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__add_view_site_to_dashboard' ) );\n\n\t\t// // Create the 'Course Options' Page\n\t\t// add_action( 'admin_init', array( $this, 'admin_init__register_setting' ) );\n\t\t// add_action( 'admin_menu', array( $this, 'admin_menu__add_course_options_page' ) );\n\n\t\t// Topics/Replies go into the main forums menu\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__move_forum_components' ) );\n\n\t\t// Events should be Calendar and many of the menu items need removing\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__edit_events_menu_for_calendar' ), 15 );\n\n\t\t// gForms, you're not as important as you think you are\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu__gravity_forms_no' ), 100 );\n\n\t}", "title": "" }, { "docid": "0c65780d2e266587b189f43f32312047", "score": "0.5614537", "text": "public function hook_menu() {\n\n $items = array();\n \n // Add a notification page...\n $items['thumbwhere/external_repository_resource/notify'] = array(\n 'title' => 'Notifications Callback for \"RepositoryResource\" Entity',\n 'page callback' => '_thumbwhere_external_repository_resource_notify',\n 'access arguments' => array(\n 'send thumbwhere repositoryresource notifications'\n ),\n 'file' => 'thumbwhere_repositoryresource.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n ); \n \n $id_count = count(explode('/', $this->path));\n $wildcard = isset($this->entityInfo['admin ui']['menu wildcard']) ? $this->entityInfo['admin ui']['menu wildcard'] : '%' . $this->entityType;\n\n $items[$this->path] = array(\n 'title' => 'RepositoryResource',\n 'description' => 'Add edit and update thumbwhere_repositoryresources.',\n 'page callback' => 'system_admin_menu_block_page',\n 'access arguments' => array('access administration pages'),\n 'file path' => drupal_get_path('module', 'system'),\n 'file' => 'system.admin.inc',\n );\n\n // Change the overview menu type for the list of thumbwhere_repositoryresources.\n $items[$this->path]['type'] = MENU_LOCAL_TASK;\n\n // Change the add page menu to multiple types of entities\n $items[$this->path . '/add'] = array(\n //'title' => 'Add a RepositoryResource',\n 'title' => 'Add',\n 'description' => 'Add a new RepositoryResource',\n 'page callback' => 'thumbwhere_repositoryresource_form_wrapper',\n 'page arguments' => array(thumbwhere_repositoryresource_create(array('type' => 'thumbwhere_repositoryresource'))),\n 'access callback' => 'thumbwhere_repositoryresource_access',\n 'access arguments' => array('edit', 'edit ' . 'thumbwhere_repositoryresource'),\n 'file' => 'thumbwhere_repositoryresource.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n\n\n/*\n // Change the add page menu to multiple types of entities\n $items[$this->path . '/add'] = array(\n //'title' => 'Add a RepositoryResource',\n 'title' => 'Add',\n\t 'description' => 'Add a new RepositoryResource',\n 'page callback' => 'thumbwhere_repositoryresource_add_page',\n 'access callback' => 'thumbwhere_repositoryresource_access',\n 'access arguments' => array('edit'),\n 'type' => MENU_NORMAL_ITEM,\n 'weight' => 20,\n 'file' => 'thumbwhere_repositoryresource.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n\n );\n*/ \n/*\n $items[$this->path . '/add/' . 'thumbwhere_repositoryresource'] = array(\n 'title' => 'Add ' . 'ThumbWhereRepositoryResource',\n 'page callback' => 'thumbwhere_repositoryresource_form_wrapper',\n 'page arguments' => array(thumbwhere_repositoryresource_create(array('type' => 'thumbwhere_repositoryresource'))),\n 'access callback' => 'thumbwhere_repositoryresource_access',\n 'access arguments' => array('edit', 'edit ' . 'thumbwhere_repositoryresource'),\n 'file' => 'thumbwhere_repositoryresource.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n*/\n // Loading and editing thumbwhere_repositoryresource entities\n $items[$this->path . '/thumbwhere_repositoryresource/' . $wildcard] = array(\n 'page callback' => 'thumbwhere_repositoryresource_form_wrapper',\n 'page arguments' => array($id_count + 1),\n 'access callback' => 'thumbwhere_repositoryresource_access',\n 'access arguments' => array('edit', $id_count + 1),\n 'weight' => 0,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n 'file' => 'thumbwhere_repositoryresource.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n $items[$this->path . '/thumbwhere_repositoryresource/' . $wildcard . '/edit'] = array(\n 'title' => 'Edit',\n 'type' => MENU_DEFAULT_LOCAL_TASK,\n 'weight' => -10,\n 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,\n );\n\n $items[$this->path . '/thumbwhere_repositoryresource/' . $wildcard . '/delete'] = array(\n 'title' => 'Delete',\n 'page callback' => 'thumbwhere_repositoryresource_delete_form_wrapper',\n 'page arguments' => array($id_count + 1),\n 'access callback' => 'thumbwhere_repositoryresource_access',\n 'access arguments' => array('edit', $id_count + 1),\n 'type' => MENU_LOCAL_TASK,\n 'context' => MENU_CONTEXT_INLINE,\n 'weight' => 10,\n 'file' => 'thumbwhere_repositoryresource.admin.inc',\n 'file path' => drupal_get_path('module', $this->entityInfo['module'])\n );\n\n // Menu item for viewing thumbwhere_repositoryresources\n $items['thumbwhere_repositoryresource/' . $wildcard] = array(\n //'title' => 'Title',\n 'title callback' => 'thumbwhere_repositoryresource_page_title',\n 'title arguments' => array(1),\n 'page callback' => 'thumbwhere_repositoryresource_page_view',\n 'page arguments' => array(1),\n 'access callback' => 'thumbwhere_repositoryresource_access',\n 'access arguments' => array('view', 1),\n 'type' => MENU_CALLBACK,\n );\n return $items;\n }", "title": "" }, { "docid": "91eb994bc1dbda481c0de9dbcb454991", "score": "0.560391", "text": "public function removeOptions()\n {\n add_action('admin_menu', function() {\n remove_submenu_page('algolia','algolia-search-page');\n }, 50);\n }", "title": "" }, { "docid": "d458805f01834a57141fe2b11f5ec17d", "score": "0.5601169", "text": "public function getMenuItems();", "title": "" }, { "docid": "1db4cd666d5cbf7ee9019ab6c6a78735", "score": "0.55955094", "text": "function SystemMenu()\n {\n echo $this->MyMod_HorMenu_Actions(array(\"Backup\",\"SysInfo\",\"Process\",\"Profiles\",\"Zip\"),\"atablemenu\",\"\");\n }", "title": "" }, { "docid": "56dd0c979d4119ee2c55d1324099690e", "score": "0.5590043", "text": "function change_post_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'Blog';\n}", "title": "" }, { "docid": "bd09c445a28ec1ae445c6807d31e2d01", "score": "0.55843604", "text": "public function menuConfig()\n {\n $this->MOD_MENU = array(\n 'function' => array(\n '1' => 'attributes',\n '2' => 'manufacturer',\n '3' => 'supplier',\n ),\n );\n parent::menuConfig();\n }", "title": "" }, { "docid": "1d0d3049a659c608bb7bf93e600dace8", "score": "0.5583088", "text": "public function on_admin_menu(){ }", "title": "" }, { "docid": "74725401b01919c58d2129d0300a8a8a", "score": "0.5580492", "text": "function umzugsservice_menu() {\n $items = array();\n\n $items['phonebook'] = array(\n 'page callback' => 'drupal_get_form',\n 'page arguments' => array('phonebook_form'),\n 'access callback' => TRUE,\n );\n \n $items['phonebook/phones'] = array(\n 'title' => 'Phones',\n 'type' => MENU_DEFAULT_LOCAL_TASK,\n );\n \n $items['phonebook/add_phone'] = array(\n 'title' => 'Add phone',\n 'page callback' => 'drupal_get_form',\n 'page arguments' => array('add_phone_form'),\n 'access callback' => TRUE,\n 'type' => MENU_LOCAL_TASK,\n 'weight' => 1,\n );\n\n $items['phonebook/del_phone'] = array(\n 'title' => 'Delete phones',\n 'page callback' => 'drupal_get_form',\n 'page arguments' => array('del_phone_form'),\n 'access callback' => TRUE,\n 'type' => MENU_LOCAL_TASK,\n 'weight' => 2,\n );\n\n $items['statistics'] = array(\n 'title' => t('Statistics'),\n 'description' => 'Statistics.',\n 'page callback' => 'cb_statistics_page',\n 'page arguments' => array(),\n 'access callback' => TRUE\n );\n\n $items['statistics2'] = array(\n 'title' => t('Statistics2'),\n 'description' => 'Statistics2',\n 'page callback' => 'cb_statistics2_page',\n 'page arguments' => array(),\n 'access callback' => TRUE\n );\n\n return $items;\n}", "title": "" }, { "docid": "9e9399c7c94a78099ebfb8ee5019217a", "score": "0.5580258", "text": "function menuConfig() {\r\n global $LANG;\r\n $this->MOD_MENU = Array (\r\n 'function' => Array (\r\n '1' => $LANG->getLL('mod4_newspaper_details'),\r\n '2' => $LANG->getLL('mod4_record_info'),\r\n '3' => $LANG->getLL('mod4_db_consistency_checks'),\r\n '4' => 'Vererbung reparieren',\r\n '5' => 'Re-submit articles to VG Wort',\r\n )\r\n );\r\n parent::menuConfig();\r\n }", "title": "" }, { "docid": "1cea7b0ae6facf795ef578337a69f38a", "score": "0.5545808", "text": "function menuConfig()\t{\n\t\tglobal $LANG;\n\t\t$this->MOD_MENU = Array (\n\t\t\t\"function\" => Array (\n\t\t\t\t\"1\" => $LANG->getLL(\"function1\"),\n\t\t\t\t//\"2\" => $LANG->getLL(\"function2\"),\n\t\t\t\t//\"3\" => $LANG->getLL(\"function3\"),\n\t\t\t)\n\t\t);\n\t\tparent::menuConfig();\n\t}", "title": "" }, { "docid": "cabf70365fbc969dfd08aad15cf0ae41", "score": "0.55436254", "text": "function remove_menu_items() {\n global $menu;\n //$restricted = array(__('Comments'), __('Appearance'), __('Plugins'), __('Tools'), __('Settings')); // Production\n $restricted = array(__('Comments'), __('Tools')); // Staging\n end ($menu);\n while (prev($menu)){\n $value = explode(' ',$menu[key($menu)][0]);\n if(in_array($value[0] != NULL?$value[0]:\"\" , $restricted)){\n unset($menu[key($menu)]);\n }\n }\n // also remove original posts menu\n remove_menu_page('edit.php');\n}", "title": "" }, { "docid": "be5c4106f5b478eb75f3ebcad815ea01", "score": "0.55364937", "text": "function menu() {\n $links = array();\n\n $links[] = '<a href=\"./index.php?module=phatform&amp;PHAT_MAN_OP=NewForm\">'.dgettext('phatform', 'New Form').'</a>';\n $links[] = '<a href=\"./index.php?module=phatform&amp;PHAT_MAN_OP=List\">'.dgettext('phatform', 'List Forms').'</a>';\n\n if(!isset($this->form) || $this->form->isArchiveView()) {\n if(Current_User::allow('phatform', 'archive_form'))\n $links[] = '<a href=\"./index.php?module=phatform&amp;PHAT_MAN_OP=viewArchives&amp;PDA_start=0\">'.dgettext('phatform', 'List Archives').'</a>';\n\n if(Current_User::allow('phatform', 'report_export'))\n $links[] = '<a href=\"./index.php?module=phatform&amp;PHAT_MAN_OP=viewExports&amp;PDA_start=0\">'.dgettext('phatform', 'List Exports').'</a>';\n }\n\n if(isset($this->form) && !$this->form->isArchiveView()) {\n $id = $this->form->getId();\n if(isset($id)) {\n if(Current_User::allow('phatform', 'edit_forms')) {\n $links[] = '<a href=\"./index.php?module=phatform&amp;PHAT_FORM_OP=editSettings\">'.dgettext('phatform', 'Settings').'</a>';\n }\n\n if(!$this->form->isSaved() && Current_User::allow('phatform', 'edit_forms')) {\n $links[] = '<a href=\"./index.php?module=phatform&amp;PHAT_FORM_OP=editElements\">'.dgettext('phatform', 'Elements').'</a>';\n }\n\n if(Current_User::allow('phatform', 'edit_options')) {\n $links[] = '<a href=\"./index.php?module=phatform&amp;PHAT_MAN_OP=Options\">'.dgettext('phatform', 'Option Sets').'</a>';\n }\n }\n\n if($this->form->isSaved() && Current_User::allow('phatform', 'report_view')) {\n $links[] = '<a href=\"./index.php?module=phatform&amp;PHAT_FORM_OP=report\">'.dgettext('phatform', 'Report').'</a>';\n }\n\n if($this->form->isSaved() && Current_User::allow('phatform', 'archive_form')) {\n $links[] = '<a href=\"./index.php?module=phatform&amp;PHAT_FORM_OP=archive\">'.dgettext('phatform', 'Archive').'</a>';\n }\n }\n\n $tags = array();\n $tags['LINKS'] = implode('&#160;|&#160;', $links);\n\n return PHPWS_Template::processTemplate($tags, 'phatform', 'manager/menu.tpl');\n }", "title": "" }, { "docid": "17424f304425d5f4fcc12a0010f6704a", "score": "0.55334735", "text": "function remove_new_content(){\n global $wp_admin_bar;\n $wp_admin_bar->remove_menu( 'new-content' );\n}", "title": "" }, { "docid": "b6f6dbf31eeeae1d3b8d4a3bbf3d1fce", "score": "0.5532561", "text": "function cortex_remove_redux_menu() {\n remove_submenu_page('tools.php','redux-about');\n}", "title": "" }, { "docid": "83ce7dd25d799db899387cebf10c5a37", "score": "0.5532555", "text": "function menuConfig()\t{\n\t\tglobal $LANG;\n\t\t$this->MOD_MENU = Array (\n\t\t\t\"function\" => Array (\n\t\t\t\t\"1\" => $LANG->getLL(\"function1\"),\n\t\t\t\t\"2\" => $LANG->getLL(\"function2\"),\n\t\t\t\t\"3\" => $LANG->getLL(\"function3\"),\n\t\t\t)\n\t\t);\n\t\tparent::menuConfig();\n\t}", "title": "" }, { "docid": "24a52518b9477f771d945f5e5207560a", "score": "0.55315906", "text": "function getMenuItems()\n {\n\n // Add a weekplanning submenu if the user has either admin access to the weekplanning or weekplanningconflictlog node\n $this->menuitem(\"weekplanning\", \"\", \"main\", array(\"weekplanning.weekplanning\", \"admin\", \"weekplanning.weekplanningconflictlog\", \"admin\"));\n\n // Add links to the 2 weekplanning views if the user has admin access to the weekplanning node\n $this->menuitem(\"weekplanning_peremployee\", dispatch_url(\"weekplanning.weekplanning_peremployee\", \"admin\"), \"weekplanning\", array(\"weekplanning.weekplanning\", \"admin\"));\n $this->menuitem(\"weekplanning_perproject\", dispatch_url(\"weekplanning.weekplanning_perproject\", \"admin\"), \"weekplanning\", array(\"weekplanning.weekplanning\", \"admin\"));\n\n // Add a link to the weekplanningconflictlog node if the user has admin access on this node\n $this->menuitem(\"weekplanningconflicts\", dispatch_url(\"weekplanning.weekplanningconflictlog\", \"admin\"), \"weekplanning\", array(\"weekplanning.weekplanningconflictlog\", \"admin\"));\n\n // Add a seperator after the last item, to create a spacing between the menu items and the \"Back to the main menu\" link\n $this->menuitem(\"-\", \"\", \"weekplanning\", array(\"weekplanning.weekplanning\", \"admin\", \"weekplanning.weekplanningconflictlog\", \"admin\"), 100000);\n\n // Overwrite the mastergantt graph link in the project menu\n $this->menuitem(\"mastergantt\", dispatch_url(\"weekplanning.weekmastergantt\", \"planning\"), \"projectmanagement\");\n }", "title": "" }, { "docid": "33f69a5eec0d1d02d0374e008f747be0", "score": "0.5526629", "text": "function updateMenuItem(&$reports) {\n\t$menuset = checkChosenMenuset();\n\t$result['id'] = sanitize($_POST['id']);\n\t$result['show'] = getCheckboxState('show');\n\t$result['type'] = sanitize($_POST['type']);\n\t$result['title'] = process_language_string_save(\"title\",2);\n\t$result['include_li'] = getCheckboxState('include_li');\n\tif (isset($_POST['link'])) {\n\t\t$result['link'] = sanitize($_POST['link'],0);\n\t} else {\n\t\t$result['link'] = '';\n\t}\n\tif (getCheckboxState('span')) {\n\t\t$result['span_id'] = sanitize($_POST['span_id']);\n\t\t$result['span_class'] = sanitize($_POST['span_class']);\n\t} else {\n\t\t$result['span_id'] = '';\n\t\t$result['span_class'] = '';\n\t}\n\t// update the category in the category table\n\t$sql = \"UPDATE \".prefix('menu').\" SET title = \".\tdb_quote($result['title']).\n\t\t\t\t\t\t\",link=\".db_quote($result['link']).\n\t\t\t\t\t\t\",type=\".db_quote($result['type']).\", `show`=\".db_quote($result['show']).\n\t\t\t\t\t\t\",menuset=\".db_quote($menuset).\",include_li=\".$result['include_li'].\n\t\t\t\t\t\t\",span_id=\".db_quote($result['span_id']).\",span_class=\".db_quote($result['span_class']).\n\t\t\t\t\t\t\" WHERE `id`=\".$result['id'];\n\tif(query($sql)) {\n\t\tif(isset($_POST['title']) && empty($result['title'])) {\n\t\t\t$reports[] = \"<p class='errorbox fade-message'>\".gettext(\"You forgot to give your menu item a <strong>title</strong>!\").\"</p>\";\n\t\t} else if(isset($_POST['link']) && empty($result['link'])) {\n\t\t\t$reports[] = \"<p class='errorbox fade-message'>\".gettext(\"You forgot to give your menu item a <strong>link</strong>!\").\"</p>\";\n\t\t} else {\n\t\t\t$reports[] = \"<p class='messagebox fade-message'>\".gettext(\"Menu item updated!\").\"</p>\";\n\t\t}\n\t}\n\treturn $result;\n}", "title": "" }, { "docid": "ad566bbd723953f712d51d3f22e3ba1c", "score": "0.5516532", "text": "function jumpoff_admin_bar_remove() {\n global $wp_admin_bar;\n\n $wp_admin_bar->remove_menu('wp-logo'); // Remove the WordPress logo\n $wp_admin_bar->remove_menu('about'); // Remove the about WordPress link\n $wp_admin_bar->remove_menu('wporg'); // Remove the WordPress.org link\n $wp_admin_bar->remove_menu('documentation'); // Remove the WordPress documentation link\n $wp_admin_bar->remove_menu('support-forums'); // Remove the support forums link\n $wp_admin_bar->remove_menu('feedback'); // Remove the feedback link\n //$wp_admin_bar->remove_menu('site-name'); // Remove the site name menu\n $wp_admin_bar->remove_menu('view-site'); // Remove the view site link\n $wp_admin_bar->remove_menu('updates'); // Remove the updates link\n $wp_admin_bar->remove_menu('comments'); // Remove the comments link\n $wp_admin_bar->remove_menu('new-content'); // Remove the content link\n //$wp_admin_bar->remove_menu('my-account'); \n}", "title": "" }, { "docid": "596630f3277239b938af7cc9c7787177", "score": "0.5510409", "text": "function sb_cl_deactivate() {\n\t//delete_option('sb_cl_child_list_settings');\n}", "title": "" }, { "docid": "2a1d62f9d6e0c47ff5d0c863b437f9dd", "score": "0.5509807", "text": "function add_admin_menu_items() {\n\t\t\n\t\t// Top-level Comment Mixer page\n\t\tadd_menu_page( 'Comment Mixer', 'Comment Mixer', \n\t\t\t\t\t\t'manage_options', $this->top_level_page, \n\t\t\t\t\t\tarray(&$this->settings, 'settings_page'));\n\t\t\n\t\t// Taxonomy page\t\t\t\n\t\tadd_submenu_page( $this->top_level_page, 'Comment Types',\n\t\t\t\t\t\t\t'Comment Types', 'manage_options', 'edit-tags.php?taxonomy='.$this->taxonomies->taxonomy_label);\n\t\t\n\t}", "title": "" }, { "docid": "8820d81ea926d44fbf2bac6cbc19f3e1", "score": "0.55088603", "text": "static function wp_bakery_menu()\n {\n // $taxonomies = array('iicca_gal_cat', array('parent' => 0));\n \n // $args = array(\n // 'hide_empty' => 0\n // );\n\n // obtiene todas las taxonomias de 'iicca_pub_tipos'\n $types = get_terms( array( 'taxonomy' => 'iicca_gal_cat'));\n $all_terms = array();\n\n $all_terms[esc_html__( 'todas', 'iicca-galerias-lista' )] = 'todas';\n\n // agrega cada termino de la taxonomia el array $all_terms\n foreach ($types as $type) {\n $all_terms[esc_html__( $type->name, 'iicca-galerias-lista' )] = $type->term_id;\n }\n\n // opciones del menu\n $opciones = array(\n array(\n 'type' => 'dropdown',\n 'param_name' => 'columnas',\n 'heading' => esc_html__( 'columnas', 'iicca-galerias-lista' ),\n 'value' => array(\n esc_html__( '3', 'iicca-galerias-lista' ) => '3',\n esc_html__( '4', 'iicca-galerias-lista' ) => '4',\n ),\n 'save_always' => true,\n 'group' => esc_html__( 'Configuraciones', 'iicca-galerias-lista' )\n ),\n array(\n 'type' => 'dropdown',\n 'param_name' => 'filtro',\n 'heading' => esc_html__( 'filtrar galerias?', 'iicca-galerias-lista' ),\n 'value' => array(\n esc_html__( 'no filtrar', 'iicca-galerias-lista' ) => 'no',\n esc_html__( 'filtrar', 'iicca-galerias-lista' ) => 'si',\n ),\n 'save_always' => true,\n 'group' => esc_html__( 'Configuraciones', 'iicca-galerias-lista' ),\n 'description' => esc_html__( 'Seleccionar las categorias que desee mostrar en el shortcode, si elige no filtrar se mostraran todas las categorias.', 'iicca-galerias-lista' ),\n ),\n array(\n 'type' => 'checkbox',\n 'param_name' => 'categorias',\n 'heading' => esc_html__( 'Categorias', 'iicca-galerias-lista' ),\n 'value' => $all_terms,\n 'group' => esc_html__( 'Configuraciones', 'iicca-galerias-lista' ),\n 'dependency' => array(\n 'element' => 'filtro',\n 'value' => array('si')\n ),\n 'save_always' => true,\n )\n );\n \n // configuraciones del menu\n $config = array(\n \"name\" => __(\"Lista de Galerias\", \"iicca-galerias-lista\"),\n \"base\" => \"iicca_lista_galerias_sc\",\n \"icon\" => 'vc_general vc_element-icon icon-wpb-slideshow',\n \"category\" => __(\"IICCA\", \"iicca-galerias-lista\"),\n \"params\" => $opciones\n );\n\n // instancia el menu de wp_bakery\n vc_map($config);\n }", "title": "" } ]
0b08abeba713499b49ddb47ba0e88f53
Remove the specified delivery from storage.
[ { "docid": "ca61b915048a086b3e97fdb6f8f99194", "score": "0.54564685", "text": "public function destroy($id)\n\t{\n\t\tDelivery::destroy($id);\n\n\t\treturn Redirect::route('deliveries.index');\n\t}", "title": "" } ]
[ { "docid": "2dc9e11fbde181fc5032076d53e632d2", "score": "0.7379445", "text": "public function destroy(Delivery $delivery)\n {\n\n }", "title": "" }, { "docid": "6aa8866a9822ed4bdf6c4993103f933d", "score": "0.6577091", "text": "public function destroy(DeliveryOrder $deliveryOrder)\n {\n //\n }", "title": "" }, { "docid": "2c3b5e1c7b653c62be5148ba80eb8b2b", "score": "0.6425574", "text": "public function destroy(Delivery $delivery)\n {\n $delivery->delete();\n return redirect()->route('admin.delivery.index')->with('delete', true);\n }", "title": "" }, { "docid": "1065cbf6704886e010dfa59d99a4fc71", "score": "0.6248244", "text": "public function unsetDelivery($index)\n {\n unset($this->delivery[$index]);\n }", "title": "" }, { "docid": "d03fcfa49d2ade09cffc8d88d701076d", "score": "0.6175618", "text": "public function dropStorageFromName($storageName);", "title": "" }, { "docid": "63cf7ecbf15d8b6d2751c1edc32b2fd4", "score": "0.61406004", "text": "public function destroy(DeliveryExclude $deliveryExclude)\n {\n //\n }", "title": "" }, { "docid": "5551670c00e027ccb861263bb19997d1", "score": "0.5869706", "text": "private function deleteDelivery(AbstractDelivery $entity = null)\n\t{\n\t\t$code = null;\n\t\t$delimiter = null;\n\t\tif ($entity instanceof AbstractDelivery) {\n\t\t\t$code = $entity->getCode();\n\t\t\t$delimiter = self::PATH_DELIMITER;\n\t\t}\n\t\t$response = $this->client->sendRequest(sprintf(self::ENDPOINT_PATH, $delimiter, $code), Client::METHOD_DELETE);\n\t\tif ($response->getStatusCode() !== 204) {\n\t\t\t$this->addError($entity->getCode(), json_decode($response->getBody(), true));\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fc2c27faf57c6a1f2fb93037dfc7df33", "score": "0.58695835", "text": "abstract public function remove($storageGroup, $storageId);", "title": "" }, { "docid": "2a65fd4335524b1e88db7cc710b827d7", "score": "0.5747778", "text": "public function deleteDelivery($id){\n\t\t\tif (!$id) {\n\t\t\t\treturn false;\n\t\t\t}\n \t\t\t$sql = \"DELETE FROM delivery_status WHERE id = $id\";\n\t\t\t$query = Connection()->set($sql);\n\n\t\t\treturn $query;\n \t\t}", "title": "" }, { "docid": "a57f1006fdb1365a5a857ecac91d60bb", "score": "0.5659176", "text": "public function remove(Payload $payload): void\n {\n $this->storage->delete($this->getKey($payload));\n }", "title": "" }, { "docid": "6b263914c07de8194f4391d7d7320e77", "score": "0.56552935", "text": "public static function gestionAnnulationDeliveryCustomer($delivery,$customer){\n $info_bag = InfoBag::where('delivery_id', $delivery->id)->get();\n foreach ($info_bag as $i_bag){\n $i_bag->delete();\n }\n $ret = $delivery->delete();\n $customer->canceled_deliveries++;\n $customer->save();\n return $ret;\n }", "title": "" }, { "docid": "ae13b12a81ef5a04c54c2ae2a1fbfc6f", "score": "0.5635965", "text": "public function unsetStorageId();", "title": "" }, { "docid": "04fa6d517bbc0f146ad0f6c551ef90b3", "score": "0.5585505", "text": "public function deleteAttachedStorage($storage_type = \"ini\") {\n $this->getAttachedStorage($storage_type)->delete();\n }", "title": "" }, { "docid": "ed2f4da90027cb459bab2aff611fa9c1", "score": "0.55784196", "text": "public function destroy($id)\n {\n $Delivery = Delivery::findOrFail($id);\n $Delivery->delete();\n return redirect()->route('logistik.delivery.index')->with('success', 'Delivery Berhasil Di hapus');\n }", "title": "" }, { "docid": "b803c60154f38ec74368d1ccb577d256", "score": "0.5569743", "text": "public function delete(AbstractDelivery $deliveryEntity = null)\n\t{\n\t\t$entitiesQueue = $this->service->getEntities();\n\n\t\tif (!empty($entitiesQueue)) {\n\t\t\t// batch delete of delivery\n\t\t\tforeach ($entitiesQueue as $entity) {\n\t\t\t\tif ($entity instanceof AbstractDelivery) {\n\t\t\t\t\t$this->deleteDelivery($entity);\n\t\t\t\t}\n\t\t\t}\n\t\t} elseif ($deliveryEntity instanceof AbstractDelivery) {\n\t\t\t// delete one delivery\n\t\t\t$this->deleteDelivery($deliveryEntity);\n\t\t} else {\n\t\t\t// delete all partner deliveries\n\t\t\t$this->deleteDelivery();\n\t\t}\n\n\t\treturn empty($this->getErrors());\n\t}", "title": "" }, { "docid": "d81bbc0e0701fef8066dde6d20f0efaa", "score": "0.5547564", "text": "public function destroy($id)\n\t{\n\t\t$this->delivery->find($id)->delete();\n\n\t\treturn Redirect::route('deliveries.index');\n\t}", "title": "" }, { "docid": "e2ca43c6b81373c4b9e670b88e3d6b19", "score": "0.541747", "text": "public function destroy($id)\n {\n $delivery = Delivery::findOrFail($id);\n $delivery->delete();\n\n return redirect()->to('/operator/deliveries')->with('message', 'Success deleted');\n }", "title": "" }, { "docid": "7ea9be5753ef6c75971cd69f5b09dc3a", "score": "0.5373976", "text": "public function delete()\r\r\n {\r\r\n parent::delete();\r\r\n $this->queueInstance->deleteReserved($this->queue, $this->job);\r\r\n }", "title": "" }, { "docid": "dd65d84d1635da556aa87418e0f2e3bd", "score": "0.53566766", "text": "static public function ctrEliminarDelivery(){\n\n\t\tif(isset($_GET[\"idDelivery\"])){\n\n\t\t\t$tabla =\"delivery\";\n\t\t\t$datos = $_GET[\"idDelivery\"];\n\n\t\t\t$respuesta = ModeloDelivery::mdlEliminarDelivery($tabla, $datos);\n\n\t\t\tif($respuesta == \"ok\"){\n\n\t\t\t\techo'<script>\n\n\t\t\t\tswal({\n\t\t\t\t\t type: \"success\",\n\t\t\t\t\t title: \"El Delivery ha sido borrado correctamente\",\n\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t confirmButtonText: \"Cerrar\",\n\t\t\t\t\t closeOnConfirm: false\n\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\t\twindow.location = \"delivery\";\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\n\t\t\t\t</script>';\n\n\t\t\t}\t\t\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "a687041f8d9943514a46020fbc59d7e9", "score": "0.5355637", "text": "public function destroy($id)\n\t{\n\t\t//\n try {\n $delivery = Delivery::findOrFail($id);\n\n $delivery->delete();\n $execMsg = \"Delete Successful!\";\n } catch (ModelNotFoundException $e) {\n $execMsg = \"Cannot delete record. Data not found.\";\n return redirect('circulation/delivery')->with('errMsg', $execMsg);\n }\n return redirect('circulation/delivery')->with('message', $execMsg);\n\t}", "title": "" }, { "docid": "5c6a2b0fbb09cdaf9a94bb92168ec0e7", "score": "0.53539044", "text": "public function delete($team)\n {\n $team->purge();\n }", "title": "" }, { "docid": "13034525cd05a6a81ce72172a28a6888", "score": "0.5303303", "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": "6770a03cb22c08056eb07f00a32f0f19", "score": "0.5276007", "text": "public function destroy($id)\n\n {\n $deliveryzipcode = $this->deliveryzipcode->find($id)->delete();\n }", "title": "" }, { "docid": "c165090f5754bf3df762284b0f756833", "score": "0.52664375", "text": "public function deleted(Investor $investor)\n {\n //\n }", "title": "" }, { "docid": "adab4f7887008c24db3127a9fd317071", "score": "0.52407885", "text": "public function delete()\n\t{\n\t\t$queue = $this->get_queue();\n\n\t\tif ($queue !== false)\n\t\t{\n\t\t\t$queue->delete();\n\t\t}\n\n\t\t// Delete the attachment\n\t\t$operator = phpbb::$container->get('phpbb.titania.attachment.operator');\n\t\t$operator\n\t\t\t->configure(ext::TITANIA_CONTRIB, $this->contrib_id)\n\t\t\t->load(array($this->attachment_id))\n\t\t\t->delete(array($this->attachment_id))\n\t\t;\n\t\trepository::trigger_cron($this->config);\n\n\t\t// Delete translations\n\t\t// $translations = new titania_attachment(TITANIA_TRANSLATION, $this->revision_id);\n\t\t// $attachment->delete_all();\n\n\t\t// Self-destruct\n\t\tparent::delete();\n\t}", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.5233801", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.5233801", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.5233801", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.5233801", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.5233801", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.5233801", "text": "public function remove();", "title": "" }, { "docid": "a50ab8677f8fe8a0ad0a466fc003f303", "score": "0.5219475", "text": "public function deleted(PurchasePayment $purchasePayment)\n {\n //\n }", "title": "" }, { "docid": "6ce7ae8f209748c996c75d2b7c8becab", "score": "0.52091694", "text": "public function delete($id)\n {\n try{\n $delivery=Delivery::find($id);\n if(!$delivery){\n return response()->json([\n 'status'=>404,\n 'message'=>'This delivery id not exist'\n ]);\n }else{\n DB::beginTransaction();\n $delivery->delete();\n DB::commit();\n return response()->json([\n 'status'=>200,\n 'message'=>'deleted this delivery succefully'\n ]);\n }\n \n }catch(\\Exception $ex){\n DB::rollback();\n return response()->json([\n 'status'=>500,\n 'message'=>'There is something wrong, please try again'\n ]);\n }\n }", "title": "" }, { "docid": "1910e615c061a7ebf72675d5e79946f8", "score": "0.5189491", "text": "public function eliminar(){\n $this->equipos()->detach();\n $this->materiales()->detach();\n $this->manoDeObra()->detach();\n $this->transportes()->detach();\n $this->delete();\n }", "title": "" }, { "docid": "9237c7ffe5e6c506fe53d6aa79b9265e", "score": "0.5161288", "text": "public function deleted(Repayment $repayment)\n {\n //\n }", "title": "" }, { "docid": "49a7f1e34fd1fdc5d564d1693e33b534", "score": "0.51396185", "text": "public function deleted(Payment $payment)\n {\n //\n }", "title": "" }, { "docid": "c87623ed06ad3d11006624a3cb44ca70", "score": "0.5090235", "text": "function remove() {\n\t\t\n\t\t$index = isset($this->passedArgs['index']) ? $this->passedArgs['index'] : -1;\n\t\t$store_number = isset($this->passedArgs['store']) ? $this->passedArgs['store'] : 1;\n\t\t\n\t\tif ($index > -1) {\n\t\t\t\n\t\t\t$store = $this->Store->findByNumber($store_number);\n\t\t\t$cart = $this->Cart->get($store);\n\t\t\t\n\t\t\tif (isset($cart['OrderDetail'][$index])) {\n\t\t\t\t\n\t\t\t\tunset($cart['OrderDetail'][$index]);\n\t\t\t\t\n\t\t\t\t$cart = $this->Cart->recalculate($cart, $store);\n\t\t\t\t\n\t\t\t\t$this->Cart->save($cart, $store_number);\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->redirect(array('plugin' => 'kaching', 'controller' => 'carts', 'action' => 'view'));\n\t}", "title": "" }, { "docid": "5b1dc9f4faf6a3857a146224a906c820", "score": "0.50827026", "text": "public function destroy($id)\n {\n DeliveryService::destroy($id);\n\n Session::flash('flash_message', 'DeliveryService deleted!');\n\n return redirect('admin/delivery-services');\n }", "title": "" }, { "docid": "db61aa09b0111170cbe1528227d8f69d", "score": "0.50618804", "text": "public function destroy(Shipment $shipment)\n {\n //\n }", "title": "" }, { "docid": "db61aa09b0111170cbe1528227d8f69d", "score": "0.50618804", "text": "public function destroy(Shipment $shipment)\n {\n //\n }", "title": "" }, { "docid": "03f2a183ab8cae56009c6e82a1683432", "score": "0.50489694", "text": "public static function remove($variable, $persistence = 'session') {\n\t\t// Do we need to remove it from the session?\n\t\tif ($persistence == 'session') {\n\t\t\tunset($_SESSION['store'][$variable]);\n\t\t}\n\n\t\t// A local variable\n\t\tunset(self::$store[$variable]);\n\t}", "title": "" }, { "docid": "5ecd428cb2e81ae02331a8b988895bb9", "score": "0.50399685", "text": "public function delivery()\n {\n return $this->hasOne(Delivery::class);\n }", "title": "" }, { "docid": "d3de183319816e68e04b4ba5ab69a652", "score": "0.5038174", "text": "public function wipeStorage(): void;", "title": "" }, { "docid": "079c717dc7b2a9f3c32d5d15fd0c26f8", "score": "0.50356245", "text": "public function delete()\n {\n EM::instance()->remove($this);\n EM::instance()->flush($this);\n }", "title": "" }, { "docid": "84ffd5d41241886a42efaaa6c4cb6c45", "score": "0.5033917", "text": "public function delete()\n {\n self::remove($this->key);\n $this->key = null;\n $this->value = null;\n }", "title": "" }, { "docid": "e24a8da2185cf275580016315ac8c0fe", "score": "0.50322354", "text": "public abstract function remove();", "title": "" }, { "docid": "695d7460774bcef7cfd0a6e85126caf9", "score": "0.5026995", "text": "public function delete(Attachment $attachment): void;", "title": "" }, { "docid": "2dd436a1c83cbbbdddba31e81c033116", "score": "0.50185096", "text": "public function deleteById($storelocatorId);", "title": "" }, { "docid": "af0643a44ddd78a45d8160d1456861e0", "score": "0.50165546", "text": "public function delete() {}", "title": "" }, { "docid": "4e70303e457f09f01860fc5607e9e0ef", "score": "0.5014601", "text": "public function removePayment(PaymentInterface $payment);", "title": "" }, { "docid": "8afb6ebca777773fb633441d93029552", "score": "0.5004415", "text": "public function destroy(DeliveryCost $deliveryCost)\n {\n $deliveryCost->delete();\n\n flash('Delivery Cost deleted successfully.', 'success');\n\n return redirect()->route('admin.delivery_costs.index');\n }", "title": "" }, { "docid": "d14f72722158e232596f3060b3026bcf", "score": "0.5000248", "text": "public function deleted(Fee $fee)\n {\n Cache::forget('Fee'.$fee->coin_id);\n }", "title": "" }, { "docid": "db9d52d6ca42f7c05ab221b1426074d1", "score": "0.49987182", "text": "function delete($purchasing_id){\n PurchasingOrder::destroy($purchasing_id);\n }", "title": "" }, { "docid": "155d15db294fa01206a29edadbeedb35", "score": "0.49910563", "text": "public function remove(Product $product);", "title": "" }, { "docid": "7467da82433b445cb02432e04347b590", "score": "0.49874824", "text": "private function detach_order($order)\n {\n foreach ($order->products as $product) {\n\n $product->update([\n 'stock' => $product->stock + $product->pivot->quantity\n ]);\n\n }// end of foreach\n \n $order->delete();\n\n }", "title": "" }, { "docid": "4d84ab18e7e3c7bf3662c486977fb999", "score": "0.49856353", "text": "public function delete() {\n return $this->storage->delete($this->getId());\n }", "title": "" }, { "docid": "57e2c08157507dced86f581b4d485f48", "score": "0.4984648", "text": "public function purge();", "title": "" }, { "docid": "57e2c08157507dced86f581b4d485f48", "score": "0.4984648", "text": "public function purge();", "title": "" }, { "docid": "4f634fd6a5cf444037bf2efc93dadfeb", "score": "0.4961381", "text": "public function clear()\n {\n \tunlink($this->_storage);\n }", "title": "" }, { "docid": "47c4f60738347fbd6e94d1ceb9c3ff47", "score": "0.49590957", "text": "public function remove()\n\t{\n\t\t$t = str_replace('t.', '', $this->trashFlagField);\n\t\treturn $this->setTrashFlag($this->removedFlag)->save(false,array($t));\n\t}", "title": "" }, { "docid": "a0c1494df6dc156d94f0a38a94432401", "score": "0.49519473", "text": "public static function gestionAnnulationDelivery($delivery,$driver){\n\n $delivery->takeOverDelivery->delete();\n $delivery->update(['status'=>Config::get('constants.EN_ATTENTE_DE_PRISE_EN_CHARGE')]);\n $driver->canceled_deliveries++;\n $driver->save();\n $tab=NotificationController::notifyAnnulation();\n $tab['tokens']=[0=>$delivery->customer->user->notify_token];\n NotificationController::sendNotification($tab);\n\n }", "title": "" }, { "docid": "3b4db3352239dd56c62d0f0967a8d6ec", "score": "0.49505964", "text": "function remove($product_id) \r\n\t{\r\n\t\tunset($this->contents[$product_id]);\r\n }", "title": "" }, { "docid": "4218e0320b3b454719c428db49ab9d74", "score": "0.494658", "text": "protected function removed(WebhookPayload $payload): void\n {\n //\n }", "title": "" }, { "docid": "159bba6abb932e3f00fa09cdad3715de", "score": "0.49448055", "text": "public function destroy(Fundstransfer $fundstransfer)\n {\n //\n }", "title": "" }, { "docid": "c8e0e34e94f37aef4cfb7a5bec1a1916", "score": "0.49440426", "text": "public function purge(): void;", "title": "" }, { "docid": "65d88aff015e87eb73d2da9d8778a152", "score": "0.49382344", "text": "public function delete(SessionSignUp $signee)\n {\n $this->_em->remove($signee);\n $this->_em->flush();\n }", "title": "" }, { "docid": "a59dc58834fe7cbc841c76e264e25a50", "score": "0.49277785", "text": "public function destroyOne($payload){\n \t// body\n }", "title": "" }, { "docid": "ee70c7bb3badf3774a059b4197d9bcf0", "score": "0.4925653", "text": "public function getDelivery()\n {\n return $this->delivery;\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.49233606", "text": "public function delete();", "title": "" }, { "docid": "b8c78cd19161cf7966e7567365e984a3", "score": "0.49233285", "text": "public function remove(): void;", "title": "" }, { "docid": "d8e364177f65f0f5e0cce8b9dfb423f1", "score": "0.49210668", "text": "public function deleteOne($payload){\n \t// body\n }", "title": "" }, { "docid": "4b22b7ee3a57517ec9e3b86bea1578c9", "score": "0.49102458", "text": "public function clearStorage();", "title": "" }, { "docid": "5ee77a2a1646f8a7a217ab6f73541007", "score": "0.49049735", "text": "public function forceDeleted(Investor $investor)\n {\n //\n }", "title": "" }, { "docid": "aa68a57b3b99a130e2fe434239bb30aa", "score": "0.4904907", "text": "public function delete()\n\t{\n\t\t\\App\\Db::getInstance('admin')->createCommand()\n\t\t\t->delete('s_#__mail_queue', ['id' => $this->getId()])\n\t\t\t->execute();\n\t}", "title": "" }, { "docid": "e9ccfd9cee6592cf481df2dd6c3bab2c", "score": "0.49029258", "text": "public function delivery()\n {\n return $this->hasOne('App\\Delivery');\n }", "title": "" }, { "docid": "22209f10fc9ab386901e6ef67a754b72", "score": "0.4890247", "text": "public function destroy(GoodDeliveryForms $goodDeliveryForms)\n {\n //\n }", "title": "" }, { "docid": "9490786359dc42507245fbc1433015cf", "score": "0.48791844", "text": "public function getDeliveryId();", "title": "" }, { "docid": "26c616f1b19f7ee2720cc1745c44cbc9", "score": "0.48757085", "text": "public function destroy(Shipping $shipping)\n {\n //\n }", "title": "" }, { "docid": "26c616f1b19f7ee2720cc1745c44cbc9", "score": "0.48757085", "text": "public function destroy(Shipping $shipping)\n {\n //\n }", "title": "" }, { "docid": "0b74008cee9e9ce83a2cfacfb5000bc3", "score": "0.48695236", "text": "public function destroy(RefPayment $refPayment)\n {\n //\n }", "title": "" }, { "docid": "30d12407d208c7245c67fe3e3c0e6844", "score": "0.48658362", "text": "public function remove (object $entity);", "title": "" }, { "docid": "a44a48c6a5cf31250416191eb2989d1f", "score": "0.48656696", "text": "public function remove(Builder $builder) {}", "title": "" }, { "docid": "2e7ba86abbe72c0258108ac933cc99c4", "score": "0.48613", "text": "public function destroy(DailyDemand $dailyDemand)\n {\n //\n }", "title": "" }, { "docid": "bfbf01539d03841c1e4a84fee05cff58", "score": "0.4847247", "text": "public function destroy(Arrangement $arrangement)\n {\n $arrangement->delete();\n }", "title": "" }, { "docid": "b28b1fbf2b1392485a778c9099c422af", "score": "0.48464212", "text": "public function destroy(FlightDetail $flightDetail)\n {\n //\n }", "title": "" }, { "docid": "5e19e6322558ac3535cbd1df9a76f2be", "score": "0.48391464", "text": "public function destroy(DeliveryStatus $deliveryStatus)\n {\n $deliveryStatus->delete();\n return ['message' => 'Data telah dihapus'];\n }", "title": "" }, { "docid": "77bd26ad5cab0a13f8bc40fbf3c7d554", "score": "0.48316115", "text": "public function destroy(supplierPay $supplierPay)\n {\n //\n }", "title": "" } ]
d469c159edcdacd549f98bf53117b97f
echo "Excluindo tipo_Relacao ";
[ { "docid": "6288bb0bdb1bde73de58b56be00f5818", "score": "0.0", "text": "public function Delete(&$MsgErro){\r\n\t\t\t\t\t\t\r\n\t\t$query = 'DELETE FROM tipo_Relacionamento WHERE TP_Relacao = \"' . $this->TP_Relacao . '\"';\r\n\t\r\n\t\t$result = mysql_query($query);\r\n\t\tif (!($result && (mysql_affected_rows() > 0)))\r\n\t\t{\r\n\t\t\t$MsgErro = 'Não foi possivel excluir o registro: ' . mysql_error();\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t//\telse\r\n\t//\t\t$MsgErro = mysql_affected_rows() . ' registro(s) excluido(s) com sucesso';\r\n\t\t\r\n\t\treturn TRUE;\r\n\t \r\n\t}", "title": "" } ]
[ { "docid": "ea9b0d39834c53a22272923fe3e886e8", "score": "0.68168664", "text": "function elimina(){\n\t\t$id = $this->uri->segment(4);\n\t\t$idnoco = $this->uri->segment(5);\n\t\t$dbid = $this->db->escape($id);\n\t\t$msql = \"DELETE FROM itnoco WHERE id=${dbid}\";\n\t\t$this->db->query($msql);\n\t\t$rs = 'Concepto eliminado del Contrato';\n\t\t//logusu('noco',\"Contrato de Nomina ${codigo} MODIFICADO\");\n\t\techo $rs;\n\t}", "title": "" }, { "docid": "0275fd3d919bf71b2ab264dcf1db9f80", "score": "0.6775188", "text": "function Excluir()\n\t\t{\n\t\t\t$sql = \"delete from descricao\t\n\t\t\t\t\twhere coddescricao = ?\";\n\n\t\t\t//executando o comando sql e passando os valores\n\t\t\t$this->con->prepare($sql)->execute(array($this->coddescricao));\n\t\t}", "title": "" }, { "docid": "e2fe9f9ba44edb942f56519d78790bcb", "score": "0.65628785", "text": "static public function mdlEliminarEspacios(){\n\t\t\n\t\t$stmt = Conexion::conectar()->prepare(\"DELETE FROM import WHERE subcategoria=''\");\n\t\n\t\tif($stmt -> execute()){\n\n\t\t\treturn \"ok\";\n\t\t\n\t\t}else{\n\n\t\t\treturn \"error\";\t\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "7cb9ea643c3b0cdd400e2526c0efc18d", "score": "0.65040636", "text": "public function excluir(){\n \t$instancia = CaracteisticasDAO::getInstancia();\n \t// executando o metodo //\n \t$caracteristicas = $instancia->excluir($this->getId());\n \t// retornando o resultado //\n \treturn $caracteristicas;\n }", "title": "" }, { "docid": "17268a18dec27ec1626229d62d93356d", "score": "0.6502778", "text": "function excluir($id){\n\t\t$query = \"delete from carrinho where oid_carrinho = \". $id .\";\";\n\t\t$exec = mysql_query($query);\n\n\t\tif(!$exec) echo($query);\n\t}", "title": "" }, { "docid": "9ad60c1552c9a5be5030dd6629c7123a", "score": "0.6459676", "text": "function accionEliminarConceptoSobre(){ \n\n\t\t echo $accionEliminarConceptoSobre = $this->SobrereciboModel->accionEliminarConceptoSobre($_POST['empleado'],$_POST['concepto']);\n\t}", "title": "" }, { "docid": "8ff927c1456f9848d0cca80ca793e66f", "score": "0.6431695", "text": "function eliminaTipoContenido()\r\n\t{\r\n\t\t$query = \"DELETE FROM \" . self::TABLA . \" WHERE IdTipoContenido = \".$this->IdTipoContenido.\";\";\r\n\t\treturn parent::eliminaRegistro( $query);\r\n\t}", "title": "" }, { "docid": "cbeb0d71c71971f4517875747d45ec74", "score": "0.6405597", "text": "function runEliminar(){\n $sql = 'UPDATE '.$this->Table .' SET activo = 0 WHERE '.$this->PrimaryKey.' = '.$this->_datos;\n $this->QuerySql($sql);\n //$_respuesta = array('Codigo' => 1, \"Mensaje\" => 'Se ha eliminado el item con &eacute;xito');\n echo 'Se ha eliminado el item con &eacute;xito';\n }", "title": "" }, { "docid": "d5dd3402439e7b8c6742f91115ffffcc", "score": "0.6404078", "text": "function excluir(){\r\n\r\n $perfil_dao= new perfil_dao();\r\n \r\n $resultado=$perfil_dao::excluir($_POST[\"id\"]);\r\n if($resultado===1){\r\n // echo \"Processo efetuado com sucesso!\";\r\n $filtro=\"\"; \r\n $lista=$perfil_dao::listar_perfil($filtro);\r\n \r\n \r\n $msg = \"Processo efetuado com sucesso!\"; \r\n \r\n \r\n \r\n \r\n echo \"view_perfil.html|\".\"tabela-resultado\".\"|\".$msg.\"|\".$lista.\"|Pesquisar perfil\";\r\n \r\n }else{\r\n echo \"Ocorreu algum erro !\";\r\n }\r\n\r\n\r\n\r\n\r\n }", "title": "" }, { "docid": "6c01e27192fd3b3678b84b6616547f6b", "score": "0.6365831", "text": "public function _eliminar();", "title": "" }, { "docid": "33e29c3318ebcc828a9fe39aab173f66", "score": "0.63654184", "text": "function reventarPermiso(){\n\n $sql=\"DELETE\n\t\tFROM PERMISO\n\t\tWHERE (IdGrupo LIKE '$this->idGrupo')\";\n if (!$this->mysqli->query($sql)) { // si da error en la ejecución del delete devolvemos mensaje\n return 'Error en el borrado';\n }\n else{ //si no da error en el borrado devolvemos mensaje de exito\n return 'Inserción realizada con éxito'; //operacion de borrado correcta\n }\n\n }", "title": "" }, { "docid": "d0fd65ea75ceb9fa4815632cb13dc6e9", "score": "0.63382155", "text": "function excluir($cod, $link) {\n\t\t\t$query = \"DELETE FROM Aviao WHERE prefixoAviao='\".($cod).\"'\";\n\t\t\tif(!mysqli_query($link, $query)) {\n\t\t\t\tdie(\"ERRO. AVIAO NÃO EXCLUIDO.<br /><br /><a href='./listarAviao.php'>VOLTAR</a>\");\n\t\t\t}\n\t\t\techo \"AVIAO EXCLUIDO.<br /><br /><a href='./listarAviao.php'>VOLTAR</a>\";\n\t\t}", "title": "" }, { "docid": "a52ac9d0a4bcaa7a220fb53911ca4516", "score": "0.6316525", "text": "function Eliminar()\n{\n /**\n * Se crea una instanica a un grupo de cultivo\n */\n $EstacionClimatologica = new EstacionClimatologica();\n /**\n * Se coloca el Id del acuifero a eliminar por medio del metodo SET\n */\n $EstacionClimatologica->setIdEstacionClimatologica(filter_input(INPUT_GET, \"ID\"));\n /**\n * Se manda a llamar a la funcion de eliminar.\n */\n echo $EstacionClimatologica->delete();\n}", "title": "" }, { "docid": "04ba0c3007a3bb82e4a1f893cab25c2f", "score": "0.6314362", "text": "function Excluir()\n\t\t{\n\t\t\t$sql = \"delete from eventos\t\n\t\t\t\t\twhere id = ?\";\n\n\t\t\t//executando o comando sql e passando os valores\n\t\t\t$this->con->prepare($sql)->execute(array($this->id));\n\t\t}", "title": "" }, { "docid": "a48bf1bb09c1a76548caa4b0b398c95c", "score": "0.6309723", "text": "function testeExclusao(){\n $oFilme = new lFilme();\n $oFilme->createTableFilme();\n\n print_r($oFilme->excluirFilme(\"F0000\"));\n}", "title": "" }, { "docid": "6570e47c46fef5f005db0c87c5168be5", "score": "0.63064075", "text": "function facturaEliminar(){\n\t\t$id = $_GET['id'];\n\t\treturn \"delete from factura where folio = \".$id;\n\t}", "title": "" }, { "docid": "daea9510015cd65e79b9df795b7d56d4", "score": "0.6272902", "text": "function runEliminar(){\n $sql = \"UPDATE \".$this->Table .\" SET estado ='I' WHERE \".$this->PrimaryKey.\" = \".$this->_datos;\n $this->QuerySql($sql);\n //$_respuesta = array('Codigo' => 1, \"Mensaje\" => 'Se ha eliminado el item con &eacute;xito');\n echo 'Se ha eliminado el item con &eacute;xito';\n }", "title": "" }, { "docid": "40300daad4212df34c429b2c24a0c0bc", "score": "0.6241676", "text": "function eliminar_contrato($idcontrato)\n{\nglobal $template; /* Variable global para enviar mensajes al tpl deseado */\t\n $eliminacontrato =(\"DELETE FROM contrato WHERE idcontrato='$idcontrato'\");\n $this->realizarOperacion($eliminacontrato);\n $template->assign('contrato_eliminado','Usted ha eliminado Un Contrato');\n$template->display('mensajeeliminarcontrato.tpl'); \t\n}", "title": "" }, { "docid": "d59274d8650ceb5f132bb29541d3febe", "score": "0.6214668", "text": "public function excluirAction(){}", "title": "" }, { "docid": "ae104078576297ba782e07190a626623", "score": "0.61860156", "text": "function Eliminar()\n{\n $DistritoRiego = new DistritoRiego();\n $DistritoRiego->setIdDistritoRiego(filter_input(INPUT_GET, \"ID\"));\n echo $DistritoRiego->delete();\n}", "title": "" }, { "docid": "d845864ad6a4e3880a6dc96e03c90ad1", "score": "0.6181168", "text": "function eliminarNoticia($serviciosNOTI) {\n\t$idnoticia = $_POST['idnoticia'];\n\t\n\t$eliminar = $serviciosNOTI->eliminarNoticia($idnoticia);\n\t//echo $eliminar;\t\n\techo \"<h3>La noticia fue eliminada con exito!!!.</h3>\";\n\t\n}", "title": "" }, { "docid": "2f66ebc39c5f866cd57a421bbddfc7b2", "score": "0.60969275", "text": "function eliminarr($idcu,$id,$ide,$tipot){\n\tglobal $template; /* Variable global para enviar mensajes al tpl deseado */ \n $eliminau =(\"DELETE FROM `emarcosas`.`trabajo` WHERE `trabajo`.`idtrabajo` =$idcu\");\n $this->realizarOperacion( $eliminau);\n\t $template->assign('eliminarvarios','Usted eliminó uno o varios trabajos');\n\t $template->assign('id',$id);\n\t $template->assign('ide',$ide);\n\t $template->assign('tipot',$tipot);\n $template->display('mensajeeliminartrabajo.tpl'); /* Formulario de ingreso de la nueva maquina */\n }", "title": "" }, { "docid": "3331c4e1e255dafa49a3f09ec9022aec", "score": "0.60925066", "text": "public function ajaxEliminarTipoGaleria(){\n\t\t$respuesta = ControladorGaleria::ctrEliminarTipoGaleria();\n\t\techo $respuesta;\n\t}", "title": "" }, { "docid": "1d1dbad09d108f79bb9271d1ed337e66", "score": "0.60777843", "text": "function botaoExcluir($indiceCadastro){\n echo \"\n <form method='post'>\n <button type='submit' class='btn btn-outline-danger btn-sm' name='botaoExcluir' value='$indiceCadastro'>Excluir</button>\n </form>\";//o botão vai receber o valor do indice correspondente a sua linha na tabela de cadastros\n }", "title": "" }, { "docid": "88a5d86ad2cd71fa2cc1e554a22e8f28", "score": "0.60724247", "text": "public function excluir(){\r\n return (new Database('enderecos'))->delete('id = '.$this->id);\r\n }", "title": "" }, { "docid": "3631cbe5cda7aa282e1131416f10fc65", "score": "0.60720223", "text": "function eliminarregistro ($idc,$ingresos,$gastos){\n\t global $template; /* Variable global para enviar mensajes al tpl deseado */\n \n\t\n\t \n\t $eliminar = \"DELETE FROM `emarcosas`.`trabajo` WHERE `trabajo`.`idtrabajo` IN (\".implode(',',$idc).\");\";\n\t $this->realizarOperacion( $eliminar);\n\t $template->assign('eliminarvarios','Usted eliminó uno o varios trabajos');\n $template->display('mensajeeliminartrabajo.tpl'); /* Formulario de ingreso de la nueva maquina */\n\t\n\t \n \n }", "title": "" }, { "docid": "e98944a98402f7e5a8322188bf1afa2d", "score": "0.6050392", "text": "function E_tabla($tipo,$id_pantalla,$nombre_pantalla){\r\n include('../conexion.php');\r\n if($result1 = $mysqli->query(\"DELETE FROM `programacion_$tipo` WHERE `id_pantalla` = $id_pantalla or `id_pantalla`=(select id_pantalla from pantallas_$tipo where nombre = '$nombre_pantalla\".\"_2')\")){\r\n if($result1 = $mysqli->query(\"DELETE FROM pantallas_$tipo WHERE `id_pantalla` = \".$id_pantalla.\" or pantallas_$tipo.nombre='$nombre_pantalla\".\"_2'\")){\r\n echo \"<div class='w3-row w3-light-green '><h4 class='w3-center'>Se ha eliminado la pantalla de la base de datos con &eacute;xito</h4></div>\"; \r\n \r\n } else{echo \"<div class='w3-row w3-pale-red '><h4 class='w3-center'>No fue posible eliminar las tablas de la base de datos</h4></div>\";}\r\n }\r\n}", "title": "" }, { "docid": "057677a162011e340f3fd1105ef6d3ae", "score": "0.6029511", "text": "public function eliminar_anuncio_controlador(){\n $codigo=mainModel::decryption($_POST['codigo-del']);\n $codigo=mainModel::limpiar_cadena($codigo); \n $DelAnuncio=anuncioModelo:: eliminar_anuncio_modelo($codigo);\n\n if($DelAnuncio->rowCount()>=1){\n $alerta = [\n \"Alerta\"=>\"recargar\",\n \"Titulo\"=>\"Anuncio Eliminado\",\n \"Texto\"=>\"El anuncio fue eliminado con exito del sistema\",\n \"Tipo\"=>\"success\"\n ];\n }else{\n $alerta = [\n \"Alerta\"=>\"simple\",\n \"Titulo\"=>\"Ocurrio un error inesperado\",\n \"Texto\"=>\"No podemos eliminar este administrador en este momento\",\n \"Tipo\"=>\"error\"\n ]; \n }\n return mainModel::sweet_alert($alerta);\n \n }", "title": "" }, { "docid": "dab098f8f9a0cbebc07163af4f3198b9", "score": "0.60247135", "text": "public function excluir() {\n $cd = $this->input->post('cd');\n\n //filtra a consulta\n $this->db->where('cl_cd', $cd);\n\n //realiza a consulta\n $consulta = $this->db->get('cliente')->result();\n\n //filtra o delete\n $this->db->where('cl_cd', $cd);\n\n //Realiza o delete\n if ($this->db->delete('cliente')) {\n\n //apaga a logo do cliente\n $filestring = APPPATH . '../assets/logo/' . $consulta[0]->cl_logo;\n unlink($filestring);\n\n return 1;\n } else {\n\n return 2;\n }\n }", "title": "" }, { "docid": "e7eca69ca5d1bf12524beb43663f3874", "score": "0.60120624", "text": "function eliminarTecnicoDAO($tecnico){\n $sql=\"SELECT * FROM srgbp.t59_solicitud WHERE id_t61_tecnico_supervisor=\".$tecnico.\";\";\n $objConexionPostgreSQL1 = new ConexionPostgreSQL();\n $txtResultado1 = $objConexionPostgreSQL1->Consultar($sql);\n $filas = pg_numrows($txtResultado1);\n if(!($filas > 0)){\n $sql=\"DELETE FROM srgbp.t61_tecnico_supervisor WHERE id_t61_tecnico_supervisor=\".$tecnico.\";\";\n $objConexionPostgreSQL = new ConexionPostgreSQL();\n $Resultado = $objConexionPostgreSQL->Eliminar($sql);\n }else{\n $Resultado = \"existe_relacion\";\n }\n //die($Resultado); \n //die($sql);\n return $Resultado;\n }", "title": "" }, { "docid": "ea40b6c449d5eb07800f3e9c617cc964", "score": "0.6003046", "text": "public function excluirAction()\n\t{\n\t\tif($this->_hasParam('id') === FALSE) $this->_redirect($this->_listagem);\n\n\t\t$id = (int) $this->_getParam('id');\n\t\t$primary = $this->_model->getPrimary();\n\t\t\t\n\t\t$where = $this->_model->getAdapter()->quoteInto(\"{$primary} = ?\", $id);\n\t\t\n\t\t$this->_db->beginTransaction();\n\t\t\n\t\ttry\n\t\t{\n\t\t\t$excluir = $this->_model->delete($where);\n\t\t\t$mensagem['sucesso'] = 'Registro excluído com sucesso!';\n\t\t\t$this->_db->commit();\n\t\t}\n\t\tcatch(Exception $e) \n\t\t{\n\t\t\t$excluir = false;\n\t\t\t$mensagem['erro'] = 'Este registro possui dependências e não pode ser excluído!';\n\t\t\t$this->_db->rollback();\n\t\t}\n\t\t\n\t\t$this->_processar($excluir, $mensagem);\n\t}", "title": "" }, { "docid": "afcd37a9c18f4d06e5690feae8f530f0", "score": "0.6001875", "text": "public function EliminarDetalleIngrediente()\n\t{\n\tself::SetNames();\n\t\tif ($_SESSION[\"acceso\"]==\"administrador\" || $_SESSION['acceso'] == \"superadministrador\" ) {\n\n\t\t$sql = \"DELETE FROM productosxingredientes WHERE codproducto = ? and codingrediente = ?\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1,$codproducto);\n\t\t$stmt->bindParam(2,$codingrediente);\n\t\t$codproducto = decrypt($_GET[\"codproducto\"]);\n\t\t$codingrediente = decrypt($_GET[\"codingrediente\"]);\n\t\t$stmt->execute();\n\n\t\t\techo \"1\";\n\t\t\texit;\n\n\t\t} else {\n\t\t \n\t\t\techo \"2\";\n\t\t\texit;\n\t\t } \n}", "title": "" }, { "docid": "c3593951f90bfb30bf1152ce19fe7b67", "score": "0.5992853", "text": "public function eliminarProductoAction()\n { \n \n }", "title": "" }, { "docid": "41d58875298edf33d308229d32a741f4", "score": "0.5991778", "text": "function Excluir()\n\t\t{\n\t\t\t$sql = \"delete from imagens\t\n\t\t\t\t\twhere codimagem = ?\";\n\n\t\t\t//executando o comando sql e passando os valores\n\t\t\t$this->con->prepare($sql)->execute(array($this->codimagem));\n\t\t}", "title": "" }, { "docid": "f9e4c9b4f35b3bc22786dbcdca0581be", "score": "0.5984619", "text": "function eliminaVecchiGiocatori() {\n\n include(\"../setting.php\");\n\n // elimino i giocatori\n $query = \"DELETE FROM giocatori\";\n $exec = mysql_query($query, $conn) or die(mysql_error());\n}", "title": "" }, { "docid": "c8bb0e3bb6599b52f5993ac103a12608", "score": "0.5958505", "text": "function excluiDoc($bd) {\r\n\t\t//os documentos ja cadastrados nao serao excluidos.\r\n\t\tif($bd->query(\"UPDATE label_doc SET cadAcaoID=-1,novoAcaoID=-1 WHERE nomeAbrv='\".$_GET['tipoDoc'].\"'\"))\r\n\t\t\treturn 'Tipo de documento excluido. Os Documentos desse tipo j&aacute; cadastrados n&atilde;o ser&atilde;o excluidos.';\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "369db783244efae4cee5144c87f78823", "score": "0.595038", "text": "public function get_excluidos()\r\n\t{\r\n\t\treturn $this->excluidos;\r\n\t}", "title": "" }, { "docid": "b1c3e9b6088db54d813e4948179108ee", "score": "0.59493333", "text": "function deletepg($val1,$val2)\t// elimina la identificacion\n\t{\n $obj_Gurpo=new Conexion();\n $query=\"delete from program where id_exp=$val1 and id_prg=$val2\";\n\t\t\t$obj_Gurpo->consulta($query); // ejecuta la consulta para borrar la identificacion\n\t\t\treturn '<div id=\"mensaje\"><p/><h4>Se elimino el programa con exito</h4></div>'; // retorna todos los registros afectados\n\n }", "title": "" }, { "docid": "321716176c4e5530d2c74aa73243189e", "score": "0.5949163", "text": "function eliminarTipoPermiso(){\n\t\t$this->procedimiento='asis.ft_tipo_permiso_ime';\n\t\t$this->transaccion='ASIS_TPO_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_tipo_permiso','id_tipo_permiso','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "125b5751e16b8af1ec26b46cf296f372", "score": "0.5948958", "text": "function daEliminare()\n\t\t{\n\t\treturn $this->input['elimina'];\n\n\t\t}", "title": "" }, { "docid": "bc97546f8a75c201a99b800bc55508d4", "score": "0.59485835", "text": "public function metodoEliminar(\n //Aqui ingresamos los parametros que necesitan para eliminar cierto tipo de categoria, por lo general es el id de la categoria\n $id\n ){\n return 'Aqui va la logica en donde se eliminan los datos de una categoria dada';\n }", "title": "" }, { "docid": "202d926a1b6de6d3cd3c54791fa13dcc", "score": "0.5944099", "text": "public function eliminar(){\n\t\t$SitiosInteresModel= new SitiosInteresModel();\n\t\t$request=\\Config\\Services::request();\n\t\t$idSitio=$request->getPostGet('idSitio');\n\t\t$SitiosInteresModel->delete($idSitio);\n\t\t$SitiosInteresModel=$SitiosInteresModel->findAll();\n\t\t$SitiosInteresModel=array('SitiosInteresModel'=>$SitiosInteresModel);\t\t\n\t\t$estructura=view('head').view('header').view('index').view('adminSitios',$SitiosInteresModel);\n\t\treturn $estructura;\n\t\t\n\t}", "title": "" }, { "docid": "fdce36373da3f1bc29650df59155130b", "score": "0.5939083", "text": "public function EliminarTipoCambio()\n{\n\tself::SetNames();\n\t\tif ($_SESSION['acceso'] == \"administrador\" || $_SESSION['acceso'] == \"superadministrador\" ) {\n\n\t\t $sql = \"DELETE FROM tiposcambio WHERE codcambio = ?\";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->bindParam(1,$codcambio);\n\t\t\t$codcambio = decrypt($_GET[\"codcambio\"]);\n\t\t\t$stmt->execute();\n\n\t\t\techo \"1\";\n\t\t\texit;\n\n\t\t} else {\n\t\t \n\t\t\techo \"2\";\n\t\t\texit;\n\t\t} \n}", "title": "" }, { "docid": "f293876fb6e4134dc0ae6852ec533ee5", "score": "0.5933499", "text": "function eliminarItem()\n{\n global $NOTI_ERROR;\n global $NOTI_SUCCESS;\n \n if($_GET){\n $IdSeccion = $_GET['Id'];\n DAOFactory::getSeccionDAO()->delete($IdSeccion);\n notificacion(\"Seccion Eliminada\",$NOTI_SUCCESS );\n }\n else{\n notificacion(\"Error Eliminando la Seccion\",$NOTI_ERROR );\n }\n \n verModulo();\n \n return \"\";\n \n}", "title": "" }, { "docid": "60ebf32b08cba2917c14ce4d11170b3f", "score": "0.59330326", "text": "function delete(){\n\t$query = \"DELETE FROM enseigner WHERE IDENSEIGNEMENT = '\".parse($_GET['line']).\"'\";\n\tif(mysql_query($query)){\n\t\tif(mysql_affected_rows())\n\t\t\tprint \"<p class=\\\"infos\\\">Enseignement : \".$_GET['line'].\" supprim&eacute; avec succ&egrave;s.</p>\";\n\t\tafficher();\n\t}else\n\t\tdie(\"Erreur de suppression\\n\".mysql_error());\n}", "title": "" }, { "docid": "abbfebc17aa2f71ea970faacda84c58b", "score": "0.5929446", "text": "public function ajaxEliminarTipoProducto(){\n\t\t$respuesta = ControladorTipoProducto::ctrEliminarTipoProducto();\n\t\techo $respuesta;\n\t}", "title": "" }, { "docid": "ba73732188936fa441a05c18dfb34c2a", "score": "0.59236443", "text": "function supprimerTypeIntervention($nomType){\n $connexion=getConnect();\n $requete=\"DELETE FROM typeintervention WHERE nomType='$nomType'\";\n $resultat=$connexion->query($requete);\n $resultat->closeCursor();\n}", "title": "" }, { "docid": "0d1cd0cc562bcc6278c83f037f460cba", "score": "0.5918248", "text": "public function supprimerTousCMD()\n {\n echo $this->CommandeTFIModel->supprimerTous() . \" CommandeTFI supprimées !!\";\n }", "title": "" }, { "docid": "0de307bbcf0c8afc6672b595a9f023bf", "score": "0.59143686", "text": "function eliminar($modelo, $id){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "80b0d33342570e0a6dd224ee0e1b937b", "score": "0.5904531", "text": "function remove_exclui_produto(){\n\n// atualiza o numero de feeds\natualiza_numero_feeds(false);\n\n\n}", "title": "" }, { "docid": "8e26773b3d4dfc3b559e060f394aa739", "score": "0.58929783", "text": "function DELETE()\n{\n\t$sql = \"SELECT *\n\t\t\tFROM CATEGORIAS\n\t\t\tWHERE (ID = '$this->id')\";\n\n\t$obj = $this->mysqli->query($sql);\n\n\t//Comprobacion de que la tupla es unica\n\tif( mysqli_num_rows($obj) == 1 ){\n\n\t\t$sql = \"SELECT *\n\t\t\t\tFROM PRODUCTOS_CATEGORIAS\n\t\t\t\tWHERE (ID_CATEGORIA = '$this->id')\";\n\n\t\t$obj = $this->mysqli->query($sql);\n\t\tif( mysqli_num_rows($obj) <= 0 ){\n\t\t\t$sql = \"DELETE \n\t \t\t\tFROM CATEGORIAS\n\t \t\t\tWHERE ID = '$this->id'\"; \n\n\t \t\tinclude '../Model/BD_logger.php';//se incluye el archivo con el log\n\t \t\t//se reliza el log del delete\t\n\t \t\tif (writeAndLog($sql)) return '00005'; \n\t \t}\n\t}\n\treturn '00006';\n}", "title": "" }, { "docid": "d9a7923ed180430c21170489cfdc3a01", "score": "0.58892775", "text": "function eliminarext($idx)\n{\n\nglobal $template; /* Variable global para enviar mensajes al tpl deseado */ \n $eliminaext =(\"DELETE FROM extraccion_lubricante WHERE idextraccion_lubricante=$idx\");\n $this->realizarOperacion( $eliminaext );\n\t\n\t $template->assign('eliextraccion','Usted Eliminó La Extraccion De Un Lubricante');\n $template->display('eliminarextraccion.tpl'); /* Formulario de ingreso de la nueva maquina */\n\n}", "title": "" }, { "docid": "d51ab68ecf660e5f7d7d50ffa440b648", "score": "0.5881939", "text": "public function EliminarTipoMoneda()\n\t{\n\t\tself::SetNames();\n\t\tif ($_SESSION['acceso'] == \"administrador\" || $_SESSION['acceso'] == \"superadministrador\" ) {\n\n\t\t\t$sql = \"SELECT codmoneda FROM tiposcambio WHERE codmoneda = ?\";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->execute(array(decrypt($_GET[\"codmoneda\"])));\n\t\t\t$num = $stmt->rowCount();\n\t\t\tif($num == 0)\n\t\t\t{\n\n\t\t\t\t$sql = \"DELETE FROM tiposmoneda WHERE codmoneda = ?\";\n\t\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t\t$stmt->bindParam(1,$codmoneda);\n\t\t\t\t$codmoneda = decrypt($_GET[\"codmoneda\"]);\n\t\t\t\t$stmt->execute();\n\n\t\t\t\techo \"1\";\n\t\t\t\texit;\n\n\t\t\t} else {\n\t\t\t \n\t\t\t\techo \"2\";\n\t\t\t\texit;\n\t\t\t } \n\t\t\t\t\n\t\t\t} else {\n\t\t\t\n\t\t\techo \"3\";\n\t\t\texit;\n\t\t }\t\n\t}", "title": "" }, { "docid": "4fd73abe63095bc91f7d639c8d9d8c0d", "score": "0.58746654", "text": "public function supprimer(){\n $sql=\"DELETE FROM \".get_class($this);\n\nif($this->where!=\" WHERE \"){ //Ajoute la condition WHERE si pas vide\n $sql.=$this->where;\n }\n\n $this->Resultat=$this->Connexion->query($sql);\n}", "title": "" }, { "docid": "b4a4a636ca78a086dda5304747f1577f", "score": "0.586495", "text": "public function deleteTipoContrato(){\n $data = self::$TipoContratoModel->matenimientoTipoContrato();\n \n echo json_encode($data);\n }", "title": "" }, { "docid": "1d32d9ca0212a6da723590fca7c84add", "score": "0.5863955", "text": "public function excluir(){\n\n\t\t$pdo = new \\PDO (DSN,USER,PASSWD);\t\n\n\t\t$sql = 'DELETE FROM DiscipuloTemEvento WHERE discipuloId = ? AND eventoId = ?';\n\n\t\t$stm = $pdo->prepare($sql);\n\n\t\t$stm->bindParam(1, $this->discipuloId);\n\t\t$stm->bindParam(2, $this->eventoId);\n\n\t\t$stm->execute();\n\n\t}", "title": "" }, { "docid": "6c359d80355620db6f54664340f7b83b", "score": "0.58614475", "text": "function eliminaroperador($idop){\n\tglobal $template; /* Variable global para enviar mensajes al tpl deseado */ \n $eliminaop =(\"DELETE FROM operador WHERE idoperador='$idop'\");\n $this->realizarOperacion($eliminaop);\n\t\n\t $template->assign('eoperador','Usted Eliminó Un Operador');\n $template->display('eliminaroperador.tpl'); /* Formulario de ingreso de la nueva maquina */\n }", "title": "" }, { "docid": "9207e615b925cc340ec661942d99eac7", "score": "0.5847619", "text": "public static function Excluir(){\n $funcionario = new Funcionario();\n $funcionario->idFuncionario = $_GET['id'];\n $excluiu = $funcionario::Excluir($funcionario->idFuncionario);\n return $excluiu;\n }", "title": "" }, { "docid": "42a1d2ef14e1baf67ef2f061db11d373", "score": "0.58435345", "text": "public function excluirAction(){\r\n \r\n \t// Verifica se arrequisição foi passada por Ajax\r\n\t\tif($this->_request->isXmlHttpRequest()) {\r\n \t\r\n\t \t// Recupera os parametros da requisição\r\n\t $params = $this->_request->getParams();\r\n\t \r\n\t // Captura o código da transação pai\r\n\t $pai_cd_tabela = Zend_Registry::get(\"pai_cd_tabela\");\r\n\t \r\n\t // Instancia a classe de sistemas web\r\n\t $tabelaSistema = new TabelaSistemaModel();\r\n\t \r\n\t // Define os filtros para a cosulta\r\n\t $where = \"CD_TABELA = '{$pai_cd_tabela}' AND CD_SISTEMA = '{$params['cd_sistema']}'\";\r\n\t \r\n\t\t\t// Desativa a mensagem do sistema\r\n\t\t\t$tabelaSistema->setShowMessage(false);\r\n\t\t\t\t \r\n\t // Define os parâmetros para a consulta e retorna o resultado da pesquisa\r\n\t $delete = $tabelaSistema->delete($where);\r\n\t \r\n\t $retornoJSON = array(\"retorno\" => $delete);\r\n\t\t\t$this->_helper->json(Marca_ConverteCharset::converter($retornoJSON), true);\t \r\n\t\t}\r\n }", "title": "" }, { "docid": "1a5eb7064374917c2dc777cb6f826f8a", "score": "0.5839331", "text": "public function excluirEquipamento($codigo, $con){\r\n\t\t\t$sql = \"DELETE FROM Equipamento WHERE idEquipamento=\".$codigo.\";\";\r\n\r\n\t\t\t//executa o comando DELETE no banco de dados para o usuario que tem\r\n\t\t\t//aquele codigo especifico\r\n\t\t\t$resultadoE = mysqli_query($con, $sql) or die(mysqli_error($con));\r\n\r\n\t\t\t//avaliando o resultado\r\n\t\t\tif ($resultadoE == true){\r\n\t\t\t\techo 'Excluído o Equipamento';\r\n\t\t\t\t/*echo '<SCRIPT type=\"text/javascript\"> //not showing me this\r\n\t\t\t\t\t\t\t\talert(\"Equipamento excluído com sucesso\");\r\n\t\t\t\t\t\t\t\twindow.location.replace(\"listarpessoas.php\");\r\n\t\t\t\t\t\t</SCRIPT>';*/\r\n\t\t\t}else{\r\n\t\t\t\techo 'Problema ao apagar o registro no banco de dados <br>';\r\n\t\t\t\techo 'O erro que aconteceu foi este: ' . mysqli_error($con);\r\n\t\t\t\techo '<a href=\"menu.php\"> MENU </a>';\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "f333da942b19b04b6ae95d4fd299672f", "score": "0.58356094", "text": "function deleteUtilizacion(){\r\n\t\t$r = $this->dr->deleteUtilizacion($this->id);\r\n\t\tif($r=='true'){\r\n\t\t\t$msg = UTILIZACION_BORRADO;\t\t\r\n\t\t}else{\r\n\t\t\t$msg = ERROR_DEL_UTILIZACION;\r\n\t\t}\r\n\t\treturn $msg;\r\n\t}", "title": "" }, { "docid": "47fd34bd42dfb6faaa80d60db73acdd0", "score": "0.5834181", "text": "public function excluir(){\n $dal = new \\App\\Models\\DAL\\Cadastrointegrantes;\n $dal->excluir($this->getCod_integrante());\n return $this->getCod_projeto();\n }", "title": "" }, { "docid": "45e13e9fc7c196037bee097a09fc6b7b", "score": "0.5828335", "text": "public function remover() {\n\n\t\t$oDaoAprovConselho = new cl_aprovconselho();\n\t\t$sWhereAprovConselho = \"ed253_i_diario = {$this->oAvaliacaoResultadoFinal->getCodigoDiario()}\";\n\t\t$oDaoAprovConselho->excluir(null, $sWhereAprovConselho);\n\n\t\tif ( $oDaoAprovConselho->erro_status == \"0\" ) {\n\t\t\tthrow new DBException($oDaoAprovConselho->erro_msg);\n\t\t}\n\n\t\t$sResultadoFinal = 'R';\n\n if( $this->getFormaAprovacao() == AprovacaoConselho::RECLASSIFICACAO_BAIXA_FREQUENCIA ) {\n\n $this->oAvaliacaoResultadoFinal->setResultadoFrequencia( 'R' );\n }\n\n if( $this->oAvaliacaoResultadoFinal->getResultadoFrequencia() == 'A'\n && $this->oAvaliacaoResultadoFinal->getResultadoAprovacao() == 'A'\n ) {\n $sResultadoFinal = 'A';\n }\n\n\t\t$this->oAvaliacaoResultadoFinal->setResultadoFinal($sResultadoFinal);\n\t\t$this->oAvaliacaoResultadoFinal->salvar();\n\t}", "title": "" }, { "docid": "95e6c03f8b142df18dff3a31a4492338", "score": "0.58237094", "text": "function esEliminable(){\n\n\t$sql = \"SELECT * \n\t\t\tFROM PRODUCTOS_CATEGORIAS\n\t\t\tWHERE ( ID_CATEGORIA = '$this->id')\";\n\n\n\t$toRet = $this->mysqli->query($sql);\n\treturn $toRet->num_rows <= 0 ? 'true' : 'false';\n}", "title": "" }, { "docid": "107159005c76eaf9e915360d289015c7", "score": "0.58212084", "text": "function produtoIncluir($conexao) {\n\t\tif(isset($_POST['cadastro'])){\n\t\t\t// caso não entre no programa\n\t\t\t$produto = $_POST['txtProduto'];\n\t\t\t$quantidade = $_POST['txtQuantidade'];\n\t\t\t$validade = $_POST['txtValidade'];\n\t\t\tif(produto_incluir($conexao,$produto,$quantidade,$validade)){\n\t\t\t\t$retornoExc = \"Produto incluido com sucesso!!!\";\n\t\t\t\t$dados = listarDados($conexao);\n\t\t\t\trequire(\"view_mostrar.php\");\n\t\t\t} else {\n\t\t\t\t$retornoExc = \"A operação falhou. Tente novamente.\";\n\t\t\t\trequire(\"view_incluir.php\");\n\t\t\t}\n\n\t\t} else {\n\t\t\t// se não entrar vai mostrar essa view\n\t\t\trequire(\"view_incluir.php\");\n\t\t} \n\t}", "title": "" }, { "docid": "4445c091a8185e273e7476db14c69401", "score": "0.5817562", "text": "function excluirPorId($idCompra, $conn){\n $sql = \"DELETE FROM compra WHERE IdCompra=\" . $idCompra;\n $resultado = $conn->query($sql);\n return $resultado;\n }", "title": "" }, { "docid": "4ea933a4c9ab983ffc82bc6d0713ed05", "score": "0.581495", "text": "function eliminarFirmasRtaGlosas() {\n\t\t//Realiza la insercion en Postgresql con base en los parametros\n\t\t\t\n\t\t\t$cnx = \tconectar_postgres();\n\t\t\t$cons = \"DELETE FROM Facturacion.FirmasRtaGlosas\";\n\t\t\t\t\t \n\t\t\t$res = @pg_query($cnx, $cons);\n\t\t\t\tif (!$res) {\n\t\t\t\t\t\t\techo \"<p class='error1'> Error de ejecucion </p>\".pg_last_error().\"<br>\";\n\t\t\t\t\t\t\techo \"<p class= 'subtitulo1'>Comando SQL </p> <br>\".$cons.\"<br/> <br/> <br/>\"; \n\t\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "2801c698cd074d940b9260074625d097", "score": "0.5808772", "text": "function excluirRegistro($conexao, $tabela, $campo_id, $valor_id)\n{\n $sql = 'DELETE FROM ' . $tabela . ' WHERE ' . $campo_id . '=\\'' . $valor_id . '\\';';\n\n /* executando query de sql */\n executaSql($conexao, $sql);\n}", "title": "" }, { "docid": "639152522f52dd135e766a3ec0c8a3be", "score": "0.5804307", "text": "function eliminar_atribucion()\n {\n $permiso = $this->permiso_administrador();\n\n $this->load->model('tpoadminv1/catalogos/Catalogos_model');\n $existe_foreign = $this->Catalogos_model->exist_register_foreign($this->uri->segment(5), 'id_so_atribucion', 'tab_sujetos_obligados');\n\n if($existe_foreign){\n $this->session->set_flashdata('alert', \"Este registro no puede ser eliminado, ya que se encuentra ligado a registros de sujetos obligados.\");\n }else{\n $eliminar = $this->Catalogos_model->eliminar_atribucion($this->uri->segment(5));\n\n if($eliminar == 1){\n $this->session->set_flashdata('exito', \"Registro eliminado correctamente\");\n }else {\n $this->session->set_flashdata('error', \"Registro no se pudo eliminar\");\n }\n }\n\n redirect('/tpoadminv1/catalogos/catalogos/busqueda_atribuciones');\n }", "title": "" }, { "docid": "f69312d2fab662e408c582759d51d55d", "score": "0.5802483", "text": "function eliminarComentarios(){\n $this->modelo->eliminarComentarios($_GET[\"id\"]);\n $this->vista->mostrarMensaje(\"Comentario Eliminado correctamente!\", \"success\");\n $this->Comentarios();\n }", "title": "" }, { "docid": "65c7f7b0e3b15ef6fae6a58321b8ee2d", "score": "0.57987875", "text": "function eliminarRio(){\n\t\t$this->procedimiento='hidro.f_thd_rio_ime';\n\t\t$this->transaccion='HD_RIO_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_rio','id_rio','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "aa93bc422eb98909716189f3bdb4ed4d", "score": "0.5797544", "text": "static public function ctrBorrarTipo(){\n\n if (isset($_GET[\"idTipo\"])) {\n\n $tabla = \"tipos\";\n $datos = $_GET[\"idTipo\"];\n\n $respuesta = ModeloTipos::mdlBorrarTipo($tabla, $datos);\n\n if ($respuesta == \"ok\") {\n\n echo'<script>\n\n\t\t\t\tswal({\n\t\t\t\t\t type: \"success\",\n\t\t\t\t\t title: \"El tipo de establecimiento ha sido borrado correctamente\",\n\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t confirmButtonText: \"Cerrar\"\n\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\t\twindow.location = \"tipos\";\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\n\t\t\t\t</script>';\n\n }\n }\n }", "title": "" }, { "docid": "7e3799d305f7baa9e4e4a3f4b55161b3", "score": "0.5796827", "text": "function eliminarCulto(){\n\t\t$this->procedimiento='ccb.f_culto_ime';\n\t\t$this->transaccion='CCB_CUL_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_culto','id_culto','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "11fa47f19ad21d8be3ba20e91468f0ad", "score": "0.5782208", "text": "public function message(){\n return 'No se puede eliminar los colores porque ya se encuentra registrado en la bodega.';\n }", "title": "" }, { "docid": "b16bd8417c33ead30d6d61d3844a3dca", "score": "0.57811904", "text": "function eliminar_registro($tabla,$id,$valor)\n\t{\n\n\t\t$sql =(\"DELETE FROM $tabla WHERE $id=$valor\");\n\t\t$consulta=mysql_query($sql);\n\t\tif($consulta)\t\n\t\t{\n\t\t\techo\"Registro Eliminado con Exito\";\n//\t\t\tprint'registro borrado';\n\t\t}\n\n\t}", "title": "" }, { "docid": "9119bec7120fe56ebd0bfaf6812fb96e", "score": "0.57793343", "text": "function eliminarfc($idfactura,$idpro,$saldo,$combustible,$lubricante)\n{\n\nglobal $template; /* Variable global para enviar mensajes al tpl deseado */ \n $eliminafc =(\"DELETE FROM factura_compra WHERE idfactura_compra='$idfactura' \");\n $this->realizarOperacion( $eliminafc);\n $template->assign('idpro',$idpro);\n $template->assign('saldo',$saldo);\n $template->assign('co',$combustible);\n $template->assign('lu',$lubricante);\t\n $template->assign('eliminada_combustible','Usted ha eliminado una factura de combustible');\n $template->display('factura_combustible_eliminada.tpl'); \n\t\n}", "title": "" }, { "docid": "c6dcabf094a3e3b160da300db57aa954", "score": "0.57764375", "text": "function excluirConta($cod)\n {\n $conta = new Conta();\n $result = $conta->deleteConta($cod);\n\n if($result)\n {\n $delog = \"Exclusão de dados na tabela [contas] chave \" . $cod;\n\n if (isset($_COOKIE['cdusua'])) {\n $cdusua = $_COOKIE['cdusua'];\n }\n\n $this->util->geraLogSistema($cdusua, $delog);\n\n return $result;\n }\n\n return false;\n }", "title": "" }, { "docid": "75f199069f045e5af1524658c9668fbd", "score": "0.5767772", "text": "function deleteRiesgo(){\r\n\t\t$r = $this->cc->deleteRiesgo($this->id);\r\n\t\tif($r=='true'){\r\n\t\t\t$msg = RIESGO_BORRADO;\t\t\r\n\t\t}else{\r\n\t\t\t$msg = ERROR_DEL_RIESGO;\r\n\t\t}\r\n\t\treturn $msg;\r\n\t}", "title": "" }, { "docid": "ef61165e76ca6037db63709923247cea", "score": "0.576569", "text": "public function noeliminar(){\n $this->confirming = \"\";\n\n }", "title": "" }, { "docid": "7d4e5ee95d9f95e1884d15d54279c6ee", "score": "0.5765256", "text": "function eliminar() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\n\t\tif ($mdb2->only_read) {\n\t\t\tthrow new Exception('Por el momento esta trabajando solo en modo lectura.');\n\t\t}\n\t\t\n\t\t$sql = \"SELECT * FROM public.horario_item_elimina(\".\n\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\tpg_escape_string($this->item_id).\")\";\n//\t\tprint($sql.\"<br>\");\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql,$res->userinfo);\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "af1e5ffc93eceabb7cced1408df0a615", "score": "0.57628286", "text": "function DELETE()\n{\n$ctrl=$this->comprobar_dni();\n\t\tif(!is_array($ctrl)){\n $sql = \"\tDELETE FROM \n \t\t\t\tPROFESOR\n \t\t\tWHERE(\n \t\t\t\tDNI = '$this->dni'\n \t\t\t)\n \t\t\t\";\n\n \tif ($this->mysqli->query($sql))\n\t{\n\t\t$resultado = 'Borrado realizado con éxito';\n\t}\n\telse\n\t{\n\t\t$resultado = 'Error de gestor de base de datos'; //Error en la construcción de la sentencia SQL\n\t}\n\treturn $resultado;\n}else{\n\treturn $ctrl;\n}\n}", "title": "" }, { "docid": "4e8943c3cf4d95c743cd0e28f2c85b63", "score": "0.57599336", "text": "function deletecate($data){\n\t\t\t\ttry{\n\t\t\t\t\t$sql=\"DELETE FROM tipo_producto WHERE id_tip_pro = ?\";\n\t\t\t\t\t$query=$this->pdo->prepare($sql);\n\t\t\t\t\t$query->execute(array($data));\n\t\t\t\t\t$msn= \"Eliminado Exitoxamente\";\n\t\t\t\t} catch (PDOException $e){\n\t\t\t\t\t$msn = $e->getMessage();\n\t\t\t\t}\n\t\t\t\treturn $msn;\n\t\t\t}", "title": "" }, { "docid": "3bb13c474871c2b45c216342c0a089d1", "score": "0.57549125", "text": "function borrar(){\n\t\t$this->modelo->alumnoDelete();\n\t\n\t}", "title": "" }, { "docid": "08a42255fa32582767ce1923a8f57c62", "score": "0.5752264", "text": "public function set_excluidos($str)\r\n\t{\t\t\r\n\t\t$this->excluidos = $str;\r\n\t}", "title": "" }, { "docid": "6f870cbca2fab4526d91923280570a73", "score": "0.574998", "text": "public function excluirAnuncio($id) {\n // \"id\" => $id\n // );\n $this->arrayInfo['id'] = $id;\n $this->loadPainel(\"excluirAnuncio\", $this->arrayInfo);\n }", "title": "" }, { "docid": "3bd3f1c218b3e81e2e032defbaecbe3f", "score": "0.57385206", "text": "public function eliminar_Procedimiento($cod){\n $query=\"CALL DELETE_PROCEDIMIENTO(\".$cod.\")\";\n $consulta=$this->db->query($query);\n }", "title": "" }, { "docid": "fc8208094a54aa134ad1ac77daef7ecf", "score": "0.5735425", "text": "function eliminar_cuenta_pago($idc,$id)\n{\nglobal $template; /* Variable global para enviar mensajes al tpl deseado */ \n $eliminac =(\"DELETE FROM cuentas_contrato WHERE idcuentas_contrato=$idc\");\n $this->realizarOperacion( $eliminac);\n\t $template->assign('idc',$idc);\n\t $template->assign('id',$id);\n\t $template->assign('eliminar_cuenta_pago','Usted Ha Eliminado Una Cuenta de pago Del Contrato');\n$template->display('eliminar_cuenta_pago.tpl');\n\t \n}", "title": "" }, { "docid": "11c37ca565b57704e8812aa5fb8142cf", "score": "0.5721332", "text": "public function getExcluido()\n {\n return $this->excluido;\n }", "title": "" }, { "docid": "b8784745f44fe636f07446db59b5b093", "score": "0.5714338", "text": "function eliminar($tabla, $condicion) {\n $con = new Conexion();\n if ($con->conectar() == true) {\n\n $query = \"DELETE FROM \" . $tabla . \" WHERE \" . $condicion . \"\";\n $result = @mysql_query($query);\n if (!$result)\n return false;\n else\n return true;\n }\n }", "title": "" }, { "docid": "d06d7acc74606a57f1ca4d45bd2c7c31", "score": "0.570872", "text": "function eliminar_cascada()\n {\n $consultas_sql[] = \"DELETE FROM usuario_grupo WHERE grupo_id NOT IN (SELECT id FROM grupo)\";\n $consultas_sql[] = \"DELETE FROM grupo_profesor WHERE grupo_id NOT IN (SELECT id FROM grupo)\";\n //$consultas_sql[] = \"DELETE FROM usuario_cuestionario WHERE grupo_id NOT IN (SELECT id FROM grupo)\";\n \n foreach ($consultas_sql as $sql) {\n $this->db->query($sql); \n }\n }", "title": "" }, { "docid": "55de1f9844aeb3965e58c55c09432fc2", "score": "0.57062316", "text": "function eliminarRueba(){\n\t\t$this->procedimiento='dis.ft_rueba_ime';\n\t\t$this->transaccion='DIS_pru_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id','id','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "d16955d9047cd674608a1376193c0614", "score": "0.5702017", "text": "public function rimuoviElementi($idCliente, $codDisco, $mysqli){\r\n\r\n $query = \"DELETE FROM `Carrello` WHERE `idCompratore` ='\". $idCliente . \"' AND `codDisco` = '\" . $codDisco .\"'\";\r\n\r\n Database::lanciaQuery($query, $mysqli);\r\n\r\n \r\n}", "title": "" }, { "docid": "e5dd0e72502b6da622c31f48fbf975c6", "score": "0.5700038", "text": "public function excluirPessoa($conexao, $codigo){\n\t\t\t$sql = \"DELETE FROM Pessoa WHERE idPessoa=\".$codigo.\";\";\n\n\t\t\t//executa o comando DELETE no banco de dados para o usuario que tem\n\t\t\t//aquele codigo especifico\n\t\t\t$resultado = mysqli_query($conexao, $sql) or die(mysqli_error($conexao));\n\n\t\t\t//avaliando o resultado\n\t\t\tif ($resultado == true){\n\t\t\t\t//echo 'Excluída a Pessoa';\n\t\t\t\techo '<SCRIPT type=\"text/javascript\"> //not showing me this\n\t\t\t\t\t\t\t\talert(\"Pessoa excluída com sucesso!\");\n\t\t\t\t\t\t\t\twindow.location.replace(\"../Visualizacao/listarpessoas.php\");\n\t\t\t\t\t\t</SCRIPT>';\n\t\t\t}else{\n\t\t\t\techo 'Problema ao apagar o registro no banco de dados <br>';\n\t\t\t\techo 'O erro que aconteceu foi este: ' . mysqli_error($conexao);\n\t\t\t\techo '<a href=\"../Visualizacao/menu.php\"> MENU </a>';\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "dbdc2a7f12bd2a3861d3c65ad463c8a7", "score": "0.5699991", "text": "function eliminarGestion(){\n\t\t$this->procedimiento='param.f_gestion_ime';\n\t\t$this->transaccion='PM_GES_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_gestion','id_gestion','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "fe4da78324ef09f48741e47f651003b9", "score": "0.5694007", "text": "function delete_tipo_multum($tipo)\n {\n return $this->db->delete('tipo_multa',array('tipo'=>$tipo));\n }", "title": "" }, { "docid": "9ad23aad82ce8a49d754ba704544a925", "score": "0.56861854", "text": "function eliminar_tcp() {\n//// echo$cantidad.\"<br>\";\n// if ($cantidad == 0) {\n//// echo \"elimino\";\n//// return;\n// $conec = new ADO();\n// $sql = \"update caj_traspaso_brazil set tbr_eliminado='si' where tbr_id='\" . $_POST['tbr_id'] . \"'\";\n// $conec->ejecutar($sql);\n// $mensaje = 'Sucursal Eliminado Correctamente.';\n// } else {\n// $mensaje = 'El Sucursal no puede ser eliminado, por que ya fue referenciado en algunos comprobantes.';\n// }\n// $this->formulario->ventana_volver($mensaje, $this->link . '?mod=' . $this->modulo);\n }", "title": "" }, { "docid": "16a9bf771cdb5e3bf0f49983bf6875a7", "score": "0.5685448", "text": "public function remover() {\n\n $oDaoDiarioAvaliacao = new cl_diarioavaliacao();\n $oDaoDiarioResultadoRecuperacao = new cl_diarioresultadorecuperacao();\n $oDaoDiarioResultado = new cl_diarioresultado();\n $oDaoDiarioFinal = new cl_diariofinal();\n $oDaoDiario = new cl_diario();\n\n /**\n * Percorremos os diarios, removendo de cada tabela referente ao diario\n */\n foreach ($this->getDisciplinas() as $oDiarioAvaliacaoDisciplina) {\n\n /**\n * Removendo diarioavaliacao\n */\n $sWhereAvaliacao = \"ed72_i_diario = {$oDiarioAvaliacaoDisciplina->getCodigoDiario()}\";\n $sSqlAvaliacao = $oDaoDiarioAvaliacao->sql_query_file(null, \"ed72_i_codigo\", null, $sWhereAvaliacao);\n $rsAvaliacao = $oDaoDiarioAvaliacao->sql_record($sSqlAvaliacao);\n $iLinhasAvaliacao = $oDaoDiarioAvaliacao->numrows;\n\n if ($iLinhasAvaliacao > 0) {\n\n for ($iContadorAvaliacao = 0; $iContadorAvaliacao < $iLinhasAvaliacao; $iContadorAvaliacao++) {\n\n $iCodigoDiarioAvaliacao = db_utils::fieldsMemory($rsAvaliacao, $iContadorAvaliacao)->ed72_i_codigo;\n\n /**\n * Verificamos se o diarioavaliacao possui algum registro na tabela abonofalta para ser excluido\n */\n $oDaoAbonoFalta = new cl_abonofalta();\n $sWhereAbonoFalta = \"ed80_i_diarioavaliacao = {$iCodigoDiarioAvaliacao}\";\n $sSqlAbonoFalta = $oDaoAbonoFalta->sql_query_file(null, \"ed80_i_codigo\", null, $sWhereAbonoFalta);\n $rsAbonoFalta = $oDaoAbonoFalta->sql_record($sSqlAbonoFalta);\n $iLinhasAbonoFalta = $oDaoAbonoFalta->numrows;\n\n if ($iLinhasAbonoFalta > 0) {\n\n for ($iContadorAbonoFalta = 0; $iContadorAbonoFalta < $iLinhasAbonoFalta; $iContadorAbonoFalta++) {\n\n $iCodigoAbonoFalta = db_utils::fieldsMemory($rsAbonoFalta, $iContadorAbonoFalta)->ed80_i_codigo;\n $oDaoAbonoFalta->excluir($iCodigoAbonoFalta);\n\n if ($oDaoAbonoFalta->erro_status == \"0\") {\n throw new DBException($oDaoAbonoFalta->erro_msg);\n }\n }\n }\n\n /**\n * Removemos os vinculos com a tabela transfaprov\n */\n $oDaoTransfaprov = new cl_transfaprov();\n\n $sWhereTransfAprov = \" ed251_i_diarioorigem = {$iCodigoDiarioAvaliacao} \";\n $sWhereTransfAprov .= \" or ed251_i_diariodestino = {$iCodigoDiarioAvaliacao}\";\n\n $sSqlTransfAprov = $oDaoTransfaprov->sql_query_file(null, \"ed251_i_codigo\", null, $sWhereTransfAprov);\n $rsTransfAprov = $oDaoTransfaprov->sql_record($sSqlTransfAprov);\n $iLinhasTransfAprov = $oDaoTransfaprov->numrows;\n if ($rsTransfAprov && $iLinhasTransfAprov > 0) {\n\n for ($iContadorTransf = 0; $iContadorTransf < $iLinhasTransfAprov; $iContadorTransf++) {\n\n $iCodigoTransAprov = db_utils::fieldsMemory($rsTransfAprov, $iContadorTransf)->ed251_i_codigo;\n $oDaoTransfaprov->excluir($iCodigoTransAprov);\n if ($oDaoTransfaprov->erro_status == 0) {\n throw new DBException($oDaoTransfaprov->erro_msg);\n }\n }\n }\n\n /**\n * Verificamos se o diarioavaliacao possui algum registro na tabela pareceraval para ser excluido\n */\n $oDaoParecerAval = new cl_pareceraval();\n $sWhereParecerAval = \"ed93_i_diarioavaliacao = {$iCodigoDiarioAvaliacao}\";\n $sSqlParecerAval = $oDaoParecerAval->sql_query_file(null, \"ed93_i_codigo\", null, $sWhereParecerAval);\n $rsParecerAval = $oDaoParecerAval->sql_record($sSqlParecerAval);\n $iLinhasParecerAval = $oDaoParecerAval->numrows;\n\n if ($iLinhasParecerAval > 0) {\n\n for ($iContadorParecerAval = 0; $iContadorParecerAval < $iLinhasParecerAval; $iContadorParecerAval++) {\n\n $iCodigoParecerAval = db_utils::fieldsMemory($rsParecerAval, $iContadorParecerAval)->ed93_i_codigo;\n $oDaoParecerAval->excluir($iCodigoParecerAval);\n\n if ($oDaoParecerAval->erro_status == \"0\") {\n throw new DBException($oDaoParecerAval->erro_msg);\n }\n }\n }\n\n $oDaoDiarioAvaliacao->excluir($iCodigoDiarioAvaliacao);\n\n if ($oDaoDiarioAvaliacao->erro_status == \"0\") {\n throw new DBException($oDaoDiarioAvaliacao->erro_msg);\n }\n }\n } else {\n throw new BusinessException('Não há dados na tabela diarioavaliacao para o diário da matrícula em questão.');\n }\n\n /**\n * Removendo diarioresultado\n */\n $sWhereResultado = \"ed73_i_diario = {$oDiarioAvaliacaoDisciplina->getCodigoDiario()}\";\n $sSqlResultado = $oDaoDiarioResultado->sql_query_file(null, \"ed73_i_codigo\", null, $sWhereResultado);\n $rsResultado = $oDaoDiarioResultado->sql_record($sSqlResultado);\n $iLinhasResultado = $oDaoDiarioResultado->numrows;\n\n if ($iLinhasResultado > 0) {\n\n for ($iContadorResultado = 0; $iContadorResultado < $iLinhasResultado; $iContadorResultado++) {\n\n $iCodigoDiarioResultado = db_utils::fieldsMemory($rsResultado, $iContadorResultado)->ed73_i_codigo;\n\n /**\n * Verificamos se o diarioavaliacao possui algum registro na tabela parecerresult para ser excluido\n */\n $oDaoParecerResult = db_utils::getDao(\"parecerresult\");\n $sWhereParecerResult = \"ed63_i_diarioresultado = {$iCodigoDiarioResultado}\";\n $sSqlParecerResult = $oDaoParecerResult->sql_query_file(null, \"ed63_i_codigo\", null, $sWhereParecerResult);\n $rsParecerResult = $oDaoParecerResult->sql_record($sSqlParecerResult);\n $iLinhasParecerResult = $oDaoParecerResult->numrows;\n\n if ($iLinhasParecerResult > 0) {\n\n for ($iContadorParecerResult = 0; $iContadorParecerResult < $iLinhasParecerResult; $iContadorParecerResult++) {\n\n $iCodigoParecerResult = db_utils::fieldsMemory($rsParecerResult, $iContadorParecerResult)->ed63_i_codigo;\n $oDaoParecerResult->excluir($iCodigoParecerResult);\n\n if ($oDaoParecerResult->erro_status == \"0\") {\n throw new DBException($oDaoParecerResult->erro_msg);\n }\n }\n }\n\n $oDaoDiarioResultadoRecuperacao->excluir( null, \"ed116_diarioresultado = {$iCodigoDiarioResultado}\" );\n $oDaoDiarioResultado->excluir($iCodigoDiarioResultado);\n\n if ($oDaoDiarioResultado->erro_status == \"0\") {\n throw new DBException($oDaoDiarioResultado->erro_msg);\n }\n }\n }\n\n /**\n * Removendo diariofinal\n */\n $sWhereFinal = \"ed74_i_diario = {$oDiarioAvaliacaoDisciplina->getCodigoDiario()}\";\n $sSqlFinal = $oDaoDiarioFinal->sql_query_file(null, \"ed74_i_codigo\", null, $sWhereFinal);\n $rsFinal = $oDaoDiarioFinal->sql_record($sSqlFinal);\n $iLinhasFinal = $oDaoDiarioFinal->numrows;\n\n if ($iLinhasFinal > 0) {\n\n $iCodigoDiarioFinal = db_utils::fieldsMemory($rsFinal, 0)->ed74_i_codigo;\n $oDaoDiarioFinal->excluir($iCodigoDiarioFinal);\n\n if ($oDaoDiarioFinal->erro_status == \"0\") {\n throw new DBException($oDaoDiarioFinal->erro_msg);\n }\n }\n\n /**\n * Removendo amparos vinculados ao diário\n */\n $oDaoAmparoExclusao = new cl_amparo();\n $sWhereAmparo = \"ed81_i_diario = {$oDiarioAvaliacaoDisciplina->getCodigoDiario()}\";\n $sSqlAmparoExclusao = $oDaoAmparoExclusao->sql_query_file( null, \"*\", null, $sWhereAmparo );\n $rsAmparoExclusao = db_query( $sSqlAmparoExclusao );\n\n if ( !$rsAmparoExclusao ) {\n throw new DBException( \"Erro ao buscar os amparos do diário:\\n\" . pg_result_error( $rsAmparoExclusao ) );\n }\n\n $iLinhasAmparoExclusao = pg_num_rows( $rsAmparoExclusao );\n\n if ( $iLinhasAmparoExclusao > 0 ) {\n\n for ( $iContador = 0; $iContador < $iLinhasAmparoExclusao; $iContador++ ) {\n\n $iCodigoAmparoExclusao = db_utils::fieldsMemory( $rsAmparoExclusao, $iContador )->ed81_i_codigo;\n $oDaoAmparoExclusao->excluir( $iCodigoAmparoExclusao );\n\n if ( $oDaoAmparoExclusao->erro_status == \"0\" ) {\n throw new DBException( $oDaoAmparoExclusao->erro_msg );\n }\n }\n }\n\n /**\n * Remove as avaliações alternativas... validos somente para turmas avaliada por SOMA e que usem aval. alternativas\n */\n $oDaoDiarioAvaliacaoAlternativa = new cl_diarioavaliacaoalternativa();\n $oDaoDiarioAvaliacaoAlternativa->excluir(null, \" ed136_diario = {$oDiarioAvaliacaoDisciplina->getCodigoDiario()} \" );\n if ( $oDaoDiarioAvaliacaoAlternativa->erro_status == '0') {\n throw new DBException( $oDaoDiarioAvaliacaoAlternativa->erro_msg );\n }\n\n /**\n * Removendo diario\n */\n $oDaoDiario->excluir($oDiarioAvaliacaoDisciplina->getCodigoDiario());\n\n if ($oDaoDiario->erro_status == \"0\") {\n throw new DBException($oDaoDiario->erro_msg);\n }\n }\n }", "title": "" }, { "docid": "1e3741e7af0a7b7b41ea9a63ea89a03a", "score": "0.5683367", "text": "function delete_responsables_titulacion($res_codigo)\n {\n $response = $this->db->delete('responsables_titulacion',array('res_codigo'=>$res_codigo));\n if($response)\n {\n return \"responsables_titulacion deleted successfully\";\n }\n else\n {\n return \"Error occuring while deleting responsables_titulacion\";\n }\n }", "title": "" }, { "docid": "ad3be2305edfed3650c1cd654253ebe4", "score": "0.5683018", "text": "function excluirProduto($conexao, $id){\n\n $sql = \"DELETE FROM produtos WHERE id = $id\";\n\n return mysqli_query($conexao, $sql) or die(mysqli_error($conexao));\n\n\n }", "title": "" }, { "docid": "99f8b700f3d7a0b17fa369abfefc0cf8", "score": "0.5681185", "text": "function kill_afiliado()\r\n {\r\n \t$q=$this->model_admin->kill_afiliado($_POST['id'],$_POST['red']);\r\n \tif($q){\r\n \t\techo \"El Afiliado ha sido eliminado con exito\";\r\n \t\t$this->trash_afiliado($_POST['id'],$_POST['red']);\r\n \t}else{\r\n \t\techo \"El Afiliado no pudo ser eliminado\";\r\n \t} \t\r\n \r\n }", "title": "" }, { "docid": "bb832caeba0cb3c2d9868e26867d71c9", "score": "0.56769216", "text": "function excluirUsuario($id){\r\n\t\t$query = \"DELETE FROM USUARIO WHERE ID_Usuario = '\".$id.\"' \";\r\n\t\t$sql = mysql_query($query) or die (\"Erro ao excluir na tabela USUARIO\". mysql_error());\r\n\r\n\t\t// retorno a usuario excluido\r\n\t\treturn $sql;\r\n\r\n\t}", "title": "" } ]
f7f5da676f102b809945c49672a23122
Defines the ending Gantt bar date value. The starting Gantt bar point is stored at TGanttSeries.StartValues StartValues and EndValues can be specified both as DateTime or double values. Both are standard TChartValueList components. That means you can access their values with same methods as you can access X or Y values. The TGanttSeries.Add method must be used to add Gantt bar points.
[ { "docid": "150ed943aa69b8d6d69f9cd8f395de22", "score": "0.62216836", "text": "public function getEndValues()\r\n {\r\n return $this->endValues;\r\n }", "title": "" } ]
[ { "docid": "cba8377d465cb1298916633ed200c6fa", "score": "0.5878036", "text": "public function setEndDate($value)\n {\n return $this->set('EndDate', $value);\n }", "title": "" }, { "docid": "cba8377d465cb1298916633ed200c6fa", "score": "0.5878036", "text": "public function setEndDate($value)\n {\n return $this->set('EndDate', $value);\n }", "title": "" }, { "docid": "cba8377d465cb1298916633ed200c6fa", "score": "0.5878036", "text": "public function setEndDate($value)\n {\n return $this->set('EndDate', $value);\n }", "title": "" }, { "docid": "cba8377d465cb1298916633ed200c6fa", "score": "0.5878036", "text": "public function setEndDate($value)\n {\n return $this->set('EndDate', $value);\n }", "title": "" }, { "docid": "382f3f8a8ec7420705c59671b04a2cc9", "score": "0.5827975", "text": "public function setEnd($value)\n {\n $this->setProperty(\"End\", $value, true);\n }", "title": "" }, { "docid": "e973faa9fd865127c0f332e889ab17b7", "score": "0.5775045", "text": "public function setEndDate(DateTime $value)\n {\n $this->endDate = $value;\n }", "title": "" }, { "docid": "95c69746cd7d0b0d79c2f2e1531b8539", "score": "0.57467216", "text": "public function setEndDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('endDateTime', $value);\n }", "title": "" }, { "docid": "95c69746cd7d0b0d79c2f2e1531b8539", "score": "0.57467216", "text": "public function setEndDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('endDateTime', $value);\n }", "title": "" }, { "docid": "f6e66bf13fddfdb789494597e23f937e", "score": "0.57267845", "text": "public function setDateEnd($data)\n {\n $this->_DateEnd=$data;\n return $this;\n }", "title": "" }, { "docid": "f2d5835e79b7d27a27235599de724c8d", "score": "0.56605715", "text": "public function setEndDate($value)\n {\n if (empty($value)) {\n $this->end_date = null;\n\n return $this;\n }\n\n return $this->parseDate(\n 'end_date',\n DateTimeFormat::getAll(),\n (string) $value,\n 'Invalid format for end_date.'\n );\n }", "title": "" }, { "docid": "9eba25d0e4e314362799b63632550019", "score": "0.56298", "text": "public function Gantt($c = null)\r\n {\r\n parent::Points($c);\r\n\r\n $this->setHorizontal();\r\n $this->calcVisiblePoints = false;\r\n\r\n $this->vxValues->setName(\"ValuesGanttStart\");// TODO $this->Language->getString(\"ValuesGanttStart\");\r\n $this->vxValues->setDateTime(true);\r\n $this->vxValues->setOrder(ValueListOrder::$NONE);\r\n $this->bColorEach = true;\r\n\r\n $tmpColor = new Color(0, 0, 0);// Black\r\n $this->getLinePen()->setColor($tmpColor);\r\n\r\n $this->endValues = new ValueList($this, \"ValuesGanttEnd\"/*$this->Language->getString(\"ValuesGanttEnd\")*/);\r\n $this->endValues->setDateTime(true);\r\n\r\n $this->nextTask = new ValueList($this, \"ValuesGanttNextTask\"/*$this->Language->getString(\"ValuesGanttNextTask\")*/);\r\n $this->point->setStyle(PointerStyle::$RECTANGLE);// <-- $Bar ( default)\r\n }", "title": "" }, { "docid": "151ae8d2a5e0a1a1ae8de1598ab0e4da", "score": "0.5611137", "text": "public function getEndDate()\n {\n return $this->end_date;\n }", "title": "" }, { "docid": "151ae8d2a5e0a1a1ae8de1598ab0e4da", "score": "0.5611137", "text": "public function getEndDate()\n {\n return $this->end_date;\n }", "title": "" }, { "docid": "e6fd57ae9feff6878909e9d0027fb465", "score": "0.56006753", "text": "public function setendDate($v)\n {\n $dt = PropelDateTime::newInstance($v, null, 'DateTime');\n if ($this->enddate !== null || $dt !== null) {\n $currentDateAsString = ($this->enddate !== null && $tmpDt = new DateTime($this->enddate)) ? $tmpDt->format('Y-m-d H:i:s') : null;\n $newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;\n if ($currentDateAsString !== $newDateAsString) {\n $this->enddate = $newDateAsString;\n $this->modifiedColumns[] = ActionPeer::ENDDATE;\n }\n } // if either are not null\n\n\n return $this;\n }", "title": "" }, { "docid": "efba4117614b284ddacc5b68eb98c767", "score": "0.5576866", "text": "public function setEnd($value)\n {\n return $this->set(self::END, $value);\n }", "title": "" }, { "docid": "03ae99b4f519b336b9458f63514375c8", "score": "0.5566422", "text": "public function setEnd(\\DateTime $end)\n {\n $this->end = $end;\n return $this;\n }", "title": "" }, { "docid": "03ae99b4f519b336b9458f63514375c8", "score": "0.5566422", "text": "public function setEnd(\\DateTime $end)\n {\n $this->end = $end;\n return $this;\n }", "title": "" }, { "docid": "fceb7caaf0f43a86e1f980280ea33f65", "score": "0.5558896", "text": "public function setEnd($var)\n {\n GPBUtil::checkInt64($var);\n $this->end = $var;\n\n return $this;\n }", "title": "" }, { "docid": "fceb7caaf0f43a86e1f980280ea33f65", "score": "0.5558896", "text": "public function setEnd($var)\n {\n GPBUtil::checkInt64($var);\n $this->end = $var;\n\n return $this;\n }", "title": "" }, { "docid": "a01053b593fb9c48ea371a5987829d44", "score": "0.55505717", "text": "public function setEnd($end)\n {\n if ($end) {\n $date = \\DateTime::createFromFormat('d-m-Y', $end);\n $end = $date->format('Y-m-d');\n }\n $this->end = $end;\n\n return $this;\n }", "title": "" }, { "docid": "380d89a639f326619dd242fa85a1ae7f", "score": "0.5547778", "text": "public function getDateEnd()\n {\n return $this->dateEnd;\n }", "title": "" }, { "docid": "80f88a5cc9a71e32bd42ad0d46cda916", "score": "0.551412", "text": "function getPeriodEnd();", "title": "" }, { "docid": "ee6cdebdf83dc7b9791b7af0723ee10a", "score": "0.55112433", "text": "public function setEnd(\\DateTime $end): self\n {\n $this->end = $end;\n\n return $this;\n }", "title": "" }, { "docid": "14eddc376640a315fa109975bfc9fc72", "score": "0.54998255", "text": "public function setEndDate($date) : self;", "title": "" }, { "docid": "1a1e18cf43e17cdb5ab59884b3dd5bf0", "score": "0.5499635", "text": "public function setDateEnd($dateEnd)\n\t{\n\t\t$this->dateEnd = $dateEnd;\n\t}", "title": "" }, { "docid": "f3f837a1345201b78fcad7f85739eed3", "score": "0.5494343", "text": "public function setEndDate($var)\n {\n GPBUtil::checkString($var, True);\n $this->end_date = $var;\n\n return $this;\n }", "title": "" }, { "docid": "3f444fd5c6ebd3c272416efdf999ca44", "score": "0.5486529", "text": "public function getRangeEndDate(): string\n {\n return $this->rangeEndDate;\n }", "title": "" }, { "docid": "6c9aef1affc88b846d611bc2c1a611d5", "score": "0.54845625", "text": "function set_end_date($end_date) {\n $this->end_date = $end_date;\n }", "title": "" }, { "docid": "1bf2d500533e37f8ee1ef01b55a94d44", "score": "0.5478294", "text": "public function addPeriodEnd()\n {\n return $this->addCollection('period_end', 'Activity\\PeriodDate', '', [], trans('elementForm.period_end'));\n }", "title": "" }, { "docid": "896855b0f5064b446e1b673eccc2af08", "score": "0.54565316", "text": "public function setEndDate($end_date) {\n $this->endDate = $end_date;\n }", "title": "" }, { "docid": "9adf44a81c727da4e37d93facf89aff8", "score": "0.5453135", "text": "public function setEndDate($value)\n {\n return $this->setParameter('endDate', is_string($value) ? new \\DateTime($value) : $value);\n }", "title": "" }, { "docid": "6c740a25ff90292fc51347964965252a", "score": "0.54429626", "text": "public function getEnd(): DateTime\n {\n return $this->end;\n }", "title": "" }, { "docid": "18e11e96b845c80acadadaaf8b59f286", "score": "0.5441359", "text": "function get_end_date() {\n return $this->end_date;\n }", "title": "" }, { "docid": "9d06eb3b0465d7a7158809b5ce05e720", "score": "0.5423607", "text": "public function getFacetDateEnd($field_override){}", "title": "" }, { "docid": "39d8030ebd4f96cbc5cf8acd52aaba8f", "score": "0.54120123", "text": "public function getEnd()\n {\n return $this->getEndDate();\n }", "title": "" }, { "docid": "708db7f939fa5cfd5abd0ce43ad1ef73", "score": "0.54116637", "text": "public function getEnd(): \\DateTime\n {\n return $this->end;\n }", "title": "" }, { "docid": "a10f56a8b611a69fe4f72fc74eb19306", "score": "0.5383548", "text": "public function setEndDateTime($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\StringValue::class);\n $this->writeOneof(5, $var);\n\n return $this;\n }", "title": "" }, { "docid": "61debae9e2d4279a423a82058bd72119", "score": "0.5368247", "text": "public function setEnd($var)\n {\n GPBUtil::checkString($var, False);\n $this->end = $var;\n $this->has_end = true;\n\n return $this;\n }", "title": "" }, { "docid": "c25e3fa2ee1412d08c760599cb25a53c", "score": "0.53678054", "text": "public function getDateEnd()\n {\n return $this->_DateEnd;\n }", "title": "" }, { "docid": "07c01e70043da37bdb464ebb29cedef4", "score": "0.536544", "text": "public function getEndDate()\n {\n list($start, $end) = explode(' - ', $this->range, 2);\n return $end;\n }", "title": "" }, { "docid": "0be1b8f12887c7ade1ac2a2318ad703c", "score": "0.53644526", "text": "public function setEndCreatedAt(?string $endCreatedAt): void\n {\n $this->endCreatedAt = $endCreatedAt;\n }", "title": "" }, { "docid": "a73d65b87658414c952cf0bb88be52e2", "score": "0.5357482", "text": "public function getMaxXValue()\r\n {\r\n return max(parent::getMaxXValue(), $this->endValues->getMaximum());\r\n }", "title": "" }, { "docid": "8496c13ed55b6d0cb536cf25734e096c", "score": "0.5357062", "text": "public function getEnd()\n {\n return $this->getProperty(\"End\", new DateTimeTimeZone());\n }", "title": "" }, { "docid": "5af755055a9a1895e1e6440dbfddfffa", "score": "0.5354626", "text": "public function drawValue($valueIndex)\r\n {\r\n // This overrided method is the main paint method for Gantt bar points.\r\n if($this->point->getVisible())\r\n {\r\n $c = $this->getValueColor($valueIndex);\r\n $this->point->prepareCanvas($this->chart->getGraphics3D(), $c);\r\n\r\n $x1 = $this->calcXPos($valueIndex);\r\n $x2 = $this->calcXPosValue($this->endValues->value[$valueIndex]);\r\n $tmpHalfHorizSize = ($x2 - $x1) / 2;\r\n $y = $this->calcYPos($valueIndex);\r\n\r\n $tmpStyle = $this->onGetPointerStyle($valueIndex, $this->point->getStyle());\r\n\r\n $g = $this->chart->getGraphics3D();\r\n\r\n $this->point->intDraw($g,\r\n $this->chart->getAspect()->getView3D(),\r\n $x1 + $tmpHalfHorizSize,\r\n $y,\r\n $tmpHalfHorizSize,\r\n $this->point->getVertSize(),\r\n $c, $tmpStyle);\r\n\r\n if($this->getConnectingPen()->getVisible())\r\n {\r\n $tmpNextTask = round($this->nextTask->value[$valueIndex]);\r\n\r\n if(($tmpNextTask >= 0) && ($tmpNextTask < $this->getCount()))\r\n {\r\n $g->setPen($this->getConnectingPen());\r\n $g->getBrush()->setVisible(false);\r\n\r\n $xNext = $this->calcXPos($tmpNextTask);\r\n $halfWay = $x2 + (($xNext - $x2) / 2);\r\n $yNext = $this->calcYPos($tmpNextTask);\r\n $g->_line($x2, $y, $halfWay, $y, $this->getMiddleZ());\r\n $g->___lineTo($halfWay, $yNext, $this->getMiddleZ());\r\n $g->___lineTo($xNext, $yNext, $this->getMiddleZ());\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "086d1bb0c2c67db98b4378fb4a93ac17", "score": "0.53144246", "text": "public function getEndDateTime(): \\DateTime\n {\n return $this->endDateTime;\n }", "title": "" }, { "docid": "63146ae4a04a6cccf5b66e61b785ebc1", "score": "0.5312409", "text": "public function setEnd($var)\n {\n GPBUtil::checkInt64($var);\n $this->end = $var;\n }", "title": "" }, { "docid": "63146ae4a04a6cccf5b66e61b785ebc1", "score": "0.5312409", "text": "public function setEnd($var)\n {\n GPBUtil::checkInt64($var);\n $this->end = $var;\n }", "title": "" }, { "docid": "fe7ddba4e4ab9817eb0f54ef7f462c67", "score": "0.52830416", "text": "public function get_end_date()\n\t{\n\t\treturn $this->end_date;\n\t}", "title": "" }, { "docid": "e07aedac5832898276ee32df2d04482e", "score": "0.52810067", "text": "public function getEndDate() {\n return $this->endDate;\n }", "title": "" }, { "docid": "4c778a9309c2fc9b545dac596ca3acbf", "score": "0.52339345", "text": "public function setEndDate($date) {\r\n\t\t$this->_parameters['end_date'] = $date;\r\n\t\t\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "ab61abd1b24777cb744c385f48f1e4a3", "score": "0.52174526", "text": "public function getEndPeriod()\n\t\t{\n\t\t\tif(isset($this->_end_date)){\n\t\t\t\treturn $this->_end_date;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ab61abd1b24777cb744c385f48f1e4a3", "score": "0.52174526", "text": "public function getEndPeriod()\n\t\t{\n\t\t\tif(isset($this->_end_date)){\n\t\t\t\treturn $this->_end_date;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "bdcb6109f380d9b77785b3eaa9edd45b", "score": "0.52011716", "text": "public function getEndDateTime()\n {\n return $this->readOneof(5);\n }", "title": "" }, { "docid": "61625a79730c2c3de254db00e665586a", "score": "0.5196481", "text": "public function getEndDate();", "title": "" }, { "docid": "61625a79730c2c3de254db00e665586a", "score": "0.5196481", "text": "public function getEndDate();", "title": "" }, { "docid": "61625a79730c2c3de254db00e665586a", "score": "0.5196481", "text": "public function getEndDate();", "title": "" }, { "docid": "17ea9715f61c5d44ba3bdf286977d796", "score": "0.518738", "text": "public function getEventEndDate()\n {\n return $this->_dateEnd;\n }", "title": "" }, { "docid": "cef0930f68125cba38373783cf0c0657", "score": "0.5161082", "text": "function y_range_right($min, $max)\n\t{\n\t\treturn $this->set(self::Y_AXIS_RIGHT, array(\n\t\t\t'min' => (float)$min,\n\t\t\t'max' => (float)$max\n\t\t));\n\t}", "title": "" }, { "docid": "a169e1ff6926346e02eae568ff2cb4f6", "score": "0.5157078", "text": "public function setEndTime(\\DateTime $end = null){\n\t\t$this->endTime = $end;\n\t}", "title": "" }, { "docid": "d867ee706abd4a10a41c612ca338f9f1", "score": "0.51557297", "text": "public function withEnd(IntervalPointInterface $end);", "title": "" }, { "docid": "e450cc4d75638a379e8909557f2b6c78", "score": "0.51554316", "text": "public function getEndDate()\n {\n return $this->endDate;\n }", "title": "" }, { "docid": "e450cc4d75638a379e8909557f2b6c78", "score": "0.51554316", "text": "public function getEndDate()\n {\n return $this->endDate;\n }", "title": "" }, { "docid": "e450cc4d75638a379e8909557f2b6c78", "score": "0.51554316", "text": "public function getEndDate()\n {\n return $this->endDate;\n }", "title": "" }, { "docid": "93649848a0c0cc99aadfa9c9bb7c5465", "score": "0.5152038", "text": "public function setEndDate($end_date)\n {\n $this->end_date = $end_date;\n\n return $this;\n }", "title": "" }, { "docid": "7f9ce9cd9f6cdf1fb806f98c4d0aeb24", "score": "0.5147266", "text": "public function getEndDate()\n {\n return new AllopassDate($this->_xml->end_date);\n }", "title": "" }, { "docid": "e20b7711256f2f027c30f37eb8a11c05", "score": "0.51353", "text": "public function getFacetDateHardEnd($field_override){}", "title": "" }, { "docid": "ebaedf6f577d98a774ccb53a9b1215ef", "score": "0.51327085", "text": "public function setEndPeriod($end_date)\n\t\t{\n\t\t\tif($this->_isValidDate($end_date)){\n\t\t\t\t$this->_end_date = $end_date;\t\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ebaedf6f577d98a774ccb53a9b1215ef", "score": "0.51327085", "text": "public function setEndPeriod($end_date)\n\t\t{\n\t\t\tif($this->_isValidDate($end_date)){\n\t\t\t\t$this->_end_date = $end_date;\t\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "48c6f4543c3938321780530d240b5af3", "score": "0.51325595", "text": "public function getEnd_Date() {\n\n return Calendar::convert_DBDateTime_DBDate($this->end_date_time);\n }", "title": "" }, { "docid": "dbfc51ce4feaee7cccd1ceb9f38f12fe", "score": "0.51142913", "text": "public function getEndDate()\n {\n return clone $this->endDate;\n }", "title": "" }, { "docid": "a6116aa0492b95fac837072294bcaed8", "score": "0.51026917", "text": "public function setRangeEndDate(string $rangeEndDate): void\n {\n $this->rangeEndDate = $rangeEndDate;\n }", "title": "" }, { "docid": "75e8ac59d21dd8c67ac45b044f9243de", "score": "0.51011294", "text": "public function end($value) {\n return $this->setProperty('end', $value);\n }", "title": "" }, { "docid": "2dd3be2475c02b27f58cd3d5a5ae8703", "score": "0.5101088", "text": "public function setEndUpdatedAt(?string $endUpdatedAt): void\n {\n $this->endUpdatedAt = $endUpdatedAt;\n }", "title": "" }, { "docid": "f93dcc74cb7d59c9f92e9365839710db", "score": "0.50872993", "text": "public function setEnd($format, $end) { //input should be dd-mm-yyyy format\n $date = DateTime::createFromFormat($format, $end);\n $this->_end = $date;\n }", "title": "" }, { "docid": "0c294e32183ab00300234ea2d9406957", "score": "0.50825036", "text": "public function endTime($value) {\n return $this->setProperty('endTime', $value);\n }", "title": "" }, { "docid": "3807458f33c159f6dd614d0f6bff6bef", "score": "0.50551623", "text": "public function setEndDateTimeUnwrapped($var)\n {\n $this->writeWrapperValue(\"end_date_time\", $var);\n return $this;}", "title": "" }, { "docid": "3807458f33c159f6dd614d0f6bff6bef", "score": "0.50551623", "text": "public function setEndDateTimeUnwrapped($var)\n {\n $this->writeWrapperValue(\"end_date_time\", $var);\n return $this;}", "title": "" }, { "docid": "775df0206f7dddaf2db34a6eca99b1c9", "score": "0.50387764", "text": "public function it_only_accepts_int_as_end_date()\n {\n // negative integer\n $end_date = -1;\n $this->setEndDate($end_date);\n\n // zero integer\n $end_date = 0;\n $this->setEndDate($end_date);\n\n // positive integer\n $end_date = 1;\n $this->setEndDate($end_date);\n\n // boolean\n $end_date = true;\n $this->shouldThrow(new Exception\\InvalidArgumentException())->duringSetEndDate($end_date);\n\n // float\n $end_date = 1.1;\n $this->shouldThrow(new Exception\\InvalidArgumentException())->duringSetEndDate($end_date);\n\n // null\n $end_date = null;\n $this->shouldThrow(new Exception\\InvalidArgumentException())->duringSetEndDate($end_date);\n\n // array\n $end_date = array();\n $this->shouldThrow(new Exception\\InvalidArgumentException())->duringSetEndDate($end_date);\n }", "title": "" }, { "docid": "d9dcf439e4c9503e3ebb9c597094d2f7", "score": "0.5036515", "text": "public function set_end_date($end_date)\n\t{\n\t\tif (is_null($end_date)) {\n\t\t\tthrow new InvalidArgumentException(\"Project End Date Invalid!\");\n\t\t}\n\t\t$this->end_date = $end_date;\n\t}", "title": "" }, { "docid": "39d8fffd1a309a6bd90f4f0cef195a2f", "score": "0.503221", "text": "public function getEndDateTimeUnwrapped()\n {\n return $this->readWrapperValue(\"end_date_time\");\n }", "title": "" }, { "docid": "39d8fffd1a309a6bd90f4f0cef195a2f", "score": "0.503221", "text": "public function getEndDateTimeUnwrapped()\n {\n return $this->readWrapperValue(\"end_date_time\");\n }", "title": "" }, { "docid": "e82cb5f4c35d5f899998f4f2a01b9f4b", "score": "0.50233436", "text": "public function setEnd(array $end)\n {\n $this->end = $end;\n return $this;\n }", "title": "" }, { "docid": "883861d300858151c1cf5bdadcd1aaaa", "score": "0.5020208", "text": "public function values($start = -6, $end = 0)\n {\n $start = (int) $start;\n $end = (int) $end;\n\n // go N points in the past\n if ($start < 0) {\n $granularity = $this->granularity();\n if ($granularity == STATISTIC_GRANULARITY_DAY) {\n $nPrevious = strtotime($start.' days');\n $start = mktime(0, 0, 0, date('m', $nPrevious), date('d', $nPrevious), date('Y', $nPrevious));\n } elseif ($granularity == STATISTIC_GRANULARITY_WEEK) {\n $nPrevious = strtotime($start.' weeks');\n $start = mktime(0, 0, 0, date('m', $nPrevious), date('d', $nPrevious), date('Y', $nPrevious));\n } elseif ($granularity == STATISTIC_GRANULARITY_MONTH) {\n $nPrevious = strtotime($start.' months');\n $start = mktime(0, 0, 0, date('m', $nPrevious), 1, date('Y', $nPrevious));\n } elseif ($granularity == STATISTIC_GRANULARITY_YEAR) {\n $nPrevious = strtotime($start.' years');\n $start = mktime(0, 0, 0, 1, 1, date('Y', $nPrevious));\n }\n }\n\n // end should include the present value\n $includePresent = $end == 0 || $end - time() >= 0;\n if ($includePresent) {\n $end = time();\n }\n\n $values = $this->app['db']->select('day,val')->from('Statistics')->where([\n 'metric' => $this->key(),\n ['ts', $start, '>='],\n ['ts', $end, '<='], ])->all();\n\n // add present point\n if ($includePresent) {\n $values[] = [\n 'day' => date('Y-m-d'),\n 'val' => $this->computeValue(), ];\n }\n\n return $values;\n }", "title": "" }, { "docid": "8a6d2f7901270c087fed6b109708cee7", "score": "0.49836916", "text": "public function setEndDateTime($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\StringValue::class);\n $this->end_date_time = $var;\n\n return $this;\n }", "title": "" }, { "docid": "b5347e78e098982e22e35ae58224b6d2", "score": "0.49718592", "text": "function y_range($min, $max)\n\t{\n\t\treturn $this->set(self::Y_AXIS, array(\n\t\t\t'min' => (float)$min,\n\t\t\t'max' => (float)$max\n\t\t));\n\t}", "title": "" }, { "docid": "d6ac423569653cb0f1b6a20caaf5d475", "score": "0.49545062", "text": "public function setAvailabilityEnds($value)\n {\n $this->availabilityEnds = $value;\n }", "title": "" }, { "docid": "f5042937674b8402b78fd7f79b11ffca", "score": "0.494484", "text": "public function setValue($value)\n {\n $this->value = $value;\n\n /** @noinspection NotOptimalIfConditionsInspection */\n if (is_array($value) && array_key_exists('start', $value) && array_key_exists('end', $value)) {\n $start = (float) $value['start'];\n $end = (float) $value['end'];\n\n if ($start <= $end) {\n $this->startElement->setValue($start);\n $this->endElement->setValue($end);\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "fff79f4ef245aabbcffacb5bff2a4938", "score": "0.49432507", "text": "public function setEndTime($value)\n {\n return $this->set(self::end_time, $value);\n }", "title": "" }, { "docid": "5772117d3ebcf1cec7f3df74558ad70f", "score": "0.49415955", "text": "public function getEndDateTime()\n {\n return isset($this->end_date_time) ? $this->end_date_time : null;\n }", "title": "" }, { "docid": "7f5e23a6471f969503c9aa7a4870f32b", "score": "0.49402386", "text": "public function setEndDateTime($endDateTime)\n {\n if ($this->Obj !== null and $endDateTime !== null and $endDateTime !== false) {\n $this->Obj->setEndDateTime($endDateTime);\n }\n }", "title": "" }, { "docid": "e502c299d5b426f5d99d60903fe55a1f", "score": "0.49395376", "text": "public function setEventEndDate($dateEnd)\n {\n $this->_dateEnd = $dateEnd;\n }", "title": "" }, { "docid": "4d31cacccc6b962d871c6949ad96cd01", "score": "0.49324733", "text": "public function setEnd($_end) {\n\t\t$this->_end = $_end;\n\t}", "title": "" }, { "docid": "8e95d40f87542ca4c44ab6ce7b179525", "score": "0.49082315", "text": "public function getEndAt()\n {\n return $this->endAt;\n }", "title": "" }, { "docid": "43f5617dc795fc7da4b68141aca2d805", "score": "0.49062082", "text": "public function hasEndValue()\n {\n return $this->end_value !== null;\n }", "title": "" }, { "docid": "0bbb763194d3c28efa67beb9293e1b42", "score": "0.49061537", "text": "private function getChartProperties($variants, $startdate, $enddate, $selectedInterval, $impressions, $conversions, $maxCR) {\r\n $dateformat = 'd.m.Y';\r\n $axisformat = 'd';\r\n $axisadd = 'days';\r\n $axismult = 1;\r\n\r\n if ($selectedInterval && $selectedInterval != OPT_TREND_DAY) {\r\n $dateformat = 'd.m.Y H:i';\r\n $interval = 0;\r\n $m = date('i', strtotime($startdate));\r\n\r\n switch ($selectedInterval) {\r\n case OPT_TREND_5MINUTE:\r\n $axismult = 5;\r\n $axisadd = 'minutes';\r\n $axisformat = 'i';\r\n $interval = $m % 5;\r\n break;\r\n case OPT_TREND_MINUTE:\r\n $axismult = 1;\r\n $axisadd = 'minutes';\r\n $axisformat = 'i';\r\n break;\r\n case OPT_TREND_HOUR:\r\n $axisadd = 'hours';\r\n $axisformat = 'H';\r\n $interval = $m;\r\n break;\r\n }\r\n $start = new DateTime($startdate);\r\n $start->sub(new DateInterval('PT' . $interval . 'M'));\r\n $startdate = $start->format('Y-m-d H:i');\r\n\r\n $end = new DateTime($enddate);\r\n $end->sub(new DateInterval('PT' . $interval . 'M'));\r\n $enddate = $end->format('Y-m-d H:i');\r\n }\r\n \r\n $y_ceil = $this->isTimeGoal ? 60 : 100;\r\n\r\n $x_axis = '';\r\n for ($i = 0; $i < 30; $i++) {\r\n $x_axis .= $i > 0 ? ',' : '';\r\n $val = $i * $axismult;\r\n $x_axis .= date($axisformat, strtotime($startdate . \" +$val $axisadd\"));\r\n }\r\n\r\n $maxY = $maxCR > 0 ? ceil($maxCR) : $y_ceil;\r\n $yLegend = $this->lang->line('table_y_legend');\r\n\r\n if ($this->isTimeGoal) {\r\n if ($maxY <= 1) {\r\n $maxY *= 60;\r\n $yLegend = $this->lang->line('table_y_seconds_leyend');\r\n } else {\r\n $yLegend = $this->lang->line('table_y_minutes_leyend');\r\n }\r\n } else if ($maxY % 5 > 0) {\r\n $maxY += 5 - $maxY % 5;\r\n }\r\n if ($this->isPILiftGoal) {\r\n $yLegend = $this->lang->line('table_y_pi_legend');\r\n }\r\n\r\n $chartproperties = array(\r\n 'x_labels' => $x_axis,\r\n 'y_legend' => $yLegend,\r\n 'y_min' => 0,\r\n 'y_max' => $maxY,\r\n 'maximp' => max($impressions),\r\n 'impressions' => implode(\",\", $impressions),\r\n 'conversions' => array(),\r\n 'vnames' => array(),\r\n 'colors' => array(),\r\n );\r\n\r\n foreach ($conversions as $key => $value) {\r\n $val = $value;\r\n $chartproperties['conversions'][] = $val;\r\n }\r\n\r\n $count = 0;\r\n $colors = $this->config->item('COLORS');\r\n\r\n foreach ($variants as $variant) {\r\n $pagename = $variant->type == 'CONTROL' ? $this->lang->line('table_controlpagename') : $variant->name;\r\n $chartproperties['vnames'][] = $pagename;\r\n $chartproperties['colors'][] = $colors[($count) % sizeof($colors)];\r\n $count++;\r\n }\r\n $chartproperties['colors'][] = '#BCD4EE';\r\n\r\n return $chartproperties;\r\n }", "title": "" }, { "docid": "12fc07768262fc31c5098ffb7cfdd90a", "score": "0.49038592", "text": "public function setLastValue( $val ) {\n\n \t$this->lastValue = \t$val; \t \n \t\t\n\t}", "title": "" }, { "docid": "bd43bdb9f8448b71070d9103b3b937c5", "score": "0.4881891", "text": "public function setEnd($end)\n {\n $this->setInteger('end', $end);\n\n return $this;\n }", "title": "" }, { "docid": "f6f4d15c3209fd92494a2a0478f8a28c", "score": "0.4879776", "text": "public function getEndAt(): DateTimeImmutable\n {\n return $this->endAt;\n }", "title": "" }, { "docid": "c419a9542ff978aad977cba4dd4c9166", "score": "0.48766878", "text": "public function setEnd($end)\n\t{\n\t\t$this->end = $end;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "92daa16913c6b4f4369145af0b2dca62", "score": "0.48738655", "text": "public function getDateRangeAttribute()\n {\n $start = Carbon::parse($this->start_date)->toFormattedDateString();\n $end = Carbon::parse($this->end_date)->toFormattedDateString();\n\n if ($this->end_date == $this->start_date) {\n $dates = \"{$start}\";\n } elseif ($this->end_date === null) {\n $dates = \"{$start}\";\n } else {\n $dates = \"{$start} - {$end}\";\n }\n\n return $dates;\n }", "title": "" } ]
50bd51cfe20f43f5793d1511debb44a5
Returns properties of object as an array
[ { "docid": "05cf2c5e80cd2e1295df9a481a694d65", "score": "0.7532108", "text": "function toArray() {\n\t\treturn get_object_vars($this);\n\t}", "title": "" } ]
[ { "docid": "815924fdd7c47e00b4c7a3105bde965a", "score": "0.86150014", "text": "public function getPropertiesAsArray();", "title": "" }, { "docid": "815924fdd7c47e00b4c7a3105bde965a", "score": "0.86150014", "text": "public function getPropertiesAsArray();", "title": "" }, { "docid": "1d397ed974a23ba93e67b2e170b220e0", "score": "0.8212186", "text": "public function toArray()\n {\n $properties = get_object_vars($this);\n $data = array();\n foreach($properties as $key => $value) {\n\n $getter = 'get' . $key;\n if(method_exists($this, $getter)){\n $data[$key] = $this->$getter();\n }\n }\n\n return $data;\n }", "title": "" }, { "docid": "9d142b2e4e74d80b0ffd5f6143e6f769", "score": "0.7977769", "text": "public function getProperties(): array;", "title": "" }, { "docid": "9d142b2e4e74d80b0ffd5f6143e6f769", "score": "0.7977769", "text": "public function getProperties(): array;", "title": "" }, { "docid": "9d142b2e4e74d80b0ffd5f6143e6f769", "score": "0.7977769", "text": "public function getProperties(): array;", "title": "" }, { "docid": "15a8ddd25f895cea7942f787bc8ee12a", "score": "0.7954341", "text": "public function toArray() {\r\n\t\t$result = array();\r\n\t\t$reflectionClass = new ReflectionClass($this);\r\n\t\t$reflectionProperties = $reflectionClass->getProperties();\r\n\t\tforeach ($reflectionProperties as $reflectionProperty) {\r\n\t\t\t$propertyName = $reflectionProperty->getName();\r\n\t\t\t$result[$propertyName] = $this->$propertyName;\r\n\t\t\tif (is_object($result[$propertyName])) {\r\n\t\t\t\t$result[$propertyName] = $result[$propertyName]->toArray();\r\n\t\t\t} else if (is_array($result[$propertyName])) {\r\n\t\t\t\t$result[$propertyName] = self::arrayToArray($result[$propertyName]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "63da4aa3d134d49601f2f60e8998801c", "score": "0.7836774", "text": "protected function getProperties()\n {\n $data = array();\n\n foreach ($this->property_array as $key) {\n $data[ $key ] = $this->$key;\n }\n\n return $data;\n }", "title": "" }, { "docid": "58ea8ebc73ffac972c56cb3a13ebac3e", "score": "0.7826576", "text": "public function get_property_data(): array\n {\n $ret = [];\n foreach ($this->get_property_names() as $property) {\n $ret[$property] = $this->{$property};//this triggers the overloading and the hooks\n }\n return $ret;\n }", "title": "" }, { "docid": "6dd6eea91f18c5ff0833e5cd55d0b515", "score": "0.7810169", "text": "public function toArray()\n {\n $properties = [];\n\n $reflection = new \\ReflectionClass($this);\n $props = $reflection->getProperties();\n\n foreach ($props as $property) {\n $name = $property->getName();\n\n if (isset($this->$name)) {\n $properties[$name] = $this->$name;\n }\n\n }\n\n return $properties;\n }", "title": "" }, { "docid": "0eb5e1efc48c3af82c82827bf869d453", "score": "0.7777739", "text": "public function toArray(): array\n {\n return $this->properties;\n }", "title": "" }, { "docid": "f6b73ca98ffedc6a70cad7bd275797d7", "score": "0.776874", "text": "public function to_array()\n\t{\n\t\t$arr = array();\n\t\t$reflection = new ReflectionObject($this);\n\t\t$properties = $reflection->getProperties(ReflectionProperty::IS_PUBLIC);\n\t\tforeach ($properties as $obj) {\n\t\t\t$arr[$obj->name] = $this->{$obj->name};\t\n\t\t}\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "a1368e6fffaa0f1a824423cfafc19475", "score": "0.76918685", "text": "public function ToArray()\r\n {\r\n $result = array();\r\n foreach ($this->PropertyNames as $name)\r\n $result[$name] = $this->$name;\r\n return ($result);\r\n }", "title": "" }, { "docid": "bf3ca67623c86fa3fac5542f5a76fdb4", "score": "0.76474565", "text": "public function toArray() {\n\t\treturn get_object_vars( $this );\n\t}", "title": "" }, { "docid": "544f26d981285b86ef17d3627a6e7fc0", "score": "0.76399285", "text": "public function toArray()\n {\n $properties = get_object_vars($this);\n $result = [];\n foreach ($properties as $key => $value) {\n if (is_object($value)) {\n $result[$key] = $value->toArray();\n } elseif (is_array($value)) {\n foreach ($value as $v) {\n $result[$key][] = $v->toArray();\n }\n } elseif (!is_null($value)) {\n $result[$key] = $value;\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "d27d1cc8609aeeac299b370f267ec7e7", "score": "0.7624257", "text": "public function toArray() {\n return $this->properties;\n }", "title": "" }, { "docid": "845a2be3edc8b8622ed105f365de85b6", "score": "0.76154923", "text": "public function toArray() {\r\n $array = get_object_vars($this);\r\n return $array;\r\n }", "title": "" }, { "docid": "9e9e7e63693e3d46d6b1139a3c4a3ed3", "score": "0.7596797", "text": "public function toArray(): array\n {\n $array = array();\n\n // find getter methods\n $methods = array_filter(get_class_methods($this),\n function ($method)\n {\n return (strpos($method, 'get') === 0);\n }\n );\n\n // iterate over, and remove uninitialized member vars\n foreach($methods as $method) {\n\n // omit uninitialized values\n if (! is_null($this->$method()) && ! empty($this->$method())) {\n\n $key = lcfirst(substr($method, 3));\n\n // member var $key is initialized, add it to the array\n $propValue = $this->$method();\n\n // exclude objects from the array\n if (! is_object($propValue)) {\n $array[$key] = $propValue;\n }\n }\n }\n\n return $array;\n }", "title": "" }, { "docid": "ca53444ed07c6c1f5963fbc084d88d13", "score": "0.75607985", "text": "final public function toArray(): array {\r\n\r\n $data = [];\r\n\r\n foreach($this -> _properties as $property) {\r\n\r\n $value = $this -> getValueFromProperty($property);\r\n\r\n if('json' === $property -> type && true === is_string($value)) {\r\n $value = json_decode($value, true);\r\n }\r\n\r\n $data[$property -> name] = $value;\r\n }\r\n\r\n return $data;\r\n }", "title": "" }, { "docid": "5a22664703b42259fa35666359041f89", "score": "0.7550228", "text": "public function as_array()\n\t{\n\t\t$reflector = new ReflectionClass($this);\n\t\t$result = array();\n\t\t$props = $reflector->getProperties(ReflectionProperty::IS_PUBLIC);\n\t\tforeach ($props as $prop)\n\t\t{\n\t\t\t$name = $prop -> getName();\n\t\t\t$value = $prop -> getValue($this);\n\t\t\t$result[\"$name\"] = $value;\n\t\t}\n\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "115a1ad7117b3f35d56ab813d6316493", "score": "0.75420487", "text": "public function toArray()\r\n {\n return get_object_vars($this);\r\n }", "title": "" }, { "docid": "27d2c00d693c93446e761e7dcda58d85", "score": "0.7514851", "text": "public function toArray() {\n\t\treturn get_object_vars($this);\n\t}", "title": "" }, { "docid": "27d2c00d693c93446e761e7dcda58d85", "score": "0.7514851", "text": "public function toArray() {\n\t\treturn get_object_vars($this);\n\t}", "title": "" }, { "docid": "cd3a5d53190ff85dd35808a65ee637b9", "score": "0.7513519", "text": "public function toArray(): array\n {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "dd2536e8552e208fd1dc19f4208a18c0", "score": "0.74948496", "text": "public function toArray()\n {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "ee926815bb063e82ea03bca6819fef97", "score": "0.7492009", "text": "public function asArray(): array {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "f57d94de483942cd9e851f69c68052c0", "score": "0.74820805", "text": "public function toArray(): array\n {\n $array = [];\n $str = new Str();\n\n foreach (\\get_object_vars($this) as $property => $value) {\n $array[$str->snake($property)] = $value;\n }\n\n return $array;\n }", "title": "" }, { "docid": "f57d94de483942cd9e851f69c68052c0", "score": "0.74820805", "text": "public function toArray(): array\n {\n $array = [];\n $str = new Str();\n\n foreach (\\get_object_vars($this) as $property => $value) {\n $array[$str->snake($property)] = $value;\n }\n\n return $array;\n }", "title": "" }, { "docid": "a27858f2ba43b4d4bd79e3078b17c434", "score": "0.7477672", "text": "public function toArray():array {\n\n\t\treturn get_object_vars($this);\n\t}", "title": "" }, { "docid": "31300e22a0d878dff1569e0256a8fb36", "score": "0.7470401", "text": "public function toArray()\n {\n $propertiesArray = [];\n $publicProperties = (new \\ReflectionObject($this))->getProperties(\\ReflectionProperty::IS_PUBLIC);\n foreach ($publicProperties as $publicProperty) {\n $propertiesArray[$publicProperty->getName()] = $publicProperty->getValue($this);\n }\n\n return $propertiesArray;\n }", "title": "" }, { "docid": "64264fff8672f40f86e1d5f5a00f790d", "score": "0.74623", "text": "public function toArray()\n {\n // exposed properties\n $array = parent::toArray();\n // convert references to their ids\n foreach($this->References as $name => $class) {\n if (isset($this->$name)) {\n //$array[$name] = $this->$name->toArray();\n }\n }\n // include dynamic properties if Model is Dynamic\n if (!$this->strictOnlyKeys) {\n foreach($this->DynamicProps as $name => $value) {\n if (isset($this->$name)) {\n $array[$name] = $value;\n }\n }\n }\n \n return $array;\n }", "title": "" }, { "docid": "81d2b7c4c06c6a5e4aab53ac72389159", "score": "0.74553114", "text": "public function properties()\n\t{\n\t\treturn get_object_vars($this);\n\t}", "title": "" }, { "docid": "a469ca65b48612402f2bb858f8b223fe", "score": "0.7444441", "text": "public function toArray()\n {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "a469ca65b48612402f2bb858f8b223fe", "score": "0.7444441", "text": "public function toArray()\n {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "a469ca65b48612402f2bb858f8b223fe", "score": "0.7444441", "text": "public function toArray()\n {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "a469ca65b48612402f2bb858f8b223fe", "score": "0.7444441", "text": "public function toArray()\n {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "5d26d6c2d9c2d1142cd1bc2dba4fba25", "score": "0.73878783", "text": "public function asArray() {\n\t\t\treturn array_merge( $this->__properties(), $this->__dynamicProperties() );\n\t\t}", "title": "" }, { "docid": "e670af6d990bba05016f54735743ede2", "score": "0.7383597", "text": "public function toArray() \n {\n $properties = array();\n $class = get_class($this);\n\n foreach ($this->members as $propertyName => $value) {\n if ( $value instanceof \\Corelib\\Model\\BusinessObject\n || $value instanceof \\Corelib\\Model\\Collection ) {\n $properties[$propertyName] = $value->toArray();\n } else {\n $properties[$propertyName] = $value;\n } //if\n } //foreach\n\n foreach (get_class_methods($class) as $method) {\n switch($method) {\n case 'getDirtyFlags':\n case 'getDirtyFlag':\n case 'getMember':\n // ignore\n break;\n default:\n $firstThreeLetters = strtolower(substr($method, 0,3));\n $propertyName = lcfirst(substr($method,3));\n \n if ($firstThreeLetters === 'get') {\n $value = $this->{$method}();\n if ( $value instanceof \\Corelib\\Model\\BusinessObject\n || $value instanceof \\Corelib\\Model\\Collection ) {\n $properties[$propertyName] = $value->toArray();\n } else {\n $properties[$propertyName] = $value;\n } //if\n } //if\n break;\n } //swtich\n } //foreach\n \n return array(\n '__className__' => $class,\n 'properties' => &$properties\n );\n }", "title": "" }, { "docid": "c19daf3f421ca3eebf9f6c47c91259f4", "score": "0.7365103", "text": "public function toArray()\n {\n $return = get_object_public_vars($this);\n\n return $return;\n }", "title": "" }, { "docid": "41dd79df9e18283617f707dfc1ec4a34", "score": "0.7348389", "text": "public function getProperties(): array\n {\n return $this->_properties->getProperties();\n }", "title": "" }, { "docid": "41879d4e0d555b0e8bd01a34e7333778", "score": "0.73457813", "text": "public function getProperties()\n {\n $names = array_keys($this->getValue('properties'));\n $result = [];\n foreach ($names as $name) {\n $result[$name] = $this->get($name);\n }\n\n return $result;\n }", "title": "" }, { "docid": "d0393496296fdb9782b1f39aab0e17ef", "score": "0.7343919", "text": "public function hydrateToArray()\n {\n return $this->properties;\n }", "title": "" }, { "docid": "4348b4ce418a62960d56f10858f4ae44", "score": "0.73262334", "text": "public function toArray()\n {\n $array = array();\n $data = $this->properties;\n\n /** @var self $value */\n foreach ($data as $key => $value) {\n if ($value instanceof self) {\n $array[$key] = $value->toArray();\n } else {\n $array[$key] = $value;\n }\n }\n return $array;\n }", "title": "" }, { "docid": "da2dc38ca9ddff4326940432c6735e6a", "score": "0.72989535", "text": "public function getProperties(): array\n {\n return $this->properties;\n }", "title": "" }, { "docid": "80e6e66677b0b16c79d752e4da53df54", "score": "0.7293464", "text": "public function toArray()\n {\n return (array)get_object_vars($this->associatedObject);\n }", "title": "" }, { "docid": "c3715b7d0f915e60531946fec316a2a3", "score": "0.722567", "text": "public function toArray()\n\t{\n\t\t$defaults = $this->reflectionClass->getDefaultProperties();\n\t\t$return = array();\n\t\t\n\t\tforeach($defaults as $var => $val)\n\t\t{\n\t\t\tif($this->$var instanceof THINKER_Object)\n\t\t\t{\n\t\t\t\t$return[$var] = $this->$var->toArray();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$return[$var] = $this->$var;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "44e358d58610fc451c6b11261e90c17a", "score": "0.72183657", "text": "public static function get_properties_data(): array\n {\n return self::get_columns_data() + self::get_class_properties_data();\n }", "title": "" }, { "docid": "f38a20383594f7ccb86e6fd9c049c251", "score": "0.7199963", "text": "public function __properties() {\n\t\t\t// Fill out the properties\n\t\t\t$this->identifier();\n\t\t\t// Fetch the object variables\n\t\t\t$properties = get_object_vars( $this );\n\t\t\t// Remove the cache and object context\n\t\t\tunset( $properties['_hash'], $properties['_identifier'] );\n\t\t\t// Return an array with object properties\n\t\t\treturn $properties;\n\t\t}", "title": "" }, { "docid": "8247b7f83cd5c3528aaf87baedf7f887", "score": "0.7185557", "text": "public function toArray()\n {\n $arr = array();\n $properties = $this->attributes;\n foreach ($properties as $key => $value) {\n if ($value instanceof ArrayableInterface) {\n $arr[$key] = $value->toArray();\n } else {\n $arr[$key] = $this->$key;\n }\n }\n\n return $arr;\n }", "title": "" }, { "docid": "1723382a083b0bc4219ac006cc974ec2", "score": "0.7159765", "text": "public function get() : array\n\t{\n\t\treturn $this->properties;\n\t}", "title": "" }, { "docid": "b392f9e4be3e0aa3b76d467d73de0b6e", "score": "0.7147617", "text": "public function toArray(){\n $var = get_object_vars($this);\n foreach($var as &$value){\n if(is_object($value) && method_exists($value,'getJsonData')){\n $value = $value->getJsonData();\n }\n }\n return $var;\n }", "title": "" }, { "docid": "7f8d41185e3a289e309c3e978f96afee", "score": "0.7129922", "text": "public function toArray() {\n $movie_x = [];\n $properties = array_keys( get_class_vars( static::class));\n foreach( $properties as $property){\n $movie_x[$property] = $this->$property;\n }\n return $movie_x;\n }", "title": "" }, { "docid": "eb2a88d2767a1ad601ab1a961e9d5f98", "score": "0.708486", "text": "public function toArray() {\n\t\t\n\t\t$result = array();\n\t\t$getPrefix = 'get';\n\n\t\tforeach ( get_object_vars( $this ) as $key => $noUse ){\n\t\t\t\n\t\t\t$getter = $getPrefix . Inflector::classify( $key );\n\t\t\tif( method_exists( $this, $getter ) ) {\n\t\t\t\t\n\t\t\t\t$value = $this->{$getter}();\n\t\t\t\tif( $value instanceof Entities ) {\n\t\t\t\t\t\n\t\t\t\t\tif( method_exists( $value, \"toArray\" ) ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t$value = $value->toArray();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$result[$key] = $value;\n\t\t\t}\n\t\t}\n\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "9e6d30d16af190b696301e3a44ea8617", "score": "0.7075202", "text": "public function toArray()\n {\n return [\n 'myPublicProperty' => $this->myPublicProperty,\n 'myProtectedProperty' => $this->myProtectedProperty,\n 'myPrivateProperty' => $this->myPrivateProperty,\n ];\n }", "title": "" }, { "docid": "da36f33c20d7a1c9f7401760b536f915", "score": "0.7068212", "text": "public function properties()\r\n {\r\n return array();\r\n }", "title": "" }, { "docid": "bb878f86c556e93f61f3ecaaeb9aae3e", "score": "0.7066418", "text": "public function propertiesArray() {\n\n\t\t$array = [];\n\n\t\tforeach ($this->properties as $css_property => $element_setting) {\n\n\t\t\t// prefix user defined options\n\t\t\t$element_setting_name = $this->element_obj->prefix_option($element_setting);\n\t\t\t\n\t\t\t$array[$css_property] = $element_setting_name; \n\t\t}\n\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "f7cc7a43d8fa7fe03ec9b11a3ec93876", "score": "0.7054466", "text": "public function toArray()\n\t\t\t{\n\n\t\t\t\t$vars = get_class_vars($this);\n\t\t\t\t$return = Array();\n\t\t\t\tforeach ($vars as $var_name => $var_value)\n\t\t\t\t{\n\t\t\t\t\tif ($this->$var_name instanceof BaseObject)\n\t\t\t\t\t{\n\t\t\t\t\t\t$return[$var_name] = $this->$var_name->toArray();\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$return[$var_name] = $this->$var_value;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn $return;\n\n\t\t\t}", "title": "" }, { "docid": "0bf6aaafb13a678f57c3f0cd9f3ab62c", "score": "0.70413005", "text": "function toArray(Album $album){\n return get_object_vars($album);\n}", "title": "" }, { "docid": "8f4196fd61647b22bad278ce685b5a07", "score": "0.70412517", "text": "public function get_all_properties()\n {\n $props = get_object_vars($this);\n foreach ($props as $key => $value)\n {\n $new_key = substr($key, 1);\n $properties[$new_key] = $value;\n }\n return $properties;\n }", "title": "" }, { "docid": "99f2f2262646f8c015a407489225a5e8", "score": "0.7034198", "text": "protected function getProperties()\n {\n $fields_array = [];\n foreach ($this->fields as $bd_field => $class_field) {\n $fields_array[$bd_field] = $this->$class_field;\n }\n return $fields_array;\n }", "title": "" }, { "docid": "99e6498b77581c3b6d04223e06aa0d14", "score": "0.7010304", "text": "public static function toArray($object)\n {\n $documentReflection = new \\ReflectionClass(get_class($object));\n $documentProperties = $documentReflection->getProperties(\\ReflectionProperty::IS_PROTECTED|\\ReflectionProperty::IS_PRIVATE);\n\n $results = array();\n foreach ($documentProperties as $prop) {\n $name = $prop->getName();\n $method = 'get' . ucfirst($name);\n $value = $object->$method();\n\n if ($value instanceof ArrayCollection) {\n $nameResults = array();\n foreach ($value as $innerValue) {\n if (is_object($innerValue) && method_exists($innerValue, 'toArray')) {\n $nameResults[] = $innerValue->toArray();\n }\n }\n $results[$name] = $nameResults;\n } elseif ((is_object($value) && method_exists($value, 'toArray'))) {\n $results[$name] = $value->toArray($value);\n } else {\n $results[$name] = $value;\n }\n }\n\n return $results;\n }", "title": "" }, { "docid": "783f3deb462aa6e0bda96fd5b9929df2", "score": "0.7000693", "text": "public function toArray()\n {\n $arr = array();\n foreach ($this as $key => $value) {\n $method = 'get' . $key;\n if (method_exists($this, $method)) {\n $arr[$key] = $this->$method();\n }\n }\n\n return $arr;\n }", "title": "" }, { "docid": "636d6e58d284e4f161bfa9e62d271dff", "score": "0.69794756", "text": "public function attributesToArray()\n {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.6973143", "text": "public function getProperties();", "title": "" }, { "docid": "48ea22af6265327cd5ff55ed4ddcc544", "score": "0.697144", "text": "public function toArray()\n {\n $componentArray = get_object_vars($this);\n\n return $componentArray;\n }", "title": "" }, { "docid": "e5394e1dde450c335cd0db199b76d46e", "score": "0.6969855", "text": "public function getPropertyInformation(): array\n {\n $properties = [\n 'normal' => [],\n 'static' => [],\n ];\n\n $filter = ReflectionProperty::IS_STATIC | ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED;\n\n foreach ($this->subject_reflection->getProperties($filter) as $property) {\n $properties[$property->isStatic() ? 'static' : 'normal'][] = $property->getName();\n }\n\n return $properties;\n }", "title": "" }, { "docid": "511fc709079d2dcb5ba85e6b5287b734", "score": "0.696429", "text": "protected function properties()\n {\n return [\n 'assigned_object' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::object_browser(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__MAINTENANCE_LINKED_OBJECT_LIST',\n C__PROPERTY__INFO__DESCRIPTION => 'Assigned objects'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_contract_assignment_list__isys_obj__id'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CATS__CONTRACT_ALLOCATION__ASSIGNED_OBJECT'\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => true,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__MULTIEDIT => false,\n C__PROPERTY__PROVIDES__VALIDATION => false,\n C__PROPERTY__PROVIDES__IMPORT => true,\n C__PROPERTY__PROVIDES__EXPORT => true\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'object'\n ]\n ]\n ]\n )\n ];\n }", "title": "" }, { "docid": "72b1ce8456f4e7b910556111e62b84bf", "score": "0.69642824", "text": "public function toArray(): array\n {\n return $this->parseArray($this->getAllPropertiesWithValues());\n }", "title": "" }, { "docid": "be25faeea77f45da153fc50ef3461039", "score": "0.695097", "text": "function toArray() {\n \t\treturn get_class_vars($this);\n \t}", "title": "" }, { "docid": "ed659516263249cbfa97b60201b0fd00", "score": "0.6950625", "text": "public function toArray() : array {\n $arr = array();\n\n foreach ($this->dao()->getProprietes() as $prop) {\n $propkey = $prop[\"key\"];\n \n $value = $this->$propkey;\n\n if ($prop[\"type\"] == \"boolean\")\n $value = $value ? 1 : 0;\n\n $arr[$propkey] = $value;\n }\n\n return $arr;\n }", "title": "" }, { "docid": "ddad86c32f7cd490585d5de787e9e609", "score": "0.6938503", "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": "b3f08f5bc3986376bde8c90aa9f830a8", "score": "0.69295835", "text": "public function toArray(): array\n {\n $properties = $this->properties;\n\n foreach ($properties as $name => $value) {\n if ($value instanceof Entity) {\n $properties[$name] = $value->toArray();\n }\n }\n\n return $properties;\n }", "title": "" }, { "docid": "ba9c3101ebc8bba44a9f15957bcfeb2d", "score": "0.69145304", "text": "public function getProperty() {\n\t \treturn get_object_vars($this);\n\t }", "title": "" }, { "docid": "4bedc2f992f032ae8232354219021f33", "score": "0.68673486", "text": "public function getFields() : array\n {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "435f562c13ec0d86588814d28ce5e0ba", "score": "0.685669", "text": "public function toArray(): array\n\t{\n\t\t$event = (clone $this);\n\t\t$propertiesToSave = $event->__sleep();\n\n\t\t// build the array of restorable properties\n\t\t$result = array();\n\t\tforeach ($propertiesToSave as $propertyName)\n\t\t{\n\t\t\t$result[ $propertyName ] = $event->{$propertyName};\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "d8c1a92c4253a0e221455e982cb56d7e", "score": "0.6855868", "text": "public function __dynamicProperties() {\n\t\t\t$properties = array();\n\t\t\t// Fetch the dynamic properties\n\t\t\t$class = self::className();\n\t\t\tforeach( $class::$_dynamicProperties as $key ) {\n\t\t\t\t$properties[$key] = $this->__get($key);\n\t\t\t}\n\t\t\t// Return an array with object properties\n\t\t\treturn $properties;\n\t\t}", "title": "" }, { "docid": "bc3300ffb52825f363fed1b49d0c137b", "score": "0.68507206", "text": "public function toArrayAll()\n {\n $return = get_object_vars($this);\n\n return $return;\n }", "title": "" }, { "docid": "e07f31ea5c66bd18a39e39606ec45f20", "score": "0.68257517", "text": "public function getArrayCopy()\n {\n $array = array();\n\n foreach (get_object_vars($this) as $key => $value) {\n if (property_exists($this, $key)) {\n $array[$key] = $this->$key;\n }\n }\n\n return $array;\n }", "title": "" }, { "docid": "e0c0fdce22b0fff8c6cffc5783a66818", "score": "0.68188167", "text": "function Info()\n\t{\n\t\t$arrReturn = Array();\n\t\tforeach ($this->_arrProperty AS $strObject=>$objObject)\n\t\t{\n\t\t\t$arrReturn[$strObject] = $objObject->Info();\n\t\t}\n\t\treturn $arrReturn;\n\t}", "title": "" }, { "docid": "a96548de180a8f8b34c9797fcd68b878", "score": "0.6805656", "text": "public function toArray($cls) {\n return get_object_vars($cls);\n }", "title": "" }, { "docid": "26020cbc4cdd1e35a95fa1e7c870c6b9", "score": "0.6794769", "text": "public function toArray(): array\n {\n $returnArray = [];\n foreach($this as $key => $object) {\n if($object === '' || str_contains($key, 'className')) {\n continue;\n }\n if(property_exists($object, 'className')) {\n unset($object->className);\n }\n if(count((array)$object) <= 1) {\n $returnArray[$key] = array_values((array)$object)[0];\n } else {\n $returnArray[$key] = (array)$object;\n }\n }\n return $returnArray;\n }", "title": "" }, { "docid": "135f7a37d0cacd3c96a4372778f2815b", "score": "0.67913175", "text": "public function toArray()\n {\n $out = array();\n foreach ((array) $this->_data as $k => $v) {\n $out[$k] = $this->__get($k); // force getters\n }\n return $out;\n }", "title": "" }, { "docid": "1f6c702078ff3fe90fbc1049d5626278", "score": "0.6789358", "text": "public function __toArray() {\n $objectVariablesArray = get_object_vars($this);\n $IndividualAcademicUpdateDTOArray = [];\n\n // adds \"_\" to each capital letter for each property\n foreach ($objectVariablesArray as $key => $value) {\n $property = strtolower(preg_replace(SynapseConstant::REGEX_STRING_FIND_UPPERCASE, SynapseConstant::REGEX_UNDERSCORE_VARIABLE, $key));\n $IndividualAcademicUpdateDTOArray[$property] = $value;\n }\n return $IndividualAcademicUpdateDTOArray;\n }", "title": "" }, { "docid": "e58abe71586a74508aebdca68a09797c", "score": "0.67850786", "text": "public function ObjectArray()\r\n\t{\r\n\t\treturn $this->object['class'][$this->object['object']];\r\n\t}", "title": "" }, { "docid": "41e79db84f09ba94df23e78ce15bdb6a", "score": "0.67847234", "text": "protected function getProperties(): array\n {\n return [\n 'class' => $this->class,\n 'message' => $this->message,\n 'code' => $this->code,\n 'file' => $this->file,\n 'line' => $this->line,\n 'trace' => $this->getTrace(),\n 'traceAsString' => $this->getTraceAsString(),\n 'previous' => $this->getPrevious(),\n ];\n }", "title": "" }, { "docid": "895dc32e732b95260663dd60571944b6", "score": "0.67742527", "text": "function objectToArray($data){\r\n if(!is_object($data) && !is_array($data)) return $data;\r\n\r\n if(is_object($data)) $data = get_object_vars($data);\r\n\r\n return array_map('objectToArray', $data);\r\n}", "title": "" }, { "docid": "946225519af400cdafaa86eec4c8654f", "score": "0.6767613", "text": "public function properties()\n {\n return [];\n }", "title": "" }, { "docid": "a7a208674bf0241017a81f4dce14118a", "score": "0.676432", "text": "public function getProperty() {\n\t\treturn get_object_vars($this);\n\t}", "title": "" }, { "docid": "d4c38a490e85bbabdc89e57ac16292e2", "score": "0.67351156", "text": "public function properties()\n {\n return array_keys($this->properties);\n }", "title": "" }, { "docid": "5b1de9bd849e1e727493a56f81c129d2", "score": "0.67315155", "text": "public function populatetoArray()\n {\n $this::populate();\n $propertyArr = get_object_vars($this);\n $data = array();\n\n foreach ($propertyArr as $property => $value) {\n if (is_string($property) && Request::get($property)) {\n// $this->$property = Request::get($property);\n $data[$property] = $value;\n }\n }\n\n return empty($data)? null: $data;\n }", "title": "" }, { "docid": "03beedc6ec4bb1614893b8fa90dedeb9", "score": "0.6731476", "text": "public function toArray()\n {\n $arr = get_object_vars($this);\n foreach ($arr as $key => $val){\n if ($val instanceof OneGoPersistentState) {\n $arr[$key] = $val->toArray();\n }\n }\n return $arr;\n }", "title": "" }, { "docid": "4c635d032ae1d1ce11a9907cc573341a", "score": "0.67308307", "text": "private function _objectToArray($object) {\r\n\t\treturn (is_object($object)) ? get_object_vars($object) : $object;\r\n\t}", "title": "" }, { "docid": "f4016fd1cca1ceb176e17f8ce87d07bd", "score": "0.67239034", "text": "public function getProperties(): array\n {\n $properties = [];\n $fields = (new ReflectionClass(static::class))->getProperties(ReflectionProperty::IS_PUBLIC);\n foreach ($fields as $field) {\n $properties[$field->getName()] = $field->getValue($this);\n }\n\n return $properties;\n }", "title": "" }, { "docid": "194007670ddb3ce7d57a8caa6e79eab6", "score": "0.6723664", "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": "" } ]
ec2457e403910f5421f5a0643da01183
getViewMode // Get the page title.
[ { "docid": "c69d9bfc81e7609a3a1f828c5f29d59b", "score": "0.7707876", "text": "public function getPageTitle () {\n\n return $this->page_title;\n\n }", "title": "" } ]
[ { "docid": "2a8d48816b51a76999060107b679289d", "score": "0.76851696", "text": "public function getPageTitle();", "title": "" }, { "docid": "2a8d48816b51a76999060107b679289d", "score": "0.76851696", "text": "public function getPageTitle();", "title": "" }, { "docid": "0f1dbb0dd501c2b5983eaedc1340e108", "score": "0.7658348", "text": "public function getPageTitle(){\n return $this->pageTitle;\n }", "title": "" }, { "docid": "911002a04a46d29ddd1f0c557b982a20", "score": "0.7558997", "text": "public function getPageTitle() {\n\t}", "title": "" }, { "docid": "d4104b8807230e5b95e8b3632739b3e8", "score": "0.7499575", "text": "public function getPageTitle()\n {\n return Basic::$page['title'];\n }", "title": "" }, { "docid": "30a840485d643e3255dac081d0054550", "score": "0.7397825", "text": "public function getPageTitle() {\n return $this->pageTitle;\n }", "title": "" }, { "docid": "86902d80e6ca26f667df0e3edb361082", "score": "0.7375346", "text": "function getPageTitle() {\n\t\t$this->processFrontpageTag();\n\t\t\n\t\treturn $this->pagedata['title'];\n\t}", "title": "" }, { "docid": "c997680a77c9f6059271ff2064266fc1", "score": "0.73274124", "text": "public function getPageTitle() {\n\t\t\treturn $this->pageTitle;\n\t\t}", "title": "" }, { "docid": "49e29ed3748ab0c1c36bbb61463909e3", "score": "0.7314219", "text": "public function get_title();", "title": "" }, { "docid": "f3476d2c84df4a61baf2b2167d0f1860", "score": "0.7228038", "text": "public function gettitle();", "title": "" }, { "docid": "b5d454a84e8b5ae2d764f85dd15bf840", "score": "0.7193218", "text": "function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "28385d118f1fbd23876caebae9274548", "score": "0.7191582", "text": "public function getTitle()\n {\n // return $this->data->{'status'}==\"PUBLISHED\"?'Pending':'Publish';\n return 'VIEW';\n }", "title": "" }, { "docid": "3a2649e12b021bec42acf75b0d4afd95", "score": "0.71823853", "text": "function _get_title() {\n\t\treturn $this->_title;\n\t}", "title": "" }, { "docid": "908339a579bea702267d936f4fb130de", "score": "0.7176537", "text": "function getTitle(){\r\n\t\treturn $this->title;\r\n\t}", "title": "" }, { "docid": "28b174ec0958d53507deb94e32267b78", "score": "0.7165228", "text": "function get_title() {\n\t\t\treturn $this->title;\n\t\t}", "title": "" }, { "docid": "85c3d63ef32a3f3c8740c1e3e09f3920", "score": "0.7154219", "text": "function get_title() { \n\t\treturn $this->title; \n\t}", "title": "" }, { "docid": "4c1b427a1f6b0034f30fd395f5637709", "score": "0.7149636", "text": "public function getMetaTitle();", "title": "" }, { "docid": "4c1b427a1f6b0034f30fd395f5637709", "score": "0.7149636", "text": "public function getMetaTitle();", "title": "" }, { "docid": "5f340b175f77d43bba6a11691c050466", "score": "0.7142947", "text": "function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "327467a2a7daed873100e9791e063705", "score": "0.71269476", "text": "public function getPageTitle()\n {\n \treturn $this->_page->getBlockTitle();\n }", "title": "" }, { "docid": "38c885e268164c5c4390659073ddcd5a", "score": "0.71096903", "text": "public function getTitle()\n {\n \treturn $this->title;\n }", "title": "" }, { "docid": "b12aa87d5c4ff6e3123600a187e9bc9c", "score": "0.7107604", "text": "protected function get_title()\r\n {\r\n return $this->title;\r\n }", "title": "" }, { "docid": "fd0fcd3b0003745eee1f1e04613782dc", "score": "0.70800245", "text": "protected abstract function get_title();", "title": "" }, { "docid": "29cfe0e78c454d8cdb82cfb1a9905ac8", "score": "0.7062211", "text": "public function getTitle()\n\t{\n\t return $this->title;\n\t}", "title": "" }, { "docid": "3624341384e776af413f5590e372610e", "score": "0.7055982", "text": "public function getTitle()\n {\n return $this->getPageName();\n }", "title": "" }, { "docid": "d67566c9898ac3eb4a1eb27c08902d94", "score": "0.7048019", "text": "public function pageTitle()\n\t{\n\t\tif ( $this->page_title )\n\t\t{\n\t\t\treturn $this->page_title;\n\t\t}\n\t\t\n\t\treturn $this->database()->pageTitle();\n\t}", "title": "" }, { "docid": "21d5d6ec335d052fce9e94da044993a7", "score": "0.7038523", "text": "public function getTitle() {\n\t\treturn $this->_title;\n\t}", "title": "" }, { "docid": "21d5d6ec335d052fce9e94da044993a7", "score": "0.7038523", "text": "public function getTitle() {\n\t\treturn $this->_title;\n\t}", "title": "" }, { "docid": "7740b4bb3883cd1b3568a8d7d7c35a0c", "score": "0.7024249", "text": "public function getTitle() { return $this->_title; }", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "6693bd8ba823a25ab49783505550abeb", "score": "0.7023594", "text": "public function getTitle();", "title": "" }, { "docid": "4c66afe24bddb266c4555f02d25ba49d", "score": "0.7014815", "text": "abstract public function get_title();", "title": "" }, { "docid": "8d70f4a7d1d26b6f0e72a6b3e878ff4d", "score": "0.70097286", "text": "function getShowTitle() {\n\t\treturn $this->getData('showTitle');\n\t}", "title": "" }, { "docid": "dee33b315d07fb3c99ca8c592631ff8f", "score": "0.7003375", "text": "function getTitle() {\n\t\treturn $this->data['title'];\n\t}", "title": "" }, { "docid": "615ccdbd77eb175627090d9a5cf9f99d", "score": "0.6999951", "text": "public function getTitle(){\n return $this->_Title;\n }", "title": "" }, { "docid": "615ccdbd77eb175627090d9a5cf9f99d", "score": "0.6999951", "text": "public function getTitle(){\n return $this->_Title;\n }", "title": "" }, { "docid": "d3b85b7697d6d410321761b6bd7f50ab", "score": "0.6998505", "text": "public function getCurrentTitle();", "title": "" }, { "docid": "31e8f996a7faf51a85d435c55149cbcf", "score": "0.6991651", "text": "public function getTitle()\n {\n return $this->_title;\n }", "title": "" }, { "docid": "31e8f996a7faf51a85d435c55149cbcf", "score": "0.6991651", "text": "public function getTitle()\n {\n return $this->_title;\n }", "title": "" }, { "docid": "31e8f996a7faf51a85d435c55149cbcf", "score": "0.6991651", "text": "public function getTitle()\n {\n return $this->_title;\n }", "title": "" }, { "docid": "31e8f996a7faf51a85d435c55149cbcf", "score": "0.6991651", "text": "public function getTitle()\n {\n return $this->_title;\n }", "title": "" }, { "docid": "c4a2afdf91d2967009d764d552abf289", "score": "0.6989756", "text": "public function getTitle(){\n return $this->TITLE;\n }", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "55cb1b321767190dd5d9d22cc6f6b678", "score": "0.6986306", "text": "public function getTitle() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "01f4e79ed792901c9f8935f750a631db", "score": "0.6979927", "text": "public function getTitle() {\n return $this->_title;\n }", "title": "" }, { "docid": "8c0260d7f8039cd285abd5c7d9bb5a9d", "score": "0.6979425", "text": "public function get_title() {\n }", "title": "" }, { "docid": "4e4f4f296a6c6103be556536682e3157", "score": "0.6978105", "text": "public function getTitle()\n {\n return $this->title;\n }", "title": "" }, { "docid": "fc45c019327c80050ef95460e8e80d24", "score": "0.697618", "text": "public function getTitle()\r\n {\r\n return $this->title;\r\n }", "title": "" }, { "docid": "fc45c019327c80050ef95460e8e80d24", "score": "0.697618", "text": "public function getTitle()\r\n {\r\n return $this->title;\r\n }", "title": "" }, { "docid": "f3031fa3424540739b4df087d36a731d", "score": "0.69680315", "text": "public function getTitle()\n {\n return $this->getAdapter()->getTitle();\n }", "title": "" }, { "docid": "7fc4791d3f83e28419da716fff480b45", "score": "0.6966488", "text": "public function PageTitle() {\n\t\treturn $this->Title . ' - '. SiteConfig::current_site_config()->Title;\n\t}", "title": "" }, { "docid": "10cdf8b6abb15b6659ffb7d1584171fe", "score": "0.69552106", "text": "function getTitle(){\n\n\t\tglobal $pageTitle;\n\n\t\tif (isset($pageTitle)) {\n\t\t\techo $pageTitle;\n\t\t}else{\n\t\t\techo 'Deafult';\n\t\t}\n\t}", "title": "" }, { "docid": "72334ca1665761cf38a173afd49bf29d", "score": "0.695164", "text": "public function getTitle () {\n return $this->title;\n }", "title": "" }, { "docid": "ffc0c84229accd2288933df1017e35a4", "score": "0.69502175", "text": "public function getPageTitle() {\n return $this->modx->lexicon('simpleab.home');\n }", "title": "" }, { "docid": "4fb6c3313dba0b185348274d188cfe29", "score": "0.69479346", "text": "public function getTitle() { \n return $this->title; \n }", "title": "" }, { "docid": "70de4e562ec0d38bd402dc83616af070", "score": "0.6947264", "text": "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "70de4e562ec0d38bd402dc83616af070", "score": "0.6947264", "text": "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "70de4e562ec0d38bd402dc83616af070", "score": "0.6947264", "text": "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "70de4e562ec0d38bd402dc83616af070", "score": "0.6947264", "text": "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "895f29e019956299bf11714e3a15aa0a", "score": "0.6945699", "text": "public function get_title() {\n\t\treturn $this->title;\n\t}", "title": "" }, { "docid": "fa7f9bd14c3dfa7ad3e94baba81d6322", "score": "0.6940384", "text": "function GetPageTitle(){\n\t\t//Get Page Title\n\t\t$elementList = $this->dom->getElementsByTagName('title');\n\t\treturn $elementList->item(0)->textContent;\n\t}", "title": "" }, { "docid": "c6f1b819625dc91aee46db6162e8e25d", "score": "0.6937061", "text": "public function getTitle() {\r\n return $this->title;\r\n }", "title": "" }, { "docid": "f2eacdcddf7cc7d714900eae761a498e", "score": "0.693622", "text": "public function getTitle() {\n\t\treturn $this->_data['title'];\n\t}", "title": "" }, { "docid": "0b976edc1e2f6f4083d04dabcb6fcb10", "score": "0.69193214", "text": "public function getTitle()\n {\n return $this->title;\n }", "title": "" }, { "docid": "71e07f71a171fa5776afc53e7de5f0fc", "score": "0.69168663", "text": "function getTitle() {\n\t\tglobal $con;\n\t\t$getUser = $con->prepare(\"SELECT * FROM settings\");\n\t\t$getUser->execute(array());\n\t\t$info = $getUser->fetch();\n\t\t\n\n\t\tglobal $pageTitle;\n\n\t\tif (isset($pageTitle)) {\n\n\t\t\techo $info['name'] . ' | ' . $pageTitle;\n\n\t\t} else {\n\n\t\t\techo $info['name'] ;\n\n\t\t}\n\t}", "title": "" }, { "docid": "2df958d38581c7ce0adb8a7ebe2a2d9c", "score": "0.69159424", "text": "public function get_title() {\n return $this->title;\n }", "title": "" }, { "docid": "2df958d38581c7ce0adb8a7ebe2a2d9c", "score": "0.69159424", "text": "public function get_title() {\n return $this->title;\n }", "title": "" }, { "docid": "1cfbe857cd322b15e6ccae69f79430d5", "score": "0.6914735", "text": "public function getTitle()\n {\n return $this->title;\n }", "title": "" }, { "docid": "1cfbe857cd322b15e6ccae69f79430d5", "score": "0.6914735", "text": "public function getTitle()\n {\n return $this->title;\n }", "title": "" }, { "docid": "1cfbe857cd322b15e6ccae69f79430d5", "score": "0.6914735", "text": "public function getTitle()\n {\n return $this->title;\n }", "title": "" }, { "docid": "1cfbe857cd322b15e6ccae69f79430d5", "score": "0.6914735", "text": "public function getTitle()\n {\n return $this->title;\n }", "title": "" }, { "docid": "1cfbe857cd322b15e6ccae69f79430d5", "score": "0.6914735", "text": "public function getTitle()\n {\n return $this->title;\n }", "title": "" } ]
6943ca843f0499722ea80f2c0c2f508f
Found the place of a binary.
[ { "docid": "c345809c9a494396b97827d27ecd5729", "score": "0.5008909", "text": "public static function locate(string $binary)\n {\n if (isset($_ENV['PATH'])) {\n $separator = ':';\n $path = &$_ENV['PATH'];\n } elseif (isset($_SERVER['PATH'])) {\n $separator = ':';\n $path = &$_SERVER['PATH'];\n } elseif (isset($_SERVER['Path'])) {\n $separator = ';';\n $path = &$_SERVER['Path'];\n } else {\n return null;\n }\n\n foreach (\\explode($separator, $path) as $directory) {\n if (true === \\file_exists($out = $directory.\\DIRECTORY_SEPARATOR.$binary)) {\n return $out;\n }\n }\n\n return null;\n }", "title": "" } ]
[ { "docid": "476c69c353059fce19a51c11de068e84", "score": "0.7096628", "text": "abstract public function findBinary($binary);", "title": "" }, { "docid": "facbaadcbf621a9ccc18097b93f9cb5c", "score": "0.56645745", "text": "public function is_binary($text)\n {\n }", "title": "" }, { "docid": "08927f5623f599b141a6c5e6660a786d", "score": "0.5560237", "text": "function isBinary($string){\n static $bin_chars = array(\n \"\\x00\", \"\\x01\", \"\\x02\", \"\\x03\", \"\\x04\",\n \"\\x05\", \"\\x06\", \"\\x07\", \"\\xFF\"\n );\n $result = false;\n if ($string != null) {\n foreach ($bin_chars as $char) {\n if (strpos($string, $char) !== false) {\n $result = true;\n break;\n }\n }\n }\n return $result;\n }", "title": "" }, { "docid": "e7e1c96891fde339f76b39efbf97ff4d", "score": "0.5508128", "text": "private function is_binary(&$raw){\n\t\t// returns false,\n\t\t$has_binary = (\n\t\t\t0 or substr_count($raw, \"^\\r\\n\")/512 > 0.3\n\t\t\tor substr_count($raw, \"^ -~\")/512 > 0.3\n\t\t\tor substr_count($raw, \"\\x00\") > 0\n\t\t);\n\n\t\tif($has_binary)\n\t\t{\n\t\t\t// Before we rule it completely out, see if we can detect it\n\t\t\t// as utf-16\n\t\t\t$result = iconv($in_charset = 'UTF-16LE' , $out_charset = 'UTF-8', $raw);\n\t\t\tif (false !== $result)\n\t\t\t{\n\t\t\t\t// not binary, we decoded it\n\t\t\t\t// we're dealing with a utf-16 type file...\n\t\t\t\t// store it as utf-8\n\t\t\t\t$raw = $result;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Return the binary flag\n\t\treturn ($has_binary)?true:false;\n\t}", "title": "" }, { "docid": "e0bbf693334819036d664afec4ce0207", "score": "0.54726046", "text": "public function isBinary();", "title": "" }, { "docid": "e0bbf693334819036d664afec4ce0207", "score": "0.54726046", "text": "public function isBinary();", "title": "" }, { "docid": "5964372593eb12466e438250c6632716", "score": "0.53135604", "text": "function isBinaryAvailable($binaryName) {\n\t$binaryPath = Platform::getBinaryPath($binaryName);\n\treturn !empty($binaryPath);\n }", "title": "" }, { "docid": "0fe09c726bed5387aac15693d2fa32f1", "score": "0.53094727", "text": "function is_binary($string){\n return preg_match('~[^\\x20-\\x7E\\t\\r\\n]~', $string) > 0;\n}", "title": "" }, { "docid": "8f2af6b77a9450c41c115e74e03b298d", "score": "0.5171831", "text": "public function has_bin() {\n\t\treturn !empty($this->binnbr);\n\t}", "title": "" }, { "docid": "d96c93ec58895b59d8870bf1f693ac85", "score": "0.51689637", "text": "protected function findGlobalBinary($binary)\n {\n return trim(shell_exec('which ' . $binary));\n }", "title": "" }, { "docid": "d5c5408a0c242147988b613499757daa", "score": "0.51001257", "text": "public function isBinary()\n {\n return $this->flag == 'b';\n }", "title": "" }, { "docid": "b82a549f012045b17afd74e4dad1f5fa", "score": "0.5090777", "text": "function binarySearch($key, $arr)\n{\n try{\n $f = 0;\n $l = sizeOf($arr) - 1;\n while ($f <= $l) {\n $mid = (int) (($f + $l) / 2);\n if ($key == $arr[$mid]) return \"key found at \" . $mid;\n else if ($key < $arr[$mid]) $l = $mid - 1;\n else $f = $mid + 1;\n }\n return \"key not found\";\n} catch (Exception $e) {\n echo $e;\n }\n}", "title": "" }, { "docid": "28b7bdc1260a4c44450bc93e61b51c72", "score": "0.50847715", "text": "public function bitpos($key, $bit, $start = 0, $end = -1, $bybit = false) {}", "title": "" }, { "docid": "e3d9f94fbd56876b9d65a2fdec6586b7", "score": "0.5021048", "text": "function game_snakes_foundlander( $position, $data)\r\n{\r\n\tpreg_match( \"/L$position-([0-9]*)/\", $data, $matches);\r\n\t\r\n\tif( count( $matches)){\r\n\t\treturn $matches[ 1];\r\n\t}\r\n\t\r\n\treturn 0;\r\n}", "title": "" }, { "docid": "2638cff31dd9cb393e79baa44e874622", "score": "0.50117373", "text": "function BarcodeExistsInDestination($Barcode, $CounterToken, $PMLType){\n\t\t$Q = \"SELECT PMIID FROM productmovementinsertion_details WHERE ToCounter = '$CounterToken' AND BarcodeSerial = '$Barcode' AND Existence = '1' AND WorkFlowStatus = '3' AND PMLType = '$PMLType'\";\n\t\t$RQ = RunQuery($Q);\n\t\t$NumRows = NumRows($RQ);\n\t\tif ($NumRows == 1) {\n\t\t\treturn TRUE;\n\t\t}\n\t\telse{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "2b28c11d3e373dbc3a8ca481f4cc1232", "score": "0.4935073", "text": "public function isBinary()\n {\n return $this->flag_Binary;\n }", "title": "" }, { "docid": "6f34dcf295f09882a9afe35648f71283", "score": "0.49304622", "text": "public function which(string $binaryName): string\n {\n Glitch::incomplete($binaryName);\n }", "title": "" }, { "docid": "b85b43e44044a5e3cf9b95a0ff230fe7", "score": "0.4886738", "text": "public function packingFind($id);", "title": "" }, { "docid": "413559132de28610cfe14993b6251366", "score": "0.48362377", "text": "function getBinary() {return $this->_binary;}", "title": "" }, { "docid": "477ed84228cbff9d14630f5297d82b47", "score": "0.4824998", "text": "public function testBarcodeFileExists()\n {\n $ticket = $this->createTicket();\n $this->assertFileExists($ticket->barcode->full_path);\n }", "title": "" }, { "docid": "2752bf99b6c46ce394b9547ceae4f9b3", "score": "0.48089576", "text": "function eth_check_burn($addr, $txid) {\n\n\treturn -1;\n}", "title": "" }, { "docid": "de64d0d6ec2fdf60a32051c3e99a2bea", "score": "0.4798032", "text": "function validSymbol($symbol){\n if(!$symbol)\n return 0;\n\n $tags = json_decode(file_get_contents('http://'.$_SERVER ['HTTP_HOST'].'/bin/model/getSymbols/'));\n\n if(!in_array(strtoupper($symbol),$tags))\n return 9;\n //valid\n return -1;\n }", "title": "" }, { "docid": "f7279d5757b4851b4cb6bc508fe28b4c", "score": "0.47827804", "text": "function CheckGradeIfExist($gradebin, $grade) {\n\n $index = 6 - $grade;\n if(substr($gradebin,$index,1) == \"1\")\n return 1;\n else\n return 0;\n}", "title": "" }, { "docid": "93e0fcec7241d67f148e66299a8da27b", "score": "0.47731754", "text": "public function isForBinary()\n {\n return $this->binary !== null;\n }", "title": "" }, { "docid": "dfdc1f488f717515a4d79298c527bfac", "score": "0.47702864", "text": "private function locateBinary(): string\n {\n if ($this->is_windows()) {\n return realpath(__DIR__ . '/../bin/windows/chromedriver.exe');\n }\n\n $binary_path = $this->is_mac()\n ? realpath(__DIR__ . '/../bin//mac/chromedriver')\n : realpath(__DIR__ . '/../bin/linux/chromedriver');\n\n if ($binary_path === false) {\n throw new \\Exception('WPUnit: Could not locate the chromedriver executable file');\n }\n\n return $binary_path;\n }", "title": "" }, { "docid": "bd515bad79b657ee01736fda0c6a31ab", "score": "0.47614697", "text": "abstract public function getBinaryRunner($binary);", "title": "" }, { "docid": "8df7bfe39e806fd2a84f7c0add49ffce", "score": "0.47571924", "text": "function strposa( $haystack, $needles = array( ), $offset = 0 ) {\n$chr = array( );\nforeach ( $needles as $needle )\n {\n $res = strpos( $haystack, $needle, $offset );\n if ( $res !== false )\n return $needle;\n }\nreturn 'no';\n}", "title": "" }, { "docid": "3732ba429280b5ab4e51ad34b80d91c4", "score": "0.47541746", "text": "function bls_sf_svn_extractPackage($addr, $unpacklocation)\n{\n\n}", "title": "" }, { "docid": "193c4cbbd15ec820129da92c4e595496", "score": "0.47485915", "text": "function ewiki_binary($break=0) {\n global $ewiki_plugins;\n global $USER; // MOODLE\n\n $id = optional_param(EWIKI_UP_BINARY, '', PARAM_CLEAN);\n\n #-- reject calls\n if (!strlen($id) || !EWIKI_IDF_INTERNAL) {\n return(false);\n }\n if (headers_sent()) die(\"ewiki-binary configuration error\");\n\n #-- upload requests\n $upload_file = @$_FILES[EWIKI_UP_UPLOAD];\n $add_meta = array();\n if ($orig_name = @$upload_file[\"name\"]) {\n $add_meta[\"Content-Location\"] = urlencode($orig_name);\n $add_meta[\"Content-Disposition\"] = 'inline; filename=\"'.urlencode(basename(\"remote://$orig_name\")).'\"';\n }\n\n #-- what are we doing here?\n if (($id == EWIKI_IDF_INTERNAL) && ($upload_file)) {\n $do = \"upload\";\n }\n else {\n $data = ewiki_database(\"GET\", array(\"id\" => $id));\n $flags = @$data[\"flags\"];\n if (EWIKI_DB_F_BINARY == ($flags & EWIKI_DB_F_TYPE)) {\n $do = \"get\";\n }\n elseif (empty($data[\"version\"]) and EWIKI_CACHE_IMAGES) {\n $do = \"cache\";\n }\n else {\n $do = \"nop\";\n }\n }\n\n #-- auth only happens when enforced with _PROTECTED_MODE_XXL setting\n # (authentication for inline images in violation of the WWW spirit)\n if ((EWIKI_PROTECTED_MODE>=5) && !ewiki_auth($id, $data, \"binary-{$do}\")) {\n $_REQUEST['id'] = $_POST['id'] = $_GET['id'] = \"view/BinaryPermissionError\";\n return(\"view/BinaryPermissionError\");\n }\n\n #-- upload an image\n if ($do == \"upload\"){\n $id = ewiki_binary_save_image($upload_file[\"tmp_name\"], \"\", $return=0, $add_meta);\n @unlink($upload_file[\"tmp_name\"]);\n ($title = trim($orig_name, \"/\")) && ($title = preg_replace(\"/[^-._\\w\\d]+/\", \"_\", substr(substr($orig_name, strrpos($title, \"/\")), 0, 20)))\n && ($title = '\"'.$title.'\"') || ($title=\"\");\n\n if ($id) {\n echo<<<EOF\n<html><head><title>File/Picture Upload</title><script type=\"text/javascript\"><!--\n opener.document.forms[\"ewiki\"].elements[\"content\"].value += \"\\\\nUPLOADED PICTURE: [$id$title]\\\\n\";\n window.setTimeout(\"self.close()\", 5000);\n//--></script></head><body bgcolor=\"#440707\" text=\"#FFFFFF\">Your uploaded file was saved as<br /><big><b>\n[$id]\n</b></big>.<br /><br /><noscript>Please copy this &uarr; into the text input box:<br />select/mark it with your mouse, press [Ctrl]+[Insert], go back<br />to the previous screen and paste it into the textbox by pressing<br />[Shift]+[Insert] inside there.</noscript></body></html>\nEOF;\n }\n }\n\n #-- request for contents from the db\n elseif ($do == \"get\") {\n#### CHANGED FOR MOODLE\n if (EWIKI_HIT_COUNTING) {\n $tmp[\"id\"]=$id;\n ewiki_database(\"HIT\", $tmp);\n }\n#### CHANGED FOR MOODLE\n\n #-- send http_headers from meta\n if (is_array($data[\"meta\"])) {\n foreach ($data[\"meta\"] as $hdr=>$val) {\n if (($hdr[0] >= \"A\") && ($hdr[0] <= \"Z\")) {\n header(\"$hdr: $val\");\n }\n }\n }\n\n #-- fetch from binary store\n if ($pf_a = $ewiki_plugins[\"binary_get\"]) {\n#### CHANGED FOR MOODLE\n foreach ($pf_a as $pf) { $pf($id, $data[\"meta\"]); }\n\n#### END CHANGED FOR MOODLE\n }\n\n #-- else fpassthru\n echo $data[\"content\"];\n }\n\n #-- fetch & cache requested URL,\n elseif ($do == \"cache\") {\n\n #-- check for standard protocol names, to prevent us from serving\n # evil requests for '/etc/passwd.jpeg' or '../.htaccess.gif'\n if (preg_match('@^\\w?(http|ftp|https|ftps|sftp)\\w?://@', $id)) {\n\n #-- generate local copy\n $filename = tempnam(EWIKI_TMP, \"ewiki.local.temp.\");\n if (($i = fopen($id, \"rb\")) && ($o = fopen($filename, \"wb\"))) {\n\n while (!feof($i)) {\n fwrite($o, fread($i, 65536));\n }\n\n fclose($i);\n fclose($o);\n\n $add_meta = array(\n \"Content-Location\" => urlencode($id),\n \"Content-Disposition\" => 'inline; filename=\"'.urlencode(basename($id)).'\"'\n );\n\n $result = ewiki_binary_save_image($filename, $id, \"RETURN\", $add_meta);\n }\n }\n\n #-- deliver\n if ($result && !$break) {\n ewiki_binary($break=1);\n }\n #-- mark URL as unavailable\n else {\n $data = array(\n \"id\" => $id,\n \"version\" => 1,\n \"flags\" => EWIKI_DB_F_DISABLED,\n \"lastmodified\" => time(),\n \"created\" => time(),\n \"author\" => ewiki_author(\"ewiki_binary_cache\"),\n \"userid\" => $USER->id,\n \"content\" => \"\",\n \"meta\" => array(\"Status\"=>\"404 Absent\"),\n );\n ewiki_database(\"WRITE\", $data);\n header(\"Location: $id\");\n ewiki_log(\"imgcache: did not find '$id', and marked it now in database as DISABLED\", 2);\n }\n\n }\n\n #-- \"we don't sell this!\"\n else {\n if (strpos($id, EWIKI_IDF_INTERNAL) === false) {\n header(\"Status: 301 Located SomeWhere Else\");\n header(\"Location: $id\");\n }\n else {\n header(\"Status: 404 Absent\");\n header(\"X-Broken-URI: $id\");\n }\n }\n\n // you should not remove this one, it is really a good idea to use it!\n die();\n}", "title": "" }, { "docid": "2fb073482daa5a4fa5dd06e8cb9c3dde", "score": "0.47468063", "text": "function currentPattern_found($found)\n {\n if(DSBERICHT_DEBUG)\n {\n if($found)\n echo \"<span style='color: #21FF21; font-weight: bold;'>found!</span>\\n\";\n else\n echo \"<span style='color: #FF2121; font-weight: bold;'>not found!</span>\\n\";\n }\n }", "title": "" }, { "docid": "9c44ed252215634c24bc4f498004218d", "score": "0.4735358", "text": "function compare($binarySysExHaystack, $hexStringNeedle) {\n $binaryNeedle = hex2bin(str_replace(' ', '', $hexStringNeedle)); // replace hex2bin(...) with pack(\"H*\", ...) for PHP <5.4\n return (substr($binarySysExHaystack, 0, strlen($binaryNeedle)) == $binaryNeedle);\n}", "title": "" }, { "docid": "cd0241ceb380991d166c3793992b8d0c", "score": "0.4728976", "text": "function fiftyone_degrees_signature_binary_seach(\n $node_indexs,\n &$debug_info,\n $headers) {\n\n $lower = 0;\n $upper = $headers['signatures_count'] - 1;\n $middle = 0;\n while ($lower <= $upper) {\n $debug_info['signatures_read']++;\n $middle = $lower + (int) (($upper - $lower) / 2);\n $signature = fiftyone_degrees_read_signature($middle, $headers);\n $comparison_result = fiftyone_degrees_compare_signature_to_node_indexs(\n $signature,\n $node_indexs);\n if ($comparison_result == 0) {\n return $middle;\n }\n elseif ($comparison_result > 0)\n $upper = $middle - 1;\n else\n $lower = $middle + 1;\n }\n return ~$middle;\n}", "title": "" }, { "docid": "fb50a58b37b8671d783784aa5a05913d", "score": "0.47021028", "text": "public function binary();", "title": "" }, { "docid": "1bbabd15c9bdbfb2bd3c04f016eb1d87", "score": "0.46990177", "text": "private function check_if_hook ($chunk, $path_prefix) {\n\t\tglobal $db, $table_prefix, $cj_error;\n\t\t\n\t\t//search the pathfinder table for anything that mataches our imaginary path prefix and our chunk.\n\t\t$look_for_hook = $db->get_var(\"SELECT path_module FROM \".$table_prefix.\"pathfinder WHERE path_chunk='\".$chunk.\"' and path_prefix='\".$path_prefix.\"' LIMIT 0,1\");\n\n\t\t//if a match is not found\n\t\tif (!ISSET($look_for_hook)) {\n\t\t\treturn (FALSE);\n\t\t\t\n\t\t//if a match is found...\n\t\t} else {\n\t\t\t\n\t\t\t//return it's id\n\t\t\treturn ((INT)$look_for_hook);\n\t\t}\n\t}", "title": "" }, { "docid": "7d9e3cf24e822ec4f85b21355314277a", "score": "0.4695913", "text": "function detect_group_barcode($barcode,$PREFIX_GROUP_STICKER) //first compares barcode if this is a group prefix\r\n{\r\n echo \"detecting group0\";\r\n echo $group=strtoupper(substr($barcode,0,3));\r\n if(strcmp($PREFIX_GROUP_STICKER,$group)==0){\r\n echo \"detected group sticker \".$group;\r\n return 1;}\r\n else\r\n return 0;\r\n \r\n}", "title": "" }, { "docid": "55cc25817bc37cdea3ffa81f8dc11776", "score": "0.468706", "text": "function binarysearch($array, $start, $end, $value)\n{ \n //Kill if there there isn't anything to search\n if ($end < $start) { return -1; }\n \n //Get the middle of the array\n $middleindex = ceil($start + (($end-$start)/2));\n //The family that is at the middle\n $currentfamily = $array[$middleindex][\"family\"];\n //The difference between the family and the value\n $difference = strcmp($value, $currentfamily);\n \n logadd(\"Searching: i:$middleindex s:$start e:$end c:$currentfamily f:$value d:$difference\");\n \n //If there's no difference then return the index at the middle\n if ($difference == 0) { return $middleindex; }\n //If there is a difference then do a binary search on the left or right half of the array\n else if ($difference < 0) { return binarysearch ($array, $start, $middleindex - 1, $value); }\n else { return binarysearch ($array, $middleindex + 1, $end, $value); }\n}", "title": "" }, { "docid": "fa0cb85f9aa66d508fd89019c66be3f0", "score": "0.46863663", "text": "public function get_bin($value)\n \t\t {\n \t$query = $this->db->query(\"SELECT COUNT(*) AS count FROM bin_master WHERE bin_name='\".$value.\"'\");\n \treturn $query->row()->count;\n \t}", "title": "" }, { "docid": "f5cac3d84d9e7e944232b3ba8d361b97", "score": "0.4678792", "text": "public function find();", "title": "" }, { "docid": "b367985179b793166c4d1a115ea9cf15", "score": "0.46659285", "text": "function binarySearch($num, $a)\n{\n $res = false;\n $tot = count($a);\n $high = $tot - 1;\n $low = 0;\n \n for ($i = 0; $i < $tot; $i++) {\n $mid = ($high + $low) / 2;\n \n if ($a[$mid] == $num) {\n $res = (int) $mid;\n break;\n } elseif ($a[$mid] > $num)\n $high = $mid;\n elseif ($a[$mid] < $num)\n $low = $mid;\n \n if ($a[$high] == $num) {\n $res = $high;\n break;\n }\n }\n return $res;\n}", "title": "" }, { "docid": "bd166c0e9b0d670997fe5659d74348ac", "score": "0.46643198", "text": "public function isBinary()\n\t{\n\t\treturn $this->binary;\n\t}", "title": "" }, { "docid": "778488b67e102ce27f3f951cf9d02346", "score": "0.46643153", "text": "private function zip_test() {\n if (exec(\"which zip\") != \"\") {\n $this->test_return(\\core\\common\\Entity::L_OK, \"<strong>zip</strong> binary found.\");\n } else {\n $this->test_return(\\core\\common\\Entity::L_ERROR, \"<strong>zip</strong> not found in your \\$PATH!\");\n }\n }", "title": "" }, { "docid": "ce1dbf2a15ba001b29d2a060f4f8c481", "score": "0.46584287", "text": "public function startsWith($arg) {\n $bytes= $this->asIntern($arg);\n return 0 === strncmp($this->buffer, $bytes, strlen($bytes));\n }", "title": "" }, { "docid": "3409c55167968ddf1de1cc67556eb118", "score": "0.46559405", "text": "public function hasHexEncoded(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "114b6bc6cb90a326d867bf121e8b5de0", "score": "0.4654461", "text": "public function testBinaryNull()\n {\n $filename = __DIR__ . '/php-zip-ext-test-resources/binarynull.zip';\n\n $zipFile = new ZipFile();\n $zipFile->openFile($filename);\n foreach ($zipFile as $name => $contents) {\n $info = $zipFile->getEntryInfo($name);\n $this->assertEquals(strlen($contents), $info->getSize());\n }\n $zipFile->close();\n\n $this->assertCorrectZipArchive($filename);\n }", "title": "" }, { "docid": "f2c2bf2bdb7b7612fa64eb533537fb1f", "score": "0.4650228", "text": "public function hasBip9Prefix(): bool;", "title": "" }, { "docid": "ca17fa6cc96456811619e35b8669a82a", "score": "0.4649557", "text": "public function which($binary, $fallback = null)\n\t{\n\t\t$location = false;\n\t\t$locations = array(\n\t\t\tarray($this->server, 'getValue', 'paths.'.$binary),\n\t\t\tarray($this->rocketeer, 'getPath', $binary),\n\t\t\tarray($this, 'runSilently', 'which '.$binary),\n\t\t);\n\n\t\t// Add fallback if provided\n\t\tif ($fallback) {\n\t\t\t$locations[] = array($this, 'runSilently', 'which '.$fallback);\n\t\t}\n\n\t\t// Add command prompt if possible\n\t\tif ($this->hasCommand()) {\n\t\t\t$prompt = $binary. ' could not be found, please enter the path to it';\n\t\t\t$locations[] = array($this->command, 'ask', $prompt);\n\t\t}\n\n\t\t// Look in all the locations\n\t\t$tryout = 0;\n\t\twhile (!$location and array_key_exists($tryout, $locations)) {\n\t\t\tlist($object, $method, $argument) = $locations[$tryout];\n\n\t\t\t$location = $object->$method($argument);\n\t\t\t$tryout++;\n\t\t}\n\n\t\t// Store found location\n\t\t$this->server->setValue('paths.'.$binary, $location);\n\n\t\treturn $location ?: false;\n\t}", "title": "" }, { "docid": "c0550841e06e698ed4e7be42a9a36ef3", "score": "0.46409282", "text": "public function testFind_word_true()\r\n {\r\n $newGame = new Boggle();\r\n $newGame->set_board($this->row_square);\r\n $newGame->setOriginalWord(\"tony\");\r\n $newGame->find_word($newGame->boggle, $newGame->boggle, \"tony\");\r\n $this->assertTrue($newGame->found);\r\n }", "title": "" }, { "docid": "45c414db8ec83d07ae1188d3d6f2b820", "score": "0.46306348", "text": "function BOF() {\n echo pack(\"ssssss\", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0);\n return;\n }", "title": "" }, { "docid": "c09357852ed0c63be4341dfc82e65c16", "score": "0.46157515", "text": "public function findExecutable(string $name): string;", "title": "" }, { "docid": "ca38cb6eb84e98549f61b31806719780", "score": "0.4607065", "text": "function find()\n {\n }", "title": "" }, { "docid": "7a28d81ffef9b0f7d203a5eb328136fe", "score": "0.46053183", "text": "public static function isBinary($file) {\n\t\t// open file\n\t\t$file = new File($file, 'rb');\n\t\t\n\t\t// get block size\n\t\t$stat = $file->stat();\n\t\t$blockSize = $stat['blksize'];\n\t\tif ($blockSize < 0) $blockSize = 1024;\n\t\tif ($blockSize > $file->filesize()) $blockSize = $file->filesize();\n\t\tif ($blockSize <= 0) return false;\n\t\t\n\t\t// get bytes\n\t\t$block = $file->read($blockSize);\n\t\treturn (strlen($block) == 0 || preg_match_all('/\\x00/', $block, $match) > 0);\n\t}", "title": "" }, { "docid": "7ffa0dabf74fb024c0ad2474e7be4cbd", "score": "0.45978808", "text": "function xu_strpos($haystack, $needle, $offset = 0)\n{\n return mb_strpos($haystack, $needle, $offset, 'UTF-8');\n}", "title": "" }, { "docid": "4c768f621350fe0c0266f9c5a946a215", "score": "0.45887512", "text": "protected abstract function locateObject();", "title": "" }, { "docid": "eddb1160e44fa9b4ec59cc162fb82cb5", "score": "0.4567758", "text": "function binarySearch($array, $searchFor) {\n\t$low = 0;\n\t$high = count($array) - 1;\n\t$mid = 0;\n\n\twhile ($low <= $high) { // While the high pointer is greater or equal to the low pointer\n\t\t$mid = floor(($low + $high) / 2);\n\t\t$element = $array[$mid];\n\n\t\tif ($searchFor == $element) { // If this is the value we're searching for\n\t\t\treturn $mid;\n\t\t} else if ($searchFor < $element) {\n\t\t\t$high = $mid - 1;\n\t\t} else {\n\t\t\t$low = $mid + 1;\n\t\t}\n\t}\n\t return -1;\n }", "title": "" }, { "docid": "56033eb275d9640c89f840e4c4aff425", "score": "0.4561302", "text": "public function getBinary();", "title": "" }, { "docid": "4938a9e243deabf688e34e02244b3ec1", "score": "0.45489478", "text": "function getBinaryType() {return $this->_binarytype;}", "title": "" }, { "docid": "7209ce2948c160df4aa76f861f8c6b85", "score": "0.4542724", "text": "function binarysearch($arr,$val) {\n $len = count($arr);\n if ($len <= 1) return $arr;\n $low = 0;\n $high = $len - 1;\n $mid = (int)($low + ($high - $low) / 2);\n while ($low <= $high) {\n if ($arr[$mid] < $val) {\n $low = $mid + 1;\n } elseif ($arr[$mid] > $val) {\n $high = $mid - 1;\n } else {\n return $mid;\n }\n }\n return -1;\n}", "title": "" }, { "docid": "b7df333360e181ab67496a5c4eba8262", "score": "0.45371437", "text": "private function checkByte($byte)\n {\n if (fgetc($this->handle) == chr($byte)) {\n\n fseek($this->handle, $this->pointer);\n return true;\n }\n\n fseek($this->handle, $this->pointer);\n\n return false;\n }", "title": "" }, { "docid": "5d36e5cdacc081890dd5db34052e3402", "score": "0.45356253", "text": "protected function binary() {\n $plugin_extra = $this->getPluginExtra();\n\n return isset($plugin_extra['binary']) ? $plugin_extra['binary'] : 'drush';\n }", "title": "" }, { "docid": "0356091680a04032e7580deab2689b81", "score": "0.4530956", "text": "function maybeLocated() {\n return true;\n }", "title": "" }, { "docid": "7a2eefd62756f6e1bf1c9846739c3a19", "score": "0.45255277", "text": "function xlsBOF() { \n\t\techo pack(\"ssssss\", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0); \n\t\treturn; \n\t}", "title": "" }, { "docid": "751dd2e9bffadb5a89426b4164b3d509", "score": "0.45222422", "text": "public function find($input);", "title": "" }, { "docid": "bc7576804410b285541f1d965ae98eb2", "score": "0.45212698", "text": "function isLeadByte (/*unsigned int*/ $cp, /*unsigned char*/ $ucByte)\n{\n\t/* Code page 932 - Japanese Shift-JIS - 0x81-0x9f\n\t 0xe0-0xfc\n 936 - Simplified Chinese GBK - 0xa1-0xfe\n\t 949 - Korean Wansung - 0x81-0xfe\n\t\t\t\t 950 - Traditional Chinese Big5 - 0x81-0xfe\n\t 1361 - Korean Johab - 0x84-0xd3\n\t\t\t\t\t\t\t\t\t\t\t\t 0xd9-0xde\n\t\t\t\t\t\t\t\t\t\t\t\t 0xe0-0xf9 */\n\tswitch ($cp)\n\t{\n\t\tcase 932:\n\t\t\tif (($ucByte > 0x80) && ($ucByte < 0xa0))\treturn 1;\n\t\t\tif (($ucByte > 0xdf) && ($ucByte < 0xfd))\treturn 1;\n\t\t\telse return 0;\n\t\tcase 936:\n\t\t\tif (($ucByte > 0xa0) && ($ucByte < 0xff)) return 1;\n\t\t\telse return 0;\n\t\tcase 949:\n\t\tcase 950:\n\t\t\tif (($ucByte > 0x80) && ($ucByte < 0xff)) return 1;\n\t\t\telse return 0;\n\t\tcase 1361:\n\t\t\tif (($ucByte > 0x83) && ($ucByte < 0xd4)) return 1;\n\t\t\tif (($ucByte > 0xd8) && ($ucByte < 0xdf)) return 1;\n\t\t\tif (($ucByte > 0xdf) && ($ucByte < 0xfa)) return 1;\n\t\t\telse return 0;\n\t\tdefault:\n\t\t\treturn 0;\n\t}\n\n}", "title": "" }, { "docid": "96d2c53310fd23e682804a88e55a22f9", "score": "0.45204008", "text": "public function isBinary()\n {\n return (bool) config('facematch.recognize.'.$this->getModelConfigArrayKey().'.media.binary');\n }", "title": "" }, { "docid": "141d289a8fa2deefbf6bce75963de46f", "score": "0.45181012", "text": "function system_getLibPosition($libsArray, $libName) {\n\t\tforeach ($libsArray as $libindex => $lib) {\n\t\t\tif ($lib[\"id\"] == $libName) {\n\t\t\t\treturn $libindex;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ec094bdc9140c8ce2350c2dd59573bfc", "score": "0.45146492", "text": "public static function strpos_in_byte(string $haystack, string $needle, int $offset = 0)\n {\n if ($haystack === '' || $needle === '') {\n return false;\n }\n\n if (self::$SUPPORT['mbstring_func_overload'] === true) {\n // \"mb_\" is available if overload is used, so use it ...\n return \\mb_strpos($haystack, $needle, $offset, 'CP850'); // 8-BIT\n }\n\n return \\strpos($haystack, $needle, $offset);\n }", "title": "" }, { "docid": "0dd958a983e5324d92d119a867188414", "score": "0.45058733", "text": "public function isForBinaryVersion()\n {\n return $this->binary_version !== null;\n }", "title": "" }, { "docid": "31e5af2a4becbd2cd79bc06a162ef8c1", "score": "0.44987884", "text": "function is_valid_btcaddress($pubkey)\r\n\t{\r\n\r\n\t$forbidden_chars = array(\";\",\"$\",\"*\",\"!\",\"[\",\"]\",\"@\",\"#\",\"%\",\"^\",\"&\");\r\n\t$minimal_lenght = 25;\r\n\t\r\n\t$errors_sum =0;\r\n\t//check pubkey lenght\r\n\tif (strlen($pubkey)<$minimal_lenght)\r\n\t\t$errors_sum=$errors_sum+1;\t\r\n\t// check if address begins from 1\t\t\r\n\tif ($pubkey[0]!='1')\r\n\t\t$errors_sum=$errors_sum+1;\r\n\t//check if forbidden chars occure\r\n\tforeach ($forbidden_chars as &$forbidden_character)\r\n\t\t{\r\n\t\tif (strpos($pubkey, $forbidden_character))\r\n\t\t\t$errors_sum=$errors_sum+1;\t\r\n\t\t}\r\n\t//result of checking\r\n\tif ($errors_sum ==0)\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n\r\n\t}", "title": "" }, { "docid": "d08072f41c6e8bb64af96475b06241a7", "score": "0.44981226", "text": "public function bitpos(string $key, bool $bit, int $start = 0, int $end = -1, bool $bybit = false): Redis|int|false;", "title": "" }, { "docid": "33396b7c76cbd69d011ca88bb847d15e", "score": "0.44943362", "text": "public function contains($arg) {\n if ('' === ($needle= $this->asIntern($arg))) return FALSE;\n return FALSE !== __str::pos($this->buffer, $needle, 0);\n }", "title": "" }, { "docid": "92e7f9e544a584cb6295dc8f8bbdf5e1", "score": "0.44872528", "text": "public function isBinary() {\n return $this->isBinary;\n }", "title": "" }, { "docid": "f19a5cd14ecf116429db14394875800f", "score": "0.44871944", "text": "function file_exist_ret($type, $id, $ib, $ext = '.jpg')\n\t{\n\t if (file_exists('uploads/' . $type . '_image/' . $type . '_' . $id . '_' . $ib . $ext)) {\n\t $ib = $ib + 1;\n\t $ib = $this->file_exist_ret($type, $id, $ib);\n\t return $ib;\n\t } else {\n\t return $ib;\n\t }\n\t}", "title": "" }, { "docid": "a42af42eb92cdbc4fd0f7167695aac48", "score": "0.44835842", "text": "private function findZone() {\n if( $this->zone < 12000 ) {\n /* step 7 */\n return;\n } else {\n /* step 3\n Subtract 12000 from the zone and look up that table number\n */\n $this->zone -= 12000;\n $this->scanZoneTable();\n }\n }", "title": "" }, { "docid": "abf45381db36e82733ce83cb44a4f0e8", "score": "0.4483575", "text": "public function getHasPOS();", "title": "" }, { "docid": "10e898bee3116a16c0cf5694c183c49d", "score": "0.44798148", "text": "function exists(){\n\t\t$sql = 'SELECT barcode FROM barcodes\n\t\t\t\tWHERE barcode = \"'.$this->code.'\"';\n\t\t$this->DB->query($sql);\n\t\tif(!$this->DB->isEmpty())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->error = 'The barcode <strong>'.$this->code.'</strong> was not properly pre-registered. Please put this wristband aside, and distribute a new one.';\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "342613e0436181a6bb12a0093a27124c", "score": "0.4471371", "text": "public static function strripos_in_byte(string $haystack, string $needle, int $offset = 0)\n {\n if ($haystack === '' || $needle === '') {\n return false;\n }\n\n if (self::$SUPPORT['mbstring_func_overload'] === true) {\n // \"mb_\" is available if overload is used, so use it ...\n return \\mb_strripos($haystack, $needle, $offset, 'CP850'); // 8-BIT\n }\n\n return \\strripos($haystack, $needle, $offset);\n }", "title": "" }, { "docid": "79c07bbd76e564c9c0c09391273aee56", "score": "0.44682875", "text": "function xlsBOF() {\n\t\techo pack(\"ssssss\", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0);\n\t\treturn;\n\t\t}", "title": "" }, { "docid": "99508af9f223ad2b976f03aae0e19e86", "score": "0.44676176", "text": "public function hasBuffer(){\n return $this->_has(9);\n }", "title": "" }, { "docid": "b28bb4df23de73c95d300e986a19f170", "score": "0.44608766", "text": "public function getBin(Order $order)\n {\n try {\n $binAdapter = $this->paymentVerificationFactory->createPaymentBin($order->getPayment()->getMethod());\n\n $this->logger->debug('Getting bin using ' . get_class($binAdapter), ['entity' => $order]);\n\n $bin = $binAdapter->getData($order);\n\n if (isset($bin) === false) {\n return null;\n }\n\n $bin = preg_replace('/\\D/', '', $bin);\n\n if (empty($bin)) {\n return null;\n }\n\n $bin = (int) $bin;\n // A credit card does not starts with zero, so the bin intaval has to be at least 100.000\n if ($bin < 100000) {\n return null;\n }\n\n return (string) $bin;\n } catch (Exception $e) {\n $this->logger->error('Error fetching bin: ' . $e->getMessage(), ['entity' => $order]);\n return null;\n }\n }", "title": "" }, { "docid": "80d998ed151edee51ed89b8fa61edb2f", "score": "0.44607386", "text": "public function CheckIfSubAssembly($barcode)\r {\r \r $records = $this->SQL->GetArrayAll(array(\r 'table' => 'inventory_assemblies',\r 'keys' => 'inventory_assemblies_id',\r 'where' => \"barcode='{$barcode}' AND active=1\"\r ));\r $this->EchoQuery();\r \r $is_subassembly = ($records) ? 1 : 0;\r return $is_subassembly;\r }", "title": "" }, { "docid": "30d607dc1dad737c95136d94444ccfec", "score": "0.4460021", "text": "public function testFind() {\n\t\t$this->assertEquals('3.txt', $this->_object->find()->getFilename());\n\t}", "title": "" }, { "docid": "126b3b4152898883195aa84ef315431c", "score": "0.44531468", "text": "private function findStatusPosition($comment)\n {\n $formats = ['status:', '*status*:', '**status**:'];\n\n foreach ($formats as $format) {\n $lastStatusPosition = strripos($comment, $format);\n\n if ($lastStatusPosition !== false) {\n return $lastStatusPosition + strlen($format);\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "002b84edb224bd703029a8c785683989", "score": "0.444915", "text": "private function doCountBin()\n {\n /** @var string $bitset */\n $bitset = $this->bitset;\n $count = 0;\n $byteLen = \\strlen($bitset);\n for ($bytePos = 0; $bytePos < $byteLen; ++$bytePos) {\n if ($bitset[$bytePos] === \"\\0\") {\n // fast skip null byte\n continue;\n }\n\n $ord = \\ord($bitset[$bytePos]);\n if ($ord & 0b00000001) ++$count;\n if ($ord & 0b00000010) ++$count;\n if ($ord & 0b00000100) ++$count;\n if ($ord & 0b00001000) ++$count;\n if ($ord & 0b00010000) ++$count;\n if ($ord & 0b00100000) ++$count;\n if ($ord & 0b01000000) ++$count;\n if ($ord & 0b10000000) ++$count;\n }\n return $count;\n }", "title": "" }, { "docid": "2c3c1dbb5a74aa4752616ffa7cc2d43a", "score": "0.4446903", "text": "protected static function getBinaryName()\n {\n throw new \\Exception('Should be implemented');\n }", "title": "" }, { "docid": "72613b9e1dfc759551dfb0fe49a9b140", "score": "0.44344842", "text": "function getBinaryPath($binaryName) {\n\tif (!Platform::isPhpFunctionSupported('exec')) {\n\t return false;\n\t}\n\n\t/* First try 'which' */\n\t$ret = array();\n\texec('which ' . $binaryName, $ret);\n\tif (strpos(join(' ',$ret), $binaryName) !== false && is_executable(join('',$ret))) {\n\t return $binaryName; // it's in the path\n\t}\n\n\t/* Try a bunch of likely seeming paths to see if any of them work. */\n\t$paths = array();\n\tif (!strncasecmp(PHP_OS, 'win', 3)) {\n\t $separator = ';';\n\t $slash = \"\\\\\";\n\t $extension = '.exe';\n\t $paths[] = \"C:\\\\Program Files\\\\$binaryName\\\\\";\n\t $paths[] = \"C:\\\\apps\\$binaryName\\\\\";\n\t $paths[] = \"C:\\\\$binaryName\\\\\";\n\t} else {\n\t $separator = ':';\n\t $slash = \"/\";\n\t $extension = '';\n\t $paths[] = '/usr/bin/';\n\t $paths[] = '/usr/local/bin/';\n\t $paths[] = '/bin/';\n\t $paths[] = '/sw/bin/';\n\t}\n\t$paths[] = './';\n\n\tforeach (explode($separator, getenv('PATH')) as $path) {\n\t $path = trim($path);\n\t if (empty($path)) {\n\t\tcontinue;\n\t }\n\t if ($path{strlen($path)-1} != $slash) {\n\t\t$path .= $slash;\n\t }\n\t $paths[] = $path;\n\t}\n\n\t/* Now try each path in turn to see which ones work */\n\tforeach ($paths as $path) {\n\t $execPath = $path . $binaryName . $extension;\n\t if (file_exists($execPath) && is_executable($execPath)) {\n\t\t/* We have a winner */\n\t\treturn $execPath;\n\t }\n\t}\n\n\treturn false;\n }", "title": "" }, { "docid": "675ce83f5b83a8e007c134890ea86934", "score": "0.44322255", "text": "public function find($key, $flags = 0) {\n return UPS_SUCCESS;\n }", "title": "" }, { "docid": "68e1b927754e529e3dbfe6a13ec653e5", "score": "0.44308165", "text": "function findIndex($result, $word, $clause){\r\n\t\t$word = trim($word);\r\n\t\t$start = $clause;\r\n\t\t$end = count($result);\r\n\t\tfor($i=$start; $i<$end; $i++){\r\n\t\t\tif(strcmp($result[$i][0], $word) == 0) return $i;\r\n\t\t}\r\n\t\t\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "739938c704731ca0e7afe81b9fb7d2d6", "score": "0.44249266", "text": "function rstrpos ($haystack, $needle, $offset)\n\t{\n\t\t$size = strlen ($haystack);\n\t\t$pos = strpos (strrev($haystack), $needle, $offset);\n \tif ($pos === false) return false;\n return $size - $pos;\n\t}", "title": "" }, { "docid": "d077dfe266bc64aba46d55b35405844e", "score": "0.4424616", "text": "function is_hexbin($value)\n {\n $l = strlen($value);\n\n if ($l < 1 || strspn($value, '0123456789ABCDEFabcdef') != $l) return FALSE;\n\n $bin = SOAP_Type_hexBinary::to_bin($value);\n $hex = SOAP_Type_hexBinary::to_hex($bin);\n return strcasecmp($value, $hex) == 0;\n }", "title": "" }, { "docid": "870048035a34049e7601bd1472e34dee", "score": "0.44225526", "text": "protected function binaryHasConnection() {\n $connection = $this\n ->binaryExecutable()\n ->hasDatabaseConnection()\n ->execute();\n\n if (empty($connection)) {\n return FALSE;\n }\n\n return stripos($connection[0], 'successful') !== FALSE ? TRUE : FALSE;\n }", "title": "" }, { "docid": "5c65f862732cb19aab4ff957deb0394d", "score": "0.44073206", "text": "function eth_verify_wallet($addr, $sig) {\n\treturn true;\n}", "title": "" }, { "docid": "bd13e23760de82d1cbc5f776bf9d04b1", "score": "0.44065666", "text": "function is_packing($sm_id){\r\n\t\treturn 0;\r\n }", "title": "" }, { "docid": "77e53f5d243bb873fa39c8d93d36ec65", "score": "0.44060665", "text": "public function hasCode(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "1d9c164bd5047e3500f2f43e8fc23810", "score": "0.44058764", "text": "function is_executable($in_filename)\n {\n return file_exists($in_filename);\n }", "title": "" }, { "docid": "9aa671f319a973dca4ced1ba4895efe3", "score": "0.44033697", "text": "public function getBankCode($b) {\n $b = str_replace(' ','',$b);\n $b = strtoupper($b);\n if (strpos($b,'中国银行')===false)\n $b = str_replace('中国','',$b);\n $b = str_replace(['有限责任公司','股份有限公司','信用联社','农村商业','有限公司'],['','','信用社','农商','',''],$b);\n $t = str_replace(['银行','快捷支付'], ['',''], $b);\n\n $res = \\DB::query(\"SELECT code FROM %l WHERE name=%s OR short_name=%s OR eng_name like %s OR concat( ',',tag,',') like %ss \", self::DATABASE_TABLE_BANKS, $b, $b, $b, \",$t,\");\n if (is_array($res) && count($res)==1)\n return $res[0]['code'];\n\n return FALSE;\n }", "title": "" }, { "docid": "040bd1c7e32ebade2170f44bbfba59bd", "score": "0.43994343", "text": "function checkIbanForAccount($account)\n{\n require_once DOL_DOCUMENT_ROOT.'/includes/php-iban/oophp-iban.php';\n\n $iban = new IBAN($account->iban);\n $check = $iban->Verify();\n\n if ($check) return true;\n else return false;\n}", "title": "" }, { "docid": "4c64dc5f576b31da9b3f99457e0c4f95", "score": "0.43984973", "text": "public function getCacheBinSuffixPart(string $bin) :? string;", "title": "" }, { "docid": "b052394611852f8cecdca3a6ff68ec0d", "score": "0.43984288", "text": "public static function find(String $name) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3ce424a495cacd944db63160ebdebdf2", "score": "0.4393193", "text": "function lookupBlockName ($blockName, &$blockNo) {\n $x =& $this->blockNameToNoMap[strtoupper($blockName)];\n if (!isset($x)) return false;\n $blockNo = $x;\n return true; }", "title": "" }, { "docid": "74deec081cbce51035c422d8e11f0c07", "score": "0.43911564", "text": "public function indexOf($arg, $start= 0) {\n if ('' === ($needle= $this->asIntern($arg))) return -1;\n $r= __str::pos($this->buffer, $needle, $start);\n return FALSE === $r ? -1 : $r;\n }", "title": "" } ]
a8130f47c23aa4e50d9bf24533faacba
using STATIC to ammend variables permanently
[ { "docid": "a1d301edecc42ef9051053d6732605cb", "score": "0.0", "text": "function ageCount(){\n static $fAge = 22;\n echo \"$fAge <br>\";\n $fAge+=10;\n }", "title": "" } ]
[ { "docid": "14fd9f2a70526cb63e41acef1e442799", "score": "0.6447224", "text": "public function extraStatics() {}", "title": "" }, { "docid": "2b5c74f53ec3f40fb88f5449ad215d4e", "score": "0.6140889", "text": "public function makeStatic() {}", "title": "" }, { "docid": "2b5c74f53ec3f40fb88f5449ad215d4e", "score": "0.6140889", "text": "public function makeStatic() {}", "title": "" }, { "docid": "f9c2c22895c008a364d86de33d5c864c", "score": "0.61214757", "text": "function inicializar_vars() {\n\tglobal $nro_compra, $fecha_compra, $precio, $precio_total, $unidades,$id_bicicleta,$nombre,$tipo,$id_cliente;\n //$nombre=$marca=$fecha_fabricacion=$precio=$edad=$gama=$rodado=$modelo=$material=$tipo_bici=$descripcion=$imagen=$tipo=$stock=\"\";\n \n }", "title": "" }, { "docid": "9c8a66466db86347f78deb00d38b70e9", "score": "0.60602957", "text": "public static function importGlobals()\n {\n $reflection = new \\ReflectionClass('PhpXmlRpc\\PhpXmlRpc');\n $staticProperties = $reflection->getStaticProperties();\n foreach ($staticProperties as $name => $value) {\n if (isset($GLOBALS[$name])) {\n self::$$name = $GLOBALS[$name];\n }\n }\n }", "title": "" }, { "docid": "bf06862414538671c0831312d2a73c5e", "score": "0.5991695", "text": "private static function initConst(){\n define(\"VIEW_PATH\", APP_PATH.\"View\".DS);\n define(\"FRAME_PATH\",ROOT_PATH.\"Frame\".DS);\n }", "title": "" }, { "docid": "db5ba7a2b4e4e6f714f41112e92750d0", "score": "0.5966416", "text": "function staticVar(){\n static $value = 1;\n echo $value . \"static <br>\";\n $value++;\n}", "title": "" }, { "docid": "befc641b22388a4b98b922461d0260d8", "score": "0.58703107", "text": "public function markStatic () : void {\n\t\t$this->static = true;\n\t}", "title": "" }, { "docid": "5aeccb8b12a8ffc6030e5c72481037fc", "score": "0.586324", "text": "protected static function assignConstants()\n {\n static::$constants = array_keys((new \\ReflectionClass(static::class))->getConstants());\n }", "title": "" }, { "docid": "198b8ae8ba9b59e8ba3f8abd68134de2", "score": "0.58628315", "text": "abstract public function setStaticAttributes();", "title": "" }, { "docid": "c0ee1368be5c5fa56978f08222ffa03d", "score": "0.58484364", "text": "static public function init_static()\n\t{\n\t\tself::$db = isset($GLOBALS['egw_setup']) ? $GLOBALS['egw_setup']->db : $GLOBALS['egw']->db;\n\t}", "title": "" }, { "docid": "8b37eaf38bab09941fc447bc875dacc3", "score": "0.5800233", "text": "function energyfolks_init_vars() {\n register_setting(\"energyfolks\",'energyfolks_affiliate_id');\n register_setting(\"energyfolks\",'energyfolks_secret');\n register_setting(\"energyfolks\",'energyfolks_topmenu');\n register_setting(\"energyfolks\",'energyfolks_color');\n register_setting(\"energyfolks\",'energyfolks_plugin_enabled');\n register_setting(\"energyfolks\",'energyfolks_js_hash');\n register_setting(\"energyfolks\",'energyfolks_css_hash');\n}", "title": "" }, { "docid": "bbacf2ef0a994203869d0df8f6bd490c", "score": "0.57571346", "text": "function &getVars() {\n\t\tstatic $vars;\n\t\treturn $vars;\n\t}", "title": "" }, { "docid": "ce73a474d704aa01cf6b655911d04362", "score": "0.5748684", "text": "abstract protected function load_vars();", "title": "" }, { "docid": "60d298ca87c87011319e8e11c75d7d99", "score": "0.57303673", "text": "private function snapshotStaticAttributes(): \\void {}", "title": "" }, { "docid": "5b8e8057c972901e8c4fa505f0619c04", "score": "0.5706039", "text": "public static function setup_statics_once()\n {\n }", "title": "" }, { "docid": "f943e3422e7e77c70412208a8c7742a1", "score": "0.5700874", "text": "function addStatics($static,$vals)\n {\n if (count($static))\n {\n $this->statics = array();\n for($i=0;$i<count($static);$i++)\n {\n if (isset($static[$i]))\n {\n $a = '';\n if (isset($vals[$i])) $a = $vals[$i];\n $this->statics[] = array('name' => $static[$i],'val' => $a);\n }\n }\n }\n }", "title": "" }, { "docid": "4c2d13903f0c54c091c4dae42c1d93e1", "score": "0.5672893", "text": "function kiemTraBienStatic()\n{\n\tstatic $demo = 0;\n\t$demo++;\n\techo $demo;\n\techo \"<br>\";\n}", "title": "" }, { "docid": "ba1a556d9c0ad0cee6f84ce883f42920", "score": "0.5666884", "text": "function cl_varfixval() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"varfixval\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "5f1da6d97b8e87ad2acd8cd1650692c1", "score": "0.56544656", "text": "private function setupGlobals_fn() \n\t\t{\n\t\t\t//---\n\t\t\t$this->_version \t= self::K_VERS;\n\t\t\tself::$gFile \t= __FILE__;\n\t\t\tself::$gDir \t\t= trailingslashit( dirname( self::$gFile ) );\n\t\n\t\t\tself::$gUrl\t\t\t\t= trailingslashit( get_site_url() ) . str_replace( ABSPATH, '', self::$gDir );\n\t\t\t//---\n\t\t\t$lName \t\t\t\t\t= basename( self::$gDir );\n\t\t\t$gBasename \t\t\t\t= explode( $lName, self::$gFile );\n\t\t\tself::$gBasename \t= $lName . $gBasename[ 1 ];\n\t\t\t//\n\t\t\t// Directories Hierarchy\n\t\t\t//\n\t\t\tself::$gDefOptions = self::getDefaultOptions_fn();\n\t\t\t//---\n\t\t\tself::$gSlug \t\t\t= sanitize_title( self::K_SLUG );\n\t\t\t//---\n\t\t}", "title": "" }, { "docid": "0f14cfba81398103a7f807b33c697c5f", "score": "0.5653678", "text": "abstract protected function getStaticData();", "title": "" }, { "docid": "9eb8534aa67bfd8546c96bfb35d65665", "score": "0.5633918", "text": "static function init(){\r\n\t}", "title": "" }, { "docid": "913031ced5b045bc052d37799027b2e5", "score": "0.5633414", "text": "static function init() {}", "title": "" }, { "docid": "913031ced5b045bc052d37799027b2e5", "score": "0.5633414", "text": "static function init() {}", "title": "" }, { "docid": "58a9b1534f8ea0b1694f9368e62c5d93", "score": "0.5624769", "text": "private function setupVars()\n {\n if($this->minified !== null && $this->cdn !== null) return;\n $this->minified = 'min';\n $this->cdn = 'cdn';\n if(isset(FlipsideSettings::$global))\n {\n if(isset(FlipsideSettings::$global['use_minified']) && !FlipsideSettings::$global['use_minified'])\n {\n $this->minified = 'no';\n }\n if(isset(FlipsideSettings::$global['use_cdn']) && !FlipsideSettings::$global['use_cdn'])\n {\n $this->cdn = 'no';\n }\n }\n }", "title": "" }, { "docid": "387cdba2101a9325ca03f5cc06ea1afe", "score": "0.55957615", "text": "public function beforeStmt_StaticVar()\n {\n $this->disable_const_rewrite_level++;\n }", "title": "" }, { "docid": "cee6dbb047d9d555a647d08bc035ff7c", "score": "0.55957544", "text": "public static function initStatic() {\n\t\tself::$parser = new \\PHPParser_Parser(new \\PHPParser_Lexer);\n\t\tself::$printer = new \\PHPParser_PrettyPrinter_Default();\n\n\t\tself::$classifizer = new \\Classy\\NodeVisitor\\Classifizer;\n\n\t\tself::$traverser = new \\PHPParser_NodeTraverser;\n\n\t\t// this will make all namespaced elements fully qualified\n\t\tself::$traverser->addVisitor(new \\PHPParser_NodeVisitor_NameResolver);\n\n\t\t// this performs all other code substitutions\n\t\tself::$traverser->addVisitor(self::$classifizer);\n\t}", "title": "" }, { "docid": "741e9b3598ad9bc23b8590bfc076ef9e", "score": "0.55794793", "text": "private function defineVars()\n {\n define('__APP_PATH__', __DIR__.'/../', 1);\n\n $prefix = $this->config['app_prefix'] ?: 'APP';\n\n foreach ($this->config as $key => $value) {\n $dKey = strtoupper($prefix.'_'.$key);\n define($dKey, $value);\n }\n }", "title": "" }, { "docid": "397d7f5edc0dfd0053c3fd685506f7a1", "score": "0.5576787", "text": "public function init_base_variables() {\n\t\t$this->plugin_url = $this->plugin_info->get_plugin_url();\n\n\t\t$this->plugin_path = $this->plugin_info->get_plugin_dir();\n\t\t$this->template_path = $this->plugin_info->get_text_domain();\n\n\t\t$this->plugin_namespace = $this->plugin_info->get_text_domain();\n\t\t$this->template_path = $this->plugin_info->get_text_domain();\n\n\n\t}", "title": "" }, { "docid": "aa99f1766471ee4ea49cc16f34e697df", "score": "0.5569993", "text": "public function _initDefines()\r\n\t{\r\n\t\tdefine('APPLICATION_CACHE_PATH', APPLICATION_PATH.'/../data/cache/');\r\n\t\tdefine('APPLICATION_LOG_PATH', APPLICATION_PATH.'/../data/log/');\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e5c984bf58340e9c3c2e3bb28bbdc0c3", "score": "0.5564265", "text": "function init_global_vars() {\n global $ccus_str;\n $ccus_str = get_lang_object();\n\n global $countryCode;\n $countryCode = \"us\";\n\n global $home_url;\n $home_url = esc_url(home_url('/'));\n\n global $site_url;\n $site_url = get_site_url();\n\n wp_cache_set('has_lead_form', false);\n wp_cache_set('add_ate_form', false);\n}", "title": "" }, { "docid": "eb1a4a07d9dd39232410e3e2e17455e7", "score": "0.5549369", "text": "public function define_constants() {\n define( 'WD_ACADEMY_VERSION', self::version );\n define( 'WD_ACADEMY_FILE', __FILE__ );\n define( 'WD_ACADEMY_PATH', __DIR__ );\n define( 'WD_ACADEMY_URL', plugins_url( '', WD_ACADEMY_FILE ) );\n define( 'WD_ACADEMY_ASSETS', WD_ACADEMY_URL . '/assets' );\n }", "title": "" }, { "docid": "c35fab257835e7fe58ce015163a32c9c", "score": "0.5547223", "text": "public function loadVars(){\n\t\t\n\t\tforeach ($_POST as $key => $val){\n\t\t\t$GLOBALS[$key] = $val;\n\t\t}\n\t\t\n\t\tforeach ($_GET as $key => $val){\n\t\t\t$GLOBALS[$key] = $val;\n\t\t}\n\t}", "title": "" }, { "docid": "9760c1074f380b4777fbec99156eb6e5", "score": "0.5543494", "text": "abstract protected function setVariables();", "title": "" }, { "docid": "04890d8e3a229da40f2041a019fa8027", "score": "0.55401033", "text": "function globalsTest(){\n $GLOBALS[\"fullName\"] = $GLOBALS[\"fName\"] . $GLOBALS[\"sName\"];\n }", "title": "" }, { "docid": "28e6dc76eeefe0e803d7928ca6a912ba", "score": "0.5531264", "text": "public function define_constants() {}", "title": "" }, { "docid": "b045cc7a6792131095f0cef85ac5fdaa", "score": "0.5514267", "text": "function getVars() {\n }", "title": "" }, { "docid": "37de09af95d54aefa3e6a524b46f6abb", "score": "0.54963315", "text": "static function __init()\n {\n $variables = config::select('mysli.frontend')->as_array();\n\n foreach ($variables as $key => $var)\n {\n if (substr($key, 0, 6) !== 'front.') continue;\n\n $key = explode('.', $key, 2);\n static::$variables['front'][$key[1]] = $var[1];\n }\n\n static::find_language();\n return true;\n }", "title": "" }, { "docid": "231e425fe83f5b4ab39771732a531c9b", "score": "0.548805", "text": "private function loadExternalVariables()\n\t{\n\t\t$_defaultSubPage='home';\n\t\t$_defaultGUI='frontend';\n\n\t\t// -- 403, 404 error handlers\n\t\tif(isset($_GET['403'])) { throw new \\Exception ('#403 you do not have permission to access this page, sorry about that.');}\n\t\tif(isset($_GET['404'])) { throw new \\Exception ('#404 the page you requested ('. $_SERVER[REQUEST_URI]. ') does not exist.');}\n\t\t\n\t\t// -- initialise variables from GET\t\n\t\t//\n\t\tif(isset($_GET['ajax'])){ $_ajaxRequest = true;} else { $_ajaxRequest = false;}\t\n\t\tif(isset($_GET['class'])){ $_ajaxClass = $_GET['class'];} else { $_ajaxClass = false;}\n\t\t\n\t\tif(isset($_GET['class'])){ $_ajaxClass = $_GET['class'];} else { $_ajaxClass = false;}\n\t\tif(isset($_GET['page'])){ $_defaultSubPage = $_GET['page'];}\n\t\t\n\t\t$_defaultSubPage=$_defaultSubPage.'-notloggedin';\n\t\n\t\t$this->set('requestedpage',$_defaultGUI. '_'. $_defaultSubPage);\n\t}", "title": "" }, { "docid": "e459a57e6b1810e79b8c7b4eec32b5e6", "score": "0.54816556", "text": "private function snapshotConstants(): \\void {}", "title": "" }, { "docid": "0b5a6d6027969825c00c02226c7aa235", "score": "0.5479133", "text": "public function __construct() {\n $this->static = true;\n }", "title": "" }, { "docid": "9a3d31a97e570ed7e75c21d6a8ec7c19", "score": "0.5463118", "text": "function myTest() {\r\n static $x =0;\r\n echo $x;\r\n $x++; //value dari variabel x akan bertambah berurutan ke samping\r\n}", "title": "" }, { "docid": "3d2c171848cc3291efe266103a37ec42", "score": "0.5451379", "text": "public static function generateSiteConstants()\n\t{\n\t\t$filename = Zend_Registry::get('siteconstant_file_path');\n\t\t$site_model = new Default_Model_Sitepreference();\n\t\t$site_data = $site_model->getActiveRecord();\n\t\tif(!empty($site_data)){\n\t\t$site_data = $site_data[0];\n \n $utc = new DateTimeZone('UTC');\n $dt = new DateTime('now', $utc); \n $current_tz = new DateTimeZone($site_data['tz_value']);\n $tzoffset = $current_tz->getOffset($dt);\n $offset = self::formatOffset($tzoffset);\n \n \n\t\t$site_content = \"<?php\n defined('DATEFORMAT_PHP') || define('DATEFORMAT_PHP','\".$site_data['date_format'].\"');\n defined('DATEFORMAT_MYSQL') || define('DATEFORMAT_MYSQL','\".$site_data['mysql_dateformat'].\"');\n defined('DATEFORMAT_JS') || define('DATEFORMAT_JS','\".$site_data['js_dateformat'].\"');\n defined('DATE_DESCRIPTION') || define('DATE_DESCRIPTION','\".$site_data['date_description'].\"');\n defined('TIME_FORMAT') || define('TIME_FORMAT','\".$site_data['time_format'].\"'); \n defined('TIMEZONE_OFFSET') || define('TIMEZONE_OFFSET','\".$offset.\"'); \n defined('CURRENCY_FORMAT') || define('CURRENCY_FORMAT','\".$site_data['currency'].\"');\n defined('PASSWORD_FORMAT') || define('PASSWORD_FORMAT','\".$site_data['passwordtype'].\"');\n ?>\";\n\t\ttry{\n\t\t\t$handle = fopen($filename, \"w+\");\n\t\t\tfwrite($handle,trim($site_content));\n\t\t\tfclose($handle);\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t\n\t\t}\n\t\t}\n\t\t\n\t\t\t\n\t}", "title": "" }, { "docid": "e894f49e1a2b70f9a84a776b0f77c239", "score": "0.54319984", "text": "function getVariables();", "title": "" }, { "docid": "fc58caf579658537c6917b68d50cc616", "score": "0.543114", "text": "public static function activateStaticCache() {\n\t\tself::$USE_STATIC_CACHE = true;\n\t}", "title": "" }, { "docid": "423187f0e5cae74a023becca730ffb6c", "score": "0.54306406", "text": "public function vars();", "title": "" }, { "docid": "53ea8b2e89a80227df4079c06e878b55", "score": "0.5429255", "text": "private function setMagicConstants()\n {\n $real_path = realpath($this->mySourceFilename);\n\n $this->myReplace['__FILE__'] = \"'\".DataLayer::realEscapeString($real_path).\"'\";\n $this->myReplace['__ROUTINE__'] = \"'\".$this->myRoutineName.\"'\";\n $this->myReplace['__DIR__'] = \"'\".DataLayer::realEscapeString(dirname($real_path)).\"'\";\n }", "title": "" }, { "docid": "5b0ad92360c08e97323da5cca15bd8bf", "score": "0.53982556", "text": "function wp_initial_constants() {}", "title": "" }, { "docid": "4f6cda3ac244d00e2f45371fd40b54d6", "score": "0.5390805", "text": "function data($list) {\n\t$vars = explode(',',$list);\n\tforeach($vars as $var) {\n\t\t$var = trim($var);\n\t\tif(isset($_GET[$var])) {\n\t\t\t$GLOBALS[$var] = $_GET[$var];\n\t\t}\n\t}\n}", "title": "" }, { "docid": "1b7bc132b66431a8a42077660742b48b", "score": "0.5385072", "text": "public static function staticInit() {\n // Nothing special\n }", "title": "" }, { "docid": "1b7bc132b66431a8a42077660742b48b", "score": "0.5385072", "text": "public static function staticInit() {\n // Nothing special\n }", "title": "" }, { "docid": "7de6d129e8642c2793349026173553e5", "score": "0.53806394", "text": "function keep_track(){\r\n\tSTATIC $count=0; //declaring static variable by putting keyword STATIC infront of the variable name $count.\r\n\t$count++;\r\n\tprint $count;\r\n\tprint \"\r\n\t\";\r\n\t}", "title": "" }, { "docid": "eae629a627464eb2795aa8cb34fa5ca1", "score": "0.5378812", "text": "protected function prepareVariable()\n {\n /** Init cache key */\n $this->cached_configuration_name = strtolower(str_replace('{ACTION}', $this->action, str_replace('{MODULE}', $this->getModuleName(), $this->cached_configuration_name)));\n $this->cached_filter_form_object_name = strtolower(str_replace('{ACTION}', $this->action, str_replace('{MODULE}', $this->getModuleName(), $this->cached_filter_form_object_name)));\n }", "title": "" }, { "docid": "00c13f6d842f3480408636ec89fd276b", "score": "0.53745186", "text": "public function getvar(){\n\t\t\n\t}", "title": "" }, { "docid": "0ca43343cb8d7d3ae963c012e277f9bf", "score": "0.53608656", "text": "private function get_replace_vars()\n {\n }", "title": "" }, { "docid": "0ca43343cb8d7d3ae963c012e277f9bf", "score": "0.53608656", "text": "private function get_replace_vars()\n {\n }", "title": "" }, { "docid": "e26b56f7ea6e3ec39965eea5b5b8d299", "score": "0.5355421", "text": "function define_constants(){\n\t\tdefine( 'JB_VERSION', $this->version );\n\t\tdefine( 'JB_URI', get_template_directory_uri() );\n\t\tdefine( 'JB_ASSET_URI', get_template_directory_uri().'/assets/' );\n\n\t}", "title": "" }, { "docid": "9e34e48844cd6d90f7a33d1e3a3dd65c", "score": "0.5341337", "text": "public static function get_replace_vars()\n {\n }", "title": "" }, { "docid": "5b205f059e51949396184c97e03db342", "score": "0.5336409", "text": "public static function initialise(){\r\n\t\t$settings = static::default_values();\r\n\t\t$current_settings = self::GET_ALL(array(),false);\r\n\t\tforeach($current_settings as $cur_setting){\r\n\t\t\tdefine(\"_\".str_replace(\" \",\"_\",strtoupper($cur_setting['name'])).\"_\",$cur_setting['value']);\r\n\t\t\tunset($settings[$cur_setting['name']]);\r\n\t\t}\r\n\t\tforeach($settings as $ns_n => $ns_v){\r\n\t\t\t$ns = Setting::get();\r\n\t\t\t$ns->name($ns_n);\r\n\t\t\t$ns->value($ns_v);\r\n\t\t\tif ($ns->save()){\r\n\t\t\t\t$cur_setting = $ns->asArray();\r\n\t\t\t\tdefine(\"_\".str_replace(\" \",\"_\",strtoupper($cur_setting['name'])).\"_\",$cur_setting['value']);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bff5b4e33c98da52961d0af6a36e19b3", "score": "0.53334045", "text": "public function returnDemo()\n {\n// return static::$_745644782;\n }", "title": "" }, { "docid": "4f4306d0567a0f62ef5386f9e9489862", "score": "0.5332026", "text": "public static function init()\n\t{\n\t\t$class = __CLASS__ ;\n\n\t\t// Named global variable to make access for other scripts easier.\n\t\t$GLOBALS[ $class ] = new $class;\n\t}", "title": "" }, { "docid": "4d13aa50558fca04cdfd761e2d19cfa0", "score": "0.53270394", "text": "function _InitVars(){\r\n\t\t\r\n\t\tparent::_initVars();\r\n\t\t$this->TemplatesDir = getcwd().'/modules/shipping/templates/';\r\n\t\t$this->DB_TABLE = $this->_getDBName();\r\n\t\t$this->title = COURIER_TTL;\r\n\t\t$this->description = COURIER_DSCR;\r\n\t\t\r\n\t\t$this->Settings = array(\r\n\t\t\t'CONF_COURIER_COUNTRY',\r\n\t\t\t'CONF_COURIER_ZONE',\r\n\t\t\t'CONF_COURIER_RATES'\r\n\t\t\t);\r\n\t}", "title": "" }, { "docid": "e8c7d6dfa7d3b28b2226bc387bc362de", "score": "0.5320436", "text": "private function get_replacement_variables()\n {\n }", "title": "" }, { "docid": "0b5b27a6ff95f86d79d7853cba5012b0", "score": "0.5313644", "text": "protected function define()\n {\n }", "title": "" }, { "docid": "005647ae30c1399db310ba718218517a", "score": "0.53120327", "text": "static function staticFile(){\n self::loadFiles(F3::get('PARAMS.file'));\n }", "title": "" }, { "docid": "7e2831753d44a9055b2340cb65b5ee9f", "score": "0.5307015", "text": "protected function defaultComplexVariables(): void\n {\n }", "title": "" }, { "docid": "f0399d06173aae3fe5964446f46f0f50", "score": "0.52983165", "text": "public static function staticInit() {\n self::$logger = Logger::getLogger(__CLASS__);\n self::$wbs_idList = array();\n }", "title": "" }, { "docid": "32205207aa7aba8db5c19c001c05e6a1", "score": "0.52811", "text": "public static function pacmec_create_globals_vars() : void\n {\n global $PACMEC;\n putenv('TMPDIR=' . PACMEC_PATH . \"/.tmp\");\n if($_SERVER['SERVER_NAME'] == PACMEC_HOST)\n {\n $PACMEC['hooks'] = \\PACMEC\\System\\Hooks::getInstance();\n $PACMEC['DB'] = \\PACMEC\\System\\DB::conexion();\n $PACMEC['ip'] = Self::get_ip_address();\n $PACMEC['host'] = $_SERVER['SERVER_NAME'];\n $PACMEC['fullData'] = Self::get_data_full();\n $PACMEC['lang'] = Self::get_detect_lang();\n $PACMEC['path_orig'] = \\str_replace([PACMEC_HOST], '', isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : $_SERVER['REQUEST_URI']);\n $PACMEC['path'] = \\strtok($PACMEC['path_orig'], '?');\n $PACMEC['glossary'] = Self::get_langs_http();\n $PACMEC['theme'] = [];\n $PACMEC['plugins'] = [];\n $PACMEC['options'] = [];\n $PACMEC['alerts'] = [];\n $PACMEC['total_records'] = $PACMEC['DB']->getTotalRows();\n //$PACMEC['route'] = new \\PACMEC\\System\\Route();\n if(!empty($PACMEC['fullData']['lang'])){\n $PACMEC['lang'] = in_array($PACMEC['fullData']['lang'], \\array_keys($PACMEC['glossary'])) ? $PACMEC['fullData']['lang'] : (!empty($_COOKIE['language']) ? $_COOKIE['language'] : PACMEC_LANG_DEF);\n $PACMEC['glossary'] = Self::get_langs_http();\n }\n } else {\n exit(\"Servidor no autorizado. \");\n }\n }", "title": "" }, { "docid": "6fb3feeaf627f4d8fea84a3e88f0028b", "score": "0.5278994", "text": "public function vm_define_constants()\n\t{\n\t\tdefine('MENU_VERSION', self::version);\n\t\tdefine(\"MENU_FILE\", __FILE__);\n\t\tdefine(\"MENU_PATH\", __DIR__);\n\t\tdefine(\"MENU_URL\", plugins_url('', MENU_FILE));\n\t\tdefine(\"MENU_ASSETS\", MENU_URL . '/assets');\n\t}", "title": "" }, { "docid": "4c585ecf84076ecdd24afed75fa52e13", "score": "0.52712226", "text": "private function _base_vars()\n {\n // identify the page type\n $this->pagetype = 'module';\n if ((stristr(System::serverGetVar('PHP_SELF'), 'admin.php') || strtolower($this->type) == 'admin')) {\n $this->pagetype = 'admin';\n } elseif (empty($module)) {\n $this->pagetype = 'home';\n }\n\n // set some basic class variables from Zikula\n $this->isloggedin = UserUtil::isLoggedIn();\n $this->uid = UserUtil::getVar('uid');\n\n // assign the query string\n $this->qstring = System::serverGetVar('QUERY_STRING', '');\n\n // assign the current script\n $this->requesturi = System::getCurrentUri();\n\n // define the cache_id if not set yet\n if ($this->caching && !$this->cache_id) {\n // module / type / function / uid_X|guest / customargs|homepage/startpageargs\n $this->cache_id = $this->toplevelmodule . '/' . $this->type . '/' . $this->func\n . '/' . UserUtil::getUidCacheString()\n . (!$this->homepage ? $this->_get_customargs() : '/homepage/' . str_replace(',', '/', System::getVar('startargs')));\n }\n\n // assign some basic paths for the engine\n $this->template_dir = $this->themepath . '/templates'; // default directory for templates\n\n $this->themepath = 'themes/' . $this->directory;\n $this->imagepath = $this->themepath . '/images';\n $this->imagelangpath = $this->themepath . '/images/' . $this->language;\n $this->stylepath = $this->themepath . '/style';\n $this->scriptpath = $this->themepath . '/javascript';\n\n // make the base vars available to all templates\n $this->assign('module', $this->toplevelmodule)\n ->assign('uid', $this->uid)\n ->assign('loggedin', $this->isloggedin)\n ->assign('pagetype', $this->pagetype)\n ->assign('themepath', $this->themepath)\n ->assign('imagepath', $this->imagepath)\n ->assign('imagelangpath', $this->imagelangpath)\n ->assign('stylepath', $this->stylepath)\n ->assign('scriptpath', $this->scriptpath);\n\n // load the theme variables\n $variables = ModUtil::apiFunc('Theme', 'user', 'getvariables', array('theme' => $this->name));\n $this->assign($variables['variables']);\n }", "title": "" }, { "docid": "4483c478bbe51e0007eb7b1f6af17c06", "score": "0.52706325", "text": "function variables() {\n\t\tif(empty($this->u)) $this->u = array('','/','/','') ; # <-- Sintaxis de URL (para su uso con mod_rewrite)\n\t\tif(empty($this->p)) $this->p = 'p' ; # <-- Variable de página\n\t\tif(empty($this->e)) $this->e = array('<a href=\"','\">','</a>') ; # <-- Formato de enlace\n\t\tif(empty($this->m)) $this->m = 9 ; # <-- Máximo de páginas a mostrar (número impar)\n\t}", "title": "" }, { "docid": "a226124a548a07f6ab91f9046f882f58", "score": "0.5267023", "text": "function globalize();", "title": "" }, { "docid": "483c7bca294a3fb804227ada007fb886", "score": "0.5263296", "text": "protected function assignVariables() {\n\t\tWCF::getTPL()->assign(array(\n\t\t\t'signature' => $this->signature,\n\t\t\t'signatureEnableBBCodes' => $this->signatureEnableBBCodes,\n\t\t\t'signatureEnableSmilies' => $this->signatureEnableSmilies,\n\t\t\t'signatureEnableHtml' => $this->signatureEnableHtml,\n\t\t\t'disableSignature' => $this->disableSignature,\n\t\t\t'disableSignatureReason' => $this->disableSignatureReason\n\t\t));\n\t}", "title": "" }, { "docid": "0a5ee80ae6d15d927739804d2f99fdde", "score": "0.5254004", "text": "public function refactory(){\n \n $this->actualizar_diccionary();\n \n $globales = new Global_var();\n \n \n foreach($this->diccionario2 as $clave=>$valor){\n \n $this->base = str_ireplace('{'.$clave.'}', $valor, $this->base);\n\n \n }\n \n foreach ($globales->global_var as $clave => $valor){\n $this->base = str_ireplace('{'.$clave.'}', $valor, $this->base);\n }\n\n echo $this->base; \n \n }", "title": "" }, { "docid": "63f878e9faa62157108422f197698904", "score": "0.5242437", "text": "function test()\n{\n\n // echo $GLOBALS['kin']; <---- LABAI BLOGAI!!!\n \n // echo $kin;\n $bebras = 'BEBRAS';\n}", "title": "" }, { "docid": "4254d90ac7ccbf0cce0b8596a0bafda5", "score": "0.52373743", "text": "public function _initConstants()\n {\n\t$hashsalt= $this->getOption('hashsalt');\n\tZend_Registry::set('hashsalt', $hashsalt);\n }", "title": "" }, { "docid": "c1ff82abb355c181c8a2ca4811dade21", "score": "0.5224834", "text": "function __const(){\n \n }", "title": "" }, { "docid": "04e32ccd635521533ee160de9f0574ca", "score": "0.52238965", "text": "public static function createFromGlobals();", "title": "" }, { "docid": "9815e8dadac71c8ac9b6262c08301546", "score": "0.52217525", "text": "public function get_replace_vars_script_data()\n {\n }", "title": "" }, { "docid": "82772e53ae7c7ad6e00fc2ec75c5be9d", "score": "0.5217728", "text": "private function define()\n {\n require CORE . '/Conf.php';\n Conf::init();\n define('WEB', ABSPATH . '/web');\n define('DEBUG', Conf::get('nc.debug'));\n define('CLI', !isset($_SERVER['HTTP_HOST']));\n }", "title": "" }, { "docid": "bd099906a9969657e09dd06f8220eb7a", "score": "0.5205545", "text": "public function onTwigSiteVariables()\n {\n $twig = $this->grav['twig'];\n $twig->twig_vars['taxonomy'] = $this->grav['taxonomy'];\n $twig->twig_vars['taxonomylist'] = new TaxonomyList();\n\n // $pageText = strip_tags($this->grav['page']->content());\n // $twig->twig_vars['word_count'] = str_word_count($pageText);\n }", "title": "" }, { "docid": "5a82f798f2a6559c3f5d25bcd0188b7c", "score": "0.5203854", "text": "public function _js_vars()\n {\n }", "title": "" }, { "docid": "5c857bbcc365b0be6ea44776020d34c6", "score": "0.5198961", "text": "public static function clearvars()\n {\n \tself::$_vars = array();\n }", "title": "" }, { "docid": "59f29dcea77bc7fbc04dff90c46e99e3", "score": "0.5190164", "text": "function initConstants()\n{\n $theme = wp_get_theme();\n define('THEME_NAME', $theme->get('Name'));\n define('THEME_URL', $theme->get('ThemeURI'));\n define('CORP_NAME', $theme->get('Author'));\n define('THEME_VERSION', $theme->get('Version'));\n define('TEXT_DOMAIN', $theme->get('TextDomain'));\n\n define('SITE_URL', WP_HOME);\n define('THEME_DIR', get_template_directory());\n define('THEME_DIR_URI', get_template_directory_uri());\n define('IMAGE_DIR', '/dist/images/');\n define('DIST_URL', THEME_DIR_URI . '/dist/');\n\n define('CALLRAIL_PHONE', '888-685-5770');\n define('GTM_ID', 'WN6PR9C');\n}", "title": "" }, { "docid": "7953e773e20da1daad47cd7316ab8d38", "score": "0.51830196", "text": "function setVars()\n\t{\n\t\t$prefixes = Configure::read(\"Routing.prefixes\");\n\t\tforeach($prefixes as $prefix)\n\t\t{\n\t\t\t$this->set(\"is_$prefix\", !empty($this->request->params[$prefix]));\n\t\t}\n\n\t}", "title": "" }, { "docid": "83c5db8f01e6f55d25f1a80a2b28c71a", "score": "0.51797825", "text": "private function static_contents() {\r\n\r\n parent::set_view(__FUNCTION__, $this->class_name . '/' . \"static_contents\" . '/index.php');\r\n }", "title": "" }, { "docid": "f7a89ea67a39caa39de789ff777e200c", "score": "0.51797736", "text": "protected function get_replace_vars()\n {\n }", "title": "" }, { "docid": "b352dcab414d651c052c2a648dc300e0", "score": "0.51761645", "text": "public function localize_replace_vars_script()\n {\n }", "title": "" }, { "docid": "06d404351eb81c6e3e731ab6e9b481ad", "score": "0.51729935", "text": "public static function getStatic()\n {\n return self::$static;\n }", "title": "" }, { "docid": "17cede68dfb8e2decd18ff083956409e", "score": "0.5172398", "text": "public function init() {\n $this->setTempPathByModule();\n $webroot = Common::getWebRoot();\n $staticroot = Yaf_Application::app()->getConfig()->staticroot;\n $this->assign(\"webroot\", $webroot);\n $this->assign(\"staticPath\", $staticroot . '/static');\n $this->assign(\"commonPath\", $staticroot . '/static/common');\n $this->assign(\"staticAdvertiserPath\", $staticroot . '/static/advertiser');\n $this->assign(\"attachPath\", Common::getAttachPath());\n $this->assign('token', Common::getToken());\n $this->assign('version', Common::getConfig('siteConfig', 'version'));\n $this->assign('titlepre', Common::getTitlePre());\n // init actions\n foreach ($this->actions as $key => $value) {\n $this->assign($key, $value);\n }\n if ($this->isAjax()) {\n Yaf_Dispatcher::getInstance()->disableView();\n }\n }", "title": "" }, { "docid": "1a34c034439ca43305cc816f3ab72a76", "score": "0.5162556", "text": "static public function defineGlobalObjects()\n {\n if (self::debug())\n Debugger::prepare();\n }", "title": "" }, { "docid": "6827fca3b663cd8543d9eb734469b551", "score": "0.51597726", "text": "public function define_constants() {\n define( 'POST_EMAIL_VERSION', self::version );\n define( 'POST_EMAIL_FILE', __FILE__ );\n define( 'POST_EMAIL_PATH', __DIR__ );\n define( 'POST_EMAIL_URL', plugins_url( '', POST_EMAIL_FILE ) );\n define( 'POST_EMAIL_ASSETS', POST_EMAIL_URL . '/assets' );\n }", "title": "" }, { "docid": "25cb99ea1131f4b2953bb6d5e0156a70", "score": "0.5153241", "text": "function tt_global_set($var, $val)\n{\n global $_tt_global_variables;\n $_tt_global_variables[$var] = $val;\n}", "title": "" }, { "docid": "f7941b82363de83e37911d6573887270", "score": "0.5151559", "text": "public function getVars();", "title": "" }, { "docid": "f7df9687ecfa2e0c2e2ed3f3dba2b4e9", "score": "0.5138975", "text": "private static function init(): void {\n if (isset(self::$identifierTokens)) {\n return;\n }\n\n // Based on semi_reserved production.\n self::$identifierTokens = \\array_fill_keys([\n \\T_STRING,\n \\T_STATIC, \\T_ABSTRACT, \\T_FINAL, \\T_PRIVATE, \\T_PROTECTED, \\T_PUBLIC, \\T_READONLY,\n \\T_INCLUDE, \\T_INCLUDE_ONCE, \\T_EVAL, \\T_REQUIRE, \\T_REQUIRE_ONCE, \\T_LOGICAL_OR, \\T_LOGICAL_XOR, \\T_LOGICAL_AND,\n \\T_INSTANCEOF, \\T_NEW, \\T_CLONE, \\T_EXIT, \\T_IF, \\T_ELSEIF, \\T_ELSE, \\T_ENDIF, \\T_ECHO, \\T_DO, \\T_WHILE,\n \\T_ENDWHILE, \\T_FOR, \\T_ENDFOR, \\T_FOREACH, \\T_ENDFOREACH, \\T_DECLARE, \\T_ENDDECLARE, \\T_AS, \\T_TRY, \\T_CATCH,\n \\T_FINALLY, \\T_THROW, \\T_USE, \\T_INSTEADOF, \\T_GLOBAL, \\T_VAR, \\T_UNSET, \\T_ISSET, \\T_EMPTY, \\T_CONTINUE, \\T_GOTO,\n \\T_FUNCTION, \\T_CONST, \\T_RETURN, \\T_PRINT, \\T_YIELD, \\T_LIST, \\T_SWITCH, \\T_ENDSWITCH, \\T_CASE, \\T_DEFAULT,\n \\T_BREAK, \\T_ARRAY, \\T_CALLABLE, \\T_EXTENDS, \\T_IMPLEMENTS, \\T_NAMESPACE, \\T_TRAIT, \\T_INTERFACE, \\T_CLASS,\n \\T_CLASS_C, \\T_TRAIT_C, \\T_FUNC_C, \\T_METHOD_C, \\T_LINE, \\T_FILE, \\T_DIR, \\T_NS_C, \\T_HALT_COMPILER, \\T_FN,\n \\T_MATCH,\n ], true);\n }", "title": "" }, { "docid": "69958c834f40f9fec71c2dbbdf8d7043", "score": "0.51196146", "text": "public function load_constants() {}", "title": "" }, { "docid": "dc81bb6ecbf9eb13904c1ba69b1362c2", "score": "0.511917", "text": "function test1() {\r\n\t $GLOBALS['y']=$GLOBALS['x']+$GLOBALS['y'];\r\n }", "title": "" }, { "docid": "330a6a210c70bb13305a90e404bc3157", "score": "0.5117596", "text": "protected function get_replacement_variables()\n {\n }", "title": "" }, { "docid": "e9388aa08f10f5bd6fb2d060d1ae56a7", "score": "0.51101655", "text": "public static function getSiteAddress(){\n return self::$SITE_ADDRESS;\n}", "title": "" }, { "docid": "2c61f9caccf0ae446b7590dff3008e85", "score": "0.510737", "text": "protected function define_my_settings() {\n }", "title": "" }, { "docid": "bbd3a8d995822657b2e4e1c334771a30", "score": "0.5103384", "text": "public function _js_vars() {}", "title": "" } ]
8434129f65946572818d460a501242fc
Reserve the slug $this>slug/apply for the page named that
[ { "docid": "f0c490ae5926bd810dcc623995c6b2fc", "score": "0.0", "text": "function rewrite_apply_page( $rules ) {\n\t\t\n\t\t$my_rule = [];\n\t\t\t\n\t\t$my_rule[$this->slug.'/apply/?$'] = 'index.php?pagename='.$this->slug.'/apply'; \t\n\t\t\n\t\t//Put our rule first since its pretty specific and important\n\t\t$rules = $my_rule + $rules;\n\n\t\treturn $rules;\n\t\t\n\t}", "title": "" } ]
[ { "docid": "96fbc3e8001437cd644b18fe6bb36fbf", "score": "0.6365038", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->name);\n }\n }", "title": "" }, { "docid": "fcdbadfef6c40c6a858d352bc3c822fc", "score": "0.6281324", "text": "public function beforeValidate()\n {\n if (!$this->exists && !$this->slug)\n $this->slug = Str::slug($this->name);\n }", "title": "" }, { "docid": "218e7c5ba4f38046136cb1ad56cb609a", "score": "0.6246478", "text": "public function initSlug(){\n if (empty($this->slug))\n {\n $slugify = new Slugify();\n $this->slug= $slugify->slugify($this->label);\n }\n }", "title": "" }, { "docid": "d4a606be712e219200ee475316ae40f0", "score": "0.62438136", "text": "public function onBeforeWrite() {\n\t\tparent::onBeforeWrite();\n\t\t\n\t\tif(!$this->Slug) {\n\t\t\t$str = strtolower(trim($this->Title));\n\t\t\t$str = preg_replace('/[^a-z0-9-]/', '-', $str);\n\t\t\t$str = preg_replace('/-+/', \"-\", $str);\n\t\t\t\n\t\t\t// check for conflicts\n\t\t\t$check = 0;\n\t\t\t$query = $str;\n\t\t\t$return = false;\n\n\t\t\twhile(DB::query(\"SELECT COUNT(*) FROM \\\"Job\\\" WHERE \\\"Slug\\\" = '$query'\")->value() > 0) {\n\t\t\t\tif($check == 20) {\n\t\t\t\t\tbreak; // something went wrong\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$query = $str .'-'. substr(md5(rand()), 0, 16);\n\t\t\t\t\n\t\t\t\t$check++;\n\t\t\t\t$return = $query;\n\t\t\t}\n\n\t\t\t$this->Slug = ($return) ? $return : $str;\n\t\t}\n\t}", "title": "" }, { "docid": "32d529dba6c6cb1b77f839ede2e274d0", "score": "0.62396795", "text": "abstract protected function get_slug();", "title": "" }, { "docid": "32d529dba6c6cb1b77f839ede2e274d0", "score": "0.62396795", "text": "abstract protected function get_slug();", "title": "" }, { "docid": "fb88df86f534b1bff320ad3ac6504070", "score": "0.6236667", "text": "protected function cleanSlug() {\n if( $this->slug == '' ) {\n $this->slug = $this->name;\n }\n $this->slug = strtolower($this->slug);\n $this->slug = str_replace(' ', '_', $this->slug);\n }", "title": "" }, { "docid": "d60a08a51b56eaa9cc08e854c19faee3", "score": "0.6186947", "text": "public function initializeSlug(){\n if(empty($this->slug)) {\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->title);\n }\n }", "title": "" }, { "docid": "d4df5e33609f8d16fce352f2f3f14d61", "score": "0.6175237", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->title);\n }\n }", "title": "" }, { "docid": "4fbc1f00089dc26b96d3997cc2052f8f", "score": "0.6130713", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n\n $slug = new Slugify();\n $this->slug = $slug->slugify($this->title);\n }\n }", "title": "" }, { "docid": "5a72e244ecd014c9870a834b6ae17a91", "score": "0.6088746", "text": "public function initilizeSlug(): void {\n if (!$this->slug):\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->firstName.' '.$this->lastName);\n endif;\n }", "title": "" }, { "docid": "4f18bf9a517564f1598fb82d13ee8f2f", "score": "0.60869277", "text": "public function initializeSlug()\n { \n $slugify = new Slugify();\n if(!empty($this->title)){\n $title = $slugify->slugify($this->title);\n }\n if (empty($this->slug)) {\n $this->slug = $slugify->slugify($this->title);\n } else if($title != $this->slug){\n $this->slug = $title;\n }\n }", "title": "" }, { "docid": "940fb061d1bc4a5daa481e14b8b92bb3", "score": "0.60657924", "text": "protected function autoFillSlug()\n {\n $slug = $this->request->get('slug', '');\n $name = $this->request->get('name', '');\n $slug = $slug == '' ? str_slug($name, '-') : str_slug($slug, '-');\n $this->merge([\n 'slug' => $slug\n ]);\n }", "title": "" }, { "docid": "c914c1c6c067c45d01d684703545a6ee", "score": "0.6029867", "text": "public function slug();", "title": "" }, { "docid": "c914c1c6c067c45d01d684703545a6ee", "score": "0.6029867", "text": "public function slug();", "title": "" }, { "docid": "804c95999b2e4084802813e09a5cf58a", "score": "0.6021233", "text": "public function setSlugAttribute()\n {\n $this->attributes['slug'] =Str::slug($this->name, '-').'.aspx';\n }", "title": "" }, { "docid": "18f4fd457a62f254deb135f25f6efc49", "score": "0.6009794", "text": "public function initializeSlug()\n {\n if (empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->title);\n }\n }", "title": "" }, { "docid": "a3d95fa15066134765e6347fe0e7993a", "score": "0.60056686", "text": "public function initializedSlug(){\n\n //verification de slug c-a-d le moment de la creation, mise a jour\n\n if(empty($this->slug))\n {\n //Instanciation de slsug\n $slugify= new Slugify();\n //Creation de slug\n $this->link=$slugify->slugify($this->title);\n }\n}", "title": "" }, { "docid": "4a4c158237a1045a03b23a4bd5038222", "score": "0.59920484", "text": "public function initializeSlug(){\n $slugger = new AsciiSlugger();\n if(empty($this->slug)){\n $this->slug = $slugger->slug($this->nom);\n }\n }", "title": "" }, { "docid": "396befec508ba17636c7413b7e01928a", "score": "0.59657", "text": "public function initializeSlug()\n {\n if(empty($this->slug)) {\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->title);\n }\n }", "title": "" }, { "docid": "2ca93282782dff4798aa13c5c55add56", "score": "0.5960712", "text": "function bbp_get_paged_slug()\n{\n}", "title": "" }, { "docid": "08ed6909317b0b36e12bb841ad65c570", "score": "0.59280074", "text": "public function setSlug($slug) {\n if($this->slug == \"main\") {\n return; \n }\n \n $this->slug = $slug;\n }", "title": "" }, { "docid": "a88ee831ac1de40ab033a5fe1ac2a02e", "score": "0.5877006", "text": "public function refreshSlug(): string;", "title": "" }, { "docid": "eb317531e40e8a99512f2c94a6cc0f75", "score": "0.5875316", "text": "protected function _create_slug()\n {\n $this->slug = create_slug($this->slug);\n }", "title": "" }, { "docid": "ad593c380d9a635d1733f205ef76df9b", "score": "0.5852345", "text": "public function onBeforeWrite()\n {\n parent::onBeforeWrite();\n if (!empty($this->EnglishTitle)) {\n $slugify = new Slugify();\n $this->URLSegment = $slugify->slugify($this->EnglishTitle);\n }\n }", "title": "" }, { "docid": "370b8bb9f54bafabe52af9f904c8116e", "score": "0.5852079", "text": "public function slug() {\n return get_page_uri($this->homepage());\n }", "title": "" }, { "docid": "66f157c53190f41ae6c93682dfa6291a", "score": "0.5772329", "text": "function slug() { return ppb_parameterize($this->name); }", "title": "" }, { "docid": "1a861dde45b9153044e77fdced0cc015", "score": "0.5740779", "text": "function forSlug($slug);", "title": "" }, { "docid": "cd72fb7dffbed2cc0a8f34aee87e5a8a", "score": "0.5708449", "text": "function _unique_slug($str)\n{\n // UNLESS it's the slug for the current page\n\n $id = $this->uri->segment(4);\n $this->db->where('slug', $this->input->post('slug'));\n !$id || $this->db->where('id !=', $id);\n $page = $this->page_m->get();\n\n if (count($page)) {\n $this->form_validation->set_message('_unique_slug', '%s should be unique');\n return FALSE;\n }\n return TRUE;\n}", "title": "" }, { "docid": "090b078f8ea195d4247ce09abb52f23c", "score": "0.5673863", "text": "public function setSlug($slug);", "title": "" }, { "docid": "090b078f8ea195d4247ce09abb52f23c", "score": "0.5673863", "text": "public function setSlug($slug);", "title": "" }, { "docid": "090b078f8ea195d4247ce09abb52f23c", "score": "0.5673863", "text": "public function setSlug($slug);", "title": "" }, { "docid": "d237d4f8529e4c05ba189afee9bba71e", "score": "0.5667356", "text": "abstract public function sluggable(): string;", "title": "" }, { "docid": "8fa8e99d42782993a0d5333e723c5aa1", "score": "0.56651264", "text": "private function createSlug() {\r\n \r\n $proposal = substr(create_slug($this->title), 0, 32);\r\n \r\n $result = $this->db->fetchAll(\"SELECT id FROM event WHERE slug = ?\", $proposal); \r\n \r\n if (count($result)) {\r\n $proposal .= count($result);\r\n }\r\n \r\n $this->slug = $proposal;\r\n $this->commit();\r\n \r\n }", "title": "" }, { "docid": "d0874f28c8bf1f780a9d1473427fed9d", "score": "0.5646093", "text": "public function get_slug();", "title": "" }, { "docid": "026f489f6b687377605908b9285011be", "score": "0.56380963", "text": "function bbp_admin_setting_callback_single_slug_section()\n{\n}", "title": "" }, { "docid": "a9aac97ec4d94e3179d095cd72cdfbfb", "score": "0.5600034", "text": "private function single_job_page() {\n\t\t$single_job_page_slug = get_option( self::SINGLE_JOB_PAGE_SLUG_KEY, false );\n\t\tif ( ! $single_job_page_slug ) {\n\t\t\t$post_details = array(\n\t\t\t\t'post_title' => 'Single Job Page',\n\t\t\t\t'post_content' => '[' . Single_Job_Shortcode::tag . ']',\n\t\t\t\t'post_status' => 'publish',\n\t\t\t\t'post_author' => 1,\n\t\t\t\t'post_type' => 'page'\n\t\t\t);\n\t\t\t$page_id = wp_insert_post( $post_details );\n\t\t\t$page = get_post( $page_id );\n\t\t\t$slug = $page->post_name;\n\t\t\tupdate_option( self::SINGLE_JOB_PAGE_SLUG_KEY, $slug );\n\t\t}\n\t}", "title": "" }, { "docid": "87541866b3f1c37cfa9e4f155ce476e0", "score": "0.5598984", "text": "public function tag()\n\t{\n\t\t$_slug = preg_replace( '#' . app_setting( 'url', 'shop' ) . 'tag/?#', '', uri_string() );\n\n\t\tif ( $_slug ) :\n\n\t\t\t$this->_tag_single( $_slug );\n\n\t\telse :\n\n\t\t\t$this->_tag_index();\n\n\t\tendif;\n\t}", "title": "" }, { "docid": "dbf12ce174d1d982566e366800459a90", "score": "0.55777985", "text": "protected function _before_save()\n {\n $this->_create_slug();\n }", "title": "" }, { "docid": "221bb94e0a17ed842c8a767de513435f", "score": "0.55766696", "text": "public function beforeCreate()\n {\n if (!$this->exists && !$this->slug)\n $this->slug = Str::slug($this->name);\n }", "title": "" }, { "docid": "ec6556c0ffdb72d1780458cbe23756d2", "score": "0.55557394", "text": "public function slug($slug);", "title": "" }, { "docid": "c4085810322ab991cf3e59981a7f6a06", "score": "0.55514276", "text": "public function getSlug();", "title": "" }, { "docid": "c4085810322ab991cf3e59981a7f6a06", "score": "0.55514276", "text": "public function getSlug();", "title": "" }, { "docid": "5cc48d5a55ac2fd6edd8471e182506d7", "score": "0.5548484", "text": "public function executeGetPageSlug(sfWebRequest $request)\n {\n $title = $request->getParameter('title');\n $act = $request->getParameter('act');\n $id= $request->getParameter('id');\n\t\t$temp = $request->getParameter('temp');\n\t\t\n\t\tif($temp == \"CE\")\n\t\t\t$websiteId = 1;\n\t\telseif($temp == \"LG\")\n\t\t\t$websiteId = 2;\n\n $slugTitle = clsCommon::slugify($title);\n\n // Check if Slug is reserved for Website, creted for Routing issues\n $reservedSlugForPageAndPracticeArea = sfConfig::get('app_ReservedSlugForPageAndPracticeArea_keywords') ;\n if(in_array($slugTitle, $reservedSlugForPageAndPracticeArea)) {\n $slugTitle = $slugTitle.'1';\n }\n\n $checkSlug = CMSPagesTable::checkSlugExist($websiteId, $slugTitle, $act, $id);\n if (count($checkSlug)>0) {\n $slugTitle = $checkSlug[0]['Slug'].'-'.count($checkSlug);\n return $this->renderText(\"$slugTitle\");\n }else {\n return $this->renderText(\"$slugTitle\");\n }\n }", "title": "" }, { "docid": "049507c254d99da8aeef60ce2b53ea9c", "score": "0.55482954", "text": "function _le_admin_make_webbuilder_page_slug_unique($page)\n{\n $webbuilder_id = isset($page->field_webbuilder[0]) ? $page->field_webbuilder[0]->target_id : null;\n $slug = isset($page->field_slug[0]) ? $page->field_slug[0]->value : null;\n\n if ($webbuilder_id && $slug) {\n $query = \\Drupal::entityQuery('node');\n $query->condition('field_webbuilder', $webbuilder_id);\n $query->condition('nid', $page->id(), '!=');\n $query->condition('field_slug', $slug);\n $result = $query->execute();\n\n if (count($result)) {\n $slug = $slug . '-' . $page->id();\n $page->set('field_slug', $slug);\n $page->save();\n }\n }\n}", "title": "" }, { "docid": "2dbc3c6aee2c90b775ecac38debe781c", "score": "0.5544579", "text": "public function onBeforeWrite(){\r\n\t\tif($this->owner->Title){\t\t\t\r\n\t\t\t$this->owner->URLSegment = $this->generateURLSegment($this->owner->Title);\t\t\t\t\r\n\t\t}\r\n\t\tparent::onBeforeWrite();\r\n\t}", "title": "" }, { "docid": "ebd6a7b3f7882acaa9b679fe1cbbf4d6", "score": "0.5465167", "text": "public function getSlug() { return (string)$this->slug; }", "title": "" }, { "docid": "08cb436d8a3b8bc9790dd281df06f512", "score": "0.5464778", "text": "public function getProjectPageBySlug($slug);", "title": "" }, { "docid": "561f21a80d3cebc96790784da0e3a30f", "score": "0.5439867", "text": "public static function onAfterPageInsert(AbstractPage $page)\n {\n Slugs::setFromPattern($page, $page->slugPattern(), true);\n }", "title": "" }, { "docid": "1a029a0d49596e3296b950a6fc0d2a17", "score": "0.54349947", "text": "function the_slug(){\n\tglobal $blog;\n\treturn $blog->the_slug();\n}", "title": "" }, { "docid": "e22af2d9aa827055dd5ab30ad3f431c4", "score": "0.54265475", "text": "public function get_slug() {\n\t\t\treturn apply_filters( 'pue_get_slug', $this->slug );\n\t\t}", "title": "" }, { "docid": "7add0219469f4b7ef45f3e646f00ab49", "score": "0.54246897", "text": "public function toSlug()\n {\n $this->slug = str_replace(' ', '-', strtolower($this->name));\n }", "title": "" }, { "docid": "e9df6073e149ddfb461f1a47ff235231", "score": "0.5423631", "text": "function osc_static_page_slug() {\n return osc_static_page_field(\"s_internal_name\");\n }", "title": "" }, { "docid": "c8346c304b0905031fc49a9d6842a18b", "score": "0.5395485", "text": "public static function onAfterPageUpdate(AbstractPage $page)\n {\n Slugs::setFromPattern($page, $page->slugPattern());\n }", "title": "" }, { "docid": "7a12ffb5a661782740a40f9c5363762c", "score": "0.5392831", "text": "public function range()\n\t{\n\t\t$_slug = preg_replace( '#' . app_setting( 'url', 'shop' ) . 'range/?#', '', uri_string() );\n\n\t\tif ( $_slug ) :\n\n\t\t\t$this->_range_single( $_slug );\n\n\t\telse :\n\n\t\t\t$this->_range_index();\n\n\t\tendif;\n\t}", "title": "" }, { "docid": "02ee69587fa8e355ea9fd608bf20a42a", "score": "0.5379111", "text": "public function getSlug()\n {\n return $this->slug;\n }", "title": "" }, { "docid": "d37b0cea6162e42c3baab6b970615ec9", "score": "0.5374307", "text": "public function set_slug( $new_value ) {\n\t\t$new_slug = sanitize_title( $new_value );\n\t\t$this->slug = $new_slug;\n\t\t$this->definition[ self::DEF_SLUG ] = $new_slug;\n\t}", "title": "" }, { "docid": "58096800f6b3cd732f4bb5ff5d9f2736", "score": "0.5373173", "text": "function bbp_admin_setting_callback_search_slug()\n{\n}", "title": "" }, { "docid": "f2d9f6d8cfb6fa5222beeb96a3f6a751", "score": "0.535772", "text": "public function set_slug( $slug ) {\n\t\tif ( empty( $slug ) ) {\n\t\t\t$slug = $this->get_name();\n\t\t}\n\t\t$this->slug = $slug;\n\t}", "title": "" }, { "docid": "550c13ed382098ee5f9e79684865f980", "score": "0.5352492", "text": "public function get_slug ()\n {\n return sanitize_title (pathinfo ($this->path, PATHINFO_FILENAME));\n }", "title": "" }, { "docid": "80959084c90802164694ba988ad52284", "score": "0.5341525", "text": "function lr_configure_page_for_archive(){\n if(is_archive()){\n global $page_of_archive;\n $page_of_archive = get_page_by_path(get_post_type_object( get_post_type() )->rewrite['slug']);\n }\n}", "title": "" }, { "docid": "4059ea5087fd45d494b6c41c2eb87923", "score": "0.53385806", "text": "protected function applyCustomSettings()\n {\n $this->enable(array('slug'));\n \n $this['slug']\n ->removeWidgetAttribute('class')\n ;\n }", "title": "" }, { "docid": "4f456a30394bbd98100e64e68aca7394", "score": "0.53358364", "text": "public function the_slug(){\n\t\treturn $this->the_slug;\n\t}", "title": "" }, { "docid": "5f053140a38044359fa2ffdcbf316685", "score": "0.53154063", "text": "public function beforeCreate()\n {\n $this->slug = Str::slug($this->title);\n }", "title": "" }, { "docid": "b50523703287737d5d628aae520a1e01", "score": "0.5313085", "text": "public function getpage($pagename)\n {\n \n // Empty pagename should be turned into NULL, or otherwise the Sprig will still load a page successfully (the last added page, to be exact)\n if (empty($pagename))\n {\n $pagename = -1;\n }\n \n // Check whether we deal with a pagename that is meant to identify a numerical id (in the form of domain.com/[something]/_numericid)\n if (substr($pagename, 0, 1) == \"_\" AND is_numeric(substr($pagename, 1)))\n {\n $page = Wi3::inst()->model->factory(\"site_page\")->set('id', substr($pagename, 1))->load();\n }\n else\n {\n $page = Wi3::inst()->model->factory(\"site_page\")->set('slug', $pagename)->load();\n }\n \n // Check whether the load was succesfull\n if (!$page->loaded()) \n {\n // Load landingpage. This is always an ID, not a slug\n $pageid = (!empty(Wi3::inst()->sitearea->site->landingpage) ? Wi3::inst()->sitearea->site->landingpage : Wi3::inst()->sitearea->site->notfoundpage);\n if (empty($pageid)) { $pageid = -1; }\n $page = Wi3::inst()->model->factory(\"site_page\")->set('id', $pageid)->load();\n // Check if that worked, else load notfoundpage\n if (!$page->loaded()) \n {\n // Load notfoundpage\n $pageid = Wi3::inst()->sitearea->site->notfoundpage;\n if (empty($pageid))\n {\n // If empty, then load first page\n $pageposition = Wi3::inst()->model->factory(\"site_pageposition\")->load(NULL,1); // limit to 1\n $page = Wi3::inst()->sitearea->page = $pageposition->pages[0];\n } \n else\n {\n $page = Wi3::inst()->model->factory(\"site_page\")->set('slug', $pageid)->load();\n // If loading notfoundpage did not work, then load first page\n if (!$page->loaded()) \n {\n $pageposition = Wi3::inst()->model->factory(\"site_pageposition\")->load(NULL,1); // limit to 1\n $page = Wi3::inst()->sitearea->page = $pageposition->pages[0];\n }\n }\n }\n }\n return $page;\n }", "title": "" }, { "docid": "b1dbbcc15e523270acb4f0aa3e8bba04", "score": "0.5309491", "text": "public function beforeValidate()\n {\n // if ($this->use_configurations)\n // $this->price = 0;\n\n\n $this->slug = CMS::slug($this->name);\n\n\n return parent::beforeValidate();\n }", "title": "" }, { "docid": "646416427cbc4ccfd230c26d17af3b0d", "score": "0.53069735", "text": "public function whereName($string) : Page\n {\n return $this->model->where('slug', $string)->first();\n }", "title": "" }, { "docid": "5e0e6340aadca59537610336a3672f50", "score": "0.52902836", "text": "function zeo_final_title(){\n\t$zeo_rewrite_title = new zeo_rewrite_title();\n\n\t// We want to act when the page is 99% complete\n\tadd_action('wp_footer', array(&$zeo_rewrite_title, 'wpzeo_footer'));\n\n\t// There is no action hook for \"start of processing\",\n\t// so we use this implicitly.\n\t$zeo_rewrite_title->starting();\n}", "title": "" }, { "docid": "63f21014de75d04c93c5344585e02394", "score": "0.5284404", "text": "public function set_slug($slug)\n {\n $this->set_field('post_name', $slug);\n }", "title": "" }, { "docid": "82be0323c4282dbc980ea8583ca6bf98", "score": "0.5270214", "text": "protected function get_main_page_slug() {\n\t\treset( $this->pages );\n\n\t\treturn key( $this->pages );\n\t}", "title": "" }, { "docid": "08cc4e9d15725becf7ad88e35a3bc0bd", "score": "0.5260288", "text": "function bbp_admin_setting_callback_view_slug()\n{\n}", "title": "" }, { "docid": "26c7b337e9de3606c5768a09d690cdb5", "score": "0.52570814", "text": "public function onBeforeUnpublish() {\n\t\t\\Injector::inst()->get( 'OpenSemanticSearchService' )->removePage( $this->Link() );\n\t}", "title": "" }, { "docid": "2269ddb0a25bc9a668c01fb511c3c627", "score": "0.52417976", "text": "public static function removePrefixPage($slug)\n\t{\n\t Yii::app()->cmsCache->delete(self::getPrefixPageKey($slug));\n\t}", "title": "" }, { "docid": "f05a71a08b244b4721904c39ca248b15", "score": "0.52395654", "text": "public function setSlugAttribute()\n {\n $this->attributes['slug'] = Str::slug($this->title);\n }", "title": "" }, { "docid": "2d3cb8384257c048d08b539a4316a677", "score": "0.52347213", "text": "public function generateSlug()\n {\n $value = $this->generateRawSlug();\n $value = Inflector::urlize($value);\n\n /** @var \\Tx\\CzSimpleCal\\Domain\\Repository\\EventIndexRepository $eventIndexRepository */\n $eventIndexRepository = $this->objectManager->get('Tx\\\\CzSimpleCal\\\\Domain\\\\Repository\\\\EventIndexRepository');\n\n $slug = $eventIndexRepository->makeSlugUnique($value, $this->uid);\n $this->setSlug($slug);\n }", "title": "" }, { "docid": "74fc0e4aa68ffe6d819a55fae321bff8", "score": "0.52255046", "text": "function bbp_sanitize_slug($slug = '')\n{\n}", "title": "" }, { "docid": "9f16600313fda97ab0223fa3077857a1", "score": "0.5208524", "text": "public function postInsert($event)\n {\n // Create a virtual page for this item\n $page = new aPage();\n $page['slug'] = $this->getVirtualPageSlug();\n // Search is good, let it happen\n $page['view_is_secure'] = false;\n // ... But not if we're unpublished\n $page->archived = !($this->status === 'published');\n $page->save();\n $this->Page = $page;\n\n // Create a slot for the title and add to the virtual page\n $title = $page->createSlot('aText');\n $title->value = 'Untitled';\n $title->save();\n $page->newAreaVersion('title', 'add',\n array(\n 'permid' => 1,\n 'slot' => $title));\n\n // Create a slot to index the tags and categories in search.\n $catTag = $page->createSlot('aText');\n $catTag->value = '';\n $catTag->save();\n $page->newAreaVersion('catTag', 'add',\n array(\n 'permid' => 1,\n 'slot' => $catTag));\n\n // Make default values for this item\n $this['slug'] = 'untitled-'.$this['id'];\n $this['title'] = 'untitled';\n $this['slug_saved'] = false;\n\n // This prevents post preupdate from running after the next save\n $this->update = false;\n $this->save();\n }", "title": "" }, { "docid": "2fa86b9ab39234ced1c11e8d4011e637", "score": "0.52005637", "text": "public function preCreate()\n {\n $this->generateSlug();\n }", "title": "" }, { "docid": "4e6c4986e456086f54843985b10c4f78", "score": "0.5192111", "text": "function replace_by_slug( $slug = null ) {\n\n\t\t\tif ( ! $slug ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tglobal $menu;\n\n\t\t\tforeach ( $menu as $position => $item ) {\n\n\t\t\t\tif ( ! in_array( $slug, $item ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$this->iter++;\n\t\t\t\t$new_index = $this->start_position + $this->iter;\n\n\t\t\t\tdo {\n\t\t\t\t\t$this->iter++;\n\t\t\t\t\t$new_index = $this->start_position + $this->iter;\n\t\t\t\t} while ( isset( $menu[$new_index] ) );\n\n\t\t\t\tunset( $menu[$position] );\n\t\t\t\t$menu[$new_index] = $item;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "aefb4bc145eccf60f1b6ea71eb1266bb", "score": "0.5189135", "text": "function slugCheckAction() {\n\t\tglobal $site;\n\t\t$request = $site->getRequest();\n\t\t$response = $site->getResponse();\n\t\t$dbh = $site->getDatabase();\n\t\t$name = $request->post('name');\n\t\t$id = $request->post('id');\n\t\t$slug = $site->toAscii($name);\n\t\t$data = [];\n\t\t$data['name'] = $name;\n\t\t$result = 'error';\n\t\t$message = 'This slug already exist';\n\t\t$form = PaymentsForms::getBySlug($slug, ['conditions' => \" AND id != {$id}\"]);\n\t\tif (!$form) {\n\t\t\t$message = 'Need a new slug';\n\t\t\t$result = 'success';\n\t\t\t$data['slug'] = $slug;\n\t\t}\n\t\treturn $response->ajaxRespond($result, $data, $message);\n\t}", "title": "" }, { "docid": "e6bfcd3f3fd0ba2c610f742848744af5", "score": "0.51832926", "text": "public function getSlug() : string;", "title": "" }, { "docid": "ccf3a058b80775e6ec6bc75dedbfa43d", "score": "0.51821685", "text": "function bbp_admin_setting_callback_edit_slug()\n{\n}", "title": "" }, { "docid": "8f738e43f9374b5ca260070c33f5bcd5", "score": "0.5180931", "text": "public function get_current_page_slug()\n {\n $current_screen = get_current_screen();\n $current_page = $current_screen->base;\n\n // Make sure the 'parent_base' is woocommerce, because 'base' could have changed name\n if ($current_screen->parent_base == 'woocommerce') {\n $current_page_slug = preg_replace('/.+_page_/', '', $current_page);\n $current_page_slug = preg_replace('/-/', '_', $current_page_slug);\n }\n\n // Otherwise return some other page slug\n else {\n $current_page_slug = isset($_GET['page']) ? $_GET['page'] : '';\n }\n\n return $current_page_slug;\n }", "title": "" }, { "docid": "289dadb4ea5ea4464f9d8397fd3af893", "score": "0.51785976", "text": "function slug() {\n\t\treturn $this->_post->post_name;\n\t}", "title": "" }, { "docid": "b6f03e78e444e6eea12ca01e125d6e4a", "score": "0.5167924", "text": "public function cms_page(){\n\t $slug=$this->params->url;\n if($slug){\n $content=$this->Cms->findByUrlKey($slug);\n $this->set('Content',$content);\n }\n }", "title": "" }, { "docid": "c0f37efacddf9f5c0601eb6d9885389e", "score": "0.5166151", "text": "function bbp_admin_setting_callback_root_slug_section()\n{\n}", "title": "" }, { "docid": "75b8ff653215f7c343caf53d8c52bd97", "score": "0.5145576", "text": "public function bySlug($slug);", "title": "" }, { "docid": "c7cfe939923e41db3e84a9d3c9782357", "score": "0.51450974", "text": "public function getRouteKeyName(){\n return 'slug';\n }", "title": "" }, { "docid": "407ea28fd9cecbabfc1ddecb5dc9aa56", "score": "0.5143527", "text": "public function convertStringToSlugAction()\n {\n // -------------------------------\n // strip special chars\n // strip html, js, etc\n // convert accented chars\n // replace camel case to dashes ('-')\n // replace delimiters to dashes ('-')\n // lowercase all words\n // trim to 256\n // validate slug\n }", "title": "" }, { "docid": "4f632c1ca9036b77166216b34f5c1610", "score": "0.51389676", "text": "public function postAction($slug) {\n\n }", "title": "" }, { "docid": "ce298172b21362c647bcd69d818064b1", "score": "0.513685", "text": "public function viewStandAloneAction($slug)\n {\n $em = $this->getDoctrine()->getManager();\n $page = $em->getRepository('MesdHelpWikiBundle:Page')->findOneBySlug($slug);\n\n $pages = array();\n $slugs = array();\n\n if (!$page) {\n if (true === extension_loaded('pspell')) {\n $pspell = \\pspell_new('en');\n $terms = preg_split('/[\\-\\_\\.]/', strtolower($slug));\n\n $qb = $em->createQueryBuilder();\n $qb->select('p.slug')->from('MesdHelpWikiBundle:Page', 'p');\n\n foreach ($terms as $term) {\n $suggestions = pspell_suggest($pspell, strtolower($term));\n\n foreach ($suggestions as $suggestion) {\n $suggest = preg_replace('/[^\\w]/', '', strtolower($suggestion));\n\n $cqb = [];\n\n\n $cqb[] = $qb->expr()->like(\"LOWER(CONCAT(p.title, ''))\", \"'%$suggest%'\");\n $cqb[] = $qb->expr()->like(\"LOWER(CONCAT(p.slug, ''))\", \"'%$suggest%'\");\n\n $qb->orWhere(call_user_func_array(array($qb->expr(), 'orx'), $cqb));\n }\n\n $pages = array_merge($pages, $qb->getQuery()->getResult());\n }\n }\n\n if (!empty($pages)) {\n foreach ($pages as $k => $v) {\n $slugs[] = $v['slug'];\n }\n $slugs = array_unique($slugs);\n }\n\n return $this->render('MesdHelpWikiBundle:Page:noPage.html.twig', array(\n 'slugs' => $slugs,\n 'menu' => new Menu(),\n ));\n }\n\n if (false === $this->get('security.context')->isGranted('VIEW', $page)) {\n throw new AccessDeniedException('Unauthorized access!');\n }\n\n $title = preg_replace('/\\s*?\\bpages?\\b\\s*?$/i', '', $page->getTitle());\n\n\n return $this->render('MesdHelpWikiBundle:Page:viewStandAlone.html.twig', array(\n 'page' => $page,\n 'menu' => new Menu(),\n ));\n }", "title": "" }, { "docid": "2454ef7cb4a0b928f883819a7e50a2bd", "score": "0.5136694", "text": "public function url() {\n $this->url = env('APP_FONTEND_URL') . '/' . 'landing_page/id/' . $this->id . '/' . str_slug($this->name);\n }", "title": "" }, { "docid": "6a1b2da3efef2dc7526662b860180049", "score": "0.5135217", "text": "private function _new_page($slug)\n {\n $this->render['view'] = 'wiki/new';\n $this->action_new($slug);\n }", "title": "" }, { "docid": "f9f9ddad5c4d81700f671bcb4e272357", "score": "0.5129691", "text": "public function setPageName()\r\n\t{\r\n\t\t$this->sPageName = basename(preg_replace('/\\.php$/', '', $_SERVER['PHP_SELF']));\r\n\t\tif (preg_match('#^'.__PS_BASE_URI__.'modules/([a-zA-Z0-9_-]+?)/(.*)$#', $_SERVER['REQUEST_URI'], $m))\r\n\t\t\t$this->sPageName = 'module-'.$m[1].'-'.str_replace(array('.php', '/'), array('', '-'), $m[2]);\r\n\t}", "title": "" }, { "docid": "6e88d26fe113e5a769f6600f39d08d38", "score": "0.5128315", "text": "public function slugStrategy(): string\n {\n return 'title';\n }", "title": "" }, { "docid": "20c8cf0c47dbaf07f47532be7f989bbf", "score": "0.51280767", "text": "public function get_slug() {\n\t\t/**\n\t\t * Filter the action slug.\n\t\t *\n\t\t * @since 7.0\n\t\t *\n\t\t * @param string $slug The action slug.\n\t\t * @param string $name The action name.\n\t\t */\n\t\treturn apply_filters( 'tml_get_action_slug', $this->slug, $this->get_name() );\n\t}", "title": "" }, { "docid": "1d24c7876c2616f8102eeeb637528a75", "score": "0.511905", "text": "private function cleanPageUrl()\r\n {\r\n switch ($this->page_method)\r\n {\r\n case \"url\":\r\n $term = \"(/{$this->page_url_marker}/[0-9]+)\";\r\n break;\r\n case \"get\":\r\n $term = \"({$this->page_url_marker}=[0-9]+&?)\";\r\n break;\r\n }\r\n $this->page_url = preg_replace(\"!{$term}!\",'', $this->page_url);\r\n $this->page_url = str_replace('&', '&amp;', $this->page_url);\r\n }", "title": "" }, { "docid": "3a262f83161e8b2d21522c0ffbbfd120", "score": "0.5117067", "text": "public function viewUnsecuredStandAloneAction($slug)\n {\n $em = $this->getDoctrine()->getManager();\n\n $page = $em->getRepository('MesdHelpWikiBundle:Page')->findOneBySlug($slug);\n\n $entities = array();\n $slugs = array();\n\n if (!$page) {\n if (true === extension_loaded('pspell')) {\n $pspell = \\pspell_new('en');\n $terms = preg_split('/[\\-\\_\\.]/', strtolower($slug));\n\n $qb = $em->createQueryBuilder();\n $qb->select('p.slug')->from('MesdHelpWikiBundle:Page', 'p');\n\n foreach ($terms as $term) {\n $suggestions = pspell_suggest($pspell, strtolower($term));\n\n foreach ($suggestions as $suggestion) {\n $suggest = preg_replace('/[^\\w]/', '', strtolower($suggestion));\n\n $cqb = [];\n\n\n $cqb[] = $qb->expr()->like(\"LOWER(CONCAT(p.title, ''))\", \"'%$suggest%'\");\n $cqb[] = $qb->expr()->like(\"LOWER(CONCAT(p.slug, ''))\", \"'%$suggest%'\");\n\n $qb->orWhere(call_user_func_array(array($qb->expr(), 'orx'), $cqb));\n }\n\n $entities = array_merge($entities, $qb->getQuery()->getResult());\n }\n }\n\n if (!empty($entities)) {\n foreach ($entities as $k => $v) {\n $slugs[] = $v['slug'];\n }\n $slugs = array_unique($slugs);\n }\n\n return $this->render('MesdHelpWikiBundle:Page:noPage.html.twig', array(\n 'slugs' => $slugs,\n 'menu' => new Menu(),\n ));\n }\n\n $title = preg_replace('/\\s*?\\bpages?\\b\\s*?$/i', '', $page->getTitle());\n\n\n return $this->render('MesdHelpWikiBundle:Page:viewStandAlone.html.twig', array(\n 'page' => $page,\n 'menu' => new Menu(),\n ));\n }", "title": "" }, { "docid": "f51ee0efea9468d1ae1a9a453a9d8c25", "score": "0.5102123", "text": "public function setTitle(string $title) \t\t{$this->title = $title;$this->setSlug(create_slug($title));}", "title": "" }, { "docid": "913c28af6ef5628b3f123a952a45e8ff", "score": "0.50996345", "text": "public function set_slug( $slug ) {\n\t\t$this->set_prop( 'slug', $slug );\n\t}", "title": "" }, { "docid": "03a4c8d6260bc9c3b9149c987276a1db", "score": "0.5099373", "text": "public function getSlug(){\n if( $slug = $this->slug ){\n return $slug;\n }\n // fall back to runtime handle\n return $this->getHandle();\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "cd749a934c696538b3e099b4d2ba0015", "score": "0.7626235", "text": "public function create()\n {\n $fields = $this->getModelAttributes();\n return view('admin::resource.create', [\n 'fields' => $fields,\n 'model_name' => $this->modelName,\n ]);\n }", "title": "" }, { "docid": "f1aa5d7e46cf00cbf41bf58f5ceda0c2", "score": "0.75828713", "text": "public function create()\n {\n //Show form\n return view(\"crud.create\");\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.756992", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.756992", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "847f31131a446a7e6b918b68e4c25931", "score": "0.7517925", "text": "public function create()\n {\n $this->authorize('create'.static::property('permissionsKey'), $this->property('model'));\n abort_unless($this->property('creatable'), 404);\n $this->initCrud('create');\n\n return view(\n 'sanjab::crud.form',\n [\n 'widgets' => $this->widgets,\n 'properties' => $this->properties(),\n ]\n );\n }", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.74919313", "text": "public function create()\n {\n return view('resources.create');\n }", "title": "" }, { "docid": "22c85d143923c7286b034ce76c3999f2", "score": "0.7447393", "text": "public function create()\n {\n return view('client_resources/create');\n }", "title": "" }, { "docid": "4eaea77a3f9e9b50f3e0414af79bf7a7", "score": "0.74348414", "text": "public function create()\n {\n return view('Management.form');\n }", "title": "" }, { "docid": "e9c275016c949096478e7c1212af850f", "score": "0.74239606", "text": "public function create()\n {\n return view('dashboard.resources.create');\n }", "title": "" }, { "docid": "39eb14c98184bf87cb7b9b926cd342cb", "score": "0.73507077", "text": "public function create()\n {\n return view('admin.' . $this->resource . '.edit')\n ->with('resource', $this->resource);\n }", "title": "" }, { "docid": "88695e4b149d95720c5ac55533797c54", "score": "0.7300315", "text": "public function create()\n {\n return view('libro.form');\n }", "title": "" }, { "docid": "6e94861dae8254ceeb5bf383628ede0a", "score": "0.72934973", "text": "public function create()\n {\n return view('his.form');\n }", "title": "" }, { "docid": "6cf06b4ee844ead00717499172b83025", "score": "0.7283192", "text": "public function create()\n\t{\n\n\t\treturn $this->view('form');\n\t}", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.7276815", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.7276815", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "6b9b7e6e4f2dbc9ec96ee045c814e5a9", "score": "0.72266895", "text": "public function create()\n {\n $resource = $this->resource->with('fields')->where('slug', $this->slug)->first();\n\n $hasWysiwyg = false;\n\n foreach($resource->fields as $field)\n {\n if($field->type == 'wysiwyg') $hasWysiwyg = true;\n\n if($field->type == 'relational')\n {\n $model = $field->data('model');\n $options[$field->slug] = $model::all()->lists($field->data('title'), $field->data('key'));\n }\n }\n\n return view('laramanager::resource.create', compact('resource', 'hasWysiwyg', 'options'));\n }", "title": "" }, { "docid": "f10c72d1d374d3db79ac1e8a9b8873a7", "score": "0.7224755", "text": "public function newAction() {\n #BreadCrumbs\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem(\"Dashboard\", $this->get(\"router\")->generate(\"admin_dashboard\"));\n $breadcrumbs->addItem(\"Pessoa\", $this->get(\"router\")->generate(\"admin_pessoa\"));\n $breadcrumbs->addItem(\"Novo\");\n\n $entity = new Pessoa();\n $form = $this->createCreateForm($entity);\n\n return $this->render('NutrirBoxBundle:Pessoa:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "615e1e405829434ac8a2641e8cda70cd", "score": "0.7205283", "text": "public function create()\n {\n \n return $this->view('form');\n }", "title": "" }, { "docid": "24f9cccb94c863a3597c726aa6fbf63a", "score": "0.7203125", "text": "public function newAction()\n {\n $entity = $this->getEntity();\n $form = $this->createForm($this->getForm(), $entity);\n\n return $this->render('AdminBundle:'. $this->getEntityName() .':new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "f3c9f12e975dc77a01826c005093d6b2", "score": "0.72012186", "text": "public function create()\n {\n return view('backend.school.addform');\n }", "title": "" }, { "docid": "7a3ec01c72669a385174d3ad261d470c", "score": "0.71980596", "text": "public function create()\n {\n return view('fishing.form_create');\n }", "title": "" }, { "docid": "0c04a47c6f7506359f9abcc642a0f02d", "score": "0.7174097", "text": "public function create()\n {\n $data['model'] = $this->model;\n $data['routeResource'] = $this->routeResource;\n\n return view('rasrobin\\crud::create', $data);\n }", "title": "" }, { "docid": "cf99d23ef746497f004a96ecca3a9044", "score": "0.7160771", "text": "public function create()\n {\n return view('Admin.Form.add');\n }", "title": "" }, { "docid": "32f51dcef719e9b15d121d0b155470d8", "score": "0.7141282", "text": "public function create()\n {\n return view('admin.target.forms.create');\n }", "title": "" }, { "docid": "3df2368951f0ac654c89e5a1194b65cf", "score": "0.7129091", "text": "public function create()\n {\n return view ('admin.resto.create');\n }", "title": "" }, { "docid": "e979c69b68c637bd06301921bbe0ddee", "score": "0.71279466", "text": "public function create()\n\t{\n\t\treturn view('forms.supplier');\n\t}", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7112556", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7112556", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7112556", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "495c845ffaf7a74f790c1a203f1edc12", "score": "0.7101068", "text": "protected function showCreateForm()\n\t{\n\n\t\treturn Response::view('adm/Obs/create');\n\n\t}", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.70769805", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "f2ff56c20f7b7b43ea1adc235d66e0b2", "score": "0.70727074", "text": "public function create()\n {\n return view('create_new');\n }", "title": "" }, { "docid": "a55bf151cf36ab4ee4f398e16d69496e", "score": "0.7069364", "text": "public function create()\n {\n return view(\"aktuelno.create\");\n }", "title": "" }, { "docid": "bd4f863612d48ed4663bd0cdfa80052a", "score": "0.7060612", "text": "public function create() {\n return view( 'allergen.create' );\n }", "title": "" }, { "docid": "25f912097858426291657ade2c3dec4d", "score": "0.705775", "text": "public function create()\n {\n return view('clients.createForm');\n }", "title": "" }, { "docid": "6f5d674aa27746b092c1ffe7dd20d184", "score": "0.7044916", "text": "public function create()\n {\n return view('form.newkamar');\n }", "title": "" }, { "docid": "6039f43b38d3c6d347e4435587e3a07f", "score": "0.7024193", "text": "public function create()\n {\n return $this->cView(\"form\");\n }", "title": "" }, { "docid": "6039f43b38d3c6d347e4435587e3a07f", "score": "0.7024193", "text": "public function create()\n {\n return $this->cView(\"form\");\n }", "title": "" }, { "docid": "128da9f8aa4b206632b5b3b35bf28ca1", "score": "0.7022235", "text": "public function create()\n {\n\t\treturn view('form',array('inserido'=>false, 'insercao'=>false, 'erro'=>null));\n }", "title": "" }, { "docid": "c636af9277b006e5ea5ea872cb0d452e", "score": "0.7022063", "text": "public function create()\n\t{\n\t\treturn view('task._form');\n\t}", "title": "" }, { "docid": "9a454ee3306cfd8e58a75119a371cbdd", "score": "0.7020215", "text": "public function create()\n\t\t{\n\t\t\treturn view('create');\n\t\t}", "title": "" }, { "docid": "85517e569b653de2cbd7e2bb2b997d5f", "score": "0.70183676", "text": "public function create()\n {\n if (isset($_GET['question_id'])) {\n $question_id = $_GET['question_id'];\n $question = Question::find($question_id);\n if( $question != null){\n return view('questions/form', compact('question'));\n }\n }\n return view(\"options/form\", [\"questions\" => Question::all()]);\n }", "title": "" }, { "docid": "cbc1937258b10014f8109c79e1f724d8", "score": "0.7014862", "text": "public function create()\n {\n return view(\"reg_form\");\n }", "title": "" }, { "docid": "5d83eb8632311d18a8232b40d1af5f20", "score": "0.7000873", "text": "public function create()\n {\n //form ya ku create\n return view('create');\n }", "title": "" }, { "docid": "10d593cbbc8de65afac98fa2dd12bd96", "score": "0.69969606", "text": "public function create()\n {\n return view('.product.form');\n }", "title": "" }, { "docid": "81c896c9678449c75c1ed4277a8b80a4", "score": "0.6993642", "text": "public function create()\n\t{\n return view('settingInformation.form');\n\t}", "title": "" }, { "docid": "45d37bd0114d869b9ab659945e9c8cd8", "score": "0.6991375", "text": "public function create()\n {\n //\n return view(\"lampirans.create\");\n }", "title": "" }, { "docid": "bf554a06aa60840a36e31daa0fe31054", "score": "0.6985579", "text": "public function newAction()\n {\n $entity = new Tutor();\n $form = $this->createForm(new TutorType(), $entity);\n\n return $this->render('BdxTutoratBundle:Tutor:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "6a99dd7c2b96f96c80b3b926b607b9b7", "score": "0.6981305", "text": "public function create()\n {\n // Show the page\n return view('admin.credit.create_edit');\n }", "title": "" }, { "docid": "cab3875b40e1926cadf5d240d5755c33", "score": "0.698042", "text": "public function create()\n\t{\n\t\treturn view('add');\n\t}", "title": "" }, { "docid": "daf28f960dad10d136b88bf0cb698afe", "score": "0.69714224", "text": "public function create()\n\t{\n\t\treturn view('siswa.add');\n\t}", "title": "" }, { "docid": "2b881c0727ec10fe41bf178ec98febc8", "score": "0.69631636", "text": "function createForm(){\n return view('user/createform');\n }", "title": "" }, { "docid": "8f4f925d144fcbd561a74f4eb50da53b", "score": "0.69606984", "text": "public function create()\n {\n $categories = $this->platFormCatRepository->all();\n return view('plat_forms.create')\n ->with('categories', $categories)\n ->with('model_required',\\Zcjy::modelRequiredParam($this->platFormRepository->model()));\n }", "title": "" }, { "docid": "9cb057d0f77e53e0cce5708d50a6481b", "score": "0.6959774", "text": "public function create()\n {\n return view('new');\n }", "title": "" }, { "docid": "a3fe703c4575f7714a79c1834083fd33", "score": "0.69571084", "text": "public function create()\n {\n $data['url'] = route('admin.'.$this->route . '.store');\n $data['title'] = 'Add ' . $this->viewName;\n $data['module'] = $this->viewName;\n $data['resourcePath'] = $this->view;\n // dd($data);\n\n return view('admin.general.add_form')->with($data);\n }", "title": "" }, { "docid": "568ea885a4e92c3f3dcc0a424d5f6c59", "score": "0.6956596", "text": "public function create()\n {\n $this->authorize('create', [Answer::class]);\n\n return view('resourceRoute.create');\n }", "title": "" }, { "docid": "1307ba3f5634143845f4c2ffe7014fc5", "score": "0.6951933", "text": "public function newAction()\n {\n //Get the form\n $form = $this->getSignupForm();\n\n //Add the form to the view\n $this->view->form = $form;\n\n }", "title": "" }, { "docid": "41eb11154e57dff75498fcf25564c134", "score": "0.6950165", "text": "public function create()\n {\n return view('admin.book.add');\n }", "title": "" }, { "docid": "7b8c9d5cbe582eab2f28c216421a2719", "score": "0.69485027", "text": "public function create()\n {\n return view('proyek.add');\n }", "title": "" }, { "docid": "5ff33c7acc97152a663cdf3160a26831", "score": "0.6944684", "text": "public function create()\n {\n return view('admin.spravochniki.request.form', [\n 'block' => false,\n 'request' => new ModelRequest(),\n ]);\n }", "title": "" }, { "docid": "e0279682128d83f057dec763451b31bc", "score": "0.6941759", "text": "public function create()\n {\n return view('product/form');\n }", "title": "" }, { "docid": "ad623548153e56c22245e48fee70a80f", "score": "0.6936448", "text": "public function create()\n {\n $data['url'] = route($this->route . '.store');\n $data['title'] = __('Add').' '. __($this->label);\n $data['resourcePath'] = $this->view;\n $data['route'] = $this->route;\n\n return view('admin.general.create')->with($data);\n }", "title": "" }, { "docid": "7b154d4b3724cc827c62a643103ec2ef", "score": "0.6932864", "text": "public function create()\n {\n return view('fourier.formCreate');\n }", "title": "" }, { "docid": "dee653019202200b40a5bbd41642b9bf", "score": "0.6928684", "text": "public function newAction()\n {\n $this->view->form = new PeliculasForm(null, ['edit' => true]);\n }", "title": "" }, { "docid": "f1bdc650376e8cc0232d73fad221368f", "score": "0.6927334", "text": "public function create()\n {\n return view('control.create');\n }", "title": "" }, { "docid": "db32a9e40570f5e3b6f29ec12cf7bf6d", "score": "0.69262886", "text": "public function create()\n {\n return view('company/form_create');\n }", "title": "" }, { "docid": "027afc753c513ccea0aa26c4efe7e954", "score": "0.6925848", "text": "public function create()\n {\n return view('admin/form');\n }", "title": "" }, { "docid": "f9dc8bac23c393a94f519f7b2fdb6be0", "score": "0.6922623", "text": "public function create()\n {\n // form goes here\n }", "title": "" }, { "docid": "c1e9c0bcb40a8fbd086627d56c99360c", "score": "0.6922322", "text": "public function create()\n {\n return view('components.etc.write_form');\n }", "title": "" }, { "docid": "a56ae1a4e831d9137638253cc26e259a", "score": "0.69130796", "text": "public function create()\n {\n return view('supir.create');\n }", "title": "" }, { "docid": "5a0f5a391b52ddb780aabb623298e0f5", "score": "0.6908275", "text": "public function create(){\n return view('restful.add');\n }", "title": "" }, { "docid": "0970488c3db9a5f8c034af420d11d820", "score": "0.6899252", "text": "public function create()\n\t{\n\t\t//\n\t\treturn View::make('student.create');\n\t}", "title": "" }, { "docid": "4a1cd8958cd01307d0ecead6ac1bcc80", "score": "0.68992364", "text": "public function create()\n {\n $model = new Employee();\n $status = 0;\n\n return $this->view('employee.form', compact('model', 'status'));\n }", "title": "" }, { "docid": "b710ac6db291a730b45046211e6cb702", "score": "0.6897585", "text": "public function create()\n\t{\n return View::make('admin/formateurs/create');\n\t}", "title": "" }, { "docid": "9bb74ea3a8eb11d7ad6b3bebfc39fbf1", "score": "0.6895679", "text": "public function create()\n {\n return view('Admin.Article.article-creation-form');\n }", "title": "" }, { "docid": "eb61327aac5a1264dae808299a9ae828", "score": "0.6892533", "text": "public function create()\n\t{\n\t\treturn View::make('registrasi.create' );\n\t}", "title": "" }, { "docid": "2984acd37c1bc542eca26984c45d8465", "score": "0.68905455", "text": "public function create()\n {\n return view('admin.karlcrud.create');\n }", "title": "" }, { "docid": "a43ba09f835dbd27d4a3433e6207db17", "score": "0.6890285", "text": "public function create()\n {\n return view('admin.car.create');\n }", "title": "" }, { "docid": "e9341a1375b53713ef8760a5689b525f", "score": "0.68892944", "text": "public function create()\n {\n return view('bookself.create');\n }", "title": "" }, { "docid": "b58ff924b3a3f9910b1eeae648a9a2fa", "score": "0.6888325", "text": "public function create()\n {\n return view('devoirs.create');\n }", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.68860483", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "7311ea20d7522de0066ea36a19e7cd20", "score": "0.68809026", "text": "public function create()\n {\n //\n return view('atg-form');\n }", "title": "" }, { "docid": "ffbbc91eecacd009ec1b4248cab90dff", "score": "0.6877719", "text": "public function create() // atsakinga uz formos atvaizdavima, kuri leidzia sukurti irasus\n {\n return view (\"author.create\");\n }", "title": "" }, { "docid": "71d70dee3fbb8a46b70d495d78e89449", "score": "0.6877413", "text": "public function create() {\n\t\treturn view( 'product.create' );\n\t}", "title": "" }, { "docid": "207e541fffe4606f7ae315a88e21fc10", "score": "0.687724", "text": "public function create()\n\t{\n\t\treturn View::make('backend.referrers.create');\n\t}", "title": "" }, { "docid": "a6e6c7bffb5d673576a15ca1abf51092", "score": "0.687672", "text": "public function create()\n {\n return view('collections.form');\n }", "title": "" }, { "docid": "0c01c590097437f9d4700db1096060fa", "score": "0.68755805", "text": "public function create()\n {\n return view($this->view_path.'.form',['form_type' => 'create']);\n }", "title": "" }, { "docid": "7c346379a95657009b35746ed2305722", "score": "0.6875373", "text": "public function create()\n\t{\n\t\treturn View::make('catalogue.create');\n\t}", "title": "" }, { "docid": "b4525945bdcd19e970b4d9b86a6193ce", "score": "0.6874732", "text": "public function createAction() {\n $post_request = (array) $this->postZingRequest();\n\n /** Handle the request */\n $errors = $this->_handleRequest($post_request);\n\n return $this->renderAdmin('ZingCorePageBundle:Default:form.html.twig', array_merge(\n array(\n 'zing_form_action' => 'Create',\n 'zing_form_errors' => $errors,\n 'post_request' => $post_request\n ),\n $post_request\n ));\n }", "title": "" }, { "docid": "f7304e6dc56cce3d9947b5ce6729aa85", "score": "0.6871703", "text": "public function create()\n\t{\n\t\treturn View::make('licenza.create');\n\t}", "title": "" }, { "docid": "ebdce886eb2fdbea3a87d3f3b92db918", "score": "0.6870793", "text": "public function create()\n {\n return view(\"nomina.create\");\n }", "title": "" }, { "docid": "42c131d9eade9523c90b6cdedaacbe70", "score": "0.68697083", "text": "public function create()\n {\n return view('auditors.form');\n }", "title": "" }, { "docid": "56017529546e8304e804a9b51074a4d9", "score": "0.68693393", "text": "public function create()\n {\n $title = 'Author';\n $custom_cat = 'authors';\n return view('admin.backend.authors.authorForm',compact('title','custom_cat'));\n }", "title": "" }, { "docid": "dbb47aeadc4da817ea8f9487995cf297", "score": "0.686558", "text": "public function create()\n {\n return view('backend.information.create');\n }", "title": "" }, { "docid": "f3629c028fcfa177b464594dc370290b", "score": "0.6860695", "text": "public function create()\n {\n return view('admin.marcas.form');\n }", "title": "" }, { "docid": "5076aaebcae577af1526cd70d2c2b11a", "score": "0.6859377", "text": "public function create()\n {\n //\n return view('supir.create');\n }", "title": "" }, { "docid": "93c1d848ae6ff8f424b0a9a3772d1840", "score": "0.6859202", "text": "public function create()\n {\n return view('Article.form');\n }", "title": "" }, { "docid": "5ca8f4f60f43f710ad0b3d2ef4278141", "score": "0.68588495", "text": "public function create()\n {\n return view(\"students/add\");\n }", "title": "" }, { "docid": "6a2d5b23c14939fb07f566dfcff1ba71", "score": "0.6857287", "text": "public function create()\n {\n return view('student.student.create');\n }", "title": "" }, { "docid": "7b28f26445b6881c693a90b24ca99ad8", "score": "0.68570685", "text": "public function create()\n {\n return view('manage.create');\n }", "title": "" }, { "docid": "45ce62ff3c2da4026a5253e3e69dc4cb", "score": "0.68566704", "text": "public function create()\n {\n Gate::authorize('admin-carreras');\n return view('carrera.carrera-form');\n }", "title": "" } ]
75ae5fd46810921ba7bbe5148f3c67d5
Returns the number of related StudentAssignmentFile objects.
[ { "docid": "7d2b0b9dc01c32124914427c1cbb5136", "score": "0.619462", "text": "public function countStudentAssignmentFiles(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collStudentAssignmentFilesPartial && !$this->isNew();\n if (null === $this->collStudentAssignmentFiles || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collStudentAssignmentFiles) {\n return 0;\n }\n\n if($partial && !$criteria) {\n return count($this->getStudentAssignmentFiles());\n }\n $query = StudentAssignmentFileQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByFile($this)\n ->count($con);\n }\n\n return count($this->collStudentAssignmentFiles);\n }", "title": "" } ]
[ { "docid": "fc483ddadb7c53d643a7a92556089070", "score": "0.6441312", "text": "public function count()\n {\n return count($this->files);\n }", "title": "" }, { "docid": "7664cea854b056f4013720b0d51ab40a", "score": "0.63947", "text": "public function count()\r\n {\r\n return count($this->files);\r\n }", "title": "" }, { "docid": "63d587a162d90706c9a39d35a3c99076", "score": "0.63480574", "text": "function getFileCount()\n {\n return count($this->files);\n }", "title": "" }, { "docid": "f249d7deb02cce5e4985644897601f35", "score": "0.6335949", "text": "public function getFilesCount()\n {\n return $this->getFiles()->count();\n }", "title": "" }, { "docid": "f35efc6a338e76a8e901363e4850a9ab", "score": "0.6318526", "text": "public static function count(): int\n {\n return count((new static())->getModelFiles());\n }", "title": "" }, { "docid": "bc813e27861b855027acfee25d52769a", "score": "0.63036287", "text": "public function getSourceFilesCount()\n {\n return $this->sourceFilesCount;\n }", "title": "" }, { "docid": "2b8a7e57ff29d1a4d1027506a3f4d6a0", "score": "0.62323946", "text": "public function countStudentAssignments($criteria = null, $distinct = false, PropelPDO $con = null)\n {\n if (null === $this->collStudentAssignments || null !== $criteria) {\n if ($this->isNew() && null === $this->collStudentAssignments) {\n return 0;\n } else {\n $query = StudentAssignmentQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByFile($this)\n ->count($con);\n }\n } else {\n return count($this->collStudentAssignments);\n }\n }", "title": "" }, { "docid": "8693aab37b608e38246b0ceb0eed59a4", "score": "0.62275493", "text": "public function count(): int\n {\n return count($this->files);\n }", "title": "" }, { "docid": "8693aab37b608e38246b0ceb0eed59a4", "score": "0.62275493", "text": "public function count(): int\n {\n return count($this->files);\n }", "title": "" }, { "docid": "c262e36cffe4819a3d66947c5a1d73f6", "score": "0.61394143", "text": "public function count()\n {\n return $this->student->count();\n }", "title": "" }, { "docid": "f9dc5924de26276f8ee834a48a37bc6d", "score": "0.6127379", "text": "public function count()\r\n {\r\n return count($this->files) + count($this->fields);\r\n }", "title": "" }, { "docid": "1c34679a096bc27ddf4bd1c9eb051a83", "score": "0.61134833", "text": "public function getStudentsCountAttribute()\n {\n return $this->students->count();\n }", "title": "" }, { "docid": "685ce371401b9e9e02e66b3ccc0658cc", "score": "0.60496515", "text": "public function countAssignmentFiles(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collAssignmentFilesPartial && !$this->isNew();\n if (null === $this->collAssignmentFiles || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collAssignmentFiles) {\n return 0;\n }\n\n if($partial && !$criteria) {\n return count($this->getAssignmentFiles());\n }\n $query = AssignmentFileQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByFile($this)\n ->count($con);\n }\n\n return count($this->collAssignmentFiles);\n }", "title": "" }, { "docid": "3c9f499a96408a1e33a21e806987d836", "score": "0.6002647", "text": "public function getFileCount()\n\t{\n\t\treturn $this->fileCount;\n\t}", "title": "" }, { "docid": "2ee4cd09e6cf95786692f5f0af58c70b", "score": "0.5999266", "text": "public function getFilesCount()\n {\n return $this->getAdapter()->getFilesCount();\n }", "title": "" }, { "docid": "8567ab91ace21374720ec2c852a4e98a", "score": "0.59843916", "text": "public function getFileCount()\n {\n return $this->file_count;\n }", "title": "" }, { "docid": "9d3aeaf6cb14aa4a9b1d144250cb0759", "score": "0.59667695", "text": "public function countAssignments($criteria = null, $distinct = false, PropelPDO $con = null)\n {\n if (null === $this->collAssignments || null !== $criteria) {\n if ($this->isNew() && null === $this->collAssignments) {\n return 0;\n } else {\n $query = AssignmentQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByFile($this)\n ->count($con);\n }\n } else {\n return count($this->collAssignments);\n }\n }", "title": "" }, { "docid": "3cb5e65d2bf8b7928eaf39363a6b24ef", "score": "0.5916805", "text": "public function count()\n {\n return count($this->_path);\n }", "title": "" }, { "docid": "9b7591e934a37ab2a4858806a1a0dae8", "score": "0.5909914", "text": "public function getCountStudentsAttribute () {\n\t\treturn $this->students->count('name');\n\t}", "title": "" }, { "docid": "b8e2912bb9629ef8623d12ac1c77d6ee", "score": "0.5880694", "text": "private function getCount()\n\t{\n\t\t$count = 0;\n\t\tforeach ($this->getTodo() as $file) {\n\t\t\t$count += count($file);\n\t\t}\n\t\treturn $count;\n\t}", "title": "" }, { "docid": "9e9ac2fd6acb1d1af39671c9284c2348", "score": "0.5835578", "text": "public function countRelated(File $file) {\n\t\treturn count($this->getFrontendGroupIdentifiers($file));\n\t}", "title": "" }, { "docid": "1ff197f035cd6c3bd44199dbf9719550", "score": "0.5817682", "text": "public function countEntityWithFile();", "title": "" }, { "docid": "9d9993a75568a3aa0064ceee271e79b0", "score": "0.5814927", "text": "function get_object_count()\r\n {\r\n $wdm = WeblcmsDataManager :: get_instance();\r\n return $wdm->count_course_sections($this->get_condition());\r\n }", "title": "" }, { "docid": "286a2bb00cacc172c1ff0fb803f8c385", "score": "0.58042806", "text": "private function getFilesCount(): string\n {\n $files = glob($this->directory . \"/*\");\n\n if ($files) {\n return count($files) + 1;\n }\n\n return 0;\n }", "title": "" }, { "docid": "a5382a191d9fd94b86d4b5d2240ef841", "score": "0.5749638", "text": "public function hasFilesCount(){\n return $this->_has(4);\n }", "title": "" }, { "docid": "76963b5f3d5f2d08fdc6bc50b7212123", "score": "0.57333446", "text": "public function num_files ()\n {\n if (isset ($this->_value))\n {\n return $this->_value->size ();\n }\n \n return 0;\n }", "title": "" }, { "docid": "5fb6d17fc4ab18d89a0b6091c5f8e230", "score": "0.57238114", "text": "public function count()\n\t{\n\t\t$total = 0;\n\t\t\n\t\tforeach ($this->models AS $model)\n\t\t{\n\t\t\t$total += $model->count();\n\t\t}\n\t\t\n\t\treturn $total;\n\t}", "title": "" }, { "docid": "f5b070a113e53a17225fc4004d1aa27b", "score": "0.5713044", "text": "function count() {\n return count($this->OBJECTS);\n }", "title": "" }, { "docid": "635c5abc4cc7f279df1e2c668e207adb", "score": "0.57020974", "text": "public function countAllFiles() : int;", "title": "" }, { "docid": "b9dc293d948570ffef71bf43bece16a9", "score": "0.56988895", "text": "public function count()\n {\n return count($this->_resources);\n }", "title": "" }, { "docid": "84fa9d93e96df7467bbfaf51591037b8", "score": "0.5690201", "text": "public function countEntityWithFile()\n\t{\n\t\t$count = -1;\n\n\t\tif (count($this->getFilter()) > 0)\n\t\t{\n\t\t\t$query = $this->prepareQuery();\n\t\t\t$countField = new ORM\\Fields\\ExpressionField('CNT', 'COUNT(DISTINCT %s)', 'EVENT_ID');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//$query = Crm\\EventTable::query();\n\t\t\t$query = $this->prepareNonRelationQuery();\n\t\t\t$countField = new ORM\\Fields\\ExpressionField('CNT', 'COUNT(%s)', 'EVENT_ID');\n\t\t}\n\n\t\tif ($this->prepareFilter($query))\n\t\t{\n\t\t\t$count = 0;\n\n\t\t\t$query\n\t\t\t\t->registerRuntimeField($countField)\n\t\t\t\t->addSelect('CNT')\n\t\t\t\t->whereNotNull('FILES');\n\n\t\t\t$res = $query->exec();\n\t\t\tif ($row = $res->fetch())\n\t\t\t{\n\t\t\t\t$count = $row['CNT'];\n\t\t\t}\n\t\t}\n\n\t\treturn $count;\n\t}", "title": "" }, { "docid": "b878a364c9b00f98a7573d88e2020cfc", "score": "0.568975", "text": "public function getAssignedNotesCount()\n {\n return ProjectNote::getAssignedNotesCount($this->id);\n }", "title": "" }, { "docid": "88138d7bc5ea6b11a9a251f30291aa25", "score": "0.56665236", "text": "public function count()\n\t{\n\t\treturn count($this->hydrateRepository->hydrateSource($this));\n\t}", "title": "" }, { "docid": "19304f154c1d1040069eaed37d73c9f4", "score": "0.5662523", "text": "public function count()\n {\n return isset($this->instancesByPathIdentity[\"this\"]) ? count($this->instancesByPathIdentity[\"this\"]) : 0;\n }", "title": "" }, { "docid": "037f1eb210982acb7ca4fb07f94d2968", "score": "0.56096315", "text": "function get_all_students_count()\n {\n $this->db->from('students');\n return $this->db->count_all_results();\n }", "title": "" }, { "docid": "fee0d5a88ba591b02099c1ed64308093", "score": "0.55951625", "text": "function attachment_count() {\r\n return count($this->wc_product->get_gallery_attachment_ids());\r\n }", "title": "" }, { "docid": "a995f99895975f389a09211cefc50cf5", "score": "0.5592611", "text": "public function count() {\n\t\treturn count($this -> direct);\n\t}", "title": "" }, { "docid": "1979c3a2a53c6e96fce99af0104efc7a", "score": "0.5567166", "text": "function count()\n {\n return count($this->object);\n }", "title": "" }, { "docid": "1f0da27925094a6486560ea85da4b634", "score": "0.55632454", "text": "public function getCount()\n\t{\n\t\treturn count($this->getModels());\n\t}", "title": "" }, { "docid": "8e10628cfc85d26335fef9d34e3cbc68", "score": "0.55619144", "text": "public function count(): int {\n return count($this->resourceChildren);\n }", "title": "" }, { "docid": "a6867bd1529bd0f496866ae3bf29fa14", "score": "0.55614614", "text": "public function count()\n {\n return count($this->_modules);\n }", "title": "" }, { "docid": "c0838ab2d9a61a7027c475cf73c5c770", "score": "0.55324316", "text": "public function getCount()\n\t{\n\t\treturn count($this->_objects);\n\t}", "title": "" }, { "docid": "a787f326262a6d061c7a686b2411c09a", "score": "0.5516944", "text": "public function getResourceCount()\n {\n return $this->count(self::RESOURCE);\n }", "title": "" }, { "docid": "b46bf98cc9de5c157fb11f99e5940e28", "score": "0.5515248", "text": "public function getCountStudentAll(){\n $sql = \"SELECT student_id FROM students\";\n try {\n self::openConection($sql);\n $this->pps->execute();\n return $this->pps->rowCount();\n } catch (PDOException $e) {\n\n }finally{\n self::closeConection();\n }\n }", "title": "" }, { "docid": "61ff065f31ca2bef68ba14d4674ea60a", "score": "0.5514765", "text": "public function getQuestionCount(){\n return $this->getLinkedQuestionId()->count();\n }", "title": "" }, { "docid": "92775a87240c6dd0515f079a2e70a4f2", "score": "0.5502194", "text": "public function getTotalAttachedFiles(){\n return count($this->images) + count($this->videos);\n }", "title": "" }, { "docid": "1f1110fda58394f927b591da928a8a49", "score": "0.54996", "text": "public function count() {\r\n $pattern = $this->location . DS . '*.' . $this->format;\r\n $files = glob($pattern);\r\n return count($files);\r\n }", "title": "" }, { "docid": "029686b2f16d57c815acc973701e0bc2", "score": "0.5496545", "text": "public function countPaths()\n {\n return count($this->memory['paths']);\n }", "title": "" }, { "docid": "d8ee8a5e46d70646fd1943c42c5a1708", "score": "0.5494471", "text": "public function count()\n {\n return count($this->sections);\n }", "title": "" }, { "docid": "390724375ec7f615d0751b420c4dc42b", "score": "0.54898536", "text": "public function getFiles() : int\n {\n return $this->files;\n }", "title": "" }, { "docid": "286bbc7a32cb7d7527d588e23ea32c8d", "score": "0.5470603", "text": "public function count()\n\t{\n\t\treturn count($this->get());\n\t}", "title": "" }, { "docid": "5e72a483867d454a7b014f4a16d50b4a", "score": "0.5450139", "text": "public function count() {\n\n // load UOIDs to array if not already\n $this->_load();\n if (!$this->array) {\n return 0;\n }\n\n // clean up deleted objects\n $this->_cleanUp();\n if (!$this->array) {\n return 0;\n }\n\n return count($this->array);\n }", "title": "" }, { "docid": "8447aa3b8bf857f302cf62406ffc49e0", "score": "0.5447546", "text": "public function count() {\n\n // load UOIDs to array if not already\n $this->_load();\n if (!$this->array) {\n return 0;\n }\n\n // clean up deleted objects\n $this->_cleanUp();\n if (!$this->array) {\n return 0;\n }\n \n return count($this->array); \n }", "title": "" }, { "docid": "9a719fdcc36b4eed7d23e9c63dd44e7a", "score": "0.54416883", "text": "public function count()\n {\n return count($this->all());\n }", "title": "" }, { "docid": "0befd9b376ec26b1b3fc9ead41dae818", "score": "0.5438938", "text": "public function count()\n {\n return count(get_object_vars($this));\n }", "title": "" }, { "docid": "c3ec45124cda24ce4eb940bebe0a1a86", "score": "0.5422342", "text": "public function count()\n {\n return $this->getModel()->get()->count();\n }", "title": "" }, { "docid": "c726a2d7a97f1a915729e4d7b38809f9", "score": "0.5412962", "text": "public function count()\n {\n return $this->model->get()->count();\n }", "title": "" }, { "docid": "437942d3f47f6741691d86d25e8285df", "score": "0.53867364", "text": "public function count()\n {\n return count($this->toArray());\n }", "title": "" }, { "docid": "437942d3f47f6741691d86d25e8285df", "score": "0.53867364", "text": "public function count()\n {\n return count($this->toArray());\n }", "title": "" }, { "docid": "437942d3f47f6741691d86d25e8285df", "score": "0.53867364", "text": "public function count()\n {\n return count($this->toArray());\n }", "title": "" }, { "docid": "081e34d4146e7db6dc5fb3e72087666d", "score": "0.53811234", "text": "public function count()\n {\n return count($this->_loadedModules);\n }", "title": "" }, { "docid": "e6a55763fde75c799c4a1796910acd74", "score": "0.5375969", "text": "public static function get_number_of_demo_files() {\n\t\treturn count( self::get_demo_files() );\n\t}", "title": "" }, { "docid": "4368d1391a4896865886eb5e7c6baa2a", "score": "0.5372579", "text": "public function count()\n\t{\n\t\treturn count(get_object_vars($this->data));\n\t}", "title": "" }, { "docid": "389042d43e3317273d70c63123fd203f", "score": "0.5371858", "text": "function count_all()\n\t{\n\t\t$query = $this->db->get('student_info');\n\t\treturn $query->num_rows();\n\t}", "title": "" }, { "docid": "15ead9749964c7491ee58b014e5dcb32", "score": "0.5366242", "text": "public function count()\n {\n return count($this->records);\n }", "title": "" }, { "docid": "363ab9b5451e44dd9ee797704e5344da", "score": "0.53578997", "text": "public function Count( ) {\n\n return count( $this->m_a_entries );\n\n }", "title": "" }, { "docid": "709098f00d3841dbccf40588eb42579b", "score": "0.5339673", "text": "public function rowCountStudentExams()\r\r\n {\r\r\n $testModel = new TestModel();\r\r\n return $testModel->rowCountStudentExams();\r\r\n }", "title": "" }, { "docid": "7c1d93814944b6f9c57b4eaeeb9bc137", "score": "0.5338314", "text": "public function getFileCountRecursive()\n {\n $totals = $this->countObjectsByTypeRecursively();\n\n return $totals[0];\n }", "title": "" }, { "docid": "61441761d3731e5a1b38ddba677f69c2", "score": "0.5325634", "text": "public function countRelations()\n\t{\n\t\t$total = 0;\n\n\t\tforeach ($this->getRelations() as $relationset)\n\t\t{\n\t\t\tunset($relationset['text']);\n\t\t\t$total += count($relationset);\n\t\t}\n\n\t\treturn $total;\n\t}", "title": "" }, { "docid": "d26804699bed0a16ee2abdd138f62871", "score": "0.53236616", "text": "public function count() {\n\t\t$this->hydrate();\n\t\treturn count($this->documents);\n\t}", "title": "" }, { "docid": "5e50b2ebef2ab517d5c7b7e71f0fd87d", "score": "0.5317914", "text": "public function count()\n {\n return count($this->collection); \n }", "title": "" }, { "docid": "343aace66808632a820a097963c4b44a", "score": "0.5308932", "text": "public function answersCount() \n {\n return $this->hasmany('App\\Answer')->count();\n }", "title": "" }, { "docid": "3f287cab27f51dd3fd11611001c1e3e7", "score": "0.52994525", "text": "public function getNbSubjects()\n {\n return (int) $this->xpath()->evaluate('count(//subject)');\n }", "title": "" }, { "docid": "42c37934100b37bdd419a841dd58b41f", "score": "0.52957755", "text": "function fileCount($addr){\n \n if (is_dir($addr)) {\n \n $dir = opendir($addr);\n $num = 0; \n \n while (false!==($file = readdir($dir))) {\n \n if ($file != \".\" && $file != \"..\") { \n $num++;\n }\n }\n \n return $num;\n }\n \n else return \"0\";\n }", "title": "" }, { "docid": "c7f71ba0809c9f9a942cc87acead1210", "score": "0.529379", "text": "public function count(): int\n {\n\n return \\count( $this->_attributes );\n\n }", "title": "" }, { "docid": "e92618e9c640d8cd68538bc3e9ccb619", "score": "0.52929986", "text": "public function countCandidates () : int\n {\n return \\count($this->_Candidates);\n }", "title": "" }, { "docid": "798f46dc8aefa2ba57e16b1da970f5fc", "score": "0.5288707", "text": "public function count() {\n\t\treturn count($this->collection);\n\t}", "title": "" }, { "docid": "302778f18b846d020357162075e30993", "score": "0.5283049", "text": "public function count()\n {\n return count($this->attributes);\n }", "title": "" }, { "docid": "302778f18b846d020357162075e30993", "score": "0.5283049", "text": "public function count()\n {\n return count($this->attributes);\n }", "title": "" }, { "docid": "302778f18b846d020357162075e30993", "score": "0.5283049", "text": "public function count()\n {\n return count($this->attributes);\n }", "title": "" }, { "docid": "302778f18b846d020357162075e30993", "score": "0.5283049", "text": "public function count()\n {\n return count($this->attributes);\n }", "title": "" }, { "docid": "2abdbfb1dd678fd3c982c435a6193472", "score": "0.5278838", "text": "public function count(): int {\n\n\t\treturn count( $this->rulegroups );\n\t}", "title": "" }, { "docid": "c89a84917d454376f9ddc4653a3f2644", "score": "0.5278267", "text": "public function getAssignmentProgressionDone($assignment_id){\n\n $qb = $this->createQueryBuilder('a')\n ->innerJoin('a.task', 't')\n ->leftJoin('a.answers', 'w')\n ->select('COUNT(DISTINCT w.id) AS nb_answers')\n ->innerJoin('t.contents', 'c')\n ->addSelect('COUNT(DISTINCT c.id) AS nb_contents')\n ->innerJoin('t.fields', 'f')\n ->addSelect('COUNT(DISTINCT f.id) AS nb_fields')\n ->andWhere('a.id = :assignment_id')\n ->setParameter(':assignment_id', $assignment_id)\n ->groupBy('a.id')\n ->getQuery();\n return $qb->getSingleResult();\n\n }", "title": "" }, { "docid": "a441a82d9a3a7728bec567aa08272dc3", "score": "0.52745324", "text": "public function getExerciseCountsAttribute()\n {\n $exercise_count = PatientCourseExercises::with('Exercises')->where('course_id', $this->id)->whereNotNull('exercise_id')->count();\n return $exercise_count;\n }", "title": "" }, { "docid": "3ac351ab77d7dfdbdc59b5109f718860", "score": "0.52724457", "text": "public function countAll()\n {\n $sql = $this->database->select()->setIntegrityCheck(false)->from(\n array('f' => 'folder'),\n array('count' => 'count(*)')\n );\n $row = $this->database->fetchRow($sql);\n\n return $row['count'];\n }", "title": "" }, { "docid": "47965a574549a9ea6160695e69ccf783", "score": "0.5261686", "text": "public function count()\n {\n return count($this->collection);\n }", "title": "" }, { "docid": "47965a574549a9ea6160695e69ccf783", "score": "0.5261686", "text": "public function count()\n {\n return count($this->collection);\n }", "title": "" }, { "docid": "47965a574549a9ea6160695e69ccf783", "score": "0.5261686", "text": "public function count()\n {\n return count($this->collection);\n }", "title": "" }, { "docid": "47965a574549a9ea6160695e69ccf783", "score": "0.5261686", "text": "public function count()\n {\n return count($this->collection);\n }", "title": "" }, { "docid": "47965a574549a9ea6160695e69ccf783", "score": "0.5261686", "text": "public function count()\n {\n return count($this->collection);\n }", "title": "" }, { "docid": "6ae168ecdf9255e6e14f6dd03248502c", "score": "0.52600247", "text": "public function count() : int{\n return count($this->all());\n }", "title": "" }, { "docid": "96243b967249cf37a26b27c1b561c468", "score": "0.5253978", "text": "public function count_chars()\n {\n $folderPath = $this->files_url . $this->file;\n $file = glob($folderPath . '/' . '*.ini');\n $countFile = 0;\n if ($file != false) {\n $countFile = count($file);\n }\n return $countFile;\n }", "title": "" }, { "docid": "25aa6a5488c87fbb35d0555f2995a0bd", "score": "0.5253367", "text": "public function count(){\n $tmp = $this->key();\n $this->seek(PHP_INT_MAX);\n $lines = $this->key();\n $this->seek($tmp);\n return $lines;\n }", "title": "" }, { "docid": "d84fa5592a4dd6737ca141503df5551d", "score": "0.52481806", "text": "public function count()\n {\n return count($this->_collection);\n }", "title": "" }, { "docid": "3152696b04804f7116ba6c7e2fa2ab66", "score": "0.52476966", "text": "public function count(): int\n {\n return \\count($this->get());\n }", "title": "" }, { "docid": "5fc5a740cbed1a9164e510f85eb40cbc", "score": "0.52471787", "text": "public function upload_record_count() {\n\t\treturn $this->db->count_all(\"uploads\");\n\t}", "title": "" }, { "docid": "a9775704220ecfc4a0edaf166757884c", "score": "0.52463585", "text": "public static function countCourses(){\n \n global $DB;\n \n $count = $DB->count_records(\"course\");\n return $count;\n \n }", "title": "" }, { "docid": "4eb97dc4cb923a6b36429088501e144b", "score": "0.52452976", "text": "public function fileCountOwner()\n {\n $this->db->select('id,owner,COUNT(*) as cnt');\n $this->db->group_by('owner');\n $query = $this->db->get('documents');\n\n if ($query->num_rows() > 0) {\n $own = array();\n foreach ($query->result() as $row) {\n $fileObj = new Document_Model($row->id);\n $owner = $fileObj->getOwnerName();\n $own[] = array(\n 'owner' => $owner,\n 'count' => $row->cnt,\n );\n }\n echo json_encode($own);\n } else {\n $msg = array(\n 'status' => 'error',\n 'msg' => 'There were no files to gather data on.',\n );\n\n echo json_encode($msg);\n exit;\n }\n }", "title": "" }, { "docid": "26c8b5eb69db1080b55d5c5f446567f2", "score": "0.52451134", "text": "public function countFilms(){\n $db = $this-> dbConnect();\n $req =$db->query('SELECT COUNT(id)as idFilms FROM films');\n $nbr = $req -> fetch();\n \n return $nbr;\n }", "title": "" }, { "docid": "d10cb8b318aeea79f9907ca5c9acff7c", "score": "0.52388495", "text": "public function count()\n {\n return count($this->getAll());\n }", "title": "" } ]
6decfe0cbe310acf9450850f7d9f9e3a
Generate a sitemap only on an array of urls
[ { "docid": "9986d6ca8dff67c4ea35e9661b58cf70", "score": "0.0", "text": "public function articles() {\n\n $this->SitemapModel->output();\n }", "title": "" } ]
[ { "docid": "d42065b5e9b30ebfeb3f42f25c8d0d2d", "score": "0.700948", "text": "public function get_sitemap_xml($url_list)\n {\n }", "title": "" }, { "docid": "9fb2aeda9bbd8a53fecf24e654b18c32", "score": "0.69993085", "text": "public function actionBuildsitemap()\n\t{\n\t\t$app = Yii::app();\n\t\t$connection = $app->db;\n\t\t\n\t\t$categories_urls = ShopCategories::model()->getAllCategoriesUrls($this, $connection);\n\t\t$product_urls = ShopProducts::model()->getAllProductsUrls($this, $connection);\n\t\t$pages_urls = Pages::model()->getAllUrlsForSitemap($this, $connection);\n\t\t//die;\n\t\t\n\t\t//$urls = $product_urls + $pages_urls;\n\t\t$urls = array_merge($categories_urls, $product_urls , $pages_urls);\n\t\t\n\t\t$sitemap_file = Yii::getPathOfAlias('webroot') . '/sitemap.xml';\n\t\t\n\t\t$date_now = date('Y-m-d');\n\t\t\n\t\t$dom = new domDocument(\"1.0\", \"utf-8\");\n\t\t$urlset = $dom->createElement(\"urlset\");\n\t\t$urlset->setAttribute(\"xmlns\", 'http://www.sitemaps.org/schemas/sitemap/0.9');\n\t\t\n\t\t$dom->appendChild($urlset);\n\t\t\n\t\tforeach($urls as $item) {\n\t\t\t$url = $dom->createElement('url');\n\t\t\t$urlset->appendChild($url);\n\n\t\t\t$loc = $dom->createElement('loc', $item);\n\t\t\t$lastmod = $dom->createElement('lastmod', $date_now);\n\t\t\t$changefreq = $dom->createElement('changefreq', 'weekly');\n\t\t\t$priority = $dom->createElement('priority', '1.0');\n\n\t\t\t$url->appendChild($loc);\n\t\t\t$url->appendChild($lastmod);\n\t\t\t$url->appendChild($changefreq);\n\t\t\t$url->appendChild($priority);\n\t\t}\n\t\t\n\t\t$dom->save($sitemap_file);\n\n\t\t//$data = implode(\"\", file(\"bigfile.txt\"));\n\t\t$gzdata = gzencode($sitemap_file, 9);\n\t\t$fp = fopen(Yii::getPathOfAlias('webroot') . '/sitemap.xml.gz', \"w\");\n\t\tfwrite($fp, $gzdata);\n\t\tfclose($fp);\n\n\t\t$this->redirect('/admin.php?r=site/buildsitemapfinished&rows='.count($urls));\n\t}", "title": "" }, { "docid": "75782e7ae81c7bceecf3651ae6731453", "score": "0.69012237", "text": "public function action_generate_sitemap()\n\t{\n\t\tif (!Auth::instance()->logged_in()) exit();\n\n\t\t$this->auto_render = FALSE;\n\n\t\t$main_file = 'sitemap.xml';\n\t\t$location = 'sitemaps/';\n\t\t$current = 1;\n\t\t$ext = '.xml';\n\t\t$host = URL::base();\n\t\t$sitemap_index = array();\n\n\t\t//empty sitemap dir\n\t\tarray_map('unlink', glob($location.\"*\"));\n\n\t\t$begin = '<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">';\n\t\t$end = \"\\n</urlset>\";\n\n\n\t\t//////////////////// CATEGORIES ///////////////////////\n\t\t# /catalog/category\n\t\t$file = 'sitemap-catalog';\n\t\t$strings = 0;\n\t\t$categories = Model::factory('Category')->find_all()->as_array(NULL, 'slug');\n\n\t\tfile_put_contents($location.$file.$current.$ext, $begin);\n\t\t$sitemap_index [] = $location . $file . $current . $ext;\n\t\tforeach ($categories AS $one => $category) {\n\t\t\t$xml = \"\\n<url><loc>\" . $host . \"katalog/\" . $category . \"</loc></url>\";\n\t\t\tfile_put_contents($location . $file . $current . $ext, $xml, FILE_APPEND);\n\t\t\t$strings++;\n\t\t\t//if 49999 string in file, create new\n\t\t\tif ($strings == 49999) {\n\t\t\t\t//write end\n\t\t\t\tfile_put_contents($location . $file . $current . $ext, $end, FILE_APPEND);\n\t\t\t\t//write to sitemap index\n\t\t\t\t$sitemap_index [] = $location . $file . $current . $ext;\n\t\t\t\t//get next file\n\t\t\t\t$current++;\n\t\t\t\t//write begin\n\t\t\t\tfile_put_contents($location . $file . $current . $ext, $begin, FILE_APPEND);\n\t\t\t\t//empty string\n\t\t\t\t$strings = 0;\n\t\t\t}\n\t\t}\n\n\t\t//write end\n\t\tif ($strings != 0) file_put_contents($location . $file . $current . $ext, $end, FILE_APPEND);\n\n\t\t//////////////////// MANUFACTURERS ///////////////////////\n\t\t# /catalog/manufacturer\n\t\t$file = 'sitemap-auto-brands';\n\t\t$strings = 0;\n\t\t$current = 1;\n\t\t$tecdoc = Model::factory('Tecdoc');\n\t\t$manufacturers = $tecdoc->get_manufacturers(false, false, false, true);\n\n\t\tfile_put_contents($location.$file.$current.$ext, $begin);\n\t\t$sitemap_index [] = $location . $file . $current . $ext;\n\t\tforeach ($manufacturers AS $one => $manufacturer) {\n\t\t\t$xml = \"\\n<url><loc>\" . $host . \"katalog/\" . $manufacturer['slug'] . \"</loc></url>\";\n\t\t\tfile_put_contents($location . $file . $current . $ext, $xml, FILE_APPEND);\n\t\t\t$strings++;\n\t\t\t//if 49999 string in file, create new\n\t\t\tif ($strings == 49999) {\n\t\t\t\t//write end\n\t\t\t\tfile_put_contents($location . $file . $current . $ext, $end, FILE_APPEND);\n\t\t\t\t//write to sitemap index\n\t\t\t\t$sitemap_index [] = $location . $file . $current . $ext;\n\t\t\t\t//get next file\n\t\t\t\t$current++;\n\t\t\t\t//write begin\n\t\t\t\tfile_put_contents($location . $file . $current . $ext, $begin, FILE_APPEND);\n\t\t\t\t//empty string\n\t\t\t\t$strings = 0;\n\t\t\t}\n\t\t}\n\n\t\t//write end\n\t\tif ($strings != 0) file_put_contents($location . $file . $current . $ext, $end, FILE_APPEND);\n\n\t\t//////////////////// MODELS ///////////////////////\n\t\t# //catalog/manufacturer/model\n\t\t$file = 'sitemap-auto-models';\n\t\t$strings = 0;\n\t\t$current = 1;\n\n\t\tfile_put_contents($location.$file.$current.$ext, $begin);\n\t\t$sitemap_index [] = $location . $file . $current . $ext;\n\t\tforeach ($manufacturers AS $key => $manufacturer) {\n\t\t\t$models = $tecdoc->get_cars(false, $manufacturer['id']);\n\t\t\tforeach ($models AS $k => $model) {\n\t\t\t\t$xml = \"\\n<url><loc>\" . $host . 'katalog/' . $manufacturer['slug'] . \"/\" . $model['slug'] . \"</loc></url>\";\n\t\t\t\tfile_put_contents($location.$file.$current.$ext, $xml, FILE_APPEND);\n\t\t\t\t$strings ++;\n\t\t\t\t//if 49999 string in file, create new\n\t\t\t\tif ($strings == 49999){\n\t\t\t\t\t//write end\n\t\t\t\t\tfile_put_contents($location.$file.$current.$ext, $end, FILE_APPEND);\n\t\t\t\t\t//write to sitemap index\n\t\t\t\t\t$sitemap_index [] = $location . $file . $current . $ext;\n\t\t\t\t\t//get next file\n\t\t\t\t\t$current++;\n\t\t\t\t\t//write begin\n\t\t\t\t\tfile_put_contents($location.$file.$current.$ext, $begin, FILE_APPEND);\n\t\t\t\t\t//empty string\n\t\t\t\t\t$strings = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//write end\n\t\tif ($strings != 0) file_put_contents($location . $file . $current . $ext, $end, FILE_APPEND);\n\n\t\t///////////////////// ARTICLES ///////////////////////\n\t\t$file = 'sitemap-products';\n\t\t$strings = 0;\n\t\t$current = 1;\n\n\t\t# /catalog/article/\n\t\tfile_put_contents($location.$file.$current.$ext, $begin);\n\t\t$sitemap_index [] = $location . $file . $current . $ext;\n\t\t$articles_count = Model::factory('Part')->count_all();\n\t\tfor ($i = 0; $i < $articles_count; $i += 5000) {\n\t\t\t$articles = Model::factory('Part')->limit(5000)->offset($i)->find_all()->as_array();\n\t \tforeach ($articles AS $value) {\n// foreach ($articles AS $key => $article) {\n\n if ($value->tecdoc_id){\n $tecdoc = ORM::factory('Tecdoc');\n $part_tecdoc = $tecdoc->get_part($value->tecdoc_id);\n $url = Htmlparser::transliterate($part_tecdoc['brand'] . \"-\" . $part_tecdoc['article_nr'] . \"-\" . substr($part_tecdoc['description'], 0, 50)) . \"-\" .$value->id;\n }\n else{\n $url = Htmlparser::transliterate($value->brand . \"-\" . $value->article_long . \"-\" . substr($value->name, 0, 50)) . \"-\" . $value->id;\n }\n\n $xml = \"\\n<url><loc>\" . $host . 'katalog/produkt/' . $url . \"</loc></url>\";\n// $xml = \"\\n<url><loc>\" . $host . 'catalog/product/' . $article . \"</loc></url>\";\n\n\t\t\t\tfile_put_contents($location . $file . $current . $ext, $xml, FILE_APPEND);\n\t\t\t\t$strings++;\n\t\t\t\t//if 49999 string in file, create new\n\t\t\t\tif ($strings == 49999) {\n\t\t\t\t\t//write end\n\t\t\t\t\tfile_put_contents($location . $file . $current . $ext, $end, FILE_APPEND);\n\t\t\t\t\t//write to sitemap index\n\t\t\t\t\t$sitemap_index [] = $location . $file . $current . $ext;\n\t\t\t\t\t//get next file\n\t\t\t\t\t$current++;\n\t\t\t\t\t//write begin\n\t\t\t\t\tfile_put_contents($location . $file . $current . $ext, $begin, FILE_APPEND);\n\t\t\t\t\t//empty string\n\t\t\t\t\t$strings = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//write end\n\t\tif ($strings != 0) file_put_contents($location . $file . $current . $ext, $end, FILE_APPEND);\n\n\n\t\t///////////////////// PAGES ///////////////////////\n\t\t$file = 'sitemap_info';\n\t\t$strings = 0;\n\t\t$current = 1;\n\n\t\t# /catalog/article/\n\t\t$pages = Model::factory('Page')->where('active', '=', 1)->find_all()->as_array(NULL, 'syn');\n\n\t\tfile_put_contents($location.$file.$current.$ext, $begin);\n\t\t$sitemap_index [] = $location . $file . $current . $ext;\n\t\tforeach ($pages AS $one => $page) {\n\t\t\t$xml = \"\\n<url><loc>\" . $host . \"\" . $page . \"</loc></url>\";\n\t\t\tfile_put_contents($location . $file . $current . $ext, $xml, FILE_APPEND);\n\t\t\t$strings++;\n\t\t\t//if 49999 string in file, create new\n\t\t\tif ($strings == 49999) {\n\t\t\t\t//write end\n\t\t\t\tfile_put_contents($location . $file . $current . $ext, $end, FILE_APPEND);\n\t\t\t\t//write to sitemap index\n\t\t\t\t$sitemap_index [] = $location . $file . $current . $ext;\n\t\t\t\t//get next file\n\t\t\t\t$current++;\n\t\t\t\t//write begin\n\t\t\t\tfile_put_contents($location . $file . $current . $ext, $begin, FILE_APPEND);\n\t\t\t\t//empty string\n\t\t\t\t$strings = 0;\n\t\t\t}\n\t\t}\n\n\t\t//write end\n\t\tif ($strings != 0) file_put_contents($location . $file . $current . $ext, $end, FILE_APPEND);\n\n\t\t$xml = '<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">';\n\t\tfile_put_contents($main_file, $xml);\n\t\tforeach ($sitemap_index AS $index) {\n\t\t\t$xml = \"\\n<sitemap><loc>\" . $host . $index . \"</loc></sitemap>\";\n\t\t\tfile_put_contents($main_file, $xml, FILE_APPEND);\n\t\t}\n\t\t$xml = \"\\n</sitemapindex>\";\n\t\tfile_put_contents($main_file, $xml, FILE_APPEND);\n\t}", "title": "" }, { "docid": "d13b6e47f0bf2e73affb4c26a892af58", "score": "0.6810186", "text": "function sitemap()\n {\n \t$artists = $this->artists_model->get_artists();\n $releases = $this->releases_model->get_releases();\n $products = $this->merch_model->get_merch();\n $articles = $this->blog_model->get_articles();\n $videos = $this->videos_model->get_videos();\n\n // Initiate the urls array\n $data['urls'] = array(\n \t'about',\n \t'artists',\n \t'releases',\n \t'merch',\n \t'blog',\n \t'videos',\n \t'contact',\n );\n\n // Push the blog articles into the array\n foreach($articles as $article) {\n \tarray_push($data['urls'], 'blog/' . $article['content_link']);\n } // endforeach\n\n // Push the artists into the array\n foreach($artists as $artist) {\n \tarray_push($data['urls'], 'artists/' . $artist['artist_link']);\n } // endforeach\n\n // Push the releases into the array\n foreach($releases as $release) {\n \tarray_push($data['urls'], 'releases/' . $release['music_link']);\n } // endforeach\n\n // Push the products into the array\n foreach($products as $product) {\n \tarray_push($data['urls'], 'merch/' . $product['merch_link']);\n } // endforeach\n\n // Push the videos into the array\n foreach($videos as $video) {\n \tarray_push($data['urls'], 'videos/' . $video['slug']);\n } // endforeach\n\n // Change the header to XML\n header(\"Content-Type: text/xml;charset=iso-8859-1\");\n\n // Load the view\n $this->load->view(\"sitemap\", $data);\n }", "title": "" }, { "docid": "fe9c4887b905851d592e6f8815ec2b47", "score": "0.67624193", "text": "abstract protected function generateSitemapContent();", "title": "" }, { "docid": "acd2a88c636ba3d198145af641883dc2", "score": "0.66208744", "text": "public function sitemap_url($url)\n {\n }", "title": "" }, { "docid": "22a58ec1ad25ac6a2cf6f481b5cdfd2d", "score": "0.65748584", "text": "public function createSiteMap()\n {\n $sitemap = Sitemap::create()->add(Url::create('/'))\n ->add(Url::create('/contactus'));\n\n Book::all()->each(function (Book $book) use ($sitemap) {\n $sitemap->add(Url::create(\"/books/{$book->slug}\"));\n });\n\n Category::all()->each(function (Category $category) use ($sitemap) {\n $sitemap->add(Url::create(\"/cats/{$category->slug}\"));\n });\n\n Author::all()->each(function (Author $author) use ($sitemap) {\n $sitemap->add(Url::create(\"/authors/{$author->slug}\"));\n });\n\n $sitemap->writeToFile(public_path('sitemap.xml'));\n }", "title": "" }, { "docid": "dbc59173b34803ce18778be150e546e7", "score": "0.6472658", "text": "function sitemap_endpoints() {\n\treturn apply_filters( 'sitemap_ping_uris', array(\n\t\t'www.google.com/webmasters/tools/ping?sitemap=',\n\t\t'http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=' . urlencode(WPAS__YAHOO_UPDATES_APPLICATION_ID) . '&url=', // appid is WPCOM id\n\t\t'http://www.bing.com/webmaster/ping.aspx?siteMap='\n\t));\n}", "title": "" }, { "docid": "db9a734641156a4c119f24d67e096d0f", "score": "0.6449018", "text": "public function getSitemap () {\n // Override by mods\n }", "title": "" }, { "docid": "57b55364341991558796714819d343e4", "score": "0.6445079", "text": "public function actionIndex()\n {\n\n try {\n // try to register the searchengine visit\n $CrawlerDetect = new CrawlerDetect;\n\n // Check the user agent of the current 'visitor'\n if ($CrawlerDetect->isCrawler()) {\n // insert into table!\n $visit = new SitemapCrawlerVisit();\n $visit->name = $CrawlerDetect->getMatches();\n $visit->save();\n }\n } catch (Exception $err) {\n\n }\n Craft::$app->response->format = Response::FORMAT_RAW;\n $headers = Craft::$app->response->headers;\n $headers->add('Content-Type', 'text/xml');\n\n $dom = new DOMDocument('1.0', 'UTF-8');\n $dom->formatOutput = true;\n\n $urlset = $dom->createElementNS('http://www.sitemaps.org/schemas/sitemap/0.9', 'urlset');\n $urlset->setAttributeNS(\n 'http://www.w3.org/2000/xmlns/',\n 'xmlns:xhtml',\n 'http://www.w3.org/1999/xhtml'\n );\n $dom->appendChild($urlset);\n\n foreach ($this->_createEntrySectionQuery()->all() as $item) {\n $loc = $this->getUrl($item['uri'], $item['siteId']);\n if ($loc === null) {\n continue;\n }\n\n $url = $dom->createElement('url');\n $urlset->appendChild($url);\n $url->appendChild($dom->createElement('loc', $loc));\n $url->appendChild($dom->createElement('priority', $item['priority']));\n $url->appendChild($dom->createElement('changefreq', $item['changefreq']));\n $dateUpdated = strtotime($item['dateUpdated']);\n $url->appendChild($dom->createElement('lastmod', date('Y-m-d\\TH:i:sP', $dateUpdated)));\n if ($item['alternateLinkCount'] > 1) {\n $alternateLinks = $this->_createAlternateSectionQuery($item['elementId'])->all();\n if (count($alternateLinks) > 0) {\n foreach ($alternateLinks as $alternateItem) {\n $alternateLoc = $this->getUrl($alternateItem['uri'], $alternateItem['siteId']);\n if ($alternateLoc === null) {\n continue;\n }\n\n $alternateLink = $dom->createElementNS('http://www.w3.org/1999/xhtml', 'xhtml:link');\n $alternateLink->setAttribute('rel', 'alternate');\n $alternateLink->setAttribute('hreflang', strtolower($alternateItem['siteLanguate']));\n $alternateLink->setAttribute('href', $alternateLoc);\n $url->appendChild($alternateLink);\n }\n }\n }\n }\n\n foreach ($this->_createEntryCategoryQuery()->all() as $item) {\n $loc = $this->getUrl($item['uri'], $item['siteId']);\n if ($loc === null) {\n continue;\n }\n\n $url = $dom->createElement('url');\n $urlset->appendChild($url);\n $url->appendChild($dom->createElement('loc', $loc));\n $url->appendChild($dom->createElement('priority', $item['priority']));\n $url->appendChild($dom->createElement('changefreq', $item['changefreq']));\n $dateUpdated = strtotime($item['dateUpdated']);\n $url->appendChild($dom->createElement('lastmod', date('Y-m-d\\TH:i:sP', $dateUpdated)));\n\n\n }\n return $dom->saveXML();\n }", "title": "" }, { "docid": "be9fee8b453b1a518f61b6456aec3989", "score": "0.64368135", "text": "function sitemap_discovery() {\n\tif ( ! defined( 'WPCOM_SKIP_DEFAULT_SITEMAP' ) || true !== WPCOM_SKIP_DEFAULT_SITEMAP )\n\t\techo 'Sitemap: ' . esc_url( sitemap_uri() ) . PHP_EOL;\n\n\tif ( ! defined( 'WPCOM_SKIP_DEFAULT_NEWS_SITEMAP' ) || true !== WPCOM_SKIP_DEFAULT_NEWS_SITEMAP )\n\t\techo 'Sitemap: ' . esc_url( news_sitemap_uri() ) . PHP_EOL . PHP_EOL;\n}", "title": "" }, { "docid": "7b4b4d0f098a61b3feb7659f79de3185", "score": "0.63957715", "text": "public function get_url_list(/**\n * Filters the sitemap entry for an individual post.\n *\n * @since 5.5.0\n *\n * @param array $sitemap_entry Sitemap entry for the post.\n * @param WP_Post $post Post object.\n * @param string $post_type Name of the post_type.\n */\n$page_num, /**\n * Filters the sitemap entry for an individual post.\n *\n * @since 5.5.0\n *\n * @param array $sitemap_entry Sitemap entry for the post.\n * @param WP_Post $post Post object.\n * @param string $post_type Name of the post_type.\n */\n$post_type = '') {}", "title": "" }, { "docid": "4816b68101ef55063d62fc351e70855e", "score": "0.63939345", "text": "function drush_simple_sitemap_generate() {\n \\Drupal::service('simple_sitemap.generator')->generateSitemap('drush');\n}", "title": "" }, { "docid": "8785f8a22ac966f90680813faa87a386", "score": "0.6357339", "text": "function xml_add_url($loc, $lastmod = \"\", $changefreq = \"\", $priority = \"\") {\n\t\tglobal $total_count, $count;\n\t\tglobal $sitemap_count;\n\t\tglobal $sitemap_started;\n\t\tglobal $site_map_folder, $site_map_filename;\n\n\t\t$count++;\n\t\t$xml = \"\";\n\n\t\t$site_map_fileurls = $site_map_folder . $site_map_filename . $sitemap_count . \".xml\";\n\t\tif (!$sitemap_started) {\n\t\t\tif (file_exists($site_map_fileurls) && is_writable($site_map_fileurls)){\n\t\t\t\t$fp = fopen($site_map_fileurls, \"w\");\n\t\t\t\t@fwrite($fp, '');\n\t\t\t\t@fclose($fp);\n\t\t\t}\n\t\t\t$sitemap_started = true;\n\t\t \t$xml .= \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"\" . chr(63) . \">\\n\";\n\t\t \t$xml .= \"<urlset xmlns=\\\"http://www.sitemaps.org/schemas/sitemap/0.9\\\">\\n\";\n\t\t}\n\n\t\t$xml .= \"\\t<url>\\n\";\n\t\t$xml .= \"\\t\\t<loc>\" . htmlspecialchars($loc, ENT_QUOTES, \"UTF-8\") . \"</loc>\\n\";\n\t\tif (!strlen($lastmod)){\n\t\t\t$datetime_loc_format = array(\"YYYY\", \"-\", \"MM\", \"-\", \"DD\", \"T\", \"HH\", \":\", \"mm\", \":\", \"ss\", \"+00:00\");\n\t\t\t$lastmod = va_date($datetime_loc_format);\n\t\t}\n\t\tif (strlen($lastmod)){\n\t\t\t$xml .=\"\\t\\t<lastmod>\".$lastmod.\"</lastmod>\\n\";\n\t\t}\n\t\tif (strlen($changefreq)){\n\t\t\t$xml .=\"\\t\\t<changefreq>\".$changefreq.\"</changefreq>\\n\";\n\t\t}\n\t\tif (strlen($priority)){\n\t\t\t$xml .=\"\\t\\t<priority>\".$priority.\"</priority>\\n\";\n\t\t}\n\t\t$xml .= \"\\t</url>\\n\";\n\n\t\tif (file_exists($site_map_fileurls)) {\n\t\t\tclearstatcache();\n\t\t\t$size = filesize($site_map_fileurls);\n\t\t\tif (($size > 10000000) || ($count % 50000 == 0)) { // due to Google Sitemap protocol limitations\n\t\t\t\t$sitemap_started = false;\n\t\t\t\t$xml .= \"</urlset>\";\n\t\t\t\t$total_count = $total_count + $count;\n\t\t\t\t$count = 0;\n\t\t\t\t$sitemap_count++;\n\t\t\t}\n\t\t}\n\n\t\t$fp = fopen($site_map_fileurls, \"a\");\n\t\t@fwrite($fp, $xml);\n\t\t@fclose($fp);\n\t}", "title": "" }, { "docid": "67dc5bbfd883ec50cf91a841c86eb6ce", "score": "0.634306", "text": "public static function get_google_sitemap()\n {\n $base = URL::base(FALSE, 'http');\n $sitemap = new Sitemap;\n\n foreach(self::$_modules as $module)\n {\n $module_orm = DB::select($module.\"_data.id\")\n ->select(array(\"routes.id\",\"route_id\"))\n ->select(array(\"routes.nazev_seo\",\"route_nazev_seo\"))\n ->from($module.\"_data\")\n ->join(\"routes\")->on($module.\"_data.route_id\",\"=\",\"routes.id\")\n ->where(\"routes.zobrazit\",\"=\",1)\n ->execute();\n\n \n foreach($module_orm as $item)\n {\n $url = new Sitemap_URL();\n $nazev_seo=$item[\"route_nazev_seo\"];\n if($nazev_seo==\"index\") $nazev_seo=\"\";\n $url->set_loc($base.$nazev_seo);\n $sitemap->add($url);\n }\n\n }\n\n $sitemap_file_handle=fopen(\"sitemap.xml\",\"w\");\n fwrite($sitemap_file_handle,$sitemap);\n fclose($sitemap_file_handle);\n\n }", "title": "" }, { "docid": "069d4d77900a3f0862100e63decf391d", "score": "0.6275952", "text": "public function get_sitemap_list() {}", "title": "" }, { "docid": "2811e033efb0f7d1d9c2aff413e032f6", "score": "0.62501997", "text": "public function get_url_list(/**\n * Filters the sitemap entry for an individual term.\n *\n * @since 5.5.0\n *\n * @param array $sitemap_entry Sitemap entry for the term.\n * @param WP_Term $term Term object.\n * @param string $taxonomy Taxonomy name.\n */\n$page_num, /**\n * Filters the sitemap entry for an individual term.\n *\n * @since 5.5.0\n *\n * @param array $sitemap_entry Sitemap entry for the term.\n * @param WP_Term $term Term object.\n * @param string $taxonomy Taxonomy name.\n */\n$taxonomy = '') {}", "title": "" }, { "docid": "306418800f7e51d19a74b0712bcf1c87", "score": "0.6220438", "text": "public function sitemap()\n\t{\n\t\t$eventos = Evento::all();\n\n foreach ($eventos as $evento)\n {\n Sitemap::addTag(route('evento.show', $evento->id_evento), $evento->created_at, 'daily', '0.8');\n }\n return Sitemap::xml();\n\t}", "title": "" }, { "docid": "1470ccb58ce7e2c6b79a67beeb3851dc", "score": "0.6168431", "text": "function build_video_sitemap() {\n\t\t$options = get_option( 'wpseo_video' );\n\n\t\t// Restrict access to the video sitemap to admins and valid bots\n\t\tif ( isset( $options['cloak_sitemap'] ) && $options['cloak_sitemap'] && !current_user_can( 'manage_options' ) && !$this->is_valid_bot() ) {\n\t\t\twp_die( \"We're sorry, access to our video sitemap is restricted to site admins and valid Google & Bing bots.\" );\n\t\t}\n\n\t\t$output = '<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:video=\"http://www.google.com/schemas/sitemap-video/1.1\">' . \"\\n\";\n\n\t\t$printed_post_ids = array();\n\n\t\t$steps = 5;\n\t\t$n = (int) get_query_var( 'sitemap_n' );\n\t\t$offset = ( $n > 1 ) ? ( $n - 1 ) * $this->max_entries : 0;\n\t\t$total = $offset + $this->max_entries;\n\n\t\tif ( isset( $options['videositemap_posttypes'] ) ) {\n\t\t\t// Set the initial args array to get videos in chunks\n\t\t\t$args = array(\n\t\t\t\t'post_type' => $options['videositemap_posttypes'],\n\t\t\t\t'post_status' => 'publish',\n\t\t\t\t'posts_per_page' => $steps,\n\t\t\t\t'offset' => $offset,\n\t\t\t\t'meta_key' => '_yoast_wpseo_video_meta',\n\t\t\t\t'meta_compare' => '!=',\n\t\t\t\t'meta_value' => 'none',\n\t\t\t\t'order' => 'ASC',\n\t\t\t\t'orderby' => 'post_modified'\n\t\t\t);\n\n\t\t\t// TODO: add support to tax video to honor pages\n\t\t\t/*\n\t\t\t\tadd a bool to the while loop to see if tax as been processed\n\t\t\t\tif $items is empty the posts are done so move on to tax\n\n\t\t\t\tdo some math between $printed_post_ids and $this-max_entries to figure out how many from tax to add to this pagination\n\t\t\t*/\n\n\t\t\t// Add entries to the sitemap until the total is hit (rounded up by nearest $steps)\n\t\t\twhile ( ( $total > $offset ) && ( $items = get_posts( $args ) ) ) {\n\n\t\t\t\tif ( !empty( $items ) ) {\n\t\t\t\t\tforeach ( $items as $item ) {\n\t\t\t\t\t\tif ( in_array( $item->ID, $printed_post_ids ) )\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$printed_post_ids[] = $item->ID;\n\t\t\t\t\t\tif ( false != wpseo_get_value( 'meta-robots', $item->ID ) && strpos( wpseo_get_value( 'meta-robots', $item->ID ), 'noindex' ) !== false )\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t$disable = wpseo_get_value( 'videositemap-disable', $item->ID );\n\t\t\t\t\t\tif ( $disable == 'on' )\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t$video = wpseo_get_value( 'video_meta', $item->ID );\n\n\t\t\t\t\t\t// Allow for the video's thumbnail to be overridden by the meta box input\n\t\t\t\t\t\t$videoimg = wpseo_get_value( 'videositemap-thumbnail', $item->ID );\n\t\t\t\t\t\tif ( $videoimg && trim( $videoimg ) != '' )\n\t\t\t\t\t\t\t$video['thumbnail_loc'] = $videoimg;\n\n\t\t\t\t\t\t// When we don't have a thumbnail and either a player_loc or a content_loc, skip this video.\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t!isset( $video['thumbnail_loc'] )\n\t\t\t\t\t\t\t|| ( !isset( $video['player_loc'] ) && !isset( $video['content_loc'] ) )\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$video_duration = wpseo_get_value( 'videositemap-duration', $item->ID );\n\t\t\t\t\t\tif ( $video_duration && $video_duration > 0 ) {\n\t\t\t\t\t\t\t$video['duration'] = $video_duration;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$video['permalink'] = get_permalink( $item );\n\n\t\t\t\t\t\t$rating = apply_filters( 'wpseo_video_rating', wpseo_get_value( 'videositemap-rating', $item->ID ) );\n\t\t\t\t\t\tif ( $rating && is_numeric( $rating ) && $rating >= 0 && $rating <= 5 )\n\t\t\t\t\t\t\t$video['rating'] = number_format( $rating, 1 );\n\n\t\t\t\t\t\t$not_family_friendly = apply_filters( 'wpseo_video_family_friendly', wpseo_get_value( 'videositemap-not-family-friendly', $item->ID ), $item->ID );\n\t\t\t\t\t\tif ( $not_family_friendly && $not_family_friendly == 'on' )\n\t\t\t\t\t\t\t$video['family_friendly'] = \"no\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$video['family_friendly'] = \"yes\";\n\n\t\t\t\t\t\t$video['author'] = $item->post_author;\n\n\t\t\t\t\t\t$output .= $this->print_sitemap_line( $video );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Update these args for the next iteration\n\t\t\t\t$offset = $offset + $steps;\n\t\t\t\t$args['offset'] += $steps;\n\t\t\t}\n\t\t}\n\n\t\t$tax_meta = get_option( 'wpseo_taxonomy_meta' );\n\t\t$terms = array();\n\t\tif ( isset( $options['videositemap_taxonomies'] ) )\n\t\t\t$terms = get_terms( $options['videositemap_taxonomies'] );\n\n\t\tforeach ( $terms as $term ) {\n\t\t\tif ( !is_object( $term ) || !isset( $tax_meta ) || !isset( $tax_meta[$term->taxonomy] ) || !isset( $tax_meta[$term->taxonomy]['_video'] ) || !isset( $tax_meta[$term->taxonomy]['_video'][$term->term_id] ) )\n\t\t\t\tcontinue;\n\t\t\t$video = $tax_meta[$term->taxonomy]['_video'][$term->term_id];\n\t\t\tif ( is_array( $video ) ) {\n\t\t\t\t$video['permalink'] = get_term_link( $term, $term->taxonomy );\n\t\t\t\t$video['category'] = $term->name;\n\t\t\t\t$output .= $this->print_sitemap_line( $video );\n\t\t\t}\n\t\t}\n\n\t\t$output .= '</urlset>';\n\t\t$GLOBALS['wpseo_sitemaps']->set_sitemap( $output );\n\t\t$GLOBALS['wpseo_sitemaps']->set_stylesheet(\n\t\t\t\"\\n\" . '<?xml-stylesheet type=\"text/xsl\" href=\"' . home_url( 'video-sitemap.xsl' ) . '\"?>'\n\t\t);\n\t}", "title": "" }, { "docid": "892c2671f0c0f0e82541aa3e7b888fa5", "score": "0.6166383", "text": "public function findAllForSitemap();", "title": "" }, { "docid": "bc9301a609976382d434ccb9db97619d", "score": "0.6148251", "text": "function rebuild_sitemap() {\n\t\t$CI =& get_instance();\n\t\t\n\t\t// carico la libreria sitemaps\n\t\t$CI->load->library('sitemaps');\n\t\t\n\t\t// carico gli array delle categorie e tag attivi, insieme a quello delle liste pubblicate\n\t\t$categories = $CI->Listype_model->select_active_categories();\n\t\t$tags = $CI->Listype_model->select_active_tags();\n\t\t$lists = $CI->Listype_model->select_lists($limit = 0);\n\n\t\t// costruisco l'albero della sitemap con tutte le pagine\n\t\t$item = array(\n\t\t\t\"loc\" => site_url(),\n\t\t\t\"lastmod\" => date(\"c\", time()),\n\t\t\t\"changefreq\" => \"hourly\",\n\t\t\t\"priority\" => \"0.8\"\n\t\t);\n\n\t\t$CI->sitemaps->add_item($item);\n\n\t\t$item = array(\n\t\t\t\"loc\" => site_url(\"top_year\"),\n\t\t\t\"lastmod\" => date(\"c\", time()),\n\t\t\t\"changefreq\" => \"hourly\",\n\t\t\t\"priority\" => \"0.8\"\n\t\t);\n\n\t\t$CI->sitemaps->add_item($item);\n\n\t\t$item = array(\n\t\t\t\"loc\" => site_url(\"top_month\"),\n\t\t\t\"lastmod\" => date(\"c\", time()),\n\t\t\t\"changefreq\" => \"hourly\",\n\t\t\t\"priority\" => \"0.8\"\n\t\t);\n\n\t\t$CI->sitemaps->add_item($item);\n\t\t\n\t\t$item = array(\n\t\t\t\"loc\" => site_url(\"about_listype\"),\n\t\t\t\"changefreq\" => \"hourly\",\n\t\t\t\"priority\" => \"0.8\"\n\t\t);\n\n\t\t$CI->sitemaps->add_item($item);\n\n\t\t$item = array(\n\t\t\t\"loc\" => site_url(\"about_us\"),\n\t\t\t\"changefreq\" => \"hourly\",\n\t\t\t\"priority\" => \"0.8\"\n\t\t);\n\n\t\t$CI->sitemaps->add_item($item);\n\n\t\tforeach ($categories as $category) {\n\t\t\t$item = array(\n\t\t\t\t\"loc\" => site_url(\"cat/\" . $category->slug),\n\t\t\t\t\"lastmod\" => date(\"c\", strtotime($category->last_modified)),\n\t\t\t\t\"changefreq\" => \"hourly\",\n\t\t\t\t\"priority\" => \"0.8\"\n\t\t\t);\n\n\t\t\t$CI->sitemaps->add_item($item);\n\t\t}\n\n\t\tforeach ($tags as $tag) {\n\t\t\t$item = array(\n\t\t\t\t\"loc\" => site_url(\"tag/\" . $tag->slug),\n\t\t\t\t\"lastmod\" => date(\"c\", strtotime($tag->last_modified)),\n\t\t\t\t\"changefreq\" => \"hourly\",\n\t\t\t\t\"priority\" => \"0.8\"\n\t\t\t);\n\n\t\t\t$CI->sitemaps->add_item($item);\n\t\t}\n\n\t\tforeach ($lists as $list) {\n\t\t\t$item = array(\n\t\t\t\t\"loc\" => site_url($list->slug),\n\t\t\t\t\"lastmod\" => date(\"c\", strtotime($list->insert_date)),\n\t\t\t\t\"changefreq\" => \"hourly\",\n\t\t\t\t\"priority\" => \"0.8\"\n\t\t\t);\n\n\t\t\t$CI->sitemaps->add_item($item);\n\t\t}\n\n\t\t// file name may change due to compression\n\t\t$file_name = $CI->sitemaps->build(\"sitemap.xml\");\n\n\t\t// invio la sitemap ai principali motori di ricerca\n\t\t// $reponses = $CI->sitemaps->ping(site_url($file_name));\n\t}", "title": "" }, { "docid": "ca0bc567a08304ac885fde95c8a0d8fc", "score": "0.6144222", "text": "protected function _generateXml() {\n $io = new Varien_Io_File();\n $io->setAllowCreateFolders(true);\n $io->open(array('path' => $this->getPath()));\n\n if ($io->fileExists($this->getSitemapFilename()) && !$io->isWriteable($this->getSitemapFilename())) {\n Mage::throwException(Mage::helper('sitemap')->__('File \"%s\" cannot be saved. Please, make sure the directory \"%s\" is writeable by web server.', $this->getSitemapFilename(), $this->getPath()));\n }\n\n $io->streamOpen($this->getSitemapFilename());\n\n $io->streamWrite('<?xml version=\"1.0\" encoding=\"UTF-8\"?>' . \"\\n\");\n $io->streamWrite('<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\">');\n\n $storeId = $this->getStoreId();\n $date = Mage::getSingleton('core/date')->gmtDate('Y-m-d');\n $baseUrl = Mage::app()->getStore($storeId)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);\n\n /**\n * Generate categories sitemap\n */\n $changefreq = (string)Mage::getStoreConfig('sitemap/category/changefreq', $storeId);\n $priority = (string)Mage::getStoreConfig('sitemap/category/priority', $storeId);\n $collection = Mage::getResourceModel('sitemap/catalog_category')->getCollection($storeId);\n $alternateLinksCollection = Mage::getResourceModel('sitemap/catalog_category')->getAlternateLinksCollection(Mage::app()->getStore($storeId));\n foreach ($collection as $item) {\n $xml = sprintf(\n '<url><loc>%s</loc>%s<lastmod>%s</lastmod><changefreq>%s</changefreq><priority>%.1f</priority></url>',\n htmlspecialchars($baseUrl . $item->getUrl()),\n $this->_getAlternateLinks($item, $alternateLinksCollection),\n $date,\n $changefreq,\n $priority\n );\n $io->streamWrite($xml);\n }\n unset($collection);\n\n /**\n * Generate products sitemap\n */\n $changefreq = (string)Mage::getStoreConfig('sitemap/product/changefreq', $storeId);\n $priority = (string)Mage::getStoreConfig('sitemap/product/priority', $storeId);\n $collection = Mage::getResourceModel('sitemap/catalog_product')->getCollection($storeId);\n $alternateLinksCollection = Mage::getResourceModel('sitemap/catalog_product')->getAlternateLinksCollection(Mage::app()->getStore($storeId));\n foreach ($collection as $item) {\n $xml = sprintf(\n '<url><loc>%s</loc>%s<lastmod>%s</lastmod><changefreq>%s</changefreq><priority>%.1f</priority></url>',\n htmlspecialchars($baseUrl . $item->getUrl()),\n $this->_getAlternateLinks($item, $alternateLinksCollection),\n $date,\n $changefreq,\n $priority\n );\n $io->streamWrite($xml);\n }\n unset($collection);\n\n /**\n * Generate cms pages sitemap\n */\n $changefreq = (string)Mage::getStoreConfig('sitemap/page/changefreq', $storeId);\n $priority = (string)Mage::getStoreConfig('sitemap/page/priority', $storeId);\n $collection = Mage::getResourceModel('sitemap/cms_page')->getCollection($storeId);\n foreach ($collection as $item) {\n $xml = sprintf(\n '<url><loc>%s</loc><lastmod>%s</lastmod><changefreq>%s</changefreq><priority>%.1f</priority></url>',\n htmlspecialchars($baseUrl . $item->getUrl()),\n $date,\n $changefreq,\n $priority\n );\n $io->streamWrite($xml);\n }\n unset($collection);\n\n $io->streamWrite('</urlset>');\n $io->streamClose();\n\n $this->setSitemapTime(Mage::getSingleton('core/date')->gmtDate('Y-m-d H:i:s'));\n $this->save();\n\n return $this;\n }", "title": "" }, { "docid": "26c10e9054b2539684b684e039898552", "score": "0.613134", "text": "public function get_url_list(/**\n * Filters the sitemap entry for an individual user.\n *\n * @since 5.5.0\n *\n * @param array $sitemap_entry Sitemap entry for the user.\n * @param WP_User $user User object.\n */\n$page_num, /**\n * Filters the sitemap entry for an individual user.\n *\n * @since 5.5.0\n *\n * @param array $sitemap_entry Sitemap entry for the user.\n * @param WP_User $user User object.\n */\n$object_subtype = '') {}", "title": "" }, { "docid": "052c119f588ca4cbed697dd469594e11", "score": "0.61065286", "text": "public function sitemapAds($config){\n $amount = Model_BoardAd::boardOrmCounter()->execute();\n $amount = $amount[0]['cnt'];\n $step = isset($config['partable']) ? $config['partable'] : 10000;\n $path = 'media/upload/sitemap/';\n\n $priority = isset($config['priority']) ? $config['priority'] : '0.5';\n $frequency = isset($config['frequency']) ? $config['frequency'] : 'daily';\n $sitemaps = array();\n for($i=0; $i*$step < $amount; $i++){\n $sitemap = new Sitemap();\n $sitemap->gzip = TRUE;\n $url = new Sitemap_URL;\n $file = DOCROOT . $path . \"board_ads_\".($i+1).\".xml.gz\";\n $sitemap_link = URL::base(KoMS::protocol()). $path .\"board_ads_\".($i+1).\".xml.gz\";\n\n $links = Model_BoardAd::boardOrmFinder()->offset($i*$step)->limit($step)->execute();\n foreach($links as $_link){\n $url->set_loc(URL::base(KoMS::protocol()).$_link->getUri())\n ->set_last_mod(isset($config['lastmod_now']) && $config['lastmod_now'] ? time() : $_link->addtime)\n ->set_change_frequency($frequency)\n ->set_priority($priority);\n $sitemap->add($url);\n }\n $response = $sitemap->render();\n file_put_contents($file, $response);\n if($i>1) // КОСТЫЛЬ: исключаем первую 10К объявлений из общего сайтмапа\n $sitemaps[] = $sitemap_link;\n }\n return $sitemaps;\n }", "title": "" }, { "docid": "cd86ff29b9a60984dae56480a6ed1333", "score": "0.6096662", "text": "function my_sitemap_replacement ($content) {\n\t//return $content . '<empty>Nothing here</empty>';\n\t$totalposts = apply_filters('simple_sitemaps-totals_soft_limit', (defined('SIMPLE_SITEMAPS_POST_SOFT_LIMIT') ? SIMPLE_SITEMAPS_POST_SOFT_LIMIT : 50));\n\t$latestposts = $totalposts ? get_posts( 'post_type=people&numberposts=' . $totalposts . '&orderby=date&order=DESC' ) : array();\n\tforeach ( $latestposts as $post ) {\n\t\t$content .= \"\t<url>\\n\";\n\t\t$content .= '\t\t<loc>' . get_permalink( $post->ID ) . \"</loc>\\n\";\n\t\t$content .= '\t\t<lastmod>' . mysql2date( 'Y-m-d\\TH:i:s', $post->post_modified_gmt ) . \"+00:00</lastmod>\\n\";\n\t\t$content .= '\t\t<priority>' . number_format( 1, 1 ) . \"</priority>\\n\";\n\t\t$content .= \"\t</url>\\n\";\n\t}\n\treturn $content;\n}", "title": "" }, { "docid": "c7c8b826457a59c4fb85884760335c19", "score": "0.60962796", "text": "protected function maybe_add_xml_sitemap()\n {\n }", "title": "" }, { "docid": "f28f6ec21075497ecbfce49b7883b47e", "score": "0.6080184", "text": "protected function sitemap_index_url($url)\n {\n }", "title": "" }, { "docid": "8abb5ed494ea0c7300b0f7e79ed3ca21", "score": "0.60755056", "text": "public static function getUrlSitemap(): SitemapFile\n {\n return new SitemapFile(new UrlSetNode());\n }", "title": "" }, { "docid": "5d9083ff8a44babfbf567ed915473cb7", "score": "0.60565484", "text": "function add_sitemap_url($xml, $page, $languages, $language = null){\n\n\t$url = $xml->createElement(\"url\");\n\n\t$loc = $xml->createElement(\"loc\", html($page->url($language)));\n\t$url->appendChild($loc);\n\n\t/* <lastmod><?= date('c', $page->modified()) ?></lastmod>\n\t 20170702 pk --- this did not work correctly for dates of blog posts */\n\t$lastmod = $xml->createElement(\"lastmod\", $page->date() ? $page->date('c') : $page->modified('c'));\n\t$url->appendChild($lastmod);\n\n\tif ($languages && $languages->count() > 1) {\n\t\tforeach ($languages as $lang) {\n\t\t\t// list only if the content file exists\n\t\t\tif ($page->content($lang->code())->exists()) {\n\t\t\t\t$langs = $xml->createElement(\"xhtml:link\");\n\t\t\t\t$langs->setAttribute('hreflang', $lang->code());\n\t\t\t\t$langs->setAttribute('href', html($page->url($lang->code())));\n\t\t\t\t$langs->setAttribute('rel', \"alternate\");\n\t\t\t\t$url->appendChild($langs);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (c::get('sitemap.priority', false)) {\n\t\t$prio = $xml->createElement(\"priority\", $page->priority());\n\t\t$url->appendChild($prio);\n\t}\n\n\tif (c::get('sitemap.frequency', false)) {\n\t\t$freq = $xml->createElement(\"changefreq\", $page->frequency());\n\t\t$url->appendChild($freq);\n\t}\n\n\t// images\n\tif (c::get('sitemap.include.images', true) && $page->hasImages()) {\n\t\tforeach ($page->images() as $image) {\n\t\t\t$img = $xml->createElement(\"image:image\");\n\t\t\t$url->appendChild($img);\n\n\t\t\t$loc = $xml->createElement(\"image:loc\", html($image->url()));\n\t\t\t$img->appendChild($loc);\n\n\t\t\t// caption is language specific\n\t\t\t$meta = $image->meta($language);\n\t\t\t\n\t\t\tif ($meta->caption()->isNotEmpty() || $meta->alt()->isNotEmpty()) {\n\t\t\t\t$caption = $meta->caption()->isNotEmpty() ? $meta->caption() : $meta->alt();\n\n\t\t\t\t$cap = $xml->createElement(\"image:caption\");\n\t\t\t\t$cdata = $xml->createCDATASection($caption);\n\t\t\t\t$cap->appendChild($cdata);\n\t\t\t\t$img->appendChild($cap);\n\t\t\t}\n\n\t\t\tif ($license = c::get('sitemap.images.license', null)) {\n\t\t\t\t$lic = $xml->createElement(\"image:license\", html($license));\n\t\t\t\t$img->appendChild($lic);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $url;\n}", "title": "" }, { "docid": "3550de516b190ee1c856fdfc481fe49e", "score": "0.6045489", "text": "private function setSitePages()\n {\n $url = $this->argument('url');\n $sitemapPath = $url . '/sitemap.xml';\n $fcSitemap = file_get_contents($sitemapPath);\n\n // if we can't find the sitemap, we need to just stop\n if (!$fcSitemap) {\n $this->error('Sitemap not found at: ' . $sitemapPath);\n exit;\n }\n\n // parse the sitemap into an array so we can process it\n $sitemapXml = simplexml_load_string($fcSitemap, \"SimpleXMLElement\", LIBXML_NOCDATA);\n $sitemapJson = json_encode($sitemapXml);\n $sitemapArr = json_decode($sitemapJson, true);\n\n // if the sitemap doesn't have the URLs set, we need to just stop\n if (!isset($sitemapArr['url'])) {\n $this->error('Sitemap XML not formatted properly, URLs not found.');\n exit;\n }\n\n $this->sitePages = $sitemapArr['url'];\n }", "title": "" }, { "docid": "3f36e7f870fc30860b9b63a88091d3fc", "score": "0.60444957", "text": "public function addUrls(array $urls): void;", "title": "" }, { "docid": "b84fe27cd3dddc96b99a62f3d5748136", "score": "0.60198134", "text": "function ddsg_generate_sitemap($content) {\n\tif (strpos($content, \"<!-- ddsitemapgen -->\") !== FALSE) {\n\t\t$content = preg_replace('/<p>\\s*<!--(.*)-->\\s*<\\/p>/i', \"<!--$1-->\", $content);\n\t\t$content = str_replace('<!-- ddsitemapgen -->', ddsg_create_sitemap(), $content);\n\t}\n\treturn $content;\n}", "title": "" }, { "docid": "d7c1d84b66f20865f1e5950189900384", "score": "0.6015721", "text": "public function process_url($url){\n\t\t// save raw url\n\t\t$this->url_raw = $url;\n\t\t\n\t\t// rebuild url to mvc standard for sitemap.xml\n\t\tif($url == '/sitemap.xml'){\n\t\t\t$url = $this->reg->config->get('sitemap');\n\t\t}\n\t\t\n\t\t// breakup the url into an array and remove first element\n\t\t$this->url_array = explode('/', str_replace(array('?', '='), '/', $url));\n\t\tarray_shift($this->url_array);\n\n\t\tif (count($this->url_array) == 1 && $this->url_array[0] != '' ) {\n\t\t\t$filename = $this->url_array[0];\n\t\t\t$this->url_array = array('content', 'view', 'page', $filename);\n\t\t}\n\t\t\n\t\tif (count($this->url_array) == 2 && $this->url_array[0] != '' && $this->url_array[1] == '' ) {\n\t\t\t$filename = $this->url_array[0];\n\t\t\t$this->url_array = array('content', 'view', 'page', $filename);\n\t\t}\n\t\t\n\t\t\t\t\n\t\tif (count($this->url_array) > 1 && $this->url_array[0] == 'locations' ) {\n\t\t\t\n\t\t\t// creating Temporary 301 Redirect link /locations/idaho/lees-summit to /locations/missouri/lees-summit\n\t\t\tif (count($this->url_array) > 1 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && @$this->url_array[2] == 'lees-summit') {\n\t\t\t\t$new_link = '/locations/missouri/lees-summit';\n\t\t\t\tif (isset($this->url_array[3])) {\n\t\t\t\t\t$new_link .= '/' . $this->url_array[3]; \n\t\t\t\t}\n\t\t\t\tif (isset($this->url_array[4])) {\n\t\t\t\t\t$new_link .= '/' . $this->url_array[4]; \n\t\t\t\t}\n\t\t\t\theader(\"Location:\".$new_link);\n\t\t\t} \n\t\t\t\n\t\t\t\n\t\t\t// creating link /locations/idaho\n\t\t\tif (count($this->url_array) == 2 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'idaho');\n\t\t\t}\n\t\t\t// creating link /locations/idaho/\n\t\t\telse if (count($this->url_array) == 3 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'idaho');\n\t\t\t}\n\t\t\t// creating link /locations/missouri\n\t\t\telse if (count($this->url_array) == 2 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'missouri');\n\t\t\t} \n\t\t\t// creating link /locations/missouri/\n\t\t\telse if (count($this->url_array) == 3 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'missouri');\n\t\t\t}\n\t\t\t// creating link /locations/lees-summit\n\t\t\telse if (count($this->url_array) == 2 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'lees-summit') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'lees-summit');\n\t\t\t} \n\t\t\t// creating link /locations/lees-summit/\n\t\t\telse if (count($this->url_array) == 3 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'lees-summit' && $this->url_array[2] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'lees-summit');\n\t\t\t} \n\t\t\t// creating link /locations/twin-falls\n\t\t\telse if (count($this->url_array) == 2 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'twin-falls') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'twin-falls');\n\t\t\t} \n\t\t\t// creating link /locations/twin-falls/\n\t\t\telse if (count($this->url_array) == 3 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'twin-falls' && $this->url_array[2] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'twin-falls');\n\t\t\t} \n\t\t\t// creating link /locations/missouri/lees-summit\n\t\t\telse if (count($this->url_array) == 3 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'lees-summit-missouri');\n\t\t\t} \n\t\t\t// creating link /locations/missouri/lees-summit/\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'lees-summit-missouri');\n\t\t\t} \n\t\t\t\n\t\t\t// creating link /locations/missouri/lees-summit/cell-phone-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'cell-phone-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'cell-phone-repair-lees-summit');\n\t\t\t} \n\t\t\t// creating link /locations/missouri/lees-summit/cell-phone-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'cell-phone-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'cell-phone-repair-lees-summit');\n\t\t\t} \n\t\t\t// creating link /locations/missouri/lees-summit/ipad-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'ipad-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'ipad-repair-lees-summit');\n\t\t\t} \n\t\t\t// creating link /locations/missouri/lees-summit/ipad-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'ipad-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'ipad-repair-lees-summit');\n\t\t\t}\n\t\t\t// creating link /locations/missouri/lees-summit/iphone-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'iphone-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'iphone-repair-lees-summit');\n\t\t\t}\n\t\t\t// creating link /locations/missouri/lees-summit/iphone-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'iphone-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'iphone-repair-lees-summit');\n\t\t\t}\n\t\t\t// creating link /locations/missouri/lees-summit/ipod-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'ipod-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'ipod-repair-lees-summit');\n\t\t\t} \n\t\t\t// creating link /locations/missouri/lees-summit/ipod-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'ipod-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'ipod-repair-lees-summit');\n\t\t\t}\n\t\t\t// creating link /locations/missouri/lees-summit/laptop-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'laptop-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'laptop-repair-lees-summit');\n\t\t\t} \n\t\t\t// creating link /locations/missouri/lees-summit/laptop-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'laptop-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'laptop-repair-lees-summit');\n\t\t\t}\n\t\t\t// creating link /locations/missouri/lees-summit/smartphone-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'smartphone-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'smartphone-repair-lees-summit');\n\t\t\t} \n\t\t\t// creating link /locations/missouri/lees-summit/smartphone-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'smartphone-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'smartphone-repair-lees-summit');\n\t\t\t} \n\t\t\t// creating link /locations/missouri/lees-summit/tablet-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'tablet-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'tablet-repair-lees-summit');\n\t\t\t} \n\t\t\t// creating link /locations/missouri/lees-summit/tablet-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'missouri' && $this->url_array[2] == 'lees-summit' && $this->url_array[3] == 'tablet-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'tablet-repair-lees-summit');\n\t\t\t}\n\t\t\t// creating link /locations/idaho/twin-falls\n\t\t\telse if (count($this->url_array) == 3 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'twin-falls-idaho');\n\t\t\t} \n\t\t\t// creating link /locations/idaho/twin-falls/\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'twin-falls-idaho');\n\t\t\t}\n\t\t\t// creating link /locations/idaho/twin-falls/cell-phone-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'cell-phone-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'cell-phone-repair-twin-falls');\n\t\t\t} \n\t\t\t// creating link /locations/idaho/twin-falls/cell-phone-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'cell-phone-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'cell-phone-repair-twin-falls');\n\t\t\t}\n\t\t\t// creating link /locations/idaho/twin-falls/ipad-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'ipad-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'ipad-repair-twin-falls');\n\t\t\t} \n\t\t\t// creating link /locations/idaho/twin-falls/ipad-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'ipad-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'ipad-repair-twin-falls');\n\t\t\t}\n\t\t\t// creating link /locations/idaho/twin-falls/iphone-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'iphone-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'iphone-repair-twin-falls');\n\t\t\t} \n\t\t\t// creating link /locations/idaho/twin-falls/iphone-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'iphone-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'iphone-repair-twin-falls');\n\t\t\t}\n\t\t\t// creating link /locations/idaho/twin-falls/ipod-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'ipod-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'ipod-repair-twin-falls');\n\t\t\t}\n\t\t\t// creating link /locations/idaho/twin-falls/ipod-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'ipod-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'ipod-repair-twin-falls');\n\t\t\t}\n\t\t\t// creating link /locations/idaho/twin-falls/laptop-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'laptop-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'laptop-repair-twin-falls');\n\t\t\t} \n\t\t\t// creating link /locations/idaho/twin-falls/laptop-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'laptop-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'laptop-repair-twin-falls');\n\t\t\t} \n\t\t\t// creating link /locations/idaho/twin-falls/smartphone-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'smartphone-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'smartphone-repair-twin-falls');\n\t\t\t} \n\t\t\t// creating link /locations/idaho/twin-falls/smartphone-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'smartphone-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'smartphone-repair-twin-falls');\n\t\t\t} \n\t\t\t// creating link /locations/idaho/twin-falls/tablet-repair\n\t\t\telse if (count($this->url_array) == 4 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'tablet-repair') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'tablet-repair-twin-falls');\n\t\t\t}\n\t\t\t// creating link /locations/idaho/twin-falls/tablet-repair/\n\t\t\telse if (count($this->url_array) == 5 && $this->url_array[0] == 'locations' && $this->url_array[1] == 'idaho' && $this->url_array[2] == 'twin-falls' && $this->url_array[3] == 'tablet-repair' && $this->url_array[4] == '') {\n\t\t\t\t$this->url_array = array('content', 'view', 'page', 'tablet-repair-twin-falls');\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t// get plugin, controller and action if they exist in URL\n\t\tif(count($this->url_array) > 0 && $this->url_array[0] != ''){\n\t\t\t$this->plugin = array_shift($this->url_array);\n\n\t\t\t// get true directory name with version number\n\t\t\t$dirname = $this->get_plugin_dir($this->plugin);\n\n\t\t\t// check filesystem for the existing plugin\n\t\t\tif($dirname != NULL && is_dir(PATH_LIBRARY . '/plugins/' . $dirname)){\n\t\t\t\t// query database to see if the plugin is active for the site\n\t\t\t\tif($this->plugin == $this->reg->config->get('main_plugin')){\n\t\t\t\t\t$result = TRUE;\n\t\t\t\t}else{\n\t\t\t\t\t// TODO: cache this somehow maybe\n\t\t\t\t\t$result = $this->reg->db->query('SELECT \tid\n\t\t\t\t\t\t\t\t\t\t\t\t \t FROM \t\tsystem__plugins\n\t\t\t\t\t\t\t\t\t\t\t\t \t WHERE \t\tname = ?', array($this->plugin))->numRows();\t\n\t\t\t\t}\n\n\t\t\t\tif($result){\n\t\t\t\t\tif(count($this->url_array) > 0 && $this->url_array[0] != ''){\n\t\t\t\t\t\t$this->controller = array_shift($this->url_array);\n\n\t\t\t\t\t\tif(count($this->url_array) > 0 && $this->url_array[0] != ''){\n\t\t\t\t\t\t\t$this->action = array_shift($this->url_array);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$this->action = 'index';\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->controller = 'index';\n\t\t\t\t\t\t$this->action = 'index';\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t// plugin exists but is disabled. redirect to main plugin error 404\n\t\t\t\t\t$this->plugin = $this->reg->config->get('main_plugin');\n\t\t\t\t\t$this->controller = 'error';\n\t\t\t\t\t$this->action = '_404';\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t// shift default plugin\n\t\t\t\t$this->controller = $this->plugin;\n\t\t\t\t$this->plugin = $this->reg->config->get('main_plugin');\n\n\t\t\t\tif(count($this->url_array) > 0 && $this->url_array[0] != ''){\n\t\t\t\t\t$this->action = array_shift($this->url_array);\n\t\t\t\t}else{\n\t\t\t\t\t$this->action = 'index';\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t// set default values\n\t\t\t$this->plugin \t= $this->reg->config->get('main_plugin');\n\t\t\t$this->controller = 'index';\n\t\t\t$this->action \t= 'index';\n\t\t}\t\t\n\n\t\t// get true directory name with version number if not already found\n\t\tif(!isset($dirname)){\n\t\t\t$dirname = $this->get_plugin_dir($this->plugin);\n\t\t}\n\t\t\n\t\t// save current real dirname\n\t\t$this->plugin_dir = $dirname;\n\t}", "title": "" }, { "docid": "5120458924a0c75484b6240373d55fdf", "score": "0.5985912", "text": "function wp_get_sitemap_providers() {}", "title": "" }, { "docid": "99acb544e9412ad6d13ee6106e010a4d", "score": "0.5979574", "text": "function wpcom_print_sitemap() {\n\tif ( defined( 'WPCOM_SKIP_DEFAULT_SITEMAP' ) && WPCOM_SKIP_DEFAULT_SITEMAP ) {\n\t\treturn;\n\t}\n\tglobal $wpdb, $current_blog;\n\t$key = sitemap_cache_key();\n\t$xml = wp_cache_get( $key, 'sitemap' );\n\n\t$post_types = array( 'post', 'page' );\n\n\tif ( empty($xml) ) {\n\n\t\t$post_types_in = array();\n\t\t$post_types = apply_filters('wpcom_sitemap_post_types', $post_types);\n\t\tforeach( (array) $post_types as $post_type )\n\t\t\t$post_types_in[] = $wpdb->prepare( '%s', $post_type );\n\t\t$post_types_in = join( \",\", $post_types_in );\n\n\t\t// use direct query instead because get_posts was acting too heavy for our needs\n\t\t//$posts = get_posts( array( 'numberposts'=>1000, 'post_type'=>$post_types, 'post_status'=>'published' ) );\n\t\t$posts = $wpdb->get_results( \"SELECT ID, post_type, post_modified_gmt, comment_count FROM $wpdb->posts WHERE post_status='publish' AND post_type IN ({$post_types_in}) ORDER BY post_modified_gmt DESC LIMIT 1000\" );\n\t\tif ( empty($posts) )\n\t\t\theader('HTTP/1.0 404 Not Found', True, 404);\n\t\theader('Content-Type: ' . sitemap_content_type());\n\t\t$initstr = wpcom_sitemap_initstr( get_bloginfo( 'charset' ) );\n\t\t$tree = simplexml_load_string($initstr);\n\t\t// If we did not get a valid string, force UTF-8 and try again.\n\t\tif( false === $tree ) {\n\t\t\t$initstr = wpcom_sitemap_initstr( 'UTF-8' );\n\t\t\t$tree = simplexml_load_string( $initstr );\n\t\t}\n\n\t\t// Acquire necessary attachment data for all of the posts in a performant manner\n\t\t$attachment_parents = wp_list_pluck( $posts, 'ID' );\n\t\t$post_attachments = array();\n\t\twhile ( $sub_posts = array_splice( $attachment_parents, 0, 100 ) ) {\n\t\t\t$post_parents = implode( ',', array_map( 'intval', $sub_posts ) );\n\n\t\t\t// Get the attachment IDs for all posts. We need to see how many\n\t\t\t// attachments each post parent has and limit it to 5.\n\t\t\t$query = \"SELECT ID, post_parent FROM {$wpdb->posts} WHERE post_parent IN ({$post_parents}) AND post_type='attachment' AND post_mime_type='image/jpeg' LIMIT 0,1000;\";\n\t\t\t$all_attachments = $wpdb->get_results( $query );\n\t\t\t$selected_attachments = array();\n\t\t\t$attachment_count = array();\n\n\t\t\tforeach ( $all_attachments as $attachment ) {\n\t\t\t\tif ( ! isset( $attachment_count[$attachment->post_parent] ) )\n\t\t\t\t\t$attachment_count[$attachment->post_parent] = 0;\n\n\t\t\t\t// Skip this particular attachment if we already have 5 for the post\n\t\t\t\tif ( $attachment_count[$attachment->post_parent] >= 5 )\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$selected_attachments[] = $attachment->ID;\n\t\t\t\t$attachment_count[$attachment->post_parent]++;\n\t\t\t}\n\n\t\t\t// bail if there weren't any attachments to avoid an extra query\n\t\t\tif ( empty( $selected_attachments ) )\n\t\t\t\tcontinue;\n\n\t\t\t// Get more of the attachment object for the attachments we actually care about\n\t\t\t$attachment_ids = implode( ',', array_map( 'intval', $selected_attachments ) );\n\t\t\t$query = \"SELECT p.ID, p.post_parent, p.post_title, p.post_excerpt, p.guid FROM {$wpdb->posts} as p WHERE p.ID IN ({$attachment_ids}) AND p.post_type='attachment' AND p.post_mime_type='image/jpeg' LIMIT 500;\";\n\t\t\t$attachments = $wpdb->get_results( $query );\n\t\t\t$post_attachments = array_merge( $post_attachments, $attachments );\n\t\t}\n\n\t\tunset( $initstr );\n\t\t$latest_mod = '';\n\t\tforeach ( $posts as $post ) {\n\n\t\t\t// Add in filter to allow skipping specific posts\n\t\t\tif ( apply_filters( 'sitemap_skip_post', false, $post ) )\n\t\t\t\tcontinue;\n\n\t\t\t$post_latest_mod = null;\n\t\t\t$url = array( 'loc'=> esc_url( get_permalink( $post->ID ) ) );\n\n\t\t\t// Mobile node specified in http://support.google.com/webmasters/bin/answer.py?hl=en&answer=34648\n\t\t\t$url['mobile:mobile'] = '';\n\n\t\t\t// Image node specified in http://support.google.com/webmasters/bin/answer.py?hl=en&answer=178636\n\t\t\t// These attachments were produced with batch SQL earlier in the script\n\t\t\tif ( !post_password_required( $post->ID ) && $attachments = wp_filter_object_list( $post_attachments, array( 'post_parent' => $post->ID ) ) ) {\n\n\t\t\t\t$url['image:image'] = array();\n\n\t\t\t\tforeach ( $attachments as $attachment ) {\n\t\t\t\t\t$attachment_url = false;\n\t\t\t\t\tif ( $attachment->guid ) {\n\n\t\t\t\t\t\t// Copied from core's wp_get_attachment_url(). We already\n\t\t\t\t\t\t// have the guid value, so we don't want to get it again.\n\t\t\t\t\t\t// Note: we're using the WP.com version of the function.\n\n\t\t\t\t\t\t$attachment_url = apply_filters( 'get_the_guid', $attachment->guid );\n\n\t\t\t\t\t\t// If we don't have an attachment URL, don't include this image\n\t\t\t\t\t\t$attachment_url = apply_filters( 'wp_get_attachment_url', $attachment_url, $attachment->ID );\n\n\t\t\t\t\t\tif ( ! $attachment_url ) {\n\t\t\t\t\t\t\tunset( $url['image:image'] );\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$url['image:image']['loc'] = esc_url( $attachment_url );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Only include title if not empty\n\t\t\t\t\tif ( $attachment_title = apply_filters( 'the_title_rss', $attachment->post_title ) ) {\n\t\t\t\t\t\t$url['image:image']['title'] = html_entity_decode( esc_html( $attachment_title ), ENT_XML1 );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Only include caption if not empty\n\t\t\t\t\tif ( $attachment_caption = apply_filters( 'the_excerpt_rss', $attachment->post_excerpt ) ) {\n\t\t\t\t\t\t$url['image:image']['caption'] = html_entity_decode( esc_html( $attachment_caption ), ENT_XML1 );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( $post->post_modified_gmt && $post->post_modified_gmt != '0000-00-00 00:00:00' )\n\t\t\t\t$post_latest_mod = $post->post_modified_gmt;\n\t\t\tif ( $post->comment_count > 0 ) {\n\t\t\t\t// last modified based on last comment\n\t\t\t\t$latest_comment_datetime = get_approved_comments_max_datetime( $post->ID );\n\t\t\t\tif ( !empty( $latest_comment_datetime ) ) {\n\t\t\t\t\tif ( is_null($post_latest_mod) || $latest_comment_datetime > $post_latest_mod )\n\t\t\t\t\t\t$post_latest_mod = $latest_comment_datetime;\n\t\t\t\t}\n\t\t\t\tunset( $latest_comment_datetime );\n\t\t\t}\n\t\t\tif ( !empty( $post_latest_mod ) ) {\n\t\t\t\t$latest_mod = max($latest_mod, $post_latest_mod);\n\t\t\t\t$url['lastmod'] = w3cdate_from_mysql( $post_latest_mod );\n\t\t\t}\n\t\t\tunset( $post_latest_mod );\n\t\t\tif ( $post->post_type == 'page' ) {\n\t\t\t\t$url['changefreq'] = 'weekly';\n\t\t\t\t$url['priority'] = '0.6'; // set page priority above default priority of 0.5\n\t\t\t} else {\n\t\t\t\t$url['changefreq'] = 'monthly';\n\t\t\t}\n\t\t\twpcom_sitemap_array_to_simplexml( array( 'url' => apply_filters( 'sitemap_url', $url, $post->ID ) ), $tree );\n\t\t\tunset( $url );\n\t\t}\n\t\t$blog_home = array(\n\t\t\t'loc' => esc_url( get_option( 'home' ) ),\n\t\t\t'changefreq' => 'daily',\n\t\t\t'priority' => '1.0'\n\t\t);\n\t\tif ( !empty( $latest_mod ) ) {\n\t\t\t$blog_home['lastmod'] = w3cdate_from_mysql($latest_mod);\n\t\t\theader( 'Last-Modified:' . mysql2date('D, d M Y H:i:s', $latest_mod, 0).' GMT' );\n\t\t}\n\t\twpcom_sitemap_array_to_simplexml( array( 'url'=> apply_filters( 'sitemap_url_home', $blog_home ) ), $tree );\n\t\tunset( $blog_home );\n\n\t\t$tree = apply_filters( 'wpcom_print_sitemap', $tree, $latest_mod );\n\n\t\t$xml = $tree->asXML();\n\t\tunset($tree);\n\t\tif ( !empty($xml) ) {\n\t\t\twp_cache_set( $key, $xml, 'sitemap', 24*60*60 ); // cache for 24 hours\n\t\t\techo $xml;\n\t\t}\n\t} else {\n\t\theader('Content-Type: ' . sitemap_content_type(), True);\n\t\techo $xml;\n\t}\n\tdie();\n}", "title": "" }, { "docid": "7fb0f797e06fde99719f40d5ed7afebd", "score": "0.59790874", "text": "public function build_xml_sitemap(){\r\n\t\t\r\n\t\t\r\n\t\t$this->load->model('site_search/site_search_model');\r\n\t\t\r\n\t\t$this->load->spark('sitemaps'); // make sure there is an autoload file\r\n\t\t\r\n\t\t$this->load->library('sitemaps');\r\n\t\t\r\n\t\t$this->load->model('admin_users/mUsers');\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// need to loop through all languages to make sure all pages are indexed.\r\n\t\t$lang_avail = $this->config->item('lang_avail');\r\n\t\t\r\n\t\t\r\n\t\tforeach($lang_avail AS $langcode=>$language){\r\n\t\t\t\r\n\t\t\t$search_indexes = $this->site_search_model->get_indexed_content_list( array('lang' => $langcode, 'return_fields' => array('slug','updated','change_frequency','priority')) );\r\n\t\t\t\r\n\t\t\tforeach ($search_indexes AS $item){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif($item['priority'] < 10){\r\n\t\t\t\t\t$item['priority'] = $item['priority'] . \"\"; // recast to string\r\n\t\t\t\t\tif(strlen($item['priority']) == 1) $item['priority'] = \"0.\" . $item['priority'];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tswitch($item['change_frequency']){\r\n\t\t\t\t\t\r\n\t\t\t\tcase 0 : $item['change_frequency'] = \"hourly\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1 : $item['change_frequency'] = \"daily\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2 : $item['change_frequency'] = \"weekly\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3 : $item['change_frequency'] = \"monthly\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4 : $item['change_frequency'] = \"yearly\";\r\n\t\t\t\t\tbreak;\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($item['slug'] != \"\"){\r\n\t\t\t\t\t\r\n\t\t\t\t\t$item = array(\r\n\t\t\t\t\t\"loc\" => site_url(\"{$langcode}/\" . $item['slug']),\r\n\t\t\t\t\t\"lastmod\" => date(\"Y-m-d\", strtotime($item['updated'])),\r\n\t\t\t\t\t\"changefreq\" => $item['change_frequency'],\r\n\t\t\t\t\t\"priority\" => $item['priority'],\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->sitemaps->add_item($item);\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\r\n\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\t// file name may change due to compression\r\n\t\t$file_name = $this->sitemaps->build(getenv(\"DOCUMENT_ROOT\") . \"/sitemap.xml\");\r\n\t\t$reponses = $this->sitemaps->ping(site_url($file_name));\r\n\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b362bb1c980246544a850582182ff17f", "score": "0.59502286", "text": "private function _format_sitemap()\r\n\t{\r\n\t\t$format = \"\\n\";\r\n\t\t\r\n\t\tif(!empty($this->site_map))\r\n\t\t{\r\n\t\t\tforeach($this->site_map as $key => $val)\r\n\t\t\t{\r\n\t\t\t\t//is there a link\r\n\t\t\t\tif(!empty($val['loc']))\r\n\t\t\t\t{\r\n\t\t\t\t\t//site url and index\r\n\t\t\t\t\t$site_url = $this->EE->functions->fetch_site_index();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//bestaat de url al met http en www\r\n\t\t\t\t\tif (!preg_match(\"/www./i\", $val['loc']) && !preg_match(\"/http/i\", $val['loc'])) {\r\n\t\t\t\t\t\t//add a slash when he is not there\r\n\t\t\t\t\t\t$slash = $val['loc'][0] == '/'?'':'/'; \r\n\t\t\t\t\t\t$val['loc'] = $site_url.$slash.$val['loc'];\r\n\t\t\t\t\t} \r\n\t\t\t\t\t\r\n\t\t\t\t\t// remove double slashes\r\n\t\t\t\t\t$val['loc'] = preg_replace(\"#(^|[^:])//+#\", \"\\\\1/\", $val['loc']);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//format the xml\r\n\t\t\t\t\t$format .= \"<url>\\n\";\t\r\n\t\t\t\t\t$format .= \"<loc>\".$val['loc'].\"</loc>\\n\";\t\r\n\t\t\t\t\t$format .= \"<lastmod>\".$val['lastmod'].\"</lastmod>\\n\";\t\r\n\t\t\t\t\t$format .= \"<changefreq>\".$val['changefreq'].\"</changefreq>\\n\";\t\r\n\t\t\t\t\t$format .= \"<priority>\".$val['priority'].\"</priority>\\n\";\t\r\n\t\t\t\t\t$format .= \"</url>\\n\";\t\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $format;\r\n\t}", "title": "" }, { "docid": "ccae40f78af462f26412b68405fb0ed5", "score": "0.5946309", "text": "public function sitemap()\n {\n $sitemap = App::make(\"sitemap\");\n $sitemap->setCache('laravel.sitemap', 60);\n\n $time = date('Y-m-d H:i:s', time());\n\n $sitemap->add(route('/'), $time, 1.0, 'daily');\n\n $articles = Article::where(['status' => 1])->orderBy('id','desc')->get()->toArray();\n\n foreach ($articles as $k => $v) {\n\n $sitemap->add(route('article.info', ['slug' => $v['slug']]), $time, 0.8, 'daily');\n\n }\n\n $categories = ArticleCategory::where(['status' => 1])->get()->toArray();\n\n foreach ($categories as $k => $v) {\n\n $sitemap->add(route('article.list', ['slug' => $v['slug']]), $time, 0.9, 'daily');\n\n }\n\n $xml = $sitemap->render('xml');\n\n $path = public_path() . \"\\sitemap.xml\";\n $path = str_replace('\\\\', '/', $path);\n\n file_put_contents($path, $xml->getContent());\n\n return;\n\n }", "title": "" }, { "docid": "ec194b36e595659b77ca989fe4f56750", "score": "0.5941735", "text": "public function xml(){\n\t\t$directories = scandir('.');\n\t\t$this->map = array();\n\t\t// Work your way through the directories, mapping out the content\n\t\tforeach($directories as $directory){\n\t\t\t// Work through directories, processing each in order.\n\t\t\tif (e::_isValidDirectory($directory)){\n\t\t\t\t$this->mapSubDirectory($directory);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$return = '<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\t\t\t\t\t<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">';\n\t\tforeach($this->map as $mappoint){\n\t\t\t$mappoint = str_ireplace('&', '&amp;', $mappoint);\n\t\t\t$return .= \"\n\t\t\t\t\t\t<url>\n\t\t\t\t\t\t\t<loc>\" . e::_basehref() . $mappoint . \"</loc>\n \t\t\t\t\t\t<lastmod>\" . date('c',time()) . \"</lastmod>\n \t\t\t\t\t\t<changefreq>daily</changefreq>\n \t\t\t\t\t\t<priority>0.8</priority>\n \t\t\t\t\t</url>\";\n\t\t}\n\t\t$return .= '</urlset>';\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "485ccfd04248c61ee297b93879591d47", "score": "0.593972", "text": "public function get_sitemap_list()\n {\n }", "title": "" }, { "docid": "5486140effbd9b137e5b93a10e9c8d1d", "score": "0.59247786", "text": "public function setUrls(Collection $urls): SitemapContract\n {\n $this->urls = $urls;\n\n return $this;\n }", "title": "" }, { "docid": "b713bca8c460e0883545d197eefb5683", "score": "0.590959", "text": "public function build_sitemap($type)\n {\n }", "title": "" }, { "docid": "290bd67169b25e232fd1627eab4ef78a", "score": "0.58950806", "text": "public function sitemap()\n {\n $sitemap = \\App::make(\"sitemap\");\n $sitemap->setCache('laravel.sitemap', 60);\n\n if (!$sitemap->isCached())\n {\n //Add all static pages to the sitemap\n $sitemap->add(route('home'), Carbon::now());\n $sitemap->add(route('whoweare'), Carbon::now());\n $sitemap->add(route('whatwedo'), Carbon::now());\n $sitemap->add(route('howwedoit'), Carbon::now());\n $sitemap->add(route('corporate'), Carbon::now());\n $sitemap->add(route('estate'), Carbon::now());\n $sitemap->add(route('financial'), Carbon::now());\n $sitemap->add(route('insurance'), Carbon::now());\n $sitemap->add(route('investment'), Carbon::now());\n $sitemap->add(route('personal-retirement'), Carbon::now());\n $sitemap->add(route('business-succession'), Carbon::now());\n $sitemap->add(route('faq'), Carbon::now());\n $sitemap->add(route('disclosures'), Carbon::now());\n $sitemap->add(route('cfm-horizon'), Carbon::now());\n $sitemap->add(route('team'), Carbon::now());\n $sitemap->add(route('home'), Carbon::now());\n $sitemap->add(route('home'), Carbon::now());\n\n //Bios\n $bios = Bio::all();\n // Add every Bio to the sitemap\n foreach ($bios as $bio)\n {\n $sitemap->add( route('bio', $bio['slug']), Carbon::now());\n }\n\n //Posts\n $posts = Post::published()->get();\n // add every post to the sitemap\n foreach ($posts as $post)\n {\n $sitemap->add(route('blog.post.show', $post->slug), $post->updated_at);\n }\n }\n\n return $sitemap->render('xml');\n }", "title": "" }, { "docid": "5e648bed9641112bd47e46e66f43a52b", "score": "0.5894073", "text": "public function sitemap()\n {\n /** @var Sitemap $sitemap */\n $sitemap = app()->make('sitemap');\n\n // cache the sitemap for one hour\n $sitemap->setCache('linkati.sitemap', 60);\n\n if ( ! $sitemap->isCached()) {\n $sitemap->add(url('/'), '', '1.0', 'daily');\n// $sitemap->add(route('blog.index'), '', '1.0', 'daily');\n\n # Pages\n $sitemap->add(route('login'), '2019-08-30 12:00:00', '0.80', 'monthly', [], 'تسجيل الدخول');\n $sitemap->add(route('register'), '2019-08-30 12:00:00', '0.80', 'monthly', [], 'حساب جديد');\n $sitemap->add(route('pages.about'), '2019-08-30 12:00:00', '0.80', 'monthly', [], 'عن لينكاتي');\n $sitemap->add(route('pages.press'), '2019-08-30 12:00:00', '0.80', 'monthly', [], 'البيان الصحفي');\n $sitemap->add(route('pages.privacy'), '2019-08-30 12:00:00', '0.80', 'monthly', [], 'سياسة الخصوصية');\n $sitemap->add(route('pages.terms'), '2019-08-30 12:00:00', '0.80', 'monthly', [], 'شروط الاستخدام');\n $sitemap->add(\n route('password.request'),\n '2019-08-30 12:00:00',\n '0.80',\n 'monthly',\n [],\n 'إستعادة كلمة المرور'\n );\n\n $profiles = Profile::latest()->get();\n /** @var Profile $profile */\n foreach ($profiles as $profile) {\n $sitemap->add(\n $profile->route,\n $profile->updated_at,\n '0.50',\n 'daily',\n [],\n $profile->name\n );\n }\n }\n\n return $sitemap->render('xml');\n }", "title": "" }, { "docid": "458e229ad3378144d1fe7e5695ae9838", "score": "0.5892203", "text": "public function appendTo(array $urls)\n {\n foreach ($urls as $urlObject) {\n $this->items[] = $urlObject->accessTags();\n\n if (sizeof($this->items) >= $this->component->maxMapRecords) {\n $this->createFile();\n }\n }\n }", "title": "" }, { "docid": "b200e4d98f0edfca6da0fcef59eb69e3", "score": "0.58812404", "text": "public static function getSiteMap($url = false)\n {\n $url = parent::getUrl($url);\n $exists = self::remoteFileExists(\"$url/sitemap.xml\");\n if($exists){\n return \"Yes\"; \n }else{\n return \"No\";\n }\n \n }", "title": "" }, { "docid": "5af776ae7fed759cff16fb328e8eb9be", "score": "0.585935", "text": "public function routes(): \\Generator\n {\n // *Sitemap vars : [loc, changefreq, lastmod, priority]\n\n $homepageRoute = ['home', '/', true];\n $homepageSitemap = ['http://localhost/', null, null, null];\n\n $contactRoute = ['contact', '/contact', ['lastmod' => '2020-01-01 10:00:00', 'priority' => 1]];\n $contactSitemap = ['http://localhost/contact', null, new \\DateTimeImmutable('2020-01-01 10:00:00'), 1.0];\n\n $blogRoute = ['blog', '/blog', ['section' => 'blog', 'changefreq' => 'always']];\n $blogSitemap = ['http://localhost/blog', 'always', null, null];\n\n yield [\n null,\n [$homepageRoute, $contactRoute, $blogRoute],\n ['default' => [$homepageSitemap, $contactSitemap], 'blog' => [$blogSitemap]]\n ];\n yield [\n 'default',\n [$homepageRoute, $contactRoute, $blogRoute],\n ['default' => [$homepageSitemap, $contactSitemap]]\n ];\n yield [\n 'blog',\n [$homepageRoute, $contactRoute, $blogRoute],\n ['blog' => [$blogSitemap]]\n ];\n }", "title": "" }, { "docid": "c8859d2382805e6bd9424aca3be8a3e7", "score": "0.584681", "text": "public function index() {\n // note: Sitemap file must have no more than 50,000 URLs and must be no larger than 10MB\n $resultNumbers = DB::table('orchardpools_draw')->orderBy(\"id\", \"desc\")\n ->take(49995)->paginate(6);\n $date=date('Y-m-d').'T'.date('H:i:s').'+00:00';\n return response()->view('sitemap.index', [\n 'resultNumbers' => $resultNumbers,\n 'date' => $date,\n ])->header('Content-Type', 'text/xml');\n }", "title": "" }, { "docid": "2c36af2d79165f5b0c5ece17e0e0633c", "score": "0.5840087", "text": "public function add_sm_transposh_urls( GoogleSitemapGeneratorPage $sm_page ): void {\n\t\ttp_logger( \"in sitemap add url: \" . $sm_page->GetUrl() . \" \" . $sm_page->GetPriority(), 4 );\n\t\t$sm_page = clone $sm_page;\n\t\t// we need the generator object (we know it must exist...)\n\t\t$generatorObject = &GoogleSitemapGenerator::GetInstance();\n\t\t// we reduce the priorty by 0.2, but not below zero\n\t\t$sm_page->SetProprity( max( $sm_page->GetPriority() - 0.2, 0 ) );\n\n\t\t/* <xhtml:link\n\t\t rel=\"alternate\"\n\t\t hreflang=\"de\"\n\t\t href=\"http://www.example.com/de\" /> */\n\n\t\t$viewable_langs = explode( ',', $this->transposh->options->viewable_languages );\n\t\t$orig_url = $sm_page->GetUrl();\n\t\tforeach ( $viewable_langs as $lang ) {\n\t\t\tif ( ! $this->transposh->options->is_default_language( $lang ) ) {\n\t\t\t\t$newloc = $orig_url;\n\t\t\t\tif ( $this->transposh->options->enable_url_translate ) {\n\t\t\t\t\t$newloc = transposh_utils::translate_url( $newloc, $this->transposh->home_url, $lang,\n\t\t\t\t\t\tarray( &$this->transposh->database, 'fetch_translation' ) );\n\t\t\t\t}\n\t\t\t\t$newloc = transposh_utils::rewrite_url_lang_param( $newloc, $this->transposh->home_url,\n\t\t\t\t\t$this->transposh->enable_permalinks_rewrite, $lang, false );\n\t\t\t\t$sm_page->SetUrl( $newloc );\n\t\t\t\t$generatorObject->AddElement( $sm_page );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0f36839a1eaddd1a7d5cc165d9163882", "score": "0.58262765", "text": "public function addMany(iterable $urls): SitemapContract\n {\n foreach ($urls as $url) {\n $this->add($url);\n }\n\n return $this;\n }", "title": "" }, { "docid": "0baabecd6e18f9d7081fddc31327710a", "score": "0.5820008", "text": "function sitemap_url() {\n\t\t$base = $GLOBALS['wp_rewrite']->using_index_permalinks() ? 'index.php/' : '';\n\n\t\treturn home_url( $base . $this->video_sitemap_basename() . '-sitemap.xml' );\n\t}", "title": "" }, { "docid": "665186389381cfd708fd2de80f989bee", "score": "0.5806563", "text": "public function get_sitemap()\n {\n }", "title": "" }, { "docid": "5c511c458fc2f725d9380e7e8c96a8de", "score": "0.57952315", "text": "public function get_sitemap_urls($sitemap_url = '') {\n\n\t\t$urls = array();\n\n\t\t// if sitemap url is empty then use main sitemap file name.\n\t\t$sitemap_url = ('' === $sitemap_url) ? site_url('/sitemap.xml') : $sitemap_url;\n\n\t\t// if simplexml_load_string not available then we don't load sitemap.\n\t\tif (!function_exists('simplexml_load_string')) {\n\t\t\treturn $urls;\n\t\t}\n\n\t\t// load sitemap file.\n\t\t$response = wp_remote_get($sitemap_url, array('timeout' => 30));\n\n\t\t// if we get error then\n\t\tif (is_wp_error($response)) {\n\t\t\t$response = file_get_contents($sitemap_url);\n\n\t\t\t// if response is empty then try load from file.\n\t\t\tif (empty($response) && '' == $sitemap_url) {\n\t\t\t\t$sitemap_file = $this->get_local_sitemap_file();\n\n\t\t\t\t$response = file_get_contents($sitemap_file);\n\t\t\t}\n\n\t\t\tif (empty($response)) return $urls;\n\n\t\t\t$xml = simplexml_load_string($response);\n\t\t} else {\n\t\t\t// parse xml answer.\n\t\t\t$xml = simplexml_load_string(wp_remote_retrieve_body($response));\n\t\t}\n\n\t\t// if exists urls then return them.\n\t\tif (isset($xml->url)) {\n\t\t\tforeach ($xml->url as $element) {\n\t\t\t\tif (!isset($element->loc)) continue;\n\t\t\t\t$urls[] = (string) $element->loc;\n\t\t\t}\n\t\t} elseif (isset($xml->sitemap)) {\n\t\t\t// if has links to other sitemap files then get urls from them.\n\t\t\tforeach ($xml->sitemap as $element) {\n\t\t\t\tif (!isset($element->loc)) continue;\n\n\t\t\t\t$urls = array_merge($urls, $this->get_sitemap_urls($element->loc));\n\t\t\t}\n\t\t}\n\n\t\treturn $urls;\n\t}", "title": "" }, { "docid": "0814c7e5d4b4b402f4c972076e131735", "score": "0.5793701", "text": "private function drawSitemapLines($urls, $url_prefix, $base_url){\n $str='';\n foreach($urls as $url){\n $updated=$url->updated_at;\n if ($updated==\"\"){\n $updated=$url->created_at;\n }\n $str.=\"<url>\\n\";\n $str.=\"\\t<loc>\" . $base_url.$url_prefix;\n if ($url->slug!=\"mms-home\"){\n $str.=$url->slug;\n }\n $str.=\"</loc>\\n\";\n $str.=\"\\t<lastmod>\" .date(\"Y-m-d\\TH:i:s-05:00\", strtotime($updated)) . \"</lastmod>\\n\";\n $str.=\"</url>\\n\";\n }\n return $str;\n }", "title": "" }, { "docid": "4f6f6680fe453284ce3e9bdd107f095e", "score": "0.5789975", "text": "public function testGenerate(): void\n {\n $map = Xml::toArray(Xml::build($this->SitemapBuilder->generate()))['urlset']['url'];\n $this->assertNotEmpty($map);\n $this->assertSame(['loc' => 'http://localhost/', 'priority' => '0.5'], array_value_first($map));\n $this->assertNotEmpty(Hash::extract($map, '{n}.loc'));\n $this->assertNotEmpty(Hash::extract($map, '{n}.priority'));\n }", "title": "" }, { "docid": "064f95892f25c0e5295cd82942da9f8b", "score": "0.5784365", "text": "public function sitemap()\n\t{\n\t\tif (!$this->auth($_SESSION['leveluser'], 'setting', 'create')) {\n\t\t\techo $this->pohtml->error();\n\t\t\texit;\n\t\t}\n\t\tif (!empty($_POST)) {\n\t\t\t$changefreq = $this->postring->valid($_POST['changefreq'],'xss');\n\t\t\t$priority = $this->postring->valid($_POST['priority'],'xss');\n\t\t\t$sitemap = new Sitemap($this->posetting[1]['value']);\n $sitemap->setPath('../');\n\t\t\t$sitemap->addItem('/', $priority, $changefreq, $this->podatetime->date_now);\n\t\t\t$datapagess = $this->podb->from('pages')->where('active', 'Y')->fetchAll();\n\t\t\tforeach($datapagess as $datapages){\n\t\t\t\t$sitemap->addItem('/pages/'.$datapages['seotitle'], $priority, $changefreq, $this->podatetime->date_now);\n\t\t\t}\n\t\t\t$datacats = $this->podb->from('category')->where('active', 'Y')->fetchAll();\n\t\t\tforeach($datacats as $datacat){\n\t\t\t\t$sitemap->addItem('/category/'.$datacat['seotitle'], $priority, $changefreq, $this->podatetime->date_now);\n\t\t\t}\n\t\t\t$dataposts = $this->podb->from('post')->where('active', 'Y')->fetchAll();\n\t\t\tforeach($dataposts as $dataposts){\n\t\t\t\t$permalink = $this->postring->permalink(rtrim(WEB_URL, '/'), $dataposts);\n\t\t\t\t$permalink = str_replace(WEB_URL, '' ,$permalink);\n\t\t\t\t$sitemap->addItem($permalink, $priority, $changefreq, $dataposts['date']);\n\t\t\t}\n\t\t\t$sitemap->createSitemapIndex($this->posetting[1]['value'], 'Today');\n\t\t\t$this->poflash->success($GLOBALS['_']['setting_sitemap_message'], 'admin.php?mod=setting#config');\n\t\t}\n\t}", "title": "" }, { "docid": "286bae1485908ab27519618f80fd919b", "score": "0.57692736", "text": "protected static function createSitemapIndexUrl($url)\n {\n $baseUrl = static::getBaseUrl();\n\n return <<<END\n <sitemap>\n <loc>$baseUrl$url</loc>\n </sitemap>\nEND;\n }", "title": "" }, { "docid": "5f39e7d81d597fe71eaf003ee9439825", "score": "0.5762901", "text": "function crawlUrl($sitemap_url) {\r\n\r\n //Configuration options\r\n $delay = 0.5; // Delay in seconds between page checks, default is half a second\r\n $quiet = false; // Do not output process log (true/false)\r\n $trailing_slash = false; // Add trailing slash to URL's, that might fix cache creation problems (true/false)\r\n\r\n $sitemap = $sitemap_url; //Path to sitemap file relative to the warm.php\r\n\r\n //Do not change anything below this line unless you know what you are doing\r\n ignore_user_abort(TRUE);\r\n set_time_limit(600);\r\n\r\n $xml = simplexml_load_file($sitemap);\r\n foreach ($xml->url as $url_list) { \r\n\r\n $url = $url_list->loc;\r\n\r\n if($trailing_slash==true) {$url = rtrim($url,\"/\").\"/\";}\r\n\r\n $ch = curl_init();\r\n curl_setopt ($ch, CURLOPT_URL, $url);\r\n curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 15);\r\n curl_setopt ($ch, CURLOPT_HEADER, true);\r\n curl_setopt ($ch, CURLOPT_NOBODY, true);\r\n $ret = curl_exec ($ch);\r\n curl_close ($ch);\r\n\r\n usleep($delay*1000000);\r\n\r\n if($quiet!=true) {logMsg(\"Warmed: \".$url.\"\\n\");}\r\n\r\n }\r\n unset($xml);\r\n\r\nif($quiet!=true) {logMsg(\"Crawled: \" . $sitemap . \"\\n\");}\r\n\r\n}", "title": "" }, { "docid": "f124a271550eadbe416c340048945f73", "score": "0.57470506", "text": "public function sitemap(): void\n {\n $this->boolean('site_map_enable')->default(1)->nullable();\n $this->enum('site_map_update_frequency', ['always', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', 'never'])->default('monthly');\n $this->string('site_map_priority')->default('0.50')->nullable();\n $this->boolean('site_map_last_mod_enable')->default(1)->nullable();\n }", "title": "" }, { "docid": "eb7ba7e38f2372b20a221ad05c4c3057", "score": "0.572445", "text": "public function sitemap($sitemap) : RobotsInterface\n {\n if(is_array($sitemap)) {\n $this->addLines($sitemap, \"Sitemap: \");\n }else {\n $this->addLine(\"Sitemap: \".$sitemap);\n }\n return $this;\n }", "title": "" }, { "docid": "3ad6a4e37ed929ab4abda4d6f6202a4e", "score": "0.5715446", "text": "public function get_sitemap_links($type, $max_entries, $current_page);", "title": "" }, { "docid": "3b8d5bb5f2d75cf596b15361596848b5", "score": "0.57144535", "text": "public function sitemap()\n {\n $articles = Article::query()->where(['is_visible' => 1])->get();\n\n return response()->view('sitemap.sitemap', [\n 'articles' => $articles,\n ])->header('Content-Type', 'text/xml');\n }", "title": "" }, { "docid": "b19d9d9e2d89be025d317cd9eff05cf0", "score": "0.57141244", "text": "function generator_phpwiki (&$sitemap) {\n $this->generator($sitemap);\n }", "title": "" }, { "docid": "350ee6876f2c10e53731d489c51c9dbb", "score": "0.57032675", "text": "public function generate() {\n\n\t\t$cmd = \"wget --spider --recursive --no-verbose -P sitemapCrawler --output-file=\". $this->config['wgetlog_file'] .\" \". $this->config['url'];\r\n\t\texec($cmd);\n\r\n\t\t$this->log(\"Wget() - Crawling website : \". $this->config['url'] .\".\");\n\n\t\t$cmd = 'sed -n \"s@.\\+ URL:\\([^ ]\\+\\) .\\+@\\1@p\" wgetlog.txt | sed \"s@&@\\&amp;@\" > ' . $this->config['sedlog_file'];\n\t\texec($cmd);\n\n\t\t$this->log(\"Sed() - Retrieving urls from : \". $this->config['url'] .\".\");\n\n\t\t$this->setLocations();\n\t\t$this->saveFile();\n\t\t$this->clean();\n\n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "37726b3e5cbcdc620fa486e3e250bef8", "score": "0.56955117", "text": "public static function sitemapGeo($args)\r\n\t{\r\n\t\tself::serveDocument('sitemap-geo.xml','text/xml');\r\n\t\texit;\r\n\t}", "title": "" }, { "docid": "3660ba81170e1ab082f1f164770bce8f", "score": "0.5690943", "text": "function sitemap4index(array &$result) {\n\n $fname = 'index';\n $sitemap_index = new SITEMAP($fname);\n $sitemap_index->StartOB();\n\n // ABAP index pages did not use zbuffer_index_counter table\n $abap_index_no_buffertable = array();\n array_push($abap_index_no_buffertable, GLOBAL_WEBSITE::SAPDS_ORG_URL . '/abap/');\n array_push($abap_index_no_buffertable, GLOBAL_WEBSITE::SAPDS_ORG_URL . '/abap/' . strtolower(GLOBAL_ABAP_OTYPE::CVERS_NAME) . '/');\n array_push($abap_index_no_buffertable, GLOBAL_WEBSITE::SAPDS_ORG_URL . '/abap/' . strtolower(GLOBAL_ABAP_OTYPE::BMFR_NAME) . '/index-' . strtolower(ABAP_DB_CONST::INDEX_TOP) . '.html');\n array_push($abap_index_no_buffertable, GLOBAL_WEBSITE::SAPDS_ORG_URL . '/abap/' . strtolower(GLOBAL_ABAP_OTYPE::TABL_NAME) . '/index-' . strtolower(ABAP_DB_CONST::DD02L_TABCLASS_CLUSTER) . '.html');\n array_push($abap_index_no_buffertable, GLOBAL_WEBSITE::SAPDS_ORG_URL . '/abap/' . strtolower(GLOBAL_ABAP_OTYPE::TABL_NAME) . '/index-' . strtolower(ABAP_DB_CONST::DD02L_TABCLASS_POOL) . '.html');\n array_push($abap_index_no_buffertable, GLOBAL_WEBSITE::SAPDS_ORG_URL . '/abap/' . strtolower(GLOBAL_ABAP_OTYPE::SQLT_NAME) . '/');\n\n\n foreach ($abap_index_no_buffertable as $item) {\n $sitemap_index->EchoUrl($item, SITEMAP::changefreq_monthly);\n }\n\n // ABAP index pages use the zbuffer_index_counter table\n $abap_buffered_otypes = array(\n GLOBAL_ABAP_OTYPE::BMFR_NAME,\n GLOBAL_ABAP_OTYPE::DEVC_NAME,\n GLOBAL_ABAP_OTYPE::MSAG_NAME,\n GLOBAL_ABAP_OTYPE::CUS0_NAME,\n GLOBAL_ABAP_OTYPE::TRAN_NAME,\n GLOBAL_ABAP_OTYPE::PROG_NAME,\n GLOBAL_ABAP_OTYPE::FUGR_NAME,\n GLOBAL_ABAP_OTYPE::FUNC_NAME,\n GLOBAL_ABAP_OTYPE::CLAS_NAME,\n GLOBAL_ABAP_OTYPE::INTF_NAME,\n GLOBAL_ABAP_OTYPE::SHLP_NAME,\n GLOBAL_ABAP_OTYPE::TABL_NAME,\n GLOBAL_ABAP_OTYPE::VIEW_NAME,\n GLOBAL_ABAP_OTYPE::DTEL_NAME,\n GLOBAL_ABAP_OTYPE::DOMA_NAME\n );\n foreach ($abap_buffered_otypes as $otype) {\n $sitemap_index->EchoUrl(GLOBAL_WEBSITE::SAPDS_ORG_URL . '/abap/' . strtolower($otype) . '/', SITEMAP::changefreq_monthly);\n foreach (ABAP_UI_Buffer_Index::ZBUFFER_INDEX_COUNTER($otype) as $index_counter) {\n $sitemap_index->EchoUrl(GLOBAL_WEBSITE::SAPDS_ORG_URL . '/abap/' . strtolower($otype) . '/' . $index_counter[ABAP_UI_Buffer_Index::INDEX_FILENAME] . '.html', SITEMAP::changefreq_monthly);\n $index_page_count = $index_counter[ABAP_DB_TABLE_BASIS::ZBUFFER_INDEX_COUNTER_PAGE_COUNT];\n if ($index_page_count > 1) {\n for ($page_loop = 1; $page_loop <= $index_page_count; $page_loop++) {\n $sitemap_index->EchoUrl(GLOBAL_WEBSITE::SAPDS_ORG_URL . '/abap/' . strtolower($otype) . '/' . $index_counter[ABAP_UI_Buffer_Index::INDEX_FILENAME] . '-' . $page_loop . '.html', SITEMAP::changefreq_monthly);\n }\n }\n }\n }\n\n // Index pages for Where Using List\n $url = GLOBAL_WEBSITE::SAPDS_ORG_URL . '/wil/abap/';\n $sitemap_index->EchoUrl($url, SITEMAP::changefreq_monthly);\n for ($wil_index = 1; $wil_index <= ABAP_DBDATA::WILCOUNTER_INDEX_MAX; $wil_index++) {\n $url = GLOBAL_WEBSITE::SAPDS_ORG_URL . '/wil/abap/index-' . $wil_index . '.html';\n $sitemap_index->EchoUrl($url, SITEMAP::changefreq_monthly);\n }\n\n // Index pages for Where Used List\n $url = GLOBAL_WEBSITE::SAPDS_ORG_URL . '/wul/abap/';\n $sitemap_index->EchoUrl($url, SITEMAP::changefreq_monthly);\n for ($wul_index = 1; $wul_index <= ABAP_DBDATA::WULCOUNTER_INDEX_MAX; $wul_index++) {\n $url = GLOBAL_WEBSITE::SAPDS_ORG_URL . '/wul/abap/index-' . $wul_index . '.html';\n $sitemap_index->EchoUrl($url, SITEMAP::changefreq_monthly);\n }\n\n $sitemap_index->EndOB();\n\n $result[$fname] = $sitemap_index->GetFilenameSeq();\n}", "title": "" }, { "docid": "3beb1abfb899eda72a60485a44f408f8", "score": "0.56870866", "text": "public function set_sitemap($sitemap);", "title": "" }, { "docid": "65796d4e29855a86e5ed6eb16b4bc7ae", "score": "0.56776696", "text": "function create_url_pages()\n{\n\tcreate_url_page($file)\n}", "title": "" }, { "docid": "8deca708ce603b92129fc10e6a8b52ec", "score": "0.5668082", "text": "protected function prepareFormattedSitemapArray()\r\n {\r\n $xmlRaw = $this->getXmlRaw();\r\n $xmlArray = XmlToArray::convert($xmlRaw);\r\n\r\n if (!is_array($xmlArray)) {\r\n return false;\r\n }\r\n\r\n $this->setXmlArray($xmlArray);\r\n $sitemapArrayFormatted = [];\r\n\r\n if (is_array($xmlArray) && !empty($xmlArray)) {\r\n $xmlArray = reset($xmlArray);\r\n if (count($xmlArray)) {\r\n foreach ($xmlArray as $urlArray) {\r\n $urlParsed = parse_url($urlArray[self::LOC_IDX]);\r\n\r\n if (isset($urlParsed[self::HOST_IDX])) {\r\n if (!isset($urlParsed[self::PATH_IDX])) {\r\n $urlParsed[self::PATH_IDX] = '/';\r\n }\r\n }\r\n\r\n $urlHost = rtrim($urlParsed[self::HOST_IDX]);\r\n $urlPath = rtrim($urlParsed[self::PATH_IDX]);\r\n\r\n if (!isset($urlParsed[self::QUERY_IDX])) {\r\n $urlParsed[self::QUERY_IDX] = null;\r\n }\r\n $urlQuery = rtrim($urlParsed[self::QUERY_IDX]);\r\n $sitemapArrayFormatted[$urlHost][] = self::getPageUrl($urlPath, $urlQuery);\r\n }\r\n }\r\n }\r\n\r\n $this->setSitemapArray($sitemapArrayFormatted);\r\n }", "title": "" }, { "docid": "74f5a559af1bc41dcdd1893a3fa8dc19", "score": "0.5659852", "text": "public function loadUrls($urls)\n {\n foreach ($urls as $key => $value) {\n $u = new SitemapUrl($key);\n foreach ($urls[$key] as $property => $propertyValue) {\n $u->addProperty($property, $propertyValue);\n }\n\n $this->addUrl($u);\n }\n\n return $this;\n }", "title": "" }, { "docid": "a39cfc1a5777b8a61b198bb9b0765e58", "score": "0.56538945", "text": "function news_sitemap_uri() {\n\treturn apply_filters( 'news_sitemap_location', home_url( '/news-sitemap.xml', 'http' ) );\n}", "title": "" }, { "docid": "0f804f33ff8c4d94f486d19aba27c8c4", "score": "0.56472033", "text": "protected function generateUrls()\n {\n if ($this->isProductUseCategoriesEnabled()) {\n return parent::generateUrls();\n } /**\n * @var $urls \\Magento\\UrlRewrite\\Service\\V1\\Data\\UrlRewrite[]\n */\n $urls = array_merge(\n $this->canonicalUrlRewriteGenerate(),\n $this->currentUrlRewritesRegenerate()\n );\n /* Reduce duplicates. Last wins */\n $result = [];\n foreach ($urls as $url) {\n $result[$url->getTargetPath() . '-' . $url->getStoreId()] = $url;\n }\n $this->productCategories = null;\n $this->products = [];\n return $result;\n }", "title": "" }, { "docid": "5650c96b852e3cc1730e3b524dfc5fea", "score": "0.5642391", "text": "function hook_xmlsitemap_index_links($limit) {\n\n}", "title": "" }, { "docid": "4e957fde751dd5364ec9b22a0390af7e", "score": "0.56384903", "text": "public function hit_sitemap_index()\n {\n }", "title": "" }, { "docid": "3ddf4e4c186061addd2f882f721d2060", "score": "0.56362176", "text": "public function showXML()\n {\n $sitemap = App::make(\"sitemap\");\n\n // set cache key (string), duration in minutes (Carbon|Datetime|int), turn on/off (boolean)\n // by default cache is disabled\n //$sitemap->setCache('laravel.sitemap', 30); //60\n\n // check if there is cached sitemap and build new only if is not\n if (!$sitemap->isCached())\n {\n // add item to the sitemap (url, date, priority, freq)\n // 메인페이지\n $sitemap->add(URL::to('/'), '2016-01-25T20:10:00+02:00', '1.0', 'daily');\n $sitemap->add(URL::to('ccmail/sample'), '2016-01-26T12:30:00+02:00', '0.8', 'weekly');\n\n // 도움말페이지\n $sitemap->add( URL::to( '/help/ccmail' ), '2016-3-23', 0.9, 'weekly');\n\n /*// add item with translations (url, date, priority, freq, images, title, translations)\n $translations = [\n ['language' => 'ko', 'url' => URL::to('pageKo')],\n ['language' => 'de', 'url' => URL::to('pageDe')],\n ['language' => 'bg', 'url' => URL::to('pageBg')],\n ];\n $sitemap->add(URL::to('pageEn'), '2015-06-24T14:30:00+02:00', '0.9', 'monthly', [], null, $translations);*/\n\n /*// add item with images\n $images = [\n ['url' => URL::to('images/pic1.jpg'), 'title' => 'Image title', 'caption' => 'Image caption', 'geo_location' => 'Plovdiv, Bulgaria'],\n ['url' => URL::to('images/pic2.jpg'), 'title' => 'Image title2', 'caption' => 'Image caption2'],\n ['url' => URL::to('images/pic3.jpg'), 'title' => 'Image title3'],\n ];\n $sitemap->add(URL::to('post-with-images'), '2015-06-24T14:30:00+02:00', '0.9', 'monthly', $images);*/\n\n // 내용증명 개별\n $posts = DB::table('ccmail_samples')->groupBy('cate1')->get();\n foreach ($posts as $post)\n {\n //$sitemap->add($post->slug, $post->modified, $post->priority, $post->freq);\n $sitemap->add( URL::to( '/ccmail/cate/'.$post->cate1 ), $post->created_at, 0.9, 'daily');\n }\n\n // 내용증명 개별\n $posts = DB::table('ccmail_samples')->orderBy('created_at', 'desc')->get();\n foreach ($posts as $post)\n {\n //$sitemap->add($post->slug, $post->modified, $post->priority, $post->freq);\n $sitemap->add( URL::to( '/ccmail/sample/'.$post->id ), $post->created_at, 0.7, 'weekly');\n }\n\n\n }\n\n // show your sitemap (options: 'xml' (default), 'html', 'txt', 'ror-rss', 'ror-rdf')\n return $sitemap->render('xml');\n }", "title": "" }, { "docid": "a6b3933681a11ff0dd5a19a02c1c9516", "score": "0.5624596", "text": "protected function is_sitemap_allowed()\n {\n }", "title": "" }, { "docid": "2ef9d9417e2a7846b4c3b84f55039abd", "score": "0.5619933", "text": "public function generateXml() {\n if (Mage::getStoreConfigFlag('sitemap/alternate_links/enabled', $this->getStoreId())) {\n // \"overriden\" method, includes alternate links\n $result = $this->_generateXml();\n } else {\n // original method, no alternate links\n $result = parent::generateXml();\n }\n $content = file_get_contents($this->getSitemapFilename());\n $this->saveSitemapToDb($this->getSitemapFilename(),$content);\n return $result;\n }", "title": "" }, { "docid": "fd837371d72a1a15d1618cb7f47cb6f7", "score": "0.5611792", "text": "private function addSiteUrls()\n {\n $this->writeConnection->beginTransaction();\n for ($i = 0; $i <= 100; $i++) {\n $this->writeConnection->insert('analytic_site_url', array('http_url' => 'http://test.loc/page/' . $i));\n }\n $this->writeConnection->commit();\n }", "title": "" }, { "docid": "b2836e1a5c823c72681a3483e03be279", "score": "0.5609018", "text": "public function index()\n {\n $this->viewBuilder()->setClassName('Seo.Sitemap');\n\n $indexUrlProvider = function () {\n foreach (Sitemap::configured() as $sitemapId) {\n yield new SitemapUrl(['action' => 'sitemap', '_ext' => 'xml', $sitemapId], 0.5);\n }\n };\n\n $sitemap = new SitemapIndex();\n $sitemap->addProvider($indexUrlProvider);\n $sitemap->setStyleUrl(Configure::read('Seo.Sitemap.styleUrl'));\n\n $this->getEventManager()->dispatch(new Event('Seo.Sitemap.buildIndex', $sitemap));\n\n $this->set('sitemap', $sitemap);\n }", "title": "" }, { "docid": "84ef852ffedda387c443c1f27e88a78e", "score": "0.5597056", "text": "function sitemap4otype(array &$result, string $otype, string $column_name, array $list, string $fname_prefix = NULL) {\n $prefix = ($fname_prefix === NULL) ? $otype : $fname_prefix;\n $fname = 'abap-' . $prefix;\n\n $sitemap_otype = new SITEMAP($fname);\n $sitemap_otype->StartOB();\n foreach ($list as $row) {\n $obj_name = trim($row[$column_name]);\n if (strlen($obj_name) > 0) {\n $abapurl = GLOBAL_WEBSITE::SAPDS_ORG_URL . ABAP_UI_DS_Navigation::GetObjectPath($otype, $obj_name);\n $sitemap_otype->EchoUrl($abapurl, SITEMAP::changefreq_monthly); // TODO - change to yearly after the code is stable\n }\n }\n $sitemap_otype->EndOB();\n\n $result[$fname] = $sitemap_otype->GetFilenameSeq();\n}", "title": "" }, { "docid": "a098ae96411c0e205ee951e8580b4da3", "score": "0.5576752", "text": "public static function createSitemapXML($languageId) {\n \n $html = \"<?xml version='1.0' encoding='UTF-8' ?>\".PHP_EOL;\n $html .= \"\n<urlset\nxmlns='http://www.sitemaps.org/schemas/sitemap/0.9'\nxmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'\nxsi:schemaLocation='http://www.sitemaps.org/schemas/sitemap/0.9'\n>\n\".PHP_EOL;\n \n $pages = ShaPage::loadByWhereClause(\"language_id=\".$languageId.\" AND page_importance > 0 ORDER BY page_importance DESC\");\n /** @type ShaPage $page */\n foreach ($pages as $page) {\n \n $languageClause = ($page->getValue('language_id') != 0) ? \" language_id = \".$page->getValue('language_id') : \"\";\n $page->_getVariableInfo();\n \n if (count($page->_shaPageObjectsInfo) > 0) {\n \n foreach ($page->_shaPageObjectsInfo as $key => $value) {\n $lot = 0;\n do {\n $languageClause = ShaCmo::isTranslatingClass($key) ? $languageClause : \" 1=1 \";\n \n /** @type ShaCmo $className */\n $className = $key;\n $items = $className::getList($languageClause,\"\", $lot, 100);\n foreach ($items as $item) {\n $html.= \"\n\t\t\t\t\t\t\t\t\t<url>\n\t\t\t\t\t\t\t\t\t\t<loc>\".$page->writeUrl(array($key => $item), true).\"</loc>\n\t\t\t\t\t\t\t\t\t\t<priority>\".$page->getValue('page_importance').\"</priority>\n\t\t\t\t\t\t\t\t\t</url>\n\t\t\t\t\t\t\t\t\";\n $lot += 100;\n }\n } while (count($items) > 0);\n }\n } else {\n $html.= \"\n <url>\n <loc>\".$page->writeUrl(array(), true).\"</loc>\n <priority>\".$page->getValue('page_importance').\"</priority>\n </url>\n \";\n }\n \n }\n $html .= \"</urlset>\".PHP_EOL;\n ShaUtilsArray::clearArray($pages);\n $html = ShaUtilsString::clearDbl($html, \" \");\n return $html;\n }", "title": "" }, { "docid": "24c043c43e39d6aa0a9fbbe8cfabe10e", "score": "0.55754477", "text": "function ddsg_create_sitemap() {\n\n\tglobal $wpdb;\n\n\t$tp = $wpdb->prefix;\n\n\t// Currently using a work-around for the version system\n\t// determines if pre or post 2.3 from wp_term_taxonomy \n\n\t$ver = 2.2;\n\t$wpv = $wpdb->get_results(\"show tables like '{$tp}term_taxonomy'\");\n\tif (count($wpv) > 0) {\n\t\t$ver = 2.3;\n\t}\n\n\n\n\t$items_per_page = (int)get_option('ddsg_items_per_page');\n\t$sm_name = (string)get_option('ddsg_sm_name');\n\t$what_to_show = trim(get_option('ddsg_what_to_show'));\n\t$which_first = trim(get_option('ddsg_which_first'));\n\t$post_sort_order = trim(get_option('ddsg_post_sort_order'));\n\t$page_sort_order = trim(get_option('ddsg_page_sort_order'));\n\t$comments_on_posts = get_option('ddsg_comments_on_posts');\n\t$comments_on_pages = get_option('ddsg_comments_on_pages');\n\t$hide_future = get_option('ddsg_hide_future');\n\t$new_window = get_option('ddsg_new_window');\n\t$show_post_date = get_option('ddsg_show_post_date');\n\t$show_page_date = get_option('ddsg_show_page_date');\n\t$date_format = get_option('ddsg_date_format');\n\t$hide_protected = get_option('ddsg_hide_protected');\n\t$excluded_cats = trim(get_option('ddsg_excluded_cats'));\n\t$excluded_pages = trim(get_option('ddsg_excluded_pages'));\n\t$page_nav = trim(get_option('ddsg_page_nav'));\n\t$page_nav_where = trim(get_option('ddsg_page_nav_where'));\n\t$xml_path = trim(get_option('ddsg_xml_path'));\n\t$xml_where = get_option('ddsg_xml_where');\n\n\n\n\t// prepare exclusion lists\n\t$excluded_cats = str_replace(' ', '', $excluded_cats);\n\t$excluded_cats = (array)explode(',', $excluded_cats);\n\t$excluded_pages = str_replace(' ', '', $excluded_pages);\n\t$excluded_pages = (array)explode(',', $excluded_pages);\n\n\n\n\tif ($what_to_show != 'pages') {\n\n\t\t// gets cats\n\n\t\tif ($ver < 2.3) {\n\n\t\t\t$cats = (array)$wpdb->get_results(\"\n\t\t\t\tSELECT cat_ID as category_ID, cat_name, category_parent\n\t\t\t\tFROM {$tp}categories\n\t\t\t\tGROUP BY cat_ID \n\t\t\t\tORDER BY category_parent, cat_name\n\t\t\t\"); \n\t\n\t\t\t$cats_with_children = (array)$wpdb->get_col(\"\n\t\t\t\tSELECT category_parent\n\t\t\t\tFROM {$tp}categories\n\t\t\t\tWHERE category_parent != '0' \n\t\t\t\tGROUP BY category_parent\n\t\t\t\tORDER BY category_parent\n\t\t\t\", 0);\n\n\t\t} else { // >= 2.3\n\n\t\t\t$cats = (array)$wpdb->get_results(\"\n\t\t\t\tSELECT {$tp}terms.term_id as category_ID, \n\t\t\t\t\t{$tp}terms.name as cat_name, \n\t\t\t\t\t{$tp}term_taxonomy.parent as category_parent\n\t\t\t\tFROM {$tp}terms, {$tp}term_taxonomy \n\t\t\t\tWHERE {$tp}term_taxonomy.taxonomy = 'category'\n\t\t\t\tAND {$tp}terms.term_id = {$tp}term_taxonomy.term_id\n\t\t\t\tGROUP BY category_ID \n\t\t\t\tORDER BY category_parent, cat_name\n\t\t\t\"); \n\n\t\t\t$cats_with_children = (array)$wpdb->get_col(\"\n\t\t\t\tSELECT parent as category_parent\n\t\t\t\tFROM {$tp}term_taxonomy\n\t\t\t\tWHERE parent != '0' \n\t\t\t\tAND {$tp}term_taxonomy.taxonomy = 'category'\n\t\t\t\tGROUP BY category_parent\n\t\t\t\tORDER BY category_parent\n\t\t\t\", 0);\n\n\t\t}\n\n\t\t$sort_string = '';\n\t\tswitch ($post_sort_order) { \n\t\t\tcase 'datea':\n\t\t\t\t$sort_string = 'post_date ASC';\n\t\t\t\tbreak;\n\t\t\tcase 'dated':\n\t\t\t\t$sort_string = 'post_date DESC';\n\t\t\t\tbreak;\n\t\t\tdefault: // title\n\t\t\t\t$sort_string = 'post_title';\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$extra_data = '';\n\t\tif ($comments_on_posts) {\n\t\t\t$extra_data .= ', comment_count ';\n\t\t}\n\t\tif ($show_post_date) {\n\t\t\t$extra_data .= ', post_date ';\n\t\t}\n\n\t\t$dup_check = '';\n\n\t\t$pass_check = '';\n\t\tif ($hide_protected) {\n\t\t\t$pass_check = \" AND post_password = '' \";\n\t\t}\n\n\t\t$future_check = '';\n\t\tif ($hide_future) {\n\t\t\t$future_check = \" AND post_status != 'future' \";\n\t\t}\n\n\n\t\tif ($ver < 2.3) {\n\n\t\t\t$posts = (array)$wpdb->get_results(\"\n\t\t\t\tSELECT ID, category_id, post_title $extra_data \n\t\t\t\tFROM {$tp}posts, {$tp}post2cat\n\t\t\t\tWHERE {$tp}posts.ID = {$tp}post2cat.post_id \n\t\t\t\tAND post_status = 'publish' \n\t\t\t\tAND post_type = 'post' \n\t\t\t\t$dup_check \n\t\t\t\t$pass_check \n\t\t\t\t$future_check\n\t\t\t\tORDER BY category_id, $sort_string\n\t\t\t\");\n\t\t\n\t\t} else { // >= 2.3\n\n\t\t\t$posts = (array)$wpdb->get_results(\"\n\t\t\t\tSELECT ID, {$tp}term_taxonomy.term_id as category_id, post_title $extra_data \n\t\t\t\tFROM {$tp}posts, {$tp}term_relationships, {$tp}term_taxonomy\n\t\t\t\tWHERE {$tp}posts.ID = {$tp}term_relationships.object_id \n\t\t\t\tAND {$tp}term_relationships.term_taxonomy_id = {$tp}term_taxonomy.term_taxonomy_id \n\t\t\t\tAND {$tp}term_taxonomy.taxonomy = 'category' \n\t\t\t\tAND post_status = 'publish' \n\t\t\t\tAND post_type = 'post' \n\t\t\t\t$dup_check \n\t\t\t\t$pass_check \n\t\t\t\t$future_check\n\t\t\t\tORDER BY category_id, $sort_string\n\t\t\t\");\n\n\t\t}\n\n\n\n\t\t$num_cats = count($cats);\n\t\t$num_posts = count($posts);\n\n\t\t$cat_data = array();\n\t\t$post_data = array();\t\n\n\n\t\t$cat_data = ddsg_get_cats($cat_data, $cats, $num_cats, $cats_with_children, $excluded_cats);\n\n\t\t$num_cats = count($cat_data);\n\n\t\t$post_data = ddsg_merge_cats_posts($post_data, $posts, $cat_data, $num_posts, $num_cats, $comments_on_posts, $show_post_date);\n\n\t\t$post_data = ddsg_remove_empty_cats($post_data);\n\n\t\t$num_posts = count($post_data);\n\n\t}\n\n\n\n\tif ($what_to_show != 'posts') {\n\n\t\t$sort_string = '';\n\t\tswitch ($page_sort_order) { \n\t\t\tcase 'datea':\n\t\t\t\t$sort_string = 'post_date ASC';\n\t\t\t\tbreak;\n\t\t\tcase 'dated':\n\t\t\t\t$sort_string = 'post_date DESC';\n\t\t\t\tbreak;\n\t\t\tcase 'menua':\n\t\t\t\t$sort_string = 'menu_order ASC';\n\t\t\t\tbreak;\n\t\t\tcase 'menud':\n\t\t\t\t$sort_string = 'menu_order DESC';\n\t\t\t\tbreak;\n\t\t\tdefault: // title\n\t\t\t\t$sort_string = 'post_title';\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$extra_data = '';\n\t\tif ($comments_on_pages) {\n\t\t\t$extra_data .= ', comment_count ';\n\t\t}\n\t\tif ($show_page_date) {\n\t\t\t$extra_data .= ', post_date ';\n\t\t}\n\n\t\t$pass_check = '';\n\t\tif ($hide_protected) {\n\t\t\t$pass_check = \" AND post_password = '' \";\n\t\t}\n\n\t\t$pages = (array)$wpdb->get_results(\"\n\t\t\tSELECT post_title, ID, post_parent $extra_data \n\t\t\tFROM {$tp}posts\n\t\t\tWHERE post_type = 'page' \n\t\t\tAND post_status = 'publish' \n\t\t\t$pass_check \n\t\t\tORDER BY post_parent, $sort_string \n\t\t\");\n\n\t\t$pages_with_children = (array)$wpdb->get_col(\"\n\t\t\tSELECT post_parent\n\t\t\tFROM {$tp}posts\n\t\t\tWHERE post_type = 'page'\n\t\t\tAND post_status = 'publish' \n\t\t\tAND post_parent != '0' \n\t\t\tGROUP BY post_parent\n\t\t\tORDER BY post_parent\n\t\t\", 0);\n\n\t\t$num_pages = count($pages);\n\n\t\t$page_data = array();\n\n\t\t$page_data = ddsg_get_pages($page_data, $pages, $num_pages, $pages_with_children, $excluded_pages, $comments_on_pages, $show_page_date);\n\n\t\t$num_pages = count($page_data);\n\n\t}\n\n\n\t$wpdb->flush();\n\n\n\tswitch ($what_to_show) {\n\t\tcase 'posts':\n\t\t\t$total_items = $num_posts;\n\t\t\tbreak;\n\t\tcase 'pages':\n\t\t\t$total_items = $num_pages;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t$total_items = $num_posts + $num_pages;\n\t\t\tbreak;\n\t}\n\n\n\t$current_page = 1;\n\tif (get_query_var(\"pg\")) {\n\t\t$current_page = get_query_var(\"pg\");\t\t\n\t}\n\n\n\n\tif ($items_per_page <= 0) {\n\t\t$total_pages = 1;\n\t\t$items_per_page = $total_items;\n\t} else {\n\t\t$total_pages = (int)ceil($total_items / $items_per_page);\n\t}\n\n\t$t_start = ($current_page - 1) * $items_per_page;\n\t$t_end = $t_start + $items_per_page - 1;\n\tif ($t_end > $total_items) {\n\t\t$t_end = $total_items - 1;\n\t}\n\n\tif ($current_page < 1) {\n\t\t$current_page = 1;\n\t} else if ($current_page > $total_pages) {\n\t\t$current_page = $total_pages;\n\t\t$t_start = ($current_page - 1) * $items_per_page;\n\t\t$t_end = $t_start + $items_per_page - 1;\n\t\tif ($t_end > $total_items) {\n\t\t\t$t_end = $total_items - 1;\n\t\t}\n\t}\n\n\n\t$t_out = '';\n\n\t$t_out .= \"\\n\\n<!-- START of Dagon Design Sitemap Generator output -->\\n\\n\";\n\n\t$t_out .= '<div class=\"ddsg-wrapper\">';\n\n\n\tif ($page_nav_where != 'bottom') {\n\t\t$t_out .= ddsg_generate_nav($total_pages, $current_page, $page_nav, $sm_name);\n\t}\n\n\n\tif ($what_to_show == 'posts') { // show just posts\n\n\t\t$post_start = $t_start;\n\t\t$post_end = $t_end;\n\t\tif ($t_end > $num_posts) {\n\t\t\t$post_end = $num_posts - 1;\n\t\t}\n\n\t\t$t_out .= ddsg_display_posts($post_data, $num_posts, $post_start, $post_end, $comments_on_posts, $new_window, $show_post_date, $date_format);\n\n\n\t} else if ($what_to_show == 'pages') { // show just pages\n\n\t\t$page_start = $t_start;\n\t\t$page_end = $t_end;\n\t\tif ($t_end > $num_pages - 1) {\n\t\t\t$page_end = $num_pages - 1;\n\t\t}\n\n\t\t$t_out .= ddsg_display_pages($page_data, $num_pages, $page_start, $page_end, $comments_on_pages, $new_window, $show_page_date, $date_format);\n\n\n\t} else { // show both\n\n\n\t\tif ($which_first == 'pages') {\n\t\t\t$num1 = $num_pages;\n\t\t\t$num2 = $num_posts;\n\t\t} else {\n\t\t\t$num1 = $num_posts;\n\t\t\t$num2 = $num_pages;\n\t\t}\n\n\n\t\tif ($t_start > ($num1 - 1)) {\n\t\t\t$start1 = $end1 = 0;\n\t\t\t$start2 = $t_start - $num1;\n\t\t\t$end2 = $t_end - $num1;\n\t\t\tif ($end2 >= $num2) {\n\t\t\t\t$end2 = $num2 - 1;\n\t\t\t}\n\t\t} else if ($t_end < $num1) {\n\t\t\t$start2 = $end2 = 0;\n\t\t\t$start1 = $t_start;\n\t\t\t$end1 = $t_end;\n\t\t\tif ($end1 >= $num1) {\n\t\t\t\t$end1 = $num1 - 1;\n\t\t\t}\n\t\t} else { \n\t\t\t$start1 = $t_start;\n\t\t\t$end1 = $num1 - 1;\n\t\t\t$start2 = 0;\n\t\t\t$end2 = $items_per_page - ($end1 - $start1) - 2;\n\t\t}\n\n\t\tif ($end2 >= $num2) {\n\t\t\t$end2 = $num2 - 1;\n\t\t}\n\t\tif ($end1 >= $num1) {\n\t\t\t$end1 = $num1 - 1;\n\t\t}\n\n\n\t\tif ($which_first == 'pages') {\n\t\t\t$t_out .= ddsg_display_pages($page_data, $num1, $start1, $end1, $comments_on_pages, $new_window, $show_page_date, $date_format);\n\t\t\t$t_out .= ddsg_display_posts($post_data, $num2, $start2, $end2, $comments_on_posts, $new_window, $show_post_date, $date_format);\n\t\t} else {\n\t\t\t$t_out .= ddsg_display_posts($post_data, $num1, $start1, $end1, $comments_on_posts, $new_window, $show_post_date, $date_format);\n\t\t\t$t_out .= ddsg_display_pages($page_data, $num2, $start2, $end2, $comments_on_pages, $new_window, $show_page_date, $date_format);\n\t\t}\n\n\n\n\t}\n\n\n\tif ($page_nav_where != 'top') {\n\t\t$t_out .= ddsg_generate_nav($total_pages, $current_page, $page_nav, $sm_name);\n\t}\n\n\n\n\n\tif ($xml_path != '') {\n\t\tif (($xml_where == 'every') OR ($current_page == $total_pages)) {\n\t\t\t$t_out .= '<div class=\"ddsg-xml-link\"><p><a href=\"' . $xml_path . '\">' . DDSG_VIEW_XML . '</a></p></div>';\n\t\t}\n\t}\n\n\n\t$t_out .= '<div style=\"text-align: right;\"><p style=\"font-size:90%;\">' . DDSG_CREDITS . ' <a href=\"http://www.dagondesign.com\" title=\"Dagon Design\">dagondesign.com</a></p></div>';\n\n\t$t_out .= '</div>';\n\n\t$t_out .= \"\\n\\n<!-- END of Dagon Design Sitemap Generator output -->\\n\\n\";\n\n\n\t// Ampersand fix\n\n\t$t_out = str_replace(\"&amp;amp;\", \"&amp;\", $t_out);\n\n\treturn $t_out;\n\n}", "title": "" }, { "docid": "dd47a2fcd21af089fd594d163c39891b", "score": "0.55518955", "text": "public function get_sitemap_entries() {}", "title": "" }, { "docid": "84a7c653e5d4bd06fc52a951811de664", "score": "0.5546821", "text": "function hook_xmlsitemap_sitemap_operations() {\n\n}", "title": "" }, { "docid": "32775cc642268e554ad51b9855814d86", "score": "0.55215704", "text": "function sitemap_action() {\n $backgroundColor = getBackgroundColor();\n $cssStyleRule = buildStyleRule();\n\n $pageTitle = \"site map\";\n\n $indexLinkClass = \"nav_bar\";\n $contactLinkClass = \"nav_bar\";\n $galleryLinkClass= \"nav_bar\";\n $shopLinkClass = \"nav_bar\";\n $crudLinkClass = \"nav_bar\";\n $userLinkClass = \"nav_bar\";\n\n\n require_once __DIR__ . '/../templates/sitemap.php';\n}", "title": "" }, { "docid": "e9e12fc0a872ab422d9c3e8cf5c33b23", "score": "0.5521478", "text": "public function needs_sitemap_index_redirect()\n {\n }", "title": "" }, { "docid": "12636d40ace519a535b8e43ad1c8d5b0", "score": "0.5505042", "text": "public function sitemap($id=0, $host='')\n\t{\t\n\t\n\t\tif (empty($host) && $id == 0)\n\t\t{\n\t\t\treturn new PacoError('Either Site ID or host is required', PacoError::EMPTY_ARGS);\n\t\t}\n\t\t\n\t\t//\n\t\tif(empty($host))\n\t\t{\n\t\t\t$id = new MongoId($id);\n\t\t} \n\t\telse \n\t\t{\n\t\t\t//print_r($this->user);\n\t\t\t\n\t\t\t$site = $this->find_one(\n\t\t\t\t'sites',\n\t\t\t\tarray(\n\t\t\t\t\t'host'=>$host,\n\t\t\t\t\t'owner_id'=>$this->user_id\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\tif ($site)\n\t\t\t{\n\t\t\t\t$keys = array_keys($site);\n\t\t\t\t$id = new MongoId($keys[0]);\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\treturn new PacoError('No such host', 900);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$map = $this->get_pages(0, $id);\n\t\treturn array('sitemap'=>$map);\n\t}", "title": "" }, { "docid": "769276d3008d3130d640386625d1c035", "score": "0.5500934", "text": "public function startingSitemapIndex(): void;", "title": "" }, { "docid": "9e0a34cf75c6adfa6dab53699be8da9b", "score": "0.5472745", "text": "public function generateSitemap(ReadSiteInterface $site)\n {\n $nodes = $this->getSitemapNodesFromSite($site);\n $filename = $site->getSiteId() . '/sitemap.xml';\n\n $map['url'] = $nodes;\n\n $xmlContent = str_replace(\n array('</response>', '<response>'),\n array('</urlset>', '<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">'),\n $this->serializer->serialize($map, 'xml')\n );\n $this->filesystem->dumpFile('web/' . $filename, $xmlContent);\n\n return $filename;\n }", "title": "" }, { "docid": "08eef141d56bdc89b1dfcbee3aecdf64", "score": "0.5457205", "text": "private function makeLinksIfPossible()\n {\n\n // if url pattern not set\n if ((count($this->master_url_pattern) < 1 ) || (strlen($this->master_url_pattern[0]) < 3 )) {\n return array(t('URL pattern not set in module settings.'));\n }\n\n\n\n $refind_links = array();\n for ($i = 0; $i < count($this->raw_folders); $i++) {\n foreach($this->master_url_pattern as $pattern) {\n if (stristr($this->raw_folders[$i], $pattern)) {\n $new_url = str_replace($pattern . '.', 'https://' . $pattern . '/', $this->raw_folders[$i] ) ;\n $refind_links[] = l($new_url, $new_url);\n }\n }\n }\n return $refind_links;\n }", "title": "" }, { "docid": "319d3b8c4f2f11e06fb6437576306420", "score": "0.54508764", "text": "function sitemap4_fugr(array &$result, string $column_name, array $list) {\n $fname = 'abap-' . strtolower(GLOBAL_ABAP_OTYPE::FUGR_NAME);\n\n $sitemap_otype = new SITEMAP($fname);\n $sitemap_otype->StartOB();\n foreach ($list as $row) {\n if (strlen(trim($row[$column_name])) > 0) {\n $prog = ABAP_DB_TABLE_PROG::GET_PROG_FUGR($row[$column_name]);\n $prog_meta = ABAP_DB_TABLE_PROG::YREPOSRCMETA(strtoupper($prog));\n if (!empty($prog_meta['PROGNAME'])) {\n $abapurl = GLOBAL_WEBSITE::SAPDS_ORG_URL . ABAP_UI_DS_Navigation::GetObjectPath(GLOBAL_ABAP_OTYPE::PROG_NAME, $prog);\n $sitemap_otype->EchoUrl($abapurl);\n }\n }\n }\n $sitemap_otype->EndOB();\n\n $result[$fname] = $sitemap_otype->GetFilenameSeq();\n}", "title": "" }, { "docid": "9294721d46169d5669abc9fc07941ce3", "score": "0.5449723", "text": "public function handle()\n {\n $Companydata = Companydetail::select('slug')\n ->where('status','!=','deleted')\n ->get();\n if($Companydata){\n $finalxml='';\n $sitemap = '<?xml version=\"1.0\" encoding=\"UTF-8\"?>';\n $sitemap .='<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">';\n $modDate = date('c',time());\n $sitemap_1 ='';\n $sitemap_2 ='';\n $sitemap_3 ='';\n $i=1;\n foreach ($Companydata as $cmp => $value) {\n if($i <= 50000){\n $sitemap_1 .= '\n <url>\n <loc>https://www.marinecentral.com/biz/'.$value->slug.'</loc>\n <lastmod>'.$modDate.'</lastmod>\n <changefreq>weekly</changefreq>\n <priority>0.8</priority>\n </url>\n'; \n } else if($i > 50000 && $i < 100000){\n $sitemap_2 .= '\n <url>\n <loc>https://www.marinecentral.com/biz/'.$value->slug.'</loc>\n <lastmod>'.$modDate.'</lastmod>\n <changefreq>weekly</changefreq>\n <priority>0.8</priority>\n </url>\n'; \n }else{\n $sitemap_3 .= '\n <url>\n <loc>https://www.marinecentral.com/biz/'.$value->slug.'</loc>\n <lastmod>'.$modDate.'</lastmod>\n <changefreq>weekly</changefreq>\n <priority>0.8</priority>\n </url>\n'; \n }\n $i++;\n }\n \n if($sitemap_1 !='' ){\n $sitemap_1 = $sitemap.$sitemap_1.'</urlset>';\n $finalxml=trim($sitemap_1);\n $myFile ='bizsitemap.xml';\n if (!file_exists($myFile)) {\n $fh = fopen($myFile, 'w');\n fwrite($fh, $finalxml.\"\\n\");\n fclose($fh);\n }\n $dom = new \\DOMDocument;\n $dom->preserveWhiteSpace = TRUE;\n $dom->loadXML($finalxml);\n // Save XML as a file\n $dom->save($myFile);\n }\n if($sitemap_2 !='' ){\n $sitemap_2 = $sitemap.$sitemap_2.'</urlset>';\n $finalxml=trim($sitemap_2);\n $myFile ='bizsitemap1.xml';\n if (!file_exists($myFile)) {\n $fh = fopen($myFile, 'w');\n fwrite($fh, $finalxml.\"\\n\");\n fclose($fh);\n }\n $dom = new \\DOMDocument;\n $dom->preserveWhiteSpace = TRUE;\n $dom->loadXML($finalxml);\n // Save XML as a file\n $dom->save($myFile);\n }\n if($sitemap_3 !='' ){\n $sitemap_3 = $sitemap.$sitemap_3.'</urlset>';\n $finalxml=trim($sitemap_3);\n $myFile ='bizsitemap2.xml';\n if (!file_exists($myFile)) {\n $fh = fopen($myFile, 'w');\n fwrite($fh, $finalxml.\"\\n\");\n fclose($fh);\n }\n $dom = new \\DOMDocument;\n $dom->preserveWhiteSpace = TRUE;\n $dom->loadXML($finalxml);\n // Save XML as a file\n $dom->save($myFile);\n }\n }\n }", "title": "" }, { "docid": "98c0221e585728f0e2daba4124e2d7cd", "score": "0.54478914", "text": "public function writeToSitemap(string $data): void;", "title": "" }, { "docid": "a43c9c9aa234c03f26fed262a1388041", "score": "0.54452425", "text": "public function generateUrls()\n {\n $urls = [];\n\n $prefix = $this->getServerAddress() . '/xml_s3/xml_server3.cgi';\n $suffix = ';lang=' . $this->getLanguage() . ';output=productxml;';\n\n // Structure the url. There might be more urls available.\n if (!empty($this->ean)) {\n $urls[] = $prefix . '?ean_upc=' . urlencode($this->getEan()) . $suffix;\n }\n if (!empty($this->getSku()) && null !== $this->getBrand()) {\n $urls[] = $prefix . '?prod_id=' . urlencode($this->getSku()) . ';vendor=' . $this->getBrand() . $suffix;\n }\n $this->setUrls($urls);\n }", "title": "" }, { "docid": "335afd32419f576f9b97feb4d8e54b26", "score": "0.5443973", "text": "public function add_sitemap($absolute_path)\n {\n }", "title": "" }, { "docid": "bd7f018c70dfeaae8e309da7829d28ff", "score": "0.5440302", "text": "protected function replace_urls( $urls ){\n\t\tforeach ( $urls as $slug => $url ) {\n\t\t\t$urls[ $slug ] = $this->replace_url( $url );\n\t\t}\n\n\t\treturn $urls;\n\t}", "title": "" }, { "docid": "a2753f275778738b8e518eddc71091ce", "score": "0.5430905", "text": "public function run()\n {\n $urls = config('urls.defaults_Urls');\n\n foreach($urls as $url){\n UrlTrait::createUrl($url);\n }\n }", "title": "" }, { "docid": "1609a09bfc84d531033e942535c54e6a", "score": "0.53998417", "text": "public function get_output($sitemap)\n {\n }", "title": "" }, { "docid": "cf69e26e69c66858e5c9caa9bb560b8a", "score": "0.53821933", "text": "public function index() {\n $this->SitemapModel->add(base_url(), NULL, 'monthly', 1);\n foreach ($this->menuitems as $key => $value) {\n $this->SitemapModel->add($value['link'], NULL, 'monthly', 0.9);\n }\n $this->SitemapModel->output();\n }", "title": "" }, { "docid": "fd1b2f432295c8e27598f3a72024c3bc", "score": "0.5381038", "text": "public function render_sitemaps() {}", "title": "" }, { "docid": "bd288429a4c8c6218e26bb762cbc210b", "score": "0.5380646", "text": "public function generateCustomUrls(array $custom_paths) {\n\n $custom_paths = $this->getBatchIterationCustomPaths($custom_paths);\n\n if ($this->needsInitialization()) {\n $this->initializeBatch(count($custom_paths));\n }\n\n foreach ($custom_paths as $i => $custom_path) {\n $this->setCurrentId($i);\n\n // todo: Change to different function, as this also checks if current user has access. The user however varies depending if process was started from the web interface or via cron/drush. Use getUrlIfValidWithoutAccessCheck()?\n if (!$this->pathValidator->isValid($custom_path['path'])) {\n// if (!(bool) $this->pathValidator->getUrlIfValidWithoutAccessCheck($custom_path['path'])) {\n $this->logger->m(self::PATH_DOES_NOT_EXIST_OR_NO_ACCESS_MESSAGE,\n ['@path' => $custom_path['path'], '@custom_paths_url' => $GLOBALS['base_url'] . '/admin/config/search/simplesitemap/custom'])\n ->display('warning', 'administer sitemap settings')\n ->log('warning');\n continue;\n }\n $url_object = Url::fromUserInput($custom_path['path'], ['absolute' => TRUE]);\n\n $path = $url_object->getInternalPath();\n if ($this->batchInfo['remove_duplicates'] && $this->pathProcessed($path)) {\n continue;\n }\n\n $entity = $this->getEntityFromUrlObject($url_object);\n\n $path_data = [\n 'path' => $path,\n 'lastmod' => method_exists($entity, 'getChangedTime') ? date_iso8601($entity->getChangedTime()) : NULL,\n 'priority' => isset($custom_path['priority']) ? $custom_path['priority'] : NULL,\n ];\n if (NULL !== $entity) {\n $path_data['entity_info'] = ['entity_type' => $entity->getEntityTypeId(), 'id' => $entity->id()];\n }\n $this->addUrlVariants($url_object, $path_data, $entity);\n }\n $this->processSegment();\n }", "title": "" } ]
c84e29c4351ddee4e29fffb2e814b9b2
Sets a new tenderResultCode BBIE Tender Result. Tender_ Result Code. Code A code signifying the result of the tendering process. 0..1 Tender Result Tender Result Code Code Code. Type
[ { "docid": "e97c41496cf1504f0dd9389aedf8dd68", "score": "0.6780601", "text": "public function setTenderResultCode(\\horstoeko\\ubl\\entities\\cbc\\TenderResultCode $tenderResultCode)\n {\n $this->tenderResultCode = $tenderResultCode;\n return $this;\n }", "title": "" } ]
[ { "docid": "e198e8cecad6807a3782b81f9a43f1f8", "score": "0.6783658", "text": "public function getTenderResultCode()\n {\n return $this->tenderResultCode;\n }", "title": "" }, { "docid": "148fd73a220321ab39a2a1adf8e68442", "score": "0.58756894", "text": "public function setTypeCode(?string $typeCode): self\n {\n $this->initialized['typeCode'] = true;\n $this->typeCode = $typeCode;\n\n return $this;\n }", "title": "" }, { "docid": "148fd73a220321ab39a2a1adf8e68442", "score": "0.58756894", "text": "public function setTypeCode(?string $typeCode): self\n {\n $this->initialized['typeCode'] = true;\n $this->typeCode = $typeCode;\n\n return $this;\n }", "title": "" }, { "docid": "9489b8f5fb542e2b790aaa60188ba67f", "score": "0.58297014", "text": "public function setCode($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->code !== $v) {\n $this->code = $v;\n $this->modifiedColumns[] = TypeHebergementPeer::CODE;\n }\n\n\n return $this;\n }", "title": "" }, { "docid": "be3a2ec7b7874ba930f35750fc8db1f4", "score": "0.5737868", "text": "public function setCode($code, $codeType = self::CODE_TYPE_AUTH)\n {\n $this->code = $code;\n $this->codeType = $codeType;\n }", "title": "" }, { "docid": "d14d6c9473ca52d7c79fd5f40398a03b", "score": "0.57201755", "text": "public function setAuthResultCode(?string $authResultCode): void\n {\n $this->authResultCode['value'] = $authResultCode;\n }", "title": "" }, { "docid": "198957b2ade14db00fd255ffc5752604", "score": "0.5669964", "text": "public function get_code_type(){ return $this->_code_type; }", "title": "" }, { "docid": "47c66cfd477fde2c167b04ca0642df89", "score": "0.5552403", "text": "public function setCode($code);", "title": "" }, { "docid": "70fdcc485a03aed62e0ed4d8d372ab16", "score": "0.55520284", "text": "public function setCode($code = NULL)\n\t{\n\t\t$this->_code = (string) $code;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "b0a2df5c69c32dd0febbf978c55d1493", "score": "0.55462426", "text": "public function SetCode($code){\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "d763b890a3d8b9f23fc4b6c0895233ec", "score": "0.5515336", "text": "protected function setResult($code, $msg, $params, $data )\r\n \t{\r\n \t\t$this->data = $data;\r\n \t\t$this->status['value'] = $code;\r\n \t\t$this->status['code'] = $code;\r\n \t\t$this->status['message'] = $msg;\r\n \t\t$this->status['rowcount'] = ($data) ? sizeof($data): 0;\r\n \t $this->params = $params;\r\n \t \r\n \t\t$this->result['status'] = $this->status;\r\n \t\t$this->result['params'] = $this->params;\r\n \t\t$this->result['data'] = $this->data;\r\n }", "title": "" }, { "docid": "945316bc5ef5f6ea9c1a39542eae242f", "score": "0.5513357", "text": "public static function code($code) {\n self::$returnCode = $code;\n }", "title": "" }, { "docid": "4e0af396212d252ea8967bb395e1854c", "score": "0.5476816", "text": "public function setCode(StatusCode $code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "e9e5d202317de6fa7a7888ca398cb131", "score": "0.5458906", "text": "function setCode($code) {\n\t\treturn $this->setData('code', $code);\n\t}", "title": "" }, { "docid": "8b8e34327782f004bf26eba54d822fc2", "score": "0.54376066", "text": "public function setCode(string $code);", "title": "" }, { "docid": "3e9eb37aaecd9e72b3ea408f1230cbba", "score": "0.54289895", "text": "public function set_code($code) {\n $this->code = (string) $code;\n }", "title": "" }, { "docid": "840378ddaae840f7f1c02a6f5af21cfe", "score": "0.53753847", "text": "public function set_code( $code ) {\n\t\t$this->code = $code;\n\t}", "title": "" }, { "docid": "c516fd0a138b867832cbdb2fcac9861a", "score": "0.5367822", "text": "protected function setCode($code)\n\t{\n\t}", "title": "" }, { "docid": "87f630f0066de369fe5130221c9decef", "score": "0.534627", "text": "public function setCode($code) {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "87f630f0066de369fe5130221c9decef", "score": "0.534627", "text": "public function setCode($code) {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "d2fae985db3d6ff57d2e13d09761083b", "score": "0.5330293", "text": "public function setCode($code) {\n $this->code = $code;\n }", "title": "" }, { "docid": "73208d621fd7c42466271af166c547e4", "score": "0.53108346", "text": "public function __construct($code, $type) {\n\t\t$this->setBarcode($code, $type);\n\t}", "title": "" }, { "docid": "365b584bbc060df68e66136b9fd4bcb7", "score": "0.53088874", "text": "public function setCodeTypeSal($codeTypeSal) {\n $this->codeTypeSal = $codeTypeSal;\n return $this;\n }", "title": "" }, { "docid": "365b584bbc060df68e66136b9fd4bcb7", "score": "0.53088874", "text": "public function setCodeTypeSal($codeTypeSal) {\n $this->codeTypeSal = $codeTypeSal;\n return $this;\n }", "title": "" }, { "docid": "9625ab86958c5a2bfa19318707515e10", "score": "0.52944875", "text": "public function setCode($code)\n {\n return $this->setData(self::KEY_CODE, $code);\n }", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.5291076", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.5291076", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.5291076", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "57ef902cf16e12fe1efe0f31c8ec8804", "score": "0.52795744", "text": "private final function setCode($code) {\n\t\t\t$this->code = $code;\n\t\t}", "title": "" }, { "docid": "8bf9e00affa659fc18b752a06a8d5a43", "score": "0.5276095", "text": "function setCode($value)\n\t{\n\t\t$this->code = $value;\n\t}", "title": "" }, { "docid": "de71303430c1c4142769b8b441aa2c48", "score": "0.52726114", "text": "public function setCode($code)\n {\n $this->_code = $code;\n }", "title": "" }, { "docid": "de71303430c1c4142769b8b441aa2c48", "score": "0.52726114", "text": "public function setCode($code)\n {\n $this->_code = $code;\n }", "title": "" }, { "docid": "307f358a3e9efdcd373c4ae45d5c7b8a", "score": "0.5270212", "text": "function setcode($code = '') {\r\n\t\t$this->ccode = $code;\r\n\t}", "title": "" }, { "docid": "27b024aa9bf50ffb1c36227712885309", "score": "0.5258673", "text": "public function setCode($code)\n\t{\n\t\t$this->code = $code;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "36743e3f036422e332e9cf7dfc5792a6", "score": "0.52538973", "text": "protected function setCode($type){\n return unique_random('commercials', 'code', 10, strtoupper(substr($type,0,1)));\n }", "title": "" }, { "docid": "62f09411141e1763c8123eb90cd2a1fc", "score": "0.52536523", "text": "public function setCode($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "b952559139bb2ef6a744142002027948", "score": "0.52423924", "text": "public function setCode($code)\n {\n $this->code = (int) $code;\n }", "title": "" }, { "docid": "9f906a9cedd10858ea1ab306dd5ee58c", "score": "0.52373654", "text": "public function code($code) {\n\t\t$this->code = $code;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "6709836843bba12c303249ee8e3f190e", "score": "0.5214161", "text": "public function setCode($code)\r\n {\r\n if ($code === null) $this->code = null;\r\n else $this->code = (int) $code;\r\n }", "title": "" }, { "docid": "5024980bd12df2df8a9473c106d7a47b", "score": "0.52000374", "text": "function setCode($code)\n\t{\n\t\t$this->code = $code;\n\t}", "title": "" }, { "docid": "685d65160ca23dbaa05ff41f3fdb5aa1", "score": "0.5198457", "text": "public function setCode(string $code) :self\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "d79c3a3652cbe2fba9c39830f9529107", "score": "0.5180097", "text": "public function setCode($var)\n {\n GPBUtil::checkInt32($var);\n $this->code = $var;\n\n return $this;\n }", "title": "" }, { "docid": "d79c3a3652cbe2fba9c39830f9529107", "score": "0.5180097", "text": "public function setCode($var)\n {\n GPBUtil::checkInt32($var);\n $this->code = $var;\n\n return $this;\n }", "title": "" }, { "docid": "19b11457386b9a20f2ed42bead2956a2", "score": "0.51797163", "text": "function setResult( $result )\r\n {\r\n $this->Result = $result;\r\n }", "title": "" }, { "docid": "7efdc8d826cd358c5e17d2db7d6639dd", "score": "0.5177899", "text": "public function &setCode($code) {\n\t\t$this->notifyChanged(self::FIELD_CODE,$this->code,$code);\n\t\t$this->code=$code;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.5175423", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.5175423", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.5175423", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.5175423", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.5175423", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.5175423", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.5175423", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.5175423", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.5175423", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.5175423", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "3d41b1fc8e3590a1d774cd7c8b6ce339", "score": "0.516933", "text": "public function code($code = NULL)\n {\n if (NULL !== $code) {\n $this->statusCode = $code;\n return $this;\n }\n\n return $this->statusCode;\n\n }", "title": "" }, { "docid": "8dd98363a9157104b30653d5ae49979d", "score": "0.51691055", "text": "public function setCode(string $code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "82c13e2f94eaca64d22eab67392c894e", "score": "0.5167961", "text": "public function __construct(string $typeCode = '')\n {\n $this->typeCode = $typeCode;\n }", "title": "" }, { "docid": "885d143f3d7c7f2f3466491c3bf6ba30", "score": "0.514986", "text": "public function setResponseCode(int|HttpResponseCode $code): void\n\t{\n\t\tif (is_int($code)) {\n\t\t\t$code = HttpResponseCode::from($code);\n\t\t}\n\t\t$this->code = $code;\n\t}", "title": "" }, { "docid": "83b99d152004d1cc06b8183bf97e5b57", "score": "0.5138681", "text": "public function getCode($type, $code='')\n {\n $codes = array(\n 'method' => array(\n 'EUROPE_FIRST_INTERNATIONAL_PRIORITY' => Mage::helper('usa')->__('Europe First Priority'),\n 'FEDEX_1_DAY_FREIGHT' => Mage::helper('usa')->__('1 Day Freight'),\n 'FEDEX_2_DAY_FREIGHT' => Mage::helper('usa')->__('2 Day Freight'),\n 'FEDEX_2_DAY' => Mage::helper('usa')->__('2 Day'),\n 'FEDEX_2_DAY_AM' => Mage::helper('usa')->__('2 Day AM'),\n 'FEDEX_3_DAY_FREIGHT' => Mage::helper('usa')->__('3 Day Freight'),\n 'FEDEX_EXPRESS_SAVER' => Mage::helper('usa')->__('Express Saver'),\n 'FEDEX_GROUND' => Mage::helper('usa')->__('Ground'),\n 'FIRST_OVERNIGHT' => Mage::helper('usa')->__('First Overnight'),\n 'GROUND_HOME_DELIVERY' => Mage::helper('usa')->__('Home Delivery'),\n 'INTERNATIONAL_ECONOMY' => Mage::helper('usa')->__('International Economy'),\n 'INTERNATIONAL_ECONOMY_FREIGHT' => Mage::helper('usa')->__('Intl Economy Freight'),\n 'INTERNATIONAL_FIRST' => Mage::helper('usa')->__('International First'),\n 'INTERNATIONAL_GROUND' => Mage::helper('usa')->__('International Ground'),\n 'INTERNATIONAL_PRIORITY' => Mage::helper('usa')->__('International Priority'),\n 'INTERNATIONAL_PRIORITY_FREIGHT' => Mage::helper('usa')->__('Intl Priority Freight'),\n 'PRIORITY_OVERNIGHT' => Mage::helper('usa')->__('Priority Overnight'),\n 'SMART_POST' => Mage::helper('usa')->__('Smart Post'),\n 'STANDARD_OVERNIGHT' => Mage::helper('usa')->__('Standard Overnight'),\n 'FEDEX_FREIGHT' => Mage::helper('usa')->__('Freight'),\n 'FEDEX_NATIONAL_FREIGHT' => Mage::helper('usa')->__('National Freight'),\n ),\n 'dropoff' => array(\n 'REGULAR_PICKUP' => Mage::helper('usa')->__('Regular Pickup'),\n 'REQUEST_COURIER' => Mage::helper('usa')->__('Request Courier'),\n 'DROP_BOX' => Mage::helper('usa')->__('Drop Box'),\n 'BUSINESS_SERVICE_CENTER' => Mage::helper('usa')->__('Business Service Center'),\n 'STATION' => Mage::helper('usa')->__('Station')\n ),\n 'packaging' => array(\n 'FEDEX_ENVELOPE' => Mage::helper('usa')->__('FedEx Envelope'),\n 'FEDEX_PAK' => Mage::helper('usa')->__('FedEx Pak'),\n 'FEDEX_BOX' => Mage::helper('usa')->__('FedEx Box'),\n 'FEDEX_TUBE' => Mage::helper('usa')->__('FedEx Tube'),\n 'FEDEX_10KG_BOX' => Mage::helper('usa')->__('FedEx 10kg Box'),\n 'FEDEX_25KG_BOX' => Mage::helper('usa')->__('FedEx 25kg Box'),\n 'YOUR_PACKAGING' => Mage::helper('usa')->__('Your Packaging')\n ),\n 'containers_filter' => array(\n array(\n 'containers' => array('FEDEX_ENVELOPE', 'FEDEX_PAK'),\n 'filters' => array(\n 'within_us' => array(\n 'method' => array(\n 'FEDEX_EXPRESS_SAVER',\n 'FEDEX_2_DAY',\n 'FEDEX_2_DAY_AM',\n 'STANDARD_OVERNIGHT',\n 'PRIORITY_OVERNIGHT',\n 'FIRST_OVERNIGHT',\n )\n ),\n 'from_us' => array(\n 'method' => array(\n 'INTERNATIONAL_FIRST',\n 'INTERNATIONAL_ECONOMY',\n 'INTERNATIONAL_PRIORITY',\n )\n )\n )\n ),\n array(\n 'containers' => array('FEDEX_BOX', 'FEDEX_TUBE'),\n 'filters' => array(\n 'within_us' => array(\n 'method' => array(\n 'FEDEX_2_DAY',\n 'FEDEX_2_DAY_AM',\n 'STANDARD_OVERNIGHT',\n 'PRIORITY_OVERNIGHT',\n 'FIRST_OVERNIGHT',\n 'FEDEX_FREIGHT',\n 'FEDEX_1_DAY_FREIGHT',\n 'FEDEX_2_DAY_FREIGHT',\n 'FEDEX_3_DAY_FREIGHT',\n 'FEDEX_NATIONAL_FREIGHT',\n )\n ),\n 'from_us' => array(\n 'method' => array(\n 'INTERNATIONAL_FIRST',\n 'INTERNATIONAL_ECONOMY',\n 'INTERNATIONAL_PRIORITY',\n )\n )\n )\n ),\n array(\n 'containers' => array('FEDEX_10KG_BOX', 'FEDEX_25KG_BOX'),\n 'filters' => array(\n 'within_us' => array(),\n 'from_us' => array('method' => array('INTERNATIONAL_PRIORITY'))\n )\n ),\n array(\n 'containers' => array('YOUR_PACKAGING'),\n 'filters' => array(\n 'within_us' => array(\n 'method' =>array(\n 'FEDEX_GROUND',\n 'GROUND_HOME_DELIVERY',\n 'SMART_POST',\n 'FEDEX_EXPRESS_SAVER',\n 'FEDEX_2_DAY',\n 'FEDEX_2_DAY_AM',\n 'STANDARD_OVERNIGHT',\n 'PRIORITY_OVERNIGHT',\n 'FIRST_OVERNIGHT',\n 'FEDEX_FREIGHT',\n 'FEDEX_1_DAY_FREIGHT',\n 'FEDEX_2_DAY_FREIGHT',\n 'FEDEX_3_DAY_FREIGHT',\n 'FEDEX_NATIONAL_FREIGHT',\n )\n ),\n 'from_us' => array(\n 'method' =>array(\n 'INTERNATIONAL_FIRST',\n 'INTERNATIONAL_ECONOMY',\n 'INTERNATIONAL_PRIORITY',\n 'INTERNATIONAL_GROUND',\n 'FEDEX_FREIGHT',\n 'FEDEX_1_DAY_FREIGHT',\n 'FEDEX_2_DAY_FREIGHT',\n 'FEDEX_3_DAY_FREIGHT',\n 'FEDEX_NATIONAL_FREIGHT',\n 'INTERNATIONAL_ECONOMY_FREIGHT',\n 'INTERNATIONAL_PRIORITY_FREIGHT',\n )\n )\n )\n )\n ),\n\n 'delivery_confirmation_types' => array(\n 'NO_SIGNATURE_REQUIRED' => Mage::helper('usa')->__('Not Required'),\n 'ADULT' => Mage::helper('usa')->__('Adult'),\n 'DIRECT' => Mage::helper('usa')->__('Direct'),\n 'INDIRECT' => Mage::helper('usa')->__('Indirect'),\n ),\n\n 'unit_of_measure'=>array(\n 'LB' => Mage::helper('usa')->__('Pounds'),\n 'KG' => Mage::helper('usa')->__('Kilograms'),\n ),\n );\n\n if (!isset($codes[$type])) {\n return false;\n } elseif ('' === $code) {\n return $codes[$type];\n }\n\n if (!isset($codes[$type][$code])) {\n return false;\n } else {\n return $codes[$type][$code];\n }\n }", "title": "" }, { "docid": "e7662c3bbe36e714bcb519c8846cb7a9", "score": "0.513399", "text": "public function setCode($code)\n {\n // set the code\n $this->default['code'] = $code;\n \n // reset the strings\n $this->trans = array();\n }", "title": "" }, { "docid": "3ae76e7d35e2de0f9d1c6a2958d134e3", "score": "0.5126303", "text": "public function response_code_type(): int {\n\t\t$code = strval($this->responseCode);\n\t\treturn intval(strval($code[0]));\n\t}", "title": "" }, { "docid": "0d8db5ea4d4fa57dfb48c01ad5606a72", "score": "0.5123985", "text": "public function addAVSPostCodeResult( $AVSPostCodeResult ) {\n\t\t$this->AVSPostCodeResult = $AVSPostCodeResult;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "ecb9e49a702b5583ad899bca87cb9bad", "score": "0.51224744", "text": "public function code($code)\n {\n return $this->setProperty('code', $code);\n }", "title": "" }, { "docid": "a69f47368b28e8d77c14bb80915e7b4a", "score": "0.50791496", "text": "public function getResultCode()\n {\n return $this->result_code;\n }", "title": "" }, { "docid": "185d0f89f0692243e07723aefd1104e1", "score": "0.5075249", "text": "public function setCode(int $code, string $text = null) : Response\n {\n if (! Arr::has(self::HTTP_RESPONSE_CODES, $code)) {\n throw new InvalidArgumentException(sprintf(\"The requested response code [%s] is not valid\", $code));\n }\n\n $this->code = $code;\n\n if(empty($text)) {\n $this->text = self::HTTP_RESPONSE_CODES[ $code ] ?? 'unknown status';\n\n } else {\n $this->text = $text;\n }\n\n return $this;\n }", "title": "" }, { "docid": "16a8ed9e32beaa1b6005014fa62fd803", "score": "0.5061903", "text": "public function setResponseCode(int $responseCode): ResultInterface\n {\n $this->responseCode = $responseCode;\n return $this;\n }", "title": "" }, { "docid": "6565b46f6bc4e4f81ddf37a8d50ef8c5", "score": "0.50594234", "text": "public function __construct($type, $response_code=0)\n {\n $this->data['type'] = $type;\n $this->data['response_code'] = $response_code;\n $this->data['msgs'] = array();\n $this->data['data'] = array();\n }", "title": "" }, { "docid": "0d14c4f1ec7a2032144c605a29a6aab1", "score": "0.50467694", "text": "public function __construct($contentType = ContentType::HTML, $code = 200)\n {\n $this->contentType = $contentType;\n $this->code = $code;\n $this->charset = 'UTF-8';\n }", "title": "" }, { "docid": "3ba2de67839a177d1d2e025eeaa2c3b4", "score": "0.49993902", "text": "public function setStatusCode(int $code) : static\n {\n return parent::setStatusCode($code);\n }", "title": "" }, { "docid": "9e6a9a53291b63407f189a92a836abfc", "score": "0.49950227", "text": "public function testSetCodeTacheType() {\n\n $obj = new Taches();\n\n $obj->setCodeTacheType(\"codeTacheType\");\n $this->assertEquals(\"codeTacheType\", $obj->getCodeTacheType());\n }", "title": "" }, { "docid": "491b90599066747d5c9eb85c9c8aed3c", "score": "0.49915144", "text": "public function setCode($code) {\n\n if (!isset($code) || $code == \"\") {\n $code = \"default\";\n }\n $this->fields[\"code\"] = $code;\n\n return $this;\n }", "title": "" }, { "docid": "35eb477fd0ae5faf470c9c895d2428d7", "score": "0.49903888", "text": "function setStatusCode($code);", "title": "" }, { "docid": "49ab37ec9ba2d05f4df93fbd3894721f", "score": "0.49792045", "text": "public function setStatusCode($code)\n\t{\n\t\t$this->statusCode = $code;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "fc108907c8e64b96340a90d7c019e8ab", "score": "0.49658787", "text": "public function setCode(string $code): void;", "title": "" }, { "docid": "22829d542d262c6c4ffea619550fe265", "score": "0.49506187", "text": "public function withStatus($code)\n\t{\n\t\t$this->code = $code;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "d59581d4abe9c7c0d61c9651214494bd", "score": "0.49474767", "text": "public function setCode(int $code) :IResponse\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "5883a928d39e36fc52ccac4d0ba04ffe", "score": "0.49401286", "text": "public function setCodeTacheType($codeTacheType) {\n $this->codeTacheType = $codeTacheType;\n return $this;\n }", "title": "" }, { "docid": "5883a928d39e36fc52ccac4d0ba04ffe", "score": "0.49401286", "text": "public function setCodeTacheType($codeTacheType) {\n $this->codeTacheType = $codeTacheType;\n return $this;\n }", "title": "" }, { "docid": "210c8d49e7cd146dd3ca997b97fed085", "score": "0.49173844", "text": "public function setStatusCode(int $code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "1f3096ceb266c0a0f5738b058c70a0ee", "score": "0.49161687", "text": "private function _getCode()\n {\n $code = null;\n //try{\n $text = $this->text;\n $textColor = new CINColor($this->foregroundColor);\n $backgroudColor = new CINColor($this->backgroundColor);\n $fontPath = isset($this->font) ? $this->font : $this->_getFontPath();\n\n $font = new CINFontFile($fontPath, (is_int($this->fontSize)) ? $this->fontSize : 10);\n\n $codeClass = \"\\\\zxf\\\\qrcode\\\\Generator\\\\\" . $this->barcodeType;\n $code = new $codeClass();\n if ($this->scale) {\n $code->setScale($this->scale); // Resolution\n }\n if ($this->thickness) {\n $code->setThickness($this->thickness); // Thickness\n }\n if ($this->label !== false) {\n $code->setLabel($this->label);\n }\n if ($this->noLengthLimit) {\n $code->setNoLengthLimit($this->noLengthLimit);\n }\n if ($this->allowsUnknownIdentifier) {\n $code->setAllowsUnknownIdentifier($this->allowsUnknownIdentifier);\n }\n $code->setForegroundColor($textColor); // Color of bars\n $code->setBackgroundColor($backgroudColor); // Color of spaces\n $code->setFont($font); // Font (or 0)\n $code->parse($text); // Text\n //} catch (\\Exception $ex) {\n\n //}\n return $code;\n }", "title": "" }, { "docid": "14e9ad57993809f7114cc8e69a9788fc", "score": "0.49141046", "text": "public function setCode($code) : APIResponse\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "251194ee4d3e380e2dfa8e6f1a4669db", "score": "0.49137253", "text": "static function set_status_code($code) {\n\t\treturn Controller::curr()->getResponse()->setStatusCode($code);\n\t}", "title": "" }, { "docid": "0b7caf2291012bc79f4def90ffd28d2c", "score": "0.49120978", "text": "public function setCode($value){\n return $this->setParameter('code', $value);\n }", "title": "" }, { "docid": "0b7caf2291012bc79f4def90ffd28d2c", "score": "0.49120978", "text": "public function setCode($value){\n return $this->setParameter('code', $value);\n }", "title": "" }, { "docid": "863fc7075b06fd9a33f87b56292a83b2", "score": "0.49087888", "text": "public function getCode($type, $code = '')\n {\n $codes = array(\n 'unit_of_measure' => array(\n 'L' => Mage::helper('usa')->__('Pounds'),\n 'K' => Mage::helper('usa')->__('Kilograms'),\n ),\n 'unit_of_dimension' => array(\n 'I' => Mage::helper('usa')->__('Inches'),\n 'C' => Mage::helper('usa')->__('Centimeters'),\n ),\n 'unit_of_dimension_cut' => array(\n 'I' => Mage::helper('usa')->__('inch'),\n 'C' => Mage::helper('usa')->__('cm'),\n ),\n 'dimensions' => array(\n 'HEIGHT' => Mage::helper('usa')->__('Height'),\n 'DEPTH' => Mage::helper('usa')->__('Depth'),\n 'WIDTH' => Mage::helper('usa')->__('Width'),\n ),\n 'size' => array(\n '0' => Mage::helper('usa')->__('Regular'),\n '1' => Mage::helper('usa')->__('Specific'),\n ),\n 'dimensions_variables' => array(\n 'L' => Zend_Measure_Weight::POUND,\n 'LB' => Zend_Measure_Weight::POUND,\n 'POUND' => Zend_Measure_Weight::POUND,\n 'K' => Zend_Measure_Weight::KILOGRAM,\n 'KG' => Zend_Measure_Weight::KILOGRAM,\n 'KILOGRAM' => Zend_Measure_Weight::KILOGRAM,\n 'I' => Zend_Measure_Length::INCH,\n 'IN' => Zend_Measure_Length::INCH,\n 'INCH' => Zend_Measure_Length::INCH,\n 'C' => Zend_Measure_Length::CENTIMETER,\n 'CM' => Zend_Measure_Length::CENTIMETER,\n 'CENTIMETER'=> Zend_Measure_Length::CENTIMETER,\n\n )\n );\n\n if (!isset($codes[$type])) {\n return false;\n } elseif ('' === $code) {\n return $codes[$type];\n }\n\n $code = strtoupper($code);\n if (!isset($codes[$type][$code])) {\n return false;\n } else {\n return $codes[$type][$code];\n }\n }", "title": "" }, { "docid": "e2102374cf97ae86da50ff076e9beed5", "score": "0.49078563", "text": "public function getCode()\n\t {\n\t \t return $this->response->result->code;\n\t }", "title": "" }, { "docid": "55dcea0e730dfa7e5c2fbcfd4f13467f", "score": "0.48958695", "text": "function bbcode_second_pass_code($type, $code)\n\t{\n\t\t// when using the /e modifier, preg_replace slashes double-quotes but does not\n\t\t// seem to slash anything else\n\t\t$code = str_replace('\\\"', '\"', $code);\n\n\t\tswitch ($type)\n\t\t{\n\t\t\tcase 'php':\n\t\t\t\t// Not the english way, but valid because of hardcoded syntax highlighting\n\t\t\t\tif (strpos($code, '<span class=\"syntaxdefault\"><br /></span>') === 0)\n\t\t\t\t{\n\t\t\t\t\t$code = substr($code, 41);\n\t\t\t\t}\n\n\t\t\t// no break;\n\n\t\t\tdefault:\n\t\t\t\t$code = str_replace(\"\\t\", '&nbsp; &nbsp;', $code);\n\t\t\t\t$code = str_replace(' ', '&nbsp; ', $code);\n\t\t\t\t$code = str_replace(' ', ' &nbsp;', $code);\n\n\t\t\t\t// remove newline at the beginning\n\t\t\t\tif (!empty($code) && $code[0] == \"\\n\")\n\t\t\t\t{\n\t\t\t\t\t$code = substr($code, 1);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\t$code = $this->bbcode_tpl('code_open') . $code . $this->bbcode_tpl('code_close');\n\n\t\treturn $code;\n\t}", "title": "" }, { "docid": "3088ac80a7083d65622ae9c29af70abd", "score": "0.4891755", "text": "public function setResult($result)\n {\n $this->result = $result;\n }", "title": "" }, { "docid": "91b979c061f85163541783053b148c4d", "score": "0.48838308", "text": "public function setCode(?string $code): void\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "9daf421b3a3860232779610e29dfdf8b", "score": "0.4854375", "text": "protected function _addTypeToCustomColumnCode(&$code, $typeCode = null)\n {\n if (strpos($code, '/') === false) {\n if (is_null($typeCode)) {\n $typeCode = $this->getTypeModel()->getCode();\n }\n $code = $typeCode . '/' . $code;\n }\n return $this;\n }", "title": "" }, { "docid": "bdc1ed1024b32ddf0e7ff7ef5785c33b", "score": "0.48419425", "text": "public function setCodeP($codeP) {\n $this->codeP = $codeP;\n return $this;\n }", "title": "" }, { "docid": "3a97edce5eaf6cba1594b8461e4b5c15", "score": "0.4822481", "text": "public static function createCode($type, $code, $userId = null)\n {\n $confirmCode = new ConfirmCode();\n $confirmCode->user_id = $userId;\n $confirmCode->type = $type;\n $confirmCode->confirm_code = $code;\n\n return $confirmCode;\n }", "title": "" }, { "docid": "3fc59fc593165d86b7181ec0e4bcc4c1", "score": "0.48171386", "text": "public function type($type = 'success')\n {\n $this->type = $type;\n\n return $this;\n }", "title": "" }, { "docid": "2aa0040bd1cd33865a16c62e83b3ff9c", "score": "0.48154593", "text": "public function setStatusCode($code)\n {\n $this->responseCode = $code;\n\n return $this;\n }", "title": "" }, { "docid": "c3b49e2bb99d5ac64578ff27c6668f59", "score": "0.48132586", "text": "public function setCode(string $code): void\n {\n $this->_code = $code;\n }", "title": "" }, { "docid": "c3b49e2bb99d5ac64578ff27c6668f59", "score": "0.48132586", "text": "public function setCode(string $code): void\n {\n $this->_code = $code;\n }", "title": "" }, { "docid": "ef1fb926bc973296823428cafeb826d1", "score": "0.4809625", "text": "public function setCodeChantier($codeChantier) {\n $this->codeChantier = $codeChantier;\n return $this;\n }", "title": "" }, { "docid": "ef1fb926bc973296823428cafeb826d1", "score": "0.4809625", "text": "public function setCodeChantier($codeChantier) {\n $this->codeChantier = $codeChantier;\n return $this;\n }", "title": "" }, { "docid": "ef1fb926bc973296823428cafeb826d1", "score": "0.4809625", "text": "public function setCodeChantier($codeChantier) {\n $this->codeChantier = $codeChantier;\n return $this;\n }", "title": "" } ]
11aaad46c48f540c3cc28a8b92ed5639
Proxy save logic to concrete value model(s)
[ { "docid": "90a89c1c8b3894700a8f9328e0bc7d62", "score": "0.69745386", "text": "public abstract function save();", "title": "" } ]
[ { "docid": "b4e54ba3183b388b77e84202fa9918a6", "score": "0.7082082", "text": "public function save($model, $value);", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.69786996", "text": "abstract public function save();", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.69786996", "text": "abstract public function save();", "title": "" }, { "docid": "404736ee4eab6b79ba91348f186d8c1e", "score": "0.69523674", "text": "abstract protected function save($model);", "title": "" }, { "docid": "abb90dae50c3e76df15da16915e8eded", "score": "0.69258094", "text": "abstract function save();", "title": "" }, { "docid": "511610b4832e0831a023cbbb2e40bbfa", "score": "0.6918728", "text": "abstract public function pre_save($value);", "title": "" }, { "docid": "1edc719c1f086b52bcb891e7b9ddafee", "score": "0.6902231", "text": "protected abstract function saveInternal();", "title": "" }, { "docid": "69926044601d939a8e8b659c392bdf65", "score": "0.6816276", "text": "public function saveObject() {\n\t\t$data = $this->getSQLFactory()->doSave($this->getValueObject());\n\t}", "title": "" }, { "docid": "5dc7b5c5ddac708e3393d514d33f4f8e", "score": "0.6690331", "text": "public function getSaveValue($value)\n {\n\n }", "title": "" }, { "docid": "770fb08b83cc4a7caeffa976fd683362", "score": "0.6658173", "text": "protected function _beforeSave()\n {\n $values = $this->getValue();\n $value = serialize($values);\n $this->setValue($value);\n }", "title": "" }, { "docid": "c72736e1d105c2b3610a0d7c8c0cc7b8", "score": "0.6649422", "text": "public abstract function process_save();", "title": "" }, { "docid": "ac1549088cb6475d518991cdbf295c12", "score": "0.6584623", "text": "protected function _afterSave(){}", "title": "" }, { "docid": "afc5d2a125297557e1ca8ecdbc4e5ed1", "score": "0.6374672", "text": "public function onSave()\r\n {\r\n // first, use the default onSave()\r\n $object = parent::onSave();\r\n \r\n }", "title": "" }, { "docid": "e84bb49de9b123d9e0ba597145557603", "score": "0.637411", "text": "public function beforeSave()\n {\n $value = $this->getValue();\n $value = $this->helper->makeStorableArrayFieldValue($value);\n $this->setValue($value);\n }", "title": "" }, { "docid": "5e57f331b708411811bedce7137f8590", "score": "0.63677424", "text": "public function save() {\n\n\t\tif ( ! $this->check_capabilities() )\n\t\t\treturn;\n\n\t\t$old_values = $this->get_value();\n\t\t$new_values = $this->get_posted_value();\n\n\t\t// If there's an array of posted values, set them.\n\t\tif ( is_array( $new_values ) )\n\t\t\t$this->set_values( $new_values, $old_values );\n\n\t\t// If no array of posted values but we have old values, delete them.\n\t\telse if ( $old_values )\n\t\t\t$this->delete_values();\n\t}", "title": "" }, { "docid": "dce3e01dda30b4b7c5a4a177e2d283ed", "score": "0.633714", "text": "protected function _beforeSave(){}", "title": "" }, { "docid": "d18a4c1313e5f06bfc97242d6eb026dd", "score": "0.63196206", "text": "function onSave()\n {\n $object = parent::onSave();\n }", "title": "" }, { "docid": "bcd4ac6778f15c5fe4461ea9cf032f94", "score": "0.6281854", "text": "function save() {\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\t}", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.6281007", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.6281007", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.6281007", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.6281007", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.6281007", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.6281007", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.6281007", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.6281007", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.6281007", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.6281007", "text": "public function save();", "title": "" }, { "docid": "4214d2ad1d6c883cc49dc8dc01911c34", "score": "0.6266397", "text": "public function saveModelInternal()\n {\n // Purge the field values from the attributes\n $this->model->setRawAttributes(array_diff_key($this->model->getAttributes(), $this->fieldValues));\n }", "title": "" }, { "docid": "6ae586eddc3d5d1d643b3f6a8bea62f5", "score": "0.6256067", "text": "abstract public function save($object);", "title": "" }, { "docid": "5ee594a74719e11a817001bf14938581", "score": "0.6249601", "text": "public function save($model);", "title": "" }, { "docid": "5ee594a74719e11a817001bf14938581", "score": "0.6249601", "text": "public function save($model);", "title": "" }, { "docid": "1c0892073605d49452f359e212b4bd0b", "score": "0.62195516", "text": "public function save() {\n\n\t\tif ( ! $this->check_capabilities() )\n\t\t\treturn;\n\n\t\t$old_value = $this->get_value();\n\t\t$new_value = $this->get_posted_value();\n\n\t\t// If we have don't have a new value but do have an old one, delete it.\n\t\tif ( ! $new_value && $old_value )\n\t\t\tdelete_post_meta( $this->manager->post_id, $this->name );\n\n\t\t// If the new value doesn't match the old value, set it.\n\t\telse if ( $new_value !== $old_value )\n\t\t\tupdate_post_meta( $this->manager->post_id, $this->name, $new_value );\n\t}", "title": "" }, { "docid": "5403559489ee76450ab98a133642e01a", "score": "0.617523", "text": "protected function _saveValues($method) {}", "title": "" }, { "docid": "3d16bf78d114e01142bd625692bc47ad", "score": "0.6169167", "text": "public function save() {\n\t\t// Only delete root field values as nested field values should be deleted in a cascading manner by the datastore\n\t\t$hierarchy = $this->get_hierarchy();\n\t\t$delete_on_save = empty( $hierarchy );\n\t\t$delete_on_save = apply_filters( 'carbon_fields_should_delete_field_value_on_save', $delete_on_save, $this );\n\t\tif ( $delete_on_save ) {\n\t\t\t$this->delete();\n\t\t}\n\n\t\t$save = apply_filters( 'carbon_fields_should_save_field_value', true, $this->get_value(), $this );\n\t\tif ( $save ) {\n\t\t\t$this->get_datastore()->save( apply_filters( 'carbon_fields_before_complex_field_save', $this ) );\n\t\t\t$field_groups = $this->get_prefilled_groups( $this->get_value(), $this->get_value_tree() );\n\t\t\tforeach ( $field_groups as $group_index => $fields ) {\n\t\t\t\tforeach ( $fields as $field ) {\n\t\t\t\t\tif ( ! ( $field instanceof Field ) ) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t$field->save();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f9215c1911aef51e3967d936ae7065a8", "score": "0.6152993", "text": "public function save()\n {\n return true;\n //return $this->set($this->value);\n }", "title": "" }, { "docid": "faaad931a09e56357820b529a96e0573", "score": "0.6143897", "text": "public function beforeModelSave()\n {\n $this->model->item = $this->recordCode;\n if ($this->fieldValues) {\n $this->model->data = $this->fieldValues;\n }\n }", "title": "" }, { "docid": "338b45cdf10e1b1ab9c4948dc5d96a33", "score": "0.6130395", "text": "public function save() {\n\t\t$this->validateData();\n\t\tparent::save();\n\t}", "title": "" }, { "docid": "3c614db1d2f57eeca1299660266fe76d", "score": "0.6128062", "text": "public function save()\n {\n parent::save();\n }", "title": "" }, { "docid": "3c614db1d2f57eeca1299660266fe76d", "score": "0.6128062", "text": "public function save()\n {\n parent::save();\n }", "title": "" }, { "docid": "4ee546688fb6a8f37f8c56bf5fb0c255", "score": "0.61200494", "text": "public function save($model)\n {\n }", "title": "" }, { "docid": "254a794d5dac4a8f8195ddd475ca2903", "score": "0.6119594", "text": "function saveValue($val) {\n\n if (is_array($this->saveKeys)) {\n foreach ($this->saveKeys as $save) {\n switch($save['table']) {\n case 'wp_postmeta' :\n $update = update_post_meta(get_the_ID(),$save['key'],$val);\n break;\n case 'wp_posts' :\n $update = wp_update_post(array(\n 'ID' => get_the_ID(),\n $save['key'] => $val\n ));\n break;\n }\n }\n }\n return $val;\n\n }", "title": "" }, { "docid": "853427c3efc41bf5dccecaf98b8c72a0", "score": "0.6108967", "text": "abstract protected function afterSave($model, $request=null, $id=null);", "title": "" }, { "docid": "954c2eae8a7163328609513b688722ed", "score": "0.6103599", "text": "public function save() {\n }", "title": "" }, { "docid": "e33b1cd4d96c17f83c8bb0abd771d063", "score": "0.6102958", "text": "public function save()\n {\n $field = static::$primary;\n if ($this->new) {\n $data = $this->data;\n $save = [];\n foreach ($data as $k => $val) {\n $save[ $k ] = $val;\n }\n\n $id = $this->insert($save);\n\n if ($this->{$field} === null and $id) {\n $this->{$field} = $id;\n }\n\n $this->new = false;\n\n static::$records[ $this->{$field} ] = $this;\n } else {\n $data = $this->changed;\n $save = [];\n foreach ($data as $k => $val) {\n $save[ $k ] = $val;\n }\n $this->changed = [];\n $this->update($save);\n }\n\n }", "title": "" }, { "docid": "23d9c1524e370453b66cbdff50b78cc0", "score": "0.6099022", "text": "public function afterModelSave()\n {\n }", "title": "" }, { "docid": "8c559ee6e7113a042a7d2eae35bbe2ca", "score": "0.6087626", "text": "public function save()\n {\n $data = [];\n foreach ($this->getAttributes() as $key => $attr) {\n if (!$this->isInstanceOf($attr, AttributeType::ONE2MANY) && !$this->isInstanceOf($attr, AttributeType::MANY2MANY)) {\n if ($attr->getStoreToDb()) {\n $data[$key] = $attr->getDbValue();\n }\n }\n }\n\n /**\n * Insert or update\n */\n if (!$this->exists()) {\n $data['_id'] = new \\MongoId();\n $data['id'] = (string)$data['_id'];\n $this->entity()->getDatabase()->insert(static::$entityCollection, $data);\n $this->id = $data['id'];\n } else {\n // Check if this entity was already saved during save cycle through other relational attributes\n if (array_key_exists($this->id, self::$saved)) {\n return;\n }\n $where = ['_id' => new \\MongoId($this->id)];\n $this->entity()->getDatabase()->update(static::$entityCollection, $where, ['$set' => $data], ['upsert' => true]);\n }\n\n // Store this entity's id to prevent infinite saving loop\n self::$saved[$this->id] = true;\n\n /**\n * Now save One2Many values\n */\n foreach ($this->getAttributes() as $attr) {\n /* @var $attr One2ManyAttribute */\n if ($this->isInstanceOf($attr, AttributeType::ONE2MANY) && $attr->isLoaded()) {\n foreach ($attr->getValue() as $item) {\n $item->getAttribute($attr->getRelatedAttribute())->setValue($this);\n $item->save();\n }\n /**\n * The value of one2many attribute must be set to null to trigger data reload on next access.\n * This is necessary when we have circular references, and parent record does not get it's many2one ID saved\n * until all child referenced objects are saved. Only then can we get proper links between referenced classes.\n */\n $attr->setValue(null, true);\n }\n }\n\n /**\n * Now save Many2Many values\n */\n foreach ($this->getAttributes() as $attr) {\n /* @var $attr Many2ManyAttribute */\n if ($this->isInstanceOf($attr, AttributeType::MANY2MANY)) {\n Many2ManyStorage::getInstance()->save($attr);\n }\n }\n\n // Now that this entity is saved, remove its id from save log\n unset(self::$saved[$this->id]);\n\n return true;\n }", "title": "" }, { "docid": "de26f1f2dffb19078ed7e48184c621dd", "score": "0.6082916", "text": "public function save() {\n }", "title": "" }, { "docid": "b3592e7003e70970359b010eaee10872", "score": "0.6069186", "text": "public function save(){\n\t\t$this->_data = $this->_modifiedFields = $this->getOptions();\n\t\treturn parent::save();\n\t}", "title": "" }, { "docid": "eefe8431a2145fe40edd40edf9d736dd", "score": "0.6068287", "text": "public function save()\n\t{\n\t}", "title": "" }, { "docid": "91579744cd8c79501113da4f449db992", "score": "0.6065305", "text": "public function saveObject($modelObject);", "title": "" }, { "docid": "f5814a8a4850b92eeaafe6d88c5900ef", "score": "0.60609955", "text": "public function save()\r\n {\r\n //\r\n }", "title": "" }, { "docid": "f5814a8a4850b92eeaafe6d88c5900ef", "score": "0.60609955", "text": "public function save()\r\n {\r\n //\r\n }", "title": "" }, { "docid": "9d69af651c26550f07f7e0f3a06821a2", "score": "0.6052771", "text": "public function save($model, $input);", "title": "" }, { "docid": "2e8eae69216b932c52b7d69ebc1099c7", "score": "0.6036555", "text": "public function save() {\n if (! $this->hasBeenCreated) {\n return $this->create();\n }\n\n\n $this->lastUpdatedTime = time();\n\n $data = [];\n foreach ($this->store->changedVars as $c) {\n $data[$c] = $this->{$c};\n }\n\n $status = static::$db->update($data, ['id', '=', $this->id]);\n if (! $status) {\n Core\\Disease::annoyance(\"Could not save model '\" . get_class($this) . \"' with id {$this->id}\");\n\n return false;\n }\n\n // empty changed array\n $this->store->changedVars = [];\n\n return true;\n }", "title": "" }, { "docid": "2037a1889a10a61743cd12452a67881f", "score": "0.603398", "text": "public function save()\n {\n if($this->idVoyage)\n $this->update();\n else\n $this->insert();\n }", "title": "" }, { "docid": "af909161a21e93b90521c17bfbcc41b7", "score": "0.6031885", "text": "protected function afterSave()\n {\n }", "title": "" }, { "docid": "920c5270b7718de32c43ff4c53cfa1f2", "score": "0.602639", "text": "public function saving(Contract $model)\n {\n # w9 is nullable\n $this->setNullableField($model, 'source_profile_w9_id');\n # rateCard is nullable\n $this->setNullableField($model, 'source_profile_honorarium_rate_id');\n }", "title": "" }, { "docid": "0664b39e6ef864c21d767dda717edb1f", "score": "0.60229", "text": "public function save()\n {\n $properties = array();\n $getFuncs = $this->getAccessorFunctions();\n\n foreach ($getFuncs as $mysqlColumnName => $callback)\n {\n /* @var $callback Callback */\n $property = $callback();\n $properties[$mysqlColumnName] = $property;\n }\n\n if (!isset($this->m_id) || $this->m_id == null)\n {\n $createdObject = $this->getTableHandler()->create($properties);\n $this->m_id = $createdObject->get_id();\n }\n else\n {\n $this->getTableHandler()->update($this->m_id, $properties);\n }\n }", "title": "" }, { "docid": "162f067b97e2580f80b31c9a1241db3a", "score": "0.6007466", "text": "public function save()\n {\n }", "title": "" }, { "docid": "162f067b97e2580f80b31c9a1241db3a", "score": "0.6007466", "text": "public function save()\n {\n }", "title": "" }, { "docid": "162f067b97e2580f80b31c9a1241db3a", "score": "0.6007466", "text": "public function save()\n {\n }", "title": "" }, { "docid": "36c169c5700ef42c266cb586e32d0c70", "score": "0.60061896", "text": "abstract protected function doSaveField(FieldInterface $field);", "title": "" }, { "docid": "d631f236555a49cf00e2aeeb51944c97", "score": "0.60003245", "text": "public function save() {\n\n }", "title": "" }, { "docid": "3250bf62f1594f5915ee1b9c939c33e9", "score": "0.59964955", "text": "public function save()\n {\n $this->saveAdditional();\n\n return parent::save();\n }", "title": "" }, { "docid": "239e8897ff4e966406310fc581055e58", "score": "0.5972778", "text": "public function save()\n\t{\n\t\tparent::save();\n\t}", "title": "" }, { "docid": "e001bc2baca14faed66901ecb1f9952b", "score": "0.5958283", "text": "public function save(AbstractModelInterface $object): void;", "title": "" }, { "docid": "ff9e5e52d18f6a29b8982896b389ba93", "score": "0.59552413", "text": "public function save()\n {\n //Recall before exec method with arbirtary code\n $this->dispatchEvent(self::EVENT_BEFORE_SAVE);\n //Fill Record with values from html form\n $this->fillRecord();\n //If occurred some error stop db updating and return exception\n if (!empty($this->exception) && !empty($this->exception->getErrors())) {\n throw $this->exception;\n }\n //If where list is empty execute db insert else execute a db update\n if ($this->getRecord()->getBehavior() == 'insert') {\n $this->insert();\n } else {\n $this->update();\n }\n //Recall after exec method with arbirtary code\n $this->dispatchEvent(self::EVENT_AFTER_SAVE);\n }", "title": "" }, { "docid": "eb2b625c31506148e5d3a8abe2844595", "score": "0.59432954", "text": "public function _save_helper(){\n\t\t$this->set_response('view');\n\t\t$db = db::raw_connect();\n\t\tGenerator::scaffold(&$this->form, $this->scaffold);\n\t\t$field = $this->form['components'][$this->request('name')];\n\t\tActiveRecord::sql_item_sanizite($field['foreignTable']);\n\t\tActiveRecord::sql_item_sanizite($field['detailField']);\n\t\t$db->query(\"insert into {$field['foreignTable']} ({$field['detailField']})\n\t\tvalues ('{$this->request('valor')}')\");\n\t}", "title": "" }, { "docid": "fe7010701f6192a5697d9b3c68ced1e9", "score": "0.5943179", "text": "function _action_save( $field, $value, $meta_id, $meta_value_original )\n {\n do_action( 'wpcf_fields_save', $value, $field, $this, $meta_id, $meta_value_original );\n do_action( 'wpcf_fields_slug_' . $field['slug'] . '_save', $value, $field, $this, $meta_id, $meta_value_original );\n do_action( 'wpcf_fields_type_' . $field['type'] . '_save', $value, $field, $this, $meta_id, $meta_value_original );\n }", "title": "" }, { "docid": "0bc3d8ca588ba4f614d58340b10bbb67", "score": "0.59368366", "text": "public function save(): void;", "title": "" }, { "docid": "15d11192346c779d979376fafb85c239", "score": "0.59303534", "text": "abstract public function save() : bool;", "title": "" }, { "docid": "75f8210e01263d3af6d5bd31097a6f94", "score": "0.59271866", "text": "public function save() {\n\n\t\t$result = 0;\n\t\t$reflection = new \\ReflectionClass( $this ); // See http://php.net/manual/en/class.reflectionclass.php.\n\t\t$set_statement = '';\n\t\t$sql_query = '';\n\n\t\tforeach ( $reflection -> getProperties( \\ReflectionProperty::IS_PUBLIC ) as $property ) {\n\t\t\tif ( null != $this->{ $property -> getName() } ) {\n\n\t\t\t\t$property_to_set = $this->{ $property -> getName() };\n\n\t\t\t\tif ( ! is_numeric( $this->{ $property -> getName() } ) ) {\n\t\t\t\t\t$property_to_set = '\"' . $this->{ $property -> getName() } . '\"';\n\t\t\t\t}\n\n\t\t\t\t$set_statement .= '' . $property -> getName() . '=' . $property_to_set . ', '; // \"Key\"=\"Value\" string pair for this property\n\t\t\t}\n\t\t}\n\t\t$set_statement = substr( $set_statement, 0, -2 );\n\n\n\t\tif ( $this -> id > 0 ) {\n\t\t\t// Generate an update statement for a valid primary key value.\n\t\t\t$sql_query = 'UPDATE ' . $this -> table_name . ' SET ' . $set_statement . ' WHERE id = ' . $this -> id;\n\t\t} else {\n\t\t\t// Generate an insert statement for the new record to save.\n\t\t\t$sql_query = 'INSERT INTO ' . $this -> table_name . ' SET ' . $set_statement;\n\t\t}\n\n\t\t// Execute the generated query, throwing the respective error if it occurs.\n\t\t$result = $this -> pdo -> exec( $sql_query );\n\n\t\tif ( $result ) { // Redo model properties with possible auto generated data in MySQL insert / update query.\n\t\t\t$record_id = $this -> pdo -> lastInsertId();\n\t\t\t$this -> id = $record_id;\n\t\t\t$new_data = $this -> raw_from_db( $record_id );\n\n\t\t\tforeach ( $reflection -> getProperties( \\ReflectionProperty::IS_PUBLIC ) as $property ) {\n\t\t\t\t$this->{ $property -> getName() } = $new_data[ $property -> getName() ];\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "13f3a3ea35874dfe0d9abeb53e4b426f", "score": "0.59227604", "text": "public function doSave() {\r\n\t\t$entity = $this->entity;\r\n\t\tif($entity::getDefinition()->hasBehavior('Asgard\\Entity\\PersistenceBehavior'))\r\n\t\t\t$entity->save();\r\n\t\telse\r\n\t\t\tparent::doSave();\r\n\t}", "title": "" }, { "docid": "e7f34969614adf3377b681eabe641c78", "score": "0.59164745", "text": "public function save() {\n $info = entity_get_info($this->entity_type);\n if (method_exists($this->entity, 'save')) {\n $this->entity->save();\n }\n elseif (isset($info['save callback'])) {\n $info['save callback']($this->entity);\n }\n elseif (in_array(\n 'EntityAPIControllerInterface',\n class_implements($info['controller class'])\n )) {\n entity_get_controller($this->entity_type)->save($this->entity);\n }\n }", "title": "" }, { "docid": "9def37afa5e8f6ae4c48e54eaae7b30f", "score": "0.5915836", "text": "public final function save () {\n\t\t$value = (isset($_REQUEST[$this->getInputName()]) ? $_REQUEST[$this->getInputName()] : \"\");\n\n\t\t$this->saveAsync($value);\n\n\t\t//set new value for form\n\t\t$this->row['value'] = serialize($value);\n\t}", "title": "" }, { "docid": "f4119cea727a0a03a2549ef4aee0651f", "score": "0.58968437", "text": "public function save($key, $value);", "title": "" }, { "docid": "c7bfec2f43fdbb4f0dae7a6f3e50b156", "score": "0.5873344", "text": "public function save($obj);", "title": "" }, { "docid": "d9039170358303cbf66d49ecee9e1a5c", "score": "0.58626354", "text": "public function save()\n {\n // ignore saving \n if ( \n $this->_state === self::STATE_NONE \n ) return $this;\n $this->_raise( self::E_BEFORE_SAVE );\n if ( $this->_state === self::STATE_INSERT ) {\n $this->_raise(self::E_BEFORE_INSERT);\n $id = $this->_model->getStorage()->insert(\n $this->_model, $this->_data\n );\n if ( $id !== false ) {\n $this->_data[ $this->_model->getPrimary() ] = $id;\n $this->_state = self::STATE_NONE;\n $this->_raise(self::E_AFTER_INSERT);\n }\n } elseif ( $this->_state === self::STATE_UPDATE ) {\n // handle update\n $this->_raise(self::E_BEFORE_UPDATE);\n $this->_model->getStorage()->update(\n $this->_model, $this->_data, $this->getId()\n );\n $this->_state = self::STATE_NONE;\n $this->_raise(self::E_AFTER_UPDATE);\n }\n $this->_raise(self::E_AFTER_SAVE);\n return $this;\n }", "title": "" }, { "docid": "58c483f3c657e9e362191529df6af116", "score": "0.5850604", "text": "abstract public function save(string $fieldname, array $config, EntityInterface $entity);", "title": "" }, { "docid": "a718c8991212aefcb26efc3ffc98e7f1", "score": "0.58487695", "text": "public function save()\n {\n // TODO\n }", "title": "" }, { "docid": "b828f87a0552db60f4e187e50d68766e", "score": "0.5830383", "text": "public function store()\n\t{\n\t\tparent::storeModel();\n\t}", "title": "" }, { "docid": "b828f87a0552db60f4e187e50d68766e", "score": "0.5830383", "text": "public function store()\n\t{\n\t\tparent::storeModel();\n\t}", "title": "" }, { "docid": "1c64cca0081b3b2a1a9eeefd5cd83de8", "score": "0.5820735", "text": "public function afterSave()\n\t{\n\t}", "title": "" }, { "docid": "7c4f96fde796a43af70d28aaf2fdec8d", "score": "0.5819139", "text": "public function save( $value = '' ){\n\t\t$old_value = $this->get_saved_value();\n\t\t$new_value = $this->sanitize_value( $value );\n\t\t$return = array(\n\t\t\t'updated' => false,\n\t\t\t'value' => $new_value,\n\t\t);\n\n\t\t//No hacer nada si el nuevo valor es igual al guardado en la base datos\n\t\tif( $new_value == $old_value ){\n\t\t\treturn $return;\n\t\t}\n\n\t\tswitch( $this->get_xbox()->get_object_type() ){\n\t\t\tcase 'metabox':\n\t\t\t\t$return['updated'] = $this->get_xbox()->set_field_value( $this->id, $new_value, $this->get_xbox()->get_object_id() );\n\t\t\t\tbreak;\n\n\t\t\tcase 'admin-page':\n\t\t\t\t$return['updated'] = $this->get_xbox()->set_field_value( $this->id, $new_value );\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "227618fe6546f91b7be763abcf6cec9e", "score": "0.5816452", "text": "public function save($instance) : void ;", "title": "" }, { "docid": "227618fe6546f91b7be763abcf6cec9e", "score": "0.5816452", "text": "public function save($instance) : void ;", "title": "" }, { "docid": "82edd9faee490ab86248e3e2afbfca38", "score": "0.5808967", "text": "public function save()\n {\n $this->getService()->save($this);\n }", "title": "" }, { "docid": "6523c9c47da790e1f88ead65e938e013", "score": "0.58074987", "text": "public function save($value, $withTransaction = true);", "title": "" }, { "docid": "64105fac831076f7db06fe43faea13fd", "score": "0.5799772", "text": "protected function _afterSave()\n {\n return parent::_afterSave();\n }", "title": "" }, { "docid": "692182a273c216fdd803892dc9d86f83", "score": "0.579763", "text": "public function afterSave()\n {\n }", "title": "" }, { "docid": "692182a273c216fdd803892dc9d86f83", "score": "0.579763", "text": "public function afterSave()\n {\n }", "title": "" }, { "docid": "95122615cace9fd5666f090948afd8d1", "score": "0.5797106", "text": "private function generate_save() {\n\t\t$this->init_function('save');\n\n\t\t$this->write('if( empty($this->_changed) ) {');\n\t\t$this->write('return;');\n\t\t$this->write('}');\n\n\t\t$this->write('if( !$this->validate() ) {');\n\t\t$this->write('return;');\n\t\t$this->write('}');\n\n\t\t$this->write('$values = array();');\n\t\tforeach( $this->structure['structure'] as $field => $type ) {\n\t\t\t$type = ORMTypeFactory::factory($field, $type, $this->structure);\n\t\t\t$this->write('if(isset($this->_changed[%s]) && $this->_changed[%s]) {', $field, $field);\n\t\t\t$type->generate_save($this);\n\t\t\t$this->write('}');\n\t\t}\n\t\t$this->write( 'if($this->_oldkey === false) {'); // New\n\t\t$this->write( '$pool = new '.$this->pool_class.'();');\n\t\t$this->write( '$insid = $pool->insert_single($values);');\n\t\t// Handle auto increment value, but only if single column key of type int\n\t\tif(count($this->key) == 1 && $this->structure['structure'][$this->key[0]] == 'int') {\n\t\t\t$this->write( 'if($insid !== false && $insid > 0) {');\n\t\t\t$this->write( '$this->'.$this->key[0].' = $insid;');\n\t\t\t$this->write( '}');\n\t\t}\n\t\t$this->write( '} else {'); // Update\n\t\t$this->write( '$set = '.$this->pool_class.'::all();');\n\t\tforeach($this->key as $name) {\n\t\t\t$this->write( '$set = $set->reduce_by(%s, $this->_oldkey[%s], \"=\");', $name, $name);\n\t\t}\n\t\t$this->write( '$set->update($values);');\n\t\t$this->write( '}');\n\t\t$this->write( '$this->_oldkey = array();');\n\t\tforeach($this->key as $name) {\n\t\t\t$this->write( \"\\$this->_oldkey[%s] = \\$this->$name;\", $name);\n\t\t}\n\t\t$this->write( '$this->_changed = array();');\n\t\t$this->finish_function();\n\t}", "title": "" }, { "docid": "6dbe43d92944d5be5f054a3881bef394", "score": "0.5788068", "text": "public function beforeSave()\n {\n $this->_prepareStateValue()\n ->_prepareScheduleIdValue()\n ->_prepareRewriteRequestPath();\n\n return parent::beforeSave();\n }", "title": "" }, { "docid": "ebe9aea26ee9f71494e841d8417ad478", "score": "0.5786623", "text": "public function simpleSave()\n {\n return parent::save(false);\n }", "title": "" }, { "docid": "94a8b183a137f6bc7ce10451052b2215", "score": "0.5782093", "text": "public function save() {\n return;\n }", "title": "" }, { "docid": "7f2ef00ff49e3a1f80def9a463adf2a9", "score": "0.5779428", "text": "public function save()\n {\n if($this->isValid())\n // Set defaults values\n $this->setDefaults();\n // Get the class name\n $class = get_class($this);\n // Get the name of the property ID\n $id = $class::$id;\n\n // If the current instance has a value set on ID field of the class\n if(isset($this->$id) && !empty($this->$id))\n {\n\n // Update the current entry\n $query = db_update($class::$table);\n $fields = array();\n // Foreach property of the class\n foreach($this->fillable as $key => $value)\n {\n if(property_exists($this, $key))\n $fields[$key] = $this->$key;\n }\n $query->fields($fields);\n // Set the update query condition\n $query->condition($id, $this->$id);\n // Execute the query\n $query->execute();\n } else {\n // Insert a new entry on the database\n $query = db_insert($class::$table);\n $fields = array();\n // Foreach property of the class\n foreach($this->fillable as $key => $value)\n {\n if(property_exists($this, $key))\n $fields[$key] = $this->$key;\n }\n $query->fields($fields);\n // Execute the query\n $newId = $query->execute();\n\n // Set the instance ID with the new ID entry\n if($id !== FALSE)\n $this->$id = $newId;\n }\n }", "title": "" }, { "docid": "cd8b5ca2330ae0c4d4d6257aa00a0d32", "score": "0.5776632", "text": "public function run() {\n\t\t$db_vals = array();\n\t\tif ( $this->is_custom_save_handler() ) {\n\t\t\t$db_vals = $this->custom_handler()->get();\n\t\t} elseif ( $this->is_save_single() ) {\n\t\t\t$db_vals = new Option( $this->instance->module_db(), $this->instance->unique(), $this->instance->get_id() );\n\t\t} else {\n\t\t\t$instance = $this->instance;\n\t\t\t$fileds = $instance->fields();\n\t\t\t$unique = $instance->unique();\n\n\t\t\tif ( $fileds->has_fields() && $this->is_valid_save_type() ) {\n\t\t\t\t$db_vals = $this->extract_or_save_fields_in_db( $fileds->fields() );\n\t\t\t} elseif ( $fileds->has_containers() ) {\n\t\t\t\t/**\n\t\t\t\t * @var \\WPO\\Container $container\n\t\t\t\t * @var \\WPO\\Container $sub_container\n\t\t\t\t */\n\t\t\t\tforeach ( $fileds->containers() as $container ) {\n\t\t\t\t\tif ( $container->has_fields() ) {\n\t\t\t\t\t\tif ( in_array( $this->type, array( 'container', 'subcontainer' ), true ) ) {\n\t\t\t\t\t\t\t$values = new Option( $instance->module_db(), $unique . '_' . $container->name(), $instance->get_id() );\n\t\t\t\t\t\t\t$values = $this->sanitize_value( $values );\n\t\t\t\t\t\t\t$db_vals = wponion_parse_args( $values, $db_vals );\n\t\t\t\t\t\t} elseif ( 'field' === $this->type ) {\n\t\t\t\t\t\t\t$db_vals = wponion_parse_args( $this->extract_or_save_fields_in_db( $container->fields() ), $db_vals );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( $container->has_containers() ) {\n\t\t\t\t\t\tforeach ( $container->containers() as $sub_container ) {\n\t\t\t\t\t\t\tif ( 'container' === $this->type && $sub_container->has_fields() ) {\n\t\t\t\t\t\t\t\t$values = new Option( $instance->module_db(), $unique . '_' . $container->name(), $instance->get_id() );\n\t\t\t\t\t\t\t\t$values = $this->sanitize_value( $values );\n\t\t\t\t\t\t\t\t$db_vals = wponion_parse_args( $values, $db_vals );\n\t\t\t\t\t\t\t} elseif ( 'subcontainer' === $this->type && $sub_container->has_fields() ) {\n\t\t\t\t\t\t\t\t$values = new Option( $instance->module_db(), $unique . '_' . $sub_container->name(), $instance->get_id() );\n\t\t\t\t\t\t\t\t$values = $this->sanitize_value( $values );\n\t\t\t\t\t\t\t\t$db_vals = wponion_parse_args( $values, $db_vals );\n\t\t\t\t\t\t\t} elseif ( 'field' === $this->type && $sub_container->has_fields() ) {\n\t\t\t\t\t\t\t\t$db_vals = wponion_parse_args( $this->extract_or_save_fields_in_db( $sub_container->fields() ), $db_vals );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $db_vals;\n\t}", "title": "" }, { "docid": "86acd9e9d89f2f18d30d2a1b9e17efad", "score": "0.577653", "text": "function save() {\r\n if($this->id) {\r\n $this->update();\r\n } else {\r\n $this->insert();\r\n } \r\n }", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "8f8305b77ba24d7063494b8fe030c15e", "score": "0.0", "text": "public function run()\n {\n $articles = Article::factory(100)->create();\n $tags = collect();\n foreach ($this->getTags() as $tag) {\n $tags->push(Tag::factory()->create(['name' => $tag]));\n }\n\n foreach ($articles as $article) {\n $randomTags = $tags->random(rand(2, 6));\n\n $randomTags->each(function ($tag) use ($article) {\n $article->tags()->save($tag);\n });\n }\n }", "title": "" } ]
[ { "docid": "5a2cd3aba17d761d018ca18fe576b099", "score": "0.8065376", "text": "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding book category\n */\n DB::table('book_category')->insert([\n ['name' => 'Novel'],\n ['name' => 'Non-Fiction'],\n ['name' => 'Fiction'],\n ['name' => 'Comic'],\n ['name' => 'Biography'],\n ['name' => 'Kids'],\n ]);\n /**\n * Make Admin Account\n */\n User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('admin')\n ]);\n }", "title": "" }, { "docid": "11f457d79f8912cc87ec2d4e53032d61", "score": "0.7992732", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // user type\n $names = ['Admin', 'Member', 'Seller'];\n foreach($names as $n){\n DB::table('user_types')->insert([\n 'id' => Str::random(5),\n 'name' => $n\n ]);\n }\n\n // Category\n $categories = ['Electronic', 'Furniture', 'Cosmetics','Clothes','Sport'];\n // 1 2 3 4 5\n $i = 1;\n foreach($categories as $cat){\n DB::table('categories')->insert([\n 'id' => $i,\n 'name' => $cat\n ]); \n $i++;\n }\n\n\n // city\n $cities = ['Phnom Penh', 'Siem Reap', 'Kampong Thom','Kampong Cham','Kampot'];\n foreach($cities as $city){\n DB::table('cities')->insert([\n 'id' => Str::random(5),\n 'name' => $city\n ]); \n }\n }", "title": "" }, { "docid": "543a8d6019d0da6404b53619bcfcf539", "score": "0.79456615", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n //App\\Category::truncate();\n //App\\Todo::truncate();\n App\\User::query()->delete();\n\n $faker = \\Faker\\Factory::create();\n\n $password = Hash::make('toptal');\n $user = App\\User::create([\n 'name' => 'Administrator',\n 'email' => '[email protected]',\n 'password' => $password,\n ]); \n\n \n for ($i = 1; $i <= 3; $i++) {\n $cat = App\\Category::create([\n 'category' => 'Cat_'.$i,\n 'user_id' => $user->id\n ]);\n // And now, let's create a few todos in our database:\n for ($a = 1; $a <= 3; $a++) {\n $due = ($a * 10) - $i;\n $duestring = ($due < 10) ? '2018-08-0'.$due : '2018-08-'.$due;\n App\\Todo::create([\n 'todo' => $faker->sentence,\n 'category_id' => $cat->id,\n 'user_id' => $user->id,\n 'due' => $duestring\n ]);\n }\n }\n }", "title": "" }, { "docid": "e0c3d828ba1bff35183042b29039c593", "score": "0.79318094", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n $movies = [\n ['title' => 'Zielona mila', 'alt' => 'Zielona mila poster', 'director_id' => 1],\n ['title' => 'Skazani na Shawshank', 'alt' => 'Skazani na Shawshank poster', 'director_id' => 1],\n ['title' => 'Forrest Gump', 'alt' => 'Forrest Gump poster', 'director_id' => 2],\n ['title' => 'Leon Zawodowiec', 'alt' => 'Leon Zawodowiec poster', 'director_id' => 3],\n ['title' => 'Matrix', 'alt' => 'Matrix poster', 'director_id' => 4]\n ];\n\n $directors = [\n ['name' => 'Frank Darabont'],\n ['name' => 'Robert Zemeckis'],\n ['name' => 'Luc Besson'],\n ['name' => 'Lilly Wachowski']\n ];\n\n DB::table('directors')->insert($directors);\n\n DB::table('movies')->insert($movies);\n }", "title": "" }, { "docid": "15d92bee78a2cd733cb39a2ac034c784", "score": "0.79141736", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $user = new User();\n\t\t$user->name = 'Admin';\n\t\t$user->email = '[email protected]';\n\t\t$user->password = Hash::make( '1234' );\n\t\t$user->is_admin = true;\n $user->save();\n\n for ( $i = 1; $i <= 7; $i ++ ) {\n\n $users = new User();\n $users->name = 'user'.$i;\n $users->email = '$user'.$i.'@local.com';\n $users->password = Hash::make( '1234' );\n $users->is_admin = false;\n $users->save();\n \n }\n \n $faker = Faker\\Factory::create();\n\n for ( $i = 1; $i <= 7; $i ++ ) {\n\n $prod = new Product();\n $prod->prodname = 'Product'.$i;\n $prod->description = str_random(20);\n $prod->price = $faker->randomDigit;\n $prod->cateid = rand(1, 3);\n $prod->picture = $faker->imageUrl($width = 200, $height = 200);\n $prod->save();\n \n }\n\n for ( $i = 1; $i <= 3; $i ++ ) {\n \n $cate = new Category();\n $cate->catename = 'Cate'.$i;\n $cate->save();\n \n }\n\n }", "title": "" }, { "docid": "b600ed0e4e2d7dc9e74a5a10fb23bc64", "score": "0.79065317", "text": "public function run()\n {\n \\DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \\App\\Models\\Article::truncate();\n \\App\\Models\\Article::unguard();\n \\DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n\n $faker = \\Faker\\Factory::create();\n\n \\App\\Models\\User::all()->each(function ($user) use ($faker) {\n foreach (range(1, 5) as $i) {\n \\App\\Models\\Article::create([\n 'user_id' => $user->id,\n 'title' => $faker->sentence,\n 'content' => $faker->paragraphs(3, true),\n ]);\n }\n });\n }", "title": "" }, { "docid": "7aedb5fc5c60c181268cae1cf284de8f", "score": "0.79059935", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n \t'id' => '1',\n 'name' => 'Administrator',\n 'password' => Hash::make('admin'),\n 'email' => '[email protected]',\n 'admin' => '1',\n 'aktif' => 'y'\n \t]);\n\n DB::table('menu')->insert([\n \t'id' => '1',\n \t'name' => 'Sayur'\n \t]);\n\n DB::table('menu')->insert([\n \t'id' => '2',\n \t'name' => 'Plastik'\n \t]);\n\n DB::table('menu')->insert([\n \t'id' => '3',\n \t'name' => 'Buah'\n \t]);\n\n DB::table('kategori')->insert([\n \t'id' => '1',\n \t'nama' => 'Kubis',\n \t'satuan' => 'Kg',\n \t'kat' => 'Sayur',\n \t'qty' => '1',\n \t'tipe_a' => '15.000',\n 'tipe_b' => '16.000',\n 'tipe_c' => '17.000'\n \t]);\n }", "title": "" }, { "docid": "a662dc08480b90008afb88c03521a6d6", "score": "0.79023117", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('roles')->insert([\n 'name' => 'Administrador',\n ],\n [\n 'name' => 'Profesor' ,\n ]);\n\n DB::table('categories')->insert([\n 'name' => 'Nombrado',\n 'hours' => 35,\n ],\n [\n 'name' => 'No nombrado',\n 'hours' => 20,\n ]);\n\n DB::table('faculties')->insert([\n 'name' => 'Sistemas e informática',\n ]);\n\n DB::table('users')->insert([\n 'name' => 'Administrador',\n 'email' => '[email protected]',\n 'role_id' => 1,\n 'password' => bcrypt('12345678')\n ]);\n\n DB::table('schools')->insert([\n 'name' => 'Ingenieria de sistemas',\n 'faculty_id' => 1,\n ],\n [\n 'name' => 'Ingenieria de software',\n 'faculty_id' => 1\n ]);\n }", "title": "" }, { "docid": "e6499609f9cf3766274c709b6c8f42a6", "score": "0.78937787", "text": "public function run()\n {\n factory(\\App\\Models\\Tag::class, 50)->create();\n factory(\\App\\Models\\Category::class, 10)->create();\n factory(\\App\\Models\\User::class)->create(['role_id' => 1, 'email' => '[email protected]']);\n factory(\\App\\Models\\User::class, 10)->create();\n// $this->call([\n// UsersTableSeeder::class,\n// TagsCategoriesSeeder::class,\n// ]);\n }", "title": "" }, { "docid": "8e4192e71767c2fd3d0d320b2ee1d9da", "score": "0.78887534", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n $items = [];\n for ($i = 0; $i < config('seed.thematicsCount'); $i++) {\n $items[] = [\n 'name' => 'thematic ' . $faker->word,\n 'status' => rand(0, 1),\n 'user_id' => rand(1, config('seed.usersCount')),\n 'created_at' => \\Illuminate\\Support\\Carbon::now()->toDateTimeString(),\n 'updated_at' => \\Illuminate\\Support\\Carbon::now()->toDateTimeString(),\n ];\n }\n DB::table('thematics')->insert($items);\n }", "title": "" }, { "docid": "6806e0ae39a39e44f8d5c7a7bc531473", "score": "0.78880966", "text": "public function run()\n {\n // Volver migraciones atras y rellenar tablas\n // php artisan migrate:refresh --seed\n \n // Rellenar poco a poco\n // php artisan db:seed\n \n //$this->call(UsersTableSeeder::class);\n $this->call([\n UsersTableSeeder::class,\n WorksTableSeeder::class,\n SkillsTableSeeder::class,\n MiniSkillsTableSeeder::class,\n ArticlesTableSeeder::class,\n ContactsTableSeeder::class,\n ]);\n \n \n factory(User::class, 1000)->create();\n factory(Skill::class, 30)->create();\n factory(MiniSkill::class, 30)->create();\n factory(Work::class, 15)->create();\n factory(Article::class, 30)->create();\n }", "title": "" }, { "docid": "80d98ce7df32bc368406cbd8149fe780", "score": "0.78794247", "text": "public function run()\n {\n $faker = Faker::create();\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n AudioFile::truncate();\n Project::truncate();\n Track::truncate();\n User::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n factory(Project::class, 10)->create();\n\n $projects = Project::all()->pluck('id')->toArray();\n foreach(range(1,50) as $index){\n $track = Track::create([\n 'name' => $faker->catchPhrase,\n 'slug' => $faker->slug,\n 'user_id' => factory(App\\User::class)->create()->id,\n 'project_id' => $faker->randomElement($projects),\n ]);\n\n $hash = $faker->md5;\n\n $file = AudioFile::create([\n 'filename' => $faker->randomDigit . '_' . $hash . '.mp3',\n 'hash' => $hash,\n 'track_id' => $track->id,\n ]);\n }\n // $this->call(UserTableSeeder::class);\n\n }", "title": "" }, { "docid": "d54ffbd639a44d52588ca943525e66b9", "score": "0.7878056", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n \n foreach (range(1, 10) as $index) {\n DB::table('products')->insert([\n 'sku' => $faker->unique()->md5,\n 'Name' => $faker->word,\n 'price' => $faker->numberBetween($min = 1, $max = 1000),\n 'description' => $faker->text,\n 'Category' => $faker->word,\n 'UnitsInStock' => $faker->numberBetween($min = 1, $max = 50),\n ]);\n }\n }", "title": "" }, { "docid": "a83416f4b4e97e515ca58d755fe3dacf", "score": "0.78747964", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n DB::table('category_product')->truncate();\n factory(User::class,200)->create();\n factory(Category::class,50)->create();\n factory(Product::class,200)->create()->each(function ($producto){\n // obtiene las categorias y selecciona el id de 5,\n $categories=Category::all()->random(mt_rand(1,5))->pluck('id');\n // categories del modelo\n $producto->categories()->attach($categories);\n });\n factory(Transaction::class,100)->create();\n }", "title": "" }, { "docid": "8f92cdb4a527f7ab60d4f39736095d4e", "score": "0.7874296", "text": "public function run()\n {\n // Disable foreign key checks!\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n /*\n * Category Seed\n * ------------------\n */\n // DB::table('categories')->truncate();\n factory(Category::class, 5)->create();\n\n /*\n * Tags Seed\n * ------------------\n */\n // DB::table('post_tag')->truncate();\n // DB::table('tags')->truncate();\n factory(Tag::class, 10)->create();\n $tags = Tag::all();\n\n /*\n * Posts Seed\n * ------------------\n */\n // DB::table('posts')->truncate();\n\n // Populate the pivot table\n factory(Post::class, 25)->create()->each(function ($post) use ($tags) {\n $post->tags()->attach(\n $tags->random(rand(1, 3))->pluck('id')->toArray()\n );\n });\n\n // Artisan::call('auth:permission', [\n // 'name' => 'posts',\n // ]);\n // Artisan::call('auth:permission', [\n // 'name' => 'categories',\n // ]);\n // Artisan::call('auth:permission', [\n // 'name' => 'tags',\n // ]);\n\n // Enable foreign key checks!\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "1055ad608b2a3d954d872c571d31b65e", "score": "0.786034", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n DB::table('users')-> insert([\n 'name' => 'Mulkis',\n 'email' => '[email protected]',\n 'password' => Hash::make('uoj'),\n ]);\n\n $faker = Faker::create();\n $authors = 10;\n $publishers = 10;\n $books = 100;\n \n foreach (range(1, $authors) as $_) {\n DB::table('authors')-> insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n 'portrait' => $faker->imageUrl(180, 340),\n ]);\n }\n foreach (range(1, $publishers) as $_) {\n DB::table('publishers')-> insert([\n 'title' => $faker->company(),\n ]);\n }\n foreach (range(1, $books) as $_) {\n DB::table('books')-> insert([\n 'title' => str_replace(['.', \"'\", '\"', '`', '(', ')'], '',$faker->realText(rand(10, 64))),\n 'isbn' => $faker->isbn10(),\n 'pages' => rand(12, 1499),\n 'about' => $faker->realText(300, 4),\n 'author_id' => rand(1, $authors),\n 'publisher_id' => rand(1, $publishers),\n ]);\n }\n }", "title": "" }, { "docid": "caac1c1fa998259212e976ca6479e7e9", "score": "0.7859339", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('statuses')->insert([\n \t['name' => 'Новый'],\n \t['name' => 'Ожидает оплаты'],\n \t['name' => 'Оплачен']\n ]);\n DB::table('products')->insert([\n \t['name' => 'Книга', 'price' => 100],\n \t['name' => 'Стол', 'price' => 150],\n \t['name' => 'Ручка', 'price' => 10],\n \t['name' => 'Карандаш', 'price' => 15],\n \t['name' => 'Линейка', 'price' => 25],\n \t['name' => 'Тетрадь', 'price' => 30]\n ]);\n }", "title": "" }, { "docid": "187405472e72053a0e5f31b6c0f357bf", "score": "0.7858601", "text": "public function run()\n {\n $this->call([\n //CountriesSeeder::class,\n //StatesSeeder::class,\n //CitiesSeeder::class,\n ActivitiesSeeder::class,\n ApisSeeder::class,\n RolesSeeder::class,\n UsersSeeder::class,\n CategoriesSeeder::class,\n ProductsSeeder::class, \n ]);\n \n \n // Product::factory()->count(20)->create();\n // Category::factory()->count(5)->create();\n \n // $categories = Category::all();\n \n // Product::all()->each(function($product) use ($categories) {\n // $product->categories()->attach(\n // $categories->random(2)->pluck('id')->toArray()\n // );\n // });\n \n }", "title": "" }, { "docid": "a73c57e191e7317e44fec250f1761bfd", "score": "0.78535104", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(Category::class,10)->create();\n factory(Product::class,200)->create();\n factory(Review::class,500)->create();\n }", "title": "" }, { "docid": "9219ade5602125c3663c190c51c52a34", "score": "0.78439575", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n Role::create(['name' => 'Admin']);\n Role::create(['name' => 'Manager']);\n Role::create(['name' => 'Editor']);\n\n $user = User::create([\n 'role_id' => 1,\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n $user = User::create([\n 'role_id' => 2,\n 'name' => 'Manager',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n $user = User::create([\n 'role_id' => 3,\n 'name' => 'Editor',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n\n for($i=1; $i<=10; $i++){\n Post::create([\n 'user_id' => rand(1,3),\n 'title'=> str_random(10),\n 'post_text' => str_random(200)\n ]);\n }\n\n // $user->roles()->attach(1, ['approved' => 1]);\n // $user->roles()->attach(2);\n\n // foreach($user->approvedRoles as $role){\n // //info($role->name . '(time: ' . $role->pivot->created_at . ', approved: '. $role->pivot->approved . ')');\n // info($role->name);\n // }\n\n factory(Author::class, 50)->create();\n factory(Book::class, 100)->create();\n }", "title": "" }, { "docid": "b3ff8caf8eab3866fb6b144f366dbcb0", "score": "0.7841588", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n \n // for($i=0;$i<100;$i++){\n // DB::table('news')->insert([\n // 'name' => Str::random(10),\n // 'title' => Str::random(10),\n // 'photo' => Str::random(10),\n // 'content'=>'This is paragraph' \n // ]);\n // }\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('Admin123'),\n 'isAdmin' => '1',\n 'isPremium' => '1'\n ]);\n }", "title": "" }, { "docid": "ff1b418e1d7040c23abe580ce94a5a3d", "score": "0.78405744", "text": "public function run()\n {\n $this->call(SettingsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n\n Product::factory(50)->create();\n Cart::factory(15)->create();\n CartItem::factory(13)->create();\n Order::factory(15)->create();\n OrderItem::factory(15)->create();\n\n }", "title": "" }, { "docid": "29eca3fbda4bb9727a856b9f84828e78", "score": "0.7839851", "text": "public function run()\n {\n //seed api_user table\n factory(App\\ApiUser::class, 1)->create();\n\n //seed tag table\n factory(App\\Tag::class, 10)->create();\n\n //seed user table\n factory(App\\User::class, 10)->create()->each(function ($user) {\n //seed question table\n $questionCount = rand(10, 50);\n factory(App\\Question::class, $questionCount)->create(['user_id'=>$user->id])->each(function ($question) use ($user){\n //seed answer table\n $answerCount = rand(0, 10);\n factory(App\\Answer::class, $answerCount)->create(['question_id' => $question->id, 'user_id' => $user->id]);\n });\n });\n\n //seed question_tag pivot table\n $tags = App\\Tag::all();\n App\\Question::all()->each(function ($question) use ($tags) {\n $question->tags()->attach(\n $tags->random(rand(1, 5))->pluck('id')->toArray()\n );\n });\n }", "title": "" }, { "docid": "b2efef38eb3df86e0d3d9f1cd22c5c87", "score": "0.7836786", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 3)->create();\n Topic::create(['name'=>'References','slug'=>'references']);\n Topic::create(['name'=>'Tutorial','slug'=>'tutorial']);\n Topic::create(['name'=>'Usefull Links','slug'=>'links']);\n\n factory(Post::class, 20)->create();\n }", "title": "" }, { "docid": "2f81096f97f8a259aea26be9d695e84e", "score": "0.78322875", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n factory(App\\Tag::class, 30)->create();\n factory(App\\Category::class, 10)->create();\n factory(App\\Post::class, 50)->create();\n factory(App\\subscriber::class, 50)->create();\n factory(App\\PostTag::class, 200)->create();\n factory(App\\PostCategory::class, 50)->create();\n factory(App\\ParentCategory::class, 10)->create();\n factory(App\\ChildCategory::class, 10)->create();\n \n }", "title": "" }, { "docid": "353a1d9192ac2ee05dd43ba589fef572", "score": "0.7830354", "text": "public function run()\n {\n $this->call([RolesTableSeeder::class,DishTypesTableSeeder::class,IngredientSampleTableSeeder::class]);\n \n factory(App\\User::class, 5)->create()\n ->each(function($item){\n $item->mealBook()->saveMany(factory(App\\MealBook::class,rand(1,10))->make());\n $item->cookingRecipe()->saveMany(factory(App\\CookingRecipe::class,rand(1,10))->make());\n $item->post()->saveMany(factory(App\\Post::Class,rand(1,10))->make());\n $item->comment()->saveMany(factory(App\\Comment::class,rand(1,20))->make());\n $item->point()->saveMany(factory(App\\Point::class,rand(1,20))->make());\n });\n }", "title": "" }, { "docid": "6cf1729d133b80f0ba4205112d73b5b7", "score": "0.78286344", "text": "public function run()\n\t{\n\t\tModel::unguard();\n\n\t\t/*Survey::create([\n\t\t\t'title'=>'Encuesta de salida',\n\t\t\t'description'=>'Esta encuesta será aplicada a todos los pacientes'\n\t\t]);*/\n\n\t\t$faker = \\Faker\\Factory::create();\n\t\tforeach(range(1,5) as $index) {\n\t\t\tSurvey::create([\n\t\t\t\t'title'=>$faker->sentence(10),\n\t\t\t\t'description'=>$faker->sentence(40)\n\t\t\t]);\n\t\t}\n\n\t}", "title": "" }, { "docid": "58deeaabeebb62de3e978537814ab4e3", "score": "0.7827373", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Restaurant::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 50; $i++) {\n Restaurant::create([\n 'google_places_id' => $faker->sha256,\n 'yelp_id' => $faker->sha256,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "322840873bcbb30c449f9f96a377723e", "score": "0.7821602", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Role::truncate();\n User::truncate();\n Profile::truncate();\n\n $this->call(RoleSeeder::class);\n\n $roles = ['admin', 'author', 'editor', 'employee'];\n //for Admin\n $admin = factory(User::class)->create([\n 'first_name' => 'Admin',\n 'last_name' => '',\n 'email' => '[email protected]',\n ]);\n $admin->assignRoles($roles);\n\n $admin->profile()->create([\n 'dob' => '1994-09-25',\n 'gender' => 1,\n 'address' => 'Mirpur 1, Dhaka Bangladesh',\n ]);\n\n $users = factory(User::class, 50)->create();\n\n $users->each(function ($user) use ($roles) {\n factory(Profile::class)->create(['user_id'=> $user->id]);\n $user->roles()->sync(mt_rand(2,4));\n });\n }", "title": "" }, { "docid": "02e74cf1e122f3a2c37d634a29cdfc31", "score": "0.78150123", "text": "public function run()\n {\n Category::factory(10)->create();\n $tags = Tag::factory(20)->create();\n $posts = Post::factory(100)->create();\n\n foreach ($posts as $post)\n {\n $tagsIds = $tags->random(5)->pluck('id');\n $post->tags()->attach($tagsIds);\n }\n\n Role::insert([\n ['name' => 'user'],\n ['name' => 'manager'],\n ['name' => 'admin'],\n ]);\n\n User::create([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'role' => '3',\n 'password' => Hash::make('11223344'),\n ]);\n }", "title": "" }, { "docid": "6960da9ec4442edcbfd113533d6ef120", "score": "0.781237", "text": "public function run()\n {\n $this->call([CategorySeeder::class]);\n \\App\\Models\\User::factory([\n 'email' => '[email protected]',\n ])->create();\n \\App\\Models\\User::factory(2)->create();\n \\App\\Models\\Topic::factory(40)->create();\n \\App\\Models\\Answer::factory(150)->create();\n }", "title": "" }, { "docid": "f864816e80b0e7603a1e8ae5700c57a6", "score": "0.7807138", "text": "public function run()\n {\n// $this->call(UsersTableSeeder::class);\n factory(App\\Country::class, 5)->create();\n factory(App\\Member::class, 10)->create();\n\n foreach ($this->items() as $item) {\n Category::create($item);\n }\n\n factory(App\\Category_movie::class, 10)->create();\n// factory(App\\Movie::class, 10)->create();\n factory(App\\Rank::class, 10)->create();\n\n }", "title": "" }, { "docid": "5157c9e6f7445f30d17910d0f9167d7e", "score": "0.7806952", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // $faker = Faker;\n // factory(App\\User::class, 50)->create()->each(function ($user) {\n // factory(App\\Tema::class, 150)->create()->each(function($tema, Faker $faker){\n // $tema->user_id = $user->id;\n // $tema->nombre = $faker->title();\n // $tema->descripcion = $faker->paragraph(100);\n\n // $tema->save();\n\n // });\n // });\n\n\n factory(App\\User::class, 50)->create();\n factory(App\\Tema::class, 6)->create();\n factory(App\\Pregunta::class, 200)->create();\n factory(App\\Respuesta::class, 500)->create();\n\n }", "title": "" }, { "docid": "c888a724a89893fc16eaf9b1e5cf4dee", "score": "0.7804738", "text": "public function run()\n {\n User::truncate();\n Project::truncate();\n\n // $this->call(UsersTableSeeder::class);\n factory(User::class, 50)->create();\n factory(Project::class, 50)->create();\n }", "title": "" }, { "docid": "74e6046c336e626f913a122d01772dbf", "score": "0.7803743", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Harry Selkirk',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n ]);\n \n factory(App\\User::class, 15)->create()->each(function($u) {\n $u->posts()\n ->saveMany(factory(App\\Post::class, rand(1,10))->make())\n ->each(function($post){\n $post->tags()->saveMany(factory(App\\PostTag::class, rand(0, 5))->make());\n $post->comments()->saveMany(factory(App\\Comment::class, rand(3, 15))->make());\n });\n });\n // $this->call(UsersTableSeeder::class);\n // $this->call(PostsTableSeeder::class);\n }", "title": "" }, { "docid": "3773026723bc4e3d2f6d992aad9feeb4", "score": "0.77933013", "text": "public function run()\n {\n Book::create([\n 'id' => 1,\n 'name' => 'Rat i mir',\n 'author_id' => 1\n ]);\n\n Book::create([\n 'id' => 2,\n 'name' => 'Na Drini cuprija',\n 'author_id' => 1\n ]);\n\n Book::create([\n 'id' => 3,\n 'name' => 'Poezija',\n 'author_id' => 2\n ]);\n Book::create([\n 'id' => 4,\n 'name' => 'Bleja na brdu',\n 'author_id' => 2\n ]);\n\n Book::create([\n 'id' => 5,\n 'name' => 'Put do kuce',\n 'author_id' => 2\n ]);\n }", "title": "" }, { "docid": "8645d58ad69c417ec234c3b092223da5", "score": "0.7784692", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'Nokib',\n 'email' => '[email protected]',\n 'password' => Hash::make('admin@123'),\n ]);\n\n DB::table('settings')->insert([\n 'company_name' => 'Test Company',\n 'company_address' => 'ABC, House #5, Road #10',\n 'company_city' => 'Uttara, Dhaka',\n 'phone' => '000000000',\n 'email' => '[email protected]',\n 'invoice_prefix' => '#INV',\n ]);\n\n DB::table('customers')->insert([\n 'name' => 'Walk-in Customer',\n 'mobile' => '0000000000',\n ]);\n }", "title": "" }, { "docid": "18a4acc45dd7538fb4ee59fb3e9a3fa1", "score": "0.7784293", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // factory(User::class, 10)->create();\n // factory(Titulo::class, 25)->create();\n factory(Interes::class, 20)->create();\n }", "title": "" }, { "docid": "87a95114b3ac984335a7c632d8f42616", "score": "0.7778835", "text": "public function run()\n {\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // First, clear tables\n DB::table('users')->truncate();\n DB::table('roles')->truncate();\n DB::table('divisions')->truncate();\n DB::table('sports')->truncate();\n// DB::table('stadia')->truncate();\n// DB::table('athletes')->truncate();\n// DB::table('teams')->truncate();\n// DB::table('seasons')->truncate();\n// DB::table('championships')->truncate();\n// DB::table('matchdays')->truncate();\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(DivisionsTableSeeder::class);\n $this->call(SportsTableSeeder::class);\n\n// factory(App\\Athlete::class, 50)->create();\n// factory(App\\Stadium::class, 50)->create();\n// factory(App\\Team::class, 50)->create();\n// factory(App\\Matchday::class, 20)->create();\n }", "title": "" }, { "docid": "b2cbffda63d1ab3314805039a3f745c2", "score": "0.77745605", "text": "public function run()\n {\n // add the faker for creating the seeder\n // Truncate the table \n Article::truncate();\n \n $faker = \\Faker\\Factory::create();\n\n // loop through the \n for($i=0;$i<=100;$i++){\n // create the instance\n Article::create([\n \"title\" => $faker->sentence,\n \"body\" => $faker->paragraph\n ]);\n }\n }", "title": "" }, { "docid": "76470a80c7aaebd7837c5c0687a0a745", "score": "0.7771726", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Product::truncate();\n Category::truncate();\n Transaction::truncate();\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Product::flushEventListeners();\n Category::flushEventListeners();\n Transaction::flushEventListeners();\n\n $this->call(RoleSeeder::class);\n\n User::factory(100)->create();\n\n $productos = Product::factory(300)->create();\n Transaction::factory(200)->create();\n Category::factory(30)->create();\n\n foreach($productos as $producto){\n $producto->categories()->attach(\n rand(1,5)\n );\n } \n \n \n }", "title": "" }, { "docid": "3c4ecec7d95903372a3612473f7d28ae", "score": "0.7769814", "text": "public function run()\n {\n $this->call(RolesTableSeeder::class);\n $this->call(VideoCategorySeeder::class);\n\n $users = factory(App\\Models\\User::class, 10)->create();\n\n foreach ($users as $user) {\n $user->assign('user');\n }\n $trainingContent = factory(App\\Models\\TrainingContent::class, 100)->create();\n }", "title": "" }, { "docid": "0c36bf7d012f016fd62ff407dca131fc", "score": "0.7768416", "text": "public function run()\n {\n// $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Category::truncate();\n Post::truncate();\n Tag::truncate();\n Forum::truncate();\n\n factory(User::class)->create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n ]);\n\n factory(User::class)->create([\n 'name' => 'User',\n 'email' => '[email protected]',\n ]);\n\n factory(Category::class, 5)->create();\n factory(Post::class, 15)->create();\n factory(Tag::class, 50)->create();\n factory(Forum::class, 15)->create();\n }", "title": "" }, { "docid": "8f5b2b13145d60ef4c64e80ad859c8c0", "score": "0.77621996", "text": "public function run()\n {\n\n $this->call([\n RoleSeeder::class,\n CategoriesSeeder::class\n ]);\n\n factory(App\\User::class, 150)->create();\n factory(App\\Portfolio::class, 150)->create();\n factory(App\\Project::class, 150)->create();\n factory(App\\Transaction::class, 1000)->create();\n // factory(App\\Message::class, 100)->create();\n factory(App\\Rate::class, 1000)->create();\n\n $this->call([\n SkillsSeeder::class,\n portfolio_tagSeeder::class,\n tag_userSeeder::class,\n PortfolioImageSeeder::class,\n ProjectAttachmentSeeder::class,\n ProjectOfferSeeder::class,\n project_tagSeeder::class,\n adminUserSeeder::class\n ]);\n\n\n }", "title": "" }, { "docid": "ced000ec376a75849db5549df35c6236", "score": "0.77621984", "text": "public function run()\n {\n // Uncomment the below to wipe the table clean before populating\n DB::table('users')->delete();\n \n $users = array(\n ['id' => 1, 'name' => 'navi', 'email' => '[email protected]', 'password' => bcrypt('1234'), 'created_at' => new DateTime, 'updated_at' => new DateTime],\n ['id' => 2, 'name' => 'john', 'email' => '[email protected]', 'password' => bcrypt('1234'), 'created_at' => new DateTime, 'updated_at' => new DateTime],\n ['id' => 3, 'name' => 'tom', 'email' => '[email protected]', 'password' => bcrypt('1234'), 'created_at' => new DateTime, 'updated_at' => new DateTime],\n );\n \n // Uncomment the below to run the seeder\n DB::table('users')->insert($users);\n }", "title": "" }, { "docid": "5f854a27580e06e10dc4b25277a11e57", "score": "0.77609193", "text": "public function run()\n {\n $genres=['action','horror','drama','triler','comedy','romance'];\n foreach ($genres as $genre) {\n Genre::create(['name'=>$genre]);\n }\n $this->call(UsersTableSeeder::class);\n $this->call(MovieTableSeeder::class);\n \n\n\n }", "title": "" }, { "docid": "f5247262479a26f9216251d08dd24cf7", "score": "0.7758224", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n usuaris::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n usuaris::create([\n 'idusuari' => $faker->shuffle(array(1,2,3,4,5,6,7,8,9,10)),\n 'nom' => $faker->name,\n 'descripcio' => $faker->text($maxNbChars = 200),\n 'DataNaixement' => $faker->date,\n 'correu_electronic' => $faker->freeEmail,\n 'telefon' => $faker->phoneNumber,\n 'data_alta' => $faker->date,\n 'data_baixa' => $faker->date,\n 'rol' => $faker->word,\n 'password' => $faker->name,\n ]);\n }\n }", "title": "" }, { "docid": "a31eec437c3c359c0350e5dd29d66e98", "score": "0.7757912", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // Item::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($j=1; $j < 4; $j++) { \n for ($i = 0; $i < 10; $i++) {\n Item::create([\n 'title' => 'Item-'.$j.'.'.($i+1),\n 'description' => $faker->text,\n 'index' => $i,\n 'expire_date' => date( \"Y-m-d\", strtotime( date('Y-m-d').\" +1 day\" ) ),\n 'list_id' => $j,\n ]);\n }\n }\n }", "title": "" }, { "docid": "95d848af3bfe57106748ced287b6a3a6", "score": "0.7757277", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class, 10)->create();\n factory(Category::class, 10)->create();\n factory(Subcategory::class, 20)->create();\n factory(Country::class, 4)->create();\n factory(City::class, 20)->create();\n factory(Annonce::class, 50)->create();\n factory(Image::class, 150)->create();\n factory(Profil::class, 10)->create();\n factory(Like::class, 15)->create();\n factory(Message::class, 130)->create();\n }", "title": "" }, { "docid": "0fadad943f810e9f816dff85d7fcc82f", "score": "0.7754066", "text": "public function run()\n {\n // Truncate existing records to start from scratch.\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Room::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $faker = \\Faker\\Factory::create();\n\n // Create Rooms in our database:\n for ($i = 1; $i < 11; $i++) {\n Room::create([\n 'hotel_id' => Hotel::all()->random()->id,\n 'room_name' => $faker->text,\n 'room_type' => RoomType::all()->random()->id,\n 'image' => $faker->Image,\n ]);\n }\n }", "title": "" }, { "docid": "a52e2d935fe1a6f1552b319437199638", "score": "0.7753583", "text": "public function run()\n\t{\n\t\t//\n\t\t// Let's truncate our existing records to start from scratch.\n\t\tUserRole::truncate();\n\t\t\n\t\t$faker = \\Faker\\Factory::create();\n\t\t\n\t\t// And now, let's create a few articles in our database:\n\t\t\n\t\t$userRoles = [\n\t\t\t[\n\t\t\t\t'role' => 'admin',\n\t\t\t],\n\t\t\t[\n\t\t\t\t'role' => 'employee',\n\t\t\t]\n\t\t\n\t\t];\n\t\t\n\t\t\n\t\tforeach($userRoles as $userRole) {\n\t\t\tUserRole::create([\n\t\t\t\t'role' => $userRole['role'],\n\t\t\t]);\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "32ceb87c0b0901a9ca7b03eff203eb22", "score": "0.77495295", "text": "public function run()\n {\n $this->call(CategoriaSeed::class);\n $this->call(UbicacionesSeed::class);\n $this->call(EstadoSeed::class);\n $this->call(RolesSeed::class);\n $this->call(UsuarioSeed::class);\n factory(App\\Models\\Usuario::class, 80)->create();\n factory(App\\Models\\Producto::class, 50)->create();\n $this->call(VentaSeed::class);\n $this->call(CompraSeed::class);\n }", "title": "" }, { "docid": "5987a41e6798b6576c0d4bfd213b111b", "score": "0.7746713", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n App\\User::create([\n 'name' => 'Christian Tambo C',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456')\n ]);\n\n factory(App\\Post::class, 24)->create();\n\n App\\Camara::create([\n 'user_id' => 1,\n 'title' => 'Camara Laptop',\n 'height' => '2 metros',\n 'angle' => '100 grados',\n 'url' => '0',\n 'location' => 'Poste #1, Av.Costanera, La Paz', \n ]);\n App\\Camara::create([\n 'user_id' => 1,\n 'title' => 'Camara IP Celular',\n 'height' => 'Indefinido',\n 'angle' => 'Indefinido',\n 'url' => 'http://192.168.0.8:8080/video',\n 'location' => 'Celular de Christian Tambo', \n ]);\n \n \n\n //factory(App\\Camara::class, 10)->create();\n }", "title": "" }, { "docid": "19da69e4087929e658a5c983a8ae429a", "score": "0.7745691", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n// factory(App\\Models\\User::class)->create();\n// factory(App\\Models\\User::class)->create(['email' => '[email protected]']);\n// factory(App\\Models\\Wedding::class, 20)->create();\n// factory(App\\Models\\Vendor::class, 20)->create();\n// factory(App\\Models\\Event::class, 20)->create();\n// factory(App\\Models\\Guest::class, 20)->create();\n// factory(App\\Models\\Profession::class, 5)->create();\n factory(App\\Models\\Product::class, 50)->create();\n }", "title": "" }, { "docid": "47a9ab206264a007fe390308b63644dd", "score": "0.77454555", "text": "public function run()\n {\n App\\User::create(\n [\n 'name' => 'Sid',\n 'email' => '[email protected]',\n 'role' => 'admin',\n 'password' => bcrypt(env('TESTPASS')),\n ]\n );\n\n // vogliamo 10 utenti\n factory(App\\User::class, 9)->create();\n\n\n $users = App\\User::all();\n\n\n $categories = factory(App\\Category::class, 20)->create();\n\n $tags = factory(App\\Tag::class, 40)->create();\n\n foreach ($users as $user) {\n // per ciascun utente vogliamo 15 post\n // ciascun post vogliamo assegnarlo a una categoria random (ESISTENTE)\n $posts = factory(App\\Post::class, 15)->create(\n [\n 'user_id' => $user->id,\n 'category_id' => collect($categories)->random()->id,\n ]\n );\n\n foreach ($posts as $post) {\n // ciascun post vogliamo assegnarlo 3 tags random (ESISTENTI)\n $randomTags = collect($tags)->random(3)->pluck('id')->toArray();\n $post->tags()->sync($randomTags);\n }\n }\n }", "title": "" }, { "docid": "feb2b76432de65887f9c368e7596f7f4", "score": "0.7744374", "text": "public function run()\n {\n //DB::table('products')->truncate();\n\n $discountables = array(\n array('discount_id' => 1, 'discountable_id' => 1, 'discountable_type' => 'Product'),\n array('discount_id' => 2, 'discountable_id' => 2, 'discountable_type' => 'Product'),\n );\n\n // Uncomment the below to run the seeder\n DB::table('discountables')->insert($discountables);\n }", "title": "" }, { "docid": "53418ed70c952b849d800cfb91d5085d", "score": "0.77430356", "text": "public function run()\n {\n // Article::factory(50)->create();\n // User::factory(50)->create();\n $this->call([\n ModelcategoriesTableSeeder::class,\n ArticlesTableSeeder::class,\n ]);\n }", "title": "" }, { "docid": "a109b92af084d0529a07b66f6fd4e7aa", "score": "0.77386874", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('games')->insert([['name'=>'God of war','genero'=>'Ação', 'idade_indicativa'=>12,'preco'=> 10.0]]);\n DB::table('animes')->insert([['name'=>'Dragon Ball','genero'=>'Ação', 'idade_indicativa'=>1,'episodios' => 220]]);\n }", "title": "" }, { "docid": "ccbabc0a54dd57b26acab36bce44bc6c", "score": "0.77383316", "text": "public function run()\n {\n DB::table('schedules')->delete();\n $faker = Faker::create();\n echo \"[Seed] Table 'schedules'\\n\";\n foreach(range(1, 65) as $i) { \n Schedule::create([\n 'purpose' => $faker->word,\n 'details' => $faker->text,\n 'doctor' => Doctor::inRandomOrder()->first()->id,\n 'patient' => Patient::inRandomOrder()->first()->id,\n 'created_by' => factory(App\\Models\\User::class)->create()->id,\n 'date' => $faker->dateTimeBetween($startDate = '-6 months', $max = '+2 months'),\n 'time' => $faker->time($format = 'H:00', $max = 'now')\n ]);\n }\n }", "title": "" }, { "docid": "3380c225be4966fa530271b9caadaa76", "score": "0.77340096", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1, 100) as $index) {\n DB::table('books')->insert([\n 'title' => $faker->sentence,\n 'pages' => rand(100, 200),\n 'price' => rand(100, 200),\n 'id_user' => rand(1, 100)\n ]);\n }\n\n }", "title": "" }, { "docid": "2e2baa34c720ee452aa6d82693a693a0", "score": "0.7733996", "text": "public function run()\n {\n $seeds = [\n [ 'id' => 1, 'name' => \"Meja\", 'price'=> 20],\n [ 'id' => 2, 'name' => \"Almari\", 'price'=> 30],\n [ 'id' => 3, 'name' => \"Kerusi\", 'price'=> 40],\n [ 'id' => 4, 'name' => \"Katil\", 'price'=> 50],\n [ 'id' => 5, 'name' => \"Rak Kasut\", 'price'=> 60], \n ];\n\n foreach($seeds as $seed) {\n DB::table('products')->insert($seed);\n }\n }", "title": "" }, { "docid": "c10d49c6dcff444dde2db0bb9b0596fb", "score": "0.7730497", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n /* seed user admin */\n User::create([\n 'username' => 'admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('12345678'),\n ]);\n\n /* seed category */\n foreach (dummy::categories() as $category) {\n Category::create([\n 'name' => $category\n ]);\n }\n\n /* seed brand */\n foreach (dummy::brands() as $brand) {\n Brand::create([\n 'name' => $brand\n ]);\n }\n\n /* seed color */\n foreach (dummy::colorNames() as $color) {\n Color::create([\n 'color' => $color\n ]);\n }\n\n /* seed size */\n for ($i = 15; $i <= 50; $i++) {\n Size::create([\n 'size' => $i,\n ]);\n }\n\n factory(Customer::class, 100)->create()->each(function ($customer) {\n /* seed address */\n $address = factory(Address::class, 4)->make();\n $customer->addresses()->saveMany($address);\n /* seed order */\n $order = factory(Order::class, 5)->make();\n $customer->orders()->saveMany($order);\n /* seed review */\n $review = factory(Review::class, 10)->make();\n $customer->reviews()->saveMany($review);\n });\n\n factory(Item::class, 200)->create()->each(function ($item) {\n /* seed photo */\n $photo = factory(Photo::class, 3)->make();\n $item->photos()->saveMany($photo);\n });\n /* get all order attaching */\n $order = Order::all();\n\n /* populate the pivot table order detail */\n Item::all()->each(function ($item) use ($order) {\n $item->orders()->attach(\n $order->random(rand(1, $order->count()))->pluck('id')->toArray()\n );\n });\n /* get all color attaching */\n $color = Color::all();\n\n /* populate the pivot table order detail */\n Item::all()->each(function ($item) use ($color) {\n $item->colors()->attach(\n $color->random(rand(1, $color->count()))->pluck('id')->toArray()\n );\n });\n /* get all size attaching */\n $size = Size::all();\n\n /* populate the pivot table order detail */\n Item::all()->each(function ($item) use ($size) {\n $item->sizes()->attach(\n $size->random(rand(1, $size->count()))->pluck('id')->toArray()\n );\n });\n /* get all review attaching */\n $review = Review::all();\n\n /* populate the pivot table order detail */\n Item::all()->each(function ($item) use ($review) {\n $item->reviews()->attach(\n $review->random(rand(1, $review->count()))->pluck('id')->toArray()\n );\n });\n }", "title": "" }, { "docid": "18840cf61a94ff67d82e77efc8e99af2", "score": "0.7729479", "text": "public function run()\n {\n \t\t// $this->call(UsersTableSeeder::class);\n \t\tfactory(App\\User::class)->times(15)->create();\n\n \t\t$products = factory(App\\Product::class)->times(150)->create();\n \t\t$brands = factory(App\\Brand::class)->times(8)->create();\n \t\t$categories = factory(App\\Category::class)->times(9)->create();\n \t\t$status = factory(App\\Status::class)->times(4)->create();\n\n \t\tforeach ($products as $oneProduct) {\n \t\t\t$oneProduct->brand()->associate($brands->random(1)->first()->id);\n \t\t\t$oneProduct->category()->associate($categories->random(1)->first()->id);\n $oneProduct->status()->associate($status->random(1)->first()->id);\n \t\t\t$oneProduct->save();\n \t\t}\n }", "title": "" }, { "docid": "8617a1987579f9b1ee27802bb9a1f2c9", "score": "0.7724194", "text": "public function run()\n {\n //initialisation de faker\n $faker = \\Faker\\Factory::create();\n\n //tableau vite des categories\n $categories = [];\n\n //boucle creant 10 categories\n for ($i= 0; $i < 10; $i++) {\n $categories[] = [\n 'name' => $faker->sentence(4),\n 'slug' => $faker->slug\n ];\n }\n\n //un tableau initial de post vide\n $posts = [];\n\n //creons 100 posts en bouclant\n for ($i=0; $i < 100; $i++) {\n $timestamp = $faker->unixTime('now');\n $posts[] = [\n 'name' => $faker->sentence(3),\n 'slug' => $faker->slug,\n 'description' => $faker->text(300),\n 'created_at' => date('Y-m-d H:i:s', $timestamp),\n 'updated_at' => date('Y-m-d H:i:s', $timestamp),\n 'category_id' => rand(1, 10)\n ];\n }\n\n //on insert les categories en db\n $this->insert('categories', $categories);\n\n //on insert les posts en db\n $this->insert('posts', $posts);\n }", "title": "" }, { "docid": "5d65069c373876a3bf83601f496d2940", "score": "0.7723117", "text": "public function run()\n {\n $faker = Faker\\Factory::create('fr_FR');\n\n $seeds = [];\n for ($i = 0; $i < 10; $i++) {\n $seeds[] = [\n 'name' => $faker->sentence(rand(1, 4)),\n 'slug' => $faker->slug(4, true),\n 'content' => $faker->paragraph(5, true)\n ];\n }\n\n $this->table('test')->insert($seeds)->saveData();\n }", "title": "" }, { "docid": "1160cd1a533510c8072d65b166365884", "score": "0.77230316", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1, 20) as $index) {\n DB::table('students')->insert([\n 'name' => $faker->name,\n 'gender' => $faker->randomElement(['m', 'f']),\n 'dept_id' => $faker->randomElement([1, 2, 3, 4])\n ]);\n }\n }", "title": "" }, { "docid": "e2165f654f90d8ca7583b6d1a431e752", "score": "0.7720623", "text": "public function run()\n {\n DB::table('ex_alunos')->delete();\n\n $faker = Faker::create();\n foreach (range(1,10) as $index) {\n ExAluno::create([\n 'nome' => strtoupper($faker->name),\n 'matricula' => str_random(20),\n 'cpf' => str_random(11),\n 'email' => $faker->unique()->safeEmail,\n 'password' => bcrypt('123456'),\n 'status' => 1,\n 'sexo' => 'M',\n 'curso_id' => 1\n ]);\n }\n\n $roleAluno = Role::whereName('EX-ALUNO')->first();\n $users = ExAluno::all();\n foreach ($users as $key => $user) {\n $user->setRole($roleAluno);\n }\n }", "title": "" }, { "docid": "bf514d7274a50aace9bdc4eb0f7a37cb", "score": "0.7719297", "text": "public function run()\n {\n $faker = Factory::create('id_ID');\n\n DB::table('users')->insert([\n 'role_id' => 1,\n 'name' => 'Admin',\n 'username' => 'admin',\n 'password' => bcrypt('654321'),\n 'email' => '[email protected]',\n 'about' => 'Hello, this is admin bio',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]);\n\n DB::table('users')->insert([\n 'role_id' => 2,\n 'name' => 'Staff',\n 'username' => 'staff',\n 'password' => bcrypt('123456'),\n 'email' => '[email protected]',\n 'about' => 'Hi, this is staff bio',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]);\n }", "title": "" }, { "docid": "5256d8621255fdb25e62eaaeef3015e9", "score": "0.77190244", "text": "public function run()\n {\n User::truncate();\n Category::truncate();\n Post::truncate();\n\n User::factory()->create([\n 'name' => 'Gattsu Berserk',\n 'username' => 'gattsu',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n ]);\n\n User::factory(9)->create();\n\n Category::factory(10)->create();\n\n Post::factory(100)->create();\n }", "title": "" }, { "docid": "39303b9168b93ca252d041cc23081eba", "score": "0.77173394", "text": "public function run()\n {\n $faker = Faker::create('ru_RU');\n foreach (range(1,10) as $i) {\n DB::table('authors')->insert([\n 'name' => $faker->firstNameMale,\n 'surname' => $faker->lastName\n ]);\n }\n\n\n $genres = ['драма','боевик','детектив','фантастика','ужасы','история'];\n foreach (range(1,5) as $k => $i) {\n DB::table('genres')->insert([\n 'name' => $genres[$k]\n ]);\n }\n\n $faker = Faker::create('ru_RU');\n foreach (range(1,20) as $i) {\n DB::table('books')->insert([\n 'name' => $faker->jobTitle,\n 'author_id' => $faker->numberBetween($min = 1, $max = 10),\n 'genre_id' => $faker->numberBetween($min = 1, $max = 5),\n 'rating' => $faker->numberBetween($min = 1, $max = 10)\n ]);\n }\n }", "title": "" }, { "docid": "f9fe6e1bc501818e8c5b14df3d2d9e09", "score": "0.77165025", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $divisions = factory(\\App\\Division::class, 5)->create();\n $divisions->each(function ($division) {\n $division\n ->employees()\n ->saveMany(\n factory(App\\Employee::class, rand(1,10))->make()\n );\n });\n\n // Role comes before User seeder here.\n $this->call(RoleTableSeeder::class);\n // User seeder will use the roles above created.\n $this->call(UserTableSeeder::class);\n }", "title": "" }, { "docid": "354da75ca11e7acc09740fdcff92d8f1", "score": "0.77156013", "text": "public function run()\n {\n //Seed some initial users with roles\n $role_student = Role::where('name', 'student')->first();\n $role_teacher = Role::where('name', 'teacher')->first();\n $role_admin = Role::where('name', 'admin')->first();\n //Seed students\n $student = new User();\n $student->name = 'student Name';\n $student->email = '[email protected]';\n $student->password = bcrypt('secret');\n $student->save();\n $student->roles()->attach($role_student);\n //Seed teachers\n $teacher = new User();\n $teacher->name = 'teacher Name';\n $teacher->email = '[email protected]';\n $teacher->password = bcrypt('secret');\n $teacher->save();\n $teacher->roles()->attach($role_teacher);\n //Seed Admin\n $admin = new User();\n $admin->name = 'admin Name';\n $admin->email = '[email protected]';\n $admin->password = bcrypt('secret');\n $admin->save();\n $admin->roles()->attach($role_admin);\n }", "title": "" }, { "docid": "210e8e2e64c261d3e918c70b52d05cc6", "score": "0.7713595", "text": "public function run()\n {\n $this->call(GenreSeeder::class);\n $this->call(ContinentSeeder::class);\n $this->call(EquipeSeeder::class);\n Equipe::factory(20)->create();\n\n $joueurs = 100;\n\n $this->call(RoleSeeder::class);\n Joueur::factory($joueurs)->create(); \n\n Photo::factory($joueurs)->create();\n }", "title": "" }, { "docid": "0f6c53011f6ab5bb11b6068e6d28c755", "score": "0.77127576", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $usuarios= factory(Usuario::class, 25)->create();\n \n foreach ($usuarios as $user){\n $publicaciones= factory(Publicacion::class, rand(0,10))->create(\n ['usuario_id'=>$user->id]);\n \n }\n \n $publicaciones = Publicacion::all();\n \n \n \n foreach ($usuarios as $user){\n $hasta= rand(5,42);\n for($i=0;$i<$hasta;$i++){\n factory(Seguidor::class)->create(\n ['usuario_id'=>$user->id,\n 'publicacion_id'=>rand(1,$publicaciones->count())]); \n }\n \n }\n }", "title": "" }, { "docid": "5d8c781d991c39cee21560f8e0d34f32", "score": "0.7711816", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n User::create([\n 'name' => 'Demo of GM',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345678'),\n ]);\n\n Quote::create([\n 'body' => 'In delay there lies no plenty.',\n 'quotee' => 'William Shakespeare'\n ]);\n\n Quote::create([\n 'body' => 'Do anything but let it produce joy.',\n 'quotee' => 'Walt Whitman'\n ]);\n\n Quote::create([\n 'body' => 'Wheresoever you go, go with all your heart.',\n 'quotee' => 'Confucius'\n ]);\n\n Quote::create([\n 'body' => 'In the faces of men and women, I see God',\n 'quotee' => 'Walt Whitman'\n ]);\n\n\n }", "title": "" }, { "docid": "b989d2d24dc84c94605c874d9fc41662", "score": "0.7708211", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //factory(App\\Model\\Adress::class,3)->create();\n //factory(App\\Model\\Contact::class,9)->create();\n //factory(App\\Model\\Category::class,3)->create();\n\n //factory(App\\Model\\Product::class,30)->create();\n //factory(App\\Model\\ProductImage::class,30)->create();\n //factory(App\\Model\\store::class,1)->create();\n\n factory(App\\Model\\Review::class,100)->create();\n\n\n\n\n\n\n }", "title": "" }, { "docid": "e9c0d0e393079070634613c861afae38", "score": "0.7707709", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(CampusesTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n\n factory(\\App\\User::class, 5)->create();\n factory(\\App\\Feedback::class, 30)->create();\n factory(\\App\\Comment::class, 60)->create();\n for($i = 2; $i <= 6; $i++) {\n DB::table('user_has_roles')->insert([\n 'role_id' => 2,\n 'user_id' => $i\n ]);\n }\n }", "title": "" }, { "docid": "ad8095e515b037c12537e0e26cd96bda", "score": "0.77054197", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n Role::create([\n 'role' => 'Administrator'\n ])->users()->create([\n 'name' => 'Administrator',\n 'surname' => 'Tracking',\n 'phone' => '',\n 'address' => '',\n 'email' => '[email protected]',\n 'password' => '123456'\n ]);\n Role::create([\n 'role' => 'Client'\n ])->users()->create([\n 'name' => 'Cliente',\n 'surname' => 'Tracking',\n 'phone' => '123456789',\n 'address' => 'Calle 1, col Abc, Ciudad, Estado',\n 'email' => '[email protected]',\n 'password' => '123456'\n ]);\n Role::create([\n 'role' => 'Worker'\n ]);\n\n Status::create([\n 'status' => 'Esperando'\n ]);\n Status::create([\n 'status' => 'Reparando'\n ]);\n Status::create([\n 'status' => 'Almacenado'\n ]);\n Status::create([\n 'status' => 'Entregado'\n ]);\n Status::create([\n 'status' => 'Finalizado'\n ]);\n }", "title": "" }, { "docid": "c7fccacf518f86f03865d2d9cfdffffc", "score": "0.77052426", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n for($a=0;$a<10;$a++){\n DB::table('professionals')->insert([\n 'name' => 'TuNombre'.($a+1),\n 'lastname' => 'TuApellido'.($a+1),\n 'type' => 'Ingeniero'.($a+1),\n 'qualification' => 1\n ]);\n DB::table('services')->insert([\n 'id_professionals' => ($a+1),\n 'qualification' => 3,\n 'commentary' => 'Soy un Comentario',\n 'month' => ($a+1)\n ]);\n }\n }", "title": "" }, { "docid": "f432bb8e1f614aa638193bf7c40d8b0d", "score": "0.77018327", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $faker = Faker::create();\n $gender = $faker->randomElement(['male', 'female']);\n foreach (range(1, 15) as $index) {\n DB::table('employees')->insert([\n 'name' => $faker->name($gender),\n 'email' => $faker->email\n ]);\n }\n }", "title": "" }, { "docid": "166f652bb040d1504069bc8e0510ba95", "score": "0.7700588", "text": "public function run()\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('event_assignments')->truncate();\n\n Assignment::create([\n 'eventId' => 2,\n 'volunteerId' => 2,\n 'startingDate'\t\t => Carbon::now(),\n 'endingDate' => Carbon::now()->addWeeks(2)\n ]);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n }", "title": "" }, { "docid": "ba7c8e49633eb68c7a2b6c8ba05aa3da", "score": "0.76986605", "text": "public function run()\n {\n // $this->call(UserTableSeeder::class);\n DB::table('users')->delete();\n\n $users = array(\n ['name' => 'Saad Hassan', 'email' => '[email protected]', 'mobile' => '9560401880', 'password' => Hash::make('secret')],\n ['name' => 'Chris Sevilleja', 'email' => '[email protected]','mobile' => '9560401880', 'password' => Hash::make('secret')],\n ['name' => 'Holly Lloyd', 'email' => '[email protected]','mobile' => '9560401880', 'password' => Hash::make('secret')],\n ['name' => 'Adnan Kukic', 'email' => '[email protected]','mobile' => '9560401880', 'password' => Hash::make('secret')],\n );\n\n // Loop through each user above and create the record for them in the database\n $user = new User();\n $user->name = \"admin\";\n $user->email = \"[email protected]\";\n $user->mobile = \"9560401880\";\n $user->password = Hash::make('password');\n $user->save();\n $user->roles()->attach(1);\n\n foreach ($users as $user)\n {\n User::create($user);\n }\n }", "title": "" }, { "docid": "087fed479872a104a0fe90228724ec30", "score": "0.7697585", "text": "public function run()\n {\n \t//factory(App\\User::class, 20)->create();\n // $this->call(UsersTableSeeder::class);\n //DB::table('badgets')\n // ->insert(['libelle' => 'php']);\n\n DB::table('niveaus')->insert(['niveau' => 'facile']);\n DB::table('niveaus')->insert(['niveau' => 'difficile']);\n DB::table('niveaus')->insert(['niveau' => 'moyenne']);\n }", "title": "" }, { "docid": "b88c095e7f9f5b6ea1684fdb90bc98e7", "score": "0.7696775", "text": "public function run()\n {\n $this->call([\n //SIN LLAVES FORÁNEAS\n EscolaridadeSeeder::class,\n UserSeeder::class,\n //USA LLAVES FORÁNEAS\n ]);\n // \\App\\Models\\User::factory(10)->create();\n Beneficiario::factory(15)->create();\n Jornada::factory(15)->create();\n Notas::factory(30)->create();\n\n \n }", "title": "" }, { "docid": "36e2b8b4e2455f59a63c583df1a391a9", "score": "0.76936", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'lastname' => \"admin\",\n 'firstname' => \"admin\",\n 'group_id' => \"1\",\n 'email' => '[email protected]',\n 'password' => Hash::make('12345'),\n ]);\n DB::table('user_groups')->insert([\n 'name' => \"admin\",\n 'status' => \"1\",\n\n ]);\n DB::table('user_groups')->insert([\n 'name' => \"customer\",\n 'status' => \"0\",\n\n ]);\n DB::table('introduces')->insert([\n 'title' => 'This is introduce about my team',\n 'summary' => 'This is summary about my team',\n 'image' => 'upload/debug_team.jpg',\n 'content' => 'This is content about my team',\n 'slug' => Str::slug('This is introduce about my team', '-')\n ]);\n\n //price ticker\n DB::table('price_tickets')->insert([\n 'name' => \"Người lớn\",\n 'price' => \"60000\",\n\n ]);\n DB::table('price_tickets')->insert([\n 'name' => \"Trẻ em\",\n 'price' => \"30000\",\n\n ]);\n DB::table('price_tickets')->insert([\n 'name' => \"HS-SV\",\n 'price' => \"45000\",\n\n ]);\n }", "title": "" }, { "docid": "cc128e93e33511b2ef1ba05964e7ab76", "score": "0.7693494", "text": "public function run()\n {\n DB::table('user_tags')->delete();\n\n\t$faker = Faker\\Factory::create('fr_FR');\n\t$faker->addProvider(new Faker\\Provider\\fr_FR\\Address($faker));\n\n\t//if we want to create the SAME seed generated data every time we run, instead of \n\t//making file, just use the Faker->seed() call:\n\t$faker->seed(1234);\n\n\t$records = DB::table('users')->select('id')->get();\n\t\n\t$tag_list = array(\n\t 'anglais','allemand','espagnol'\n\t);\n\t\n\t//now, make our data array:\n\tfor ($i=0; $i < ($size = sizeof($records))*3; $i++) {\n\t $key = array_rand($tag_list);\n\t $tag = array(\n\t\t'id' => $records[$i%$size]->id,\n\t\t'info_tags' => $tag_list[$key]\n\t );\n\t $tags[] = $tag;\n\t}\n\t\n //// Uncomment the below to run the seeder\n DB::table('user_tags')->insert($tags);\n }", "title": "" }, { "docid": "adfb7b36c0f4cf9f8966236fe3c4601d", "score": "0.76932347", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('items')->insert([\n \t[\n 'name' => 'Espresso',\n 'price' => '2000',\n 'is_itemset' => '0',\n ],\n [\n 'name' => 'Blueberry Muffin',\n 'price' => '2000',\n 'is_itemset' => '0',\n ],\n [\n 'name' => 'Cafe Latte',\n 'price' => '3000',\n 'is_itemset' => '0',\n ],\n [\n 'name' => 'Extra Hot',\n 'price' => '10000',\n 'is_itemset' => '0',\n ],\n [\n 'name' => 'Upsize',\n 'price' => '5000',\n 'is_itemset' => '0',\n ],\n ]);\n }", "title": "" }, { "docid": "8581d5932c10ae369822f385e0546d32", "score": "0.76930207", "text": "public function run()\n {\n //\n $faker=Faker::create();\n for($i=0;$i<3;$i++){\n \tvendedor::create(\n \t\t[\n \t\t\t'nombre'=>$faker->name(),\n \t\t\t'apellidos'=>$faker->firstName()\n \t\t]\n \t);\n }\n }", "title": "" }, { "docid": "1289e2b6ab8584618582d08fb4dd0eef", "score": "0.76908034", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n /* ----------------------------------------------\n * Create 10 users and for each user it will create\n * 5 to 30 questions and for each question there will be\n * 3 to 15 answers\n ------------------------------------------------*/\n factory(App\\User::class, 10)->create()->each(function($u) {\n $u->questions()->saveMany(\n factory(App\\Question::class, rand(5, 30))->make()\n )\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(3, 15))->make());\n });\n });\n\n }", "title": "" }, { "docid": "931bc5da856255fe423779a30df97f7c", "score": "0.768858", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n // $this->call(ModelosTableSeeder::class);\n factory(App\\Model\\Marca::class,30)->create();\n factory(App\\Model\\Modelo::class,90)->create();\n }", "title": "" }, { "docid": "dcf670c829f2356856972e0a09d9a42f", "score": "0.7686464", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n //sedder\n //$this->call(UserSeeder::class);\n //$this->call(DirectionSeeder::class);\n //$this->call(CategorySeeder::class);\n //$this->call(BrandSeeder::class);\n\n //factory // usar el nombre de modelo\n /*Direction::factory(20)->create();\n User::factory(20)->create();\n Category::factory(6)->create();\n Brand::factory(20)->create();\n Product::factory(20)->create();\n Order::factory(20)->create();\n\n //seeder\n $this->call(Category_ProductSeeeder::class);\n $this->call(Order_ProductSeeeder::class);*/\n Brand::factory(20)->create();\n Product::factory(20)->create();\n //Category::factory(6)->create();\n $this->call(CategorySeeder::class);\n $this->call(CategoryProductSeeder::class);\n\n\n $this->call(CartSeeder::class);\n $this->call(UserSeeder::class);\n $this->call(RoleSeeder::class);\n $this->call(CartProductSeeder::class);\n\n\n }", "title": "" }, { "docid": "fd40d38e5dadc7d486cef808875889ba", "score": "0.7685538", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n //Tipo de aeronave\n $tipo = new Tipo([\n \"tipo\" => \"C440\"\n ]);\n\n $tipo->save();\n\n //Aeronave\n $aeronave = new Aeronave([\n \"matricula\" => \"PT-4888\",\n \"tipo_id\" => $tipo->id\n ]);\n\n $aeronave->save();\n \n //Aeroporto de origem\n $origem = new Aeroporto([\n \"nome\" => \"SPMG\"\n ]);\n\n $origem->save();\n\n //Aeroporto de destino\n $destino = new Aeroporto([\n \"nome\" => \"SPMS\"\n ]);\n\n $destino->save();\n\n //Voo\n $voo = new Voo([\n \"numero\" => \"TAM4855\",\n \"data\" => date('Y-m-d'),\n \"hora\" => date('H:i:s'),\n \"aeronave_id\" => $aeronave->id,\n \"origem_id\" => $origem->id,\n \"destino_id\" => $destino->id\n ]);\n\n $voo->save();\n }", "title": "" }, { "docid": "0ec7b9a91ca47201ce6aca6cac3a028b", "score": "0.76842654", "text": "public function run()\n {\n $faker = Faker::create();\n\n DB::table('demos')->delete();\n\n foreach (range(1,20) as $index)\n {\n $language = ($index % 3) == 0 ? \"Deutsch\" : (($index % 5) == 0 ? \"UK\" : \"North America\");\n // $enterpriseVersion = ($index % 3) == 0 ? \"10.4\" : \"11\";\n $enterpriseVersion = ($index % 2) == 0 ? \"11\" : \"10.4\";\n Demo::create(array(\n \"title\" => $faker->catchPhrase(),\n \"description\" => $faker->paragraph(), //$faker->realText($faker->numberBetween(10,20))\n \"enterprise_version\" => $enterpriseVersion,\n \"language\" => $language,\n \"demo_code\" => $faker->sentence(),\n \"related_content_code\" => $faker->sentence()\n ));\n }\n }", "title": "" }, { "docid": "f7bfac8aba6b6a622f4e0eec11a4d9fc", "score": "0.76830846", "text": "public function run()\n {\n //create example of content\n // factory(App\\Model\\Author::class, 5)->create()->each(function ($author) {\n // $author->posts()->save(factory(App\\Model\\Post::class)->make());\n // });\n // $this->call(UsersTableSeeder::class);\n $this->call([\n AuthorsTableSeeder::class,\n PostsTableSeeder::class,\n TagsTableSeeder::class,\n PostsTagsTableSeeder::class\n ]);\n }", "title": "" }, { "docid": "14e4182f11fd59a58db6d09e1c48f83e", "score": "0.7681982", "text": "public function run()\n {\n $seed = [\n [\n 'slug' => 'eljazera',\n 'production' => '2014',\n 'poster_id' => 1,\n 'image_id' => 1,\n 'age' => '17+',\n 'publish_date' => \\Carbon\\Carbon::now(),\n ],\n [\n 'slug' => 'alf-mabrook',\n 'production' => '2015',\n 'poster_id' => 1,\n 'image_id' => 1,\n 'age' => '13',\n 'publish_date' => \\Carbon\\Carbon::now(),\n ],\n [\n 'slug' => 'bdl-faqed',\n 'production' => '2013',\n 'poster_id' => 1,\n 'image_id' => 1,\n 'age' => '14',\n 'publish_date' => \\Carbon\\Carbon::now(),\n ]\n ];\n DB::table('movies')->insert($seed);\n }", "title": "" }, { "docid": "52c06df07ab060cd1e8468e059bdf62a", "score": "0.76781607", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('categories')->truncate();\n $categories = [\n ['id' => '1', 'category' => 'RPG'],\n ['id' => '2', 'category' => 'アクション'],\n ['id' => '3', 'category' => 'シミュレーション'],\n ['id' => '4', 'category' => 'シューティング'],\n ['id' => '5', 'category' => 'レーシング'],\n ['id' => '6', 'category' => '格闘ゲーム'],\n ['id' => '7', 'category' => 'スポーツゲーム'],\n ['id' => '8', 'category' => 'ホラー']\n ];\n\n DB::table('categories')->insert($categories);\n }", "title": "" }, { "docid": "e80c8ecd2cca8e1ca5da687fe8a40bdf", "score": "0.76775956", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n // Не смог сделать нормальный Seeder :)\n\n for($i=1;$i<200;$i++){\n DB::table('news')->insert(\n [\n 'userid' => 1,\n 'title' => Str::random(10),\n 'description' => Str::random(40),\n 'likes' => 0,\n ]\n );\n }\n }", "title": "" }, { "docid": "16b48d13aaecf8a9050093212752a42b", "score": "0.7676737", "text": "public function run()\n {\n \t//seeder de usuarios\n // $this->call(UsersTableSeeder::class);\n \t//seeder de titulares\n \t$this->call(PeopleTableSeeder::class);\n //seeder de beneficiarios\n $this->call(BeneficiariesTableSeeder::class);\n \n }", "title": "" }, { "docid": "0399fbc56b35925511720a5b0b0fa04d", "score": "0.7675503", "text": "public function run()\n {\n //\n # リセット\n DB::table('students')->delete();\n\n # 日本語設定\n // $faker = Faker\\Factory::create('ja_JP');\n $faker = Faker::create('ja_JP'); //修正版\n\n # サンプルデータの挿入\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Student::create([\n 'name' => $faker->name(),\n 'email' => $faker->email(),\n 'tel' => $faker->phoneNumber(),\n 'message' => $faker->text()\n ]);\n }\n }", "title": "" }, { "docid": "bf9877bcc45a8fe8774b6792575d99b2", "score": "0.7671322", "text": "public function run()\n {\n //Truncate entries if exist to start from scratch\n ExpensesModel::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // Create random entries for our expenses table:\n for ($i = 0; $i < 50; $i++) {\n ExpensesModel::create([\n 'description' => $faker->realText(),\n 'cost' => $faker->numberBetween(1, 10000),\n 'currency' => 'RON',\n 'date' => $faker->dateTimeBetween('-30days','now')->format('y-m-d')\n\n ]);\n }\n }", "title": "" }, { "docid": "20321412da56f09f3af5a63398db1b8c", "score": "0.76710236", "text": "public function run()\n {\n $faker = Faker::create();\n $contents = [\n 'customer',\n 'supplier',\n 'admin'\n ];\n\n foreach($contents as $content) {\n DB::table('roles')->insert([\n 'id' => $faker->uuid,\n 'name' => $content,\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\")\n ]);\n }\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2c98669cb323c6582467082f9265692a", "score": "0.0", "text": "public function create()\n {\n $categories = $this->cateService->getCategoryActive();\n\n if(empty($categories)) {\n $categories = [];\n }\n\n return view('admin.pages.product.add', compact('categories'));\n }", "title": "" } ]
[ { "docid": "2aaf2ecaef4fe756e441fbe5133d649b", "score": "0.77659076", "text": "public function create()\n {\n return view('resource::create');\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "09a06518682f649f50825ae03a5f02c5", "score": "0.74312615", "text": "public function create(Resource $resource)\n {\n \n return view('resources.create', compact('resource'));\n }", "title": "" }, { "docid": "0040811f91da2137388f5b25ff0b7003", "score": "0.74040693", "text": "public function create()\n {\n // we don't need the create method which will show a frontend of forms\n }", "title": "" }, { "docid": "eefd3a34279d87bd94753b0beae69b0d", "score": "0.7391348", "text": "public function create()\n {\n return view('humanresources::create');\n }", "title": "" }, { "docid": "59acf613824f0c3b37aa55dc50605250", "score": "0.7295752", "text": "public function create()\n {\n // Get the form options\n $options = method_exists($this, 'formOptions') ? $this->formOptions() : [];\n\n // Render create view\n return $this->content('create', $options);\n }", "title": "" }, { "docid": "9332c37244dbc51a6ec587579d9cd246", "score": "0.72882813", "text": "public function create()\n {\n //\n return view('forms.create');\n }", "title": "" }, { "docid": "97f8d4d6f5ca725cf3e66f545b385fc5", "score": "0.7287024", "text": "public function create()\n {\n return view('formation.add-form');\n }", "title": "" }, { "docid": "43b99da6b88bf413a5a649ba3a67015e", "score": "0.72783977", "text": "public function create()\n\t{\n\t\treturn view($this->views . '.form')->with('obj', $this->model);\n\t}", "title": "" }, { "docid": "43b99da6b88bf413a5a649ba3a67015e", "score": "0.72783977", "text": "public function create()\n\t{\n\t\treturn view($this->views . '.form')->with('obj', $this->model);\n\t}", "title": "" }, { "docid": "241815ede3de07346cdc5dd5223c3297", "score": "0.7277652", "text": "public function create()\n {\n return view(\"pengeluaran.form\");\n }", "title": "" }, { "docid": "3068f5b3c0dfff179b7c9ecffe939b5b", "score": "0.72379696", "text": "public function create()\n {\n $countries = Country::all();\n $roles = Role::all();\n $pageTitle = trans(config('dashboard.trans_file').'add_new');\n $submitFormRoute = route('admins.store');\n $submitFormMethod = 'post';\n return view(config('dashboard.resource_folder').$this->controllerResource.'form', compact('countries', 'roles', 'pageTitle', 'submitFormRoute', 'submitFormMethod'));\n }", "title": "" }, { "docid": "38ecc75a4d6989a8b4f4e8399b531681", "score": "0.7215714", "text": "public function create()\n {\n //\n return view('admin.forms.create');\n }", "title": "" }, { "docid": "2ba4890e70df9cc5460b64bc519b7725", "score": "0.7213451", "text": "public function actionCreate() {\n $model = new Form();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->form_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "53f6a6cabd482a9ba582ca823a9212fc", "score": "0.72079307", "text": "public function actionCreate()\n {\n $model=new Resources;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['Resources']))\n {\n $model->attributes=$_POST['Resources'];\n $model->created_at = date(\"Y-m-d H:i:s\");\n $model->modified_at = date(\"Y-m-d H:i:s\");\n if($model->is_available == \"on\"){\n $model->is_available = 1;\n }\n else{\n $model->is_available = 0;\n }\n if($model->save())\n $this->redirect(array('view','id'=>$model->resource_id));\n }\n\n $this->render('create',array(\n 'model'=>$model,\n 'from' => \"create\",\n ));\n }", "title": "" }, { "docid": "ec6c48e2a6c77e52e3dd220e9a42790d", "score": "0.72031635", "text": "public function create()\n {\n return view('RequestForms.requestforms.create');\n }", "title": "" }, { "docid": "b85c23612f97bf86113f4c24770e2c90", "score": "0.71800745", "text": "public function create()\n {\n return view('be/forms/add');\n }", "title": "" }, { "docid": "9b078c37b7def3d0aa0936448ea591e4", "score": "0.7176178", "text": "public function form()\n {\n return view('create');\n }", "title": "" }, { "docid": "abcdd6ee800f478cd20431244af3bd42", "score": "0.71643156", "text": "public function newAction()\n {\n $this->view->form = new ClientForm(null, array('edit' => true));\n }", "title": "" }, { "docid": "333b7adf43052fb5d5c8718573f770bd", "score": "0.71619326", "text": "public function create()\r\n {\r\n return view('ask::form');\r\n }", "title": "" }, { "docid": "83a47d90318500ad98cc612ab26fc702", "score": "0.71607125", "text": "public function create(){\n $resourceStatuses = ResourceStatus::orderBy('name', 'ASC')->get();\n $resourceTypes = ResourceType::orderBy('name', 'ASC')->get();\n $dependencies = Dependency::orderBy('name', 'ASC')->get();\n $resourceCategories = ResourceCategory::orderBy('name', 'ASC')->get();\n $physicalStates = PhysicalState::orderBy('name', 'ASC')->get();\n $spaces = Space::orderBy('name', 'ASC')->get();\n\n return view('admin.resources.create_edit')\n ->with('spaces', $spaces)\n ->with('resourceStatuses', $resourceStatuses)\n ->with('resourceTypes', $resourceTypes)\n ->with('dependencies', $dependencies)\n ->with('resourceCategories', $resourceCategories)\n ->with('physicalStates', $physicalStates)\n ->with('title_page', 'Crear nuevo recurso')\n ->with('menu_item', $this->menu_item);\n }", "title": "" }, { "docid": "7f194de3c5c17bb40860b2954fe66227", "score": "0.71606153", "text": "public function create()\n {\n return view('Application_Form/create');\n }", "title": "" }, { "docid": "cdccf0772168a4c3198ad8229762752f", "score": "0.7155322", "text": "public function create()\n {\n return $this->view('form');\n }", "title": "" }, { "docid": "dda7015eff0593458f7e9daeb92389f7", "score": "0.71473134", "text": "public function create()\r\n {\r\n Breadcrumb::title(trans('admin_partner.create'));\r\n return view('admin.partner.create_edit');\r\n }", "title": "" }, { "docid": "b4766fe7cffd9556005a702266efce82", "score": "0.7135474", "text": "public function create()\n {\n return view('luot-choi.form');\n }", "title": "" }, { "docid": "53163536d5d151380894ed516baf152c", "score": "0.71345985", "text": "public function actionCreate() {\n $this->render('create');\n }", "title": "" }, { "docid": "97209db276d73dfc71ffc10ef4a4037f", "score": "0.71315765", "text": "public function create()\n {\n return view('book.form');\n }", "title": "" }, { "docid": "91f24bb86cd15eed211f58196f1d86ae", "score": "0.71308476", "text": "public function create()\n {\n return view('backend.Professor.add');\n }", "title": "" }, { "docid": "c571604fd51a96c35378cece2d31fca9", "score": "0.712255", "text": "public function create()\n {\n return view('component.form');\n }", "title": "" }, { "docid": "d97704263c26734e129cdf5323ff60bc", "score": "0.7120813", "text": "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCResourcePersonBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "title": "" }, { "docid": "11be4c91a1fe4a200ba70320116d65bd", "score": "0.71170485", "text": "public function newAction()\n {\n $entity = new Form();\n $form = $this->createCreateForm($entity);\n\n return $this->render('FormBundle:Form:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "e864dc2fb3b7132697f36b0ed311645c", "score": "0.7115181", "text": "public function create()\n {\n //\n\n $modules = Module::getFormModulesArray();\n\n return view('resources.create', compact('modules'));\n }", "title": "" }, { "docid": "5d55890bc62628c68b42c85ea77e34ab", "score": "0.7111818", "text": "public function create()\n {\n //return the form\n return view('addBrand');\n }", "title": "" }, { "docid": "250053e797e8b6427e70e0bf8a821f82", "score": "0.7103223", "text": "public function create()\n {\n return view('singularForm');\n }", "title": "" }, { "docid": "4ae755f5cddde08f9f196daabb710be5", "score": "0.7102469", "text": "public function create()\n {\n return view('rest.create');\n }", "title": "" }, { "docid": "730158469e1bfb64d8c0b14e02113fed", "score": "0.7092879", "text": "public function create()\n { \n return $this->showForm();\n }", "title": "" }, { "docid": "d1aa4707a9c6ebf5c8103249dbc1a2a3", "score": "0.7087244", "text": "public function create()\n {\n $view = 'create';\n\n $active = $this->active;\n $word = $this->create_word;\n $model = null;\n $select = null;\n $columns = null;\n $actions = null;\n $item = null;\n\n return view('admin.crud.form', compact($this->compact));\n }", "title": "" }, { "docid": "30ab8989b95dcf9d797d22a8cedaf241", "score": "0.70865136", "text": "public function create()\n {\n return view ('walas.form');\n }", "title": "" }, { "docid": "e72578b08d1332567faf884e2c542543", "score": "0.70826364", "text": "public function create()\n {\n //\n return view('Hrm.create');\n }", "title": "" }, { "docid": "1d478e63e74fbe4c05b862772d019539", "score": "0.707235", "text": "public function create()\n\t{\n\t\treturn View::make('referrals.create');\n\t}", "title": "" }, { "docid": "b7d9a98626783303d6641ee55810a61c", "score": "0.70682013", "text": "public function create()\n {\n return view ('mapel.form');\n }", "title": "" }, { "docid": "ef53dfc7738110e45d9007d473bd71d5", "score": "0.70573217", "text": "public function newAction()\n {\n $user = $this->getUser();\n $entity = new Program();\n $form = $this->createCreateForm($entity);\n\n return $this->render('SifoAdminBundle:new:layout.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'user' => $user,\n ));\n }", "title": "" }, { "docid": "a3472bb62fbfd95113a02e6ab298fb16", "score": "0.705323", "text": "public function create()\n {\n return view('admin.new.create');\n }", "title": "" }, { "docid": "c69f303d7cafa0864b25b452417d3c13", "score": "0.70510703", "text": "public function create()\n\t{\n\t\treturn view('actions.create');\n\t}", "title": "" }, { "docid": "24de1eba4953f740bc6a118cfe591c83", "score": "0.70484626", "text": "public function create()\n\t{\n\t\treturn view('terapis.create');\n\t}", "title": "" }, { "docid": "620ab4a3a65ec50a3ce7567f8eb824b6", "score": "0.70416564", "text": "public function create()\n {\n return view('periode.form', ['action' => 'create']);\n }", "title": "" }, { "docid": "f6a3aae712481bebdb682e358afe1838", "score": "0.7037379", "text": "public function create()\n {\n return view('addnew');\n }", "title": "" }, { "docid": "6e681e9ac9f85217033ef4f7a3bbf71a", "score": "0.70288837", "text": "public function new()\n {\n return view('api.create');\n }", "title": "" }, { "docid": "2d5b7eca3b39b1bc57b0ee331b2b4be2", "score": "0.70182526", "text": "public function create()\n {\n return view('cr.create');\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70147324", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70147324", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "815b2bb0c304d8b5c4fe1f4daf2ceec4", "score": "0.7002844", "text": "public function newAction()\n {\n $entity = new Contratos();\n $form = $this->createForm(new ContratosType(), $entity);\n\n return $this->render('ContratosBundle:Contratos:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "352b208a6732c907e34599651886889d", "score": "0.69893515", "text": "public function newAction()\n {\n $entity = new Presupuesto();\n $entity->setFecha(new \\DateTime(\"now\"));\n $form = $this->createForm(new PresupuestoType(), $entity);\n\n return $this->render('SisafBundle:Presupuesto:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c8b3173ebb54a31ce2b94ee2bb8bfa2c", "score": "0.69823664", "text": "public function newAction()\n {\n $this->view->form = new PeliculaForm(null, array('edit' => true));\n }", "title": "" }, { "docid": "186fd4dd8e12d5f9b7757f0a686adc29", "score": "0.6978345", "text": "public function create()\n {\n //\n \n return view('students.add-record');\n }", "title": "" }, { "docid": "ed971a374ffda4f996862b4981ac44db", "score": "0.69768286", "text": "public function create() {\n\n\t\t//Pasamos los datos antiguos del form o un objeto vacio a la vista\n\t\treturn view('balance.entry.insert', [\n\t\t\t'title' \t=> 'Insertar Registro',\n\t\t\t'action' \t=> [\n\t\t\t'name' => 'insert',\n\t\t\t'value' => 'Insertar',\n\t\t\t'route' => '/entry/insert'\n\t\t\t],\n\t\t\t'concepts'\t=> Concepts::all('name', 'id'),\n\t\t\t'entry'\t=> $this->createEntry (old())\n\t\t\t]\n\t\t\t);\n\n\t}", "title": "" }, { "docid": "ac3176c7f03421a5d8485f79ce8a5af7", "score": "0.69745404", "text": "public function create()\n {\n //\n return view('admin.forms.form-produto');\n }", "title": "" }, { "docid": "b448943ed550a7fe66b7e558cb34571d", "score": "0.697418", "text": "public function create()\n {\n\t\treturn view('admin.pages.material-form-create', ['page' => 'material']);\n }", "title": "" }, { "docid": "f552f3b31ae1d146915cc557308d9ddf", "score": "0.6973076", "text": "public function create()\n {\n $controls = [\n [\n 'type' => 'text',\n 'name' => 'title',\n 'title' => 'Название',\n 'placeholder' => 'Введите название'\n ],\n ];\n\n return view('control-form.create', [\n 'title' => 'Добавить новый жанр',\n 'controls' => $controls,\n 'button_title' => 'Все жанры',\n 'button_route' => 'genre.index',\n 'route_store' => 'genre.store',\n ]);\n }", "title": "" }, { "docid": "77f3e1fd596cfdf21d9eae9a8efaa862", "score": "0.69651383", "text": "public function create()\n\t\t{\n\t\t\treturn view('kalender.create');\n\t\t}", "title": "" }, { "docid": "5de84c2126fe48e85ce132c9fbb06f89", "score": "0.69628006", "text": "public function newAction()\n {\n $entity = new Section();\n $form = $this->createForm(new SectionType(), $entity);\n\n return $this->render('OrchestraOrchestraBundle:Section:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c259b246490a579b8d14c75187100711", "score": "0.69576067", "text": "public function create()\n {\n //\n return view(env('THEME').'.form');\n }", "title": "" }, { "docid": "8ed65484ff2ee4c220e635b0137f51c9", "score": "0.69491976", "text": "public function create()\n {\n return view('show.create');\n }", "title": "" }, { "docid": "468549dd2c5b7deb7ef57808ae25eb96", "score": "0.69468784", "text": "public function newAction()\n {\n $entity = new Representation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('DevPCultBundle:Representation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "93bc20f90c626c640e22d48a58c57dc8", "score": "0.6946652", "text": "public function action_new()\n\t{\n\t\t$id = $this->request->param('id');\n\n\t\tif ($id !== null)\n\t\t{\n\t\t\t$this->redirect(Route::url('customer', array('action' => 'edit', 'id' => $id)));\n\t\t} // if\n\n\t\t$model = ORM::factory('Customer');\n\n\t\t$this->content = View::factory('customer/form', array(\n\t\t\t'title' => __('Create new customer'),\n\t\t\t'customer' => $model,\n\t\t\t'properties' => $model->get_properties(),\n\t\t\t'ajax_url' => Route::url('customer', array('action' => 'save'))\n\t\t));\n\t}", "title": "" }, { "docid": "bfc152f36ac3a238d17495dc7b11b127", "score": "0.69463605", "text": "public function create() {\n\t\t//\n\t\treturn view('matakuliah.create');\n\t}", "title": "" }, { "docid": "3646d78424385e5a1829ad7679cf8113", "score": "0.6940157", "text": "public function create()\n {\n abort_if(Gate::denies('user_access'), Response::HTTP_FORBIDDEN, '403 Forbidden');\n $forms = Form::all(['id', 'name']);\n return view('admin.form.create',[\n 'forms' => $forms\n ]);\n }", "title": "" }, { "docid": "d2dfb39011e7751d334f3b102132bcc0", "score": "0.6937871", "text": "public function create()\n {\n return view('libro.create');\n }", "title": "" }, { "docid": "f19095884fa0edb7061608c09bb71e8d", "score": "0.6934648", "text": "public function create()\n {\n return view(static::$resource::uriKey() . '.create');\n }", "title": "" }, { "docid": "c617fff7a1564553ef77993e1b2abce0", "score": "0.6932357", "text": "public function create()\n\t{\n\t\treturn View::make('pertanians.create');\n\t}", "title": "" }, { "docid": "978bcc6315cbc834f3ebe718240ae1d3", "score": "0.6928802", "text": "public function create()\n {\n return view('actions.create');\n }", "title": "" }, { "docid": "978bcc6315cbc834f3ebe718240ae1d3", "score": "0.6928802", "text": "public function create()\n {\n return view('actions.create');\n }", "title": "" }, { "docid": "a5971cddc1452c95970f26bbe6bb5e6f", "score": "0.6924157", "text": "public function create()\n\t{\n\t\treturn view('baloncestos.create');\n\t}", "title": "" }, { "docid": "5517acddff8c143f08d4836b4e8fd2e3", "score": "0.69231087", "text": "public function create()\n\t{\t\n\n\t\treturn view('karyawan.create');\n\t}", "title": "" }, { "docid": "0b29daaacb3707cc487ca300065d6c2d", "score": "0.6922709", "text": "public function create()\n {\n return view('Admin/product/form');\n }", "title": "" }, { "docid": "c4416390a701ec4941a20dc3ab095a2a", "score": "0.6919174", "text": "public function create()\n\t{\n\t\treturn view('create');\n\t}", "title": "" }, { "docid": "1d6a11dbd501ca5d140d052e376ab852", "score": "0.69172156", "text": "public function create()\n {\n //\n return view('security_form/create');\n }", "title": "" }, { "docid": "e90d65170f9bc3dd1e2b969826600c53", "score": "0.6914271", "text": "public function create()\n {\n return view('ekskul.create');\n }", "title": "" }, { "docid": "d4c80824a85a6929fc348476de3eca98", "score": "0.69134784", "text": "public function newAction()\n {\n $entity = new Faq();\n $form = $this->createCreateForm($entity);\n\n return $this->render('StalkAdminBundle:Faq:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "48be68f2d9bd5c305c8873ab5aff62d3", "score": "0.69117326", "text": "public function create()\n\t{\n\t\t//\n\n return view ('control.create');\n\t}", "title": "" }, { "docid": "e8cca05e3e15a063aab85a8139089f03", "score": "0.6910168", "text": "public function create()\n\t{\n\t\treturn View::make('actions.create');\n\t}", "title": "" }, { "docid": "9b7a38de3bb00757b81dc1254498c827", "score": "0.6908405", "text": "public function create()\n {\n //\n return view(\"admin.admin.add\");\n }", "title": "" }, { "docid": "5519441f340b7c0a79f84cf3d36493f2", "score": "0.6906029", "text": "public function create()\n {\n return view('bookshelfs.create');\n }", "title": "" }, { "docid": "f608122e33d25f55691c654ca00c5667", "score": "0.690486", "text": "public function create()\n {\n //\n view('backend.form.post');\n }", "title": "" }, { "docid": "e9b252f908807559380ec3e0133efd8e", "score": "0.69030714", "text": "public function create()\n\t{\n\t\treturn view('background.form');\n\t}", "title": "" }, { "docid": "e88b17f0dfcb8e1d7ac04c5b9f6af8f1", "score": "0.6902272", "text": "public function create()\n {\n return view('cars.form');\n }", "title": "" }, { "docid": "0bfd2732af9e7c334472e3d359a90660", "score": "0.6900851", "text": "public function newAction()\r\n {\r\n return view('new::new');\r\n }", "title": "" }, { "docid": "b0e63a1ed98c6d4fef9c0ef1f2d36a46", "score": "0.6900227", "text": "public function create()\n {\n return view('digemid::create');\n }", "title": "" }, { "docid": "a0881f7e221b4df400147e74c85c747d", "score": "0.68980205", "text": "public function create()\n {\n Return View::make(\"manufacture.add\");\n }", "title": "" }, { "docid": "500865703b94c25ca90c99ae01ee90e3", "score": "0.6896493", "text": "public function new()\n {\n $this->denyAccessUnlessGranted('ROLE_ADMIN');\n\n $form = $this->createNewForm(new Relation());\n\n return $this->render('@IntegratedContent/relation/new.html.twig', [\n 'form' => $form->createView(),\n ]);\n }", "title": "" }, { "docid": "b0dd1ae1c23ce5ea02e38a9b85427b1e", "score": "0.68961895", "text": "public function create()\n \t{\n \t\treturn view('terapiobat.create');\n \t}", "title": "" }, { "docid": "1dbd74dcb3f0ceb2fd4fb4fd641e0384", "score": "0.6895091", "text": "public function create()\n {\n return view('backend.instruktur.form');\n }", "title": "" }, { "docid": "8e97605e60c08e7be60f2ce241d8675e", "score": "0.68922514", "text": "public function create()\n {\n return view('administration.create');\n }", "title": "" }, { "docid": "e9341a1375b53713ef8760a5689b525f", "score": "0.68912005", "text": "public function create()\n {\n return view('bookself.create');\n }", "title": "" }, { "docid": "0075ba982bed082bc50bd31893c5082e", "score": "0.6890889", "text": "public function create()\n {\n //\n $BookId = Book::max('id')+1;\n $BookId = \"BOOKID-\".str_pad($BookId, 4, '0', STR_PAD_LEFT);\n\n $data = array(\n 'bookId'=>$BookId,\n 'form'=>\"create\",\n );\n return view('book.form')->with($data);\n }", "title": "" }, { "docid": "6769fe63e35d4f98abe507728065b246", "score": "0.6890337", "text": "public function create()\r\n {\r\n return view('superadmin::create');\r\n }", "title": "" }, { "docid": "b7654a4ac084aa2dc258dde927666f09", "score": "0.68886495", "text": "public function create()\n {\n return view (\"student.create\");\n }", "title": "" } ]
76bf3ebba929d0c1172aa876b30bb46e
Method called when an object has been exported with var_export() functions It allows to return an object instantiated with the values
[ { "docid": "e90f5857b227b39d4cb8848587a50310", "score": "0.0", "text": "public static function __set_state(array $array)\n {\n return parent::__set_state($array);\n }", "title": "" } ]
[ { "docid": "6ed846527f9bfc76147d940acc1e90ef", "score": "0.69235533", "text": "protected function constructExportObject()\n\t{\n\t\t//default export is \"all public fields\"\n\t\treturn (object) Arrays::getPublicPropertiesOfObject($this);\n\t}", "title": "" }, { "docid": "7ef89210e6bb949055045293efd5b153", "score": "0.6576406", "text": "function from_export($value) {\n return $value;\n }", "title": "" }, { "docid": "e619e0bc4a416c6470bc05476d88e26c", "score": "0.6463198", "text": "public function export(): stdClass;", "title": "" }, { "docid": "27a17ed62c2ef39f50a667f4f1fc6d28", "score": "0.6123597", "text": "public function exportData() {\n\t\treturn $this->constructExportObject();\n\t}", "title": "" }, { "docid": "9c31e94753e7008aabf4cab68f0c6725", "score": "0.60555947", "text": "public function toObject();", "title": "" }, { "docid": "834cfe66016553f77785d514a825a269", "score": "0.5981683", "text": "final static function get(){\n\t\t$export=array();\n\t\tforeach(self::$vars as $k=>$v)\n\t\t\t$export[$k]=$v;\n\t\treturn $export;\n\t}", "title": "" }, { "docid": "ca3cc291aa8b92067115021361c7fd24", "score": "0.5922576", "text": "public function export();", "title": "" }, { "docid": "ca3cc291aa8b92067115021361c7fd24", "score": "0.5922576", "text": "public function export();", "title": "" }, { "docid": "ca3cc291aa8b92067115021361c7fd24", "score": "0.5922576", "text": "public function export();", "title": "" }, { "docid": "ca3cc291aa8b92067115021361c7fd24", "score": "0.5922576", "text": "public function export();", "title": "" }, { "docid": "20758ef0b0e0551aa34f069b1ec3f095", "score": "0.5800945", "text": "public function export (){\n\n }", "title": "" }, { "docid": "dd1d4ae9b48336cdb94a3428d4fa2813", "score": "0.5755566", "text": "function myfn($fnname, $argv) {\n global $obj_this;\n return (object)[ 'type' => 'object', 'value' => $obj_this ];\n}", "title": "" }, { "docid": "8e1e8e9a5cef2f17b5f77fc4167d1a7a", "score": "0.5715804", "text": "function &object(object $value, string $namespace = 'default'): object\n{\n $var = new Variable\\ObjectVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}", "title": "" }, { "docid": "16aa80df06b80cc60d026bab4282b890", "score": "0.571534", "text": "public function getObj();", "title": "" }, { "docid": "49e4e3aa70247f0aeeee3c2b40dff442", "score": "0.5688761", "text": "public function export()\n {\n }", "title": "" }, { "docid": "61040cbbed6f87a0e03b46672eb43b3a", "score": "0.5682072", "text": "public function getInjectorInByVal(): object\n {\n return new class($this->data) {\n /**\n * @param array $data\n */\n public function __construct(protected array &$data) { }\n /**\n * @param mixed $value\n * @param string $type among: int str float bool binary bigint\n * @return string\n */\n public function __invoke(mixed $value, string $type = 'str'): string\n {\n if ($type === 'bigint') {\n $tag = PDOPlusPlus::getTag(prepend : 'bigint');\n $key = 'in';\n } else {\n $tag = PDOPlusPlus::getTag();\n $key = 'in_by_val';\n }\n $this->data[$key][$tag] = [\n 'value' => $value,\n 'type' => $type,\n ];\n\n return $tag;\n }\n };\n }", "title": "" }, { "docid": "b28c332234aa4ac9c687e2ed4131b520", "score": "0.5658427", "text": "function &stdClass(stdClass $value, string $namespace = 'default'): stdClass\n{\n $var = new Variable\\StdClassVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}", "title": "" }, { "docid": "9ea193373b97f4b92722dd951e547ad4", "score": "0.5602011", "text": "function returner( $value ) {\n\treturn create_function( '', 'return '.var_export( $value, true ).';');\n}", "title": "" }, { "docid": "c4aa076e22a5505e3199dd8b25a18ce5", "score": "0.56017965", "text": "public function ExportObject() {\n // Init object\n $overviewChart = new stdClass();\n \n // Set values\n $overviewChart->Types = $this->Types;\n $overviewChart->Chart = $this->Chart->ExportObject();\n \n //return result\n return $overviewChart;\n }", "title": "" }, { "docid": "6876f3b744dcd9f1edd48155ea1661e0", "score": "0.5600994", "text": "function export() {\n \t\n }", "title": "" }, { "docid": "7c83b41544d54d95964f150ac353b38e", "score": "0.55814284", "text": "public function getExportableValues() {\n\t\telgg_deprecated_notice(__METHOD__ . ' has been deprecated by toObject()', 1.9);\n\t\treturn array(\n\t\t\t'guid',\n\t\t\t'type',\n\t\t\t'subtype',\n\t\t\t'time_created',\n\t\t\t'time_updated',\n\t\t\t'container_guid',\n\t\t\t'owner_guid',\n\t\t\t'site_guid'\n\t\t);\n\t}", "title": "" }, { "docid": "d98fa3e1d2980b2dc0b6cefbf058306c", "score": "0.5576092", "text": "public function getInjectorOut(): object\n {\n return new class($this->data) {\n /**\n * @param array $data\n */\n public function __construct(protected array &$data) { }\n\n /**\n * @param string $out_tag ex:'@id'\n * @return string\n */\n public function __invoke(string $out_tag): string\n {\n $this->data['out'][$out_tag] = true;\n\n return $out_tag;\n }\n };\n }", "title": "" }, { "docid": "2493d44faa0eee813bf464db96f2b5e6", "score": "0.5525057", "text": "public function export()\n {\n \n }", "title": "" }, { "docid": "d0e24540ab2ccb2fa60ae87add1de7b8", "score": "0.5512275", "text": "public function newInstance(): object\n {\n return $this->instantiator->instantiate($this->name);\n }", "title": "" }, { "docid": "cff89b1854f034273b75afc6c6ff652f", "score": "0.54952604", "text": "public static function toObject($arg) {}", "title": "" }, { "docid": "ac22e1e958d72cb042b7a20036381cbd", "score": "0.54715216", "text": "public function getInjectorInAsRef(): object\n {\n return new class($this->data) {\n /**\n * @param array $data\n */\n public function __construct(protected array &$data) { }\n /**\n * @param mixed $value\n * @param string $type among: int str float bool binary bigint\n * @return string\n */\n public function __invoke(mixed &$value, string $type = 'str'): string\n {\n $prepend = ($type === 'bigint') ? 'bigint' : '';\n $tag = PDOPlusPlus::getTag($prepend);\n $this->data['in_as_ref'][$tag] = [\n 'value' => &$value,\n 'type' => $type,\n ];\n\n return $tag;\n }\n };\n }", "title": "" }, { "docid": "9751ae5caf1c0ff3c0f0150a15905c57", "score": "0.54161114", "text": "public function getInjectorInOut(): object\n {\n return new class($this->data) {\n /**\n * @param array $data\n */\n public function __construct(protected array &$data) { }\n\n /**\n * @param mixed $value\n * @param string $inout_tag ex: '@id'\n * @param string $type for the IN PARAMETER among: int str float bool binary bigint\n * @return string\n */\n public function __invoke(mixed $value, string $inout_tag, string $type = 'str'): string\n {\n $this->data['inout'][$inout_tag] = [\n 'value' => $value,\n 'type' => $type,\n ];\n\n return $inout_tag;\n }\n };\n }", "title": "" }, { "docid": "46c9e13e2ad265794659d36f6f2a618e", "score": "0.53759634", "text": "function _instantiateExportDeployment($context) {\n\t\t$exportDeploymentClassName = $this->getExportDeploymentClassName();\n\t\t$this->import($exportDeploymentClassName);\n\t\t$exportDeployment = new $exportDeploymentClassName($context, $this);\n\t\treturn $exportDeployment;\n\t}", "title": "" }, { "docid": "ee2a5e26c7dc4b17ef94c452ff8dfc98", "score": "0.5354756", "text": "public function getInjectorInByRef(): object\n {\n return new class($this->data) {\n /**\n * @param array $data\n */\n public function __construct(protected array &$data) { }\n /**\n * @param mixed $value\n * @param string $type among: int str float double num numeric bool binary bigint\n * @return string\n */\n public function __invoke(mixed &$value, string $type = 'str'): string\n {\n if ($type === 'bigint') {\n $tag = PDOPlusPlus::getTag(prepend : 'bigint');\n $key = 'in_as_ref';\n } else {\n $tag = PDOPlusPlus::getTag();\n $key = 'in_by_ref';\n }\n $this->data[$key][$tag] = [\n 'value' => &$value,\n 'type' => $type,\n ];\n\n return $tag;\n }\n };\n }", "title": "" }, { "docid": "c66ba731d6c504373d0c625d7a64e33d", "score": "0.5338648", "text": "function var_export ($expression, $return = false) {}", "title": "" }, { "docid": "b57357320a22be458eb4f178f3265716", "score": "0.5334929", "text": "public function exportedVars(): iterable;", "title": "" }, { "docid": "6a63ec8086f716e19627b17ffa98eb9b", "score": "0.5315758", "text": "public static function fromGlobals() {}", "title": "" }, { "docid": "b6afe370d80ee0401d41cd1455bfbad5", "score": "0.5307627", "text": "public function ExportObject() {\n // Init object\n $submission = new stdClass();\n \n // Set values\n $submission->Id = $this->Id;\n $submission->DateTime = $this->DateTime;\n $submission->GitHash = $this->GitHash;\n $submission->Categories = array();\n \n // Export each category\n foreach ($this->Categories as $category) {\n $submission->Categories[] = $category->ExportObject();\n }\n \n // return result\n return $submission;\n }", "title": "" }, { "docid": "0b1062730a3bd11dc0b667d2dcd24b9d", "score": "0.5297458", "text": "public function getInstance(): object\n {\n }", "title": "" }, { "docid": "2360fcaffee8631759376f7cbd9322dd", "score": "0.5253682", "text": "public function _CONSTRUCT()\n {\n \n }", "title": "" }, { "docid": "1dc1d6524fa076a9dd14b7a868d1d1fb", "score": "0.524598", "text": "function createGameDataObj() {\n return $GameData = new GameData();\n }", "title": "" }, { "docid": "9d91afcd8857aa1b2bb7f3f67b652833", "score": "0.5244241", "text": "public function get_export_data()\n {\n\n $l_sql = \"SELECT isys_obj_type__id, isys_obj_type__title, isys_verinice_types__title, isys_verinice_types__const \" . \"FROM isys_obj_type \" . \"INNER JOIN isys_verinice_types ON isys_obj_type__isys_verinice_types__id = isys_verinice_types__id \";\n\n return $this->retrieve($l_sql);\n\n }", "title": "" }, { "docid": "1892dcaf8e96d5c6b7de75e8d687144d", "score": "0.52275795", "text": "public function dataProviderExport()\n {\n // Regular :\n $data = [\n [\n 'test string',\n var_export('test string', true),\n ],\n [\n 75,\n var_export(75, true),\n ],\n [\n 7.5,\n var_export(7.5, true),\n ],\n [\n null,\n 'null',\n ],\n [\n true,\n 'true',\n ],\n [\n false,\n 'false',\n ],\n [\n [],\n '[]',\n ],\n ];\n // Arrays :\n $var = [\n 'key1' => 'value1',\n 'key2' => 'value2',\n ];\n $expectedResult = <<<'RESULT'\n[\n 'key1' => 'value1',\n 'key2' => 'value2',\n]\nRESULT;\n $data[] = [$var, $expectedResult];\n $var = [\n 'value1',\n 'value2',\n ];\n $expectedResult = <<<'RESULT'\n[\n 'value1',\n 'value2',\n]\nRESULT;\n $data[] = [$var, $expectedResult];\n $var = [\n 'key1' => [\n 'subkey1' => 'value2',\n ],\n 'key2' => [\n 'subkey2' => 'value3',\n ],\n ];\n $expectedResult = <<<'RESULT'\n[\n 'key1' => [\n 'subkey1' => 'value2',\n ],\n 'key2' => [\n 'subkey2' => 'value3',\n ],\n]\nRESULT;\n $data[] = [$var, $expectedResult];\n // Objects :\n $var = new \\StdClass();\n $var->testField = 'Test Value';\n $expectedResult = \"unserialize('\" . serialize($var) . \"')\";\n $data[] = [$var, $expectedResult];\n $var = function () {return 2;};\n $expectedResult = 'function () {return 2;}';\n $data[] = [$var, $expectedResult];\n return $data;\n }", "title": "" }, { "docid": "ca1218d8dc21364ed5232c5a2c77171c", "score": "0.52028173", "text": "public function export() {\n\t\treturn $this->variables;\n\t}", "title": "" }, { "docid": "4b2791b52b95bd921d6e885e5e80cb3d", "score": "0.51795346", "text": "function create()\n\t{\n\t\t$names = $this->_fields;\n\t\t$object = new StdClass;\n\t\tforeach ($names as $name)\n\t\t\t$object->$name = \"\";\n\t\treturn $object;\n\t}", "title": "" }, { "docid": "885ce96f9c999a1e826b3ce8adc3c158", "score": "0.5150348", "text": "public function construct()\n {\n return $this->object;\n }", "title": "" }, { "docid": "fc51cad83d42682b1ec94d28f01d13b8", "score": "0.5117587", "text": "public function getObject();", "title": "" }, { "docid": "fc51cad83d42682b1ec94d28f01d13b8", "score": "0.5117587", "text": "public function getObject();", "title": "" }, { "docid": "fc51cad83d42682b1ec94d28f01d13b8", "score": "0.5117587", "text": "public function getObject();", "title": "" }, { "docid": "1103acf96dbc95d29d04eeab6ced2f18", "score": "0.5115303", "text": "function data2Object($data) { \r\n\t$class_object = new hng($data); \r\n\treturn $class_object; \r\n}", "title": "" }, { "docid": "496f5698c1dab17f1ccbc51c8996c4b5", "score": "0.5112706", "text": "public function __construct(VariableExportInterface $variableExport)\n {\n $this->serialized = $variableExport->toSerialize();\n }", "title": "" }, { "docid": "a38f611678e59ed2dd347d08f882c7ac", "score": "0.51077455", "text": "public function as_object($class = TRUE, $arguments = array());", "title": "" }, { "docid": "d5dad7ce0e861b3d02c5592a6f2ccac5", "score": "0.50988156", "text": "function var_export($expression, $return = false)\n{\n}", "title": "" }, { "docid": "52f3ff3944ccef1052f7b0121eca2139", "score": "0.50935", "text": "function getObject();", "title": "" }, { "docid": "52f3ff3944ccef1052f7b0121eca2139", "score": "0.50935", "text": "function getObject();", "title": "" }, { "docid": "1c08b8bac8baea94f9805165d3687d88", "score": "0.50768065", "text": "function _construct() {}", "title": "" }, { "docid": "91b41b8c92674960046df0dd07d2364b", "score": "0.5072774", "text": "public function result() : Object;", "title": "" }, { "docid": "087660880598b978ca6e20b83b927656", "score": "0.5070715", "text": "public static function export_static() {\n\t\treturn self::getInstance()->export();\n\t}", "title": "" }, { "docid": "18d57096c7def3e22c2ef5a1275f52a1", "score": "0.5066377", "text": "function get_object(){\n\t\tswitch($this->table){\n\t\t\tcase \"vspc_images\":\n \t\t\t\t$obj = new image();\n \t\t\t\tbreak;\n\t\t\tcase \"vspc_text\":\n \t\t\t\t$obj = new text();\n \t\t\t\tbreak;\n\t\t\tcase \"vspc_columns\":\n \t\t\t\t$obj = new column();\n \t\t\t\tbreak;\n\t\t\tdefault:\n \t\t\t$obj = false;\n\t\t}\n\t\treturn $obj;\n\t}", "title": "" }, { "docid": "d778b5cbd5be6037e189f3467a683651", "score": "0.50393796", "text": "public function __construct()\r\n {\r\n $this->_internalObject = new stdClass();\r\n\t\t$a=serialize($this->_internalObject);\r\n\t\t\"echo $a<br>\";\r\n }", "title": "" }, { "docid": "32834a673565e52b9a01fc86d8e7bea0", "score": "0.50329256", "text": "function exportState() { }", "title": "" }, { "docid": "511564ee38e1646a44bab45bd79b8009", "score": "0.50177664", "text": "public static function makeThis()\n {\n global $_configuration;\n\n $thisPortal = new stdClass();\n $thisPortal->root_web = $_configuration['root_web'];\n $thisPortal->db_host = $_configuration['db_host'];\n $thisPortal->db_user = $_configuration['db_user'];\n $thisPortal->db_password = $_configuration['db_password'];\n $thisPortal->main_database = $_configuration['main_database'];\n\n return $thisPortal;\n }", "title": "" }, { "docid": "4de756da99a797b59541e15e301df24f", "score": "0.500829", "text": "abstract function exportData();", "title": "" }, { "docid": "29a9da055668860ba69d8906a9940768", "score": "0.500578", "text": "function createProduct($name,$price,$qty,$id):stdClass\n{\n$product=new stdClass();\n$product->name=$name;\n$product->price=$price;\n$product->quantity= $qty;\n$product->id=$id;\n\nreturn $product;\n}", "title": "" }, { "docid": "35b1178ffa669d563f138b243176206d", "score": "0.49989748", "text": "public static function factory()\n {\n $class = get_called_class();\n $object = new $class();\n foreach (static::getDefaults() as $field => $value) {\n $object->{$field} = $value;\n }\n return $object;\n }", "title": "" }, { "docid": "616d4f43bec48a4defe1a2e0864a34f0", "score": "0.49957725", "text": "function adminer_object() {\n include_once \"./plugins/plugin.php\";\n \n // autoloader\n foreach (glob(\"plugins/*.php\") as $filename) {\n include_once \"./$filename\";\n }\n \n // enable extra drivers just by including them\n //~ include \"./plugins/drivers/simpledb.php\";\n \n $plugins = array(\n // specify enabled plugins here\n\t\tnew AdminerDumpBz2(),\n\t\t/*\n\t\tParams\n\t\t1. DB type - \"server\" == MySQL, others are sqlite, sqlite2, pgsql, oracle, mssql, firebird, simpledb, mongo, elastic\n\t\t2. server - localhost by default\n\t\t3. login \n\t\t4. password\n\t\t5. DB name\n\t\t*/\n\t\tnew FillLoginForm(\"MySQL\",\"172.16.238.10\",\"admin\",\"admin\",\"\"),\n // new AdminerLoginIp(['127.0.0.1', '172.16.238.10', '172.16.238.12']),\n );\n \n /* It is possible to combine customization and plugins:\n class AdminerCustomization extends AdminerPlugin {\n }\n return new AdminerCustomization($plugins);\n */\n \n return new AdminerPlugin($plugins);\n}", "title": "" }, { "docid": "d2c92e2a74d103756c165181f07319e9", "score": "0.4986554", "text": "protected function get91b123d3875702532e36683116824223d37b37377003156fc244abb2a82fec9c(): \\stdClass\n {\n return new \\stdClass();\n }", "title": "" }, { "docid": "dbac046139b4ac8bb0e2c646f9494faa", "score": "0.49751663", "text": "function adminer_object() {\r\n include_once \"./plugins/plugin.php\";\r\n \r\n // autoloader\r\n foreach (glob(\"plugins/*.php\") as $filename) {\r\n include_once \"./$filename\";\r\n }\r\n \r\n $plugins = array(\r\n // specify enabled plugins here\r\n // new AdminerDumpXml,\r\n // new AdminerTinymce,\r\n // new AdminerFileUpload(\"data/\"),\r\n // new AdminerSlugify,\r\n // new AdminerTranslation,\r\n // new AdminerForeignSystem,\r\n // new AdminerLoginPasswordLess(password_hash(\"\", PASSWORD_DEFAULT)),\r\n );\r\n \r\n /* It is possible to combine customization and plugins:\r\n class AdminerCustomization extends AdminerPlugin {\r\n }\r\n return new AdminerCustomization($plugins);\r\n */\r\n class AdminerCustomization extends AdminerPlugin {\r\n function login($login, $password) {\r\n // validate user submitted credentials\r\n return true;\r\n }\r\n }\r\n return new AdminerCustomization($plugins);\r\n \r\n // return new AdminerPlugin($plugins);\r\n}", "title": "" }, { "docid": "695b1b5a5571258bd5be0f041c3f5ad4", "score": "0.49675283", "text": "public function ExportItem() {\n // Init object\n $submission = new stdClass();\n \n // Set values\n $submission->Id = $this->Id;\n $submission->DateTime = $this->DateTime;\n $submission->ImportDateTime = $this->ImportDateTime;\n $submission->User = $this->User;\n $submission->Good = $this->Good;\n $submission->Bad = $this->Bad;\n $submission->Strange = $this->Strange;\n $submission->GitHash = $this->GitHash;\n $submission->SequenceNumber = $this->SequenceNumber;\n \n // Return result\n return $submission;\n }", "title": "" }, { "docid": "1c53bbc216f9f8cb758dba4219f9abc6", "score": "0.49574453", "text": "protected function instantiateOutput()\n {\n $GLOBALS['OUT'] =& load_class('Output', 'core');\n }", "title": "" }, { "docid": "75e999ce66f358acae7bc3286c62a474", "score": "0.49497175", "text": "public function getOutputObject()\n {\n $baseObject = parent::getOutputObject();\n $baseObject->name = $this->getName();\n\n return $baseObject;\n }", "title": "" }, { "docid": "6606f3edd9ebea35831aa3e5266f75ac", "score": "0.49472803", "text": "public function asObject(): RutGenerator\n {\n $this->output = 'object';\n\n return $this;\n }", "title": "" }, { "docid": "3b888b0190aad6f0d2c3af8a47196692", "score": "0.49412116", "text": "public function init_objects() {\n $this->controller_oai = new \\Tainacan\\OAIPMHExpose\\OAIPMH_Expose();\n $this->list_sets = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Sets();\n $this->list_metadata_formats = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Metadata_Formats();\n $this->list_records = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Records();\n $this->get_record = new \\Tainacan\\OAIPMHExpose\\OAIPMH_Get_Record();\n $this->identify = new \\Tainacan\\OAIPMHExpose\\OAIPMH_Identify();\n $this->identifiers = new \\Tainacan\\OAIPMHExpose\\OAIPMH_List_Identifiers();\n }", "title": "" }, { "docid": "f5076cf98a17d80abcac75531ead78e2", "score": "0.4936784", "text": "public function ExportObject() {\n // Init object\n $submissionOverviewList = new stdClass();\n \n // Set values\n $submissionOverviewList->Categories = array();\n \n // Export each category\n foreach ($this->Categories as $category)\n {\n $submissionOverviewList->Categories[] = $category->ExportObject();\n }\n $submissionOverviewList->ViewTypes = $this->ViewTypes;\n \n $submissionOverviewList->Page = $this->Page;\n $submissionOverviewList->ItemsCount = $this->ItemsCount;\n $submissionOverviewList->PageSize = $this->PageSize;\n \n // return object\n return $submissionOverviewList;\n }", "title": "" }, { "docid": "5a7e92c43c6625448d2d70ab731cd0ce", "score": "0.49269983", "text": "public function _construct(){\n\t\treturn $this->data;\n\t}", "title": "" }, { "docid": "ece42806fc919f0ef0bd51b783300dc3", "score": "0.4922167", "text": "function __get($object){\n\n if( !class_exists($object) ){\n if( file_exists(MVC_THEME_DIR.'lib/'.$object.'.php') ){\n require_once( MVC_THEME_DIR.'lib/'.$object.'.php' );\n } elseif( file_exists(MVC_THEME_DIR.'lib/helpers/'.$object.'.php') ){\n require_once( MVC_THEME_DIR.'lib/helpers/'.$object.'.php' );\n } elseif( file_exists(MVC_THEME_DIR.'lib/optional/'.$object.'.php') ){\n require_once( MVC_THEME_DIR.'lib/optional/'.$object.'.php' ); \n } else {\n echo '<pre>';\n debug_print_backtrace();\n echo '</pre>';\n trigger_error($object. ' Does Not Exist as a Class ', E_USER_ERROR);\n }\n }\n \n $this->{$object} = new $object;\n return $this->{$object};\n }", "title": "" }, { "docid": "64d27663b64773a2d31c28305df48fe8", "score": "0.49196163", "text": "public function regularNew() {}", "title": "" }, { "docid": "b60711df028a0e0f9dca738c6b63c418", "score": "0.4918042", "text": "public function newInstance()\n {\n return $this->newInstanceArgs(func_get_args());\n }", "title": "" }, { "docid": "cb7e30de5f1e59361d87539b18dda2a1", "score": "0.49151796", "text": "public static function make(){\n// $instance = new Date();\n// self::$instance = new self;\n// __construct($day = 1, $month = 1, $year = 2018);\n return new self::$instance;\n}", "title": "" }, { "docid": "e3b7e5b5f4b0e26c14436d4d80cd16c1", "score": "0.49082682", "text": "public function providerTestExport() {\n return [\n // Array.\n [\n 'array()',\n [],\n ],\n [\n // non-associative.\n \"array(\\n 1,\\n 2,\\n 3,\\n 4,\\n)\",\n [1, 2, 3, 4],\n ],\n [\n // associative.\n \"array(\\n 'a' => 1,\\n)\",\n ['a' => 1],\n ],\n // Bool.\n [\n 'TRUE',\n TRUE,\n ],\n [\n 'FALSE',\n FALSE,\n ],\n // Strings.\n [\n \"'string'\",\n 'string',\n ],\n [\n '\"\\n\\r\\t\"',\n \"\\n\\r\\t\",\n ],\n [\n // 2 backslashes. \\\\\n \"'\\\\'\",\n '\\\\',\n ],\n [\n // Double-quote \"\n \"'\\\"'\",\n \"\\\"\",\n ],\n [\n // Single-quote '\n '\"\\'\"',\n \"'\",\n ],\n [\n // Quotes with $ symbols.\n '\"\\$settings[\\'foo\\']\"',\n '$settings[\\'foo\\']',\n ],\n // Object.\n [\n // A stdClass object.\n '(object) array()',\n new \\stdClass(),\n ],\n [\n // A not-stdClass object.\n \"Drupal\\Tests\\Component\\Utility\\StubVariableTestClass::__set_state(array(\\n))\",\n new StubVariableTestClass(),\n ],\n ];\n }", "title": "" }, { "docid": "130418f7cb2e409a53c4b649aee236c7", "score": "0.4907476", "text": "function _construct(){ }", "title": "" }, { "docid": "89a1ec31796c935005616f48072af9bf", "score": "0.4889555", "text": "protected function make_object( \\stdClass $data ) {\n\t\treturn new Purchase( $data );\n\t}", "title": "" }, { "docid": "71ffddccf1ae5db34cb290b13c299b6a", "score": "0.48822019", "text": "function postman() {\n if (!isset($GLOBALS['POSTMAN']['instance'])) {\n $ctor = $GLOBALS['POSTMAN']['constructor'];\n $GLOBALS['POSTMAN']['instance'] = call_user_func($ctor, $GLOBALS['POSTMAN']);\n }\n return $GLOBALS['POSTMAN']['instance'];\n}", "title": "" }, { "docid": "556f32c7f90119d71a9c2c73b1947ee0", "score": "0.48817694", "text": "static public function fromObj($anObj) {\n\t\t$theClassName = get_called_class();\n\t\t$o = new $theClassName();\n\t\treturn $o->setDataFrom($anObj);\n\t}", "title": "" }, { "docid": "11c02409e56f1eefffddf130fd98608a", "score": "0.48756412", "text": "public function newCObj() {}", "title": "" }, { "docid": "1d5f1e6f9812f182f10bda21861bb657", "score": "0.48624778", "text": "public function toStdClass() {\n $stdClass = new stdClass();\n $stdClass->amountInsuranceBase = $this->_amountInsuranceBase;\n $stdClass->fragile = $this->_fragile;\n $stdClass->parcelsCount = $this->_parcelsCount;\n $stdClass->serviceTypeId = $this->_serviceTypeId;\n return $stdClass;\n }", "title": "" }, { "docid": "4f0d806ef672bb7d89f9cedd8f0ee7ff", "score": "0.48621023", "text": "public function toStdClass() {\n $stdClass = new stdClass();\n $stdClass->billOfLading = $this->_billOfLading;\n $stdClass->secondaryPickingType = $this->_secondaryPickingType;\n return $stdClass;\n }", "title": "" }, { "docid": "8d396a99f0d6c9e0b501254e42fd28f6", "score": "0.48516488", "text": "public static function toObjects($arg) {}", "title": "" }, { "docid": "34eb9e75f044b2a5f743d9d6f8fd14b2", "score": "0.4845858", "text": "protected function getRealScriptUserObj() {}", "title": "" }, { "docid": "840215c371a7d3955931ee3c6668f5ba", "score": "0.48456833", "text": "public function createArtifactInstance();", "title": "" }, { "docid": "d1e8bfce55d62d765a93481b8ae39edc", "score": "0.48439077", "text": "public function toObject($value)\n {\n $this->instantiateProperty($this, $value);\n }", "title": "" }, { "docid": "96a77caccad723d1c37a54430184ce58", "score": "0.48385635", "text": "public function getInstance(): mixed;", "title": "" }, { "docid": "32f9bb686b562f8fc9391f1f1e857dad", "score": "0.48351642", "text": "public function convertToUserIntObject() {}", "title": "" }, { "docid": "e90bb503e28d22b22ef9e44ef4c30f2b", "score": "0.4834503", "text": "function FetchObj() {}", "title": "" }, { "docid": "fd2ad3898f4804751e27bde02ecbc613", "score": "0.48206833", "text": "public function instantiate() : object\n {\n require_once $this->path;\n $class = $this->validateClassName(\n $this->namespace() . '\\\\' . $this->classname()\n );\n return new $class;\n }", "title": "" }, { "docid": "2f9fe2518a38ebfa2af6372e607afc88", "score": "0.481828", "text": "function Module2Object($data)\n {\n return $this->MyMod_Data_Fields_Module_2Object($data);\n }", "title": "" }, { "docid": "7bee3a179b4ebf5744b1327f7c6f7cd3", "score": "0.48146746", "text": "function instance($obj) {\n if (is_string($obj)) {\n $obj = new $obj;\n }\n return $obj;\n}", "title": "" }, { "docid": "6095de58ba4d8fe9456dd823f82d3d82", "score": "0.48120642", "text": "public function make() {}", "title": "" }, { "docid": "b078ebe58763df35fd8ac423cdc4088b", "score": "0.48011693", "text": "function assignObject()\n\t{\n\t\tif ($this->id != 0)\n\t\t{\n\t\t\tif ($this->call_by_reference)\n\t\t\t{\n\t\t\t\t$this->object =& new ilObjAICCLearningModule($this->id, true);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->object =& new ilObjAICCLearningModule($this->id, false);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1144f0df441e0e6e54c6d5d2f9e46c3d", "score": "0.4800406", "text": "public function __construct(Export $export)\n {\n $this->export = $export;\n }", "title": "" }, { "docid": "68bc00d684aa4131447bd45b038efde4", "score": "0.47985363", "text": "public function expose()\n {\n return get_object_vars($this);\n }", "title": "" }, { "docid": "dde175d341db56dd8e5f689ed31d69fe", "score": "0.47954574", "text": "function __construct(&$vars) {\r\n }", "title": "" }, { "docid": "34c5121affbc191176b9e6af626eb312", "score": "0.47879905", "text": "function createUserDataObj() {\n return $UserData = new UserData();\n }", "title": "" }, { "docid": "d95065509cc1d0b4a6050f28f4592eed", "score": "0.47809845", "text": "function __constructor(){}", "title": "" }, { "docid": "71b36a5c5176707c6e345b26639a18c0", "score": "0.47782478", "text": "public function getNewData()\n { \n $result = new \\stdClass();\n \n return $result;\n \n }", "title": "" }, { "docid": "150cb66cf2cf5df45af657ff243aad19", "score": "0.4774104", "text": "public static function exportGlobals()\n {\n $reflection = new \\ReflectionClass('PhpXmlRpc\\PhpXmlRpc');\n foreach ($reflection->getStaticProperties() as $name => $value) {\n if (!in_array($name, array('xmlrpc_return_datetimes', 'xmlrpc_reject_invalid_values', 'xmlrpc_datetime_format',\n 'xmlrpc_int_format', 'xmlrpc_double_format', 'xmlrpc_methodname_format', 'xmlrpc_silence_deprecations'))) {\n $GLOBALS[$name] = $value;\n }\n }\n\n // NB: all the variables exported into the global namespace below here do NOT guarantee 100% compatibility,\n // as they are NOT reimported back during calls to importGlobals()\n\n $reflection = new \\ReflectionClass('PhpXmlRpc\\Value');\n foreach ($reflection->getStaticProperties() as $name => $value) {\n if (!in_array($name, array('logger', 'charsetEncoder'))) {\n $GLOBALS[$name] = $value;\n }\n }\n\n /// @todo mke it possible to inject the XMLParser and Charset, as we do in other classes\n\n $parser = new Helper\\XMLParser();\n $GLOBALS['xmlrpc_valid_parents'] = $parser->xmlrpc_valid_parents;\n\n $charset = Charset::instance();\n $GLOBALS['xml_iso88591_Entities'] = $charset->getEntities('iso88591');\n }", "title": "" } ]
32341fa1a414fa9acb7c4b315137abb6
/ To driver based report list using date
[ { "docid": "b477cf59d9dce2d03246db39e6e631c9", "score": "0.0", "text": "public function report_chart(Request $data) {\n\t\t$data_all = $data->all();\n\t\t$rules = array(\n\t\t\t'language' => 'required',\n\t\t\t'driver_id' => 'required',\n\t\t\t'token' => 'required',\n\t\t\t'search_date' => 'required',\n\t\t);\n\t\t$errors = $result = array();\n\n\t\t$validator = app('validator')->make($data->all(), $rules);\n\n\t\tif ($validator->fails()) {\n\t\t\tforeach ($validator->errors()->messages() as $key => $value) {\n\t\t\t\t$errors[] = is_array($value) ? implode(',', $value) : $value;\n\t\t\t}\n\t\t\t$errors = implode(\", \\n \", $errors);\n\t\t\t$result = array(\"response\" => array(\"httpCode\" => 400, \"Message\" => $errors, \"Error\" => trans(\"messages.Error List\")));\n\t\t} else {\n\t\t\ttry {\n\t\t\t\t$check_auth = JWTAuth::toUser($data_all['token']);\n\t\t\t\t$language_id = $data_all['language'];\n\t\t\t\t$search_date = $data_all['search_date'];\n\t\t\t\t/* count of orders for delivered status*/\n\t\t\t\t$delivered_status = DB::table('orders')\n\t\t\t\t\t->select('orders.id')\n\t\t\t\t\t->Join('driver_orders', 'driver_orders.order_id', '=', 'orders.id')\n\t\t\t\t\t->where('driver_orders.driver_id', '=', $data_all['driver_id'])\n\t\t\t\t\t->where('orders.order_status', '=', 12)\n\t\t\t\t\t->where('orders.created_date', '>', $search_date . ' 00:00:00')\n\t\t\t\t\t->where('orders.created_date', '<', $search_date . ' 23:59:59')\n\n\t\t\t\t\t->count();\n\t\t\t\t// ->orderBy('orders.id', 'desc')\n\t\t\t\t// ->groupBy('orders.id')\n\t\t\t\t$dispatched_status = DB::table('orders')\n\t\t\t\t\t->select('orders.id')\n\t\t\t\t\t->Join('driver_orders', 'driver_orders.order_id', '=', 'orders.id')\n\t\t\t\t\t->where('driver_orders.driver_id', '=', $data_all['driver_id'])\n\t\t\t\t\t->where('orders.order_status', '=', 19)\n\t\t\t\t\t->where('orders.created_date', '>', $search_date . ' 00:00:00')\n\t\t\t\t\t->where('orders.created_date', '<', $search_date . ' 23:59:59')\n\n\t\t\t\t\t->count();\n\n\t\t\t\t$result = array(\"response\" => array(\"httpCode\" => 200, \"Message\" => trans(\"messages.Driver report\"), 'delivered_status_count' => $delivered_status, 'dispatched_status_count' => $dispatched_status));\n\t\t\t} catch (JWTException $e) {\n\t\t\t\t$result = array(\"response\" => array(\"httpCode\" => 400, \"Message\" => trans(\"messages.Kindly check the user credentials\")));\n\t\t\t} catch (TokenExpiredException $e) {\n\t\t\t\t$result = array(\"response\" => array(\"httpCode\" => 400, \"Message\" => trans(\"messages.Kindly check the user credentials\")));\n\t\t\t}\n\t\t}\n\t\treturn json_encode($result, JSON_UNESCAPED_UNICODE);\n\t}", "title": "" } ]
[ { "docid": "413fb8c60799a79bcf0aab778db413fc", "score": "0.63490313", "text": "public function dailyReport(){\n\t\t$this->checkYesterdayReport();\n\t\t$this->todayReport();\n\t}", "title": "" }, { "docid": "849ac94400ad6376b0cc58bd3a062329", "score": "0.613628", "text": "public function report(\\DateTime $date);", "title": "" }, { "docid": "70aa9dcfbb9f778e38bb01a47c7f7765", "score": "0.6126483", "text": "private function driverActivityReport($delivery_date)\n\t{\n\n\t\t// always get the scheduled and created just get the last 2 data\n\t\t$schedData = SchedTool::select('id','driver_id','delivery_number','status','farm_sched_unique_id','delivery_unique_id','start_time','end_time',DB::raw('farm_title as text'))\n\t\t\t\t\t\t\t\t//->where('driver_id','=',$driver_id)\n\t\t\t\t\t\t\t\t->where('delivery_date','=',$delivery_date)\n\t\t\t\t\t\t\t\t//->whereIn('status',['scheduled','delivered','created'])\n\t\t\t\t\t\t\t\t->orderBy('start_time','asc')\n\t\t\t\t\t\t\t\t->get()->toArray();\n\n\t\t$data = array();\n\t\t$exclude = array();\n\n\t\tif($schedData != NULL){\n\t\t\tfor($i=0; $i < count($schedData); $i++){\n\n\t\t\t\t$next_delivery_start_time = \"--:--\";\n\t\t\t\t$farms_delivery_hours = $this->farmsDeliveryHours($schedData[$i]['farm_sched_unique_id']);\n\t\t\t\t$farms_delivery_hours = str_replace(\"hours\",\"h\",$farms_delivery_hours);\n\t\t\t\t$farms_delivery_hours = str_replace(\" h\",\"h\",$farms_delivery_hours);\n\t\t\t\t$farms_delivery_hours = str_replace(\"minutes\",\"m\",$farms_delivery_hours);\n\t\t\t\t$farms_delivery_hours = str_replace(\" m\",\"m\",$farms_delivery_hours);\n\n\t\t\t\t$exclude[] = array($schedData[$i]['id']);\n\t\t\t\t// next delivery for driver\n\t\t\t\t$next_delivery_start_time_query = SchedTool::where('driver_id',$schedData[$i]['driver_id'])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->whereNotIn('id',$exclude)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('delivery_date','=',$delivery_date)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->orderBy('start_time','asc')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->value('start_time');\n\n\t\t\t\tif($next_delivery_start_time_query != NULL){\n\t\t\t\t\t$next_delivery_start_time = date(\"g:i a\",strtotime($next_delivery_start_time_query));\n\t\t\t\t}\n\n\t\t\t\t$actual_time_back = \"--:--\"; // get the end time on feeds_driver_stats_delivery_time\n\t\t\t\t$end_time_driver_stats = DB::table('feeds_driver_stats_delivery_time')->select('end_time')->where('deliveries_unique_id',$schedData[$i]['delivery_unique_id'])->orderBy('id','desc')->first();\n\t\t\t\tif($end_time_driver_stats != NULL){\n\t\t\t\t\t//$actual_time_back = $end_time_driver_stats->end_time;\n\t\t\t\t\tif($end_time_driver_stats->end_time != \"0000-00-00 00:00:00\"){\n\t\t\t\t\t\t$actual_time_back = date(\"g:i a\",strtotime($end_time_driver_stats->end_time));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$data[] = array(\n\t\t\t\t\t'driver_name'\t\t\t\t=> \tUser::where('id',$schedData[$i]['driver_id'])->value('username'),\n\t\t\t\t\t'start_time'\t\t\t\t=>\tdate(\"g:i a\",strtotime($schedData[$i]['start_time'])),\n\t\t\t\t\t'farm'\t\t\t\t\t\t\t=>\t$schedData[$i]['text'],\n\t\t\t\t\t'run_time'\t\t\t\t\t=>\t$farms_delivery_hours, //get the feeds_farm_schedule farm id's and get the sum of farms delivery time\n\t\t\t\t\t'return_time'\t\t\t\t=>\t$next_delivery_start_time, // next delivery\n\t\t\t\t\t'actual_time_back'\t=>\t$actual_time_back //end time\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn $data;\n\n\t\t// start time = start time\n\t\t// truck = driver name\n\t\t// farm delivery = text\n\t\t// run time = farm delivery delivery time\n\t\t// return time = next delivery\n\t\t// actual time back = arive time at mill\n\n\t}", "title": "" }, { "docid": "616cb042ee0ef76a145d6071cd491c9a", "score": "0.61162025", "text": "function daily_report($date_for_daily){\n\n $datepick_temp = $date_for_daily;\n $datepick = date(\"Y-m-d\", strtotime($datepick_temp));\n $date_part = explode(\"-\", $datepick_temp);\n $year = intval($date_part[0]);\n $month = intval($date_part[1]);\n $day = intval($date_part[2]);\n\n $arr = array('daily' => array());\n $arr['daily']= array(\n 'voice' => $this->dailySqlQuery($year, $month, $day, 'voice'),\n 'web' => $this->dailySqlQuery($year, $month, $day, 'web'),\n 'gcashminiprogram' => $this->dailySqlQuery($year, $month, $day, 'gcashminiprogram'),\n 'mobile_app' => $this->dailySqlQuery($year, $month, $day, 'mobile_app'),\n 'ctc' => $this->dailySqlQuery($year, $month, $day, 'ctc'),\n 'fbchatbot' => $this->dailySqlQuery($year, $month, $day, 'fbchatbot')\n );\n array_push($arr, $this->getOverAll($arr));\n $this->get_csv_report_daily($arr,$month,$year);\n \n\n return $arr;\n }", "title": "" }, { "docid": "f5c80c9e96190937c9541bcfdf898a35", "score": "0.6094896", "text": "public function retrieve_dateWise_DueReports($from_date, $to_date, $links, $per_page, $page)\n {\n $CI = &get_instance();\n $CI->load->model('Reports');\n $CI->load->model('Web_settings');\n $CI->load->library('occational');\n $sales_report = $CI->Reports->retrieve_dateWise_DueReports($from_date, $to_date, $per_page, $page);\n $sales_amount = 0;\n if (!empty($sales_report)) {\n $i = 0;\n foreach ($sales_report as $k => $v) {\n $i++;\n $sales_report[$k]['sl'] = $i;\n $sales_report[$k]['sales_date'] = $CI->occational->dateConvert($sales_report[$k]['date']);\n $sales_amount = $sales_amount + $sales_report[$k]['total_amount'];\n }\n }\n $currency_details = $CI->Web_settings->retrieve_setting_editdata();\n $company_info = $CI->Reports->retrieve_company();\n $data = array(\n 'title' => display('due_report'),\n 'sales_amount' => $sales_amount,\n 'sales_report' => $sales_report,\n 'company_info' => $company_info,\n 'from_date' => $from_date,\n 'to_date' => $to_date,\n 'currency' => $currency_details[0]['currency'],\n 'position' => $currency_details[0]['currency_position'],\n 'links' => $links,\n 'software_info' => $currency_details,\n 'company' => $company_info,\n );\n $reportList = $CI->parser->parse('report/due_report', $data, true);\n return $reportList;\n }", "title": "" }, { "docid": "27aca2bdf9d3be576b4134be6eac3f2d", "score": "0.60241264", "text": "function getReport() ;", "title": "" }, { "docid": "c7ea1ba13802195bfc3f7356338856da", "score": "0.60113716", "text": "function get_list_of_date_orno($sy_id_from,$sy_id_to,$date_from,$date_to,$collector_id=0) {\n\t\t$cmd = \"SELECT date,orno,$this->tblname.student_id,first_name,middle_name,last_name,sum(payment) AS payment,$this->tblname.user_id,fullname,\"\n\t\t\t. \" FROM $this->tblname,tblstudentinfo,tblauth\"\n\t\t\t. \" WHERE (sy_id BETWEEN $sy_id_from AND $sy_id_to)\"\n\t\t\t. \" AND $this->tblname.student_id=tblstudentinfo.student_id\"\n\t\t\t. \" AND $this->tblname.user_id=tblauth.user_id\"\n\t\t\t. ($date_from>0 ? \" AND date>='$date_from'\" : \"\")\n\t\t\t. ($date_to>0 ? \" AND date<='$date_to'\" : \"\")\n\t\t\t. ($collector_id>0 ? \" AND $this->tblname.user_id=$collector_id\" : \"\")\n\t\t\t. \" GROUP BY date,orno,$this->tblname.student_id\"\n\t\t\t. \" ORDER BY date,orno,$this->tblname.student_id\";\n\t\treturn $this->query( $cmd );\n\t}", "title": "" }, { "docid": "7dec1b92f8666dc0fa75868aad46db64", "score": "0.6010222", "text": "private function date_wise_manager_dailyreportlist(){\n $user_id = $this->_request['user_id'];\n $date =$this->_request['date'];\n \n if(empty($user_id) || empty($date))\n {\n \n $result['status'] = '0';\n $result['message']=\"Invalid data provided!\";\n $this->response($this->json($result), 200);\n }\n $num= mysql_query(\"select * from tbl_departmentemploy where EmployID='\".$user_id.\"'\");\n $row = mysql_fetch_assoc($num);\n $department_id = $row['DepartmentID'];\n $sql=mysql_query('select R.*, U.username, U.id , D.department_name from daily_reports R, users U , tbl_department D where R.department_id=\"'.$department_id.'\" and DATE_FORMAT(R.created_at ,\"%Y-%m-%d\") =\"'.$date.'\" and R.user_id=U.id and R.department_id=D.id', $this->db)or die(mysql_error());\n $result = array();\n $i=0;\n if(mysql_num_rows($sql) == 0){\n \n $result['status'] = '0';\n $result['message']=\"Not found\";\n $this->response($this->json($result), 200);\n }\n else\n {\n while ($rlt = mysql_fetch_array($sql, MYSQL_ASSOC)){\n \n $result[$i]['username'] = $rlt['username'];\n $result[$i]['UserID'] = $rlt['user_id'];\n $result[$i]['ReportID'] = $rlt['report_id'];\n $result[$i]['DepartmentID'] = $rlt['department_id'];\n $result[$i]['DepartmentName']=$rlt['department_name'];\n $result[$i]['Attachment'] = $rlt['attachment_file'];\n $result[$i]['Report'] = stripslashes($rlt['text_report']);\n $result[$i]['created_at'] = $rlt['created_at'];\n $result[$i]['comment'] = $rlt['comment'];\n $i++; \n \n }\n\n $this->response($this->json(array('message'=>'data found','status'=>'1','data'=>$result)), 200);\n }\n\n\n }", "title": "" }, { "docid": "fdc98ed1977fc8a3f19202fdde76cae6", "score": "0.6006936", "text": "public function getAllDate()\n {\n $tanggal = new \\Andriynto\\Ebri\\Libs\\IndonesiaDate();\n $dates = [];\n $query = DB::table($this->table)\n ->select('date_report')\n ->groupBy('date_report')\n ->orderBy('date_report', 'desc')\n ->get();\n foreach($query as $date)\n {\n $dates[$date->date_report] = $tanggal->tgl_indo($date->date_report);\n }\n\n return $dates;\n }", "title": "" }, { "docid": "3c9842bea382031437953f2941e61f95", "score": "0.59953314", "text": "public function generateReport($sender, $param)\r\n\t{\r\n\t\t// Change to list view\r\n\t\t$this->views->ActiveViewIndex = 1;\r\n\t\t// Retrieve data from data base query aql\r\n\t\t$reportDao = $this->Application->Modules['daos']->getDao('ReportsDao');\r\n\t\t$start = $this->dateFrom->TimeStamp;\r\n\t\t$end = $this->dateTo->TimeStamp;\r\n\r\n\t\t// Bind query data to TRepeater\r\n\t\t$this->activityList->DataSource = \r\n\t\t\t$reportDao->getCurrentActs($this->Session['project'], $start, $end);\r\n\t\t$this->activityList->dataBind();\t\t\r\n\t}", "title": "" }, { "docid": "887773cecf42acdbe5ebec2761499c1c", "score": "0.59830314", "text": "public function retrieve_dateWise_PurchaseReports($start_date, $end_date, $links, $per_page, $page) {\n $CI = & get_instance();\n $CI->load->model('Reports');\n $CI->load->model('Web_settings');\n $CI->load->library('occational');\n $purchase_report = $CI->Reports->retrieve_dateWise_PurchaseReports($start_date, $end_date, $per_page, $page);\n $purchase_amount = 0;\n if (!empty($purchase_report)) {\n $i = 0;\n foreach ($purchase_report as $k => $v) {\n $i++;\n $purchase_report[$k]['sl'] = $i;\n $purchase_report[$k]['prchse_date'] = $CI->occational->dateConvert($purchase_report[$k]['purchase_date']);\n $purchase_amount = $purchase_amount + $purchase_report[$k]['grand_total_amount'];\n }\n }\n $currency_details = $CI->Web_settings->retrieve_setting_editdata();\n $company_info = $CI->Reports->retrieve_company();\n $data = array(\n 'title' => display('purchase_report'),\n 'purchase_amount' => number_format($purchase_amount,2),\n 'purchase_report' => $purchase_report,\n 'company_info' => $company_info,\n 'from_date' => $start_date,\n 'to_date' => $end_date,\n 'currency' => $currency_details[0]['currency'],\n 'position' => $currency_details[0]['currency_position'],\n 'links' => $links,\n 'software_info' => $currency_details,\n 'company' => $company_info,\n );\n $reportList = $CI->parser->parse('report/purchase_report', $data, true);\n return $reportList;\n }", "title": "" }, { "docid": "cad83e55f186db3f6fb5bff414ee02d7", "score": "0.5970854", "text": "public function generateReport();", "title": "" }, { "docid": "ae4663d04e14002bca49f49bd0abd050", "score": "0.5939409", "text": "public function reportVraUtilisasiAction()\n {\n\t\t$this->view->period = date(\"Y\", strtotime($this->_period));\n $this->_listAction();\n }", "title": "" }, { "docid": "16961f32429f8e8609d7e2b1831b61ed", "score": "0.5934748", "text": "private function date_wise_employee_dailyreport_list(){\n $user_id = $this->_request['user_id'];\n $date =$this->_request['date'];\n \n if(empty($user_id) || empty($date))\n {\n \n $result['status'] = '0';\n $result['message']=\"Invalid data provided!\";\n $this->response($this->json($result), 200);\n }\n // $num= mysql_query(\"select * from tbl_departmentemploy where EmployID='\".$user_id.\"'\");\n // $row = mysql_fetch_assoc($num);\n // $department_id = $row['DepartmentID'];\n $sql=mysql_query('select R.*, U.username, U.id , D.department_name from daily_reports R, users U , tbl_department D where R.user_id=\"'.$user_id.'\" and DATE_FORMAT(R.created_at ,\"%Y-%m-%d\") =\"'.$date.'\" and R.user_id=U.id and R.department_id=D.id order by R.created_at DESC', $this->db)or die(mysql_error());\n $result = array();\n $i=0;\n if(mysql_num_rows($sql) == 0){\n \n $result['status'] = '0';\n $result['message']=\"Not found\";\n $this->response($this->json($result), 200);\n }\n else\n {\n while ($rlt = mysql_fetch_array($sql, MYSQL_ASSOC)){\n \n $result[$i]['username'] = $rlt['username'];\n $result[$i]['UserID'] = $rlt['user_id'];\n $result[$i]['ReportID'] = $rlt['report_id'];\n $result[$i]['DepartmentID'] = $rlt['department_id'];\n $result[$i]['DepartmentName']=$rlt['department_name'];\n $result[$i]['Attachment'] = $rlt['attachment_file'];\n $result[$i]['comment'] = $rlt['comment'];\n $result[$i]['created_at'] = $rlt['created_at'];\n $result[$i]['Report'] = stripslashes($rlt['text_report']);\n $i++; \n \n }\n\n $this->response($this->json(array('message'=>'data found','status'=>'1','data'=>$result)), 200);\n }\n\n\n }", "title": "" }, { "docid": "7b75dcbb5bb58e8ea1d6a8a2ff8dfa56", "score": "0.59292984", "text": "public function todayReport(){\n\t\t// today\t\t\n\t\t$momentOfWeek = date('N') - 1;\n\t\t$today = strtotime(date('d-m-Y'));\n\t\t$yesterday = $today - 60*60*24;\n\t\t$tomorrow = $today + 60*60*24;\n\n\t\t$rec = $this->selectRec($momentOfWeek);\n\t\t$done = $this->selectDone($momentOfWeek);\n\t\techo \"----------------------------------------------------------------------------------------------------<br/>\";\n\t\techo 'TACHES DU JOUR';\n\t\techo '<pre>';\n\t\tprint_r($rec);\n\t\techo '</pre>';\n\t\techo \"----------------------------------------------------------------------------------------------------<br/>\";\n\t\techo 'TACHES VALIDES DU JOUR';\n\t\techo '<pre>';\n\t\tprint_r($done);\n\t\techo '</pre>';\n\n\t\t$report = $this->sortChore($rec, $done, true);\n\n\t\t$dailyReport = \"(\".implode('), (', $report).\")\";\n\t\t// On insert dans la bdd\n\t\techo \"----------------------------------------------------------------------------------------------------<br/>\";\n\t\techo 'REPORT DU JOUR (insert)';\n\t\techo '<pre>';\n\t\tprint_r($report);\n\t\techo '</pre>';\n\t\t$this->insert(\"INSERT INTO api_DailyReport (idChild, idChoreRec, today, day, moment, done) VALUES $dailyReport\");\n\t}", "title": "" }, { "docid": "c8498c1cf8ef7e09cb7dfc39082bbf26", "score": "0.59235984", "text": "public function driverActivityReportAPI($delivery_date)\n\t{\n\n\t\t// always get the scheduled and created just get the last 2 data\n\t\t$schedData = SchedTool::select('id','driver_id','delivery_number','status','farm_sched_unique_id','delivery_unique_id','start_time','end_time',DB::raw('farm_title as text'))\n\t\t\t\t\t\t\t\t//->where('driver_id','=',$driver_id)\n\t\t\t\t\t\t\t\t->where('delivery_date','=',$delivery_date)\n\t\t\t\t\t\t\t\t//->whereIn('status',['scheduled','delivered','created'])\n\t\t\t\t\t\t\t\t->orderBy('start_time','asc')\n\t\t\t\t\t\t\t\t->get()->toArray();\n\n\t\t$data = array();\n\t\t$exclude = array();\n\n\t\tif($schedData != NULL){\n\t\t\tfor($i=0; $i < count($schedData); $i++){\n\n\t\t\t\t$next_delivery_start_time = \"--:--\";\n\t\t\t\t$farms_delivery_hours = $this->farmsDeliveryHours($schedData[$i]['farm_sched_unique_id']);\n\t\t\t\t$farms_delivery_hours = str_replace(\"hours\",\"h\",$farms_delivery_hours);\n\t\t\t\t$farms_delivery_hours = str_replace(\" h\",\"h\",$farms_delivery_hours);\n\t\t\t\t$farms_delivery_hours = str_replace(\"minutes\",\"m\",$farms_delivery_hours);\n\t\t\t\t$farms_delivery_hours = str_replace(\" m\",\"m\",$farms_delivery_hours);\n\n\t\t\t\t$exclude[] = array($schedData[$i]['id']);\n\t\t\t\t// next delivery for driver\n\t\t\t\t$next_delivery_start_time_query = SchedTool::where('driver_id',$schedData[$i]['driver_id'])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->whereNotIn('id',$exclude)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('delivery_date','=',$delivery_date)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->orderBy('start_time','asc')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->value('start_time');\n\n\t\t\t\tif($next_delivery_start_time_query != NULL){\n\t\t\t\t\t$next_delivery_start_time = date(\"g:i a\",strtotime($next_delivery_start_time_query));\n\t\t\t\t}\n\n\t\t\t\t$actual_time_back = \"--:--\"; // get the end time on feeds_driver_stats_delivery_time\n\t\t\t\t$end_time_driver_stats = DB::table('feeds_driver_stats_delivery_time')->select('end_time')->where('deliveries_unique_id',$schedData[$i]['delivery_unique_id'])->orderBy('id','desc')->first();\n\t\t\t\tif($end_time_driver_stats != NULL){\n\t\t\t\t\t//$actual_time_back = $end_time_driver_stats->end_time;\n\t\t\t\t\tif($end_time_driver_stats->end_time != \"0000-00-00 00:00:00\"){\n\t\t\t\t\t\t$actual_time_back = date(\"g:i a\",strtotime($end_time_driver_stats->end_time));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$data[] = array(\n\t\t\t\t\t'driver_name'\t\t\t\t=> \tUser::where('id',$schedData[$i]['driver_id'])->value('username'),\n\t\t\t\t\t'start_time'\t\t\t\t=>\tdate(\"g:i a\",strtotime($schedData[$i]['start_time'])),\n\t\t\t\t\t'farm'\t\t\t\t\t\t\t=>\t$schedData[$i]['text'],\n\t\t\t\t\t'run_time'\t\t\t\t\t=>\t$farms_delivery_hours, //get the feeds_farm_schedule farm id's and get the sum of farms delivery time\n\t\t\t\t\t'return_time'\t\t\t\t=>\t$next_delivery_start_time, // next delivery\n\t\t\t\t\t'actual_time_back'\t=>\t$actual_time_back //end time\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tdd($data);\n\t\treturn $data;\n\n\t\t// start time = start time\n\t\t// truck = driver name\n\t\t// farm delivery = text\n\t\t// run time = farm delivery delivery time\n\t\t// return time = next delivery\n\t\t// actual time back = arive time at mill\n\n\t}", "title": "" }, { "docid": "e2a41357ea45f49afcf7a898b8bb5255", "score": "0.59212196", "text": "public function Generate_Report()\n\t{\n\t\t//\n\t\t// criteria start_date YYYYMMDD\n\t\t// criteria end_date YYYYMMDD\n\t\t// company_id\n\t\t//\n\n\t\ttry\n\t\t{\n\t\t\t$this->search_query = new Status_History_Report_Query($this->server);\n\n\t\t\t$data = new stdClass();\n\n\t\t\t// Save the report criteria\n\t\t\t$data->search_criteria = array(\n\t\t\t 'start_date_MM' => $this->request->start_date_month,\n\t\t\t 'start_date_DD' => $this->request->start_date_day,\n\t\t\t 'start_date_YYYY' => $this->request->start_date_year,\n\t\t\t 'company_id' => $this->request->company_id,\n\t\t\t 'status_type' => $this->request->status_type\n\t\t\t);\n\n\t\t\t$_SESSION['reports']['status_history']['report_data'] = new stdClass();\n\t\t\t$_SESSION['reports']['status_history']['report_data']->search_criteria = $data->search_criteria;\n\t\t\t$_SESSION['reports']['status_history']['url_data'] = array('name' => 'Status History', 'link' => '/?module=reporting&mode=status_history');\n\n\t\t\t// Start date\n\t\t\t$start_date_YYYY = $this->request->start_date_year;\n\t\t\t$start_date_MM\t = $this->request->start_date_month;\n\t\t\t$start_date_DD\t = $this->request->start_date_day;\n\t\t\tif(!checkdate($start_date_MM, $start_date_DD, $start_date_YYYY))\n\t\t\t{\n\t\t\t\t//return with no data\n\t\t\t\t$data->search_message = \"Start Date invalid or not specified.\";\n\t\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$start_date_YYYYMMDD = 10000 * $start_date_YYYY\t+ 100 * $start_date_MM + $start_date_DD;\n\n\n\t\t\t$data->search_results = $this->search_query->Fetch_Status_History_Data( $start_date_YYYYMMDD,\n\t\t\t\t $this->request->status_type,\n\t\t\t\t $this->request->company_id);\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$data->search_message = \"Unable to execute report. Reporting server may be unavailable.\";\n\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\treturn;\n\t\t}\n\n\t\t// we need to prevent client from displaying too large of a result set, otherwise\n\t\t// the PHP memory limit could be exceeded;\n\t\tif(!empty($data->search_results) && count($data->search_results) > $this->max_display_rows)\n\t\t{\n\t\t\t$data->search_message = \"Your report would have more than \" . $this->max_display_rows . \" lines to display. Please narrow the date range.\";\n\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Sort if necessary\n\t\t$data = $this->Sort_Data($data);\n\n\t\tECash::getTransport()->Add_Levels(\"report_results\");\n\t\tECash::getTransport()->Set_Data($data);\n\t\t$_SESSION['reports']['status_history']['report_data'] = $data;\n\t}", "title": "" }, { "docid": "f7d18ba1e839ce8ea6cd7447be05e581", "score": "0.5887619", "text": "public function testReportListNoDate()\n {\n // Do Request\n $this->_request('GET', '/api/1.5.0/report-list', ['token' => '1234'])\n ->_result(['error' => 'no-date']);\n }", "title": "" }, { "docid": "b2aae0fac293030ed084f94b3ef59687", "score": "0.5866273", "text": "public function getDateReported();", "title": "" }, { "docid": "81af64f83759056fb81f91899852678e", "score": "0.5853729", "text": "public function getReportByUsers(){\n\t\t$employerID = Auth::user()->id;\n\t\t\n\t \n\t\t$eArray = '';\n\t\t$empName= array();\n\t\t$empArr = DB::table(\"employees\")->where(\"employer_id\",$employerID)->get();\n\t\tforeach($empArr as $key=>$val){\n\t\t\t$eArray .= $val->id.\",\";\n\t\t\t$empName[$val->id] = $val->name.\" \".$val->surname;\n\t\t}\n\t\t$eArray = rtrim($eArray,\",\");\n\t\t$selectedDate = isset($_GET['selected_date'])&&!empty($_GET['selected_date'])?$_GET['selected_date']:date('Y-m-d');\n\t\t\n\t\t$reportStartDate = isset($_GET['reportStartDate'])&&!empty($_GET['reportStartDate'])?$_GET['reportStartDate']:'';\n\t\t$reportEndDate = isset($_GET['reportEndDate'])&&!empty($_GET['reportEndDate'])?$_GET['reportEndDate']:'';\n\t\t $query = \"SELECT * FROM reports WHERE employee_id in($eArray)\";\n\t\t\t $querySet = $query;\n\t\tif(!empty($reportEndDate) && !empty($reportStartDate)){\n\t\t\t$querySet .= \" AND created_at >='\" . $reportStartDate.\" 00:00:00\" . \"' AND created_at <='\".$reportEndDate.\" 23:59:59'\";\n\t\t} \n\t\tif($selectedDate!=''){\n\t\t\t$querySet .= \" AND created_at::text LIKE '\" . $selectedDate . \"%'\";\t\n\t\t}\n\t \n\t\t$day_report = DB::select($querySet);\n\t\t \n \t \t //$day_report = DB::select($query . \" AND created_at::text LIKE '2018-02-21%'\");\n\t \n \t$day_hours = 0;\n\t\t$daySeconds = 0;\n\t\tforeach($day_report as $key=>$report)\n \t{\n\t\t \n\t\t $day_report[$key]->empName = $empName[$report->employee_id] ;\n \t\t/*$clock_in_time = date_create( $report->clock_in_time );\n\t\t\t$clock_out_time = date_create( $report->clock_out_time );\n\t\t\t$diff = date_diff($clock_in_time, $clock_out_time);\n\t \t$hours = $diff->format('%h');*/\n\t\t\t$seconds = strtotime($report->clock_out_time) - strtotime($report->clock_in_time);\n\t\t \t$daySeconds = (int)$daySeconds+ (int)$seconds;\n \t}\n\t\t \n\t\t$day_hours = (int)($daySeconds / 60 / 60);\n\n\t\t$week_report = DB::select($query . \" AND created_at >= '\" . date('Y-m-d', strtotime('-7 days')) . \" 00:00:00' AND created_at <= '\" . date('Y-m-d') . \" 23:59:59'\");\n \t$week_hours = 0;\n\t\t$weekSeconds = 0;\n \tforeach($week_report as $report)\n \t{\n \t\t/*$clock_in_time = date_create( $report->clock_in_time );\n\t\t\t$clock_out_time = date_create( $report->clock_out_time );\n\t\t\t$diff = date_diff($clock_in_time, $clock_out_time);\n\t \t$hours = $diff->format('%h');*/\n\t\t\t$seconds = strtotime($report->clock_out_time) - strtotime($report->clock_in_time);\n\t\t\t$weekSeconds = (int)$weekSeconds+ (int)$seconds;\n\t\t}\n\t\t$week_hours = (int)($weekSeconds / 60 / 60);\n\n \t$month_report = DB::select($query . \" AND created_at >= '\" . date('Y-m-d', strtotime('-1 month')) . \" 00:00:00' AND created_at <= '\" . date('Y-m-d') . \" 23:59:59'\");\n \t$month_hours = 0;\n\t\t$monthSeconds =0;\n \tforeach($month_report as $report)\n \t{\n \t\t/*$clock_in_time = date_create( $report->clock_in_time );\n\t\t\t$clock_out_time = date_create( $report->clock_out_time );\n\t\t\t$diff = date_diff($clock_in_time, $clock_out_time);\n\t \t$hours = $diff->format('%h');*/\n\t\t\t$seconds = strtotime($report->clock_out_time) - strtotime($report->clock_in_time);\n\t\t \t\n\t\t\t$monthSeconds = (int)$monthSeconds + (int)$seconds;\n \t}\n\t\t\t$month_hours = (int)($monthSeconds / 60 / 60);\n\t \n \t$year_report = DB::select($query . \" AND created_at >= '\" . date('Y-m-d', strtotime('-1 year')) . \" 00:00:00' AND created_at <= '\" . date('Y-m-d') . \" 23:59:59'\");\n \t$year_hours = 0;\n\t\t$yearSeconds =0;\n \tforeach($year_report as $report)\n \t{\n \t\t/*$clock_in_time = date_create( $report->clock_in_time );\n\t\t\t$clock_out_time = date_create( $report->clock_out_time );\n\t\t\t$diff = date_diff($clock_in_time, $clock_out_time);\n\t \t$hours = $diff->format('%h');*/\n\t\t\t\t$seconds = strtotime($report->clock_out_time) - strtotime($report->clock_in_time);\n\t\t \t$yearSeconds = (int)$yearSeconds+ (int)$seconds;\n \t}\n\t\t\t$year_hours = (int)($yearSeconds / 60 / 60);\n\t \n \t$response['data']['todaySlotsRecords'] = count($day_report);\n \t$response['data']['todaySlots'] = $day_report;\n \t$response['data']['day_hours'] = $day_hours;\n \t$response['data']['week_hours'] = $week_hours;\n \t$response['data']['month_hours'] = $month_hours;\n \t$response['data']['year_hours'] = $year_hours;\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "ef13e8a28775e7f4b6b897002784753c", "score": "0.5852811", "text": "function get_reports() {\n\t$date = insert_daterange();\n\textract($date);\n\t$current_user = wp_get_current_user();\n\t$args = array(\t'category' => 'session',\n\t\t\t\t\t'range' => array('from' => $from , 'to' => $to ),\n\t\t\t\t\t'userID' => $current_user->ID \n\t\t\t\t\t);\n\t$sets = get_session_results( $args );\n\t$range=time_diff($from,$to);// default session display range 2 weeks one month avg\t\n\t$sessions[] = array();\n\tforeach( $sets as $set ) {\t\t//re-arrange container\n\t\t$sessions[$set->sessionID]['start_date'] = $set->start_date;\n\t\t$sessions[$set->sessionID]['start_time'] = $set->start_time;\n\t\t$sessions[$set->sessionID][] = $set;\t\n\t}\t\t\n\t\techo $current_user->user_firstname,' ',$current_user->user_lastname,'<br />';\n\t\t?>\n\t\t<table class=\"boomb-session\" id=\"full_report_range\">\n\t\t\t<tr class=\"header\">\n\t\t\t\t<th /> <th /><th>Sport</th> <th>Duration<br /><font size=\"1\"> h:m:s </font></th> <th>Distance<br /><font size=\"1\">km</font></th> <th>Location</th> <th>Difficulty<br /><font size=\"1\"> % </th> <th>Status</th> \n\t\t\t</tr>\n\t\t\t<tr class=\"month-divider\">\n\t\t\t\t<th colspan=\"7\"><h3><?php echo date( 'F Y',strtotime( $from ) ); ?> </h3></th> \n\t\t\t</tr>\n\t\t<?php\n\t//iterate through daterange, format and output matching set\n\tfor ( $day = 0; $day <= $range; $day += 1 ) {\n\t\t//insert Month name between rollover\n\t\tif( $day != 0 && date('d',strtotime($from)+( 60*60*24*$day ) ) == '01' ):\n\t\t\techo '<tr class=\"month-divider\"><th colspan=\"7\"><h3>',\n\t\t\tdate('F Y',strtotime($from)+( 60*60*24*$day ) ),'</h3></th></tr>';\n\t\tendif;//insert Month name between rollover\n\t\t//iterate through array & output results rows\n\t\tforeach( $sessions as $sessionID => $session ) {\n\t\t\tif( strstr( $session['start_date'] , date('D d-M-Y',strtotime($from)+( 60*60*24*$day ) ) ) ):\n\t\t\t?>\n\t\t\t<tr class=\"divider\"><th colspan=\"7\"><hr /></th></tr>\n\t\t\t<tr class=\"session\" href=\"<?php echo bloginfo('wpurl') , '/wp-admin/admin-ajax.php\"'; ?>\" >\n\t\t\t\t<td class=\"date\">\n\t\t\t\t<input type=\"hidden\" name=\"sessionID\" value=\"<?php echo $sessionID; ?>\" />\n\t\t\t\t<input type=\"hidden\" name=\"category\" value=\"session\" />\n\t\t\t\t<?php echo date( 'l d', strtotime($from)+( 60*60*24*$day ) ),' - ',date('a',$session->start_time); ?>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t<?php\n\t\t\t\tforeach ( $session as $key => $set ) {\n\t\t\t\t\tif ( $key === 'start_date' || $key === 'start_time' ) :\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tendif;\n\t\t\t\t\t?>\n\t\t\t \t\t<tr class=\"set\">\n\t\t\t\t\t\t<td />\n\t\t\t\t\t\t<td class=\"sport\" style=\"white-space:normal;\"><?php echo $set->sport ?></td>\n\t\t\t\t\t\t<td class=\"duration\"><?php echo itr($set->duration,'zero_time') ?></td>\n\t\t\t\t\t\t<td class=\"distance\"><?php echo itr($set->distance,'zero') ?></td>\n\t\t\t\t\t\t<td class=\"setting\" style=\"white-space:normal;\"><?php echo $set->setting ?></td>\n\t\t\t\t\t\t<td class=\"difficulty\"><?php echo itr($set->difficulty,'zero') ?></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<?php\n\t\t\t\t}\n\t\t\tendif;\n\t\t}\n\t}\n\t?> \n\t</table>\n\t<?php\n}", "title": "" }, { "docid": "f7f58e207cedca85f9e427bec36cadd7", "score": "0.5842382", "text": "function printLinksByDate(){\n\t\t$files = scandir(\"cache\");\n\t\t$dates=[];\n\t\tforeach($files as $f){\n\t\t\tif(!preg_match('/(2[0-9]{3}_[0-9]{2}).html$/', $f, $m)) continue;\n\t\t\t$dates[ $m[1] ]=1;\n\t\t}\n\t\tkrsort($dates);\n\t\tforeach($dates as $dt=>$x){\n\t\t\t$prettyName = $this->filename2title($dt);\n\t\t\techo \"<a href='\".API_URL.\"?action=report-html-$dt'>$prettyName</a><BR>\";\n\t\t}\n\t}", "title": "" }, { "docid": "9a4c791b3357d216294b11f25162e589", "score": "0.5841168", "text": "public function getAllByDateAsc();", "title": "" }, { "docid": "d7b958c89086246b10ea64e1f05671d4", "score": "0.58407754", "text": "public function getReportList()\n {\n // Fetch reports\n $query = <<<SQL\nSELECT r.*, rh.mapid, rh.round_end AS `timestamp`, s.name AS `server`, mi.name AS `mapname`,\n (SELECT COUNT(id) FROM battlespy_message WHERE `reportid` = r.id) AS `count`\nFROM battlespy_report AS r\n LEFT JOIN round_history AS rh ON r.roundid = rh.id\n LEFT JOIN server AS s ON r.serverid = s.id\n LEFT JOIN mapinfo AS mi ON rh.mapid = mi.id\nSQL;\n $result = $this->pdo->query($query);\n $reports = [];\n\n // Add date format\n while ($report = $result->fetch())\n {\n $i = (int)$report['timestamp'];\n $report['date'] = date('F jS, Y g:i A T', $i);\n $reports[] = $report;\n }\n\n return $reports;\n }", "title": "" }, { "docid": "dbf20b0911314914e1f0cef7b3d90bac", "score": "0.58370984", "text": "function Logs_Dates_Table()\n {\n $n=1;\n $table=array();\n\n $totals=array();\n\n $cdate=0;\n foreach ($this->Logs_Dates_Get() as $date)\n {\n if (empty($date)) { continue; }\n \n array_push\n (\n $table,\n $this->Logs_Date_Row($date,$n,$totals)\n );\n \n if ($this->Logs_Date_Current_Is($date))\n {\n $cdate=$date;\n }\n\n $n++;\n }\n\n array_push\n (\n $table,\n array($this->HR(array(\"WIDTH\" => '100%'))),\n $this->Logs_Dates_Table_Total_Row($totals)\n );\n \n if (!empty($cdate))\n {\n array_push\n (\n $table,\n $this->Logs_Date_Table($cdate,$n)\n );\n }\n \n\n return $table;\n \n }", "title": "" }, { "docid": "bfee744f5cac88031a66af19042abd7a", "score": "0.5836482", "text": "function cl_export_to_file_by_date($file_name, $table, $cl_id, $begin_date, $end_date)\n{\n\t$tmp_filename = tempnam('.', '');\n\t$tmp_handle = fopen($tmp_filename, 'wb');\n\n\t// create data file\n\texec(\"echo -n > $file_name\");\n\n\t// read data one date at a time so we don't exceed memory limit\n\tfor ($i = $begin_date; $i <= $end_date; $i = date(util::DATE, strtotime(\"$i +1 day\")))\n\t{\n\t\t$data = db::select(\"select * from $table where client=$cl_id && data_date='$i'\");\n\n\t\t$data_out = '';\n\t\tforeach ($data as $d) $data_out .= implode(\"\\t\", $d).\"\\n\";\n\n\t\t// write to tmp file and concatenate to standardized report\n\t\tftruncate($tmp_handle, 0);\n\t\tfseek($tmp_handle, 0);\n\t\tfwrite($tmp_handle, $data_out);\n\t\texec('cat '.$tmp_filename.' >> '.$file_name);\n\t}\n\tunlink($tmp_filename);\n\n\t// add newline to end of report\n\texec('echo >> '.$file_name);\n}", "title": "" }, { "docid": "544d63af49f1aa3f3f99ffcd302031aa", "score": "0.58311695", "text": "public function getReports();", "title": "" }, { "docid": "69031113ad2668cefe9515a54e71cf1e", "score": "0.5817734", "text": "public function general_report($datefrom, $dateto){\n\n // $output = DB::select(\"select * from journal_entry_lines where date_posted BETWEEN Date('.$datefrom.') AND Date('.$dateto.')\");\n\n //$output = DB::table('journal_entry_lines') -> whereDate([['date_posted', '>', $datefrom], ['date_posted', '<', $dateto]])->get();\n\n $output = DB::table('journal_entry_lines') -> whereBetween('date_posted', [Date($datefrom), Date($dateto)])->get();\n\n $pdf = App::make('dompdf.wrapper');\n\n $pdf -> loadView('journalentry.general_report_pdf', compact('output'));\n\n return $pdf->stream();\n\n\n }", "title": "" }, { "docid": "dc1db0e3e1ea89aca3599b259bfa2785", "score": "0.5813702", "text": "public function getClientReports()\n { \n $client = User::find(Session::get('viewing_client'));\n\n if($client === null)\n {\n return null;\n }\n else\n { \n $reports = Report::latest('updated_at')->GetClientReports($client->id)->get();\n\n $reportlist = array();\n foreach($reports as $report)\n { \n if($report->created_at->isToday())\n {\n $created_at = date('h:ia', strtotime($report->created_at));\n }\n else\n {\n $created_at = date('F d, Y', strtotime($report->created_at));\n }\n\n if($report->updated_at->isToday())\n {\n $updated_at = date('h:ia', strtotime($report->updated_at));\n }\n else\n {\n $updated_at = date('F d, Y', strtotime($report->updated_at));\n }\n\n $reportlist[] = ['id'=>$report->id,\n 'updated_at'=>$updated_at,\n 'status'=>$report->status,\n 'created_at'=>$created_at];\n \n }\n\n if(count($reportlist) < 1)\n {\n return null;\n }\n else\n {\n return $reportlist;\n }\n \n }\n }", "title": "" }, { "docid": "1f585ce6262560b1df60a297652d6fca", "score": "0.58057994", "text": "function Logs_Date_Table($date)\n {\n $where=$this->Logs_Sql_Where($date);\n\n $items=$this->Sql_Select_Hashes($where);\n\n $html=\n $this->H\n (\n 2,\n \"Date \".$this->MyTime_Sort2Date($date).\n \": \".\n count($items).\" Log Entries\"\n ).\n \n $this->MyMod_Items_Group_Table_Html\n (\n 0,\n $items\n );\n \n return array(\"\",$html);\n \n }", "title": "" }, { "docid": "84f872ba03f5d35f3f0606f63929517a", "score": "0.5803895", "text": "public function printreport()\n {\n $this->load->library('export'); \n $condition = array();\n $condition['search_from'] = $_GET['fromdate'];\n $condition['search_to'] = $_GET['todate'];\n if($condition['search_from']=='' || $condition['search_to']=='')\n {\n $heading = array(\"No Record Found\");\n $new_array_for_excel = array (\n \"0\" => array ('')\n );\n $this->export->to_excel($heading, $new_array_for_excel, 'User_Report_'.date('d-m-Y-H-i-s'));\n exit;\n }\n $records_array = $this->reports->get_search($condition, 0, 0, 0); \n $heading = array(\"User Name\",\"Date\", \"Time\", \"Action\");\n $i=0;\n $records_multi_array = array();\n foreach($records_array as $records_obj)\n {\n if(isset($records_obj->StartEndDate) && $records_obj->StartEndDate!='')\n {\n $StartEndDate = explode(\"!!==!!\",$records_obj->StartEndDate);\n $BillingFrom = $StartEndDate[0];\n $BillingTo = $StartEndDate[1];\n }else\n {\n $BillingFrom = \"\";\n $BillingTo = \"\";\n }\n $records_multi_array[$i]['username'] = $records_obj['username'];\n $records_multi_array[$i]['logindate'] = $records_obj['login_date'];\n $records_multi_array[$i]['time'] = $records_obj['time']; \n $records_multi_array[$i]['action'] = $records_obj['action']; \n $i++;\n }\n\n $this->export->to_excel($heading, $records_multi_array, 'User_Report_'.date('d-m-Y-H-i-s')); \n }", "title": "" }, { "docid": "abfc0ed53e987e6d67a102b2aaefec18", "score": "0.5793563", "text": "public function exportPaymentsList()\n {\n $payment_date = Request::get('payment_date_submit');\n\n Excel::create('Pagos', function ($excel) use ($payment_date)\n {\n\n $excel->sheet('Pagos diarios', function ($sheet) use ($payment_date)\n {\n $sheet->fromArray($this->userRepository->reportPaymentsByDay($payment_date), null, 'A1', true);\n\n });\n\n\n })->export('xls');\n\n }", "title": "" }, { "docid": "4163d482c2814209054f80a3cd1c8f2d", "score": "0.578166", "text": "public static function get_reports()\n {\n }", "title": "" }, { "docid": "3ba5b92481ed9ae482925ac6f0f2341a", "score": "0.57767147", "text": "function get_list_report() { \n $now = date('Y-m-d');\n \n $this->db->select('e.tsched_date, dd.uprof_full_name, cc.uacc_id,group_concat(aa.tclass_name SEPARATOR \",\") as kelas'\n );\n $this->db->group_by('month(e.tsched_date), dd.uprof_full_name');\n \n $this->db->where('e.tsched_date >=', $now);\n \n $this->db->from('fis_dtraining_schedules e');\n $this->db->join('fis_dtraining_classes aa','aa.tclass_id = e.tsched_tclass_fk');\n $this->db->join('fis_duser_accounts cc','cc.uacc_id = aa.tclass_tentor_fk');\n $this->db->join('fis_duser_profiles dd','dd.uprof_uacc_fk = cc.uacc_id');\n \n $query = $this->db->get(); \n \n return $query->result_array();\n \n }", "title": "" }, { "docid": "59c062538260453da92a3ae73aeee0fc", "score": "0.57684594", "text": "public function getReport() {}", "title": "" }, { "docid": "59c062538260453da92a3ae73aeee0fc", "score": "0.57684594", "text": "public function getReport() {}", "title": "" }, { "docid": "5228a6658eeccffc3d9f27083c2f3b88", "score": "0.57654965", "text": "public function index(): void {\n\n $from = Request::getParam(\"from\", date(\"Y-m-01\"));\n $to = Request::getParam(\"to\", date(\"Y-m-t\"));\n $month = Request::getParam(\"month\", date(\"Y-m\"));\n\n // Render view\n View::render(\"reports\",compact(\n [ \"from\", \"to\",\"month\"]));\n }", "title": "" }, { "docid": "65dcdec1b4b289e7a316ae1ba3fe94c0", "score": "0.5763224", "text": "function _sr_customers_chart(){\r\r\n\t$date_min = strtotime( wwex_report_charts_start_date() );\r\r\n\t$date_max = time();\r\r\n\t\r\r\n\t$results = _sr_query_customer_results(array($date_min, $date_max));\r\r\n\t\r\r\n\t$formated_results = _sr_customer_format_results( $results );\r\r\n\treturn $formated_results;\r\r\n}", "title": "" }, { "docid": "4dbf378a87ceeff17ace12bd54b0e309", "score": "0.57576746", "text": "function report_export() {\n \tif($this->active_report->isNew()) {\n $this->httpError(HTTP_ERR_NOT_FOUND);\n } // if\n \n if(!$this->active_report->canView($this->logged_user)) {\n $this->httpError(HTTP_ERR_FORBIDDEN);\n } // if\n \n download_contents(array_to_csv(TimeReports::executeReportForExport($this->logged_user, $this->active_report, $this->active_project)), 'text/csv', \"time-report.csv\", true);\n }", "title": "" }, { "docid": "bfdd45b0d90ce5509cd318f3162ca87b", "score": "0.5749639", "text": "function getPresetDatesList()\n {\n $txt = new Text($this->language, \"module_isic_report\");\n $str = array();\n for ($i = 0; $i <= 4; $i++) {\n $str[$i] = $txt->display(\"preset_dates\" . $i);\n }\n return $str;\n }", "title": "" }, { "docid": "293c168453a2ff5d3d8762fa0408f4a5", "score": "0.5744767", "text": "private function request_report($acc, $dates) {\n $groupBy = $this->is_traffic_soruce() ? 'trafficSourceId' : 'affiliateNetworkId';\n $query = 'include=ALL&groupBy='.$groupBy.'&conversionTimeMode=CONVERSION&sort=revenue&direction=DESC';\n $base_url = $this->domain_api . \"/report?\";\n $url = $base_url . $query . $dates;\n $to_month_url = $base_url . $query;\n $report = [];\n if (!empty($acc['workspaces'])) {\n $report['ws'] = [];\n $workspaces = array_map('trim', explode(',', $acc['workspaces']));\n foreach ($workspaces as $workspace) {\n $workspace = array_map('trim', explode(':', $workspace));\n $workspace_name = $workspace[0];\n $workspace_id = isset($workspace[1]) ? $workspace[1] : $workspace[0];\n $result = $this->query_report($url . '&workspaces=' . $workspace_id);\n\n if ($this->is_dashboard()) {\n\n $report['ws'][$workspace_id] = $result->totals;\n //var_dump($report['ws'][$workspace_id]);\n if (!$report['ws'][$workspace_id])\n continue;\n\n $report['ws'][$workspace_id]->month_profit = $this->get_month_profit($to_month_url . '&workspaces=' . $workspace_id);\n } else if ($this->is_network()) {\n\n $data = new \\stdClass();\n //$data->networks =$result->rows;\n $data->networks = $this->get_data_month_profit($to_month_url . '&workspaces=' . $workspace_id, $result->rows);\n\n $report['ws'][$workspace_id] = $data;\n //$data->profit = $this->set_network_profit($data->networks);\n } else if ($this->is_traffic_soruce()) {\n\n //var_dump($result->rows);\n\n $data = new \\stdClass();\n //$data->networks =$result->rows;\n\n $data->traffic = $this->get_data_month_profit($to_month_url . '&workspaces=' . $workspace_id, $result->rows);\n\n $report['ws'][$workspace_id] = $data;\n\n //$data->profit = $this->set_network_profit($data->networks);\n }\n $report['ws'][$workspace_id]->name = $workspace_name;\n $report['ws'][$workspace_id]->id = substr(md5($workspace_name), 0, 4);\n }\n }\n return $report;\n }", "title": "" }, { "docid": "12317e475b417f4a130a02f280b9ff14", "score": "0.5733089", "text": "public function reportCapexAction()\n {\n\t\t$this->view->period = date(\"Y\", strtotime($this->_period));\n $this->_listAction();\n }", "title": "" }, { "docid": "09f55d03b26b27b8e237e4f37ecc27b0", "score": "0.5730916", "text": "public function listing(){\r\n\t\t\r\n\t\t/* Get parameters */\r\n\t\t$limit = BluApplication::getSetting('backendListingLength');\r\n\t\t$page = Request::getInt('page', 1);\r\n\t\t\r\n\t\t/* Get model */\r\n\t\t$reportsModel = $this->getModel('reports');\r\n\t\t\r\n\t\t/* Prepare sort */\r\n\t\t$options = array();\r\n\t\t\r\n\t\t/* Get type of report */\r\n\t\t$type = strtolower(Request::getCmd('type'));\r\n\t\tif (!in_array($type, array('article', 'comment', 'grouppost', 'userphoto'))){\r\n\t\t\t$type = null;\r\n\t\t}\r\n\t\tswitch($type){\r\n\t\t\tcase 'article':\r\n\t\t\tcase 'comment':\r\n\t\t\tcase 'grouppost':\r\n\t\t\tcase 'userphoto':\r\n\t\t\t\t$options['type'] = $type;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t/* What to sort reports by */\r\n\t\t$sort = strtolower(Request::getCmd('sort'));\r\n\t\tif (!in_array($sort, array('date', 'type', 'id', 'status'))){\r\n\t\t\t$sort = 'status';\r\n\t\t}\r\n\t\tswitch($sort){\r\n\t\t\tcase 'date':\r\n\t\t\t\t$options['order'] = 'time';\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 'type':\r\n\t\t\t\t$options['order'] = 'type';\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 'id':\r\n\t\t\t\t$options['order'] = 'id';\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 'status':\r\n\t\t\t\t$options['order'] = 'status';\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t/* What direction to sort reports in */\r\n\t\t$direction = strtolower(Request::getCmd('direction'));\r\n\t\tif (!in_array($direction, array('asc', 'desc'))){\r\n\t\t\t$direction = 'asc';\r\n\t\t}\r\n\t\tswitch($direction){\r\n\t\t\tcase 'asc':\r\n\t\t\t\t$options['direction'] = 'asc';\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 'desc':\r\n\t\t\t\t$options['direction'] = 'desc';\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t/* Get data */\r\n\t\t$total = null;\r\n\t\t$reports = $reportsModel->getReports(($page - 1) * $limit, $limit, $total, $options);\r\n\t\t$reportsModel->addDetails($reports);\r\n\t\t\r\n\t\t/* Paginate */\r\n\t\t$pagination = Pagination::simple(array(\r\n\t\t\t'limit' => $limit,\r\n\t\t\t'total' => $total,\r\n\t\t\t'current' => $page,\r\n\t\t\t'url' => '?sort='.$sort.'&amp;direction='.$direction.'&amp;type='.$type.'&amp;page='\r\n\t\t));\r\n\t\t\r\n\t\t/* Load template */\r\n\t\tinclude(BLUPATH_TEMPLATES.'/reports/listing.php');\r\n\t\t\r\n\t}", "title": "" }, { "docid": "27b57456a6f063c58bb0940d4e864f8b", "score": "0.5729554", "text": "function get_visit_details_by_date($date)\n {\n parent::get_connection(); /*! Connecting to database */\n $arrEntryDate = split('-',$date);\n $dTextEntryDate = $arrEntryDate[2].\"-\".$arrEntryDate[1].\"-\".$arrEntryDate[0];\n\n $sQuery = \"select * from `tb_rvs_visit` where tb_rvs_visit_dTextEntryDate = '$dTextEntryDate'\" ;\n\n $sResult = parent::dbQuery($sQuery); /*! Executing Query */\n\n $aResultArray = array();\n\n $aResultArray = parent::fetch_result($sResult); /*! Fetching Results */\n\n parent::close_connection(); /*! Closing connection */\n\n return $aResultArray ;\n\n }", "title": "" }, { "docid": "b5c470816beda779673c720770819404", "score": "0.5729435", "text": "public function weeklyReport()\n { //get and change date format\n $last1Week1Day = Carbon::now()->subDay()->format('Y-m-d');\n $last1Week2Day = Carbon::now()->subDay(2)->format('Y-m-d');\n $last1Week3Day = Carbon::now()->subDay(3)->format('Y-m-d');\n $last1Week4Day = Carbon::now()->subDay(4)->format('Y-m-d');\n $last1Week5Day = Carbon::now()->subDay(5)->format('Y-m-d');\n $last1Week6Day = Carbon::now()->subDay(6)->format('Y-m-d');\n $last1Week7Day = Carbon::now()->subDay(7)->format('Y-m-d');\n\n $last2Week1Day = Carbon::now()->subDay(8)->format('Y-m-d');\n $last2Week2Day = Carbon::now()->subDay(9)->format('Y-m-d');\n $last2Week3Day = Carbon::now()->subDay(10)->format('Y-m-d');\n $last2Week4Day = Carbon::now()->subDay(11)->format('Y-m-d');\n $last2Week5Day = Carbon::now()->subDay(12)->format('Y-m-d');\n $last2Week6Day = Carbon::now()->subDay(13)->format('Y-m-d');\n $last2Week7Day = Carbon::now()->subDay(14)->format('Y-m-d');\n\n //filter the date range with one week\n $last1WeekData = Order::where('createddate', 'like', $last1Week1Day.'%')->orWhere('createddate', 'like', $last1Week2Day.'%')\n ->orWhere('createddate', 'like', $last1Week3Day.'%')->orWhere('createddate', 'like', $last1Week4Day.'%')\n ->orWhere('createddate', 'like', $last1Week5Day.'%')->orWhere('createddate', 'like', $last1Week6Day.'%')\n ->orWhere('createddate', 'like', $last1Week7Day.'%')->orderBy('createddate', 'desc')->get();\n\n $last2WeekData = Order::where('createddate', 'like', $last2Week1Day.'%')->orWhere('createddate', 'like', $last2Week2Day.'%')\n ->orWhere('createddate', 'like', $last2Week3Day.'%')->orWhere('createddate', 'like', $last2Week4Day.'%')\n ->orWhere('createddate', 'like', $last2Week5Day.'%')->orWhere('createddate', 'like', $last2Week6Day.'%')\n ->orWhere('createddate', 'like', $last2Week7Day.'%')->orderBy('createddate', 'desc')->get();\n\n // Count the number of orders\n $count1 = $last1WeekData->count();\n $count2 = $last2WeekData->count();\n\n // get the sum of the total shipment fee\n $week1TotalShipfee = $last1WeekData->sum('shipfee');\n $week2TotalShipfee = $last2WeekData->sum('shipfee');\n\n // get the sum of the total weight\n $week1TotalWeight = $last1WeekData->sum('totalweight');\n $week2TotalWeight = $last2WeekData->sum('totalweight');\n\n // Pass the needed data to view\n return View::make('weeklyShipmentReport')->with('last1Week1Day', $last1Week1Day)->with('last1Week7Day', $last1Week7Day)\n ->with('last2Week1Day', $last2Week1Day)->with('last2Week7Day', $last2Week7Day)\n ->with('last1WeekData', $last1WeekData)->with('count1', $count1)\n ->with('last2WeekData', $last2WeekData)->with('count2', $count2)\n ->with('week1TotalShipfee', $week1TotalShipfee)->with('week1TotalWeight', $week1TotalWeight)\n ->with('week2TotalShipfee', $week2TotalShipfee)->with('week2TotalWeight', $week2TotalWeight);\n }", "title": "" }, { "docid": "61ffadfd3eda8575be0b9f68edd2a626", "score": "0.5725295", "text": "function report_by_date() {\n $data['title'] = 'Welcome to Sales Distribution System.';\n $data['menu'] = 'sample_inventory';\n $data['content'] = 'admin/sample/inventory_by_date';\n $this->load->vars($data);\n $this->load->view('admin/dashboard');\n }", "title": "" }, { "docid": "cc2e4e384df3fba7251831d6072be10a", "score": "0.57229865", "text": "public function lead_source_daily_report()\n\t{\n\t\t$year_month = date('Y-m', strtotime($this->input->post('value')));\n\t\t$ex_val = explode('-', $year_month);\n\t\t$no_of_days_in_month = cal_days_in_month(CAL_GREGORIAN, $ex_val[1], $ex_val[0]);\n\t\t$data['lead_source_lists'] = $this->Report_model->lead_source_daily_report($year_month, $no_of_days_in_month);\n\t\t// $data['get_all_lead_source'] = $this->Lead_model->lead_source_list();\n\t\t\n\t\t$data['no_of_days_in_month'] = $no_of_days_in_month;\n\t\t$data['f_year_month'] = $year_month;\n\t\t// $data['lead_source_daily_counts'] = $this->Report_model->lead_source_daily_count_report($year_month, $no_of_days_in_month);\n\t\t$this->load->view('lead_report/lead_source_daily_report', $data);\n\t}", "title": "" }, { "docid": "6781d8cb44665d07a24286374b11991a", "score": "0.57204485", "text": "function get_report_bookings() {\n $database = new Database();\n $CorporatesId = $_REQUEST['CorporatesId'];\n $Status = $_REQUEST['Status'];\n $ArvDate1 = $_REQUEST['ArvDate1'];\n $ArvDate2 = $_REQUEST['ArvDate2'];\n $created1 = $_REQUEST['created1'];\n $created2 = $_REQUEST['created2'];\n $search = $_REQUEST['search'];\n $mySearch = '%'.$search.'%';\n\n if ($ArvDate2 == NULL) {\n $ArvDate2 = $ArvDate1;\n }\n\n if ($created2 == NULL) {\n $created2 = date('Y-m-d', strtotime($created1.'+'.'1'.'days'));\n }\n\n if ($CorporatesId == NULL && $Status == NULL && $ArvDate1 == NULL && $created1 == NULL && $search == NULL) {\n $num = \"00000\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n ;\";\n $database->query($query);\n }\n\n elseif ($CorporatesId == NULL && $Status == NULL && $ArvDate1 == NULL && $created1 == NULL && $search != NULL) {\n $num = \"00001\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId == NULL && $Status == NULL && $ArvDate1 == NULL && $created1 != NULL && $search == NULL) {\n $num = \"00010\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.created >= :created1\n AND Bookings.created <= :created2\n ;\";\n $database->query($query);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n }\n\n elseif ($CorporatesId == NULL && $Status == NULL && $ArvDate1 != NULL && $created1 == NULL && $search == NULL) {\n $num = \"00100\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n ;\";\n $database->query($query);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n }\n\n elseif ($CorporatesId == NULL && $Status != NULL && $ArvDate1 == NULL && $created1 == NULL && $search == NULL) {\n $num = \"01000\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.Status = :Status\n ;\";\n $database->query($query);\n $database->bind(':Status', $Status);\n }\n\n elseif ($CorporatesId != NULL && $Status == NULL && $ArvDate1 == NULL && $created1 == NULL && $search == NULL) {\n $num = \"10000\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n }\n\n elseif ($CorporatesId == NULL && $Status == NULL && $ArvDate1 == NULL & $created1 != NULL && $search != NULL) {\n $num = \"00011\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.created >= :created1\n AND Bookings.created <= :created2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind('created1', $created1);\n $database->bind('created2', $created2);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId == NULL && $Status == NULL && $ArvDate1 != NULL & $created1 == NULL && $search != NULL) {\n $num = \"00101\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId == NULL && $Status == NULL && $ArvDate1 != NULL & $created1 != NULL && $search == NULL) {\n $num = \"00110\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.created >= :created1\n AND Bookings.created <= :created2\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n ;\";\n $database->query($query);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n }\n\n elseif ($CorporatesId == NULL && $Status != NULL && $ArvDate1 == NULL & $created1 == NULL && $search != NULL) {\n $num = \"01001\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.Status = :Status\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':Status', $Status);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId == NULL && $Status != NULL && $ArvDate1 == NULL & $created1 != NULL && $search == NULL) {\n $num = \"01010\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.Status = :Status\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n ;\";\n $database->query($query);\n $database->bind(':Status', $Status);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n }\n\n elseif ($CorporatesId == NULL && $Status != NULL && $ArvDate1 != NULL & $created1 == NULL && $search == NULL) {\n $num = \"01100\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.Status = :Status\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n ;\";\n $database->query($query);\n $database->bind(':Status', $Status);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n }\n\n elseif ($CorporatesId != NULL && $Status == NULL && $ArvDate1 == NULL & $created1 == NULL && $search != NULL) {\n $num = \"10001\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId != NULL && $Status == NULL && $ArvDate1 == NULL & $created1 != NULL && $search == NULL) {\n $num = \"10010\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n }\n\n elseif ($CorporatesId != NULL && $Status == NULL && $ArvDate1 != NULL & $created1 == NULL && $search == NULL) {\n $num = \"10100\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n }\n\n elseif ($CorporatesId != NULL && $Status != NULL && $ArvDate1 == NULL & $created1 == NULL && $search == NULL) {\n $num = \"11000\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.Status = :Status\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':Status', $Status);\n }\n\n elseif ($CorporatesId == NULL && $Status == NULL && $ArvDate1 != NULL & $created1 != NULL && $search != NULL) {\n $num = \"00111\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId == NULL && $Status != NULL && $ArvDate1 == NULL & $created1 != NULL && $search != NULL) {\n $num = \"01011\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.Status = :Status\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':Status', $Status);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId == NULL && $Status != NULL && $ArvDate1 != NULL & $created1 == NULL && $search != NULL) {\n $num = \"01101\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.Status = :Status\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':Status', $Status);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId == NULL && $Status != NULL && $ArvDate1 != NULL & $created1 != NULL && $search == NULL) {\n $num = \"01110\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.Status = :Status\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n ;\";\n $database->query($query);\n $database->bind(':Status', $Status);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n }\n\n elseif ($CorporatesId != NULL && $Status == NULL && $ArvDate1 == NULL & $created1 != NULL && $search != NULL) {\n $num = \"10011\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId != NULL && $Status == NULL && $ArvDate1 != NULL & $created1 == NULL && $search != NULL) {\n $num = \"10101\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId != NULL && $Status == NULL && $ArvDate1 != NULL & $created1 != NULL && $search == NULL) {\n $num = \"10110\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n }\n\n elseif ($CorporatesId != NULL && $Status != NULL && $ArvDate1 == NULL & $created1 == NULL && $search != NULL) {\n $num = \"11001\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.Status >= :Statuss\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':Status', $Status);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId != NULL && $Status != NULL && $ArvDate1 == NULL & $created1 != NULL && $search == NULL) {\n $num = \"11010\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.Status = :Status\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':Status', $Status);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n }\n\n elseif ($CorporatesId != NULL && $Status != NULL && $ArvDate1 != NULL & $created1 == NULL && $search == NULL) {\n $num = \"11100\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.Status = :Status\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':Status', $Status);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n }\n\n elseif ($CorporatesId == NULL && $Status != NULL && $ArvDate1 != NULL & $created1 != NULL && $search != NULL) {\n $num = \"01111\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.Status = :Status\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':Status', $Status);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId != NULL && $Status == NULL && $ArvDate1 != NULL & $created1 != NULL && $search != NULL) {\n $num = \"10111\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId != NULL && $Status != NULL && $ArvDate1 == NULL & $created1 != NULL && $search != NULL) {\n $num = \"11011\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.Status = :Status\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':Status', $Status);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId != NULL && $Status != NULL && $ArvDate1 != NULL & $created1 == NULL && $search != NULL) {\n $num = \"11101\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.Status = :Status\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':Status', $Status);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n $database->bind(':mySearch', $mySearch);\n }\n\n elseif ($CorporatesId != NULL && $Status != NULL && $ArvDate1 != NULL & $created1 != NULL && $search == NULL) {\n $num = \"11110\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.Status = :Status\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':Status', $Status);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n }\n\n else {\n $num = \"11111\";\n $query = \"SELECT\n Bookings.Id AS BookingsId,\n Bookings.Reference,\n Bookings.Name AS BookingsName,\n Corporates.Name AS CorporatesName,\n Bookings.ArvDate,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username,\n Bookings.created\n FROM Bookings LEFT OUTER JOIN Corporates ON\n Bookings.CorporatesId = Corporates.Id\n LEFT OUTER JOIN Users ON\n Bookings.UserId = Users.Id\n WHERE Bookings.CorporatesId = :CorporatesId\n AND Bookings.Status = :Status\n AND Bookings.ArvDate >= :ArvDate1\n AND Bookings.ArvDate <= :ArvDate2\n AND Bookings.created >= :created1\n AND Bookings.created <= :created2\n AND CONCAT(\n Bookings.Reference,\n Bookings.Name,\n Corporates.Name,\n Bookings.Pax,\n Bookings.Status,\n Bookings.Remark,\n Users.Username\n ) LIKE :mySearch\n ;\";\n $database->query($query);\n $database->bind(':CorporatesId', $CorporatesId);\n $database->bind(':Status', $Status);\n $database->bind(':ArvDate1', $ArvDate1);\n $database->bind(':ArvDate2', $ArvDate2);\n $database->bind(':created1', $created1);\n $database->bind(':created2', $created2);\n $database->bind(':mySearch', $mySearch);\n }\n return $r = $database->resultset();\n}", "title": "" }, { "docid": "abb23348869d29aacdc939795abf10c5", "score": "0.57177347", "text": "public function getAllByDateDesc();", "title": "" }, { "docid": "120b6e767a8dd26f8d739e21efe6444a", "score": "0.5715369", "text": "public function report($daysBack){\n\n\t\t// on définie les date qui cernes la/les zone/s de reporting/infotainment\n\t\t$endTime = time();\n\t\t$startTime = $endTime - $daysBack * 60 * 60 * 24;\n\t\t// période d'avant.\n\t\t$endTimeBackPeriode = $startTime;\n\t\t$startTimeBackPeriode = $endTimeBackPeriode - $daysBack * 60 * 60 * 24;\n\t\t// array contenant les deux périodes et leur tableau de sortie.\n\t\t$periodes = array(\n\t\t\t0 => array(\n\t\t\t\t\"endTime\" => $endTime,\n\t\t\t\t\"startTime\" => $startTime\n\t\t\t\t),\n\t\t\t1 => array(\n\t\t\t\t\"endTime\" => $endTimeBackPeriode,\n\t\t\t\t\"startTime\" => $startTimeBackPeriode\n\t\t\t\t)\n\t\t\t);\n\n\t\tfor ($i=0; $i < count($periodes); $i++) { \n\t\t\t// sql pour choper toute la data qui nous interesse\n\t\t\t$rep = $this->select(\"SELECT * FROM api_DailyReport WHERE today < '\".$periodes[$i]['endTime'].\"' AND today > '\".$periodes[$i]['startTime'].\"'\");\n\t\t\t// On construit un tableau structurer : enfant > chore::done 0/1/2\n\t\t\t$miss = $done = $late = '';\n\t\t\tforeach ($rep as $report){\n\t\t\t\t// on fait un tableau avec les 'done' à 0,1 et 2\n\t\t\t\tif($report['done'] == 0){\n\t\t\t\t\t$miss[] = $report;\n\t\t\t\t}elseif($report['done'] == 1){\n\t\t\t\t\t$done[] = $report;\n\t\t\t\t}elseif($report['done'] == 2){\n\t\t\t\t\t$late[] = $report;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$periodes[$i]['child'] = array($miss, $done, $late);\n\t\t}\n\t\t$childTab = $periodes[0]['child'];\n\t\t$childTabBackPeriode = $periodes[1]['child'];\n\n\t\t// A ce niveau chaque enfant possède des données statistique sur la période en cours choisie. On va en rajouter (rapport par rapport à la période précédante etc..)\n\t\techo \"--------------------------<br/>Periode en cours\";\n\t\techo \"<pre>\";\n\t\tprint_r($childTab);\n\t\techo \"</pre>\";\n\t\techo \"--------------------------<br/>Periode précédante\";\n\t\techo \"<pre>\";\n\t\tprint_r($childTabBackPeriode);\n\t\techo \"</pre>\";\n\n\t}", "title": "" }, { "docid": "77c2b43b4fd1934072099b89b930949f", "score": "0.5710284", "text": "public function generate_assess_report_by_date(){\n\t\t$pdf = new PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n\t\t// set document information\n\t\t// $pdf->SetCreator(PDF_CREATOR);\n\t\t// $pdf->SetAuthor('Nicola Asuni');\n\t\t$pdf->SetTitle('Guest Assessment');\n\t\t// $pdf->SetSubject('TCPDF Tutorial');\n\t\t// $pdf->SetKeywords('TCPDF, PDF, example, test, guide');\n\n\t\t// set default header data\n\t\t$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);\n\n\t\t// set header and footer fonts\n\t\t$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n\t\t$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n\n\t\t// set default monospaced font\n\t\t$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n\t\t// set margins\n\t\t$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n\t\t$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n\t\t$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n\t\t// set auto page breaks\n\t\t$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n\t\t// set image scale factor\n\t\t$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n\t\t// set some language-dependent strings (optional)\n\t\tif (@file_exists(dirname(__FILE__).'/lang/eng.php')) {\n\t\t\trequire_once(dirname(__FILE__).'/lang/eng.php');\n\t\t\t$pdf->setLanguageArray($l);\n\t\t}\n\n\t\t// ---------------------------------------------------------\n\n\t\t// set font\n\t\t$pdf->SetFont('helvetica', 'B', 15);\n\n\t\t// add a page\n\t\t$pdf->AddPage();\n\n\t\t$pdf->Write(0, 'Guest Assessment List', '', 0, 'C', true, 0, false, false, 0);\n\n\t\t// set font\n\t\t$pdf->SetFont('helvetica', 'B', 10);\n\n\t\t$pdf->Write(0, 'Date: '. $_POST['date'] == true ? date('F d, Y', strtotime($_POST['date'])) : date('F d, Y'), '', 0, 'C', true, 0, false, false, 0);\n\n\t\t$pdf->SetFont('helvetica', '', 10);\n\t\t// die($_POST['startdate'] - $_POST['enddate']);\n\t\tif(!empty($_POST['date'])){\n\t\t\t$data['generateAssessByDates'] = $this->guestAssessmentModel->getGenerateAssessReportByDate($_POST['date']);\n\t\t}else{\n\t\t\t$data['generateAssessByDates'] = $this->guestAssessmentModel->getGenerateAssessReportByDateHistory();\n\t\t}\n\t\tif(empty($data['generateAssessByDates'])){\n\t\t\tdie('empty');\n\t\t}\n\t\t$html = view('Modules\\GuestAssessment\\Views\\guestassessment\\print_assess_by_date', $data);\n\t\t\t\t\n\t\t$pdf->writeHTML($html, true, false, false, false, '');\n\t\t// ---------------------------------------------------------\n\n\t\t// Close and output PDF document\n\t\t// This method has several options, check the source code documentation for more information.\n\t\t$pdf->Output('example_001.pdf', 'I');\n\t\tdie();\n\t}", "title": "" }, { "docid": "9dc2219ba7137868fdbedd5c48f83307", "score": "0.57026863", "text": "function client_account_list($post, $create_boxes_flag = true, $create_table_flag = true){\n\t//Activity table:\n $where_clause = '';//' AND MONTH(LAST_TRADE) = MONTH(CURDATE()) AND YEAR(LAST_TRADE) = YEAR(CURDATE())';//defined change by aksha(27-09-2018)\n $table_html_return_str = '';\n $pdf_title_dates = '';\n $pdf_title_first_line = '';\n $from_date = isset($post['client_account_list_from_date'])?$post['client_account_list_from_date']:'';\n $to_date = isset($post['client_account_list_to_date'])?$post['client_account_list_to_date']:'';\n $boxes_html_return_str = '';\n $all_dates = isset($post['client_account_list_all_dates'])?$post['client_account_list_all_dates']:'';\n $sql_str = '';\n\n\tif($create_table_flag){\n\t\tif($from_date > $to_date){\n\t\t\tthrow new Exception(\"Start date cannot be after the end date.\", EXCEPTION_WARNING_CODE);\n\t\t}\n\n\t\tif(isset($post[\"client_account_list_from_date\"]) && isset($post[\"client_account_list_to_date\"]) && $all_dates != 'on'){\n\t\t\t$where_clause = \"AND LAST_TRADE >= '{$from_date}' AND LAST_TRADE <= '{$to_date}'\";\n\t\t\t$export_from_date = date_format(date_create($from_date), 'm/d/Y');\n\t\t\t$export_to_date = date_format(date_create($to_date), 'm/d/Y');\n\t\t\t$pdf_title_dates = \"$export_from_date to $export_to_date\";\n\t\t} else{\n\t\t\t$pdf_title_dates = 'All Clients Account List of Current Month';\n\t\t}\n\n\t\tif($from_date == $to_date && isset($from_date) && isset($post[\"client_account_list_to_date\"]) && isset($post['client_account_list_all_dates'])){\n\t\t\t$from_date = substr_replace($from_date, ' 00:00:00', 10);\n\t\t\t$to_date = substr_replace($to_date, ' 23:59:59', 10);\n\t\t} else{\n\t\t\t$sql_str = \"SELECT CONCAT(LNAME, ', ', FNAME) as client_name, CLI_NO as client_no, CONCAT(ADDRESS, ' ', CITY, ', ', STATE, ' ', ZIP) as address, PHONE, DATE as open_date, BIRTH_DATE, LAST_TRADE\n\t\t\t\t\tFROM `clients`\n\t\t\t\t\tWHERE rep_no = {$_SESSION[\"permrep_obj\"]->REP_NO}\n\t\t\t\t\t$where_clause order by open_date desc;\";\n }\n\n\t\t$result = db_query($sql_str);\n\t\tif($result->num_rows != 0){\n\t\t\twhile($row = $result->fetch_assoc()){\n\t\t\t\t$table_html_return_str .= \"<tr>\";\n\t\t\t\tforeach($row as $col => $value){\n\t\t\t\t\tswitch($col){\n\t\t\t\t\t case 'address':\n if($value == ' , ')\n {\n $table_html_return_str .= \"<td>-</td>\";\n }else{\n $table_html_return_str .= \"<td data-search='$value' data-order='$value' class='text-left'>$value</td>\";\n }\n break;\n\t\t\t\t\t case 'client_no':\n $first5char = substr($value,0,5);\n $value = str_replace($first5char,\"XXXXX\",$value);\n $table_html_return_str .= \"<td class='text-left'>$value</td>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t case 'open_date':\n\t\t\t\t\t case 'BIRTH_DATE':\n case 'LAST_TRADE':\n\t\t\t\t\t\t\tif($value != null && $value != '0000-00-00 00:00:00'){\n\t\t\t\t\t\t\t\t$value_timestamp = strtotime($value);\n\t\t\t\t\t\t\t\t$value = date('m/d/Y', $value_timestamp);\n\t\t\t\t\t\t\t\t$table_html_return_str .= \"<td data-order='$value_timestamp' class='text-right'>$value</td>\";\n\t\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\t\t$table_html_return_str .= \"<td>-</td>\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n case 'PHONE':\n\t\t\t\t\t\t\t$table_html_return_str .= \"<td data-search='$value' data-order='$value' class='text-right'>$value</td>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$table_html_return_str .= \"<td data-search='$value' data-order='$value' class='text-left'>$value</td>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$table_html_return_str .= \"</tr>\";\n\t\t\t\t$broker_name = ucfirst(strtolower($_SESSION['permrep_obj']->FNAME)).' '.ucfirst(strtolower($_SESSION['permrep_obj']->LNAME));\n\t\t\t\t$pdf_title_first_line = \"Client Account List\";\n\t\t\t}\n //print_r($sql_str);exit;\n\t\t}\n\t}\n //print_r($table_html_return_str);exit;\n\n $json_obj = new json_obj();\n\t$json_obj->data_arr['client_account_list_table'] = $table_html_return_str;\n\t$json_obj->data_arr['pdf_title_first_line'] = $pdf_title_first_line;\n\t$json_obj->data_arr['pdf_title_second_line'] = $pdf_title_dates;\n\t$json_obj->status = true;\n\n\treturn $json_obj;\n}", "title": "" }, { "docid": "9dac567bd493dd2b514f7c6451580483", "score": "0.57019395", "text": "function reportstats(){\n $query = $this->db->query(\"SELECT DISTINCT *, ( activityDate >= 2019-03-31) AS activity from tbl_view_statsinfo LIMIT 6 \");\n\n if($query->num_rows() > 0){\n foreach($query->result() as $data){\n $info[] = $data;\n }\n return $info;\n }\n }", "title": "" }, { "docid": "84351043fc70a2d26ccf26db9e9ee02a", "score": "0.56995326", "text": "private function current_date_wise_daily_report(){\n \n $user_id = $this->_request['user_id'];\n $date=date('Y-m-d');\n if(empty($user_id))\n {\n \n $result['status'] ='0';\n $result['message']=\"manager id required\";\n $this->response($this->json($result), 200);\n }\n // $pass= mysql_query(\"select * from tbl_departmentemploy where EmployID='\".$user_id.\"'\");\n // $row = mysql_fetch_assoc($pass);\n // $department_id=$row[\"DepartmentID\"];\n // select D.*,E.EmployID,U.username from tbl_department D, tbl_departmentemploy E, users U where E.EmployID=U.id and D.id=E.DepartmentID and and company_id=1\n $sql=mysql_query(\"SELECT d.*,u.username ,dt.department_name FROM daily_reports d, tbl_department dt,users u WHERE d.user_id=u.id and `date`='\".date('Y-m-d').\"' and department_id=dt.id and d.user_id='\".$user_id.\"'\", $this->db)or die(mysql_error());\n $result = array();\n \n if(mysql_num_rows($sql) == 0){\n \n $result['status'] ='0';\n $result['message']=\"Not found!\";\n $this->response($this->json($result), 200);\n }\n else\n {\n $result = mysql_fetch_array($sql, MYSQL_ASSOC);\n $this->response($this->json(array('message'=>'data found','status'=>'1','data'=>$result)), 200);\n }\n }", "title": "" }, { "docid": "aa6252c747817c4f47f1ef7c7297cb59", "score": "0.5683323", "text": "public function datewise_supplier_return_list($from_date, $to_date, $links, $perpage, $page) {\n\n $CI = & get_instance();\n $CI->load->model('Returnse');\n $CI->load->model('Web_settings');\n $CI->load->library('occational');\n\n $return_list = $CI->Returnse->return_dateWise_supplier($from_date, $to_date, $perpage, $page);\n if (!empty($return_list)) {\n foreach ($return_list as $k => $v) {\n $return_list[$k]['final_date'] = $CI->occational->dateConvert($return_list[$k]['date_return']);\n }\n $i = 0;\n if (!empty($return_list)) {\n foreach ($return_list as $k => $v) {\n $i++;\n $return_list[$k]['sl'] = $i + $CI->uri->segment(3);\n }\n }\n }\n $currency_details = $CI->Web_settings->retrieve_setting_editdata();\n $data = array(\n 'title' => display('return_list'),\n 'return_list' => $return_list,\n 'links' => $links,\n 'currency' => $currency_details[0]['currency'],\n 'position' => $currency_details[0]['currency_position'],\n );\n $returnList = $CI->parser->parse('return/return_supllier_list', $data, true);\n return $returnList;\n }", "title": "" }, { "docid": "22da238408cc2aa62d7795dcac2d099d", "score": "0.5682194", "text": "public function get_student_attendance_report_list($class_id,$date){\n\t\t$this->db->select('class_list.name as class_name,class_list.section,users.u_id,users.name,users.roll_number,student_attendenc_reports.time,student_attendenc_reports.attendence,student_attendenc_reports.student_id')->from('student_attendenc_reports');\n\t\t$this->db->join('users ', 'users.u_id = student_attendenc_reports.student_id', 'left');\n\t\t$this->db->join('class_list ', 'class_list.id = student_attendenc_reports.class_id', 'left');\n\t\t$this->db->where('student_attendenc_reports.class_id',$class_id);\n\t\t$this->db->where(\"DATE_FORMAT(student_attendenc_reports.created_at,'%Y-%m-%d')\",$date);\n\t\t$this->db->where('users.role_id',7);\n\t\t$this->db->order_by('student_attendenc_reports.time','asc');\n\t\t//$this->db->group_by('student_attendenc_reports.time');\n\t\t$return=$this->db->get()->result_array();\n\t\tforeach($return as $list){\n\t\t\t\n\t\t\t$hours=$this->get_hours_wise_attendance_report_list($list['u_id'],$date);\n\t\t\t$data[$list['u_id']]=$list;\n\t\t\t$data[$list['u_id']]['hours_list']=$hours;\n\t\t}\n\t\t//echo '<pre>';print_r($return);exit;\n\t\tif(!empty($data)){\n\t\t\treturn $data;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "6a9ffa3a74930966b81ca0126a18a567", "score": "0.56793046", "text": "public function getDataForReport($vendorId = null,$userId = null,$fromDate = null, $toDate = null);", "title": "" }, { "docid": "01f03547621a6c84202126c5a7b58f67", "score": "0.5676256", "text": "public function reports_10002($search, $displaytype, $datefrom, $dateto){\n\n $result = [];\n\n switch($displaytype){\n\n case 'summary':\n\n $result = OrderMstrView::ordersummary_date($datefrom, $dateto);\n\n break;\n\n case 'details':\n\n $result = ReportOrderDtls::orderdtls_date($datefrom, $dateto);\n\n break;\n\n default:\n\n\n }//END switch\n\n return $result;\n\n }", "title": "" }, { "docid": "e3b815e63c0f27d31d3c789ed0c21a65", "score": "0.56750643", "text": "public function invoice_list_date_to_date($from_date,$to_date,$perpage,$page)\n\t{\n\t\t$dateRange = \"a.date BETWEEN '$from_date%' AND '$to_date%'\";\n\t\t$this->db->select('a.*,b.customer_name');\n\t\t$this->db->from('invoice a');\n\t\t$this->db->join('customer_information b','b.customer_id = a.customer_id');\n\t\t$this->db->where($dateRange, NULL, FALSE); \t\n\t\t$this->db->order_by('a.invoice','desc');\n\t\t$this->db->limit($perpage,$page);\n\t\t$query = $this->db->get();\n\t\tif ($query->num_rows() > 0) {\n\t\t\treturn $query->result_array();\t\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8eab8792fd7856b0f4ce4921d70a1fa8", "score": "0.56743103", "text": "public function collection()\n {\n $data = [];\n $data = app('App\\Http\\Controllers\\ReportController')->generatePurchaseData(); \n $list = $data['list'];\n $searchType = $data['searchType'];\n unset($data);\n foreach ($list as $key => $value) {\n if ($searchType == 'daily' || $searchType == 'custom') {\n $list[$key]['orderDate'] = formatDate(date('d-m-Y', strtotime($list[$key]['orderDate'])));\n } else if ($searchType == 'monthly' || $searchType == 'yearly' ) {\n $list[$key]['orderDate'] = date('F-Y', strtotime($list[$key]['orderDate']));\n } else {\n $list[$key]['orderDate'] = formatDate(date('d-m-Y', strtotime($list[$key]['orderDate'])));\n }\n }\n return collect($list);\n }", "title": "" }, { "docid": "29bc726071ab70d58136010e957fa1ce", "score": "0.5672459", "text": "public static function genGetDates()\n {\n $dataA = Larafuse::whereType('DateTime')->lists('Field');\n\n $dataB = Larafuse::whereType('Date')->lists('Field');\n\n $datas =array_merge($dataA,$dataB);\n\n $str = \"\";\n\n echo \"[\";\n\n foreach ($datas as $data) {\n $str = \",'\".$data.\"'\".$str;\n }\n\n echo ltrim($str,',').']';\n }", "title": "" }, { "docid": "d249a5815a2954a6a78efa2a96bdfaad", "score": "0.5661083", "text": "function printSelectDateList($time_config,$classes,$id,$current){\n\t/* -- function explained\n\t * This function reads parameters and outputs a suitable <select> list in HTML\n\t * $time_config : an array which stores the event information such as start time, time interval of this event\n\t * $classes : class attritbute of output list\n\t * $id : id attribute of output list\n\t * $current : an array storing this customer's current booking;\n\t*/\n\t\n\t/*\n\techo \"<pre>\";\n\tvar_dump($time_config);\n\techo \"</pre>\";\n\t*/\n\t//run-time configuration, parse excluded dates\n\t$excluded_date = explode(\",\", $time_config['excluded_date_str']);\n\n\t//run-time configuration, parse alternative addresses\n\t$addresses_array = explode(\"|\", $time_config['address_str']);\n\t$addresses = array();\n\tforeach ($addresses_array as $addresses_info){\n\t\t$temp = explode(\";\",$addresses_info);\n\t\t$addresses[$temp[0]] = $temp;\n\t}\n\t/*\n\techo \"<pre>\";\n\tprint_r($addresses);\n\techo \"</pre>\";\n\t*/\n\t//run-time configuration, parse addresses by date (to output short form address\n\t$address_by_date_array = explode(\";\", $time_config['address_by_date']);\n\t$address_by_date = array();\n\tforeach ($address_by_date_array as $address_info){\n\t\t$temp = explode(\",\",$address_info);\n\t\t$address_by_date[$temp[0]] = $temp[1];\n\t}\n\t/*\n\techo \"<pre>\";\n\tprint_r($address_by_date);\n\techo \"</pre>\";\n\t*/\n\t//\n\t$startdate = DateTime::createFromFormat('d/m/Y H:i',$time_config['event_start_date'].\" 09:00\");\n\t$enddate = DateTime::createFromFormat('d/m/Y H:i',$time_config['event_end_date'].\" 18:00\");\n\t$currentdate = $startdate;\n\t//$currentdate= clone($startdate);\n\t//echo $currentdate->format('d M Y \\(D\\) H:i:s ').\"<br />\";\n\t//echo $enddate->format('d M Y \\(D\\) H:i:s ').\"<br />\";\n\techo '<select name=\"'.$id.'\" id=\"'.$id.'\" class=\"'.$classes.'\">';\n\techo '<option value=\"\">Select</option>';\n\twhile ($currentdate < $enddate){\n\t\t$date_excluded = false;\t\n\t\tforeach ($excluded_date as $date_value){\n\t\t\t\t$data .=$date_value.\",\".$currentdate->format('j/n/Y').\"<br />\";\n\t\t\t\tif (strcmp($date_value,$currentdate->format('j/n/Y')) ==0){\n\t\t\t\t\t$date_excluded=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\tif (!$date_excluded){\n\t\t\tif (strcmp($current['date'],$currentdate->format('j/n/Y')) == 0){\n\t\t\t\techo '<option value=\"'.$currentdate->format('j/n/Y').'\" selected=\"selected\">';\n\t\t\t} else {\n\t\t\t\t// check if the date on this option is earlier than today\n\t\t\t\t$disabled = (strtotime($currentdate->format('j/n/Y'). \"23:59:59\") < strtotime(date(\"j/n/Y\")) ? \"disabled\":\"\");\n\t\t\t\techo '<option value=\"'.$currentdate->format('j/n/Y').'\" '.$disabled.'>';\n\t\t\t}\n\t\t\t//insert overrided short-form address if the $address_by_date is set\n\t\t\tif (array_key_exists($currentdate->format('j/n/Y'),$address_by_date)){ \n\t\t\t\t//if special address is assigned, use date-specific address loaded from record\n\t\t\t\techo $addresses[$address_by_date[$currentdate->format('j/n/Y')]][1].\" | \";\n\t\t\t} else { //insert default short-form address\n\t\t\t\techo $time_config['event_default_address']['short'].\" | \";\n\t\t\t}\n\t\t\techo $currentdate->format('d M Y \\(D\\)');\n\t\t\t\n\t\t\techo '</option>';\n\t\t}\n\t\t$currentdate->add(new DateInterval('P'.$time_config['date_interval'].'D'));\n\t}\n\techo \"</select>\";\n}", "title": "" }, { "docid": "6bffbd45f6d637322bd79b936b860e09", "score": "0.5633153", "text": "function getBookingReportAll($hotel_sec, $date_type, $valid_from, $valid_to, $status)\n\t{\n\t\t$sql = \"SELECT booking.*, \"; \n\t\t$sql .= \"DATE_FORMAT(book_date, '%d/%m/%Y') AS date_show, \";\n\t\t$sql .= \"DATE_FORMAT(checkin, '%d/%m/%Y') AS arrival, \";\n\t\t$sql .= \"DATE_FORMAT(checkout, '%d/%m/%Y') AS departure, \";\n\t\t$sql .= \"(TO_DAYS(checkout) - TO_DAYS(checkin)) AS nights \";\n\t\t$sql .= \"FROM booking \";\n\t\t$sql .= \"WHERE hotel_sec = '\".$hotel_sec.\"' \";\t\t\t\n\t\t$sql .= \"AND \".$date_type.\" >= '\".$valid_from.\"' \";\n\t\t$sql .= \"AND \".$date_type.\" <= '\".$valid_to.\"' \";\n\t\t$sql .= \"AND book_status = 'D' \"; \n\t\t$sql .= \"ORDER BY \".$date_type.\" ASC \";\n\t\t$query = mysql_query($sql) or die(\"SQL : \".$sql.\"<br>ERROR : \". mysql_error()); \n\t\t$i = 0;\n\t\twhile ($row = mysql_fetch_array($query)) {\n\t\t\t$result[$i][\"booking_id\"]\t= $row[\"booking_id\"];\n\t\t\t$result[$i][\"hotel_id\"]\t= $row[\"hotel_id\"];\n\t\t\t$result[$i][\"hotel_sec\"]\t= $row[\"hotel_sec\"];\t\t\t\n\t\t\t$result[$i][\"hotel_ref\"]\t= $row[\"hotel_ref\"];\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t$result[$i][\"contact\"]\t\t= $row[\"contact\"];\n\t\t\t$result[$i][\"room_type\"]\t= $row[\"room_type\"];\n\t\t\t$result[$i][\"adult\"]\t= $row[\"adult\"];\n\t\t\t$result[$i][\"extra_adult\"]\t = $row[\"extra_adult\"];\n\t\t\t$result[$i][\"extra_children\"]\t= $row[\"extra_children\"];\t\t\t\n\t\t\t$result[$i][\"arrival\"]\t\t= $row[\"arrival\"];\n\t\t\t$result[$i][\"departure\"]\t= $row[\"departure\"];\n\t\t\t$result[$i][\"rooms\"]\t\t= $row[\"rooms\"];\n\t\t\t$result[$i][\"nights\"]\t\t= $row[\"nights\"];\n\t\t\t$result[$i][\"country\"]\t\t= $row[\"country\"];\n\t\t\t$result[$i][\"amount\"]\t\t= $row[\"amount\"];\n\t\t\t$result[$i][\"service\"]\t\t= $row[\"service_charge\"];\n\t\t\t$result[$i][\"vat\"]\t\t= $row[\"vat_charge\"];\n\t\t\t$result[$i][\"gamount\"]\t\t= $row[\"gamount\"];\n\t\t\t$result[$i][\"deposit\"] \t\t= $row[\"deposit_charge\"];\n\t\t\t$result[$i][\"book_status\"] \t\t= $row[\"book_status\"];\t\t\t\n\t\t\t$result[$i][\"date_show\"]\t= $row[\"date_show\"];\n\t\t\t$i++;\n\t\t}\t\n\t\treturn $result;\t\n\t}", "title": "" }, { "docid": "0e8c1000a6075007b162ab8bb71deb38", "score": "0.56189555", "text": "public function get_Privious_Posting_Reports(){\n\t\t$Start_Date = date_format(date_create($this->input->post(\"SD_Privious_Posting\")), 'Y/m/d');\n\t\t$End_Date = date_format(date_create($this->input->post(\"ED_Privious_Posting\")), 'Y/m/d');\n\t\t$list = $this->financials_model->get_Privious_Posting_Reports($Start_Date, $End_Date);\n\t\t//echo \"<pre>Start_Date:\".$Start_Date.\" End:\".$End_Date; print_r($list);exit;\n\t\t$data = array();\n\t\t$Tot_Gross_Amount = 0;\n\t\t$Tot_Firm_Fees = 0;\n\t\t$Tot_Final_Remit = 0;\n\t\t$Tot_Firm_Remit_Amount = 0;\n\t\t\n\t\t$No_of_Checks = 0;\n\t\tforeach($list as $result){\n\t\t\t$row = array();\n\t\t\t$row[] = $result->Provider_Id;\n\t\t\t$row[] = $result->Provider_Name;\n\t\t\t$row[] = \"$\".number_format($result->Gross_Amount, 2);\n\t\t\t$row[] = \"$\".number_format($result->Firm_Fees, 2);\n\t\t\t$row[] = \"$\".number_format($result->Final_Remit, 2);\n\t\t\t$row[] = \"$\".number_format($result->Firm_Remit_Amount, 2);\n\t\t\t$row[] = \"<a target='_blank' class='info-link' href='Print_Checks?fra=\".number_format($result->Firm_Remit_Amount, 2).\"&invoiceid=\".$result->Account_Id.\"&fr=\".number_format($result->Final_Remit, 2).\"&Account_Id=\".$result->Account_Id.\"'>print checks</a>\";\n\t\t\t//$row[] = \"<a class='info-link'>print invoice</a>\";\n\t\t\t$row[] = \"<a target='_blank' class='info-link' href='Client_Settlement?Provider_Id=\".$result->Provider_Id.\"&No_Months=&TableId=&Account_Id=\".$result->Account_Id.\"&AccDate=\".$result->Account_Date.\"&print_invoice=print_invoice'>print invoice</a>\";\n\t\t\t$row[] = $result->Account_Id;\n\t\t\t$row[] = date_format(date_create(substr($result->Account_Date, 0,10)), \"m/d/Y\");\n\t\t\t$row[] = date_format(date_create(substr($result->Last_Printed, 0,10)), \"m/d/Y\");\n\t\t\t$row[] = \"<a class='info-link'>Confirm</a>\";\n\t\t\t$row[] = \"<a class='info-link'>Reverse</a>\";\n\t\t\t\n\t\t\t$data[] = $row;\n\t\t\t$Tot_Gross_Amount = $Tot_Gross_Amount + $result->Gross_Amount;\n\t\t\t$Tot_Firm_Fees = $Tot_Firm_Fees + $result->Firm_Fees;\n\t\t\t$Tot_Final_Remit = $Tot_Final_Remit + $result->Final_Remit;\n\t\t\t$Tot_Firm_Remit_Amount = $Tot_Firm_Remit_Amount + $result->Firm_Remit_Amount;\n\t\t}\n\t\t$row = array();\n\t\t$row[] = \"Total\";\n\t\t$row[] = \"\";\n\t\t$row[] = \"$\".number_format($Tot_Gross_Amount, 2);\n\t\t$row[] = \"$\".number_format($Tot_Firm_Fees, 2);\n\t\t$row[] = \"$\".number_format($Tot_Final_Remit, 2);\n\t\t$row[] = \"$\".number_format($Tot_Firm_Remit_Amount, 2);\n\t\t$row[] = \"\";\n\t\t$row[] = \"\";\n\t\t$row[] = \"\";\n\t\t$row[] = \"\";\n\t\t$row[] = \"\";\n\t\t$row[] = \"\";\n\t\t$row[] = \"\";\n\t\t\n\t\t$data[] = $row;\n\t\t\n\t\t$output = array( \"data\" => $data );\n\t\techo json_encode($output);\n\t}", "title": "" }, { "docid": "2a8aa993fcc15de77b15add72c067dbd", "score": "0.56142753", "text": "private function _listAction()\n {\n $params = $this->_request->getParams();\n\n\t\t$table = new Application_Model_Report();\n\t\t$this->_helper->layout->disableLayout();\n $this->view->data = $table->initList($params);\n //echo '<pre>'; print_r ($this->view->data); echo '</pre>';\n $this->view->last_data = $table->getLastGenerate($params);\n //echo '<pre>'; print_r ($this->view->last_data);\n //die;\n }", "title": "" }, { "docid": "95b2c34dab725322e90d553b4f6c7b08", "score": "0.56049454", "text": "function loadAllPrintedCheckForExport(){\n\n if($this->author->objlogin->parentUid > 0){\n $parrentUid = $this->author->objlogin->parentUid;\n }\n else{\n $parrentUid = $this->author->objlogin->uid;\n }\n\n $sql = \"select pc.*,a.*, FROM_UNIXTIME(pc.issue_date) as check_issue_date from app_check pc, new_app a WHERE pc.app_id=a.app_id AND pc.exported_date IS NULL ORDER BY pc.check_id DESC\";\n $res = $this->db->query($sql);\n\n if(sizeof($res->result_array()) > 0){\n\n foreach ($res->result_array() as $row) {\n $row[\"formated_check_issue_date\"] = gmdate(\"mdy\", strtotime($row[\"check_issue_date\"]));\n $row[\"formated_check_issue_date_full\"] = gmdate(\"m-d-Y\", strtotime($row[\"check_issue_date\"]));\n $data[] = $row;\n }\n return $data;\n }else{\n return array();\n }\n }", "title": "" }, { "docid": "0f45c6342793a0fc65bf5943b935f3a8", "score": "0.5597137", "text": "public function computeReport() {\n $now = time();\n $startM = $this->start_month;\n $startD = $this->start_day;\n\n for ($y = $this->start_year; $y <= date('Y'); $y++) {\n\n for ($month=$startM; $month<13; $month++) {\n $startTimestamp = mktime(0, 0, 1, $month, $startD, $y);\n $endTimestamp = mktime(0, 0, 1, ($month + 1), $startD, $y);\n\n if ($startTimestamp > $now) { break; }\n\n $periodStats = new PeriodStats($startTimestamp, $endTimestamp);\n\n $projectList = array();\n\n // only projects for specified team, except excluded projects\n $query = \"SELECT project_id FROM `codev_team_project_table` \".\n \"WHERE team_id = $this->teamid \".\n \"AND codev_team_project_table.type <> \".Project::type_noStatsProject;\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 $projectList[] = $row->project_id;\n }\n\n $periodStats->projectList = $projectList;\n $periodStats->computeStats();\n $this->periodStatsList[$startTimestamp] = $periodStats;\n $startD = 1;\n }\n $startM = 1;\n }\n\n return $this->periodStatsList;\n }", "title": "" }, { "docid": "6ecc1f6b2374b15972d52505326d0cbf", "score": "0.55843663", "text": "function get_report_totals($full_date_DB,$date_to,$customer_id){\n }", "title": "" }, { "docid": "3e5407aa1f34d9c344c5060a61cbcdb2", "score": "0.5580056", "text": "abstract public function buildReport() : array;", "title": "" }, { "docid": "d839820e25c700742f8afb31e9b1f9d8", "score": "0.55752397", "text": "function fetchDueList()\n {\n return eZPersistentObject::fetchObjectList( eZStaticExportScheduler::definition(),\n null,\n array( 'date' => array( '<=', time() ) ),\n array( 'date' => 'desc' ) );\n }", "title": "" }, { "docid": "67be449b2ae5d7daa73e046771ea4010", "score": "0.55700094", "text": "function loadAllPrintedCheckForExportIntoACH(){\n\n if($this->author->objlogin->parentUid > 0){\n $parrentUid = $this->author->objlogin->parentUid;\n }\n else{\n $parrentUid = $this->author->objlogin->uid;\n }\n\n $sql = \"select pc.*,a.*, e.*, sum(a.app_actual_tax_preparation_fee) as app_actual_tax_preparation_fee_sum, SUM(a.app_actual_add_on_fee) as app_actual_add_on_fee_sum, FROM_UNIXTIME(pc.issue_date) as check_issue_date from app_check pc, new_app a, master_ero e WHERE pc.app_id=a.app_id AND a.uid = e.uid AND pc.re_print IS NULL AND pc.ach_export_date IS NULL Group by pc.uid ORDER BY pc.check_id DESC \";\n $res = $this->db->query($sql);\n\n if(sizeof($res->result_array()) > 0){\n\n foreach ($res->result_array() as $row) {\n $row[\"formated_check_issue_date\"] = gmdate(\"mdy\", strtotime($row[\"check_issue_date\"]));\n $row[\"formated_check_issue_date_full\"] = gmdate(\"m-d-Y\", strtotime($row[\"check_issue_date\"]));\n $data[] = $row;\n }\n return $data;\n }else{\n return array();\n }\n }", "title": "" }, { "docid": "4c071685ac8cac04cb29f503a7e63704", "score": "0.55554354", "text": "public function Generate_Report()\n\t{\n\t\t//\n\t\t// criteria start_date YYYYMMDD\n\t\t// criteria end_date YYYYMMDD\n\t\t// company_id\n\t\t//\n\t\ttry\n\t\t{\n\t\t\t$this->search_query = new Status_Overview_Report_Query($this->server);\n\t\n\t\t\t$data = new stdClass();\n\t\n\t\t\t// Save the report criteria\n\t\t\t$data->search_criteria = array(\n\t\t\t 'company_id' => $this->request->company_id,\n\t\t\t 'status_type' \t=> $this->request->status_type,\n\t\t\t 'balance_type'\t=> $this->request->balance_type,\n\t\t\t 'attributes'\t \t=> $this->request->attributes,\n\t\t\t);\n\t\n\t\t\tif(isset($this->request->date))\n\t\t\t{\n\t\t\t\t// Dates before the end of the requested date\n\t\t\t\t$date = $this->request->date;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Dates before the end of today\n\t\t\t\t$date = date('Ymd') . \"235959\";\n\t\t\t}\n\t\n\t\t\t$_SESSION['reports']['status_overview']['report_data'] = new stdClass();\n\t\t\t$_SESSION['reports']['status_overview']['report_data']->search_criteria = $data->search_criteria;\n\t\t\t$_SESSION['reports']['status_overview']['url_data'] = array('name' => 'Status Overview', 'link' => '/?module=reporting&mode=status_overview');\n\t\n\t\n\t\t\t$data->search_results = $this->search_query->Fetch_Status_Overview_Data( $this->request->status_type, $this->request->balance_type, $date, $this->request->company_id, $this->request->attributes);\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$data->search_message = \"Unable to execute report. Reporting server may be unavailable.\";\n\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\treturn;\n\t\t}\n\n\t\t// This doesn't work. I'd fix it, but I'm not sure we're supposed to limit this [benb]\n\t\t// we need to prevent client from displaying too large of a result set, otherwise\n\t\t// the PHP memory limit could be exceeded;\n\t\tif(!empty($data->search_results) && count($data->search_results) > $this->max_display_rows)\n\t\t{\n\t\t\t$data->search_message = \"Your report would have more than \" . $this->max_display_rows . \" lines to display. Please narrow the date range.\";\n\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\treturn;\n\t\t}\n\n\n\t\t// Sort if necessary\n\t\t$data = $this->Sort_Data($data);\n\n\t\tECash::getTransport()->Add_Levels(\"report_results\");\n\t\tECash::getTransport()->Set_Data($data);\n\t\t$_SESSION['reports']['status_overview']['report_data'] = $data;\n\t}", "title": "" }, { "docid": "843605109fa9613b852acc82efc7ab84", "score": "0.55530435", "text": "public function actionCreateAdsReport($startDay_str = '', $endDay_str = '') {\n\t\t/*\n\t\tif($startDay_str == '') {\n\t\t\t$startDay_str = date('Y-m-d 00:00:00', (time() - 60*60*24));\n\t\t}\n\t\tif($endDay_str == '') {\n\t\t\t$endDay_str = date('Y-m-d 00:00:00', time());\n\t\t}\n\t\t*/\n\t\tif($startDay_str == '') {\n $startDay_str = date('Y-m-d 00:00:00', (time() - 60*60*15));\n }\n if($endDay_str == '') {\n $endDay_str = date('Y-m-d 00:00:00', time() + 60*60*7); //them 7 tieng de tranh truong hop bi sai gio tren server\n }\n $yesterday = date('Y-m-d 00:00:00', (strtotime($startDay_str) - 60*60*24));\n\t\t$startDay = strtotime($startDay_str);\n\t\t$endDay = strtotime($endDay_str);\n\t\t$reportAds = AdsReport::model()->findByAttributes(array('create_date' => $startDay_str));\n\t\tif($reportAds != NULL) {\n\t\t\techo \"report for $startDay_str has been created. Exit \\n\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$lstPartner = Partner::model()->findAll();\n\t\t$date = date('Y-m-d', strtotime($startDay_str));\n\t\t$endDate = date('Y-m-d', strtotime($endDay_str));\n\t\twhile(strtotime($date) < strtotime($endDate)){\n\t\t\t$startDay_str = date('Y-m-d 00:00:00', strtotime($date));\n\t\t\t$endDay_str = date('Y-m-d 23:59:59', strtotime($date));\n\t\tforeach ($lstPartner as $partner){\n\t\t\t$report = new AdsReport();\n\t\t\t$report->partner_id = $partner->id;\n\t\t\t$report->create_date = $startDay_str;\n\t\t\t$not_coincide_ip = SubscriberActivityLog::model()->countBySql(\"select COUNT(DISTINCT(client_ip)) FROM subscriber_activity_log where request_date between '$startDay_str' and '$endDay_str' and action= \".$this->ACTION_CLICK_MOBILE_ADS.\" AND partner_id = \".$partner->id);\n\t\t\t$report->not_coincide_ip = $not_coincide_ip;\n\t\t\t$count_identify = SubscriberActivityLog::model()->countBySql(\"select COUNT(subscriber_id) FROM subscriber_activity_log where subscriber_id is not null and request_date between '$startDay_str' and '$endDay_str' and action= \".$this->ACTION_CLICK_MOBILE_ADS.\" AND partner_id = \".$partner->id);\n\t\t\t$report->identify = $count_identify;\n\t\t\t$count_identify_not_coincide_ip = SubscriberActivityLog::model()->countBySql(\"select COUNT(DISTINCT client_ip) FROM subscriber_activity_log where subscriber_id is not null and request_date between '$startDay_str' and '$endDay_str' and action= \".$this->ACTION_CLICK_MOBILE_ADS.\" AND partner_id = \".$partner->id);\n\t\t\t$report->identify_not_coincide_ip = $count_identify_not_coincide_ip;\n\t\t\t$count_register_success = ServiceSubscriberMapping::model()->countBySql(\"select COUNT(subscriber_id) FROM service_subscriber_mapping where service_id is not null and create_date between '$startDay_str' and '$endDay_str'\".\" AND partner_id = \".$partner->id);\n\t\t\t$report->register_success = $count_register_success;\n $count_register_success_free = SubscriberTransaction::model()->countBySql(\"select count(subscriber_id) from subscriber_transaction where purchase_type = 1 and status = 1 and create_date between '$startDay_str' and '$endDay_str'\".\" and cost = 0 and event_id = 'partner_$partner->id'\");\n $report->register_success_free = $count_register_success_free;\n $count_register_success_notfree = SubscriberTransaction::model()->countBySql(\"select count(subscriber_id) from subscriber_transaction where purchase_type = 1 and status = 1 and create_date between '$startDay_str' and '$endDay_str'\".\" and cost > 0 and event_id = 'partner_$partner->id'\");\n $report->register_success_notfree = $count_register_success_notfree;\n\t\t\t$count_cancel_after_one_cycle = ServiceSubscriberMapping::model()->countBySql(\"select COUNT(subscriber_id) FROM service_subscriber_mapping where service_id is not null AND is_active = 0 AND ADDDATE(DATE(create_date),14 ) > DATE(modify_date) and modify_date between '$startDay_str' and '$endDay_str'\".\" AND partner_id = \".$partner->id);\n\t\t\t$report->cancel_after_one_cycle = $count_cancel_after_one_cycle;\n\t\t\t$count_recur_after_three_cycle = ServiceSubscriberMapping::model()->countBySql(\"select count(DISTINCT(subscriber_id)) from service_subscriber_mapping where service_id is not null AND recur_retry_times = 3 AND modify_date between '$startDay_str' and '$endDay_str'\".\" AND partner_id = \".$partner->id);\n\t\t\t$report->recur_after_three_cycle = $count_recur_after_three_cycle;\n\t\t\t$count_recur_failed = SubscriberTransaction::model()->countBySql(\"select count(subscriber_id) from subscriber_transaction where (purchase_type = 2 or purchase_type = 10) and status = 2 and create_date between '$startDay_str' and '$endDay_str'\".\" and event_id = 'partner_$partner->id'\");\n\t\t\t$report->recur_failed = $count_recur_failed;\n\t\t\t$count_recur_success = SubscriberTransaction::model()->countBySql(\"select count(subscriber_id) from subscriber_transaction where (purchase_type = 2 or purchase_type = 10) and status = 1 and create_date between '$startDay_str' and '$endDay_str'\".\" and event_id = 'partner_$partner->id'\");\n\t\t\t$report->recur_success = $count_recur_success;\n $count_total_cancel = SubscriberTransaction::model()->countBySql(\"select count(subscriber_id) from subscriber_transaction where purchase_type = 3 and status = 1 and create_date between '$startDay_str' and '$endDay_str'\".\" and event_id = 'partner_$partner->id'\");\n $report->total_cancel = $count_total_cancel;\n// $cumulative_subscribers_thuc = ServiceSubscriberMapping::model()->countBySql(\"select COUNT(subscriber_id) FROM service_subscriber_mapping where service_id is not null and is_active = 1 AND partner_id = \".$partner->id);\n\n $luyke = AdsReport::model()->findByAttributes(array('create_date' => $yesterday, 'partner_id' => $partner->id));\n $cumulative_subscribers_real = ($luyke['cumulative_subscribers_real'] + $report->register_success_free + $report->register_success_notfree) - $report->total_cancel;\n $report->cumulative_subscribers_real = $cumulative_subscribers_real;\n\n $tl_a = 1;\n $tl_b = 1;\n $configSharing = ConfigSharing::model()->findAllByAttributes(array('service_id'=>$partner->id));\n $start = date('Y-m-d', strtotime($startDay_str));\n foreach($configSharing as $date1){\n $startdate = date('Y-m-d', strtotime($date1->start_date));\n $enddate = date('Y-m-d', strtotime($date1->end_date));\n if(strtotime($startdate) <= strtotime($start) && strtotime($start) <= strtotime($enddate)){\n $tl_a = $date1->config_a / 100;\n $tl_b = $date1->config_b / 100;\n }\n }\n if(count($luyke) > 0){\n $cumulative_subscribers = ($luyke['cumulative_subscribers'] + (round(($report->register_success_free * $tl_a),0)) + (round(($report->register_success_notfree * $tl_a),0))) - (round(($report->total_cancel * $tl_b),0));\n $report->cumulative_subscribers = $cumulative_subscribers;\n }else{\n $report->cumulative_subscribers = 0;\n }\n\n $report_revenue = SubscriberTransaction::model()->countBySql(\"select SUM(cost) from subscriber_transaction where status = 1 and create_date between '$startDay_str' and '$endDay_str' AND event_id = 'partner_$partner->id'\");\n $report->revenue = $report_revenue;\n\n// $connection = Yii::app()->db;\n//\t\t\t$command = $connection->createCommand($queryString);\n//\t\t\t$rows=$command->queryAll();\n//\t\t\t$report->revenue = $rows[0]['total_cost'];\n\t\t\tif(!$report->save()) { \n\t\t\t\tprint_r($report->getErrors());\n\t\t\t};\n\t\t\t}\n\t\t $date = date('Y-m-d', strtotime('+1 days', strtotime($date)));\n\t\t echo $date;\n\t\t}\n\t\techo \"create ads report for $startDay_str successfully \\n\";\n\t}", "title": "" }, { "docid": "a54086802950bcbb39f11b3a32fbe73d", "score": "0.5551238", "text": "public function generate_assess_report_by_daterange(){\n\t\t$pdf = new PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n\t\t// set document information\n\t\t// $pdf->SetCreator(PDF_CREATOR);\n\t\t// $pdf->SetAuthor('Nicola Asuni');\n\t\t$pdf->SetTitle('Guest Assessment');\n\t\t// $pdf->SetSubject('TCPDF Tutorial');\n\t\t// $pdf->SetKeywords('TCPDF, PDF, example, test, guide');\n\n\t\t// set default header data\n\t\t$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);\n\n\t\t// set header and footer fonts\n\t\t$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n\t\t$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n\n\t\t// set default monospaced font\n\t\t$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n\t\t// set margins\n\t\t$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n\t\t$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n\t\t$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n\t\t// set auto page breaks\n\t\t$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n\t\t// set image scale factor\n\t\t$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n\t\t// set some language-dependent strings (optional)\n\t\tif (@file_exists(dirname(__FILE__).'/lang/eng.php')) {\n\t\t\trequire_once(dirname(__FILE__).'/lang/eng.php');\n\t\t\t$pdf->setLanguageArray($l);\n\t\t}\n\n\t\t// ---------------------------------------------------------\n\n\t\t// set font\n\t\t$pdf->SetFont('helvetica', 'B', 15);\n\n\t\t// add a page\n\t\t$pdf->AddPage();\n\n\t\t$pdf->Write(0, 'Guest Assessment List', '', 0, 'C', true, 0, false, false, 0);\n\n\t\t// set font\n\t\t$pdf->SetFont('helvetica', 'B', 10);\n\n\t\t$pdf->Write(0, 'Date: '. $_POST['startdate'] == true || $_POST['enddate'] == true ? date('F d, Y', strtotime($_POST['startdate'])).' - '.date('F d, Y', strtotime($_POST['enddate'])) : date('F d, Y'), '', 0, 'C', true, 0, false, false, 0);\n\n\t\t$pdf->SetFont('helvetica', '', 10);\n\t\t// die($_POST['startdate'] - $_POST['enddate']);\n\t\tif(!empty($_POST['startdate'] || $_POST['enddate'])){\n\t\t\t$data['generateAssessByDateranges'] = $this->guestAssessmentModel->getGenerateAssessReportByDaterange($_POST['startdate'], $_POST['enddate']);\n\t\t}else{\n\t\t\t$data['generateAssessByDateranges'] = $this->guestAssessmentModel->getGenerateAssessReportByDateHistory();\n\t\t}\n\t\tif(empty($data['generateAssessByDateranges'])){\n\t\t\tdie('empty');\n\t\t}\n\t\t$html = view('Modules\\GuestAssessment\\Views\\guestassessment\\print_assess_by_daterange', $data);\n\t\t\t\t\n\t\t$pdf->writeHTML($html, true, false, false, false, '');\n\t\t// ---------------------------------------------------------\n\n\t\t// Close and output PDF document\n\t\t// This method has several options, check the source code documentation for more information.\n\t\t$pdf->Output('example_001.pdf', 'I');\n\t\tdie();\n\t}", "title": "" }, { "docid": "a087a46df92480239debfab45f5e4f9f", "score": "0.55485123", "text": "public function getAllByDateAsc($num);", "title": "" }, { "docid": "d843f3a3d216a97e9082e10342f33815", "score": "0.55475944", "text": "function monthly_per_store_day_report($month_per_store_day,$year_per_store_day)\n {\n \n // $param['year'] = $month;\n // $param['month'] = $year;\n\n\n // $monthName = date('F', strtotime($year.\"-\".$month));\n\n // $date = $this->getDateNeed($year_per_store, $month_per_store);\n\n\n $arr = array('monthly' => array());\n $arr['monthly'] = array(\n 'store' => $this->queryForMonthStoreMonth(),\n 'mdscsi' => array(),\n '01' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '1'),\n '02' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '2'),\n '03' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '3'),\n '04' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '4'),\n '05' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '5'),\n '06' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '6'),\n '07' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '7'),\n '08' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '8'),\n '09' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '9'),\n '10' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '10'),\n '11' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '11'),\n '12' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '12'),\n '13' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '13'),\n '14' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '14'),\n '15' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '15'),\n '16' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '16'),\n '17' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '17'),\n '18' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '18'),\n '19' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '19'),\n '20' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '20'),\n '21' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '21'),\n '22' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '22'),\n '23' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '23'),\n '24' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '24'),\n '25' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '25'),\n '26' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '26'),\n '27' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '27'),\n '28' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '28'),\n '29' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '29'),\n '30' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '30'),\n '31' => $this->queryForMonthStoreDay($year_per_store_day, $month_per_store_day, '31')\n );\n\n \n \n $temp_arr = $arr;\n\n $temp_arr['monthly']['01']['0'] = $this->complete_arr_per_day($arr,'01');\n $temp_arr['monthly']['02']['0'] = $this->complete_arr_per_day($arr,'02');\n $temp_arr['monthly']['03']['0'] = $this->complete_arr_per_day($arr,'03');\n $temp_arr['monthly']['04']['0'] = $this->complete_arr_per_day($arr,'04');\n $temp_arr['monthly']['05']['0'] = $this->complete_arr_per_day($arr,'05');\n $temp_arr['monthly']['06']['0'] = $this->complete_arr_per_day($arr,'06');\n $temp_arr['monthly']['07']['0'] = $this->complete_arr_per_day($arr,'07');\n $temp_arr['monthly']['08']['0'] = $this->complete_arr_per_day($arr,'08');\n $temp_arr['monthly']['09']['0'] = $this->complete_arr_per_day($arr,'09');\n $temp_arr['monthly']['10']['0'] = $this->complete_arr_per_day($arr,'10');\n $temp_arr['monthly']['11']['0'] = $this->complete_arr_per_day($arr,'11');\n $temp_arr['monthly']['12']['0'] = $this->complete_arr_per_day($arr,'12');\n $temp_arr['monthly']['13']['0'] = $this->complete_arr_per_day($arr,'13');\n $temp_arr['monthly']['14']['0'] = $this->complete_arr_per_day($arr,'14');\n $temp_arr['monthly']['15']['0'] = $this->complete_arr_per_day($arr,'15');\n $temp_arr['monthly']['16']['0'] = $this->complete_arr_per_day($arr,'16');\n $temp_arr['monthly']['17']['0'] = $this->complete_arr_per_day($arr,'17');\n $temp_arr['monthly']['18']['0'] = $this->complete_arr_per_day($arr,'18');\n $temp_arr['monthly']['19']['0'] = $this->complete_arr_per_day($arr,'19');\n $temp_arr['monthly']['20']['0'] = $this->complete_arr_per_day($arr,'20');\n $temp_arr['monthly']['21']['0'] = $this->complete_arr_per_day($arr,'21');\n $temp_arr['monthly']['22']['0'] = $this->complete_arr_per_day($arr,'22');\n $temp_arr['monthly']['23']['0'] = $this->complete_arr_per_day($arr,'23');\n $temp_arr['monthly']['24']['0'] = $this->complete_arr_per_day($arr,'24');\n $temp_arr['monthly']['25']['0'] = $this->complete_arr_per_day($arr,'25');\n $temp_arr['monthly']['26']['0'] = $this->complete_arr_per_day($arr,'26');\n $temp_arr['monthly']['27']['0'] = $this->complete_arr_per_day($arr,'27');\n $temp_arr['monthly']['28']['0'] = $this->complete_arr_per_day($arr,'28');\n $temp_arr['monthly']['29']['0'] = $this->complete_arr_per_day($arr,'29');\n $temp_arr['monthly']['30']['0'] = $this->complete_arr_per_day($arr,'30');\n $temp_arr['monthly']['31']['0'] = $this->complete_arr_per_day($arr,'31');\n\n $temp_arr['monthly']['mdscsi'] = $this->forMonth_perday_getOvrAllStore($temp_arr);\n\n\n $this->get_csv_report_monthly_store_perday($temp_arr,$year_per_store_day, $month_per_store_day);\n\n return $temp_arr;\n }", "title": "" }, { "docid": "21322077d1f732735f2727fa6344b23f", "score": "0.55437803", "text": "function getDataReport($db, $strDataDateFrom, $strDataDateThru, &$intRows, $strKriteria = \"\", $strOrder = \"\")\n{\n global $words;\n global $ARRAY_EMPLOYEE_STATUS;\n global $ARRAY_LEAVE_TYPE;\n global $ARRAY_OT_STATUS;\n global $arrUserInfo;\n global $_SESSION;\n global $_REQUEST;\n global $bolPrint;\n $intRows = 0;\n $strResult = \"\";\n $arrStatusDenied = [2, 8]; // daftar status yang sifatnya ditolak :D\n $arrStatusEmplEditable = array_merge(\n $arrStatusDenied,\n [0, 5, 7]\n ); // daftar status yang sifatnya bisa diedit oleh employee\n // ambil dulu data employee, kumpulkan dalam array\n $arrEmployee = [];\n $i = 0;\n $strSQL = \"SELECT t1.*, t2.employee_id, t2.employee_name, t2.department_code, t2.section_code \";\n $strSQL .= \"FROM hrd_overtime AS t1, hrd_employee AS t2 \";\n $strSQL .= \"WHERE t1.id_employee = t2.id AND status >= \" . REQUEST_STATUS_APPROVED . \" $strKriteria \";\n $strSQL .= \"ORDER BY $strOrder t1.overtime_date, t2.employee_name \";\n $resDb = $db->execute($strSQL);\n $strDateOld = \"\";\n while ($rowDb = $db->fetchrow($resDb)) {\n $intRows++;\n $bolEditable = true;\n $strBgClass = \"\";\n $intWDay = getWDay($rowDb['overtime_date']);\n $strWDay = getNamaHari($intWDay);\n $strResult .= \"<tr valign=top>\\n\";\n $strResult .= \" <td nowrap align=right>$intRows.&nbsp;</td>\";\n $strResult .= \" <td nowrap align=center>$strWDay&nbsp;</td>\";\n $strResult .= \" <td nowrap align=center>\" . pgDateFormat($rowDb['overtime_date'], \"d-M-y\") . \"&nbsp;</td>\\n\";\n $strResult .= \" <td align=center>\" . substr($rowDb['actual_start'], 0, 5) . \"&nbsp;</td>\";\n $strResult .= \" <td align=center>\" . substr($rowDb['actual_finish'], 0, 5) . \"&nbsp;</td>\";\n $strResult .= \" <td>\" . $rowDb['shift_code'] . \"&nbsp;</td>\";\n $strResult .= \" <td align=right>\" . cekStandardFormat($rowDb['duration'] / 60) . \"&nbsp;</td>\";\n $strResult .= \" <td align=right>\" . cekStandardFormat($rowDb['meal_compensation']) . \"&nbsp;</td>\";\n //$strResult .= \" <td align=right>\" .cekStandardFormat($rowDb['transport_compensation']). \"&nbsp;</td>\";\n //$strResult .= \" <td align=right>\" .cekStandardFormat($rowDb['meal_compensation'] + $rowDb['transport_compensation']). \"&nbsp;</td>\";\n $strResult .= \"</tr>\\n\";\n }\n if ($intRows > 0) {\n writeLog(ACTIVITY_VIEW, MODULE_PAYROLL, \"\", 0);\n }\n return $strResult;\n}", "title": "" }, { "docid": "1d418599afa6760d63ef1fdb3e7f2cc1", "score": "0.55394644", "text": "public function leadsDates(){\n $leads = $this->leadsSummary();\n $dates = [];\n foreach($leads as $key => $value){\n $dates[] = now()->format('F') . \" \" . $key;\n }\n return $dates;\n }", "title": "" }, { "docid": "16e776399873324eb8f7ed80acafc3cf", "score": "0.5537916", "text": "public function AllTeamReportWeekly(){\n $daily = \"all-team-report-weekly\";\n $this->dispatch(new ProcessExport($daily));\n }", "title": "" }, { "docid": "7c8a0b20b7a7f12fddffaa85c7bb33ea", "score": "0.5537534", "text": "public function schedToolOutput($delivery_date=NULL){\n\n\t\t$delivery_date = !empty($delivery_date) ? $delivery_date : date(\"Y-m-d\",strtotime(Input::get('selected_data')));\n\n\t\t$stDrivers = SchedTool::select(DB::raw('DISTINCT(driver_id) as driver_id,\n\t\t\t\t\t\t\t\t(SELECT username FROM feeds_user_accounts WHERE id = driver_id) as driver_name'))\n\t\t\t\t\t\t\t\t->where('delivery_date','=',$delivery_date)\n\t\t\t\t\t\t\t\t->get()->toArray();\n\t\t$data = array();\n\t\tfor($i = 0; $i < count($stDrivers); $i++){\n\n\t\t\t$data[] = array(\n\t\t\t\t\t'driver_id'\t=> $stDrivers[$i]['driver_id'],\n\t\t\t\t\t'title'\t\t\t=> $stDrivers[$i]['driver_name'],\n\t\t\t\t\t'eta'\t\t\t\t=> $this->deliveriesETAPerDriver($stDrivers[$i]['driver_id'],$delivery_date),\n\t\t\t\t\t'schedule'\t=> $this->schedToolLevelTwo($stDrivers[$i]['driver_id'],$delivery_date),\n\t\t\t\t\t'dar'\t\t\t\t=> $this->driverActivityReport($delivery_date)\n\t\t\t\t);\n\t\t}\n\n\n\t\treturn $data;\n\n\t}", "title": "" }, { "docid": "687d08d0c11e965a1775149ce7f2fc08", "score": "0.55366063", "text": "function add_event_to_array($dates, $page_data){\n foreach ($page_data['dates'] as $date) {\n\n $start_date = $date->{'start-date'} / 1000;\n $end_date = $date->{'end-date'} / 1000;\n $specific_start = date(\"Y-m-d\", $start_date );\n $specific_end = date(\"Y-m-d\", $end_date );\n\n $page_data['specific_start'] = $date->{'start-date'};\n $page_data['specific_end'] = $date->{'end-date'};\n $page_data['specific_all_day'] = $date->{'all-day'};\n\n if($specific_start == $specific_end){\n //Don't need a date range.\n $key = date(\"Y-m-d\", $start_date);\n // Check if this date has events already\n if (isset($dates[$key])) {\n array_push($dates[$key], $page_data );\n //Otherwise add a new array with this event for this date.\n } else {\n $dates[$key] = array($page_data);\n }\n }else{\n $page_data['specific_all_day'] = true;\n $start = date(\"Y-n-j\", $start_date);\n // Add 1 day to $end so that the DatePeriod includes the last day in 'end-date'\n $end = date(\"Y-n-j\", strtotime('+1 day', $end_date));\n // Create a date period for each of the dates this event-date spans.\n // This will put it on the calendar each day.\n\n $period = new DatePeriod(\n new DateTime($start),\n new DateInterval('P1D'),\n new DateTime($end)\n );\n\n\n // Add a listing to the array for each event / event date\n foreach ($period as $date) {\n $key = $date->format('Y-m-d');\n\n // Check if this date has events already\n if (isset($dates[$key])) {\n array_push($dates[$key], $page_data);\n //Otherwise add a new array with this event for this date.\n } else {\n $dates[$key] = array($page_data);\n }\n\n }\n }\n }\n return $dates;\n}", "title": "" }, { "docid": "eea237810db35c909dcbaea45661fc07", "score": "0.5533067", "text": "private function generate_query_dates()\n {\n $dates = array();\n $daysToRetrieve = $this->daysToRetrieve;\n\t\t\n for( $i=0; $i<$daysToRetrieve; $i++){\n $dates[] = date('m/d/Y', strtotime('+'.$i.'days')); \n }\n return $dates; \n }", "title": "" }, { "docid": "0ad09873b58416ffcf5816aec5830210", "score": "0.5532352", "text": "function getUserReport( $datetypeselect, $startdate, $enddate ) {\r\n\t\t\r\n\t\t$userid = $_SESSION['userid'];\r\n\t\t\r\n\t\t\r\n\t\tif( $datetypeselect == 0 ) $left = \" left\";\r\n\t\t\r\n\t\tif( $startdate ) $datestuff .= \" and c.datecreated >= '\".getMySqlDate( $startdate ).\" 00:00:00'\";\r\n\t\tif( $enddate ) $datestuff .= \" and c.datecreated <= '\".getMySqlDate( $enddate ).\" 23:59:59'\";\r\n\t\t\r\n\t\t$query = \"\r\n\t\t\tselect u.ID,\r\n\t\t\t concat( u.LastName, ', ', u.FirstName, ' ', u.MiddleIn ) as FullName,\r\n\t\t\t u.Extension,\r\n\t\t\t u.Email\r\n\t\t\tfrom users u$left join contacts c on c.Creator = u.id $datestuff\r\n\t\t\";\r\n\t\t\r\n\t\tif( $datetypeselect == 0 || $datetypeselect == 1 ) {\r\n\t\t\tif( $startdate ) $query .= \" and datecreated >= '\".getMySqlDate( $startdate ).\" 00:00:00'\";\r\n\t\t\tif( $enddate ) $query .= \" and datecreated <= '\".getMySqlDate( $enddate ).\" 23:59:59'\";\r\n\t\t}\r\n\t\telse if( $datetypeselect == 2 && ($startdate || $enddate) ) {\r\n\t\t\t$query .= \" and (0\";\r\n\t\t\tif( $startdate ) $query .= \" or datecreated < '\".getMySqlDate( $startdate ).\" 00:00:00'\";\r\n\t\t\tif( $enddate ) $query .= \" or datecreated > '\".getMySqlDate( $enddate ).\" 23:59:59'\";\r\n\t\t\t$query .= \")\";\r\n\t\t}\r\n\t\t\r\n\t\t$query .= \" group by u.id order by u.lastname\";\r\n\t\t\t\t\r\n\t\t$return = array();\r\n\t\t$result = mysql_query( $query );\r\n\t\twhile( $row = mysql_fetch_assoc( $result ) ) {\r\n\t\t\tarray_push( $return, $row );\r\n\t\t}\r\n\t\t\r\n\t\tforeach( $return as $rowNumber => $row ) {\r\n\t\t\t// include the number of contacts\r\n\t\t\t$query = \"select count(*) as NumContacts from contacts c\r\n\t\t\t\t where c.Creator = '\".$row['ID'].\"'\r\n\t\t\t\t \";\r\n\t\t\t$result = mysql_query( $query );\r\n\t\t\tif( $numContactsArray = mysql_fetch_assoc( $result ) ) {\r\n\t\t\t\t$return[$rowNumber]['NumContacts'] = $numContactsArray['NumContacts'];\r\n\t\t\t}\r\n\t\t\telse $return[$rowNumber]['NumContacts'] = false;\r\n\t\t\t\t\t\r\n\t\t\t// include the number of contacts in the date range\r\n\t\t\t$query = \"select count(*) as NumContactsInRange from contacts c\r\n\t\t\t\t where c.Creator = '\".$row['ID'].\"'$datestuff\r\n\t\t\t\t \";\r\n\t\t\t$result = mysql_query( $query );\r\n\t\t\tif( $numContactsArray = mysql_fetch_assoc( $result ) ) {\r\n\t\t\t\t$return[$rowNumber]['NumContactsInRange'] = $numContactsArray['NumContactsInRange'];\r\n\t\t\t}\r\n\t\t\telse $return[$rowNumber]['NumContactsInRange'] = false;\r\n\t\t\t\r\n\t\t\t// include all the students associated with the contacts\r\n\t\t\t$query = \"select distinct s.ID,\r\n\t\t\t\t\t concat( s.LAST_NAME, ', ', s.FIRST_NAME, ' ', s.MIDDLE_NAME ) as FullName,\r\n\t\t\t\t\t s.WOOSTER_EMAIL\r\n\t\t\t\t from X_PNSY_STUDENT s, `contacts-students` cs, contacts c\r\n\t\t\t\t where s.ID = cs.studentid\r\n\t\t\t\t and c.ID = cs.contactid\r\n\t\t\t\t and c.Creator = '\".$row['ID'].\"'\r\n\t\t\t\t and cs.contactid = c.id$datestuff\r\n\t\t\t\t \";\r\n\t\t\t$studentsArray = array();\r\n\t\t\t$result = mysql_query( $query );\r\n\t\t\twhile( $studentrow = mysql_fetch_assoc( $result ) ) {\r\n\t\t\t\tarray_push( $studentsArray, $studentrow );\r\n\t\t\t}\r\n\t\t\t$return[$rowNumber]['Students'] = $studentsArray;\r\n\t\t\t\r\n\t\t\t$return[$rowNumber]['StartDate'] = $startdate;\r\n\t\t\t$return[$rowNumber]['EndDate'] = $startdate;\r\n\t\t}\r\n\t\t\r\n\t\treturn $return;\r\n\t}", "title": "" }, { "docid": "5de7c0b24e399558e2b250f1ad477e52", "score": "0.55260575", "text": "function custom_reports_get_reports() {\n $reports = array();\n // Invoke hook_custom_reports_info()\n foreach (module_invoke_all('custom_reports_info') as $report) {\n // // Id must be defined\n if (empty($report['id'])) {\n continue;\n }\n // Callback defaults to id\n if (!isset($report['callback'])) {\n $report['callback'] = $report['id'];\n }\n // Title defaults to id\n if (!isset($report['title'])) {\n $report['title'] = $report['id'];\n }\n // Associative defaults to TRUE\n if (!isset($report['associative'])) {\n $report['associative'] = TRUE;\n }\n // Header rows are only available if associative is TRUE\n if (!$report['associative']) {\n $report['header'] = FALSE;\n }\n // Header defaults to TRUE (except if associative)\n if (!isset($report['header'])) {\n $report['header'] = TRUE;\n }\n // Filename defaults to something like \"YYYY-MM-DD Report Title.csv\"\n if (!isset($report['filename'])) {\n $report['filename'] = '[date] [title].csv';\n }\n // Set default date format.\n if (!isset($report['date_format'])) {\n $report['date_format'] = 'Y-m-d';\n }\n // Store defaults to FALSE\n if (!isset($report['store'])) {\n $report['store'] = FALSE;\n }\n // Form defaults to an empty array\n if (!isset($report['form'])) {\n $report['form'] = array();\n }\n // Active defaults to TRUE\n if (!isset($report['active'])) {\n $report['active'] = TRUE;\n }\n $report['args'] = array();\n $reports[$report['id']] = $report;\n }\n return $reports;\n}", "title": "" }, { "docid": "7af9899e30036fa7409aaf52965c5517", "score": "0.5519989", "text": "function report() {\n \tif($this->active_report->isNew()) {\n $this->httpError(HTTP_ERR_NOT_FOUND);\n } // if\n \n if(!$this->active_report->canView($this->logged_user)) {\n $this->httpError(HTTP_ERR_FORBIDDEN);\n } // if\n \n $report_records = TimeReports::executeReport($this->logged_user, $this->active_report, $this->active_project);\n $total_time = 0;\n if(is_foreachable($report_records)) {\n if($this->active_report->getSumByUser()) {\n foreach($report_records as $report_record) {\n $total_time += $report_record['total_time'];\n } // foreach\n } else {\n foreach($report_records as $report_record) {\n $total_time += $report_record->getValue();\n } // foreach\n } // if\n } // if\n \n \t$this->smarty->assign(array(\n \t 'grouped_reports' => TimeReports::findGrouped(),\n \t 'report_records' => $report_records,\n \t 'total_time' => $total_time,\n \t 'show_project' => false,\n \t));\n \t\n \t$this->setTemplate(array(\n \t 'module' => TIMETRACKING_MODULE,\n \t 'controller' => 'global_timetracking',\n \t 'template' => 'report',\n \t));\n }", "title": "" }, { "docid": "a9471f01fc30333d436f65649afd17d0", "score": "0.55183095", "text": "function getBookingReport($hotel_sec, $date_type, $valid_from, $valid_to, $status, $country)\n\t{\n\t\t$sql = \"SELECT booking.*, \"; \n\t\t$sql .= \"DATE_FORMAT(book_date, '%d/%m/%Y') AS date_show, \";\n\t\t$sql .= \"DATE_FORMAT(checkin, '%d/%m/%Y') AS arrival, \";\n\t\t$sql .= \"DATE_FORMAT(checkout, '%d/%m/%Y') AS departure, \";\n\t\t$sql .= \"(TO_DAYS(checkout) - TO_DAYS(checkin)) AS nights \";\n\t\t$sql .= \"FROM booking \";\n\t\t$sql .= \"WHERE hotel_sec = '\".$hotel_sec.\"' \";\n\t\t$sql .= \"AND \".$date_type.\" >= '\".$valid_from.\"' \";\n\t\t$sql .= \"AND \".$date_type.\" <= '\".$valid_to.\"' \";\n\t\tif ($status != \"All\") { $sql .= \"AND book_status = '\".$status.\"' \"; } \n\t\tif ($country != \"All\") { $sql .= \"AND country = '\".$country.\"' \"; } \n\t\t$sql .= \"ORDER BY \".$date_type.\" ASC \";\n\t\t$query = mysql_query($sql) or die(\"SQL : \".$sql.\"<br>ERROR : \". mysql_error()); \n\t\t$i = 0;\n\t\twhile ($row = mysql_fetch_array($query)) {\n\t\t\t$result[$i][\"booking_id\"]\t= $row[\"booking_id\"];\n\t\t\t$result[$i][\"date_type\"]\t= $row[\"date)type\"];\t\t\t\n\t\t\t$result[$i][\"booking_sec\"]\t= $row[\"booking_sec\"];\t\t\t\n\t\t\t$result[$i][\"hotel_ref\"]\t= $row[\"hotel_ref\"];\t\t\t\n\t\t\t$result[$i][\"contact\"]\t\t= $row[\"contact\"];\n\t\t\t$result[$i][\"room_type\"]\t= $row[\"room_type\"];\n\t\t\t$result[$i][\"adult\"]\t= $row[\"adult\"];\n\t\t\t$result[$i][\"extra_adult\"]\t = $row[\"extra_adult\"];\n\t\t\t$result[$i][\"extra_children\"]\t= $row[\"extra_children\"];\t\t\t\n\t\t\t$result[$i][\"arrival\"]\t\t= $row[\"arrival\"];\n\t\t\t$result[$i][\"departure\"]\t= $row[\"departure\"];\n\t\t\t$result[$i][\"rooms\"]\t\t= $row[\"rooms\"];\n\t\t\t$result[$i][\"nights\"]\t\t= $row[\"nights\"];\n\t\t\t$result[$i][\"country\"]\t\t= $row[\"country\"];\n\t\t\t$result[$i][\"amount\"]\t\t= $row[\"amount\"];\n\t\t\t$result[$i][\"service\"]\t\t= $row[\"service_charge\"];\n\t\t\t$result[$i][\"vat\"]\t\t= $row[\"vat_charge\"];\n\t\t\t$result[$i][\"gamount\"]\t\t= $row[\"gamount\"];\n\t\t\t$result[$i][\"deposit\"] \t\t= $row[\"deposit_charge\"];\n\t\t\t$result[$i][\"book_status\"] \t\t= $row[\"book_status\"];\t\t\t\n\t\t\t$result[$i][\"date_show\"]\t= $row[\"date_show\"];\n\t\t\t$i++;\n\t\t}\t\n\t\treturn $result;\t\n\t}", "title": "" }, { "docid": "83896111343c73a812033c1a48ba7985", "score": "0.55179214", "text": "function DailyReport(){\n\t\t$this->breadcrumbs->unshift(2, 'Daily Report', 'attendance');\n\t\t$this->data['breadcrumb'] = $this->breadcrumbs->show();\n\t\t\n // $this->data['employee'] = $this->Employees_model->get_all_employee();\n /* Load Template */\n $this->template->public_render('Attendance/daily_report', $this->data);\n\t}", "title": "" }, { "docid": "5a9eaf34bc60c0ebad254bed15c1598c", "score": "0.55177003", "text": "function _sr_shipments_chart(){\r\r\n\t$date_min = strtotime( wwex_report_charts_start_date() );\r\r\n\t$date_max = time();\r\r\n\t\r\r\n\t$results = _sr_query_shipments_results(array($date_min, $date_max));\r\r\n\t\r\r\n\t$formated_results = _sr_shipments_format_results( $results );\r\r\n\treturn $formated_results;\r\r\n}", "title": "" }, { "docid": "a6de8904b01e0fd5b36d8b0ad4f3defc", "score": "0.55137813", "text": "public function reportNormaPupukTmAction()\n {\n\t\t$this->view->period = date(\"Y\", strtotime($this->_period));\n $this->_listAction();\n }", "title": "" }, { "docid": "12cfc2f6813393ce0a0cf01ec0f8da3c", "score": "0.55111074", "text": "function reportGen ($lang,$siteCode,$startDate,$endDate, $unixStartDate, $unixEndDate,$localizedMonths) {\n\tglobal $one;\n\tglobal $two;\n\tglobal $three;\n\tglobal $four;\n\tglobal $five;\n\tglobal $six;\n\tglobal $seven;\n\tglobal $eight;\n\tglobal $nine;\n\n\t$month = $localizedMonths[$lang][date(\"n\", $unixEndDate) - 1];\n\t$year =\t\"20\" . substr($endDate,0,2);\n\t$facility = escapeSingleQuotes(getSiteName($siteCode, $lang));\n\t$location = escapeSingleQuotes(getSiteLocation($siteCode));\n\t$grantee = \"I-TECH\";\n\t$country = \"Haiti\";\n//\t$eDate = substr($endDate,3,2) . \"/\" . date(\"t\",$unixEndDate) . \"/\" . substr($endDate,0,2);\n\t$eDate = \"20\" . substr($endDate,0,2) . \"-\" . substr($endDate,3,2) . \"-\" . date(\"t\",$unixEndDate);\n\n//\t$sDate = substr($startDate,3,2) . \"/\" . date(\"t\",$unixStartDate) . \"/\" . substr($startDate,0,2);\n\t$sDate = \"20\" . substr($startDate,0,2) . \"-\" . substr($startDate,3,2) . \"-\" . date(\"t\",$unixStartDate);\n\n//clear the table\ndbQuery(\"delete from pepfarRecords\");\n//fill in the header info\ninsertToPep (-12, 1, \"Month: \", $month, \"Year: \", $year,\"\");\n//insertToPep (-11, 1, \"--------------------------------------------------\",\"-------------------------------\",\"-------------------------------\", \"-------------------------------\");\ninsertToPep (-10, 1, \"Grantee: \", $grantee, \"Facility: \", $facility);\n//insertToPep (-9, 1, \"--------------------------------------------------\",\"-------------------------------\",\"-------------------------------\", \"-------------------------------\");\ninsertToPep (-8, 1, \"Location: \", $location, \"Country: \", $country);\n//insertToPep (-7, 1, \"--------------------------------------------------\",\"-------------------------------\",\"-------------------------------\", \"-------------------------------\");\ninsertToPep (-6, 1, \"\",\"\" , \"\", \"\" );\n\n//fill in the #1 table\ninsertToPep (99, 1, \"1. HIV care (non-ART and ART)-new\",\"and cumulative number\",\"of persons enrolled\",\"\");\n//insertToPep (100, 1, \"--------------------------------------------------\",\"-------------------------------\",\"-------------------------------\", \"-------------------------------\");\ninsertToPep (101, 1, \"\",\"Cumulative number of\" , \"New\", \"Cumulative number of\");\ninsertToPep (102, 1, \"\",\"persons enrolled in HIV\" , \"persons enrolled in HIV\", \"persons enrolled in HIV\");\ninsertToPep (103, 1, \"\",\"care at this facility\" , \"care at this facility\", \"care at this facility\");\ninsertToPep (104, 1, \"\",\"at beginning of month\" , \" during the month\", \"at end of month\");\n//insertToPep (105, 1, \"--------------------------------------------------\",\"-------------------------------\",\"-------------------------------\", \"-------------------------------\");\ninsertToPep (110, 1, \"1. Males (>14 years)\", \" a. \" . $one[\"1.a\"], \" g. \" . $one[\"1.g\"], \" m. \" . $one[\"1.m\"]);\ninsertToPep (120, 1, \"2. Non-pregnant females (>14 years)\", \" b. \" . $one[\"1.b\"], \" h. \" . $one[\"1.h\"], \" n. \" . $one[\"1.n\"]);\ninsertToPep (130, 1, \"3. Pregnant females\", \" c. \" . $one[\"1.c\"], \" i. \" . $one[\"1.i\"], \" o. \" . $one[\"1.o\"]);\ninsertToPep (140, 1, \"4. Boys (0-14 years)\", \" d. \" . $one[\"1.d\"], \" j. \" . $one[\"1.j\"], \" p. \" . $one[\"1.p\"]);\ninsertToPep (150, 1, \"5. Girls (0-14 years)\", \" e. \" . $one[\"1.e\"], \" k. \" . $one[\"1.k\"], \" q. \" . $one[\"1.q\"]);\ninsertToPep (151, 1, \"------Total\", \" f. \" . $one[\"1.f\"], \" l. \" . $one[\"1.l\"], \" r. \" . $one[\"1.r\"]);\n//insertToPep (152, 1, \"\", \"-------------------------------\", \"-------------------------------\", \"-------------------------------\");\n$qry = \"select count(*) as 'theValue' from #cMaxVitals \n\twhere patientid not in (select patientid from pepfarTable where visitDate between '$sDate' and '\" . $eDate . \"' AND (forPepPmtct = 0 OR forPepPmtct IS NULL)) and patientid in (\n\t\tselect patientid from eligibility where visitdate between '$sDate' and '$eDate' and reason in ('cd4LT200', 'tlcLT1200', 'WHOIII', 'WHOIV', 'PMTCT', 'medEligHAART', 'estPrev', 'former', 'PEP', 'eligByAge', 'eligByCond', 'eligPcr', 'WHOIII-2', 'WHOIIICond', 'OptionB+','ChildLT5ans','coinfectionTbHiv','coinfectionHbvHiv','coupleSerodiscordant','pregnantWomen','breastfeeding','patientGt50ans','nephropathieVih','protocoleTestTraitement') and (('$eDate' <= '2009-12-31' and criteriaVersion = 1) or ('$eDate' between '2009-12-31' and '2012-03-31' and criteriaVersion = 2) or ('$eDate' > '2012-03-31' and criteriaVersion in (2, 3))))\";\n/*\n select patientid from cd4Table where cd4 < 350 and cd4 != 0 and visitdate between '$sDate' and '$eDate'\n union all\n select patientID from patient where isPediatric = 1 and patientID in (select s.patientID from symptoms s, encounter e where s.pedSympWhoWtLoss2 = 1 and e.encStatus < 255 and ((e.badVisitDate != 1 or e.badVisitDate is NULL) and convert(datetime, case when (e.badVisitDate != 1 or e.badVisitDate is NULL) then e.visitDateMm + '/' + e.visitDateDd + '/' + e.visitDateYy else getdate() end) between '$sDate' and '$eDate') and s.patientID = e.patientID and s.siteCode = e.siteCode and s.visitDateDd = e.visitDateDd and s.visitDateMm = e.visitDateMm and s.visitDateYy = e.visitDateYy and s.seqNum = e.seqNum) and patientID in (select patientID from cd4table where cd4 < 350 and cd4 != 0 and visitdate between '$sDate' and '$eDate')\n union all\n select patientID from patient where isPediatric = 1 and patientID in (select m.patientID from medicalEligARVs m, encounter e where m.currentHivStage in (4, 5, 6, 7, 12, 13, 14, 15) and e.encStatus < 255 and ((e.badVisitDate != 1 or e.badVisitDate is NULL) and convert(datetime, case when (e.badVisitDate != 1 or e.badVisitDate is NULL) then e.visitDateMm + '/' + e.visitDateDd + '/' + e.visitDateYy else getdate() end) between '$sDate' and '$eDate') and m.patientID = e.patientID and m.siteCode = e.siteCode and m.visitDateDd = e.visitDateDd and m.visitDateMm = e.visitDateMm and m.visitDateYy = e.visitDateYy and m.seqNum = e.seqNum) and patientID in (select patientID from cd4table where cd4 < 350 and cd4 != 0 and visitdate between '$sDate' and '$eDate')\n union all\n select patientID from patient where isPediatric = 1 and patientID in (select patientID from v_conditions where whoStage = 'Stage IV' and visitdate between '$sDate' and '$eDate')\n union all\n select patientID from patient where isPediatric = 1 and patientID in (select s.patientID from symptoms s, encounter e where s.pedSympWhoWtLoss3 = 1 and e.encStatus < 255 and ((e.badVisitDate != 1 or e.badVisitDate is NULL) and convert(datetime, case when (e.badVisitDate != 1 or e.badVisitDate is NULL) then e.visitDateMm + '/' + e.visitDateDd + '/' + e.visitDateYy else getdate() end) between '$sDate' and '$eDate') and s.patientID = e.patientID and s.siteCode = e.siteCode and s.visitDateDd = e.visitDateDd and s.visitDateMm = e.visitDateMm and s.visitDateYy = e.visitDateYy and s.seqNum = e.seqNum)\n union all\n select patientID from patient where isPediatric = 1 and patientID in (select m.patientID from medicalEligARVs m, encounter e where m.currentHivStage > 7 and e.encStatus < 255 and ((e.badVisitDate != 1 or e.badVisitDate is NULL) and convert(datetime, case when (e.badVisitDate != 1 or e.badVisitDate is NULL) then e.visitDateMm + '/' + e.visitDateDd + '/' + e.visitDateYy else getdate() end) between '$sDate' and '$eDate') and m.patientID = e.patientID and m.siteCode = e.siteCode and m.visitDateDd = e.visitDateDd and m.visitDateMm = e.visitDateMm and m.visitDateYy = e.visitDateYy and m.seqNum = e.seqNum)\n union all\n select patientID from patient where isPediatric = 1 and patientID in (select patientID from v_medicalEligARVs where medElig in (1, 3, 5, 7) and visitdate between '$sDate' and '$eDate')\n union all\n select patientID from patient where isPediatric = 1 and patientID in (select patientID from v_medicalEligARVs where pedMedEligCd4Cnt = 1 or pedMedEligTlc = 1 or pedMedEligWho3 = 1 or pedMedEligWho4 = 1 or pedMedEligPmtct = 1 or pedMedEligFormerTherapy = 1 and visitdate between '$sDate' and '$eDate')\n union all\n select patientID from patient where (isPediatric != 1 or isPediatric is NULL) and patientID in (select patientID from v_labsCompleted where testNameEn = 'lymphocytes' and result <= '1200' and result != '' and visitdate between '$sDate' and '$eDate')\n union all\n select patientID from patient where (isPediatric != 1 or isPediatric is NULL) and patientID in (select patientID from v_conditions where whoStage = 'Stage III' and visitdate between '$sDate' and '$eDate') and patientID in (select patientID from cd4table where cd4 < 350 and cd4 != 0 and visitdate between '$sDate' and '$eDate')\n union all\n select patientID from patient where (isPediatric != 1 or isPediatric is NULL) and patientID in (select s.patientID from symptoms s, encounter e where (s.weightLossPlusTenPercMo = 1 or s.feverPlusMo = 1 or s.diarrheaPlusMo = 1) and e.encStatus < 255 and ((e.badVisitDate != 1 or e.badVisitDate is NULL) and convert(datetime, case when (e.badVisitDate != 1 or e.badVisitDate is NULL) then e.visitDateMm + '/' + e.visitDateDd + '/' + e.visitDateYy else getdate() end) between '$sDate' and '$eDate') and s.patientID = e.patientID and s.siteCode = e.siteCode and s.visitDateDd = e.visitDateDd and s.visitDateMm = e.visitDateMm and s.visitDateYy = e.visitDateYy and s.seqNum = e.seqNum) and patientID in (select patientID from cd4table where cd4 < 350 and cd4 != 0 and visitdate between '$sDate' and '$eDate')\n union all\n select patientID from patient where (isPediatric != 1 or isPediatric is NULL) and patientID in (select m.patientID from medicalEligARVs m, encounter e where e.formVersion = 1 and m.currentHivStage in (4, 5, 6, 7, 12, 13, 14, 15) and e.encStatus < 255 and ((e.badVisitDate != 1 or e.badVisitDate is NULL) and convert(datetime, case when (e.badVisitDate != 1 or e.badVisitDate is NULL) then e.visitDateMm + '/' + e.visitDateDd + '/' + e.visitDateYy else getdate() end) between '$sDate' and '$eDate') and m.patientID = e.patientID and m.siteCode = e.siteCode and m.visitDateDd = e.visitDateDd and m.visitDateMm = e.visitDateMm and m.visitDateYy = e.visitDateYy and m.seqNum = e.seqNum) and patientID in (select patientID from cd4table where cd4 < 350 and cd4 != 0 and visitdate between '$sDate' and '$eDate')\n union all\n select patientID from patient where (isPediatric != 1 or isPediatric is NULL) and patientID in (select patientID from v_conditions where whoStage = 'Stage IV' and visitdate between '$sDate' and '$eDate')\n union all\n select patientID from patient where (isPediatric != 1 or isPediatric is NULL) and patientID in (select s.patientID from symptoms s, encounter e where s.wtLossTenPercWithDiarrMo = 1 and e.encStatus < 255 and ((e.badVisitDate != 1 or e.badVisitDate is NULL) and convert(datetime, case when (e.badVisitDate != 1 or e.badVisitDate is NULL) then e.visitDateMm + '/' + e.visitDateDd + '/' + e.visitDateYy else getdate() end) between '$sDate' and '$eDate') and s.patientID = e.patientID and s.siteCode = e.siteCode and s.visitDateDd = e.visitDateDd and s.visitDateMm = e.visitDateMm and s.visitDateYy = e.visitDateYy and s.seqNum = e.seqNum)\n union all\n select patientID from patient where (isPediatric != 1 or isPediatric is NULL) and patientID in (select m.patientID from medicalEligARVs m, encounter e where (((e.formVersion != 1 or e.formVersion is NULL) and m.currentHivStage > 3) or m.currentHivStage > 7) and e.encStatus < 255 and ((e.badVisitDate != 1 or e.badVisitDate is NULL) and convert(datetime, case when (e.badVisitDate != 1 or e.badVisitDate is NULL) then e.visitDateMm + '/' + e.visitDateDd + '/' + e.visitDateYy else getdate() end) between '$sDate' and '$eDate') and m.patientID = e.patientID and m.siteCode = e.siteCode and m.visitDateDd = e.visitDateDd and m.visitDateMm = e.visitDateMm and m.visitDateYy = e.visitDateYy and m.seqNum = e.seqNum)\n union all\n select patientID from patient where (isPediatric != 1 or isPediatric is NULL) and patientID in (select m.patientID from medicalEligARVs m, encounter e where e.encStatus < 255 and ((e.badVisitDate != 1 or e.badVisitDate is NULL) and convert(datetime, case when (e.badVisitDate != 1 or e.badVisitDate is NULL) then e.visitDateMm + '/' + e.visitDateDd + '/' + e.visitDateYy else getdate() end) between '$sDate' and '$eDate') and e.siteCode = m.siteCode and e.visitDateDd = m.visitDateDd and e.visitDateMm = m.visitDateMm and e.visitDateYy = m.visitDateYy and e.patientID = m.patientID and e.seqNum = m.seqNum and ((medElig in (1, 2, 3, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15) and (e.formVersion != 1 or e.formVersion is NULL)) or (medElig in (1, 3, 5, 7) and e.formVersion = 1)))\n union all\n select patientID from patient where (isPediatric != 1 or isPediatric is NULL) and patientID in (select patientID from v_medicalEligARVs where (cd4LT200 = 1 or tlcLT1200 = 1 or WHOIII = 1 or WHOIV = 1 or PMTCT = 1 or formerARVtherapy = 1 or PEP = 1 or medEligHAART = 1) and visitdate between '$sDate' and '$eDate')\n)\";\n*/\n//\t(\n//\t\tpatientid in (select patientid from cd4Table where cd4 < 350 and cd4 != 0 and cd4 is not null) or \n//\t \tpatientid in (select patientid from v_labsCompleted where testnameen = 'lymphocytes' and result <= '1200' and result != '') or \n//\t\t(patientid in (select patientid from cd4Table where cd4 < 350 and cd4 != 0 and cd4 is not null) and \n//\t\t\tpatientid in (select patientid from v_conditions where conditionGroup = 3)) or \n//\t\tpatientid in (select patientid from v_conditions where conditionGroup = 4) or \n//\t\tpatientid in (select distinct patientid from medicalEligARVs where medElig in (1,2))\nif (DEBUG_FLAG) {\n\tprint \"***********qualified but not on ARV**********<br>\";\n\tprint $qry . \"<br>\";\n}\n$result = dbQuery ($qry);\n$value = 0;\nwhile ($row = psRowFetchAssoc ($result)) {\n\t$value = $row['theValue'];\n}\ninsertToPep (154, 1, \"\",\"Total persons enrolled\" , \"and eligible for ART\", \"\");\ninsertToPep (155, 1, \"\",\"but have not been\" , \"started on ART\", \" s. \" . $value);\n//insertToPep (156, 1, \"\",\"-------------------------------\",\"-------------------------------\", \"-------------------------------\");\n// three blanks after each major section\ninsertToPep (157, 0, \"\",\"\" , \"\", \"\" );\n\n//fill in the #2 table\ninsertToPep (199, 2, \"2. ART care - new and cumulative\",\"number of persons\",\"started\",\"\");\ninsertToPep (201, 2, \"\",\"Cumulative number of\" , \"New\", \"Cumulative number of\");\ninsertToPep (202, 2, \"\",\"persons started on\" , \"persons started on\", \"persons started on\");\ninsertToPep (203, 2, \"\",\"ART at this facility\" , \"ART at this facility\", \"ART at this facility\");\ninsertToPep (204, 2, \"\",\"at beginning of month\" , \"during the month\", \"at end of month\");\ninsertToPep (210, 2, \"1. Males (>14 years)\", \" a. \" . $two[\"2.a\"], \" g. \" . $two[\"2.g\"], \" m. \" . $two[\"2.m\"]);\ninsertToPep (220, 2, \"2. Non-pregnant females (>14 years)\", \" b. \" . $two[\"2.b\"], \" h. \" . $two[\"2.h\"], \" n. \" . $two[\"2.n\"]);\ninsertToPep (230, 2, \"3. Pregnant females\", \" c. \" . $two[\"2.c\"], \" i. \" . $two[\"2.i\"], \" o. \" . $two[\"2.o\"]);\ninsertToPep (240, 2, \"4. Boys (0-14 years)\", \" d. \" . $two[\"2.d\"], \" j. \" . $two[\"2.j\"], \" p. \" . $two[\"2.p\"]);\ninsertToPep (250, 2, \"5. Girls (0-14 years)\", \" e. \" . $two[\"2.e\"], \" k. \" . $two[\"2.k\"], \" q. \" . $two[\"2.q\"]);\ninsertToPep (251, 2, \"------Total\", \" f. \" . $two[\"2.f\"], \" l. \" . $two[\"2.l\"], \" r. \" . $two[\"2.r\"]);\n\n$beginM = date(\"Y-m-d\", $unixEndDate);\n$endM = date(\"Y-m-d\", strtotime(\"+1 months\",$unixEndDate));\n$qry = \"select count(distinct patientid) from pepfarTable where rtrim(sitecode) = '\" . $siteCode . \"' AND (forPepPmtct = 0 OR forPepPmtct IS NULL) and\n\tpatientid in (select patientid from v_vitals where transferin = 1 and visitdate between '\" . $beginM . \"' and '\" . $endM . \"')\";\n$result = dbQuery($qry);\nif (DEBUG_FLAG) echo \"<br />*****Transfers in********<br />\" . date('h:i:s A') . $qry . \"<br />\";\n$row = psRowFetch ($result);\n$value = $row[0];\ninsertToPep (254, 2, \"\",\"No. of persons on ART\" , \"already enrolled\", \"\");\ninsertToPep (255, 2, \"\",\"who transferred into\" , \"facility last month\", \" s. \" . $value);\n//insertToPep (256, 2, \"\",\"-------------------------------\",\"-------------------------------\", \"-------------------------------\");\n\n$beginM = date(\"Y-m-d\", $unixEndDate);\n$endM = date(\"Y-m-d\", strtotime(\"+1 months\",$unixEndDate));\n$twoM = date(\"Y-m-d\", strtotime(\"-1 months\",$unixEndDate));\n$threeM = date(\"Y-m-d\", strtotime(\"-2 months\",$unixEndDate));\n$qry = \"select count(distinct p.patientid) from pepfarTable p, cohortTable s where rtrim(p.sitecode) = '\" . $siteCode . \"' and\n\tp.patientid = s.patientid and visitdate between '\" . $beginM . \"' and '\" . $endM . \"' AND (p.forPepPmtct = 0 OR p.forPepPmtct IS NULL) and p.patientid not in (\n\t\tselect patientid from pepfarTable where visitDate = '\" . $twoM . \"' and firstVisit <= '\" . $threeM . \"' AND (forPepPmtct = 0 OR forPepPmtct IS NULL))\";\n$result = dbQuery($qry);\nif (DEBUG_FLAG) echo \"<br />****Restarted*********<br />\" . date('h:i:s A') . $qry . \"<br />\";\n$row = psRowFetch ($result);\n$value = $row[0];\ninsertToPep (257, 2, \"\",\"No. of persons who\" , \"restarted ART during\", \"\");\ninsertToPep (258, 2, \"\",\"month after stopping\" , \"for at least 1 month\", \" t. \" . $value);\n//insertToPep (260, 2, \"\",\"-------------------------------\",\"-------------------------------\", \"-------------------------------\");\n\n$qry = \"create table #cohort (patientid varchar(11))\";\ndbQuery($qry);\nif (DEBUG_FLAG) echo \"<br />****Baseline CD4 counts/Median CD4 values<br />\" . date('h:i:s A') . $qry . \"<br />\";\n$qry = \"insert into #cohort select patientid from v_prescriptions d, drugLookup l where d.drugid = l.drugid and l.druggroup in ('Pls','NNRTIs','NRTIs')\n and d.sitecode like '\" . $siteCode . \"' group by patientid having month(min(d.visitdate)) = month('\" . $beginM . \"') and year(min(d.visitdate)) = year('\" . $beginM . \"')\";\ndbQuery($qry);\nif (DEBUG_FLAG) echo \"<br />\" . date('h:i:s A') . $qry . \"<br />\";\n$qry = \"select count(distinct c.patientid) as numPatients, avg(cd4) as medianCD4 from #cohort c, cd4Table t where c.patientid = t.patientid and t.visitdate < '\" . $endM . \"'\";\n$result = dbQuery($qry);\nif (DEBUG_FLAG) echo \"<br />\" . date('h:i:s A') . $qry . \"<br />\";\n$row = psRowFetchAssoc ($result);\n$numPatients = $row['numPatients'];\n$medianCD4 = $row['medianCD4'];\ninsertToPep (261, 2, \"\",\"No. of baseline CD4*\" , \"counts for persons who\", \"\");\ninsertToPep (262, 2, \"\",\"started ART in the\" , \" last month\", \" u. \" . $numPatients);\n\ninsertToPep (264, 2, \"\",\"Median baseline CD4* count\" , \"for persons who started ART\", \"\");\ninsertToPep (265, 2, \"\",\" in the last\" , \"month\", \" v. \" . $medianCD4);\ninsertToPep (266, 0, \"\",\"\" , \"\", \"\" );\n\n/*fill in the #3 table\ninsertToPep (280, 3, \"3. Change in CD4 count and\",\"adherence to ART for 6-\",\"mo and 12-mo cohorts\",\"\");\ninsertToPep (282, 3, \"For persons who have completed\" , \"6 months of ART\", \"12 months of ART\", \"\");\ninsertToPep (285, 3, \"Cohort started in (month/year)\", \" a. \" . $three[\"3.a\"], \" i. \" . $three[\"3.i\"], \"\");\ninsertToPep (286, 3, \"Number of persons in cohort\", \" b. \" . $three[\"3.b\"], \" j. \" . $three[\"3.j\"], \"\");\ninsertToPep (287, 3, \"Number of baseline CD4 counts\", \" c. \" . $three[\"3.c\"], \" k. \" . $three[\"3.k\"], \"\");\ninsertToPep (288, 3, \"Median baseline CD4 count\", \" d. \" . $three[\"3.d\"], \" l. \" . $three[\"3.l\"], \"\");\ninsertToPep (307, 3, \"\" , \"after 6 months of ART\", \"after 12 months of ART\", \"\");\ninsertToPep (309, 3, \"Number of persons in cohort\", \" e. \" . $three[\"3.e\"], \" m. \" . $three[\"3.m\"], \"\");\ninsertToPep (310, 3, \"Number of CD4 counts\", \" f. \" . $three[\"3.f\"], \" n. \" . $three[\"3.n\"], \"\");\ninsertToPep (311, 3, \"Median CD4 count\", \" g. \" . $three[\"3.g\"], \" o. \" . $three[\"3.o\"], \"\");\ninsertToPep (312, 3, \"Number of persons who picked up ARVs\", \"\", \"\", \"\");\ninsertToPep (313, 3, \"each month for 6 months\", \" h. \" . $three[\"3.h\"], \"\", \"\");\ninsertToPep (314, 3, \"Number of persons who picked up ARVs\",\"\", \"\", \"\");\ninsertToPep (315, 3, \"each month for 12 months\",\"\", \" p. \" . $three[\"3.p\"], \"\");\n*/\n\n//fill in the #3 table\ninsertToPep (300, 2, \"3. Nombre de personnes\", \" sous ARV et enrole dans le \", \"progamme qui ete refere \",\"par un autre site au cours du\");\ninsertToPep (301, 2, \"\",\"Nombre cumule de\" , \"Nombre de\", \"Nombre cumule de\");\ninsertToPep (302, 2, \"\",\"personnes referees\" , \"Personnes referees\", \"personnes referees par un\");\ninsertToPep (303, 2, \"\",\"par un autre site\" , \"par un autre site\", \"autre site a la fin du mois\");\ninsertToPep (304, 2, \"\",\"durant le mois\" , \"durant le mois du rapport\", \"de ce rapport\");\ninsertToPep (310, 2, \"1. Males (>14 years)\", \" a. \" . $three[\"3.a\"], \" g. \" . $three[\"3.g\"], \" m. \" . $three[\"3.m\"]);\ninsertToPep (320, 2, \"2. Non-pregnant females (>14 years)\", \" b. \" . $three[\"3.b\"], \" h. \" . $three[\"3.h\"], \" n. \" . $three[\"3.n\"]);\ninsertToPep (330, 2, \"3. Pregnant females\", \" c. \" . $three[\"3.c\"], \" i. \" . $three[\"3.i\"], \" o. \" . $three[\"3.o\"]);\ninsertToPep (340, 2, \"4. Boys (0-14 years)\", \" d. \" . $three[\"3.d\"], \" j. \" . $three[\"3.j\"], \" p. \" . $three[\"3.p\"]);\ninsertToPep (350, 2, \"5. Girls (0-14 years)\", \" e. \" . $three[\"3.e\"], \" k. \" . $three[\"3.k\"], \" q. \" . $three[\"3.q\"]);\ninsertToPep (351, 2, \"------Total\", \" f. \" . $three[\"3.f\"], \" l. \" . $three[\"3.l\"], \" r. \" . $three[\"3.r\"]);\ninsertToPep (352, 0, \"\",\"\" , \"\", \"\" );\n\n//fill in the #4 table\ninsertToPep (400, 2, \"4. Personnes prises en charge\", \"placees sous INH\", \"prophylactique\",\"\");\ninsertToPep (401, 2, \"\",\"Cumulative number of\" , \"New\", \"Cumulative number of\");\ninsertToPep (402, 2, \"\",\"persons started on\" , \"persons started on\", \"persons started on\");\ninsertToPep (403, 2, \"\",\"INH at this facility\" , \"INH at this facility\", \"INH at this facility\");\ninsertToPep (404, 2, \"\",\"at beginning of month\" , \"during the month\", \"at end of month\");\ninsertToPep (410, 2, \"1. Males (>14 years)\", \" a. \" . $four[\"4.a\"], \" g. \" . $four[\"4.g\"], \" m. \" . $four[\"4.m\"]);\ninsertToPep (420, 2, \"4. Non-pregnant females (>14 years)\", \" b. \" . $four[\"4.b\"], \" h. \" . $four[\"4.h\"], \" n. \" . $four[\"4.n\"]);\ninsertToPep (430, 2, \"3. Pregnant females\", \" c. \" . $four[\"4.c\"], \" i. \" . $four[\"4.i\"], \" o. \" . $four[\"4.o\"]);\ninsertToPep (440, 2, \"4. Boys (0-14 years)\", \" d. \" . $four[\"4.d\"], \" j. \" . $four[\"4.j\"], \" p. \" . $four[\"4.p\"]);\ninsertToPep (450, 2, \"5. Girls (0-14 years)\", \" e. \" . $four[\"4.e\"], \" k. \" . $four[\"4.k\"], \" q. \" . $four[\"4.q\"]);\ninsertToPep (451, 2, \"------Total\", \" f. \" . $four[\"4.f\"], \" l. \" . $four[\"4.l\"], \" r. \" . $four[\"4.r\"]);\ninsertToPep (452, 0, \"\",\"\" , \"\", \"\" );\n\n//fill in the #5 table\ninsertToPep (500, 2, \"5. Personnes prises en\",\" charge places sours \", \"CTX prophylactique\",\"\");\ninsertToPep (501, 2, \"\",\"Cumulative number of\" , \"New\", \"Cumulative number of\");\ninsertToPep (502, 2, \"\",\"persons started on\" , \"persons started on\", \"persons started on\");\ninsertToPep (503, 2, \"\",\"CTX at this facility\" , \"CTX at this facility\", \"CTX at this facility\");\ninsertToPep (504, 2, \"\",\"at beginning of month\" , \"during the month\", \"at end of month\");\ninsertToPep (510, 2, \"1. Males (>14 years)\", \" a. \" . $five[\"5.a\"], \" g. \" . $five[\"5.g\"], \" m. \" . $five[\"5.m\"]);\ninsertToPep (520, 2, \"2. Non-pregnant females (>14 years)\", \" b. \" . $five[\"5.b\"], \" h. \" . $five[\"5.h\"], \" n. \" . $five[\"5.n\"]);\ninsertToPep (530, 2, \"3. Pregnant females\", \" c. \" . $five[\"5.c\"], \" i. \" . $five[\"5.i\"], \" o. \" . $five[\"5.o\"]);\ninsertToPep (540, 2, \"4. Boys (0-14 years)\", \" d. \" . $five[\"5.d\"], \" j. \" . $five[\"5.j\"], \" p. \" . $five[\"5.p\"]);\ninsertToPep (550, 2, \"5. Girls (0-14 years)\", \" e. \" . $five[\"5.e\"], \" k. \" . $five[\"5.k\"], \" q. \" . $five[\"5.q\"]);\ninsertToPep (551, 2, \"------Total\", \" f. \" . $five[\"5.f\"], \" l. \" . $five[\"5.l\"], \" r. \" . $five[\"5.r\"]);\ninsertToPep (552, 0, \"\",\"\" , \"\", \"\" );\n\n//fill in the #6 table\ninsertToPep (600, 2, \"6. Personnes prises en \",\"charge qui ont developpe \", \"une ADI aucours de\",\"leur suivi \");\ninsertToPep (601, 2, \"\",\"Nombre Cumule de personnes qui\" , \"Nombre nouvellement de personnes\", \"Nombre cumule de personnes qui\");\ninsertToPep (602, 2, \"\",\"ont developpe une ADI au\" , \"qui ont developpe une ADI au\", \"ont developpe une ADI au\");\ninsertToPep (603, 2, \"\",\"niveau du site au dernier jour\" , \"niveau du site au cours du mois\", \"niveau du site a la fin du\");\ninsertToPep (604, 2, \"\",\"du mois precedant ce rapport\" , \"de ce rapport\", \"mois de ce rapport\");\ninsertToPep (610, 2, \"1. Hommes (>14 years)\", \" a. \" . $six[\"6.a\"], \" g. \" . $six[\"6.g\"], \" m. \" . $six[\"6.m\"]);\ninsertToPep (620, 2, \"2. Femmes non enceintes (>14 years)\", \" b. \" . $six[\"6.b\"], \" h. \" . $six[\"6.h\"], \" n. \" . $six[\"6.n\"]);\ninsertToPep (630, 2, \"3. Femmes enceintes\", \" c. \" . $six[\"6.c\"], \" i. \" . $six[\"6.i\"], \" o. \" . $six[\"6.o\"]);\ninsertToPep (640, 2, \"4. Garcons (0-14 years)\", \" d. \" . $six[\"6.d\"], \" j. \" . $six[\"6.j\"], \" p. \" . $six[\"6.p\"]);\ninsertToPep (650, 2, \"5. Filles (0-14 years)\", \" e. \" . $six[\"6.e\"], \" k. \" . $six[\"6.k\"], \" q. \" . $six[\"6.q\"]);\ninsertToPep (651, 2, \"------Total\", \" f. \" . $six[\"6.f\"], \" l. \" . $six[\"6.l\"], \" r. \" . $six[\"6.r\"]);\ninsertToPep (652, 0, \"\",\"\" , \"\", \"\" );\n\n//fill in the #7 table\ninsertToPep (700, 2, \"7. Nombre de personnes VIH+ \",\"ayant recu to traitement\", \"anti-TB\",\"\");\ninsertToPep (701, 2, \"\",\"Cumulative number of\" , \"New\", \"Cumulative number of\");\ninsertToPep (702, 2, \"\",\"persons started on\" , \"persons started on\", \"persons started on\");\ninsertToPep (703, 2, \"\",\"anti-TB at this facility\" , \"anti-TB at this facility\", \"anti-TB at this facility\");\ninsertToPep (704, 2, \"\",\"at beginning of month\" , \"during the month\", \"at end of month\");\ninsertToPep (710, 2, \"1. Males (>14 years)\", \" a. \" . $seven[\"7.a\"], \" g. \" . $seven[\"7.g\"], \" m. \" . $seven[\"7.m\"]);\ninsertToPep (720, 2, \"2. Non-pregnant females (>14 years)\", \" b. \" . $seven[\"7.b\"], \" h. \" . $seven[\"7.h\"], \" n. \" . $seven[\"7.n\"]);\ninsertToPep (730, 2, \"3. Pregnant females\", \" c. \" . $seven[\"7.c\"], \" i. \" . $seven[\"7.i\"], \" o. \" . $seven[\"7.o\"]);\ninsertToPep (740, 2, \"4. Boys (0-14 years)\", \" d. \" . $seven[\"7.d\"], \" j. \" . $seven[\"7.j\"], \" p. \" . $seven[\"7.p\"]);\ninsertToPep (770, 2, \"5. Girls (0-14 years)\", \" e. \" . $seven[\"7.e\"], \" k. \" . $seven[\"7.k\"], \" q. \" . $seven[\"7.q\"]);\ninsertToPep (771, 2, \"------Total\", \" f. \" . $seven[\"7.f\"], \" l. \" . $seven[\"7.l\"], \" r. \" . $seven[\"7.r\"]);\ninsertToPep (772, 0, \"\",\"\" , \"\", \"\" );\n\n//fill in the #8 table\ninsertToPep (800, 4, \"8. Regimen at end of month\",\"Male\",\"Female\",\"Total\");\ninsertToPep (801, 4, \"On 1st-Line ART regimen\",\"\",\"\",\"\");\ninsertToPep (803, 4, \"8.1 Adults (>14 years)\", \"\", \"\", \"\");\ninsertToPep (805, 4, \"---d4T-3TC-NVP\", \" a. \" . $eight[\"8.1.a\"], \" j. \" . $eight[\"8.1.j\"], \"\");\ninsertToPep (806, 4, \"---d4T-3TC-EFV\", \" b. \" . $eight[\"8.1.b\"], \" k. \" . $eight[\"8.1.k\"], \"\");\ninsertToPep (807, 4, \"---ZDV-3TC-NVP\", \" c. \" . $eight[\"8.1.c\"], \" l. \" . $eight[\"8.1.l\"], \"\");\ninsertToPep (808, 4, \"---ZDV-3TC-EFV\", \" d. \" . $eight[\"8.1.d\"], \" m. \" . $eight[\"8.1.m\"], \"\");\ninsertToPep (809, 4, \"---ZDV-3TC-ABC\", \" e. \" . $eight[\"8.1.e\"], \" n. \" . $eight[\"8.1.n\"], \"\");\ninsertToPep (810, 4, \"Adults on 1st-Line regimens\", \" i. \" . $eight[\"8.1.i\"], \" r. \" . $eight[\"8.1.r\"], \" s. \" . $eight[\"8.1.s\"]);\ninsertToPep (811, 4, \"8.2 Children (0-14 years)\", \"\", \"\", \"\");\ninsertToPep (812, 4, \"---d4T-3TC-NVP\", \" a. \" . $eight[\"8.2.a\"], \" j. \" . $eight[\"8.2.j\"], \"\");\ninsertToPep (813, 4, \"---d4T-3TC-EFV\", \" b. \" . $eight[\"8.2.b\"], \" k. \" . $eight[\"8.2.k\"], \"\");\ninsertToPep (814, 4, \"---ZDV-3TC-NVP\", \" c. \" . $eight[\"8.2.c\"], \" l. \" . $eight[\"8.2.l\"], \"\");\ninsertToPep (815, 4, \"---ZDV-3TC-EFV\", \" d. \" . $eight[\"8.2.d\"], \" m. \" . $eight[\"8.2.m\"], \"\");\ninsertToPep (815, 4, \"---ZDV-3TC-ABC\", \" e. \" . $eight[\"8.2.e\"], \" n. \" . $eight[\"8.2.n\"], \"\");\ninsertToPep (816, 4, \"Children on 1st-Line regimens\", \" i. \" . $eight[\"8.2.i\"], \" s. \" . $eight[\"8.2.s\"], \" u. \" . $eight[\"8.2.u\"]);\ninsertToPep (818, 4, \"Total on 1st-Line regimens\", \" j. \" . $eight[\"8.2.j\"], \" t. \" . $eight[\"8.2.t\"], \" v. \" . $eight[\"8.2.v\"]);\ninsertToPep (819, 4, \"\", \"\" , \"\", \"\" );\ninsertToPep (821, 4, \"\", \"\" , \"\", \"\" );\ninsertToPep (822, 4, \"On 2nd-line ART regimen\",\"\",\"\",\"\");\ninsertToPep (824, 4, \"8.3 Adults (>14 years)\", \"\", \"\", \"\");\ninsertToPep (826, 4, \"---ZDV-ddI-LPV/r\", \" a. \" . $eight[\"8.3.a\"], \" i. \" . $eight[\"8.3.i\"], \"\");\ninsertToPep (827, 4, \"---d4T-ddI-LPV/r\", \" b. \" . $eight[\"8.3.b\"], \" j. \" . $eight[\"8.3.j\"], \"\");\ninsertToPep (829, 4, \"Adults on 2nd-Line regimens\", \" h. \" . $eight[\"8.3.h\"], \" p. \" . $eight[\"8.3.p\"], \" q. \" . $eight[\"8.3.q\"]);\ninsertToPep (831, 4, \"8.4 Children (0-14 years)\", \"\", \"\", \"\");\ninsertToPep (833, 4, \"---ZDV-ddI-LPV/r\", \" a. \" . $eight[\"8.4.a\"], \" k. \" . $eight[\"8.4.k\"], \"\");\ninsertToPep (834, 4, \"---d4T-ddI-LPV/r\", \" b. \" . $eight[\"8.4.b\"], \" l. \" . $eight[\"8.4.l\"], \"\");\ninsertToPep (836, 4, \"Children on 2nd-Line regimens\", \" h. \" . $eight[\"8.4.h\"], \" r. \" . $eight[\"8.4.r\"], \" u. \" . $eight[\"8.4.u\"]);\ninsertToPep (838, 4, \"Total on 2nd-Line regimens\", \" i. \" . $eight[\"8.4.i\"], \" s. \" . $eight[\"8.4.s\"], \" v. \" . $eight[\"8.4.v\"]);\ninsertToPep (839, 4, \"\", \"\" , \"\", \"\" );\ninsertToPep (840, 4, \"Total on all regimens\", \" j. \" . $eight[\"8.4.j\"], \" t. \" . $eight[\"8.4.t\"], \" w. \" . $eight[\"8.4.w\"]);\ninsertToPep (852, 0, \"\",\"\" , \"\", \"\" );\n\n//fill in the #9 table\ninsertToPep (900, 5, \"9. Numbre patients \",\"ayant arrete la \",\"prise des ARV\",\"\");\ninsertToPep (910, 5, \"\", \"Hommes\",\"Femmes\",\"Total\");\ninsertToPep (920, 5, \"D&eacute;c&eacute;d&eacute;s\",\"a. \" . $nine[\"9.a\"], \"f. \" . $nine[\"9.f\"], \"k. \" . $nine[\"9.k\"]);\ninsertToPep (930, 5, \"Discontinuations\" ,\"b. \" . $nine[\"9.b\"], \"g. \" . $nine[\"9.g\"], \"l. \" . $nine[\"9.l\"]);\ninsertToPep (940, 5, \"Perte de vue\" ,\"c. \" . $nine[\"9.c\"], \"h. \" . $nine[\"9.h\"], \"m. \" . $nine[\"9.m\"]);\ninsertToPep (950, 5, \"Refere ailleurs\" ,\"d. \" . $nine[\"9.d\"], \"i. \" . $nine[\"9.i\"], \"n. \" . $nine[\"9.n\"]);\ninsertToPep (960, 5, \"Total patients Perdu de vue\" ,\"e. \" . $nine[\"9.e\"], \"j. \" . $nine[\"9.j\"], \"o. \" . $nine[\"9.o\"]);\ninsertToPep (962, 0, \"\", \"\" , \"\", \"\" );\ninsertToPep (963, 0, \"\", \"\" , \"\", \"\" );\n\n/*fill in the #5 table\ninsertToPep (500, 5, \"5.1 Number of persons who did not\",\"\",\"\",\"5.2 Of those who did not\");\ninsertToPep (501, 5, \"pick up their ART regimens\",\"Male\",\"Female\",\"pick up regimen in last 1\");\ninsertToPep (502, 5, \"1. For last 1 month (only)\", \" a. \" . $five[\"5.1.a\"], \" e. \" . $five[\"5.1.e\"], \" month (optional)\");\ninsertToPep (503, 5, \"2. For last 2 month (only)\", \" b. \" . $five[\"5.1.b\"], \" f. \" . $five[\"5.1.f\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"1. Lost to followup \" . $five[\"5.2.a\"]);\ninsertToPep (504, 5, \"3. For last 3 or more months\", \" c. \" . $five[\"5.1.c\"], \" g. \" . $five[\"5.1.g\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"2. Died \" . $five[\"5.2.b\"]);\ninsertToPep (505, 5, \" Subtotal\", \" d. \" . $five[\"5.1.d\"], \" h. \" . $five[\"5.1.h\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"3. Stopped ART \" . $five[\"5.2.c\"]);\ninsertToPep (506, 5, \" Total persons who did not pick\" ,\"up their ART regimens\", \" i. \" . $five[\"5.1.i\"], \"8. Transferred out \" . $five[\"5.2.d\"]);\n*/\n}", "title": "" }, { "docid": "334504d351d471e460bf8d895283b383", "score": "0.5506787", "text": "public function ORACLE_GETDATA_REPORT_ITEM($datS)\n\t\t{\n\t\t\t$daterequest = date( 'Y/m/d', strtotime($datS) );\n\t\t\t$lastmonth = date('t', strtotime($daterequest));\n\t\t\t$thisMonth = (int)date('m');\n\t\t\t$runsMonth = (int)date('m', strtotime($daterequest));\t\t\n\t\t\t$dateType = ( $thisMonth <= $runsMonth) ? 1 : 2;\n\t\t\t//echo date('t dS', strtotime($daterequest) ); exit;\n\t\t\t$strSum[\"l1\"] = date( 'Y/m/d', strtotime($datS) );\n\t\t\t$strSum[\"l2\"] = date( 'Y/m/t', strtotime($datS) );\n\t\t\t$srtDays=\"\";\n\t\t\tforeach( range(1,$lastmonth) as $ind )\n\t\t\t{\n\t\t\t\t$alias1 = date('dS', strtotime(\"+\".($ind-1).\" day\", strtotime($daterequest) ) );\n\t\t\t\t$dateCn = date('Y/m/d', strtotime(\"+\".($ind-1).\" day\", strtotime($daterequest) ) );\n\t\t\t\t$srtDays .= sprintf( \",NVL(SUM(CASE WHEN A.STATUS = $dateType AND TO_CHAR(A.PDATE,'YYYY/MM/DD') = '%s' THEN A.QTY END ),0) AS \\\"%s\\\" \\n\",$dateCn, $alias1 );\n\t\t\t\t//$strSum[\"l2\"] .= sprintf( \",NVL(SUM(CASE WHEN A.STATUS = $dateType AND TO_CHAR(A.PDATE,'YYYY/MM/DD') = TO_CHAR(TRUNC(ADD_MONTHS('%s',1),'MM')+%s,'YYYY/MM/DD') THEN A.QTY END ),0) AS date%s \\n\", $daterequest, $ind, $ind );\n\t\t\t}\t\t\t\n\t\t\t$sql_str = sprintf(\"\n\t\t\tSELECT\n\t\t\t VM.PARENT_SEC_CD AS PD\n\t\t\t,A.LINE_CD AS \\\"LINE CD\\\"\n\t\t\t,A.LINE_NAME AS \\\"LINE NAME\\\"\n\t\t\t,MP.MODEL\n\t\t\t,A.ITEM_CD AS \\\"ITEM CD\\\"\n\t\t\t,A.ITEM_NAME AS \\\"ITEM NAME\\\"\n\t\t\t--\n\t\t\t%s\n\t\t\tFROM\n\t\t\t(SELECT\n\t\t\t 1 AS STATUS\n\t\t\t,TD.PLANT_CD AS PLANT\n\t\t\t,TD.SOURCE_CD AS LINE_CD\n\t\t\t,VD.SEC_NM AS LINE_NAME\n\t\t\t,TD.ITEM_CD\n\t\t\t,MI.ITEM_NAME\n\t\t\t--,MP.MODEL\n\t\t\t,TD.ACPT_PLAN_DATE AS PDATE\n\t\t\t,TD.ODR_QTY AS QTY\n\t\t\tFROM\n\t\t\t (SELECT * FROM T_OD WHERE OD_TYP = 2 AND OUTSIDE_TYP = 1 AND NOT (ODR_STS_TYP = 9 AND TOTAL_RCV_QTY = 0)) TD\n\t\t\t,VM_DEPARTMENT VD\n\t\t\t,M_ITEM MI\n\t\t\t--,M_PLANT_ITEM MP \n\t\t\tWHERE\n\t\t\t TD.ITEM_CD = MI.ITEM_CD(+)\n\t\t\tAND TD.SOURCE_CD = VD.SEC_CD(+)\n\t\t\tAND NOT(TD.ODR_STS_TYP = 9 AND TD.TOTAL_RCV_QTY = 0)\n\n\t\t\tUNION ALL\n\n\t\t\tSELECT\n\t\t\t 2 AS STATUS\n\t\t\t,TR.PLANT_CD AS PLANT\n\t\t\t,TR.WS_CD AS LINE_CD\n\t\t\t,VD.SEC_NM AS LINE_NAME\n\t\t\t,TR.ITEM_CD AS ITEM_CD\n\t\t\t,MI.ITEM_NAME AS ITEM_NAME\n\t\t\t--,MP.MODEL\n\t\t\t,TR.OPR_DATE AS PDATE\n\t\t\t,TR.ACPT_QTY AS QTY\n\t\t\tFROM\n\t\t\t T_OPR_RSLT TR\n\t\t\t,M_ITEM MI\n\t\t\t,VM_DEPARTMENT VD\n\t\t\t--,M_PLANT_ITEM MP\n\t\t\tWHERE\n\t\t\tTR.ITEM_CD = MI.ITEM_CD(+)\n\t\t\tAND TR.WS_CD = VD.SEC_CD(+)\n\t\t\t--AND TR.ITEM_CD = MP.ITEM_CD(+)\n\t\t\t) A\n\t\t\t,VM_DEPARTMENT_CLASS VM\n\t\t\t,VM_DEPARTMENT VDD\n\t\t\t,M_PLANT_ITEM MP\n\t\t\tWHERE\n\t\t\tA.LINE_CD = VM.COMP_SEC_CD(+)\n\t\t\tAND A.LINE_CD = VDD.SEC_CD(+)\n\t\t\tAND A.PLANT = MP.PLANT_CD\n\t\t\tAND A.ITEM_CD = MP.ITEM_CD(+)\n\t\t\t--AND VM.PARENT_SEC_CD = 'K1PD01'\n\t\t\t--AND A.ITEM_CD = '5JX371-3590'\n\t\t\tGROUP BY\n\t\t\t VM.PARENT_SEC_CD\n\t\t\t,A.LINE_CD\n\t\t\t,A.LINE_NAME\n\t\t\t,A.ITEM_CD\n\t\t\t,A.ITEM_NAME\n\t\t\t,MP.MODEL\n\t\t\tORDER BY\n\t\t\t VM.PARENT_SEC_CD\n\t\t\t,A.LINE_CD\n\t\t\t,A.ITEM_CD\"\n\t\t\t,$srtDays\n\t\t\t);\n\t\t\t//echo $sql_str; exit;\n\t\t\treturn $sql_str;\n\t\t}", "title": "" }, { "docid": "bea556d17be1f4a33905de5e9afce067", "score": "0.55043393", "text": "public function getAllByDate($date)\n {\n $parameters = get_defined_vars();\n $purchaseList = array();\n\n try {\n $purchaseAttributes = array_keys(Purchase::getAttributes());\n $categoryAttributes = array_keys(Category::getAttributes());\n $eventAttributes = array_keys(Event::getAttributes());\n $eventByDateAttributes = array_keys(EventByDate::getAttributes());\n $seatsByEventAttributes = array_keys(SeatsByEvent::getAttributes());\n $purchaseLineAttributes = array_keys(PurchaseLine::getAttributes());\n\n\n $query = \"SELECT *\n FROM \" . $this->tableName .\" P\n INNER JOIN \".$this->tableNamePurchaseLines.\" PL\n ON P.idPurchase = PL.idPurchase\n INNER JOIN \".$this->tableNameSeatsByEvent.\" SE\n ON PL.idSeatsByEvent = SE.idSeatsByEvent\n INNER JOIN \".$this->tableNameEventByDate.\" ED\n ON SE.idEventByDate = ED.idEventByDate\n INNER JOIN \".$this->tableNameEvent.\" E\n ON ED.idEvent = E.idEvent\n INNER JOIN \".$this->tableNameCategory.\" C\n ON E.idCategory = C.idCategory\n WHERE P.enabled = 1 \n AND P.date = :\".key($parameters);\n\n $resultSet = $this->connection->Execute($query, $parameters); \n \n $i=0;\n foreach ($resultSet as $row) {\n if (!isset($purchaseList[0]) || ($purchaseList[$i-1]->getIdPurchase() != $row[\"idPurchase\"])) { \n $purchaseList[$i] = new Purchase();\n foreach ($purchaseAttributes as $value) {\n $purchaseList[$i]->__set($value, $row[$value]);\n }\n $i++;\n }\n\n $category = new Category();\n foreach ($categoryAttributes as $value) {\n $category->__set($value, $row[$value]);\n }\n\n $event = new Event();\n foreach ($eventAttributes as $value) {\n $event->__set($value, $row[$value]);\n }\n\n $eventByDate = new EventByDate();\n foreach ($eventByDateAttributes as $value) {\n $eventByDate->__set($value, $row[$value]);\n }\n\n $seatsByEvent = new SeatsByEvent();\n foreach ($seatsByEventAttributes as $value) {\n $seatsByEvent->__set($value, $row[$value]);\n }\n\n $purchaseLine = new PurchaseLine();\n foreach ($purchaseLineAttributes as $value) {\n $purchaseLine->__set($value, $row[$value]);\n }\n\n $event->setCategory($category);\n $eventByDate->setEvent($event);\n $seatsByEvent->setEventByDate($eventByDate);\n $purchaseLine->setSeatsByEvent($seatsByEvent);\n\n $purchaseList[$i-1]->addPurchaseLines($purchaseLine);\n }\n \n } catch (PDOException $ex) {\n throw new Exception (__METHOD__.\" error: \".$ex->getMessage());\n } catch (Exception $ex) {\n throw new Exception (__METHOD__.\" error: \".$ex->getMessage());\n }\n \n return $purchaseList;\n }", "title": "" }, { "docid": "167a326acba0c5714bd63aad3ec8c2b3", "score": "0.5498109", "text": "static function getFavItems($report) {\r\n global $user;\r\n $mdb2 = getConnection();\r\n\r\n // Determine these once as they are used in multiple places in this function.\r\n $canViewReports = $user->can('view_reports');\r\n $isClient = $user->isClient();\r\n\r\n $group_by_option = $report['group_by'];\r\n $convertTo12Hour = ('%I:%M %p' == $user->time_format) && ($report['show_start'] || $report['show_end']);\r\n\r\n // Prepare a query for time items in tt_log table.\r\n $fields = array(); // An array of fields for database query.\r\n array_push($fields, 'l.id as id');\r\n array_push($fields, '1 as type'); // Type 1 is for tt_log entries.\r\n array_push($fields, 'l.date as date');\r\n if($canViewReports || $isClient)\r\n array_push($fields, 'u.name as user');\r\n // Add client name if it is selected.\r\n if ($report['show_client'] || 'client' == $group_by_option)\r\n array_push($fields, 'c.name as client');\r\n // Add project name if it is selected.\r\n if ($report['show_project'] || 'project' == $group_by_option)\r\n array_push($fields, 'p.name as project');\r\n // Add task name if it is selected.\r\n if ($report['show_task'] || 'task' == $group_by_option)\r\n array_push($fields, 't.name as task');\r\n // Add custom field.\r\n $include_cf_1 = $report['show_custom_field_1'] || 'cf_1' == $group_by_option;\r\n if ($include_cf_1) {\r\n $custom_fields = new CustomFields($user->group_id);\r\n $cf_1_type = $custom_fields->fields[0]['type'];\r\n if ($cf_1_type == CustomFields::TYPE_TEXT) {\r\n array_push($fields, 'cfl.value as cf_1');\r\n } elseif ($cf_1_type == CustomFields::TYPE_DROPDOWN) {\r\n array_push($fields, 'cfo.value as cf_1');\r\n }\r\n }\r\n // Add start time.\r\n if ($report['show_start']) {\r\n array_push($fields, \"l.start as unformatted_start\");\r\n array_push($fields, \"TIME_FORMAT(l.start, '%k:%i') as start\");\r\n }\r\n // Add finish time.\r\n if ($report['show_end'])\r\n array_push($fields, \"TIME_FORMAT(sec_to_time(time_to_sec(l.start) + time_to_sec(l.duration)), '%k:%i') as finish\");\r\n // Add duration.\r\n if ($report['show_duration'])\r\n array_push($fields, \"TIME_FORMAT(l.duration, '%k:%i') as duration\");\r\n // Add note.\r\n if ($report['show_note'])\r\n array_push($fields, 'l.comment as note');\r\n // Handle cost.\r\n $includeCost = $report['show_cost'];\r\n if ($includeCost) {\r\n if (MODE_TIME == $user->tracking_mode)\r\n array_push($fields, \"cast(l.billable * coalesce(u.rate, 0) * time_to_sec(l.duration)/3600 as decimal(10,2)) as cost\"); // Use default user rate.\r\n else\r\n array_push($fields, \"cast(l.billable * coalesce(upb.rate, 0) * time_to_sec(l.duration)/3600 as decimal(10,2)) as cost\"); // Use project rate for user.\r\n array_push($fields, \"null as expense\");\r\n }\r\n // Add paid status.\r\n if ($canViewReports && $report['show_paid'])\r\n array_push($fields, 'l.paid as paid');\r\n // Add IP address.\r\n if ($canViewReports && $report['show_ip']) {\r\n array_push($fields, 'l.created as created');\r\n array_push($fields, 'l.created_ip as created_ip');\r\n array_push($fields, 'l.modified as modified');\r\n array_push($fields, 'l.modified_ip as modified_ip');\r\n }\r\n // Add invoice name if it is selected.\r\n if (($canViewReports || $isClient) && $report['show_invoice'])\r\n array_push($fields, 'i.name as invoice');\r\n\r\n // Prepare sql query part for left joins.\r\n $left_joins = null;\r\n if ($report['show_client'] || 'client' == $group_by_option)\r\n $left_joins .= \" left join tt_clients c on (c.id = l.client_id)\";\r\n if (($canViewReports || $isClient) && $report['show_invoice'])\r\n $left_joins .= \" left join tt_invoices i on (i.id = l.invoice_id and i.status = 1)\";\r\n if ($canViewReports || $isClient || $user->isPluginEnabled('ex'))\r\n $left_joins .= \" left join tt_users u on (u.id = l.user_id)\";\r\n if ($report['show_project'] || 'project' == $group_by_option)\r\n $left_joins .= \" left join tt_projects p on (p.id = l.project_id)\";\r\n if ($report['show_task'] || 'task' == $group_by_option)\r\n $left_joins .= \" left join tt_tasks t on (t.id = l.task_id)\";\r\n if ($include_cf_1) {\r\n if ($cf_1_type == CustomFields::TYPE_TEXT)\r\n $left_joins .= \" left join tt_custom_field_log cfl on (l.id = cfl.log_id and cfl.status = 1)\";\r\n elseif ($cf_1_type == CustomFields::TYPE_DROPDOWN) {\r\n $left_joins .= \" left join tt_custom_field_log cfl on (l.id = cfl.log_id and cfl.status = 1)\".\r\n \" left join tt_custom_field_options cfo on (cfl.option_id = cfo.id)\";\r\n }\r\n }\r\n if ($includeCost && MODE_TIME != $user->tracking_mode)\r\n $left_joins .= \" left join tt_user_project_binds upb on (l.user_id = upb.user_id and l.project_id = upb.project_id)\";\r\n\r\n $where = ttReportHelper::getFavWhere($report);\r\n\r\n // Construct sql query for tt_log items.\r\n $sql = \"select \".join(', ', $fields).\" from tt_log l $left_joins $where\";\r\n // If we don't have expense items (such as when the Expenses plugin is desabled), the above is all sql we need,\r\n // with an exception of sorting part, that is added in the end.\r\n\r\n // However, when we have expenses, we need to do a union with a separate query for expense items from tt_expense_items table.\r\n if ($report['show_cost'] && $user->isPluginEnabled('ex')) { // if ex(penses) plugin is enabled\r\n\r\n $fields = array(); // An array of fields for database query.\r\n array_push($fields, 'ei.id');\r\n array_push($fields, '2 as type'); // Type 2 is for tt_expense_items entries.\r\n array_push($fields, 'ei.date');\r\n if($canViewReports || $isClient)\r\n array_push($fields, 'u.name as user');\r\n // Add client name if it is selected.\r\n if ($report['show_client'] || 'client' == $group_by_option)\r\n array_push($fields, 'c.name as client');\r\n // Add project name if it is selected.\r\n if ($report['show_project'] || 'project' == $group_by_option)\r\n array_push($fields, 'p.name as project');\r\n if ($report['show_task'] || 'task' == $group_by_option)\r\n array_push($fields, 'null'); // null for task name. We need to match column count for union.\r\n if ($report['show_custom_field_1'] || 'cf_1' == $group_by_option)\r\n array_push($fields, 'null'); // null for cf_1.\r\n if ($report['show_start']) {\r\n array_push($fields, 'null'); // null for unformatted_start.\r\n array_push($fields, 'null'); // null for start.\r\n }\r\n if ($report['show_end'])\r\n array_push($fields, 'null'); // null for finish.\r\n if ($report['show_duration'])\r\n array_push($fields, 'null'); // null for duration.\r\n // Use the note field to print item name.\r\n if ($report['show_note'])\r\n array_push($fields, 'ei.name as note');\r\n array_push($fields, 'ei.cost as cost');\r\n array_push($fields, 'ei.cost as expense');\r\n // Add paid status.\r\n if ($canViewReports && $report['show_paid'])\r\n array_push($fields, 'ei.paid as paid');\r\n // Add IP address.\r\n if ($canViewReports && $report['show_ip']) {\r\n array_push($fields, 'ei.created as created');\r\n array_push($fields, 'ei.created_ip as created_ip');\r\n array_push($fields, 'ei.modified as modified');\r\n array_push($fields, 'ei.modified_ip as modified_ip');\r\n }\r\n // Add invoice name if it is selected.\r\n if (($canViewReports || $isClient) && $report['show_invoice'])\r\n array_push($fields, 'i.name as invoice');\r\n\r\n // Prepare sql query part for left joins.\r\n $left_joins = null;\r\n if ($canViewReports || $isClient)\r\n $left_joins .= \" left join tt_users u on (u.id = ei.user_id)\";\r\n if ($report['show_client'] || 'client' == $group_by_option)\r\n $left_joins .= \" left join tt_clients c on (c.id = ei.client_id)\";\r\n if ($report['show_project'] || 'project' == $group_by_option)\r\n $left_joins .= \" left join tt_projects p on (p.id = ei.project_id)\";\r\n if (($canViewReports || $isClient) && $report['show_invoice'])\r\n $left_joins .= \" left join tt_invoices i on (i.id = ei.invoice_id and i.status = 1)\";\r\n\r\n $where = ttReportHelper::getFavExpenseWhere($report);\r\n\r\n // Construct sql query for expense items.\r\n $sql_for_expense_items = \"select \".join(', ', $fields).\" from tt_expense_items ei $left_joins $where\";\r\n\r\n // Construct a union.\r\n $sql = \"($sql) union all ($sql_for_expense_items)\";\r\n }\r\n\r\n // Determine sort part.\r\n $sort_part = ' order by ';\r\n if ($group_by_option == null || 'no_grouping' == $group_by_option || 'date' == $group_by_option) // TODO: fix DB for NULL values in group_by field.\r\n $sort_part .= 'date';\r\n else\r\n $sort_part .= $group_by_option.', date';\r\n if (($canViewReports || $isClient) /*&& is_array($bean->getAttribute('users'))*/ && 'user' != $group_by_option)\r\n $sort_part .= ', user, type';\r\n if ($report['show_start'])\r\n $sort_part .= ', unformatted_start';\r\n $sort_part .= ', id';\r\n\r\n $sql .= $sort_part;\r\n // By now we are ready with sql.\r\n\r\n // Obtain items for report.\r\n $res = $mdb2->query($sql);\r\n if (is_a($res, 'PEAR_Error')) die($res->getMessage());\r\n\r\n while ($val = $res->fetchRow()) {\r\n if ($convertTo12Hour) {\r\n if($val['start'] != '')\r\n $val['start'] = ttTimeHelper::to12HourFormat($val['start']);\r\n if($val['finish'] != '')\r\n $val['finish'] = ttTimeHelper::to12HourFormat($val['finish']);\r\n }\r\n if (isset($val['cost'])) {\r\n if ('.' != $user->decimal_mark)\r\n $val['cost'] = str_replace('.', $user->decimal_mark, $val['cost']);\r\n }\r\n if (isset($val['expense'])) {\r\n if ('.' != $user->decimal_mark)\r\n $val['expense'] = str_replace('.', $user->decimal_mark, $val['expense']);\r\n }\r\n if ('no_grouping' != $group_by_option) {\r\n $val['grouped_by'] = $val[$group_by_option];\r\n if ('date' == $group_by_option) {\r\n // This is needed to get the date in user date format.\r\n $o_date = new DateAndTime(DB_DATEFORMAT, $val['grouped_by']);\r\n $val['grouped_by'] = $o_date->toString($user->date_format);\r\n unset($o_date);\r\n }\r\n }\r\n\r\n // This is needed to get the date in user date format.\r\n $o_date = new DateAndTime(DB_DATEFORMAT, $val['date']);\r\n $val['date'] = $o_date->toString($user->date_format);\r\n unset($o_date);\r\n\r\n $row = $val;\r\n $report_items[] = $row;\r\n }\r\n\r\n return $report_items;\r\n }", "title": "" }, { "docid": "c312c3bd7708c903ff35b958c9d8b898", "score": "0.54978603", "text": "function getListCronAutoSendReport(){\r\n $listCronAutoSendReport=SqlList::getListWithCrit(\"AutoSendReport\", array(\"idle\"=>\"0\"), 'id');\r\n $inCronBlockFonctionCustom=true;\r\n foreach ($listCronAutoSendReport as $key=>$cronAutoSendReport){\r\n \tif(is_numeric($cronAutoSendReport)){\r\n \t\t$listCronAutoSendReport[$key]=new AutoSendReport($cronAutoSendReport);\r\n \t\t$cronAutoSendReport=$listCronAutoSendReport[$key];\r\n \t}\r\n }\r\n return $listCronAutoSendReport;\r\n}", "title": "" }, { "docid": "83b3a66a6ec3756e8ace7bcdb4e56b3d", "score": "0.54966104", "text": "public function stock_report_product_date_date_wise($from_date, $to_date, $links, $per_page, $page)\n {\n $CI = &get_instance();\n $CI->load->model('Reports');\n $CI->load->model('Suppliers');\n $CI->load->library('occational');\n $stok_report = $CI->Reports->stock_report_product_date_date($from_date, $to_date, $per_page, $page);\n $supplier_list = $CI->Suppliers->supplier_list_report();\n $sub_total_in = 0;\n $sub_total_out = 0;\n $sub_total_stock = 0;\n\n if (!empty($stok_report)) {\n $i = $page;\n foreach ($stok_report as $k => $v) {\n $i++;\n $stok_report[$k]['sl'] = $i;\n $stok_report[$k]['stok_quantity_cartoon'] = ($stok_report[$k]['totalPurchaseQnty'] - $stok_report[$k]['totalSalesQnty']);\n $stok_report[$k]['SubTotalOut'] = ($sub_total_out + $stok_report[$k]['totalSalesQnty']);\n $sub_total_out = $stok_report[$k]['SubTotalOut'];\n $stok_report[$k]['SubTotalIn'] = ($sub_total_in + $stok_report[$k]['totalPurchaseQnty']);\n $sub_total_in = $stok_report[$k]['SubTotalIn'];\n $stok_report[$k]['total_sale_price'] = $stok_report[$k]['stok_quantity_cartoon'] * $stok_report[$k]['price'];\n $stok_report[$k]['SubTotalStock'] = ($sub_total_stock + $stok_report[$k]['stok_quantity_cartoon']);\n $sub_total_stock = $stok_report[$k]['SubTotalStock'];\n }\n }\n\n $currency_details = $CI->Web_settings->retrieve_setting_editdata();\n $company_info = $CI->Reports->retrieve_company();\n $data = array(\n 'title' => display('stock_report_supplier_wise'),\n 'stok_report' => $stok_report,\n 'product_model' => $stok_report[0]['product_model'],\n 'links' => $links,\n 'start_date' => $from_date,\n 'end_date' => $to_date,\n 'sub_total_in' => number_format($sub_total_in, 2, '.', ','),\n 'sub_total_out' => number_format($sub_total_out, 2, '.', ','),\n 'sub_total_stock' => number_format($sub_total_stock, 2, '.', ','),\n 'supplier_list' => $supplier_list,\n 'company_info' => $company_info,\n 'currency' => $currency_details[0]['currency'],\n 'position' => $currency_details[0]['currency_position'],\n 'software_info' => $currency_details,\n 'company' => $company_info,\n );\n\n $reportList = $CI->parser->parse('report/productwise_stockreport_datebetween', $data, true);\n return $reportList;\n }", "title": "" }, { "docid": "698452c6d51e8775ab5d13607ac7fc81", "score": "0.54900414", "text": "public function selection_date()\n { \n $data['form_title'] = 'Sesrch by period of time';\n $data['action'] = 'search';\n $data['method_name'] = 'product_reciept';\n\n $this->template->write_view('main_content', 'payment/selection_date', $data, TRUE);\n $this->template->render(); \n }", "title": "" }, { "docid": "8b76c52fbc92e8b658de010c071f90be", "score": "0.54832816", "text": "function renderDaily() \n\t{\n\t\t$sql = e107::getDB();\n $tp = e107::getParser();\n $template = e107::getTemplate('log', 'log', 'daily', true, true); \n \n\t\t$td = date(\"Y-m-j\", time());\n\t\t$dayarray[$td] = array();\n\t\t$pagearray = array();\n\n\t\t$qry = \"\n\t\tSELECT * from #logstats WHERE log_id REGEXP('[[:digit:]]+\\-[[:digit:]]+\\-[[:digit:]]+')\n\t\tORDER BY CONCAT(LEFT(log_id,4), SUBSTRING(log_id, 6, 2), LPAD(SUBSTRING(log_id, 9), 2, '0'))\n\t\tDESC LIMIT 0,14\n\t\t\";\n\n\t\tif($amount = $sql->gen($qry)) \n\t\t{\n\t\t\t$array = $sql -> db_getList();\n\n\t\t\t$ttotal = 0;\n\t\t\t$utotal = 0;\n\n\t\t\tforeach($array as $key => $value) \n\t\t\t{\n\t\t\t\textract($value);\n\t\t\t\tif(is_array($log_data)) {\n\t\t\t\t\t$entries[0] = $log_data['host'];\n\t\t\t\t\t$entries[1] = $log_data['date'];\n\t\t\t\t\t$entries[2] = $log_data['os'];\n\t\t\t\t\t$entries[3] = $log_data['browser'];\n\t\t\t\t\t$entries[4] = $log_data['screen'];\n\t\t\t\t\t$entries[5] = $log_data['referer'];\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t$entries = explode(chr(1), $log_data);\n\t\t\t\t}\n\n\t\t\t\t$dayarray[$log_id]['daytotal'] = $entries[0];\n\t\t\t\t$dayarray[$log_id]['dayunique'] = $entries[1];\n\n\t\t\t\tunset($entries[0]);\n\t\t\t\tunset($entries[1]);\n\t\t\t\t\n\t\t\t\tforeach($entries as $entry) \n\t\t\t\t{\n\t\t\t\t\tif($entry) \n\t\t\t\t\t{\n\t\t\t\t\t\tlist($url, $total, $unique) = explode(\"|\", $entry);\n\t\t\t\t\t\tif(strpos($url, \"/\") !== false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$urlname = preg_replace(\"/\\.php|\\?.*/\", \"\", substr($url, (strrpos($url, \"/\")+1)));\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$urlname = preg_replace(\"/\\.php|\\?.*/\", \"\", $url);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$dayarray[$log_id][$urlname] = array('url' => $url, 'total' => $total, 'unique' => $unique);\n\t\t\t\t\t\tif (!isset($pagearray[$urlname]['total'])) $pagearray[$urlname]['total'] = 0;\n\t\t\t\t\t\tif (!isset($pagearray[$urlname]['unique'])) $pagearray[$urlname]['unique'] = 0;\n\t\t\t\t\t\t$pagearray[$urlname]['total'] += $total;\n\t\t\t\t\t\t$pagearray[$urlname]['unique'] += $unique;\n\t\t\t\t\t\t$ttotal += $total;\n\t\t\t\t\t\t$utotal += $unique;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tforeach($this -> fileInfo as $fkey => $fvalue)\n\t\t{\n\t\t\t$dayarray[$td][$fkey]['total'] += $fvalue['ttl'];\n\t\t\t$dayarray[$td][$fkey]['unique'] += $fvalue['unq'];\n\t\t\t$dayarray[$td]['daytotal'] += $fvalue['ttl'];\n\t\t\t$dayarray[$td]['dayunique'] += $fvalue['unq'];\n\t\t\t$pagearray[$fkey]['total'] += $fvalue['ttl'];\n\t\t\t$pagearray[$fkey]['unique'] += $fvalue['unq'];\n\t\t\t$ttotal += $fvalue['ttl'];\n\t\t\t$utotal += $fvalue['unq'];\n\t\t}\n\n\t//\tprint_a($dayarray);;\n\n\t\t$text = \"\n\t\t\t<table class='table table-striped fborder' style='width: 100%;'>\n\t\t\t<tr>\n\t\t\t\t<th class='fcaption' style='width: 30%;'>\".ADSTAT_L33.\" \".($amount+1).\" \".ADSTAT_L40.\"</th>\n\t\t\t\t<th class='fcaption' style='width: 70%;' colspan='2'>\".ADSTAT_L34.\"</th>\n\t\t\t</tr>\\n\";\n\n\t\tforeach($dayarray as $date => $total) \n\t\t{\n\t\t\tif (!isset($total['daytotal'])) $total['daytotal'] = 0;\n\t\t\tlist($year, $month, $day) = explode(\"-\", $date);\n\t\t\t$date = strftime (\"%A, %B %d\", mktime (0,0,0,$month,$day,$year));\n\t\t\t$barWidth = round(($total['daytotal']/$ttotal) * 100, 2);\n\t\t\t$text .= \"<tr>\n\t\t\t<td class='forumheader3' style='width: 30%;'>$date</td>\n\t\t\t<td class='forumheader3' style='width: 70%;'>\".$this -> bar($barWidth, $total['daytotal']).\"</td>\n\t\t\t</tr>\\n\";\n\t\t}\n\n\t\t$text .= \"</table>\";\n\t\t$text .= \"<br />\n\t\t<table class='table table-striped fborder' style='width: 100%;'>\n\t\t<tr>\n\t\t\t<th class='fcaption' style='width: 30%;'>\".ADSTAT_L35.\" \".($amount+1).\" \".ADSTAT_L40.\"</th>\n\t\t\t<th class='fcaption' style='width: 70%;' colspan='2'>\".ADSTAT_L34.\"</th>\n\t\t</tr>\\n\";\n\n\n\t\tif (!isset($total['dayunique'])) $total['dayunique'] = 0;\n\t\tif (!isset($total['total'])) $total['total']= 0;\n\n\t\tforeach($dayarray as $date => $total) \n\t\t{\n\t\t\tif (!isset($total['dayunique'])) $total['dayunique'] = 0;\n\t\t\tlist($year, $month, $day) = explode(\"-\", $date);\n\t\t\t$date = strftime (\"%A, %B %d\", mktime (0,0,0,$month,$day,$year));\n\t\t\t$barWidth = round(($total['dayunique']/$utotal) * 100, 2);\n\t\t\t$text .= \"<tr>\n\t\t\t<td class='forumheader3' style='width: 30%;'>{$date}</td>\n\t\t\t<td class='forumheader3' style='width: 70%;'>\".$this -> bar($barWidth, $total['dayunique']).\"</td>\n\t\t\t</tr>\\n\";\n\t\t}\n\t\t$text .= \"</table>\";\n\n\t\t$text .= \"<br />\n\t\t\t<table class='table table-striped fborder' style='width: 100%;'>\n\t\t\t<tr>\n\t\t\t\t<th class='fcaption' style='width: 30%;'>\".ADSTAT_L33.\" \".($amount+1).\" \".ADSTAT_L36.\"</th>\n\t\t\t\t<th class='fcaption' style='width: 70%;' colspan='2'>\".ADSTAT_L34.\"</th>\n\t\t\t</tr>\\n\";\n\n\t\t$newArray = $this -> arraySort($pagearray, \"total\");\n\t\tforeach($newArray as $key => $total) \n\t\t{\n\t\t\t$barWidth = round(($total['total']/$ttotal) * 100, 2);\n\t\t\t$text .= \"<tr>\n\t\t\t<td class='forumheader3' style='width: 30%;'><img src='\".e_PLUGIN.\"log/images/html.png' alt='' style='vertical-align: middle;' /> {$key}</td>\n\t\t\t<td class='forumheader3' style='width: 70%;'>\".$this -> bar($barWidth, $total['total']).\"</td>\n\t\t\t</tr>\\n\";\n\n\t\t}\n\t\t$text .= \"</table>\";\n\t\t$text .= \"<br />\n\t\t\n\t\t\t<table class='table table-striped fborder' style='width: 100%;'>\n\t\t\t<tr>\n\t\t\t\t<th class='fcaption' style='width: 30%;'>\".ADSTAT_L35.\" \".($amount+1).\" \".ADSTAT_L36.\"</th>\n\t\t\t\t<th class='fcaption' style='width: 70%;' colspan='2'>\".ADSTAT_L34.\"</th>\n\t\t\t</tr>\\n\";\n\t\t\t\n\t\t$newArray = $this -> arraySort($pagearray, \"unique\");\n\n\t\tforeach($newArray as $key => $total) {\n\t\t\t$barWidth = round(($total['unique']/$utotal) * 100, 2);\n\t\t\t$text .= \"<tr>\n\t\t\t<td class='forumheader3' style='width: 30%;'><img src='\".e_PLUGIN_ABS.\"log/images/html.png' alt='' style='vertical-align: middle;' /> {$key}</td>\n\t\t\t<td class='forumheader3' style='width: 70%;'>\".$this -> bar($barWidth, $total['unique']).\"</td>\n\t\t\t</tr>\\n\";\n\t\t}\n\t\t$text .= \"</table>\";\n\t\treturn $text;\n\t}", "title": "" }, { "docid": "162dabac5369644c5f47bc2773faf0cd", "score": "0.5482464", "text": "public function get_student_attendance_report_boys($class_id,$date){\n\t\t$this->db->select('class_list.name as class_name,class_list.section,users.u_id,users.name,users.roll_number,student_attendenc_reports.time,student_attendenc_reports.attendence,student_attendenc_reports.student_id')->from('student_attendenc_reports');\n\t\t$this->db->join('users ', 'users.u_id = student_attendenc_reports.student_id', 'left');\n\t\t$this->db->join('class_list ', 'class_list.id = student_attendenc_reports.class_id', 'left');\n\t\t$this->db->where('student_attendenc_reports.class_id',$class_id);\n\t\t$this->db->where(\"DATE_FORMAT(student_attendenc_reports.created_at,'%Y-%m-%d')\",$date);\n\t\t$this->db->where('users.role_id',7);\n\t\t$this->db->where('users.gender','Male');\n\t\t$this->db->order_by('student_attendenc_reports.time','asc');\n\t\t//$this->db->group_by('student_attendenc_reports.time');\n\t\t$return=$this->db->get()->result_array();\n\t\tforeach($return as $list){\n\t\t\t\n\t\t\t$hours=$this->get_hours_wise_attendance_report($list['u_id'],$date);\n\t\t\t$data[$list['u_id']]=$list;\n\t\t\t$data[$list['u_id']]['hours_list']=$hours;\n\t\t}\n\t\t//echo '<pre>';print_r($return);exit;\n\t\tif(!empty($data)){\n\t\t\treturn $data;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "50aafc25a484f1c8243c1d15826bc2cc", "score": "0.5479052", "text": "function getListeDates ( ) {\n\t\t$dateDeb = new clDate ( DATELANCEMENT ) ;\n\t\t$dateFin = new clDate ( ) ;\n\t\t$tDeb = $dateDeb -> getTimestamp ( ) ;\n\t\t$tab = array ( ) ;\n\t\tfor ( ; $dateFin -> getTimestamp ( ) >= $tDeb ; $dateFin -> addDays ( -1 ) )\n\t\t\t$tab[$dateFin->getDate ( \"Y-m-d\")] = $dateFin -> getDate ( \"d/m/Y\" ) ;\n\t\treturn $tab ;\n\t}", "title": "" }, { "docid": "cf3ba3c526f0ac417148a2dc5ec757f3", "score": "0.547718", "text": "public function Generate_Report()\n\t{\n\t\t\n\t\ttry \n\t\t{\t\t\n\t\t\t$this->search_query = new Follow_Up_Report_Query($this->server);\t\t\n\t\t\t$data = new stdClass();\n\t\n\t\t\t$data->search_criteria = array(\n\t\t\t 'start_date_MM' => $this->request->start_date_month,\n\t\t\t 'start_date_DD' => $this->request->start_date_day,\n\t\t\t 'start_date_YYYY' => $this->request->start_date_year,\n\t\t\t 'end_date_MM' => $this->request->end_date_month,\n\t\t\t 'end_date_DD' => $this->request->end_date_day,\n\t\t\t 'end_date_YYYY' => $this->request->end_date_year,\n\t\t\t 'company_id' \t\t=> $this->request->company_id,\n\t\t\t 'loan_type' \t\t=> $this->request->loan_type,\n\t\t\t 'follow_up_queue' => $this->request->follow_up_queue\n\t\t\t);\n\t\n\t\t\t$_SESSION['reports']['follow_up']['report_data'] = new stdClass();\n\t\t\t$_SESSION['reports']['follow_up']['report_data']->search_criteria = $data->search_criteria;\n\t\t\t$_SESSION['reports']['follow_up']['url_data'] = array('name' => 'Follow Up', 'link' => '/?module=reporting&mode=follow_up');\n\t\n\t\t\t\t// Start date\n\t\t\t$start_date_YYYY = $this->request->start_date_year;\n\t\t\t$start_date_MM\t = $this->request->start_date_month;\n\t\t\t$start_date_DD\t = $this->request->start_date_day;\n\t\t\tif(!checkdate($start_date_MM, $start_date_DD, $start_date_YYYY))\n\t\t\t{\n\t\t\t\t//return with no data\n\t\t\t\t$data->search_message = \"Start Date invalid or not specified.\";\n\t\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\t\treturn;\n\t\t\t}\n\t\n\t\t\t// End date\n\t\t\t$end_date_YYYY\t = $this->request->end_date_year;\n\t\t\t$end_date_MM\t = $this->request->end_date_month;\n\t\t\t$end_date_DD\t = $this->request->end_date_day;\n\t\t\tif(!checkdate($end_date_MM, $end_date_DD, $end_date_YYYY))\n\t\t\t{\n\t\t\t\t//return with no data\n\t\t\t\t$data->search_message = \"End Date invalid or not specified.\";\n\t\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\t\treturn;\n\t\t\t}\n\t\n\t\t\t$start_date_YYYYMMDD = 10000 * $start_date_YYYY\t+ 100 * $start_date_MM + $start_date_DD;\n\t\t\t$end_date_YYYYMMDD\t = 10000 * $end_date_YYYY\t+ 100 * $end_date_MM + $end_date_DD;\n\t\n\t\t\tif($end_date_YYYYMMDD < $start_date_YYYYMMDD)\n\t\t\t{\n\t\t\t\t//return with no data\n\t\t\t\t$data->search_message = \"End Date must not precede Start Date.\";\n\t\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\t\treturn;\n\t\t\t}\n\t\n\n\t\t\t$data->search_results = $this->search_query->Fetch_Agent_Comment_Data($start_date_YYYYMMDD,\n\t\t\t\t\t\t\t\t\t\t $end_date_YYYYMMDD,\n\t\t\t\t\t\t\t\t\t\t $this->request->company_id,\n\t\t\t\t\t\t\t\t\t\t $this->request->loan_type,\n\t\t\t\t\t\t\t\t\t\t $this->request->follow_up_queue);\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$data->search_message = \"Unable to execute report. Reporting server may be unavailable.\";\n\t\t\tECash::getTransport()->Set_Data($data);\n\t\t\tECash::getTransport()->Add_Levels(\"message\");\n\t\t\treturn;\n\t\t}\n\n\t\tECash::getTransport()->Add_Levels(\"report_results\");\n\n\t\t// Sort if necessary\n\t\t$data = $this->Sort_Data($data);\n\n\t\tECash::getTransport()->Set_Data($data);\n\t\t$_SESSION['reports']['follow_up']['report_data'] = $data;\n\t}", "title": "" }, { "docid": "13f703b9978ea9bdc7a8767939609d54", "score": "0.5475217", "text": "public function reportStatusHitungAllAction()\n {\n\t\t$this->view->period = date(\"Y\", strtotime($this->_period));\n $this->_listAction();\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "263762ba10891ce32463cb802f45d73f", "score": "0.0", "text": "public function destroy(Producto $producto)\n {\n if(Auth::user()==$producto->user || Auth::user()->tipo==1){\n $id = $producto->user->id;\n try{\n if($producto->foto1!=null && $producto->foto1!='storage/productos/default.png'){\n unlink($producto->foto1);\n }\n if($producto->foto2!=null && $producto->foto2!='storage/productos/default.png'){\n unlink($producto->foto2);\n }\n if($producto->foto3!=null && $producto->foto3!='storage/productos/default.png'){\n unlink($producto->foto3);\n }\n if($producto->foto4!=null && $producto->foto4!='storage/productos/default.png'){\n unlink($producto->foto4);\n }\n if($producto->foto5!=null && $producto->foto5!='storage/productos/default.png'){\n unlink($producto->foto5);\n }\n\n $producto->delete();\n\n return redirect()->route('ver_perfil', $id)->with('mensaje', \"Producto eliminado con éxito\");\n\n }catch(\\Exception $ex){\n return back()->with('error', \"El producto no ha podido eliminarse, intentelo más tarde\".$ex->getMessage());\n }\n\n }else{\n return redirect()->route('login');\n }\n }", "title": "" } ]
[ { "docid": "f1aaf41a7156fa1ddfcdb965f9ec5b59", "score": "0.77682966", "text": "public function remove($resource)\n {\n if($this->exist($resource)){\n unset($this->resources[$resource]);\n }\n }", "title": "" }, { "docid": "8b628383b34d63dd0eb00f58ca93193b", "score": "0.703237", "text": "public static function deleteResource($resource)\n {\n $resourceKey = self::getResourceKey($resource);\n unset(self::$resource_registry[$resourceKey]);\n }", "title": "" }, { "docid": "4227c47fa6415b99ac7ad79261ad7226", "score": "0.6690498", "text": "public function removeResource(AbstractResourceFile $resource) {\n if (parent::offsetExists($resource->getMemberId())) {\n parent::offsetUnset($resource->getMemberId());\n }\n }", "title": "" }, { "docid": "cba9c3b5928674c49645b80c060a27ee", "score": "0.66900694", "text": "public function deleted(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "503409da4f5b9a20ee18f568cabc837e", "score": "0.6578654", "text": "protected function deleteResource($resource) {\n $translator = $this->i18n->getTranslator($resource['locale']);\n $translator->setTranslation($resource['key'], null);\n }", "title": "" }, { "docid": "104d6984e581161b647cdf9206aaa4be", "score": "0.65266734", "text": "public function delete($storage_name);", "title": "" }, { "docid": "e8e36bc4035715e1553386a49c3dd64a", "score": "0.64323646", "text": "final protected function remove($resource)\n {\n // Initilize the request as post\n $this->init('delete', $resource);\n\n // Make the request using guzzle\n return $this->call();\n }", "title": "" }, { "docid": "fa011b24954b422bb6ebfc09cdafce74", "score": "0.64162064", "text": "public function unpublishResource(PersistentResource $resource)\n {\n try {\n $objectName = $this->keyPrefix . $this->getRelativePublicationPathAndFilename($resource);\n $this->getCurrentBucket()->object($objectName)->delete();\n $this->systemLogger->log(sprintf('Successfully unpublished resource as object \"%s\" (MD5: %s) from bucket \"%s\"', $objectName, $resource->getMd5() ?: 'unknown', $this->bucketName), LOG_DEBUG);\n } catch (NotFoundException $e) {\n }\n }", "title": "" }, { "docid": "628a4d244227d2089465337bd866ab72", "score": "0.634412", "text": "public function delete() {\n\n // Does the Resource object have an ID?\n if ( is_null( $this->id ) ) trigger_error ( \"Resource::delete(): Attempt to delete an Resource object that does not have its ID property set.\", E_USER_ERROR );\n\n // Delete the Resource\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $st = $conn->prepare ( \"DELETE FROM resource WHERE id = :id LIMIT 1\" );\n $st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "2e3daccb9b7f61db1ba5db127ae75245", "score": "0.63187486", "text": "private static function deleteResourceAndUsage( $resource ) {\n $dbw = wfGetDB( DB_PRIMARY );\n $dbw -> delete('edusharing_resource', array( 'EDUSHARING_RESOURCE_ID = ' . $resource->EDUSHARING_RESOURCE_ID ), $fname = 'Database::delete');\n\n $postData = new stdClass ();\n $postData->nodeId = str_replace(\"ccrep://local/\",\"\",$resource->EDUSHARING_RESOURCE_OBJECT_URL);\n $postData->usageId = $resource->EDUSHARING_RESOURCE_USAGE;\n\n // delete usage from repo\n $eduService = new EduSharingService();\n $eduService -> deleteUsage( $postData );\n }", "title": "" }, { "docid": "7c8424d31eaa624067dc5241abfb9372", "score": "0.6257354", "text": "public function deleteStorage($storageId);", "title": "" }, { "docid": "4266f43d7f511bcf14d6ed4a63e0608f", "score": "0.6230025", "text": "public function delete($resource) {\n\t\t\t\n\t\t$url = $this->_path . '/api/v2' . $resource;\n\t\t\n\t\t$curl = curl_init();\n\t\tcurl_setopt($curl, CURLOPT_URL, $url);\n\t\tcurl_setopt($curl, CURLOPT_HTTPHEADER, $this->_headers);\n\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($curl, CURLOPT_VERBOSE, 1);\n\t\tcurl_setopt($curl, CURLOPT_HEADER, 1);\n\t\tcurl_setopt($curl, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n\t\t$response = curl_exec($curl);\n\t\t$http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);\n\t\t$header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);\n\t\t$headers = substr($response, 0, $header_size);\n\t\t$body = substr($response, $header_size);\n\t\tself::http_parse_headers($headers);\t \n\t\tcurl_close ($curl);\n\t\tif ($http_status == 204) {\n\t \treturn $http_status . ' DELETED';\n\t\t } else {\n\t\t \t$this->error($body, $url, null, 'DELETE');\n\t\t }\n\t}", "title": "" }, { "docid": "71cdf2c8771b0884ed0346cbff1672a0", "score": "0.62021154", "text": "abstract protected function destroyResource(): void;", "title": "" }, { "docid": "174b3cc2502c8f8c88a91296ed95d437", "score": "0.61883366", "text": "public function delete($resource) {\n\t\t\t\n\t\t$url = 'https://api.bigcommerce.com/stores/' . $this->_hash . '/v2/' . $resource;\n\t\t\n\t\tcurl_setopt($this->_curl, CURLOPT_URL, $url);\n\t\tcurl_setopt($this->_curl, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\t\t$response = curl_exec($curl);\n\t\t$http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);\n\t\t$header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);\n\t\t$headers = substr($response, 0, $header_size);\n\t\t$body = substr($response, $header_size);\n\t\t$headersArray = self::http_parse_headers($headers);\n\t\tif (! $this->rate_limit($headersArray) && $this->retries < self::RETRY_ATTEMPTS) {\n\t\t\t$this->retries = $this->retries + 1;\n\t\t\treturn $this->delete($resource);\n\t\t}\t \n\t\tcurl_close ($curl);\n\t\tif ($http_status == 204) {\n\t \treturn $http_status . ' DELETED';\n\t\t } else {\n\t\t \t$this->error($body, $url, null, 'DELETE');\n\t\t }\n\t}", "title": "" }, { "docid": "04ec0c72a529ea888ebec978b8312735", "score": "0.6156356", "text": "public function deleteFromStorage()\n {\n //Original\n if(file_exists(public_path($this->url))){\n File::delete(public_path($this->url));\n }\n\n //Thumbnail\n if(file_exists(public_path($this->thumb_url))){\n File::delete(public_path($this->thumb_url));\n }\n }", "title": "" }, { "docid": "2f47947186448448aa034e3f635016f3", "score": "0.61315197", "text": "public function removeApiResource($resource)\n {\n $index = array_search($resource, $this->apiResources);\n if ($index !== false) {\n unset($this->apiResources[$index]);\n // reindex this array to be sequential zero-based.\n $this->apiResources = array_values($this->apiResources);\n }\n }", "title": "" }, { "docid": "e0c513c82c944008d275fc6f457afb42", "score": "0.6123187", "text": "public function forceDeleted(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "347ab67e3e18ac392ded1095e453fdae", "score": "0.61123997", "text": "public function removeResource(string $resource): ?bool {\r\n\r\n //Check if resource exists\r\n if(true === isset($this -> resources[$resource])) {\r\n\r\n unset($this -> resources[$resource]);\r\n return true;\r\n }\r\n\r\n return null;\r\n }", "title": "" }, { "docid": "f1df46e2c5dfa855b0aae2241e47a742", "score": "0.60987437", "text": "public function destroy($id)\n {\n $entry = Storage::findOrFail($id);\n\n $entry->delete();\n\n return redirect('/storages');\n }", "title": "" }, { "docid": "7caa54c56a26f9c25867bf3b317a8b05", "score": "0.6078726", "text": "public function removeResource($key) {\r\n\t\tif (isset($this->resources[$key]))\r\n\t\t\tunset($this->resources[$key]);\r\n\t}", "title": "" }, { "docid": "4ee6a6c61b47a02140107fbd844ed2bb", "score": "0.6063936", "text": "public function removeResource($resource)\n\t{\n\t\t$this->needResource($resource);\n\n\t\t$parent = $this->resources[$resource]['parent'];\n\t\tif ($parent !== NULL) {\n\t\t\tunset($this->resources[$parent]['children'][$resource]);\n\t\t}\n\n\t\t$removed = array($resource);\n\t\tforeach ($this->resources[$resource]['children'] as $child => $foo) {\n\t\t\t$this->removeResource($child);\n\t\t\t$removed[] = $child;\n\t\t}\n\n\t\tforeach ($removed as $resourceRemoved) {\n\t\t\tforeach ($this->rules['byResource'] as $resourceCurrent => $rules) {\n\t\t\t\tif ($resourceRemoved === $resourceCurrent) {\n\t\t\t\t\tunset($this->rules['byResource'][$resourceCurrent]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tunset($this->resources[$resource]);\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1a7799a3edae94b9a12c008d1d703c57", "score": "0.59831214", "text": "public function deleteStorageService($name);", "title": "" }, { "docid": "1a7799a3edae94b9a12c008d1d703c57", "score": "0.59831214", "text": "public function deleteStorageService($name);", "title": "" }, { "docid": "6916dd8c1d60603bcf3ae4bd18d41a83", "score": "0.5977718", "text": "public function removeResource($resource)\n {\n $acl = $this->_getAcl();\n $acl->remove($resource);\n $this->_setAcl($acl);\n\n return $this;\n }", "title": "" }, { "docid": "f23ad90184663348cc9db3cf44d0b0a5", "score": "0.595982", "text": "public function destroy(Resource $resource)\n {\n //\n\t\t\t\treturn response()->json([\n\t\t\t\t\t'destroyed'=>$resource->delete()\n\t\t\t\t]);\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "ef4a1685667d21fcb638df892463f9c8", "score": "0.59317005", "text": "public function destroy($id)\n {\n $supplier = Supplier::where('id',$id)->first();\n $photo = $supplier->image;\n if($photo){\n unlink($photo);\n $supplier->delete();\n }else{\n $supplier->delete();\n }\n }", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "d9a8a2179bed321de0122e8cff40c63a", "score": "0.5906186", "text": "public function remove($storageKey)\n {\n $path = $this->getImagePath((string) $storageKey);\n @unlink($path);\n }", "title": "" }, { "docid": "39b14dd177c56742d793fa231de87204", "score": "0.5899593", "text": "public function remove()\n {\n unlink($this->uploadDir . $this->nomenovo);\n\n parent::remove();\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": "e03265a289855852afd2372dcb1d8daa", "score": "0.58933157", "text": "public function remove($path, $hard = false);", "title": "" }, { "docid": "aad5350294ac8f905383132f720b1be8", "score": "0.588305", "text": "public function delete($resource, $arOptions);", "title": "" }, { "docid": "d6fae5ff4be2ba960f6582fc42fd3676", "score": "0.5868486", "text": "public function remove() {\n if (file_exists($this->location))\n unlink($this->location);\n parent::remove();\n }", "title": "" }, { "docid": "77eb36c589be56f3f633dc84debdce8a", "score": "0.5864072", "text": "public function clearStorage(): void;", "title": "" }, { "docid": "7e7b93a0bfbbefcf0448e892241c5a20", "score": "0.585261", "text": "public function remove($name)\n {\n if (isset($this->storage[$name])) {\n unset($this->storage[$name]);\n }\n }", "title": "" }, { "docid": "3ca22b7764fa3b3a6a94edbeb0b0d64f", "score": "0.585028", "text": "public function clear()\n {\n if (file_exists($this->storageFile)) {\n unlink($this->storageFile);\n }\n }", "title": "" }, { "docid": "41603163cf71ae1b28de95896f8297c6", "score": "0.58502716", "text": "public function destroy($id)\n {\n $this->authorize('delete', $this->resource->getModel()->find($id));\n\n if (in_array($this->module->getName(), config('resource_lock'))) {\n\t $this->unlock($id);\n\t }\n\n $this->resource->delete($id);\n }", "title": "" }, { "docid": "1486c0df76f6bc31a817da2f80eb3546", "score": "0.5835488", "text": "public function deleteResourceById($id)\n {\n $resource = $this->getRecordById($id);\n\n if (isset($resource->id)) {\n //Delete record from id\n $this->delete(array('id = ?' => $id));\n\n //Delete files\n if (!empty($this->uploadedFiles)) {\n foreach ($this->uploadedFiles as $colName => $location) {\n if (!empty($resource->$colName)) {\n $fileName = $location . $resource->$colName;\n\n if (is_file($fileName)) {\n unlink($fileName);\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "83da6d00e9ec003d7115d52e8eaed9e7", "score": "0.5812055", "text": "public function del($path);", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "5446b650450a069ded319874becfacf8", "score": "0.5749654", "text": "public function destroy($id)\n {\n $prestamo = Prestamo::where('id', $id)->first();\n $photo = $prestamo->image;\n if ($photo) {\n unlink($photo);\n $prestamo->delete();\n } else {\n $prestamo->delete();\n }\n }", "title": "" }, { "docid": "80dea14a08ed690bb6c0e40f9adf7b93", "score": "0.5730856", "text": "public function destroy($id)\n {\n $item=Item::find($id);\n //delete related file from storage\n $item->delete();\n return redirect()->route('items.index');\n }", "title": "" }, { "docid": "223830251a63efdf7921b31d2cb714b9", "score": "0.57265943", "text": "public function remove(string $path): void;", "title": "" }, { "docid": "afcc6695c26fa480351516ff52f20881", "score": "0.5723434", "text": "public function destroy($id)\n {\n $photo = Photo::find($id);\n if(file_exists(basename($photo->thumpnail_url))){\n unlink(\"storage/thumbnail/\". basename($photo->thumbnail_url));\n }\n if(file_exists(basename($photo->photo_url))){\n unlink(\"storage/slider/\". basename($photo->photo_url));\n } \n $photo->delete(); \n\n return redirect('/admin/photo/show');\n }", "title": "" }, { "docid": "e1196ae52794e4b5c86db7a7fa85b63b", "score": "0.5721902", "text": "public function destroy($id)\n {\n $image = Image::where('name','like','%'.$id.'%')->first();\n Storage::disk('spaces')->delete($image->location);\n $image->delete();\n }", "title": "" }, { "docid": "7b06ca498cebb34097bee47d0def61eb", "score": "0.5718601", "text": "public function delete() {\n if (unlink($this->fullPath)) {\n $this->fullPath = '';\n $this->mimeType = '';\n $this->simpleName = '';\n $this->size = 0;\n } else {\n throw new Exception('Check write Access to delete file!');\n }\n }", "title": "" }, { "docid": "e8717e0d91da860445a846b6f0ff4c6e", "score": "0.5717918", "text": "public function delete($uri) {\n return $this->filesystem->unlink($uri);\n }", "title": "" }, { "docid": "b86ae32c63f3ca7d52497df28e9fc6c7", "score": "0.5715146", "text": "public function remove(string $path): self;", "title": "" }, { "docid": "d88570650ee0cd02f602031e7809a9e1", "score": "0.569391", "text": "public function destroy(ResourceCreator $listener, $resourceId);", "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": "e5d47a80a17edd9d97460e8002cc40a1", "score": "0.56822425", "text": "public function destroy($id)\n {\n try {\n $req = Req::find($id);\n\n foreach (json_decode($req->images) as $img){\n @unlink('storage/' . $img);\n }\n\n $req->delete();\n return response()->json([\n 'success' => 'Record deleted successfully!'\n ]);\n } catch (\\Exception $e) {\n return redirect()->back()->with('error', 'Error Try Again !!');\n }\n }", "title": "" }, { "docid": "69eb53cf8ca11222913b106ef117d68e", "score": "0.5679363", "text": "public function delete() {\n\t\t$this->checkWritePermission(true);\n\t\t$file = \\GO\\Files\\Model\\File::model()->findByPath($this->relpath);\n\t\t$file->delete();\n\t}", "title": "" }, { "docid": "c4f845a8d7bbb2425211bda284218817", "score": "0.56762695", "text": "function destroy() {\n\t\tunlink($this->get_file_name());\n\t\tself::remove_from_cache($this);\n\t}", "title": "" }, { "docid": "f62dc86d2fbee3e234695c789eabb485", "score": "0.5661866", "text": "public function destroy($id)\n {\n $student = Student::find($id);\n\n/* if($student->avatar)\n {\n unlink($student->avatar);\n }*/\n $student->delete();\n\n return redirect('students/')->with('success' , 'Data has been deleted');\n }", "title": "" }, { "docid": "c063d4508937e69e31d325da727fad68", "score": "0.56615514", "text": "public function unlink($filename) {\n $filename = $this->normalizePath($filename, NULL, FALSE);\n $filename_write = $this->toWritePath($filename);\n $this->writeOps->unlink($filename_write);\n if ($this->readOps instanceof ClearStatCacheInterface) {\n $this->readOps->clearstatcache($filename);\n }\n }", "title": "" }, { "docid": "7603d1c91a07e1809908a024215c7ff9", "score": "0.5659815", "text": "public function destroy($id)\n {\n $model= Model::findOrFail($id);\n $model->delete();\n\n $name = $model->image;\n File::delete(public_path().'/storage/'.$name);\n File::delete(public_path().'/storage/'.'thumb_'.$name);\n\n Alert::success('Model ' . $model->name . ' fue eliminada');\n return redirect()->route('models.index');\n }", "title": "" }, { "docid": "16edf2c6b79eca832eb0c092ab2f3f24", "score": "0.5649448", "text": "public function removeUpload()\r\n{\r\n if ($file = $this->getAbsolutePath()) {\r\n unlink($file); \r\n }\r\n}", "title": "" }, { "docid": "ca16d50e4d4e2ae00c79d72d63ee1f86", "score": "0.56463283", "text": "public function destroy($id)\n {\n\n $product = Product::findOrFail($id);\n if($product->photo){\n unlink( public_path() . $product->photo->path);\n }\n $product->delete();\n return redirect('productmodule/product')->with('message' ,\"Product Deleted Successfully\");\n\n// if ($product->delete()){\n// return new ProductResource($product);\n// }\n }", "title": "" }, { "docid": "a3a38b27322f5033d7e5049f50adbc03", "score": "0.5645099", "text": "public function unlink($uri, $context = NULL);", "title": "" }, { "docid": "0bc5c9101341c52f6ddc40571b9f9b66", "score": "0.5642073", "text": "public static function delete($image){\n if(!empty($image)){\n $image = str_replace('storage/', 'public/', $image);\n Storage::delete($image);\n }\n }", "title": "" }, { "docid": "be8b1d58278cafac500d99e1d8bf4e7c", "score": "0.56408733", "text": "public function delete()\n {\n self::getPersistenceDriver()->deleteOne($this->data);\n }", "title": "" }, { "docid": "2827a1d4696a95ab9b5d963d5f620b35", "score": "0.56362814", "text": "public function delete() {\n if (!isset($this->currentUser)) {\n throw new Exception(\"Not in session. Editing users requires login\");\n }\n if ($this->currentUser->getUser_type()!=usertype::Administrator){\n throw new Exception(\"Not valid user. Editing resource requires Administrator\");\n }\n\n // Get the user object from the database\n $idresource = $_REQUEST[\"idresource\"];\n $resource = $this->resourceMapper->findById($idresource);\n\n // Does the user exist?\n if ($resource == NULL) {\n throw new Exception(\"no such resource with id: \".$idresource);\n }\n\n // Delete the user object from the database\n $this->resourceMapper->delete($resource);\n\n\n $this->view->setFlash(sprintf(i18n(\"Resource successfully deleted.\"),$resource->getIdresource()));\n\n $this->view->redirect(\"resources\", \"index\");\n\n }", "title": "" }, { "docid": "5109ebc26960086f990edb39768f4e00", "score": "0.5635025", "text": "public function destroy($id)\n {\n unlink('.'.item::find($id)->img);\n item::destroy($id);\n Session::flash('warning','Item Removido!');\n return redirect()->route('home');\n }", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "d29811d1577ed7443199fc1b4276bdd0", "score": "0.56324077", "text": "public function remove($id) {\r\n if ($this->has($id, $this->namespace, self::SCOPE_MEMORY)) {\r\n unset($this->$cache[$this->generateAccessKey($id)]);\r\n }\r\n elseif ($this->has($id, $namespace, self::SCOPE_FILE)) {\r\n \t$filepath = $this->getFilename($this->generateAccessKey($id));\r\n \t@unlink($filepath);\r\n }\r\n }", "title": "" }, { "docid": "62ec0dff73832f5d98bdecee5d10241e", "score": "0.5628287", "text": "public function destroy($ourResource)\n {\n $ourResource= OurResource::Find($ourResource)->firstOrFail();\n $ourResource->delete();\n return redirect(route('ourresource.index'));\n\n }", "title": "" }, { "docid": "e69195d4a9a40721a876716ff49334cc", "score": "0.5625231", "text": "public function destroy($id)\n {\n\n $post = $this->globalvar['model']::find($id);\n $resourceimage = $this->imageresource;\n File::delete($this->globalvar['uploadpath'].'/'.$post->$resourceimage);\n $post->delete();\n\n Session::flash('Success', $this->globalvar['deletionsuccess']);\n return redirect()->route($this->globalvar['routeindex']);\n }", "title": "" }, { "docid": "81b2a149b82ad070a8fc5640c23cb4c5", "score": "0.56235874", "text": "public function deleteResource($resourceId)\n {\n $req = new RESTRequest();\n $data = $req->adminGet('LearningObject/delete/' . $resourceId)->getData();\n return $data;\n }", "title": "" }, { "docid": "3662a98e9c39b3ce43a9446f372faaea", "score": "0.56112725", "text": "public function destroyById($id);", "title": "" }, { "docid": "d19f0dd6eed7e8a8da6c207b4e430532", "score": "0.560789", "text": "public function serverDeleteVideo($resource, $email)\n {\n $resource2 = $resource;\n $path = base_path() . \"\\\\resources\\\\videos\\\\\";\n $path = $path . $email . \"\\\\\";\n\n $dir = @dir($path) or die(\"getFileList: Error abriendo el directorio $path para leerlo\");\n while(($archivo = $dir->read()) !== false) {\n // Obviamos los archivos ocultos\n if($archivo[0] == \".\") continue;\n /*if(is_dir($path . $archivo)) {\n // var_dump($archivo[0]);\n }*/ else if (is_readable($path . $archivo)) {\n \n $file = basename($path . $archivo); \n //echo $file;\n if($file == $resource2){\n unlink($path . $archivo);\n //echo $file;\n $contents = \"Deleted\";\n $response = Response::make($contents, 204);\n $response->header('Content-Type', 'application/json');\n return var_dump($response);\n }\n }\n }\n \n }", "title": "" }, { "docid": "be1aaccbcdec9ba85c660767bd3c39d7", "score": "0.5604081", "text": "public function destroy($id)\n {\n Resource::deleteResource($id);\n }", "title": "" }, { "docid": "b51f394c05cd4f2c03b66fb420214bf9", "score": "0.5596357", "text": "private function removeStoragePath($image)\n {\n $path_attr = $this->path_attr;\n\n Storage::delete($image->$path_attr);\n }", "title": "" }, { "docid": "6fbcf9a59c7f34ed85fd172cdf3d3c38", "score": "0.5595493", "text": "public function remove(){}", "title": "" }, { "docid": "635fc9f7a4a2830c651a29b140289b35", "score": "0.5590984", "text": "public function delete(string $path): void;", "title": "" }, { "docid": "61fba936475c878e54c2ccdf6070fb37", "score": "0.5589317", "text": "public function destroy($id)\n {\n //\n $record = Record::findOrFail($id);\n if($record->photo_id){ \n unlink(public_path() . $record->photo->file);\n }\n $record->delete();\n Session::flash('deleted_record','The record has been deleted');\n return redirect('admin/records');\n }", "title": "" }, { "docid": "e8dc5b1c3960ebd872e6313cb6c5d0a3", "score": "0.55856156", "text": "public function destroy($id)\n\t{\n $modelname = $this->modelname;\n $resource = $modelname::find($id);\n if($resource)\n {\n $resource->delete();\n }\n\t}", "title": "" }, { "docid": "727ad3584e68e2fbd7f4240087aca6cc", "score": "0.5571009", "text": "public function destroy($id)\n {\n $data = Supplier::findOrFail($id);\n $file_path = public_path() . $data->photo;\n if (file_exists($file_path)) {\n try {\n unlink($file_path);\n } catch (Exception $e) {\n // Do Nothing on Exception\n }\n }\n if ($data->delete()) {\n return back()->with([\"success\" => \"Data deleted successfully\"]);\n } else {\n return back()->with([\"error\" => \"Delete process failed\"]);\n }\n }", "title": "" }, { "docid": "5ee1747f20cb5d4c363843da3cc571d2", "score": "0.55688524", "text": "public function destroy($id)\n {\n try {\n \n $photo=Supplier::find($id);\n $location=base_path().'/public/img/supplier/' .$photo->Picture;\n $cc = unlink($location);\n \n Supplier::find($id)->delete(); \n return redirect('/supplier')->with('Data supplier successfully removed .');\n }\n catch(Exception $e) {\n return redirect('/supplier')->with('pesan_gagal', $e->getMessage());\n }\n }", "title": "" }, { "docid": "c70b89412cfa3204082621e98738cb27", "score": "0.5562218", "text": "public function delete()\n\t{\n\t\t$resource_contents = $this->client->query('DELETE', $this->url);\n\t\t$this->initialize_from_resource_contents($resource_contents);\n\t}", "title": "" }, { "docid": "21b9068d98d337440a28121b19231757", "score": "0.5560739", "text": "public function destroy($id)\n {\n $pic = Pic::find($id);\n $path = public_path('/storage/').$pic['name'];\n if(file_exists($path)){\n unlink($path);\n $pic->delete();\n return redirect('pics')->with('success', 'Picture has been successfully deleted');\n }\n else{\n return redirect('pics')->with('failure', 'Picture was not deleted');\n }\n }", "title": "" }, { "docid": "16a6c0a8baa71c1d7233b60b2b1c76f7", "score": "0.5559715", "text": "public function destroy($id)\n {\n $product = Product::find($id);\n $product->delete();\n// Storage::disk('uploads')->delete($product->image_path);\n\n// unlink(public_path('uploads/' . $product->image_path)); //Native php\n return redirect()->route('products.index')->with([\n 'success' => 'product ' . $product->name . ' deleted to trash Successfully'\n ]);\n }", "title": "" }, { "docid": "944f0f53f717617ff54aba9fd9e47542", "score": "0.5556541", "text": "public function destroy($id){\n\n $image = Slider::find($id);\n\n if(unlink(public_path('/images/slider/'.$image->image))){\n $image->delete();\n return back()->with('success', 'Slider Image Deleted');\n }\n }", "title": "" }, { "docid": "120960a561ec9e0438e25d9279c7d899", "score": "0.55498356", "text": "public function destroy($id)\n {\n $deleteSingle = Menu::find($id);\n \nunlink(public_path() . '/menu/' . $deleteSingle->image);\n \n $deleteSingle->delete();\n return redirect('/admin/menu');\n }", "title": "" }, { "docid": "640b23a5dcf07677851e9c4a1dcdabf1", "score": "0.55474347", "text": "public function remove($assetFile);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "2f14aec89d53e310ca8947cee2091f8e", "score": "0.5540011", "text": "public function deleteFromResourceIndices(&$resource) {\n\n if ($this->connector != null) {\n $params = [\n 'index' => \\snac\\Config::$ELASTIC_SEARCH_RESOURCE_INDEX,\n 'id' => $resource->getID()\n ];\n\n $this->logger->addDebug(\"Updated elastic search to remove resource\");\n }\n\n }", "title": "" }, { "docid": "b5b688091a31c75ff8615389051972dc", "score": "0.5539336", "text": "public function delete()\n {\n $this->removeImage();\n parent::delete();\n }", "title": "" }, { "docid": "d0252df7b40416387e377fa297935229", "score": "0.5537589", "text": "public function persistRemove()\n {\n $old = $this->determineName(false);\n if (!isset($old)) return;\n \n $old = new File($this->getPath() . '/' .$old);\n if (file_exists($old)) {\n if ((string)$old != (string)$this->replacement) unlink($old);\n foreach (glob($old->getPath() . '/*.' . $old->getBasename()) as $file) unlink($file);\n }\n }", "title": "" }, { "docid": "d74232efdaa63e7c24cc94cdb786b212", "score": "0.55310154", "text": "public function removeImage(){\r\n\t\t$id = Input::get('id');\r\n\t\t$image = ProductImage::where('id', $id)->pluck('image');\r\n @unlink(PRODUCTS_IMAGE_ROOT_PATH . $image);\r\n\t\tDB::table('product_images')->where('id', '=', $id)->delete();\r\n\t\tdie;\r\n\t}", "title": "" }, { "docid": "05455e5116f6ce487eddc1f096db4ea6", "score": "0.55273694", "text": "public function delete() : Resource {\n try{\n \n $this->method = 'DELETE';\n return $this;\n \n } catch (\\Throwable $t){\n new ErrorTracer($t);\n }\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": "" } ]
81fa5e06ae16f29cb735ea68e423b522
Get the right value of the tile
[ { "docid": "b5235de757e95f31c678fffb84654724", "score": "0.52708256", "text": "public function getRight()\n {\n return $this->values[self::RIGHT];\n }", "title": "" } ]
[ { "docid": "ee7f052cdac5118e24142d07faa3416f", "score": "0.6922593", "text": "public function get_tile($tile) {\n\t\treturn $this->_data[$tile];\n\t}", "title": "" }, { "docid": "b03cb2fe2a633dc3d3e5cf07cc17ccde", "score": "0.6388917", "text": "function get_tile($tile)\n \t{\n \t$result=sql_query(\"SELECT * FROM dash_tile WHERE ref='\".$tile.\"'\");\n \treturn isset($result[0])?$result[0]:false;\n \t}", "title": "" }, { "docid": "74c288abf19d0a76de221417559d5c86", "score": "0.6125307", "text": "function GetTile($_intOS)\n{\n\t//$GetTileCh4 = mid($_intOS,4,1);\t\t\n\t$GetTileCh4 = substr($_intOS, 3, 1);\n\tif ($GetTileCh4 < 5) {\n\t\t$GetTileCh4 = 0;\n\t} else {\n\t\t$GetTileCh4 = 5;\n\t}\n\t$GetTileResult = substr($_intOS, 0, 3) . $GetTileCh4 . \"00\";\n\treturn $GetTileResult;\n}", "title": "" }, { "docid": "0466565b3f61e8cf13ced41f42566220", "score": "0.60306454", "text": "public function getFirstValueOnBoard(): int {\n return reset($this->board)->getFirst();\n }", "title": "" }, { "docid": "4e5086ac57894841ad5666967fe648f2", "score": "0.6000351", "text": "public function getEndValueOnBoard(): int {\n return end($this->board)->getSecond();\n }", "title": "" }, { "docid": "49bf96506a9da6338cc36fbdaf8f7037", "score": "0.5875175", "text": "public function pickTile(int $value = null): ?Tile;", "title": "" }, { "docid": "c2a950573d9facd35b8b799feedd61cc", "score": "0.5837355", "text": "public function getSelectedTile() {\n return $this->_selectedTile;\n }", "title": "" }, { "docid": "8cf713fbb8cf4c45e587c2f475fd47ba", "score": "0.5782163", "text": "public function getCellValue($vector){\n\t\t$x = $vector[0];\n\t\t$y = $vector[1];\n\t\t\n\t\t$cell = $this->maze[$x][$y];\n\t\treturn $cell;\n\t}", "title": "" }, { "docid": "a0f3e9a8a9bbd26821d9a8d1c7b44742", "score": "0.5725991", "text": "function get_user_tile($usertile,$user)\n \t{\n \t$result=sql_query(\"SELECT * FROM user_dash_tile WHERE ref='\".escape_check($usertile).\"' AND user=\".escape_check($user));\n \treturn isset($result[0])?$result[0]:false;\n \t}", "title": "" }, { "docid": "27ad2b9baed20b7b428ba65ebdb93e61", "score": "0.568353", "text": "public abstract function getSurfaceBlock(int $y): int;", "title": "" }, { "docid": "17c7d0142d8a84ca48a1af9032d41256", "score": "0.56684643", "text": "function ytile( $lat, $zoom ){\n\tglobal $minY;\n\treturn ( ( (1 - log(tan(deg2rad($lat)) + 1 / cos(deg2rad($lat))) / pi()) /2 * pow(2, $zoom) ) - $minY ) * 256;\n}", "title": "" }, { "docid": "b99fb6d7ab2195ece9e0e5955eda1681", "score": "0.56229705", "text": "function getR($col) {return (($col >> 8) >> 8) % 256;}", "title": "" }, { "docid": "04f0cc0352181595dd7afef73b858fb4", "score": "0.55997646", "text": "public abstract function getGroundBlock(int $y): int;", "title": "" }, { "docid": "de3bd446e522929b13f1ef2ab700e527", "score": "0.5572429", "text": "function xtile( $lon, $zoom ){\n\tglobal $minX;\n\treturn ( (($lon + 180) / 360) * pow(2, $zoom) - $minX ) * 256;\n}", "title": "" }, { "docid": "7c63cbe0db09e9a2d0445d8221cdb32b", "score": "0.5507653", "text": "public function getTileSize()\n {\n return $this->getOption('tileSize', 256);\n }", "title": "" }, { "docid": "a20d8ba3f36082dd45c281848c0eaa7e", "score": "0.5481203", "text": "public function bitmapUnit() { return $this->_m_bitmapUnit; }", "title": "" }, { "docid": "0f9670aae83703f6e0311d0ca8110978", "score": "0.54375046", "text": "public final function getR(): int\n {\n\n return $this->data[ 'red' ];\n\n }", "title": "" }, { "docid": "3a4b14ef70684139636816297698ac7d", "score": "0.5373502", "text": "public function hasTile(int $value = null): bool;", "title": "" }, { "docid": "d0b09038f21e6d70579cc2263b7726bf", "score": "0.5350406", "text": "function tile_x_to_lon($tile_x, $zoom)\n{\n\treturn rad2deg(pi() * (2 * $tile_x / (1 << $zoom) - 1));\n}", "title": "" }, { "docid": "6345ed70c486e0c56df36184991378a8", "score": "0.5316064", "text": "public function getRightValue()\n {\n return $this->right_value;\n }", "title": "" }, { "docid": "e821ae6ac00e91da71ef19bc745abd6e", "score": "0.52997184", "text": "public function get($x, $y) {\n if ($x >= $this->width || $y >= $this->height) {\n return false;\n }\n\n return $this->blocks[$x][$y];\n }", "title": "" }, { "docid": "3e477b97b45e0d22b25d725de13b08df", "score": "0.52947724", "text": "public function getMaxTileWidth()\n {\n $style = $this->style;\n\n if (!isset($style['max_tile_width'])) {\n return null;\n } else {\n return $style['max_tile_width'];\n }\n }", "title": "" }, { "docid": "16e9a1f12cf26c9cea9b50e75457c292", "score": "0.5292401", "text": "function lat_to_tile_y($latitude, $zoom)\n{\n\t$latitude = clip($latitude, -85.05112878, 85.05112878);\n\t$sin_lat = sin(deg2rad($latitude));\n\t//$y = 0.5 - log((1 + $sin_lat) / (1 - $sin_lat)) / (4 * pi());\n\t$e = 0.0818191908426; // eccentricity of the Earth\n\t$y = 0.5 - (atanh($sin_lat) - $e * atanh($e * $sin_lat)) / (2 * pi());\n\t$size_in_tiles = 1 << $zoom;\n\treturn min((int) ($y * $size_in_tiles), $size_in_tiles - 1);\n}", "title": "" }, { "docid": "8487e53631d31eb31ed05b85895639de", "score": "0.5246085", "text": "function tile_to_quadkey($tile_x, $tile_y, $zoom)\n{\n\tif ($zoom == 0) return 0;\n\n\t$quadkey = '';\n\tfor ($i = 0; $i < $zoom; $i++)\n\t{\n\t\t$quadkey = ($tile_y & 1) . ($tile_x & 1) . $quadkey;\n\t\t$tile_x >>= 1;\n\t\t$tile_y >>= 1;\n\t}\n\treturn $quadkey;\n}", "title": "" }, { "docid": "e77982d272c3a172b6af954a56a41f13", "score": "0.5243073", "text": "public function getMapTileset()\n {\n return $this->map_tileset;\n }", "title": "" }, { "docid": "944714d9c070ca6ec80a10a98222bb90", "score": "0.52187", "text": "function lon_to_tile_x($longitude, $zoom)\n{\n\t$longitude = clip($longitude, -180, 180);\n\t$x = ($longitude + 180) / 360;\n\t$size_in_tiles = 1 << $zoom;\n\treturn min((int) ($x * $size_in_tiles), $size_in_tiles - 1);\n}", "title": "" }, { "docid": "70c276a7d6b519af9232d1d034b78e85", "score": "0.51979375", "text": "public function getSurfaceTempEarth()\n {\n return 290; \n }", "title": "" }, { "docid": "46ac13e13a1c6238340efc069dd8ef12", "score": "0.51267385", "text": "abstract protected function getValue();", "title": "" }, { "docid": "46ac13e13a1c6238340efc069dd8ef12", "score": "0.51267385", "text": "abstract protected function getValue();", "title": "" }, { "docid": "46ac13e13a1c6238340efc069dd8ef12", "score": "0.51267385", "text": "abstract protected function getValue();", "title": "" }, { "docid": "46ac13e13a1c6238340efc069dd8ef12", "score": "0.51267385", "text": "abstract protected function getValue();", "title": "" }, { "docid": "819793af2863d048fdac9792b4fb9c86", "score": "0.51243", "text": "public function getValue(): int;", "title": "" }, { "docid": "819793af2863d048fdac9792b4fb9c86", "score": "0.51243", "text": "public function getValue(): int;", "title": "" }, { "docid": "7a0b0ac9ab0bd7219d9a3d0bf5160a2b", "score": "0.51184046", "text": "function getCell() {\n return ($this->translate($this->getValue(),true));\n }", "title": "" }, { "docid": "a361cdce591564cfd28633279a5e2c8f", "score": "0.51146775", "text": "public function getFreeTileByType(string $type): ?Tile\n {\n for ($w = 1; $w <= $this->width; $w++) {\n for ($h = 1; $h <= $this->height; $h++) {\n /* @var $tile \\app\\models\\Tile */\n $tile = $this->map[$w][$h];\n if ($tile->getType() === $type && !$tile->isAnythingLocated()) {\n echo \"found free space at $w:$h<br>\";\n return $tile;\n }\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "9a45c0083f9771fe6e58842501e60fa7", "score": "0.5099751", "text": "function getTemp($value){\n\necho ($value * 9/5) + 32 . \"<br>\";\n}", "title": "" }, { "docid": "656fc593878a9c22aa955af572b2e391", "score": "0.5083601", "text": "public function getActualTemp()\n {\n return $this->farenTemp;\n }", "title": "" }, { "docid": "5cb49f260d742b2f36aa6b9b0871eace", "score": "0.5082345", "text": "public function getPixel(int $x, int $y) : int;", "title": "" }, { "docid": "ba3657c7fdf73cf628bf41f1278fafd5", "score": "0.5077556", "text": "public function getStoneBlock(): int\n {\n return Block::STONE;\n }", "title": "" }, { "docid": "27b686fd208a3b8eb9d6960783227aab", "score": "0.50695384", "text": "private function _findGridStart ($value){\n\n// return the start of the current 3x3 grid\nreturn floor( $value / 3 ) * 3;\n}", "title": "" }, { "docid": "8167ed37ae93f7c85b01308d5105bbf7", "score": "0.5057298", "text": "public function getValue(int $row, int $column)\n {\n $row = $this->validateRowInRange($row);\n $column = $this->validateColumnInRange($column);\n\n return $this->grid[$row - 1][$column - 1];\n }", "title": "" }, { "docid": "2fcf1307f0fcfd7d09053a636b0b55ed", "score": "0.50564677", "text": "function imagesettile ($image, $tile) {}", "title": "" }, { "docid": "eb8edac46674122cbfdd0828866c8177", "score": "0.5051412", "text": "public static function getPositionHard(array $board): int\n {\n // if first move\n if (self::countXs($board) === 1) {\n // and middle\n if ($board[4]['value'] === 'x') {\n //block corner\n return self::getRandomPosition([0, 2, 6, 8]);\n }\n\n // middle is empty, take it\n return 4;\n }\n\n // if second move\n if (self::countXs($board) === 2) {\n $myFirstPosition = self::getMyFirstPosition($board);\n // middle occupied\n if ($board[4]['value'] === 'x') {\n // is second move corner\n if ($board[0]['value'] === 'x' && $board[0]['value'] === $board[4]['value']) {\n if ($myFirstPosition === 6 || $myFirstPosition === 2) {\n return 8;\n }\n if ($myFirstPosition === 8) {\n return self::getRandomPosition([2, 6]);\n }\n }\n if ($board[2]['value'] === 'x' && $board[2]['value'] === $board[4]['value']) {\n if ($myFirstPosition === 0 || $myFirstPosition === 8) {\n return 6;\n }\n if ($myFirstPosition === 6) {\n return self::getRandomPosition([0, 8]);\n }\n }\n if ($board[6]['value'] === 'x' && $board[6]['value'] === $board[4]['value']) {\n if ($myFirstPosition === 0 || $myFirstPosition === 8) {\n return 2;\n }\n if ($myFirstPosition === 2) {\n return self::getRandomPosition([0, 8]);\n }\n }\n if ($board[8]['value'] === 'x' && $board[8]['value'] === $board[4]['value']) {\n if ($myFirstPosition === 6 || $myFirstPosition === 2) {\n return 0;\n }\n if ($myFirstPosition === 0) {\n return self::getRandomPosition([2, 6]);\n }\n }\n\n // if second move not corner, block\n return self::getPositionMedium($board);\n }\n\n // we have middle\n if (($board[0]['value'] === 'x' && $board[0]['value'] === $board[8]['value'])\n || ($board[2]['value'] === 'x' && $board[2]['value'] === $board[6]['value'])\n ) {\n // take a line\n return self::getRandomPosition([1, 3, 5, 7]);\n }\n }\n\n // if third move\n if (self::countXs($board) === 3) {\n if (self::canWin($board)) {\n return self::winningPosition($board);\n }\n }\n\n // block two Xs\n return self::getPositionMedium($board);\n }", "title": "" }, { "docid": "96e6bde51317db00cf849ec4020cebf7", "score": "0.5019483", "text": "function __cpuMove(){\n for($i = 0 ; $i < 81; $i++){\n \n $x = rand(0,homeAction::maxX);\n $y = rand(0,homeAction::maxY);\n if($this->grid[$x][$y] == homeAction::unsetBlock) {\n $this->grid[$x][$y] = homeAction::cpuCode;\n return compact('x','y');\n }\n }\n \n return false;\n }", "title": "" }, { "docid": "8fe9e5e399d50e1e5d76d1702f7f9050", "score": "0.501806", "text": "abstract public function getValue();", "title": "" }, { "docid": "8fe9e5e399d50e1e5d76d1702f7f9050", "score": "0.501806", "text": "abstract public function getValue();", "title": "" }, { "docid": "8fe9e5e399d50e1e5d76d1702f7f9050", "score": "0.501806", "text": "abstract public function getValue();", "title": "" }, { "docid": "5d79df4b0253b3620987b20f4259f7cb", "score": "0.50157195", "text": "private function getBit() {\n\t\t$return_value\t= false;\n\t\tif ($this->bit_cursor < ($this->payload_size * 8)) {\n\t\t\t$byte\t= floor($this->bit_cursor / 8);\n\t\t\t$bit\t\t= $this->bit_cursor % 8;\n\t\t\t$mask\t= 0x01 << $bit;\n\t\t\t$feed\t= ord($this->ciphertext[$byte]);\n\t\t\t$return_value\t= ($feed & $mask) ? 0x01:0x00;\n\t\t\t$this->bit_cursor++;\n\t\t}\n\t\telse {\n\t\t\t$return_value\t= ($this->visible_result) ? false: (rand(0,1))\t? 0x01:0x00;\n\t\t}\n\t\treturn $return_value;\n\t}", "title": "" }, { "docid": "6e84afd6f88723b87935c3c8064ffdb1", "score": "0.49982607", "text": "protected function getCurrentNight() {\n return $this->consumedNightPower / $this->loadVoltage;\n }", "title": "" }, { "docid": "fd990a78652448c6917060d3c5988f86", "score": "0.4995297", "text": "function current(){\n\t\treturn $this->mixValue[$this->_numPosition];\n\t}", "title": "" }, { "docid": "1fcf7845f04bdfa25c8b3e5be624a303", "score": "0.49899969", "text": "public final function getB(): int\n {\n\n return $this->data[ 'blue' ];\n\n }", "title": "" }, { "docid": "ecdefd56443865a98e5dda5a05a275a3", "score": "0.49779004", "text": "public function getPiece()\n {\n return $this->piece;\n }", "title": "" }, { "docid": "0503e73f5cff7e7052dc2dd22f5bb90a", "score": "0.49632522", "text": "function getValNode(){\n\t\t$clase=$this->nmclass;\n\t\t$node=$this->anode;\n\t\t$valor=$this->nodos[$clase][$node];\n\t\t\n\t\tif($valor!=''){\n\t\t\treturn $valor;\n\t\t}\n\t\telse{\n\t\t\treturn -1;\n\t\t}\n\t}", "title": "" }, { "docid": "56cbfdc84cb7e6da7f34bacc0dafe845", "score": "0.4957405", "text": "private function pickRndCell(){\n\t\n\t\n\t\t$randX = mt_rand(0, $this->width-1);\n\t\n\t\t$randY = mt_rand(0, $this->height-1);\n\t\n\t\t$point = array($randX, $randY);\n\t\treturn $point;\n\t}", "title": "" }, { "docid": "5c14cdc53d2055952444510f4fd626da", "score": "0.4957082", "text": "protected function _square()\n {\n return $this->pow(2);\n }", "title": "" }, { "docid": "9b3a8e13d76c99101924be46cd0046ff", "score": "0.49495885", "text": "function getDie2Value(){\n\t\t\treturn $this->die2->getValue();\n\t\t}", "title": "" }, { "docid": "3bf73f0c7c5c06d2dbf46c2e6bf419e1", "score": "0.4939032", "text": "function getValue($r,$g,$b){\n \n\tswitch( METHOD ){\n\t\tcase 1:\n\t\t\t$gray = round( .299*$r + .587*$g + .114*$b );\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t$gray = floor((max($r,max($g,$b)) + min($r,min($g,$b))) / 2);\n\t\t\tbreak;\n\t\tcase 3:\n \t\t\t$gray = round( .333*$r + .333*$g + .334*$b );\n\t\t\tbreak;\n\t}\n\treturn $gray;\n \n}", "title": "" }, { "docid": "887ac4a334305f77ee276500d2c4e857", "score": "0.49330997", "text": "function get_cell_value($cell_index) {\n global $cells;\n\n return isset($cells[$cell_index]['value']) ? $cells[$cell_index]['value'] : calc($cell_index);\n}", "title": "" }, { "docid": "c618aa2f4ea18670dbca66d25588b82b", "score": "0.49327534", "text": "function getValue() {\n\t\t\treturn $this->currentValue;\n\t\t}", "title": "" }, { "docid": "2dd439fb85c78e60d3508efa23f4182a", "score": "0.49271125", "text": "public function value()\n {\n return self::$units[$this->unit]['value'];\n }", "title": "" }, { "docid": "7918867b2d10d14ca9e4a5a4c45dab77", "score": "0.49091792", "text": "protected function getVal(){\n\t\treturn $this->val;\n\t}", "title": "" }, { "docid": "f67a9a33cabc4276fc17d1d4beb8ece3", "score": "0.48976964", "text": "public function getHandValue(): Int\n {\n return $this->handValue;\n }", "title": "" }, { "docid": "db79483f37c7603f8451d52e32f38bd9", "score": "0.4895879", "text": "function current_value() {\n return $this->values[$this->index];\n }", "title": "" }, { "docid": "3e962026f751dc7861d17ab9637360fd", "score": "0.48873368", "text": "public function getimagematte(): int {}", "title": "" }, { "docid": "cfde89fd77732c3a4644967966856d41", "score": "0.48731846", "text": "public function nextShot() {\r\n\t\t//Check if this is the first shot since the first shot will always be a miss//\r\n\t\tend($this->shots);\r\n\t\tif (key($this->shots)==\"-1,-1\"){\r\n\t\t\treturn $this->missShot();\r\n\t\t}\r\n\t\t//Check if the las shot hit a ship, if it did return a miss shot else return a hit shot//\r\n\t\tlist($col,$row)=explode(',', key($this->shots));\r\n\t\tforeach ($this->player_ships as $key => $value) {\r\n\t\t\tif($this->shot_collision($value, $col, $row)){\r\n\t\t\t\treturn $this->missShot();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->hitShot();\r\n\t}", "title": "" }, { "docid": "492bd19320bf7e22ec564947d028da57", "score": "0.48578092", "text": "function getDie1Value(){\n\t\t\treturn $this->die1->getValue();\n\t\t}", "title": "" }, { "docid": "d705d12b49175225b8b9b493c64db64e", "score": "0.4834404", "text": "public function getPixel($x, $y) {\n\t\t\treturn isset($this->bitmap[$y][$x]) ? $this->bitmap[$y][$x] : false;\n\t\t}", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.48271683", "text": "public function getValue();", "title": "" }, { "docid": "a493216c3611ea48c1ac526f60549750", "score": "0.48213795", "text": "public function firstQuartile(): mixed\n {\n return Stat::firstQuartile($this->values);\n }", "title": "" }, { "docid": "ee6f28a6c18fb44c787ab7f5a5c6e253", "score": "0.48196587", "text": "public function getFloor()\n {\n return $this->floor;\n }", "title": "" }, { "docid": "ee6f28a6c18fb44c787ab7f5a5c6e253", "score": "0.48196587", "text": "public function getFloor()\n {\n return $this->floor;\n }", "title": "" }, { "docid": "3415f06a370d0d5b2b5c26827a192532", "score": "0.48167932", "text": "public function getElement($row, $column)\n {\n\treturn $this->matrix[$row - 1][$column - 1];\n }", "title": "" }, { "docid": "b889fcdc1fdbedf1a3553989cc977de0", "score": "0.48160368", "text": "public function keliling()\n\t{\n\t\treturn 2*($this->panjang + $this->lebar);\n\t}", "title": "" }, { "docid": "093d44b14d29d576fec728becd102fc6", "score": "0.48151642", "text": "public static function getPositionMedium(array $board, string $value = 'x'): int\n {\n // Row 1\n if ($board[0]['value'] === $value && $board[0]['value'] === $board[1]['value'] && $board[2]['value'] === '') {\n return 2;\n }\n if ($board[0]['value'] === $value && $board[0]['value'] === $board[2]['value'] && $board[1]['value'] === '') {\n return 1;\n }\n if ($board[1]['value'] === $value && $board[1]['value'] === $board[2]['value'] && $board[0]['value'] === '') {\n return 0;\n }\n\n // Row 2\n if ($board[3]['value'] === $value && $board[3]['value'] === $board[4]['value'] && $board[5]['value'] === '') {\n return 5;\n }\n if ($board[3]['value'] === $value && $board[3]['value'] === $board[5]['value'] && $board[4]['value'] === '') {\n return 4;\n }\n if ($board[4]['value'] === $value && $board[4]['value'] === $board[5]['value'] && $board[3]['value'] === '') {\n return 3;\n }\n\n // Row 3\n if ($board[6]['value'] === $value && $board[6]['value'] === $board[7]['value'] && $board[8]['value'] === '') {\n return 8;\n }\n if ($board[6]['value'] === $value && $board[6]['value'] === $board[8]['value'] && $board[7]['value'] === '') {\n return 7;\n }\n if ($board[7]['value'] === $value && $board[4]['value'] === $board[8]['value'] && $board[6]['value'] === '') {\n return 6;\n }\n\n // Column 1\n if ($board[0]['value'] === $value && $board[0]['value'] === $board[3]['value'] && $board[6]['value'] === '') {\n return 6;\n }\n if ($board[0]['value'] === $value && $board[0]['value'] === $board[6]['value'] && $board[3]['value'] === '') {\n return 3;\n }\n if ($board[3]['value'] === $value && $board[3]['value'] === $board[6]['value'] && $board[0]['value'] === '') {\n return 0;\n }\n\n // Column 2\n if ($board[1]['value'] === $value && $board[1]['value'] === $board[4]['value'] && $board[7]['value'] === '') {\n return 7;\n }\n if ($board[1]['value'] === $value && $board[1]['value'] === $board[7]['value'] && $board[4]['value'] === '') {\n return 4;\n }\n if ($board[4]['value'] === $value && $board[4]['value'] === $board[7]['value'] && $board[1]['value'] === '') {\n return 1;\n }\n\n // Column 3\n if ($board[2]['value'] === $value && $board[2]['value'] === $board[5]['value'] && $board[8]['value'] === '') {\n return 8;\n }\n if ($board[2]['value'] === $value && $board[2]['value'] === $board[8]['value'] && $board[5]['value'] === '') {\n return 5;\n }\n if ($board[5]['value'] === $value && $board[5]['value'] === $board[8]['value'] && $board[2]['value'] === '') {\n return 2;\n }\n\n // Across 1\n if ($board[0]['value'] === $value && $board[0]['value'] === $board[4]['value'] && $board[8]['value'] === '') {\n return 8;\n }\n if ($board[0]['value'] === $value && $board[0]['value'] === $board[8]['value'] && $board[4]['value'] === '') {\n return 4;\n }\n if ($board[4]['value'] === $value && $board[4]['value'] === $board[8]['value'] && $board[0]['value'] === '') {\n return 0;\n }\n \n // Across 2\n if ($board[2]['value'] === $value && $board[2]['value'] === $board[4]['value'] && $board[6]['value'] === '') {\n return 6;\n }\n if ($board[2]['value'] === $value && $board[2]['value'] === $board[6]['value'] && $board[4]['value'] === '') {\n return 4;\n }\n if ($board[4]['value'] === $value && $board[4]['value'] === $board[6]['value'] && $board[2]['value'] === '') {\n return 2;\n }\n\n return self::getPositionEasy($board);\n }", "title": "" }, { "docid": "56ced18863ec9e9f17ae851894563aa9", "score": "0.4812662", "text": "function quadkey_to_tile($quadkey, &$tile_x, &$tile_y)\n{\n\t$tile_x = 0;\n\t$tile_y = 0;\n\tif ($quadkey === '0') return;\n\n\t$len = strlen($quadkey);\n\t$quadkey = str_split($quadkey);\n\tfor ($i = 0; $i < $len; $i += 2)\n\t{\n\t\t$tile_y = ($tile_y << 1) | $quadkey[$i];\n\t}\n\tfor ($i = 1; $i < $len; $i += 2)\n\t{\n\t\t$tile_x = ($tile_x << 1) | $quadkey[$i];\n\t}\n}", "title": "" }, { "docid": "9de4e38f418c7bc285ee1c67ea6ff03e", "score": "0.48033077", "text": "public function getMapDifficulty()\n {\n return $this->map_difficulty;\n }", "title": "" } ]
7108ac32a562de07cdd5b881e3837388
Function used for sorting posts.
[ { "docid": "fe50d8a327de61bc40ed6ed7bbf2cf87", "score": "0.0", "text": "private static function compareTime($a, $b)\n {\n //From newest to oldest\n if(self::$SORTING == SORT_DESC) {\n return $b[\"created_at\"] - $a[\"created_at\"];\n } elseif(self::$SORTING == SORT_ASC) {\n return $a[\"created_at\"] - $b[\"created_at\"];\n }\n }", "title": "" } ]
[ { "docid": "18491067313323366f89a3e128510e39", "score": "0.7255636", "text": "public function sort_posts() {\n\t\t?>\n\t\t<style type=\"text/css\">\n\t\t#icon-reorder-posts {\n\t\t\tdisplay: none;\n\t\t\tbackground:url(<?php echo $this->icon; ?>) no-repeat;\n\t\t}\n\t\t</style>\n\t\t<div class=\"wrap\">\n\t\t\t<?php screen_icon( 'reorder-posts' ); ?>\n\t\t\t<h2>\n\t\t\t\t<?php echo $this->heading; ?><br>\n\t\t\t\t<span style=\"font-size:13px\">Trascina per determinare l'ordine manuale di visualizzazione degli elementi.</span>\n\t\t\t\t<img src=\"<?php echo admin_url( 'images/loading.gif' ); ?>\" id=\"loading-animation\" />\n\t\t\t</h2>\n\t\t\t<div id=\"reorder-error\"></div>\n\t\t\t<?php echo $this->initial; ?>\n\t\t\t<div id=\"list\">\n\t\t\t<input class=\"search\" placeholder=\"Search\" />\n\t\t\t<div id=\"message-order\" class=\"updated\" style=\"display:none;\">\n\t <p><h3>ATTENZIONE</h3>Il sistema di <b>ordinamento</b> è disabilitato nella lista filtrata. Rimuovere i criteri di ricerca per riabilitare il sistema.</p>\n\t </div>\n\t\t\t<ul id=\"post-list\" class=\"list\">\n\t\t<?php\n\t\tif ( is_post_type_hierarchical( $this->post_type ) ) {\n\t\t\t$pages = get_pages( array(\n\t\t\t\t'sort_column' => 'menu_order',\n\t\t\t\t'post_type' => $this->post_type,\n\t\t\t ) );\n\t\t\t //Get hiearchy of children/parents\n\t\t\t $top_level_pages = array();\n\t\t\t $children_pages = array();\n\t\t\t foreach( $pages as $page ) {\n\t\t\t\tif ( $page->post_parent == 0 ) {\n\t\t\t\t\t//Parent page\n\t\t\t\t\t$top_level_pages[] = $page;\n\t\t\t\t} else {\n\t\t\t\t\t$children_pages[ $page->post_parent ][] = $page;\n\t\t\t\t}\n\t\t\t } //end foreach\n\n\t\t\t foreach( $top_level_pages as $page ) {\n\t\t\t\t$page_id = $page->ID;\n\t\t\t\tif ( isset( $children_pages[ $page_id ] ) && !empty( $children_pages[ $page_id ] ) ) {\n\t\t\t\t\t//If page has children, output page and its children\n\t\t\t\t\t$this->output_row_hierarchical( $page, $children_pages[ $page_id ], $children_pages );\n\t\t\t\t} else {\n\t\t\t\t\t$this->output_row( $page );\n\t\t\t\t}\n\t\t\t }\n\t\t} else {\n\t\t\t//Output non hierarchical posts\n\t\t\t$post_query = new WP_Query(\n\t\t\t\tarray(\n\t\t\t\t\t'post_type' => $this->post_type,\n\t\t\t\t\t'posts_per_page' => -1,\n\t\t\t\t\t'orderby' => 'menu_order',\n \t\t\t'suppress_filters' => false,\n\t\t\t\t\t'order' => $this->order,\n\t\t\t\t\t'post_status' => $this->post_status,\n\t\t\t\t)\n\t\t\t);\n\t\t\t$posts = $post_query->get_posts();\n\t\t\tif ( !$posts ) return;\n\t\t\tforeach( $posts as $post ) {\n\t\t\t\t$this->output_row( $post );\n\t\t\t} //end foreach\n\t\t}\n\t\t?>\n\t\t</ul>\n\t\t</div>\n\t\t<?php\n\t\techo $this->final;\n\t\t?>\n\t\t</div><!-- .wrap -->\n\t\t<?php\n\t}", "title": "" }, { "docid": "e406145ef3378e76c1b8cee27b6f7e72", "score": "0.71433216", "text": "function sortPosts($filter, $order, $tab, $start = null){\r\n\t\t$start = $start != null ? $start.\",\" : \"\";\r\n\r\n\t\tswitch($filter){\r\n\t\t\tcase 'title':\r\n\t\t\t\tif($tab == 'all')\r\n\t\t\t\t\t$query = \"SELECT * FROM post ORDER BY title \".$order.\" LIMIT \".$start.\"20\";\r\n\t\t\t\telse\r\n\t\t\t\t\t$query = \"SELECT * FROM post WHERE author=\".$_SESSION['id'].\" ORDER BY title \".$order.\" LIMIT \".$start.\"20\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'date':\r\n\t\t\t\tif($tab == 'all')\r\n\t\t\t\t\t$query = \"SELECT * FROM post ORDER BY dateLastModified \".$order.\" LIMIT \".$start.\"20\";\r\n\t\t\t\telse\r\n\t\t\t\t\t$query = \"SELECT * FROM post WHERE author=\".$_SESSION['id'].\" ORDER BY dateLastModified \".$order.\" LIMIT \".$start.\"20\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'comment':\r\n\t\t\t\tif($tab == 'all')\r\n\t\t\t\t\t$query = \"SELECT P.*, COUNT(C.id) FROM post P LEFT OUTER JOIN comment C ON P.id=C.post GROUP BY P.id ORDER BY COUNT(C.id) \".$order.\" LIMIT \".$start.\"20\";\r\n\t\t\t\telse\r\n\t\t\t\t\t$query = \"SELECT P.*, COUNT(C.id) FROM post P LEFT OUTER JOIN comment C ON P.id=C.post WHERE P.author=\".$_SESSION['id'].\" GROUP BY P.id ORDER BY COUNT(C.id) \".$order.\" LIMIT \".$start.\"20\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'like':\r\n\t\t\t\tif($tab == 'all')\r\n\t\t\t\t\t$query = \"SELECT P.*, COUNT(L.id) \r\n\t\t\t\t\t\t\tFROM post P LEFT OUTER JOIN (SELECT * FROM `like` WHERE type='L' ) AS L ON P.id=L.idpost\r\n\t\t\t\t\t\t\tGROUP BY P.id \r\n\t\t\t\t\t\t\tORDER BY COUNT(L.id) \".$order.\" LIMIT \".$start.\"20\";\r\n\t\t\t\telse\r\n\t\t\t\t\t$query = \"SELECT P.*, COUNT(L.id) \r\n\t\t\t\t\t\t\tFROM post P LEFT OUTER JOIN (SELECT * FROM `like` WHERE type='L' ) AS L ON P.id=L.idpost\r\n\t\t\t\t\t\t\tWHERE P.author=\".$_SESSION['id'].\"\r\n\t\t\t\t\t\t\tGROUP BY P.id \r\n\t\t\t\t\t\t\tORDER BY COUNT(L.id) \".$order.\" LIMIT \".$start.\"20\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'dislike':\r\n\t\t\t\tif($tab == 'all')\r\n\t\t\t\t\t$query = \"SELECT P.*, COUNT(L.id) \r\n\t\t\t\t\t\t\tFROM post P LEFT OUTER JOIN (SELECT * FROM `like` WHERE type='D' ) AS L ON P.id=L.idpost\r\n\t\t\t\t\t\t\tGROUP BY P.id \r\n\t\t\t\t\t\t\tORDER BY COUNT(L.id) \".$order.\" LIMIT \".$start.\"20\";\r\n\t\t\t\telse\r\n\t\t\t\t\t$query = \"SELECT P.*, COUNT(L.id) \r\n\t\t\t\t\t\t\tFROM post P LEFT OUTER JOIN (SELECT * FROM `like` WHERE type='D' ) AS L ON P.id=L.idpost\r\n\t\t\t\t\t\t\tWHERE P.author=\".$_SESSION['id'].\"\r\n\t\t\t\t\t\t\tGROUP BY P.id \r\n\t\t\t\t\t\t\tORDER BY COUNT(L.id) \".$order.\" LIMIT \".$start.\"20\";\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn fetchPosts($query);\r\n\t}", "title": "" }, { "docid": "094e0b932ef17c2c26b4a9c8c3ece15c", "score": "0.71099555", "text": "function sort_posts_by_date($posts) {\n\n\tusort($posts, function($a, $b) {\n\n\t\t// if the values are the same don't re-order\n\t\tif ( $a == $b ) {\n\t\t\treturn 0;\n\t\t}\n\n\t\t// re-order the preferred larger value\n\t\treturn ( strtotime($a->post_date) > strtotime($b->post_date) ) ? -1 : 1;\n\n\t});\n\n\treturn $posts;\n\n}", "title": "" }, { "docid": "4d68916b4024c335294a5b6e77208456", "score": "0.70506245", "text": "private function sortPostFeedElements()\n {\n foreach($this->post as $key=>$value) {\n if (is_array($value) && strpos($key, 'UNL_MediaHub_Feed') !== false) {\n usort($value, array($this,'comparePostFeedElements'));\n $this->post[$key] = $value;\n }\n }\n }", "title": "" }, { "docid": "300512a2e957d67b449a292155b011a1", "score": "0.6986962", "text": "public function sort();", "title": "" }, { "docid": "23b9b40e64be711e69720103e2d3b739", "score": "0.69078374", "text": "public function asort() {}", "title": "" }, { "docid": "afe7c3f8c00c3098425981f1f1aed7a6", "score": "0.6687107", "text": "abstract public function prepareSort();", "title": "" }, { "docid": "3f4b9ecb0a920c9129e508b05a7ab69f", "score": "0.66816527", "text": "public function sortStrategy();", "title": "" }, { "docid": "1ccce39bd3291e6a47fefe6816a2a2c7", "score": "0.6649402", "text": "public function getSorting();", "title": "" }, { "docid": "3b78183efaab5a00767d87f6c8ac449f", "score": "0.6632435", "text": "public function asort()\n {\n }", "title": "" }, { "docid": "1cadfb6c0823f082b891f0e1759c2332", "score": "0.6589145", "text": "function getSort(){ return 301; }", "title": "" }, { "docid": "220fe6ba0e78a08977992b8e9ad68dcb", "score": "0.65295905", "text": "public function sortPapers(){\r\n\t\t// Either manualSort or sortByAuthorName\r\n\t\t$this->sortByAuthorName();\r\n\t}", "title": "" }, { "docid": "c46a9179514e13d4edf192b9ea9f439e", "score": "0.6444346", "text": "function publisher_getOrderBy($sort)\r\n{\r\n if ($sort == \"datesub\") {\r\n return \"DESC\";\r\n } else if ($sort == \"counter\") {\r\n return \"DESC\";\r\n } else if ($sort == \"weight\") {\r\n return \"ASC\";\r\n }\r\n}", "title": "" }, { "docid": "8c3fb3c4d7ad10b96b9ad8266c9c66c0", "score": "0.64149445", "text": "function getSort(){\n return 301;\n }", "title": "" }, { "docid": "a8ccbf2a18238bf84074168240016d21", "score": "0.636771", "text": "function getSort(){\n return 100;\n }", "title": "" }, { "docid": "2fde18b5dde80e484656e297daa4ac70", "score": "0.6360982", "text": "public function sort()\n {\n $this->repository->sort(Input::all());\n }", "title": "" }, { "docid": "c1ed4c9981abefbe5fed7c59820f18f3", "score": "0.63524926", "text": "function feature_filter_order($orderby){\r\n\tglobal $wpdb,$wp_query;\r\n\t\r\n\tif((is_category() || is_tax() || is_archive() || is_search()) && $wp_query->tax_query->queries[0]['taxonomy'] != 'product_cat'){\r\n\t\r\n\t\tif (isset($_REQUEST['tevolution_sortby']) && ($_REQUEST['tevolution_sortby'] == 'title_asc' || $_REQUEST['tevolution_sortby'] == 'alphabetical')){\r\n\t\t\t$orderby= \"$wpdb->posts.post_title ASC,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') ASC\";\r\n\t\t}elseif (isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'title_desc' ){\r\n\t\t\t$orderby = \"$wpdb->posts.post_title DESC,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC\";\r\n\t\t}elseif (isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'date_asc' ){\r\n\t\t\t$orderby = \"$wpdb->posts.post_date ASC,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC\";\r\n\t\t}elseif (isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'date_desc' ){\r\n\t\t\t$orderby = \"$wpdb->posts.post_date DESC,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC\";\r\n\t\t}elseif(isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'random' ){\r\n\t\t\t$orderby = \" (select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC,rand()\";\r\n\t\t}elseif(isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'reviews' ){\r\n\t\t\t$orderby = 'DESC';\r\n\t\t\t$orderby = \" comment_count $orderby,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC\";\r\n\t\t}elseif(isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'rating' ){\r\n\r\n\t\t\t$orderby = \" (select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id = $wpdb->posts.ID and $wpdb->postmeta.meta_key like \\\"average_rating\\\") DESC,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC\";\r\n\t\t}else{\r\n\t\t\t$orderby = \" (SELECT DISTINCT $wpdb->postmeta.meta_value from $wpdb->postmeta where ($wpdb->posts.ID = $wpdb->postmeta.post_id) AND $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC,$wpdb->posts.post_date DESC\";\r\n\t\t}\r\n\t}\r\n\treturn $orderby;\r\n}", "title": "" }, { "docid": "c3ae1857889d4e7f7d83e985edc53b5e", "score": "0.6349506", "text": "function usort_posts_by_title($postA, $postB) {\n return strcmp(strtolower($postA->post_title), strtolower($postB->post_title));\n}", "title": "" }, { "docid": "77323e903c63d6374551b17e2ff74906", "score": "0.6309355", "text": "private function _sortByDateDesc($posts)\n {\n usort($posts, function($a, $b){\n $a_date = $a->getDate();\n $b_date = $b->getDate();\n\n if($a_date == $b_date){\n return 0;\n }\n\n return $a_date < $b_date ? 1 : -1;\n }); \n\n return $posts;\n }", "title": "" }, { "docid": "515ae0787d075b144023b2af8f7715a0", "score": "0.6291249", "text": "public function changeContentSortingAndCopyDraftPage() {}", "title": "" }, { "docid": "b6388dc9b4013aa0cd7e0053c4cfc57b", "score": "0.6281605", "text": "private function usort_published ( $a, $b ) {\n\t\treturn $a->post_date < $b->post_date;\n\t}", "title": "" }, { "docid": "c166f4eab074f39e6fe34fe18bb76a57", "score": "0.62771696", "text": "function adleex_resource_list_column_sort($cols) {\nglobal $current_screen;\n\t\n\tif ($current_screen->post_type!='resource') return $cols;\n\n\t$order = array(\n 'post_title' => true, );\n\tforeach($order\tas $k => $v) $cols[$k]=true;\n\treturn $cols;\n}", "title": "" }, { "docid": "40033a9105f8a8bef85896d382995a4e", "score": "0.62734675", "text": "function _wp_object_name_sort_cb($a, $b)\n {\n }", "title": "" }, { "docid": "326d28a21f521e6ed4a347129b69f219", "score": "0.6269763", "text": "function bh_ajax_sort_posts(){\n\t?>\n <script>\n\t//add drop-downs to js pages\n\t$jq('.select-post-sorting').html(\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t'<form action=\"#\">Sort by:<select name=\"posts_sort\" class=\"posts_sort\"><option value=\"newest\">Release Date, Newest First</option><option value=\"oldest\">Release Date, OIdest First</option><option value=\"az\">Product Title, A-Z</option><option value=\"za\">Product Title, Z-A</option></select> Quantity: <select name=\"posts_number\" class=\"posts_number\"><option value=\"10\">10</option><option value=\"15\">15</option><option value=\"20\">20</option><option value=\"25\" selected>25</option><option value=\"50\">50</option></select></form>'\n\t);\n\t\n\t//collect dropdown data\n\t$jq('.select-post-sorting select').on('change',function(){\n\t\t//get value from each box\n\t\t$sortby = $jq('.posts_sort').val();\n\t\t$number = $jq('.posts_number').val();\n\t\tvar loc = String(window.location);\n\t\t$link = loc.substring(0,(loc.lastIndexOf('/')+1));\n\t\tswitch($sortby){\n\t\t\tcase 'oldest':\n\t\t\to = '?orderby=pubdate&order=ASC';\n\t\t\tbreak;\n\t\t\tcase 'az':\n\t\t\to = '?orderby=title&order=ASC';\n\t\t\tbreak;\n\t\t\tcase 'za':\n\t\t\to = '?orderby=title&order=DESC';\n\t\t\tbreak;\n\t\t\tdefault: //newest\n\t\t\to = '?orderby=pubdate&order=DESC';\n\t\t}\t\n\t\t\n\t\tif($number){\n\t\t\tn='&ppp='+$number;\t\n\t\t\t}else{\n\t\t\tn='&ppp=25';\n\t\t\t//default 25\t\n\t\t}\n\t\t$link = $link + o + n;\n\t\t//v1 - load new page in div\n\t\t$plist = $jq('.product-category.product-list');\n\t\t$plist.fadeOut(300,function(){\n\t\t\t$jq(this).load($link + ' .product-category.product-list',function(){\n\t\t\t\t\t\t$plist.fadeIn(500);\n\t\t\t\t\t\t\t\t\t// update page url/hash \n\t\t\t\t\t\t\t\t\tif($link!=window.location){\n\t\t\t\t\t\t\t\t\t\t\t\t//window.history.pushState({path:$link},'',$link);\n\t\t\t\t\t\t\t\t\t} // if new url doesn't match current location\n\t\t\t\t}); //end load\n\t\t}); //end fade\n\t\t\n\t}); //end jq\n\n\t</script>\n\t<?php\n\t//v2 - use admin-ajax\n}", "title": "" }, { "docid": "3902ebc6dc0bee257763a8d6b71ddbd7", "score": "0.6265226", "text": "function getSort(){\n return 999;\n }", "title": "" }, { "docid": "3902ebc6dc0bee257763a8d6b71ddbd7", "score": "0.6265226", "text": "function getSort(){\n return 999;\n }", "title": "" }, { "docid": "0db0e550d26a86dea1c8ae4d118e3736", "score": "0.62548685", "text": "function getSort() {\n return 999;\n }", "title": "" }, { "docid": "34b81a4e13394d443714e383c2001710", "score": "0.6241853", "text": "function tmpl_archives_sorting_opt(){\r\n\tglobal $wp_query,$sort_post_type;\r\n\t\r\n\tif(!is_search()){\r\n\t\t$post_type = (get_post_type()!='')? get_post_type() : get_query_var('post_type');\r\n\t\t$sort_post_type = apply_filters('tmpl_tev_sorting_for_'.$post_type,$post_type);\r\n\t\t\r\n\t}else{\r\n\t\t/* on search page what happens if user search with multiple post types */\r\n\t\tif(isset($_REQUEST['post_type'])){\r\n\t\t\tif(is_array($_REQUEST['post_type']) && count($_REQUEST['post_type'])==1){\r\n\t\t\t\t$sort_post_type= $_REQUEST['post_type'][0];\r\n\t\t\t}else{\r\n\t\t\t\t$sort_post_type= $_REQUEST['post_type'];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\tif(!$sort_post_type){\r\n\t\t\t\t$sort_post_type='directory';\r\n\t\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n\t$templatic_settings=get_option('templatic_settings');\r\n\t$googlemap_setting=get_option('city_googlemap_setting');\r\n\t\r\n\t/*custom post type link */\r\n\t$current_posttype = get_post_type();\r\n\t\r\n\tif(empty($current_posttype)){\r\n\t\t$current_posttype = $wp_query->query['post_type'];\r\n\t}\r\n\t\t\r\n\tif(!is_tax() && is_archive() && !is_search())\r\n\t{\r\n\t\t$current_term = $wp_query->get_queried_object();\t\t\r\n\t\t$permalink = get_post_type_archive_link($current_posttype);\r\n\t\t$permalink=str_replace('&'.$sort_post_type.'_sortby=alphabetical&sortby='.$_REQUEST['sortby'],'',$permalink);\r\n\t}elseif(is_search()){\r\n\t\t$search_query_str=str_replace('&'.$sort_post_type.'_sortby=alphabetical&sortby='.@$_REQUEST['sortby'],'',$_SERVER['QUERY_STRING']);\r\n\t\t$permalink= site_url().\"?\".$search_query_str;\r\n\t}else{\r\n\t\t$current_term = $wp_query->get_queried_object();\r\n\t\t$permalink=($current_term->slug) ? get_term_link($current_term->slug, $current_term->taxonomy):'';\r\n\t\tif(isset($_REQUEST['sortby']) && $_REQUEST['sortby']!='')\r\n\t\t\t$permalink=str_replace('&'.$sort_post_type.'_sortby=alphabetical&sortby='.$_REQUEST['sortby'],'',$permalink);\r\n\t\t\r\n\t}\r\n\t\r\n\t$post_type= get_post_type_object( get_post_type());\r\n\t\r\n\t/* get all the request url and con-cat with permalink to get the exact results */\r\n $req_uri = '';\r\n\tforeach($_GET as $key=>$val){\r\n\t\tif($key !='' && !strstr($key,'_sortby')){\r\n\t\t\t$req_uri .= $key.\"=\".$val.\"&\";\r\n\t\t}\r\n\t}\r\n\t\r\n\t/* permalink */\r\n\tif(false===strpos($permalink,'?')){\r\n\t $url_glue = '?'.$req_uri;\r\n\t}else{\r\n\t\t$url_glue = '&amp;'.$req_uri;\t\r\n\t}\r\n\t\r\n\t/* no grid view list view if no results found */\r\n\t\r\n\tif($wp_query->found_posts!=0){\r\n\t?>\r\n\t<div class='directory_manager_tab clearfix'>\r\n\t<div class=\"sort_options\">\r\n\t<?php if(have_posts()!='' && current_theme_supports('tmpl_show_pageviews')): ?>\r\n\t\t<ul class='view_mode viewsbox'>\r\n\t\t\t<?php if(function_exists('tmpl_wp_is_mobile') && tmpl_wp_is_mobile()){ \r\n\t\t\t\tif(isset($templatic_settings['category_googlemap_widget']) && $templatic_settings['category_googlemap_widget']=='yes'){\r\n\t\t\t\t?>\r\n\t\t\t\t<li><a class='switcher last listview <?php if($templatic_settings['default_page_view']==\"listview\"){echo 'active';}?>' id='listview' href='#'><?php _e('LIST VIEW','templatic');?></a></li>\r\n\t\t\t\t<li><a class='map_icon <?php if($templatic_settings['default_page_view']==\"mapview\"){echo 'active';}?>' id='locations_map' href='#'><?php _e('MAP','templatic');?></a></li>\r\n\t\t\t<?php }\t\r\n\t\t\t}else{ ?>\r\n\t\t\t\t<li><a class='switcher first gridview <?php if($templatic_settings['default_page_view']==\"gridview\"){echo 'active';}?>' id='gridview' href='#'><?php _e('GRID VIEW','templatic');?></a></li>\r\n\t\t\t\t<li><a class='switcher last listview <?php if($templatic_settings['default_page_view']==\"listview\"){echo 'active';}?>' id='listview' href='#'><?php _e('LIST VIEW','templatic');?></a></li>\r\n\t\t\t\t<?php if(isset($templatic_settings['category_googlemap_widget']) && $templatic_settings['category_googlemap_widget']=='yes'):?> \r\n\t\t\t\t<li><a class='map_icon <?php if($templatic_settings['default_page_view']==\"mapview\"){echo 'active';}?>' id='locations_map' href='#'><?php _e('MAP','templatic');?></a></li>\r\n\t\t\t\t<?php endif;\r\n\t\t\t}\r\n\t\t\t?>\r\n\t\t</ul>\t\r\n\t<?php endif;\r\n\r\n\tif(isset($_GET[$sort_post_type.'_sortby']) && $_GET[$sort_post_type.'_sortby']=='alphabetical'){\r\n\t\t$_SESSION['alphabetical']='1';\t\r\n\t}else{\r\n\t\tunset($_SESSION['alphabetical']);\r\n\t}\r\n\t\r\n\tif(!empty($templatic_settings['sorting_option'])){\r\n\r\n\t\t/* take \"directory\" as a post type if additional post type is detected */\r\n\t\t$exclude_arr = apply_filters('exclude_sorting_posttypes',array('event','property','classified'));\r\n\t\tif(!in_array(get_post_type(),$exclude_arr)){\r\n\t\t\t$sort_post_type_name = 'tevolution';\r\n\t\t}\t\r\n\t\telse{\t\r\n\t\t\t$sort_post_type_name = get_post_type();\r\n\t\t}\r\n\t\t\r\n\t\t$sel_sort_by = isset($_REQUEST[$sort_post_type_name.'_sortby']) ? $_REQUEST[$sort_post_type_name.'_sortby'] : '';\r\n\t\t$sel_class = 'selected=selected';\r\n\t\t\r\n\t?>\r\n\t\t<div class=\"tev_sorting_option\">\r\n\t\t\t<form action=\"<?php if(function_exists('tmpl_directory_full_url')){ echo tmpl_directory_full_url('directory'); } ?>\" method=\"get\" id=\"<?php echo $sort_post_type.'_sortby_frm'; ?>\" name=\"<?php echo $sort_post_type.'_sortby_frm'; ?>\">\r\n <select name=\"<?php echo $sort_post_type_name.'_sortby'; ?>\" id=\"<?php echo $sort_post_type_name.'_sortby'; ?>\" onchange=\"sort_as_set(this.value)\" class=\"tev_options_sel\">\r\n\t\t\t\t<option <?php if(!$sel_sort_by){ echo $sel_class; } ?>><?php _e('Sort By','templatic'); ?></option>\r\n\t\t\t\t<?php\r\n\t\t\t\t\tdo_action('tmpl_before_sortby_title_alphabetical');\r\n\t\t\t\t\tif(!empty($templatic_settings['sorting_option']) && in_array('title_alphabetical',$templatic_settings['sorting_option'])):?>\r\n\t\t\t\t\t\t<option value=\"alphabetical\" <?php if($sel_sort_by =='alphabetical'){ echo $sel_class; } ?>><?php _e('Alphabetical','templatic');?></option>\r\n\t\t\t\t<?php endif;\r\n\t\t\t\t\tdo_action('tmpl_after_sortby_title_alphabetical');\r\n\t\t\t\t\t\r\n\t\t\t\t\tdo_action('tmpl_before_sortby_title_asc');\r\n\t\t\t\t\tif(!empty($templatic_settings['sorting_option']) && in_array('title_asc',$templatic_settings['sorting_option'])):?>\r\n\t\t\t\t\t\t<option value=\"title_asc\" <?php if($sel_sort_by =='title_asc'){ echo $sel_class; } ?>><?php _e('Title Ascending','templatic');?></option>\r\n\t\t\t\t<?php endif;\r\n\t\t\t\t\tdo_action('tmpl_after_sortby_title_asc');\r\n\t\t\t\t\t\r\n\t\t\t\t\tdo_action('tmpl_before_sortby_title_desc');\r\n\t\t\t\t\tif(!empty($templatic_settings['sorting_option']) && in_array('title_desc',$templatic_settings['sorting_option'])):?>\r\n\t\t\t\t\t\t<option value=\"title_desc\" <?php if($sel_sort_by =='title_desc'){ echo $sel_class; } ?>><?php _e('Title Descending','templatic');?></option>\r\n\t\t\t\t<?php endif;\r\n\t\t\t\t\tdo_action('tmpl_after_sortby_title_desc');\r\n\t\t\t\t\r\n\t\t\t\t\tdo_action('tmpl_before_sortby_date_asc');\r\n\t\t\t\t\tif(!empty($templatic_settings['sorting_option']) && in_array('date_asc',$templatic_settings['sorting_option'])):?>\r\n\t\t\t\t\t\t<option value=\"date_asc\" <?php if($sel_sort_by =='date_asc'){ echo $sel_class; } ?>><?php _e('Publish Date Ascending','templatic');?></option>\r\n\t\t\t\t<?php endif;\r\n\t\t\t\t\tdo_action('tmpl_after_sortby_date_asc');\r\n\t\t\t\t\t\r\n\t\t\t\t\tdo_action('tmpl_before_date_desc');\r\n\t\t\t\t\tif(!empty($templatic_settings['sorting_option']) && in_array('date_desc',$templatic_settings['sorting_option'])):?>\r\n\t\t\t\t\t\t<option value=\"date_desc\" <?php if($sel_sort_by =='date_desc'){ echo $sel_class; } ?>><?php _e('Publish Date Descending','templatic');?></option>\r\n\t\t\t\t<?php endif;\r\n\t\t\t\t\tdo_action('tmpl_after_sortby_date_desc');\r\n\t\t\t\t\t\r\n\t\t\t\t\tdo_action('tmpl_before_sortby_reviews');\r\n\t\t\t\t\tif(!empty($templatic_settings['sorting_option']) && in_array('reviews',$templatic_settings['sorting_option'])):?>\r\n\t\t\t\t\t\t<option value=\"reviews\" <?php if($sel_sort_by =='reviews'){ echo $sel_class; } ?>><?php _e('Reviews','templatic');?></option>\r\n\t\t\t\t<?php endif;\r\n\t\t\t\t\tdo_action('tmpl_after_sortby_reviews');\r\n\t\t\t\t\t\r\n\t\t\t\t\tdo_action('tmpl_before_sortby_rating');\r\n\t\t\t\t\tif(!empty($templatic_settings['sorting_option']) && in_array('rating',$templatic_settings['sorting_option'])):?>\r\n\t\t\t\t\t\t<option value=\"rating\" <?php if($sel_sort_by =='rating'){ echo $sel_class; } ?>><?php _e('Rating','templatic');?></option>\r\n\t\t\t\t<?php endif;\r\n\t\t\t\t\tdo_action('tmpl_after_sortby_rating');\r\n\t\t\t\t\t\r\n\t\t\t\t\tdo_action('tmpl_before_sortby_random');\r\n\t\t\t\t\tif(!empty($templatic_settings['sorting_option']) && in_array('random',$templatic_settings['sorting_option'])):?>\r\n\t\t\t\t\t\t<option value=\"random\" <?php if($sel_sort_by =='random'){ echo $sel_class; } ?>><?php _e('Random','templatic');?></option>\r\n\t\t\t\t<?php endif;\r\n\t\t\t\t\tdo_action('tmpl_after_sortby_random');\r\n\t\t\t\t\t?> \r\n\t\t\t </select>\r\n\t\t\t </form>\r\n <?php add_action('wp_footer','sorting_option_of_listing'); ?>\r\n\t\t</div>\r\n <?php\r\n\t}\r\n\r\n\t?>\r\n \t</div><!--END sort_options div -->\r\n </div><!-- END directory_manager_tab Div -->\r\n\t<?php\r\n\t}\r\n\t\r\n\t\r\n\t/* On archive and category pages - alphabets order should display even there is no post type pass in argument */\r\n\t$exclude_arr = array('event','property','classified');\r\n\tif(isset($_REQUEST['alpha_sort_post_type']) && $_REQUEST['alpha_sort_post_type'] != '')\r\n\t\t$sort_post_type = $_REQUEST['alpha_sort_post_type'];\r\n\tif(!in_array($sort_post_type,$exclude_arr))\r\n\t\t$sort_post_type = 'tevolution';\r\n\telse\t\r\n\t\t$sort_post_type = $sort_post_type;\r\n\tif(!$sort_post_type){ $sort_post_type=\"tevolution\"; }\r\n\tif((isset($_REQUEST[$sort_post_type.'_sortby']) && $_REQUEST[$sort_post_type.'_sortby']=='alphabetical') || (isset($_SESSION['alphabetical']) && $_SESSION['alphabetical']==1)):\r\n\t\r\n\t$alphabets = array(__('A','templatic'),__('B','templatic'),__('C','templatic'),__('D','templatic'),__('E','templatic'),__('F','templatic'),__('G','templatic'),__('H','templatic'),__('I','templatic'),__('J','templatic'),__('K','templatic'),__('L','templatic'),__('M','templatic'),__('N','templatic'),__('O','templatic'),__('P','templatic'),__('Q','templatic'),__('R','templatic'),__('S','templatic'),__('T','templatic'),__('U','templatic'),__('V','templatic'),__('W','templatic'),__('X','templatic'),__('Y','templatic'),__('Z','templatic'));\r\n\t/*show all result when we click on all in alphabetical sort order*/\r\n\t$all = str_replace('?sortby='.$_REQUEST['sortby'].'&','/?',$url_glue);\r\n\t?>\r\n <div id=\"directory_sort_order_alphabetical\" class=\"sort_order_alphabetical\">\r\n\t\t<input type=\"hidden\" name=\"alpha_sort\" id=\"alpha_sort\" /> <!-- for listfilter -->\r\n\t <ul>\r\n\t\t\t<li class=\"<?php echo (!isset($_REQUEST['sortby']))?'active':''?>\"><a href=\"<?php echo remove_query_arg('sortby',$permalink.$all.$sort_post_type.'_sortby=alphabetical');?>\"><?php _e('All','templatic');?></a></li>\r\n\t\t\t<?php\r\n\t\t\tforeach($alphabets as &$value){ \r\n\t\t\t\t$key = $value;\r\n\t\t\t\t$val = strtolower($key);\r\n\t\t\t\t?>\r\n\t\t\t\t<li class=\"<?php echo (isset($_REQUEST['sortby']) && $_REQUEST['sortby'] == $val)? 'active':''?>\"><a href=\"<?php echo $permalink.$url_glue .$sort_post_type.'_sortby=alphabetical&sortby='.$val.'&alpha_sort_post_type='.$sort_post_type;?>\"><?php echo $key; ?></a></li>\r\n\t\t\t\t<?php \r\n\t\t\t} ?>\r\n\t </ul>\r\n </div>\r\n <?php endif;\r\n}", "title": "" }, { "docid": "3047a671ea1d91ed2f803401849500a7", "score": "0.623951", "text": "function getSort(){\n return 155;\n }", "title": "" }, { "docid": "3047a671ea1d91ed2f803401849500a7", "score": "0.623951", "text": "function getSort(){\n return 155;\n }", "title": "" }, { "docid": "3047a671ea1d91ed2f803401849500a7", "score": "0.623951", "text": "function getSort(){\n return 155;\n }", "title": "" }, { "docid": "ee8f1cacb500d1cb0ba299d2624bbcb4", "score": "0.6224034", "text": "function jpen_custom_post_order_sort( $query ){\n if ( $query->is_main_query() && is_home() ){\n $query->set( 'orderby', 'meta_value' );\n $query->set( 'meta_key', '_custom_post_order' );\n $query->set( 'order' , 'ASC' );\n }\n}", "title": "" }, { "docid": "5d093fd429c738804f9a2d91f51f5799", "score": "0.62209255", "text": "public function sort()\n {\n $column_id = $this->request->getIntegerParam('column_id');\n $project = $this->getProject();\n $search = $this->helper->projectHeader->getSearchQuery($project);\n\n $this->taskVoteModel->sortByVoting($column_id);\n\n $this->response->redirect($this->helper->url->to('BoardViewController', 'show', array('project_id' => $project['id'], 'search' => $search)), true);\n }", "title": "" }, { "docid": "f8592e868726e81947bdc883ebafa662", "score": "0.6205185", "text": "public function sort()\n {\n $sortMethods = $this->sortMethods;\n\n // get post data\n $data = $_POST;\n\n // initialize errors\n $errors = [];\n\n $sortedString = '';\n\n $validationResult = $this->_validate($data);\n if(is_array($validationResult)) {\n $errors = $validationResult;\n } else {\n // no errors do sorting\n $sorting = new \\lib\\SortLib($data['sort_method']);\n $sortedString = $sorting->get_sorted_string($data['sort_string']);\n }\n\n require_once('views/pages/home.php');\n }", "title": "" }, { "docid": "5406df7f6cd639e9622df724aee44141", "score": "0.61917603", "text": "public function natsort()\n {\n }", "title": "" }, { "docid": "9cb69d0fdb55a7ec1deec53ff022e6ad", "score": "0.61891574", "text": "public function getSortBy();", "title": "" }, { "docid": "61e95b541f7adca16b1f32f48b47cf32", "score": "0.61741054", "text": "public function order();", "title": "" }, { "docid": "b95dc81528373e6c81fbd5b4a647574f", "score": "0.6172824", "text": "public function changeContentSortingAndCopyLivePage() {}", "title": "" }, { "docid": "92f21a3e5280285d59f1b24ccf6d9d27", "score": "0.61688274", "text": "function shows_alphabetical( $orderby )\n{\n if( !is_admin() && is_post_type_archive( \"shows\" ) ){\n // alphabetical order by post title\n return \"post_title ASC\";\n }\n else return $orderby;\n}", "title": "" }, { "docid": "a7d96071d25564252049c84bd2dd6e5e", "score": "0.61436844", "text": "public function sortBy(){\n global $SnickerPlugin;\n\n if($SnickerPlugin->getValue(\"frontend_order\") === \"date_asc\"){\n uasort($this->db, function($a, $b){\n return $a[\"date\"] > $b[\"date\"];\n });\n } else if($SnickerPlugin->getValue(\"frontend_order\") === \"date_desc\"){\n uasort($this->db, function($a, $b){\n return $a[\"date\"] < $b[\"date\"];\n });\n }\n return true;\n }", "title": "" }, { "docid": "db8be0a2bcfd1153ac886f1e21807078", "score": "0.6143369", "text": "function my_pre_get_posts($query)\n{\n // validate\n if (is_admin()) {\n return $query;\n }\n\n if (isset($query->query_vars['post_type']) && ($query->query_vars['post_type'] == 'portfolio' || $query->query_vars['post_type'] == 'lighting')) {\n $query->set('orderby', 'meta_value_num');\n $query->set('meta_key', 'item-order-priority');\n $query->set('order', 'DESC');\n }\n // always return\n return $query;\n\n}", "title": "" }, { "docid": "71a39f9735bc08ebffb30ee6950790ce", "score": "0.61273783", "text": "private function sortCollection()\n {\n if ($this->queryConfiguration->hasOrderColumn()) {\n $order = $this->queryConfiguration->orderColumns();\n $orderFunc = $this->defaultGlobalOrderFunction;\n $this->collection = $this->collection->sort(function ($first, $second) use ($order, $orderFunc) {\n return $orderFunc($first, $second, $order);\n });\n }\n }", "title": "" }, { "docid": "53383a26e2bf5475bc1b50c3939d17ac", "score": "0.610413", "text": "public function Sort(){\r\n\t\treturn self::get_sort();\r\n\t}", "title": "" }, { "docid": "ff2749775065bc5cdf3de433564d1aa7", "score": "0.61018854", "text": "function articleSort()\n {\n if(!$this->checkAccessGroup(1)){\n return;\n }\n $i = 0;\n $index = 0;\n $parent = array(0);\n $children = array($this->input->post('data',TRUE));\n $children[$index] = json_decode($children[$index]);\n do{\n $data = $children[$index];\n foreach($data as $key=>$item){\n $i++;\n $update_data = array(\n 'order'=>$i,\n 'parent'=>$parent[$index]\n );\n $this->Articles_model->edit($item->id, $update_data);\n if(isset($item->children)){\n $parent[$index+1] = $item->id;\n $children[$index+1] = $item->children;\n }\n }\n $index++;\n }while(isset($children[$index]));\n $this->systemSuccess(\"Your articles has been successfully sorted.\", ARTICLES_ADMIN_URL.\"article\");\n }", "title": "" }, { "docid": "cfd3d2c7a36d153277caed0cf6271649", "score": "0.609447", "text": "public function &getOrderBy();", "title": "" }, { "docid": "d92084925ed6aae075ecab97e5818111", "score": "0.6090355", "text": "function thememount_custom_post_order($query){\n\t/* \n\tSet post types.\n\t_builtin => true returns WordPress default post types. \n\t_builtin => false returns custom registered post types. \n\t*/\n\t$post_types = get_post_types(array('_builtin' => false), 'names');\n\t\n\t/* The current post type. */\n\t$post_type = $query->get('testimonial');\n\t\n\t/* Check post types. */\n\tif(in_array($post_type, $post_types)){\n\t\t/* Post Column: e.g. title */\n\t\tif($query->get('orderby') == ''){\n\t\t\t$query->set('orderby', 'date');\n\t\t}\n\t\t/* Post Order: ASC / DESC */\n\t\tif($query->get('order') == ''){\n\t\t\t$query->set('order', 'DESC');\n\t\t}\n\t}\n}", "title": "" }, { "docid": "464d878fc30332a0b8dd27e24fa8e563", "score": "0.6088124", "text": "protected function sortDataArray() {}", "title": "" }, { "docid": "1fc50c7fd1b4586baeea3c0717a15181", "score": "0.6086805", "text": "function homepage_front_page_order($orderby)\r\n{\r\n\t$tmpdata =get_option('templatic_settings');\r\n\t$ordervalue = @$tmpdata['tev_front_page_order'];\r\n\tif($ordervalue ==''){ $ordervalue ='desc'; }\r\n\tglobal $wpdb;\t\r\n\t\r\n\t\tif ($ordervalue == 'asc'){\r\n\t\t\t$orderby = \" (select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_h' AND $wpdb->postmeta.meta_value = 'h') ASC, $wpdb->posts.post_title ASC\";\r\n\t\t}\r\n\t\telseif ($ordervalue == 'desc'){\r\n\t\t\t$orderby = \" (select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_h' AND $wpdb->postmeta.meta_value = 'h') DESC, $wpdb->posts.post_title DESC\";\r\n\t\t}\r\n\t\telseif($ordervalue == 'random'){\r\n\t\t\t$orderby = \" (select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_h' AND $wpdb->postmeta.meta_value = 'h') DESC,rand()\";\r\n\t\t}\r\n\t\telseif ($ordervalue == 'dasc' ){\r\n\t\t\t$orderby = \" (select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_h' AND $wpdb->postmeta.meta_value = 'h') DESC, $wpdb->posts.post_date ASC\";\r\n\t\t}\r\n\t\telseif ($ordervalue == 'ddesc'){\r\n\t\t\t$orderby = \" (select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_h' AND $wpdb->postmeta.meta_value = 'h') DESC, $wpdb->posts.post_date DESC\";\r\n\t\t}else{\r\n\t\t\t$orderby = \" (select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_h' AND $wpdb->postmeta.meta_value = 'h') DESC, $wpdb->posts.post_date ASC\";\r\n\t\t}\r\n\r\n\t return $orderby;\r\n}", "title": "" }, { "docid": "f8dba9e42d034a1896208a44b69a69c5", "score": "0.60817635", "text": "function getSort(){\n\treturn 281;\n}", "title": "" }, { "docid": "4520b1de248a2da22bdf08fb1d92ecd6", "score": "0.6073223", "text": "public function sort() {\n\t\tif ($this->request->is('post')) {\n\t\t\t$order = explode(\",\", $_POST['order']);\n\t\t\t$i = 1;\n\t\t\tforeach ($order as $photo) {\n\t\t\t\t$this->Picture->read(null, $photo);\n\t\t\t\t$this->Picture->set('order', $i);\n\t\t\t\t$this->Picture->save();\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\t$this->render(false, false);\n\t}", "title": "" }, { "docid": "f692e92162708127545e28292655b852", "score": "0.60664296", "text": "function fPosts($orderCol=\"id\",$orderType=\"DESC\"){\n \n $sql = \"SELECT * FROM post ORDER BY $orderCol $orderType\";\n \n return fetchAll($sql);\n}", "title": "" }, { "docid": "d29709f511f9b253b66865376756005e", "score": "0.6055033", "text": "public function getSortOrder();", "title": "" }, { "docid": "d29709f511f9b253b66865376756005e", "score": "0.6055033", "text": "public function getSortOrder();", "title": "" }, { "docid": "d29709f511f9b253b66865376756005e", "score": "0.6055033", "text": "public function getSortOrder();", "title": "" }, { "docid": "de92fadc15592bda67019353e3da27e1", "score": "0.60479915", "text": "static function order_content_objects_by_title($objects)\r\n {\r\n usort($objects, array(get_class(), 'by_title'));\r\n }", "title": "" }, { "docid": "00c39071334a17e95fd0f7aa4659d19d", "score": "0.6046279", "text": "protected function applySorting()\n\t{\n\t\t$i = 1;\n\t\tparse_str($this->order, $list);\n\t\tforeach ($list as $field => $dir) {\n\t\t\t$this->dataSource->sort($field, $dir === 'a' ? IDataSource::ASCENDING : IDataSource::DESCENDING);\n\t\t\t$list[$field] = array($dir, $i++);\n\t\t}\n\t\treturn $list;\n\t}", "title": "" }, { "docid": "578afc2412d634f2325d997b96350329", "score": "0.60461974", "text": "function home_page_feature_listing_orderby($orderby)\r\n{\r\n\tglobal $wpdb;\r\n\tif(is_home() || @is_front_page()){\t\t\r\n\t\t$orderby = \" (SELECT DISTINCT($wpdb->postmeta.meta_value) from $wpdb->postmeta where ($wpdb->posts.ID = $wpdb->postmeta.post_id) AND $wpdb->postmeta.meta_key = 'featured_h' AND $wpdb->postmeta.meta_value = 'h') DESC,$wpdb->posts.post_date DESC\";\r\n\t}\r\n\treturn $orderby;\r\n}", "title": "" }, { "docid": "a2e04bc0f6fbf458b031ccb3cea0adb1", "score": "0.604086", "text": "function wa_wcc_posts_orderby(){\n\n\t\techo '\n\t\t<div id=\"wa_wcc_posts_orderby\">\n\t\t\t<input type=\"text\" name=\"wa_wcc_settings[posts_orderby]\" value=\"'.esc_attr($this->options['settings']['posts_orderby']).'\" />\n\t\t</div>';\n\n\t}", "title": "" }, { "docid": "b73d4e88b2c093bd75a3d94dc48e19f4", "score": "0.60317713", "text": "function rearrangePro_orderby(){\n\t\t$args = func_get_args();\n\t\t$data = array_shift($args);\n\t\tforeach ($args as $n => $field) {\n\t\t\tif (is_string($field)) {\n\t\t\t\t$tmp = array();\n\t\t\t\tforeach ($data as $key => $row)\n\t\t\t\t\t$tmp[$key] = $row[$field];\n\t\t\t\t$args[$n] = $tmp;\n\t\t\t}\n\t\t}\n\t\t$args[] = &$data;\n\t\tcall_user_func_array('array_multisort', $args);\n\t\treturn array_pop($args);\n\t}", "title": "" }, { "docid": "11984c14bb250dfe930d41bfa7ef7394", "score": "0.60282296", "text": "public function sort()\n\t{\n\t\tif (app::is_ajax())\n\t\t{\n\t\t\tforeach($_POST as $key=>$val)\n\t\t\t{\n\t\t\t\tforeach($val as $position=>$id)\n\t\t\t\t{\n\t\t\t\t\t$this->rownd->update_position($id, $position);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7c42b2e4cdeb464703bfecc127ab56a5", "score": "0.60232425", "text": "public function output_posts_sorted_by_term() {\n\n //$posts = wpshout_fetch_posts_in_category_taxonomy();\n\n \n \n // Return if no results\n if( ! is_array( $this->posts ) ) {\n return false;\n }\n\n // Add category WP_Term object as a property to each WP_Post object\n $this->add_term_objects_to_posts();\n\n //var_dump( $this->posts );\n \n // Sort posts by category name\n //usort( $this->posts, [ $this, 'sort_posts_by_term' ] );\n //usort( $this->posts, [ $this, 'sort_posts_by_title' ] );\n\n //var_dump( $this->posts );\n \n //Put each post into a term array\n $arrays_by_term = $this->arrays_by_term( 'post_title' );\n \n \n // var_dump( $arrays_by_term );\n \n \n /*\n $posts_array = [];\n \n foreach( $this->posts as $post ) {\n \n $post_arr = (array) $post;\n \n foreach( $post_arr as $k => $pa ) {\n \n if ( is_object( $pa ) ) {\n \n $post_arr[$k] = (array) $pa;\n }\n }\n \n $posts_array[] = $post_arr;\n \n \n \n }\n \n var_dump( $posts_array );\n */\n \n // $this->sorted_posts = $posts;\n \n return $this;\n \n }", "title": "" }, { "docid": "b42d1d3601d1d2cd016632a4c9f5d341", "score": "0.60227615", "text": "function getSort(){\n return 188;\n }", "title": "" }, { "docid": "f39ef53dcea894a25097f422bebc6b81", "score": "0.60199153", "text": "private static function sort()\n\t{\n\t\t//Setup order of importantance\n\t\t$changefreqs = array(\n\t\t\t'hourly' => 5,\n\t\t\t'daily' => 4,\n\t\t\t'weekly' => 3,\n\t\t\t'monthly' => 2,\n\t\t\t'yearly' => 1,\n\t\t\t'never' => 0\n\t\t);\n\n\t\t//Setup invidual arrays to sort by\n\t\tforeach(static::$links as $index => $link)\n\t\t{\n\t\t\t$priority[$index] = $link->priority ? $link->priority : 0;\n\t\t\t$changefreq[$index] = $link->changefreq ? $changefreqs[$link->changefreq] : 0;\n\t\t\t$loc[$index] = $link->loc;\n\t\t}\n\n\t\tarray_multisort($priority, SORT_DESC, $changefreq, SORT_DESC, $loc, SORT_ASC, static::$links);\n\t}", "title": "" }, { "docid": "836b868bedf3069a04a199b5526fba41", "score": "0.59958017", "text": "function usort_reorder($a,$b){\r\r\n $orderby = (!empty($_REQUEST['orderby'])) ? $_REQUEST['orderby'] : 'chat_date'; //If no sort, default to title\r\r\n $order = (!empty($_REQUEST['order'])) ? $_REQUEST['order'] : 'asc'; //If no order, default to asc\r\r\n $result = strcmp($a[$orderby], $b[$orderby]); //Determine sort order\r\r\n return ($order==='asc') ? $result : -$result; //Send final sort direction to usort\r\r\n }", "title": "" }, { "docid": "b0256dab8dad480c2d34fe93d5af93bc", "score": "0.5992982", "text": "function wp_list_sort($input_list, $orderby = array(), $order = 'ASC', $preserve_keys = \\false)\n {\n }", "title": "" }, { "docid": "e3ed54aba23228ff467bddbd2292046b", "score": "0.59745765", "text": "function action_sort($a, $b) {\r return $a['priority'] > $b['priority'] ? 1 : -1;\r}", "title": "" }, { "docid": "e64105041567bbdead74b8a093971779", "score": "0.59537953", "text": "function coz_reg_post_order( $query ) {\n if ( is_admin() || ! $query->is_main_query() )\n return;\n\n if ( is_tax( 'reg_display_page' ) ) {\n // Display 50 posts for a custom post type called 'movie'\n $query->set( 'posts_per_page', 20 );\n\t\t$query-> set ('orderby', 'slug');\n\t\t$query-> set ('order', 'asc');\n return;\n }\n}", "title": "" }, { "docid": "c0ab9fb9892e5ddcf750c2c59605388a", "score": "0.59420806", "text": "public function dataForTestSort()\n {\n return [\n ['id', 'posts.id'],\n ['body', 'posts.body'],\n ];\n }", "title": "" }, { "docid": "5e5e47790a438e5ea2ead7e0cb1a4850", "score": "0.5938022", "text": "function tmpl_sort_by_character($where){\r\n\tglobal $wpdb;\t\r\n\tif(isset($_REQUEST['sortby']) && $_REQUEST['sortby']!=''){\r\n\t\t$where .= \" AND $wpdb->posts.post_title like '\".$_REQUEST['sortby'].\"%'\";\r\n\t}\r\n\treturn $where;\r\n}", "title": "" }, { "docid": "5cf83fa1e5d3fe041a272c9908885087", "score": "0.5932001", "text": "protected function get_sort_order() {\n return 111;\n }", "title": "" }, { "docid": "9ed4c4f15963b10be6537b2a59274f7b", "score": "0.5921357", "text": "function get_thread_posts($threadid, $sort_style, $show_hidden) {\n $sql = \"thread=$threadid\";\n if (!$show_hidden) {\n $sql .= ' AND hidden = 0';\n }\n switch($sort_style) {\n case CREATE_TIME_NEW:\n $sql .= ' ORDER BY timestamp desc';\n break;\n case CREATE_TIME_OLD:\n $sql .= ' ORDER BY timestamp asc';\n break;\n case POST_SCORE:\n $sql .= ' ORDER BY score DESC';\n break;\n default:\n $sql .= ' ORDER BY timestamp asc';\n break;\n }\n return BoincPost::enum($sql);\n}", "title": "" }, { "docid": "2a62452cd616801480c69725e0ac133d", "score": "0.5893919", "text": "protected function _getSortType() {}", "title": "" }, { "docid": "2a62452cd616801480c69725e0ac133d", "score": "0.5893919", "text": "protected function _getSortType() {}", "title": "" }, { "docid": "2774bdeb8e598d4019a227648fb926aa", "score": "0.5892037", "text": "function sort_by_sub_element($array,$element){\n\tforeach($array as $id => $sub_array){\n\t\tif(is_object($sub_array)) $sub_array = get_object_vars($sub_array);\n\t\t$sorting_array[$id]=$sub_array[$element];\n\t}\n\tasort($sorting_array);\n\t$sorting_array = array_reverse($sorting_array, true);\n\t\n\tforeach ($sorting_array as $id=>$next_post){\n\t\t$sorted_posts[] = $array[$id];\n\t}\n\t\n\t$sorted_posts = array_reverse($sorted_posts);\n\treturn $sorted_posts;\n\t\n}", "title": "" }, { "docid": "3908f9778e236511e436ac3ff1c81e0b", "score": "0.5882359", "text": "protected function _get_posts()\n {\n $posts = array();\n if ($handle = opendir('posts')) {\n while (false !== ($entry = readdir($handle))) {\n if ($entry != \".\" && $entry != \"..\") {\n $file = explode(\".\", $entry);\n $post_name = $file[0];\n $post = array();\n $post['filename'] = $entry;\n $post['name'] = $post_name;\n $url = \"/posts\";\n $words = explode('-', $post_name);\n foreach ($words as $word) {\n $url .= '/';\n $url .= $word;\n }\n $post['url'] = $url;\n $post['title'] = $words[count($words) - 1];\n $tmp = $this->_get_post($entry);\n $post = array_merge($post, $tmp);\n $posts[$post_name] = $post;\n }\n }\n closedir($handle);\n }\n krsort($posts);\n return $posts;\n }", "title": "" }, { "docid": "c57c3d41f216b2719b0d8a851f96c4ae", "score": "0.5882019", "text": "static function derive_sort_num(WP_Post $p): ?int { return null; }", "title": "" }, { "docid": "8ed5d205e6d83ebc45799f53ea62314b", "score": "0.58818644", "text": "function product_sorting_link( $views ) {\n\t\tglobal $post_type, $wp_query;\n\t\t\n\t\t $settings = array(\n\t\t\t'featured_enable' => 'true'\n\t\t);\n\t\t\t\n\t\t$settings = woo_get_dynamic_values( $settings );\n\t\t\n\t\tif ( ! current_user_can('edit_others_pages') ) return $views;\n\t\t$class = ( isset( $wp_query->query['orderby'] ) && $wp_query->query['orderby'] == 'menu_order title' ) ? 'current' : '';\n\t\t$query_string = remove_query_arg(array( 'orderby', 'order' ));\n\t\t$query_string = add_query_arg( 'orderby', urlencode('menu_order title'), $query_string );\n\t\t$query_string = add_query_arg( 'order', urlencode('ASC'), $query_string );\n\t\t$query_string = add_query_arg( 'featured', urlencode('true'), $query_string );\n\t\t$views['byorder'] = '<a href=\"'. $query_string . '\" class=\"' . $class . '\">' . __( 'Sort Products', 'woocommerce' ) . '</a>';\n\n\t\treturn $views;\n\t}", "title": "" }, { "docid": "ce515e29ea98c195514d847c50b9da19", "score": "0.585969", "text": "public function sort() {\n sort($this->items, SORT_STRING);\n }", "title": "" }, { "docid": "f1c9dec782e3a8b2a8e540299618866e", "score": "0.5859176", "text": "function sortZyxRelNew($a, $b)\n{\n\tif($a['title'] == $b['title']) \n\t{ \n\t\tif($a['relevance'] == $b['relevance']) \n\t\t{ \n\t\t\tif($a['reviewnumber'] == $b['reviewnumber']) { return 0; }\n\t\t\treturn ($a['reviewnumber'] < $b['reviewnumber']) ? 1 : -1;\n\t\t}\n\t\treturn ($a['relevance'] < $b['relevance']) ? 1 : -1;\n\t}\n\treturn ($a['title'] < $b['title']) ? 1 : -1;\n}", "title": "" }, { "docid": "e7b80d158f37928235ddb6912f9e3677", "score": "0.58488303", "text": "private function sort(): void\n {\n if (!$this->dirtyIndex) {\n return;\n }\n\n $newIndex = [];\n $index = 0;\n\n foreach ($this->pages as $hash => $page) {\n $order = $page->getOrder();\n\n if (null === $order) {\n $newIndex[$hash] = $index;\n ++$index;\n } else {\n $newIndex[$hash] = $order;\n }\n }\n\n asort($newIndex);\n\n $this->index = $newIndex;\n $this->dirtyIndex = false;\n }", "title": "" }, { "docid": "282844c199ee60ba0d1e7004781d8b9a", "score": "0.5848718", "text": "public static function getDefaultSorting()\n {\n\n }", "title": "" }, { "docid": "30614bdb7cc7d701e929bc0f04b3fa50", "score": "0.58446723", "text": "public function sort_projects_by_date ()\n {\n\n }", "title": "" }, { "docid": "bae31df01860ccdd22e203b70cd9b78b", "score": "0.5844084", "text": "function mycpt_custom_orderby( $query ) {\n if ( ! is_admin() )\n return;\n \n $orderby = $query->get( 'orderby');\n \n if ( 'email' == $orderby ) {\n $query->set( 'meta_key', 'email' );\n $query->set( 'orderby', 'meta_value' );\n }\n else if( 'company' == $orderby ) {\n $query->set( 'meta_key', 'company');\n $query->set( 'orderby', 'meta_value');\n } else {\n $query->set( 'orderby', 'title');\n }\n}", "title": "" }, { "docid": "aeb2aebb0fc36110d97455b2efb4f25f", "score": "0.5829789", "text": "public static function adjacent_post_link_sort( $orderby ) {\n $post = get_post();\n // only make changes if we are talking about event posts\n if ( self::$o->core_post_type == $post->post_type ) {\n $orderby = preg_replace( '#ORDER BY .*? ([^\\s]+) LIMIT#', 'ORDER BY cast( qspm.meta_value as datetime ) \\1 LIMIT', $orderby );\n }\n\n return $orderby;\n }", "title": "" }, { "docid": "ad670c3cd37bee2bf89ac41d199a42a2", "score": "0.58281547", "text": "function _wp_object_count_sort_cb($a, $b)\n {\n }", "title": "" }, { "docid": "07443264517d587b26bdf4a8fd21a770", "score": "0.5806103", "text": "function admin_archive_posts($query){\n \n global $pagenow;\n \n if (!is_admin() || !$query->is_main_query() || $pagenow !== 'edit.php' || $query->get('post_type') !== $this->post_type)\n return;\n \n $query->set('meta_key', 'position');\n $query->set('orderby', 'meta_value_num title');\n $query->set('order', 'ASC');\n \n }", "title": "" }, { "docid": "3e2d4016b25e5f08063030a591cac5ad", "score": "0.57940525", "text": "function oppen_pre_get_posts($query) {\n /*if ($_GET['infinity'] === 'scrolling' && !$query->is_category('blogg')) {\n return;\n }*/\n\n // If we're in the admin, don't modify the query\n if (is_admin()) {\n return;\n }\n\n // If we're on the front page, fetch the 3 latest blog posts\n if ($query->is_home() && $query->is_main_query()) {\n $query->set('is_category_blog', true);\n $query->set('category_name', 'blogg');\n $query->set('showposts', 3);\n return;\n }\n\n // If we're on the blog category page, increase the post\n // limit to 90 posts and order descending by date.\n if (!$query->is_home() && $query->is_category('blogg')) {\n $query->set('showposts', 9);\n $query->set('orderby', 'date');\n $query->set('order', 'desc');\n } else {\n // Otherwise, order ascending by title\n $query->set('orderby', 'title');\n $query->set('order', 'asc');\n }\n}", "title": "" }, { "docid": "9566c5d0a62b89d05637f525e3caa66f", "score": "0.57930887", "text": "function sortRelZyxNew($a, $b)\n{\n\tif($a['relevance'] == $b['relevance']) \n\t{ \n\t\tif($a['title'] == $b['title']) \n\t\t{ \n\t\t\tif($a['reviewnumber'] == $b['reviewnumber']) { return 0; }\n\t\t\treturn ($a['reviewnumber'] < $b['reviewnumber']) ? 1 : -1;\n\t\t}\n\t\treturn ($a['title'] < $b['title']) ? 1 : -1;\n\t}\n\treturn ($a['relevance'] < $b['relevance']) ? 1 : -1;\n}", "title": "" }, { "docid": "a1234a40f9aabcca472364b132d5e532", "score": "0.5792155", "text": "function update_sort_order()\n\t{\n\t\t$page_id = $this->input->post('sort_id');\n\t\t$row_sort_order = $this->input->post('row_sort_order');\n\t\t$this->Text_image_slider_model->update_sort_order($page_id, $row_sort_order);\n\t}", "title": "" }, { "docid": "b15fb4e615d7abe746049d671f0f7605", "score": "0.5790299", "text": "function posts_by_year($posttype) {\r\n $years = array();\r\n\r\n // get posts from WP\r\n $posts = get_posts(array(\r\n\t'numberposts' => -1,\r\n\t'orderby' => 'post_date',\r\n\t'order' => 'DESC',\r\n\t'post_type' => $posttype,\r\n\t'post_status' => 'publish'\r\n ));\r\n\r\n // loop through posts, populating $years arrays\r\n foreach($posts as $post) {\r\n\t$years[date('Y', strtotime($post->post_date))][] = $post;\r\n }\r\n\r\n // reverse sort by year\r\n krsort($years);\r\n\r\n return $years;\r\n}", "title": "" }, { "docid": "09369e44b1a2e2df67bad335c4020e6e", "score": "0.5787279", "text": "function my_custom_ordering( $query ) {\n\tif($query->is_main_query() AND !is_admin() ) {\n\t\tif ( $query->is_home() || $query->is_category() || $query->is_tag() ){\n\t\t\t$query->set( 'orderby', 'modified' );\n\t\t}\n\t}\n}", "title": "" }, { "docid": "265f59f151d8342650d440170a70cd02", "score": "0.5783539", "text": "function cloud_tags_asort($tag1, $tag2)\n {\n\tif ($tag1['tag_count'] == $tag2['tag_count'])\n\t{\n\t return 0;\n\t}\n\treturn ($tag1['tag_count'] < $tag2['tag_count']) ? -1 : 1;\n }", "title": "" }, { "docid": "e52d74d54525cb9e809036f6e6824d97", "score": "0.57787037", "text": "private function sort_data( $a, $b ) {\n\n\t\t// Set defaults and check for query strings.\n\t\t$ordby = ! empty( $_GET['orderby'] ) ? $_GET['orderby'] : 'review_date';\n\t\t$order = ! empty( $_GET['order'] ) ? $_GET['order'] : 'desc';\n\n\t\t// Set my result up.\n\t\t$result = strcmp( $a[ $ordby ], $b[ $ordby ] );\n\n\t\t// Return it one way or the other.\n\t\treturn 'desc' === $order ? -$result : $result;\n\t}", "title": "" }, { "docid": "675dc92943c01265ebe5c8525ef90465", "score": "0.5763283", "text": "private static function sortByAsc($a, $b)\n {\n return strcmp($a->comment_date, $b->comment_date);\n }", "title": "" }, { "docid": "598fa0b50c289911b2bad9f429acc1c0", "score": "0.5762749", "text": "public function getSort()\n {\n return 125;\n }", "title": "" }, { "docid": "1647c938e160069ae0ef55a1a6493e8e", "score": "0.5761745", "text": "function init_sort(){\r\n\t\t$out='';\r\n\r\n\t\tif($this->sort===true or $this->sort==''){\r\n\t\t\tfor($i=0; $i<count($this->data[0]); $i++){\r\n\t\t\t\t$out.=($out ? '_' : '').'t';\r\n\t\t\t}\r\n\t\t\t$this->sort=$out;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "16f6a76eb3deeb1b027e46db9d1254f3", "score": "0.5761594", "text": "function allUserPostsAsc(object $pdo): array\n{\n $statement = $pdo->prepare('SELECT * FROM posts\n ORDER BY posts.date_created ASC');\n\n $statement->execute();\n\n $olderPosts = $statement->fetchAll(PDO::FETCH_ASSOC);\n\n return $olderPosts;\n}", "title": "" }, { "docid": "6a23c9fef8bc6f049bda89377572b557", "score": "0.5755548", "text": "public function ajax_save_post_order() {\n\t\tglobal $wpdb;\n\n\t\t// Verify nonce value, for security purposes\n\t\tif ( !wp_verify_nonce( $_POST['nonce'], 'sortnonce' ) ) die( '' );\n\n\t\t//Get JSON data\n\t\t$post_data = json_decode( str_replace( \"\\\\\", '', $_POST[ 'data' ] ) );\n\n\t\t//Iterate through post data\n\t\t$this->update_posts( $post_data, 0 );\n\n\t\tdie( json_encode( array( 'success' => 'yo' ) ) );\n\t}", "title": "" }, { "docid": "5e366c53f29ca7c5657bd0a1b7a2a879", "score": "0.57524914", "text": "public function getXXXOrdering()\n\t{\n\t\treturn array('title_asc', 'title_desc');\n\t}", "title": "" }, { "docid": "e360ceae4666ca2fcedc85e26acc8177", "score": "0.5738774", "text": "public function sortDirection();", "title": "" }, { "docid": "847075399d10027c7154f8653a175b3a", "score": "0.5738575", "text": "function sort_admin_categories()\n {\n $this->outer_template = null;\n\n // Require admin login\n if(!(isset($_SESSION['active_user']) && $_SESSION['active_user']['type'] == 'admin'))\n die;\n\n if(!isset($_POST['SortOrder']))\n die;\n\n $order = explode(',', $_POST['SortOrder']); \n\n $m_categories = instance_model('member_categories');\n\n $m_categories->update_sort($order);\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "77fd56d562d3cdc85996bd20f85d3154", "score": "0.0", "text": "public function destroy($id)\n {\n $dt = Dosetype::find($id);\n $dt->delete();\n return redirect()->route('dosetype.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": "" } ]
e24f2754edc5f72c4f89dde5b6d8eb8c
/ Set Encoding type
[ { "docid": "b6d7369f65cbc487715a34c4aae7e64b", "score": "0.8292731", "text": "function setEncoding($type)\n {\n $this->enctype=$type;\n }", "title": "" } ]
[ { "docid": "8726a7683fd76f44cae657a29b739259", "score": "0.75140727", "text": "public function setEncoding(string $value) {\n $this->encoding = $value;\n }", "title": "" }, { "docid": "24e91ab33aaeac8e67d4a3139f9f2870", "score": "0.7200163", "text": "public function setEncoding($encoding);", "title": "" }, { "docid": "e78f9587fa2e7189244f64a917eca717", "score": "0.70045465", "text": "function setCharset($type = 'utf-8') {\n $this->_charset = $type;\n }", "title": "" }, { "docid": "e48ae1235341eb3754fb37acb1a1be4c", "score": "0.68409806", "text": "protected function setEncoding() {\n\t\t// Define output encoding -> No encoding is defined, set default\n\t\tif (empty($this->conf['export.'][$this->format . '.']['encoding'])) {\n\t\t\tif ($this->format == 'csv') {\n\t\t\t\t$this->outputEncoding = $this->csvDefaultEncoding;\n\t\t\t} else {\n\t\t\t\t// Take standard charset from BE\n\t\t\t\t$this->outputEncoding = $this->LANG->charSet;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->outputEncoding = 'utf-8';\n\t\t}\n\t\tif ($this->debug) {\n\t\t\tt3lib_div::devLog('outputEncoding was set to ' . $this->outputEncoding, $this->extKey, 0);\n\t\t}\n\t}", "title": "" }, { "docid": "6aa63924b1e492b9af2d43ea7f2b9fad", "score": "0.67932886", "text": "function setInputEncoding($encoding)\n {\n \tglobal $encoding_string; \n if ($encoding != 'UTF-16LE' && !function_exists('iconv')) {\n die(\"Using an input encoding other than UTF-16LE requires PHP support for iconv\");\n }\n $this->_input_encoding = $encoding_string = $encoding;\n }", "title": "" }, { "docid": "ce88d5629d85c97259e96dd1d5720814", "score": "0.67581683", "text": "function getEncoding();", "title": "" }, { "docid": "d713f05fb95113d64cf419b2eaa771e1", "score": "0.67226386", "text": "public function getEncoding();", "title": "" }, { "docid": "71d2664290c439026dbac038a1e00920", "score": "0.65683866", "text": "private function _setEncoding($encoding) {\n \t$this->_encoding = $encoding;\n \t}", "title": "" }, { "docid": "eef6e9172287c635f28f10b0adaecbce", "score": "0.6434687", "text": "public function setEncoding($enc)\n {\n $this->encoding = $enc;\n }", "title": "" }, { "docid": "ae8014e6045d5b22d8c1ed3987936933", "score": "0.63754654", "text": "public function getEncoding()\n {\n return $this->encoding;\n }", "title": "" }, { "docid": "03fbc6c58e0ac39f74527a3fef066489", "score": "0.6363913", "text": "abstract public function setUTF();", "title": "" }, { "docid": "640fff1dbb5a2c89674d7b4295f10d7e", "score": "0.62907916", "text": "public function getEncoding()\n {\n \treturn $this->_encoding;\n \t}", "title": "" }, { "docid": "866686929374b7d6d830f13c3941e8a6", "score": "0.6244812", "text": "protected function getHTTPContentTypeCharset()\n {\n return $this->soapDefEncoding;\n }", "title": "" }, { "docid": "673679648b70ae7a710e3503202290da", "score": "0.6225619", "text": "public function getContentEncoding()\n {\n }", "title": "" }, { "docid": "7a0fbd42c563a68a1887748fcc81d3a7", "score": "0.61932397", "text": "public function getEncoding()\n {\n return $this->encoding;\n }", "title": "" }, { "docid": "7a0fbd42c563a68a1887748fcc81d3a7", "score": "0.61932397", "text": "public function getEncoding()\n {\n return $this->encoding;\n }", "title": "" }, { "docid": "7a0fbd42c563a68a1887748fcc81d3a7", "score": "0.61932397", "text": "public function getEncoding()\n {\n return $this->encoding;\n }", "title": "" }, { "docid": "7a0fbd42c563a68a1887748fcc81d3a7", "score": "0.61932397", "text": "public function getEncoding()\n {\n return $this->encoding;\n }", "title": "" }, { "docid": "7a0fbd42c563a68a1887748fcc81d3a7", "score": "0.61932397", "text": "public function getEncoding()\n {\n return $this->encoding;\n }", "title": "" }, { "docid": "7a0fbd42c563a68a1887748fcc81d3a7", "score": "0.61932397", "text": "public function getEncoding()\n {\n return $this->encoding;\n }", "title": "" }, { "docid": "7a0fbd42c563a68a1887748fcc81d3a7", "score": "0.61932397", "text": "public function getEncoding()\n {\n return $this->encoding;\n }", "title": "" }, { "docid": "7a0fbd42c563a68a1887748fcc81d3a7", "score": "0.61932397", "text": "public function getEncoding()\n {\n return $this->encoding;\n }", "title": "" }, { "docid": "ebaade0df797751c4da98d78dcac766e", "score": "0.6179245", "text": "public function setEncoding($encoding)\r\n\t{\r\n\t\t$this->encoding = $encoding;\r\n\t}", "title": "" }, { "docid": "286c471292c27aae4d09e24eb08a740d", "score": "0.6156198", "text": "public function encoding() { return $this->_m_encoding; }", "title": "" }, { "docid": "e6ab8827912c63cdc2fb3feef3b981bf", "score": "0.6153536", "text": "private function _settype($ext) {\r\n $text_types = array(\r\n 'txt',\r\n 'text',\r\n 'php',\r\n 'phps',\r\n 'php4',\r\n 'js',\r\n 'css',\r\n 'htm',\r\n 'html',\r\n 'phtml',\r\n 'shtml',\r\n 'log',\r\n 'xml'\r\n );\r\n\r\n\r\n return (in_array($ext, $text_types)) ? 'ascii' : 'binary';\r\n }", "title": "" }, { "docid": "3f6eef029c9279a5fbf7f065cbf9b69c", "score": "0.61519367", "text": "public function getEncoding()\n\t{\n\t\treturn $this->encoding;\n\t}", "title": "" }, { "docid": "ac338dbd7284cc7524d5ded1ea21a1d0", "score": "0.61484766", "text": "function getHTTPContentTypeCharset() {\n\t\treturn $this->soap_defencoding;\n\t}", "title": "" }, { "docid": "ae6576bfe21c0edd9fcbe8952ec42cf5", "score": "0.6147249", "text": "public static function determinateUTF8Codification() {\n header('Content-Type: text/html; charset=UTF-8');\n }", "title": "" }, { "docid": "51ba9991eca247dcfc593d13f1498be7", "score": "0.6141252", "text": "public function getEncoding(): string\n {\n return $this->encoding;\n }", "title": "" }, { "docid": "51ba9991eca247dcfc593d13f1498be7", "score": "0.6141252", "text": "public function getEncoding(): string\n {\n return $this->encoding;\n }", "title": "" }, { "docid": "ba784dc92ec820a88f7fb7ad6998672a", "score": "0.6111969", "text": "public function setEncType($encType){\n\t\t$this->encType = $encType;\n\t}", "title": "" }, { "docid": "ffb249a645bfdc637400e589ee1d4d08", "score": "0.60986733", "text": "public function setEncoding($encoding) {\n $this->encoding = $encoding;\n }", "title": "" }, { "docid": "4c50ae1d053eb59423a5d1bda9128235", "score": "0.6096619", "text": "function setUnicode($input) {\n\t\tif($input == true) $this->multibyte = 4;\n\t\telse $this->multibyte = 2;\n\t}", "title": "" }, { "docid": "0a0314cce13d9f630bc9f7184cbca6ac", "score": "0.6095132", "text": "public function getEncoding()\n {\n return $this->_encoding;\n }", "title": "" }, { "docid": "59fc8938e839f630ac3fed0754673d44", "score": "0.60945046", "text": "function setUnicode($input) {\r\n if($input == true) $this->multibyte = 4;\r\n else $this->multibyte = 2;\r\n }", "title": "" }, { "docid": "0f19cc535c8609693379ab9f86348065", "score": "0.6061136", "text": "public function setCharset($charset);", "title": "" }, { "docid": "fc9f947585ff04e438a6f2b8e8b4ab89", "score": "0.6047903", "text": "public function getEncoding()\n\t{\n\t\t\tif ($this->_encoding === null) {\n\t\t\t\t\tif (function_exists('mb_detect_encoding')) {\n\t\t\t\t\t\t\t$this->_encoding = mb_detect_encoding($this->data);\n\t\t\t\t\t} else if (function_exists('utf8_compliant') && utf8_compliant($this->data)) {\n\t\t\t\t\t\t\t$this->_encoding = 'UTF-8';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->_encoding = false;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\treturn $this->_encoding;\n\t}", "title": "" }, { "docid": "43c8e47cc09265a2246d15f85c697bb7", "score": "0.60422486", "text": "public function getEncodingName()\n {\n }", "title": "" }, { "docid": "f89e88df51b6fdba9c8d5b5591fc5851", "score": "0.60414314", "text": "private function set_content_type() {\n\t\tif ( $this->is_plain_text ) {\n\t\t\t$this->content_type = 'text/plain';\n\t\t}\n\t}", "title": "" }, { "docid": "930585259050f7f90d46e345fc1d6f4f", "score": "0.6026025", "text": "public function setValue($value)\n {\n if (!is_string($value)) {\n throw new TypeException('$value must be of type string');\n }\n $this->value = mb_convert_encoding($value, 'UTF-8', 'UTF-8');\n }", "title": "" }, { "docid": "8fd99438b535c8f1a542d72760302116", "score": "0.6022287", "text": "function setEncoding($encoding=\"\")\n {\n if(\"\" == $encoding)\n $encoding = $this->encoding;\n $sql = \"SET SESSION character_set_database = \" . $encoding; //'character_set_database' MySQL server variable is [also] to parse file with rigth encoding\n $res = $this->fDB->query($sql);\n return $this->fDB->getError();\n }", "title": "" }, { "docid": "049759606e95e1562c0c167afab31d32", "score": "0.59875137", "text": "private function setEnconding() {\n\t\t$this->query(\"SET NAMES '\" . parent::DB_ENCODING.\"'\");\n\t}", "title": "" }, { "docid": "0d8dd8406471dd68b3bb1747370813f8", "score": "0.598616", "text": "public function setCharset(string $charset);", "title": "" }, { "docid": "defaa3be6727998552d2d09cfa6a467f", "score": "0.5982259", "text": "function it_should_encode_values_to_the_desired_type()\n { $this::encode('foo', 'UTF-8')->shouldBeEqualTo('foo');\n }", "title": "" }, { "docid": "ea5cdedcebf1d4ba1adf742b8ecc6df8", "score": "0.596757", "text": "public function setEncoding($encoding) {\n $this->query(\"SET NAMES \" . $encoding);\n }", "title": "" }, { "docid": "ebf8a49859fbd8e999022ae36587acb1", "score": "0.5953394", "text": "function set_encoding($encoding=\"\")\n {\n if(\"\" == $encoding)\n $encoding = $this->encoding;\n $sql = \"SET SESSION character_set_database = \" . $encoding; //'character_set_database' MySQL server variable is [also] to parse file with rigth encoding\n $res = @mysql_query($sql);\n return mysql_error();\n }", "title": "" }, { "docid": "811da6ed89fb2277def01fbbd1c1ea00", "score": "0.59499407", "text": "abstract protected function setDataType();", "title": "" }, { "docid": "9487ca6dc66406f1910bbbb6f0fe1d5e", "score": "0.5946567", "text": "function setTextEncoding($encoding = '7bit') {\n\t\t$this->build_params['text_encoding'] = $encoding;\n\t}", "title": "" }, { "docid": "6838ee4d858551fee7ff4d8bf911e651", "score": "0.59249574", "text": "public function getEncoding()\n {\n return $this->_structure->encoding;\n }", "title": "" }, { "docid": "c71d28140f9b00807bf6ef236d9cfb81", "score": "0.59111947", "text": "public static function setEncoding($encoding)\n {\n if (! self::$useMultibyte) {\n return;\n }\n\n if (function_exists('mb_internal_encoding')) {\n mb_internal_encoding($encoding);\n }\n\n if (function_exists('mb_regex_encoding')) {\n mb_regex_encoding($encoding);\n }\n }", "title": "" }, { "docid": "6130a05b601a4d9fa3c6b32ec5541618", "score": "0.58817947", "text": "function setContentType($type, $charset = false) {\n\t\t$this->setHeader('Content-Type', $type . ($charset ? '; charset=' . $charset : ''));\n\t}", "title": "" }, { "docid": "a36226f8c0d9dfaa905b512454d84d97", "score": "0.58475447", "text": "public function testCharsetCanBeSetAndFetched()\n {\n\n $message = $this->_createMessage(array(), $this->_encoder, $this->_cache);\n $message->setCharset('ucs2');\n $this->assertEqual('ucs2', $message->getCharset());\n }", "title": "" }, { "docid": "cfc7b3d5745698c471e87390162b9117", "score": "0.5837379", "text": "public static function getDefaultEncoding()\n {\n return 'UTF-8';\n }", "title": "" }, { "docid": "9b3969fbc6188dd6f5af0ffad0153c5f", "score": "0.5831132", "text": "public function getEncoding()\n {\n return $this->values['HTTP_ACCEPT_ENCODING'];\n }", "title": "" }, { "docid": "154e3839d0ba5d1261be5efc69f59afd", "score": "0.5826028", "text": "public function set_charset($charset);", "title": "" }, { "docid": "f1faa0dfab176d5dbb8bd5b5de73d700", "score": "0.58256716", "text": "public function getTargetEncoding()\r\n\t{\r\n\t\treturn $this->encoding;\r\n\t}", "title": "" }, { "docid": "59ee6a08bbdf6f14644d8946c8bbb3b6", "score": "0.5809216", "text": "function smrMysqlCharset($tipo='utf8') {\n\tglobal $database_cnx, $cnx;\n\tmysql_select_db($database_cnx, $cnx);\n\t$query_rsUTF8 = sprintf(\"SET NAMES '%s'\", $tipo);\n\t$rsUTF8 = mysql_query($query_rsUTF8, $cnx) or die(mysql_error().$query_rsUTF8);\n}", "title": "" }, { "docid": "263eee27b8838a2bb3377914161e8c88", "score": "0.58060265", "text": "function setTextEncoding($encoding = '7bit') {\n $this->build_params['text_encoding'] = $encoding;\n }", "title": "" }, { "docid": "40cb1639c30207bbe791bdfe0c8b7932", "score": "0.5792586", "text": "public function SetDBCharset()\n {\n mysql_set_charset(self::$SQLCharset, self::$DBObject);\n }", "title": "" }, { "docid": "2ec0c147dd4ad9286d46eb1bb8e87053", "score": "0.5785652", "text": "public function setEncoding($encoding)\n {\n $this->encoding = $encoding;\n mb_internal_encoding($encoding);\n }", "title": "" }, { "docid": "39449fcd95048c9626983dfecd07430a", "score": "0.5781693", "text": "public function getEncodingFormat(): ?string\n {\n return $this->encodingFormat;\n }", "title": "" }, { "docid": "6ab068a5039e3cc2a16e40b1c8cd32c8", "score": "0.57639927", "text": "function setEncode($lEncode) {\n\n $this->lEncode = $lEncode;\n\n }", "title": "" }, { "docid": "cbba8167238c2193e019741f374d9eba", "score": "0.5758642", "text": "function setCharset($src, $src_charset=\"utf-8\") {\n\t\n\tif (utf8_needed() && $src_charset != 'utf-8') {\n\t\t\n\t\treturn utf8_encode($src);\n\t\t\n\t} elseif (!utf8_needed() && $src_charset == 'utf-8') {\n\t\t\n\t\treturn utf8_decode($src);\n\t\t\n\t} else\n\t\treturn $src;\n\t\n}", "title": "" }, { "docid": "40dcbf363c9b7b78eb6d77680ac3d36a", "score": "0.5751465", "text": "public function setUp() {\n iconv_set_encoding('input_encoding', 'ISO-8859-1');\n iconv_set_encoding('output_encoding', 'ISO-8859-1');\n }", "title": "" }, { "docid": "ca4164c0a716d4cd1646ab2d4b64f970", "score": "0.5747663", "text": "public function getCharset()\n\t {\n\t\t return 'UTF-8';\n\t }", "title": "" }, { "docid": "7479e8ccec7e89fe3c49c8489a712561", "score": "0.57451326", "text": "public function setEncoding($enc) {\n\t\tif (!in_array($enc, array(\"UTF-8\", \"UTF-16\", \"UTF-16le\", \"UTF-16be\"))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn $this->_execute(\"PRAGMA encoding = \\\"{$enc}\\\"\") !== false;\n\t}", "title": "" }, { "docid": "7479e8ccec7e89fe3c49c8489a712561", "score": "0.57451326", "text": "public function setEncoding($enc) {\n\t\tif (!in_array($enc, array(\"UTF-8\", \"UTF-16\", \"UTF-16le\", \"UTF-16be\"))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn $this->_execute(\"PRAGMA encoding = \\\"{$enc}\\\"\") !== false;\n\t}", "title": "" }, { "docid": "c86f1f4be30f10294a1c8fa38dba76b2", "score": "0.57365537", "text": "public function encoding(): ?string {\n return $this->info()['Encoding'];\n }", "title": "" }, { "docid": "aab1f578a7c842bc73dfb158354a669d", "score": "0.56861585", "text": "public static function get8BitEncoding()\n {\n return self::_lookup('mime.8bitcontentencoder');\n }", "title": "" }, { "docid": "ad0f0892a5e041d9ddbea30414ad9279", "score": "0.5679654", "text": "public function setType()\n\t{\n\t\t$this->typeLong = 'N';\n\t\t$this->typeShort = 'n';\n\t\t$this->type = IMAGETYPE_TIFF_MM;\n\n\t\tif ($this->getSignature() === self::TIF_SIGNATURE_INTEL) {\n\t\t\t$this->typeLong = 'V';\n\t\t\t$this->typeShort = 'v';\n\t\t\t$this->type = IMAGETYPE_TIFF_II;\n\t\t}\n\t}", "title": "" }, { "docid": "3355d87a0b5e15bf76a201d78f71fcaf", "score": "0.5677022", "text": "function getCharEncoding() {\n\t\treturn $this->charEncoding;\n\t}", "title": "" }, { "docid": "160f21a22a311025165b16af9cd1eb19", "score": "0.5669382", "text": "public function getContentEncoding(): string\n {\n return $this->contentEncoding;\n }", "title": "" }, { "docid": "70b3b174c9295662184323e6f2de58db", "score": "0.5666276", "text": "protected function SetFormEncType( $strEncType=\"application/x-www-form-urlencoded\" ) {\n\t\t// Set one of the followings: application/x-www-form-urlencoded, multipart/form-data, text/plain\n\t\t$this->strFormEncType = $strEncType;\n\t\t\n\t}", "title": "" }, { "docid": "1fabe7c52d6d6ab2d221f444fba5f1aa", "score": "0.5660812", "text": "protected function set_type() {\n\t\t$this->type = 'kirki-custom';\n\t}", "title": "" }, { "docid": "4590f8bb2e0aaf0d13477df9f08daeec", "score": "0.56268907", "text": "public function setCharacterEncoding($encoding)\n {\n $this->encoding = $encoding;\n }", "title": "" }, { "docid": "dc952365fe13191bd5db61452e74a21b", "score": "0.56248885", "text": "public function getEncoding()\n {\n return $this->request->getEncoding();\n }", "title": "" }, { "docid": "13a117808359bb2d887e75f3c5203805", "score": "0.56044066", "text": "public static function setDefaultEncoding($encoding = null)\n\t{\n\t\t\tif ($encoding === null) {\n\t\t\t\t\tself::$_defaultEncoding = null;\n\t\t\t} else {\n\t\t\t\t\tself::$_defaultEncoding = strtoupper(str_replace(' ', '-', (string)$encoding));\n\t\t\t}\n\t}", "title": "" }, { "docid": "6829aaedfef0b02649ba0c0f6ef77e7c", "score": "0.56010646", "text": "final public static function setCharset(string $value):bool\n {\n return self::set('default_charset',$value);\n }", "title": "" }, { "docid": "f31c03795a2e5c8a015e6b82835d6bd7", "score": "0.5596615", "text": "function _tidyEncoding($encode) {\n\t\t$encode = strtoupper($encode);\n\t\tswitch ($encode) {\n\t\t\tcase \"ISO-8859-15\" :\n\t\t\tcase \"ISO-8859-1\" :\n\t\t\t\treturn \"latin1\";\n\t\t\tcase \"UTF-8\" :\n\t\t\tdefault :\n\t\t\t\treturn \"UTF8\";\n\t\t}\n\t}", "title": "" }, { "docid": "d3f620550ee0c8e09744c70b12cab5e0", "score": "0.5588113", "text": "protected function set_type() {\n\t\t$this->type = 'kirki-switch';\n\t}", "title": "" }, { "docid": "abceaba57f7bd77769dcb8e2f85a2fa5", "score": "0.55660427", "text": "public function getEncodingOptions(): int\n {\n return $this->encodingOptions;\n }", "title": "" }, { "docid": "d137190b33300dd7a41e1b2bd0611bb9", "score": "0.55620605", "text": "protected function setConnectionCharset()\n\t{\n\t\tif ($this->_charset === '' || $this->_active === false)\n\t\t\treturn;\n\t\tswitch ($this->_pdo->getAttribute(PDO::ATTR_DRIVER_NAME))\n\t\t{\n\t\t\tcase 'mysql':\n\t\t\tcase 'sqlite':\n\t\t\t\t$stmt = $this->_pdo->prepare('SET NAMES ?');\n\t\t\tbreak;\n\t\t\tcase 'pgsql':\n\t\t\t\t$stmt = $this->_pdo->prepare('SET client_encoding TO ?');\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new TDbException('dbconnection_unsupported_driver_charset', $driver);\n\t\t}\n\t\t$stmt->execute(array($this->_charset));\n\t}", "title": "" }, { "docid": "6c949a53c0b4ad7ada6e03971b8d28b2", "score": "0.55582887", "text": "public function testGetSetEncoding()\n {\n $this->specify(\n 'The escaper does not set/get the encoding correctly',\n function () {\n $escaper = new Escaper();\n $escaper->setEncoding('UTF-8');\n\n expect($escaper->getEncoding())->equals('UTF-8');\n }\n );\n }", "title": "" }, { "docid": "919869ebde65464f0340e93db977dcb6", "score": "0.5546319", "text": "public function setType($type)\n {\n $this->type = strtolower($type);\n }", "title": "" }, { "docid": "2aa6427e1907ff937da3c9dd42aed20f", "score": "0.55318224", "text": "public function setContentTypeHeader (string $customheader=null) {\r\n $this->_content_type_header = empty($customheader) ?\r\n $this->determineContentTypeHeader(false, 'utf-8') : $customheader;\r\n }", "title": "" }, { "docid": "87ae991292b3cebb991b2a63c7cdc66d", "score": "0.5526694", "text": "function set_content_type( $content_type ) {\r\n\t\tif ( $content_type == 'text/plain' ) {\r\n\t\t\t$this->is_html = false;\r\n\r\n\t\t\treturn 'text/html';\r\n\t\t}\r\n\t\t$this->is_html = true;\r\n\r\n\t\treturn $content_type;\r\n\t}", "title": "" }, { "docid": "00aab3686419b74912d797fc3faf81e6", "score": "0.5526132", "text": "#[@test]\n public function defaultCharsetIsIso88591() {\n $r= $this->newReader('▄bercoder', NULL);\n $this->assertEquals('iso-8859-1', $r->charset());\n }", "title": "" }, { "docid": "62154bd266fa97de372a6f18cb2d07cf", "score": "0.55208737", "text": "public function getEncoding(){\n\t\tforeach($this->getMeta() as $meta){\n\t\t\tif(isset($meta->attributes['http-equiv']) && strtolower($meta->attributes['http-equiv']) === 'content-type'){\n\t\t\t\tif(isset($meta->attributes['content']) && \n\t\t\t\t\t\tpreg_match('@charset\\=(?P<charset>.*);?@i',$meta->attributes['content'],$matches)){\n\t\t\t\t\treturn $matches['charset'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "843729d3743aad02614d90ab53650887", "score": "0.5520307", "text": "function setType($type);", "title": "" }, { "docid": "dc82821d59ba8147468c56da65ef8d35", "score": "0.55154485", "text": "public function getCharset() : ?string;", "title": "" }, { "docid": "7ad31654bb2e84e792c202926fafcf57", "score": "0.54987687", "text": "public function setFormEncType( $formEncType )\n\t{\n\t\t$this->setAttribute( \"formenctype\", $formEncType );\n\t}", "title": "" }, { "docid": "f3667c81a86c5a7985f2d63a9ea208df", "score": "0.5495714", "text": "public function setEncodng($encoding = 'utf-8')\n {\n $this->encoding = filter_var($encoding, FILTER_SANITIZE_STRING);\n }", "title": "" }, { "docid": "83a2bccb2642c57dfc8c2868b9356b16", "score": "0.54868245", "text": "private function _setType($type)\n {\n \t$this->_type = $type;\n }", "title": "" }, { "docid": "24b5c661f446904694f95564fe06bd3b", "score": "0.5483707", "text": "public function getCharEncoding()\n {\n return $this->_charEncoding;\n }", "title": "" }, { "docid": "9c830e87ae738e91fcc9ed04ce489316", "score": "0.54815304", "text": "public function getEncodingOptions()\n {\n return $this->encodingOptions;\n }", "title": "" }, { "docid": "64663e6e3d9feedf5d8f97e9304a9182", "score": "0.5479697", "text": "public static function provideGeneralEncoding() {\n\t\tthrow new Exception( 'Subclass must implement ' . __METHOD__ );\n\t}", "title": "" }, { "docid": "ff2a34894c7236ec6d4ba687fa37a059", "score": "0.54731756", "text": "function setContentType($type)\n{\n\theader('Content-Type: '.$type);\n}", "title": "" }, { "docid": "efd519ceb23aa69bfc52b9eeda0ea30d", "score": "0.5472236", "text": "public function getCharset()\n {\n return $this->values['HTTP_ACCEPT_CHARSET'];\n }", "title": "" }, { "docid": "e0019de175697a5c7f2a3ff86b74b9a5", "score": "0.5462511", "text": "public function setValue($value) {\n //if(function_exists('mb_check_encoding') && mb_check_encoding($value, 'UTF-8')) $value = utf8_decode($value);\n $this->value = base64_encode($value);\n }", "title": "" }, { "docid": "f70b8c762bd31cef426b1700df418298", "score": "0.54535425", "text": "function mb_convert_encoding($str,$to_encoding,$from_encoding='')\r\n{\treturn $str;\t}", "title": "" } ]
a0c807a713f9a59888ad512dc6a0976e
Returns the message Body, can be either html or text
[ { "docid": "b136b721e44b04767615d63bb4ab1f44", "score": "0.0", "text": "public function getBody() {\n\t\t$view = $this->createStandaloneView();\n\t\t$view->assignMultiple($this->templateData);\n\n\t\treturn $view->render();\n\t}", "title": "" } ]
[ { "docid": "0e0c46873dec8ff1e06a6ab27c27877e", "score": "0.772265", "text": "public function htmlBody() {\n\t\tif (!array_key_exists('html', $this->data[$this->alias]['msg'])) {\n\t\t\treturn '';\n\t\t}\n\t\treturn $this->data[$this->alias]['msg']['html'];\n\t}", "title": "" }, { "docid": "2e7f82c540f3c164d09bed2f520fa021", "score": "0.771622", "text": "public function getBody($msgCount) {\n $body = $this->getPart($msgCount, \"TEXT/HTML\");\n if ($body == '') {\n if( !($body = $this->getPart($msgCount, \"TEXT/PLAIN\"))){\n return '';\n }\n }\n if ($body == '') {\n return '';\n }\n return $body;\n }", "title": "" }, { "docid": "4077f7b4efa666bc64d017fafecc428c", "score": "0.767082", "text": "private function getPlainBody(): string\n {\n if (!$this->email->body) {\n return $this->email->body_plain ?? '';\n }\n\n $convertedBody = Html2Text::convert($this->email->body, true);\n if (!$this->email->body_plain) {\n return $convertedBody;\n }\n\n /**\n * apstraadaa gafdiijumu, ja plain body ir piemeeram \"An HTML viewer is required to see this message\"\n */\n if (strlen($convertedBody) > 3 * strlen($this->email->body_plain)) {\n return $convertedBody;\n }\n return $this->email->body_plain;\n }", "title": "" }, { "docid": "8b187f128a58dc0e4797912f273d243c", "score": "0.7610952", "text": "public function getPlainBody(): string {\n\t\treturn $this->swiftMessage->getBody();\n\t}", "title": "" }, { "docid": "ae9f05564edd5005eff1562323308226", "score": "0.7608243", "text": "public function getBody() {\n if( $this->is_plain == true ) {\n $break = strpos( $this->content, \"\\r\" ) === false ? \"\\n\" : \"\\r\\n\";\n $content = wordwrap( $this->content, 78, $break );\n }\n else {\n $content = $this->content;\n }\n return $content;\n }", "title": "" }, { "docid": "765e7020d97b597ad059a55f112103a3", "score": "0.7538237", "text": "public function getBody()\n {\n // Set the email's locale:\n $appLocale = $this->translator->getLocale();\n if ($this->locale && $this->locale != $appLocale) {\n $this->translator->setLocale($this->locale);\n }\n\n // Generate HTML:\n $html = $this->viewFactory->make($this->view, $this->data)->render();\n $css = $this->filesystem->get(base_path($this->cssFile));\n $inliner = new CssToInlineStyles();\n $body = $inliner->convert($html, $css);\n\n // Return App locale to former value:\n if ($this->locale && $this->locale != $appLocale) {\n $this->translator->setLocale($appLocale);\n }\n\n return $body;\n }", "title": "" }, { "docid": "13649b027526c1837db49fdb9f0a4651", "score": "0.75236636", "text": "public function getBody()\n {\n // Get with check of body.\n if (false === $this->body) $this->setErrors('Body', $this->body);\n return $this->body;\n }", "title": "" }, { "docid": "730b3e5b2ec1c445d526c49c5338f978", "score": "0.7520503", "text": "function getBody() \n\t {\n\t\t$retval = $textBody;\n\t\t$retval .= $htmlBody;\n\t\tforeach($this->attachments as $tblck)\n\t\t $retval .= $tblck;\n\t\n\t\treturn $retval;\n\t }", "title": "" }, { "docid": "d49ca514b90641b77b30cc77110a0287", "score": "0.74880636", "text": "public function textBody() {\n\t\tif (!array_key_exists('text', $this->data[$this->alias]['msg'])) {\n\t\t\treturn '';\n\t\t}\n\t\treturn $this->data[$this->alias]['msg']['text'];\n\t}", "title": "" }, { "docid": "990138117a31988b02df34815bff1925", "score": "0.74839205", "text": "public function getBody()\n {\n $value = $this->get(self::body);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "e9decffe43440bf7d3edc86a521a70de", "score": "0.74513566", "text": "public function get_body()\n {\n return $this->body;\n }", "title": "" }, { "docid": "5e79e07a25e7fcb86d944caf0b108953", "score": "0.7426993", "text": "public function getBody(): string\n {\n return $this->body;\n }", "title": "" }, { "docid": "5e79e07a25e7fcb86d944caf0b108953", "score": "0.7426993", "text": "public function getBody(): string\n {\n return $this->body;\n }", "title": "" }, { "docid": "7b08754cbcde96ef19db3ac7b4e9dada", "score": "0.7322789", "text": "public function getBodyText()\n {\n $part = $this->findBy(\"contentType\", \"text/plain\");\n return isset($part[0]) ? $part[0]->getDecodedContent() : false;\n }", "title": "" }, { "docid": "a39a770fc6aa88c61e3c2c673a0cedd8", "score": "0.7319826", "text": "public function get_body() {\n return $this->Body;\n }", "title": "" }, { "docid": "ac54cfe148f0a291a601fbe3b64da232", "score": "0.7319153", "text": "public function body() : string\n {\n return $this->pluck('messageDetail.body');\n }", "title": "" }, { "docid": "ffc9e1baade9b0934f6cd047c653c3bc", "score": "0.7309131", "text": "public function getBody()\n {\n $temp = explode(\"\\r\\n\\r\\n\", $this->rx_msg);\n\n if (!isset($temp[1])) {\n return '';\n }\n\n return $temp[1];\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "bf2f6ebe17a35be3689482bb72fc0c2a", "score": "0.7303349", "text": "public function getBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "0e13eaeff466b38d839f622ea49f9333", "score": "0.7301006", "text": "public function getBody() {\n return $this->get('body')->value;\n }", "title": "" }, { "docid": "613dde39e76f2e687db638c0dc1f0a7e", "score": "0.7296566", "text": "public function getRawBody()\n {\n return $this->message->getBody();\n }", "title": "" }, { "docid": "5a0f8b497de12c7a9c3f01d06bb77419", "score": "0.7292553", "text": "public function getBodyHtml()\n {\n $part = $this->findBy(\"contentType\", \"text/html\");\n return isset($part[0]) ? $part[0]->getDecodedContent() : false;\n }", "title": "" }, { "docid": "5f13440e7c2a68d879fbcaa7d78f6ab6", "score": "0.729153", "text": "public function getBody() : ?string\n {\n return $this->body;\n }", "title": "" }, { "docid": "4ee0c8a962b273d9e84cc01e39f38d69", "score": "0.72751254", "text": "function getBody($msgno, $format='auto') {\n // GET HTML BODY\n if ($format != 'plain') {\n $dataHtml = $this->get_part($this->stream, $msgno, \"TEXT/HTML\");\n // Return false if format was explicitly requested as html and no data is available\n if (empty($dataHtml) && $format == 'html') {\n return false;\n }\n // return html data\n elseif (!empty($dataHtml) && $format == 'html') {\n return $dataHtml;\n }\n // return html formatted for display inside websites\n elseif (!empty($dataHtml) && $format == 'web') {\n return $this->transformHTML($dataHtml);\n }\n }\n \n // GET TEXT BODY\n if ($format == 'plain' || empty($dataHtml)) {\n $dataTxt = $this->get_part($this->stream, $msgno, \"TEXT/PLAIN\");\n // Return false if no data is available and requested strctly plain\n if (empty($dataTxt) && $format == 'plain') {\n return false;\n }\n // Return plain text\n elseif (!empty($dataTxt) && $format == 'plain') {\n return $dataTxt;\n }\n elseif (!empty($dataTxt) && $format == 'web') {\n return $this->format_plain_body($dataTxt);\n }\n }\n \n if ($format == 'auto' && !empty($dataTxt)) {\n return $dataTxt;\n }\n elseif ($format == 'auto' && !empty($dataHtml)) {\n return $dataHtml;\n }\n\n return false;\n }", "title": "" }, { "docid": "d365775e0fbb693d5dfd7f5b7a26ce20", "score": "0.7270205", "text": "public function getBody()\r\n\t{\r\n\t\treturn $this->_body;\r\n\t}", "title": "" }, { "docid": "fe0477a359ceb3d5291031303235f450", "score": "0.72469383", "text": "public function getBody()\n\t{\n\t\treturn $this->body;\n\t}", "title": "" }, { "docid": "409942adeebdc6d4ef5e94865f5c70ff", "score": "0.72267115", "text": "public final function getBody() {\n\t\t\treturn $this->body;\n\t\t}", "title": "" }, { "docid": "e6f5ff01aaf9fd60e3979b5e106ca635", "score": "0.71972555", "text": "public function getBody();", "title": "" }, { "docid": "e6f5ff01aaf9fd60e3979b5e106ca635", "score": "0.71972555", "text": "public function getBody();", "title": "" }, { "docid": "e6f5ff01aaf9fd60e3979b5e106ca635", "score": "0.71972555", "text": "public function getBody();", "title": "" }, { "docid": "e6f5ff01aaf9fd60e3979b5e106ca635", "score": "0.71972555", "text": "public function getBody();", "title": "" }, { "docid": "e6f5ff01aaf9fd60e3979b5e106ca635", "score": "0.71972555", "text": "public function getBody();", "title": "" }, { "docid": "e6f5ff01aaf9fd60e3979b5e106ca635", "score": "0.71972555", "text": "public function getBody();", "title": "" }, { "docid": "e6f5ff01aaf9fd60e3979b5e106ca635", "score": "0.71972555", "text": "public function getBody();", "title": "" }, { "docid": "e6f5ff01aaf9fd60e3979b5e106ca635", "score": "0.71972555", "text": "public function getBody();", "title": "" }, { "docid": "e6f5ff01aaf9fd60e3979b5e106ca635", "score": "0.71972555", "text": "public function getBody();", "title": "" }, { "docid": "e6f5ff01aaf9fd60e3979b5e106ca635", "score": "0.71972555", "text": "public function getBody();", "title": "" }, { "docid": "4cffff6ba716362b3a61bb927632a985", "score": "0.7195369", "text": "public function getBody() {\n return $this->_body;\n }", "title": "" }, { "docid": "d79d7b4e69a4588fd447a5023afc8da7", "score": "0.71703124", "text": "public function getBody()\n {\n return isset($this->Body) ? $this->Body : null;\n }", "title": "" }, { "docid": "fe14221e32138900a8814ce01a227843", "score": "0.71601474", "text": "protected function getMessageBody() : string\n {\n return sprintf(\n \"%s\\r\\n%s\\r\\n%s\", $this->serverConfig['SERVER_PROTOCOL'], $this->headers, $this->getContent()\n );\n }", "title": "" }, { "docid": "6daa54426af82f40a87dd0ca4349efcf", "score": "0.7149643", "text": "public function getBody() {\n return $this->_body;\n }", "title": "" }, { "docid": "f6d7e7c257dabaa8c45faec45254d67b", "score": "0.71239346", "text": "function bodyText() {\n ob_start();\n $temp_layout = $this->controller->layout;\n $this->controller->layout = ''; // Turn off the layout wrapping\n $this->controller->render($this->template . '_text'); \n $mail = ob_get_clean();\n $this->controller->layout = $temp_layout; // Turn on layout wrapping again\n return $mail;\n }", "title": "" }, { "docid": "ffcf6a0e5748433acbb9b78e59db4f83", "score": "0.7106383", "text": "protected function getEmailBody()\n {\n $body = '';\n $body .= '<strong><i>Submitted Data:</i></strong><br>';\n $body .= '<strong>Name:</strong> '.$this->submission['name'].'<br>';\n $body .= '<strong>Subject:</strong> '.$this->submission['subject'].'<br>';\n $body .= '<strong>Email:</strong> '.$this->submission['email'].'<br>';\n $body .= '<strong>Phone Number:</strong> '.$this->submission['phone_number'].'<br>';\n $body .= '<strong>How can we help you?</strong><br />'.$this->submission['message'];\n $body .= '<br /><br />';\n $body .= '<strong>Submitted at:</strong> '.$this->submission['date_created'];\n\n return $body;\n }", "title": "" }, { "docid": "6171cfdcefa995df73fa1c734049e007", "score": "0.7096162", "text": "private function get_email_body() {\n $message = '<!DOCTYPE html><html><body>';\n $message .= '<p>';\n $message .= 'Thank you for your payment';\n $message .= '<br>';\n $message .= 'Please keep this receipt for your records';\n $message .= '<br>';\n $message .= '<hr>';\n $message .= $this->input->post('firstname'). ' ' . $this->input->post('lastname');\n $message .= '<br>';\n $message .= $this->input->post('cardtype'). ' Ending in ' . substr($this->input->post('creditcard'), -4);\n $message .= '<br>';\n $message .= 'Amount Paid: ' . str_replace( ',', '', $this->get_payment_amount());\n $message .= '<br>';\n $message .= 'Date: ' . date('Y-n-j H:i:s') ;\n $message .= '<hr>';\n $message .= '<br>';\n $message .= '</p>';\n $message .= '</body></html>';\n\n return $message;\n }", "title": "" }, { "docid": "6a0e6cb093520203fd3d1cd7fa5beb70", "score": "0.70933515", "text": "public function getTextBody() {\n return $this->textBody;\n }", "title": "" }, { "docid": "cd17c2038d4355d0c8a656d9db504344", "score": "0.70902073", "text": "protected function getBody(){\r\n return $this->_body;\r\n }", "title": "" }, { "docid": "3d42bea29a6136e57660f8c93fc5d8fb", "score": "0.7082598", "text": "public function getTextBody()\n {\n return $this->_textBody;\n }", "title": "" }, { "docid": "313ec26757825ba590827d61c646c083", "score": "0.7078149", "text": "public function getTextBody()\r\n {\r\n return $this->textBody;\r\n }", "title": "" }, { "docid": "d8ecd46cd51067f9af2e29cf0a4b6882", "score": "0.7067262", "text": "public function getBody($uid) {\n\t\t\t$body = $this->get_part($this->connection, $uid, \"TEXT/HTML\");\n\t\t\t// if HTML body is empty, try getting text body\n\t\t\tif ($body == \"\") {\n\t\t\t\t$body = $this->get_part($this->connection, $uid, \"TEXT/PLAIN\");\n\t\t\t}\n\t\t\treturn $body;\n\t\t}", "title": "" }, { "docid": "8d7e8c9aec0fdb673622dce338bd3baf", "score": "0.7064549", "text": "public function getHtmlBody() {\n $body = $this->get('body') ? : '';\n if (empty($body)) {\n return '';\n }\n\n // transform using the markdown parser\n $parserClass = $this->xpdo->loadClass('markdown.MarkdownParser', dirname(dirname(dirname(__FILE__))) . '/', true, true);\n $parser = new $parserClass();\n $html = $parser->transform($body);\n\n // filter unwanted tags\n $config = HTMLPurifier_Config::createDefault();\n $config->set('Core.Encoding', 'UTF-8'); // replace with your encoding\n $config->set('HTML.Doctype', 'XHTML 1.0 Transitional'); // replace with your doctype\n $config->set('HTML.Allowed', 'a[href|title],img[src|width|height|alt|title],code[class],b,blockquote,del,dd,dl,dt,em,h1,h2,h3,i,kbd,li,ol,p,pre,s,sup,sub,strong,strike,ul,br,hr');\n $purifier = new HTMLPurifier($config);\n $pure_html = $purifier->purify($html);\n\n return $pure_html;\n }", "title": "" }, { "docid": "d2c92c9043de8d6339a500f9deb5c12c", "score": "0.7060986", "text": "public function getResolvedBody()\n\t{\n\t\t$message = '';\n\n\t\tif ($this->hasAttachments()) {\n\t\t\t$message = $this->assembleAttachmentBody();\n\t\t}else{\n\t\t\t$message = $this->getWrapMessage();\n\t\t}\n\n\t\treturn $message;\n\t}", "title": "" }, { "docid": "22a4b90527c74a277192cdb2e366cb98", "score": "0.70301706", "text": "public function body()\n\t{\n\t\treturn $this->body;\n\t}", "title": "" }, { "docid": "5000b718dfc92778da0c91e0651be408", "score": "0.702369", "text": "public function getMessageBody($type = 'text')\n {\n $textBody = $htmlBody = $body = false;\n\n $mime_types = [\n 'text'=> 'text/plain',\n 'text'=> 'text/plain; (error)',\n 'html'=> 'text/html',\n ];\n\n if (in_array($type, array_keys($mime_types))) {\n foreach ($this->parts as $key => $part) {\n if (in_array($this->getPart('content-type', $part), $mime_types)\n && $this->getPart('content-disposition', $part) != 'attachment'\n ) {\n $headers = $this->getPart('headers', $part);\n $encodingType = array_key_exists('content-transfer-encoding', $headers) ? $headers['content-transfer-encoding'] : '';\n\n if ($this->getPart('content-type', $part) == 'text/plain') {\n $textBody .= $this->decodeContentTransfer($this->getPartBody($part), $encodingType);\n $textBody = nl2br($this->charset->decodeCharset($textBody, $this->getPartCharset($part)));\n } elseif ($this->getPart('content-type', $part) == 'text/plain; (error)') {\n $part_from_sender = is_array($part['headers']['from']) ? $part['headers']['from'][0] : $part['headers']['from'];\n $mail_part_addresses = mailparse_rfc822_parse_addresses($part_from_sender);\n\n if (! empty($mail_part_addresses[0]['address'])\n && false !== strrpos($mail_part_addresses[0]['address'], 'pcsms.com')\n ) {\n $last_header = end($headers);\n $partMessage = substr($this->data, strrpos($this->data, $last_header) + strlen($last_header), $part['ending-pos-body']);\n $textBody .= $this->decodeContentTransfer($partMessage, $encodingType);\n $textBody = nl2br($this->charset->decodeCharset($textBody, $this->getPartCharset($part)));\n }\n } elseif ($this->getPart('content-type', $part) == 'multipart/mixed'\n || $this->getPart('content-type', $part) == 'multipart/related'\n ) {\n $emailContent = $this->extractMultipartMIMEText($part, $this->data, $encodingType);\n\n $textBody .= $this->decodeContentTransfer($emailContent, $encodingType);\n $textBody = nl2br($this->charset->decodeCharset($textBody, $this->getPartCharset($part)));\n } else {\n $htmlBody .= $this->decodeContentTransfer($this->getPartBody($part), $encodingType);\n $htmlBody = $this->charset->decodeCharset($htmlBody, $this->getPartCharset($part));\n }\n }\n }\n\n $body = $htmlBody ?: $textBody;\n\n if (is_array($this->files)) {\n foreach ($this->files as $file) {\n if ($file['contentId']) {\n $body = str_replace(\"cid:\".preg_replace('/[<>]/','',$file['contentId']) , $file['path'], $body);\n $path = $file['path'];\n }\n }\n }\n } else {\n throw new \\Exception('Invalid type specified for getMessageBody(). \"type\" can either be text or html.');\n }\n\n return $body;\n }", "title": "" }, { "docid": "3effd9725a92a63f9bc187a31787b986", "score": "0.7022864", "text": "public function getBody(): string;", "title": "" }, { "docid": "862fa4f4cea50a860134aabc3aa877c3", "score": "0.70224226", "text": "function getNotificationBody()\n {\n return $this->body;\n }", "title": "" }, { "docid": "0bf3d24ea0390ec3755bb30d9de12c85", "score": "0.70095235", "text": "public function getHtmlBody() {\n\t\treturn $this->_htmlBody;\n\t}", "title": "" }, { "docid": "46d3864ac39cd7c7c1da116216ffd699", "score": "0.7000741", "text": "public function generateBody()\n {\n return $this->mail->generate();\n }", "title": "" }, { "docid": "14915753bbf8b19673f8b79b93e05b57", "score": "0.6993046", "text": "public function body() {\n\t\t\treturn $this->_body;\n\t\t}", "title": "" }, { "docid": "ff553beb608f40d8ebcbc501cd9c3d0f", "score": "0.6991795", "text": "public function getBodyHTML()\n {\n return $this->bodyhtml;\n }", "title": "" }, { "docid": "f78b33868f6119d90ff2afa2f856c89a", "score": "0.69742984", "text": "public function getHtmlBody()\n {\n return $this->_htmlBody;\n }", "title": "" }, { "docid": "171fae6a2e3e6e2c3feef1e6b64ad7e8", "score": "0.6948029", "text": "function CreateBody() {\n $result = '';\n\n $this->SetWordWrap();\n\n switch($this->message_type) {\n case 'alt':\n $result .= $this->GetBoundary($this->boundary[1], '', 'text/plain', '');\n $result .= $this->EncodeString($this->AltBody, $this->Encoding);\n $result .= $this->LE.$this->LE;\n $result .= $this->GetBoundary($this->boundary[1], '', 'text/html', '');\n $result .= $this->EncodeString($this->Body, $this->Encoding);\n $result .= $this->LE.$this->LE;\n $result .= $this->EndBoundary($this->boundary[1]);\n break;\n case 'plain':\n $result .= $this->EncodeString($this->Body, $this->Encoding);\n break;\n case 'attachments':\n $result .= $this->GetBoundary($this->boundary[1], '', '', '');\n $result .= $this->EncodeString($this->Body, $this->Encoding);\n $result .= $this->LE;\n $result .= $this->AttachAll();\n break;\n case 'alt_attachments':\n $result .= sprintf(\"--%s%s\", $this->boundary[1], $this->LE);\n $result .= sprintf(\"Content-Type: %s;%s\" . \"\\tboundary=\\\"%s\\\"%s\", 'multipart/alternative', $this->LE, $this->boundary[2], $this->LE.$this->LE);\n $result .= $this->GetBoundary($this->boundary[2], '', 'text/plain', '') . $this->LE; // Create text body\n $result .= $this->EncodeString($this->AltBody, $this->Encoding);\n $result .= $this->LE.$this->LE;\n $result .= $this->GetBoundary($this->boundary[2], '', 'text/html', '') . $this->LE; // Create the HTML body\n $result .= $this->EncodeString($this->Body, $this->Encoding);\n $result .= $this->LE.$this->LE;\n $result .= $this->EndBoundary($this->boundary[2]);\n $result .= $this->AttachAll();\n break;\n }\n if($this->IsError()) {\n $result = '';\n }\n\n return $result;\n }", "title": "" }, { "docid": "98e9c74783ffe2ee23ebc507feb39a2c", "score": "0.69360405", "text": "public static function body() {\n\t\tstatic $result = null;\n\t\tif($result === null) {\n\t\t\t$result = file_get_contents(self::REQUEST_BODY_STREAM);\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "accda0485f542446a27b91ea70b063b8", "score": "0.693558", "text": "public function getContentBodyAsString() : string\n {\n return (string) $this->content->getBody();\n }", "title": "" }, { "docid": "c21262afebbec44aa1cf3734b5f23bba", "score": "0.69354516", "text": "public function getHtmlBody()\r\n {\r\n return $this->htmlBody;\r\n }", "title": "" }, { "docid": "611398a1fa73426966549fefcb4059d2", "score": "0.68998855", "text": "public function getBody() {\n\n //ensure there is at least one message part\n $num_parts = count( $this->parts );\n if( $num_parts == 0 ) {\n throw new \\RuntimeException(\n 'No message parts given for message body.'\n );\n }\n\n //line break and header-body separator\n $brk = self::$break;\n $sep = self::$break . self::$break;\n\n //start the message with the top-level boundary marker\n $message = \"--{$this->top}$brk\";\n\n //this message has alternative versions of the content\n if( $num_parts > 1 ) {\n\n //manually set a new Content-Type header and declare an\n // alternative boundary marker\n $message .= \"Content-Type: multipart/alternative;\"\n . \" boundary=\\\"{$this->alt}\\\"$sep\";\n\n //append each message part beginning with the alternative boundary\n // marker\n foreach( $this->parts as $part ) {\n $message .= \"--{$this->alt}$brk\" . strval( $part ) . $sep;\n }\n\n //append the terminating alternative boundary marker\n $message .= \"--{$this->alt}--$sep\";\n }\n\n //this message only has one version of the content\n else {\n\n //append the single message part at the top level\n $message .= strval( $this->parts[ 0 ] ) . $sep;\n }\n\n //add attachments below the message alternatives\n foreach( $this->attachments as $attachment ) {\n\n //append the top-level boundary marker followed by the attachment\n $message .= \"--{$this->top}$brk\" . strval( $attachment ) . $sep;\n }\n\n //append the terminating top-level boundary marker\n $message .= \"--{$this->top}--$sep\";\n\n //return the MIME-formatted message body\n return $message;\n }", "title": "" }, { "docid": "cb468953bc804d2942bf1808cb2beb86", "score": "0.6895405", "text": "public function getHtmlBody() {\n return $this->htmlBody;\n }", "title": "" }, { "docid": "3a727f6508301931792f3cafc62d7506", "score": "0.687598", "text": "public function getBody(){\n \n return $this->body;\n \n }", "title": "" }, { "docid": "c5128e971d3b690f0d75dfa1de05549f", "score": "0.68371385", "text": "public function getRawBody(): string\n {\n if (!isset($this->raw_body)) {\n $this->loadContent();\n }\n\n return $this->raw_body;\n }", "title": "" }, { "docid": "7acf3e59f943dd0738ddad3560cd6d05", "score": "0.68262035", "text": "protected function generate_body()\n\t{\n\t\tif(!$this->is_multi_part && !$this->IsHTML)\n\t\t\treturn $this->Body;\n\n\t\t$body = \"\";\n\t\tif($this->IsHTML && !$this->NoAlt)\n\t\t{\n\t\t\t$body .= \"--\" . $this->mps . EOL;\n\t\t\t$body .= \"Content-Transfer-Encoding: 7bit\".EOL.EOL;\n\t\t\t$body .=$this->AltText.EOL;\n\t\t}\n\t\t\n\t\t$body .= \"--\" . $this->mps . EOL;\n\t\t$main_type = \"\";\n\t\tif($this->IsHTML)\n\t\t{\n\t\t\t$main_type .= \"Content-Type: text/html; charset='iso-8859-1'\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$main_type .= \"Content-Type: text/plain; charset='iso-8859-1'\";\t\n\t\t}\n\t\t$body .= $main_type.EOL;\n\t\t$body .= \"Content-Transfer-Encoding: 8bit\".EOL.EOL;\n\t\t$body .= $this->Body.EOL;\n\n\t\t// do the attachments\n\t\tif($this->attachments != null)\n\t\t{\n\t\t\tforeach ($this->attachments as $value) \n\t\t\t{\n\t\t\t\t$data = $value[\"data\"];\n\t\t\t\t$name = $value[\"name\"];\n\t\t\t\t$type = $value[\"type\"];\n\n\t\t\t\t$body .= \"--\" . $this->mps . EOL;\n\t\t\t\t$body .= \"Content-Type: {$type}; name=\\\"\".$name.\"\\\"\".EOL;\n\t\t\t\t$body .= \"Content-Transfer-Encoding: base64\".EOL;\n\t\t\t\t$body .= \"Content-Disposition: attachment\".EOL.EOL;\n\t\t\t\t$body .= $data.EOL;\n\t\t\t}\n\t\t}\n\t\t$body .= \"--\" . $this->mps . \"--\";\n\t\treturn $body;\n\t}", "title": "" }, { "docid": "0645ab8815f1a6d2384d4816b0fcbf22", "score": "0.6811671", "text": "public function getBody()\n {\n return $this->interpretResponse($this->body);\n }", "title": "" }, { "docid": "59633e5711b31fb5d8eb0229d8188439", "score": "0.6805011", "text": "abstract public function getBody();", "title": "" }, { "docid": "0d518473f3d02e32fda1918a672afc5a", "score": "0.67870665", "text": "public function getBody()\n {\n }", "title": "" }, { "docid": "0d518473f3d02e32fda1918a672afc5a", "score": "0.67870665", "text": "public function getBody()\n {\n }", "title": "" } ]
cb0db63993b4f96c598f5765a15bcea2
view details of leave
[ { "docid": "5c0b7fc5f1fcb8c39b863100cfed8966", "score": "0.6975064", "text": "public function viewRequest($leave_id) \n\t{\n\t\t$this->db->where(\"id\", $leave_id);\n\t\t$query=$this->db->get('leave');\n\t\treturn $query->result();\t\t\n\t}", "title": "" } ]
[ { "docid": "21a390ab825cbcabf8c4a95d26a95e37", "score": "0.8421501", "text": "public function leavedetails(){\n\t\t\n\t\treturn view('leaves.leave_details');\n\t}", "title": "" }, { "docid": "8f6ddf63c288236b50b75bdf3336b0d0", "score": "0.8254925", "text": "public function leaveInfo(){\n\t\t\n\t\treturn view('leaves.leaveInfo');\n\t}", "title": "" }, { "docid": "5dcef7bccdc20c0d79ad835c6299883d", "score": "0.7869181", "text": "public function showLeaveDetails(){\n\t\t\n\t\t$user=Auth::user();\n\t\t// print_r($user['employee_id']); die();\t\n\t\t$data=Leave::where('employee_id',$user['employee_id'])->get();\n\t\t\n\t\t// print_r($data);die();\n\t\treturn view('leaves.leaveInfo')->with('leaveData',$data);\n\t}", "title": "" }, { "docid": "1512fe70b4b33721fec0eb216b2125b4", "score": "0.77906024", "text": "public function getLeaveDetails(){\n\t\t\n\t\t$data=Leave::all();\n\t\t// print_r($data);die();\t\n\t\treturn view('leaves.leave_details')->with('leaveData',$data);\n\t}", "title": "" }, { "docid": "de9a365ce2e961aa2e14b314a68174a3", "score": "0.77487844", "text": "public function show(Leave $leave)\n {\n //\n }", "title": "" }, { "docid": "de9a365ce2e961aa2e14b314a68174a3", "score": "0.77487844", "text": "public function show(Leave $leave)\n {\n //\n }", "title": "" }, { "docid": "5e6156086970fc3f4764a129f496c816", "score": "0.7571036", "text": "public function show(leave $leave)\n {\n //\n }", "title": "" }, { "docid": "eb839676f8628f2e7b8f3c648e967d3b", "score": "0.7188839", "text": "public function leave(){\n \t\n \treturn view('leaves.leave_request');\n\n }", "title": "" }, { "docid": "5d3aafcf2d2e98eb93107082d834e298", "score": "0.7180429", "text": "public function show(LeaveRequest $leaveRequest)\n {\n //\n }", "title": "" }, { "docid": "4bc19d921c02e00d1ad5d02437ec9676", "score": "0.71665114", "text": "public function leave_history(){\n $sainik_no = Auth::user()->sainik_no;\n $leave_list = DB::table('leave_history')\n ->join('users', 'users.sainik_no', '=', 'leave_history.snk_no')\n ->join('leave_type', 'leave_type.id', '=', 'leave_history.leave_no')\n ->select('leave_history.*','leave_history.is_approve as approve','leave_history.id as leave_id', 'users.name as username','users.sainik_no','users.id', 'leave_type.*')\n ->where('is_read',1)\n ->where('sainik_no',$sainik_no)\n ->get();\n return view('user.user_leave_history',compact('leave_list','leave_list'));\n }", "title": "" }, { "docid": "ed2aa933126044f804c66182b802f2bc", "score": "0.7112385", "text": "public function index()\n {\n $leaves = Leave::where('user_id', Auth::id())->get();\n $types = LeaveType::all();\n return view('manager.request_leave.index', compact('leaves', 'types'));\n }", "title": "" }, { "docid": "34217f844dbc6ea52970e045d8130b76", "score": "0.70494384", "text": "public function index()\n {\n if (Auth::user()->role_id == 1) {\n $leaves = Leave::all();\n return view('leave.index', compact('leaves'));\n }\n $leaves = Leave::where('user_id', Auth::user()->id)->get();\n return view('leave.index', compact('leaves'));\n }", "title": "" }, { "docid": "4fbb2deda2707373bfae5c4376baf87e", "score": "0.6904728", "text": "public function index()\n\t{\n\t\t$organization_id = Session::get('organization_id');\n\n\t\t$user = User::find(Auth::user()->id);\n\n\t\t$person_id = Auth::user()->person_id;\t\t\n\n\t\t$employee_id = HrmEmployee::where('organization_id', $organization_id)\n\t\t->where('person_id',$person_id)->first()->id;\n\t\t\n\n\t\t$query = HrmLeave::select('hrm_leaves.*','hrm_leaves.employee_id','hrm_employees.first_name AS employee_name','hrm_leave_types.id AS leave_type_id','hrm_leave_types.name AS leave_type_name');\n\t\t$query->leftjoin('hrm_employees','hrm_leaves.employee_id','=','hrm_employees.id');\n\t\t$query->leftjoin('hrm_leave_types','hrm_leaves.leave_type_id','=','hrm_leave_types.id');\n\t\t$query->where('hrm_leaves.organization_id', $organization_id);\n\t\t\n\t\tif(!$user->can('leave-approval')){\n\n\t\t\t$query->where('hrm_leaves.employee_id',$employee_id);\n\t\t}\n\n\t\t$leaves = $query->get();\n\n\t\treturn view('hrm.leaves',compact('leaves'));\n\t}", "title": "" }, { "docid": "baa199c8e8445cd80345b9fd1bf3ef70", "score": "0.68947315", "text": "public function edit(leave $leave)\n {\n //\n }", "title": "" }, { "docid": "47107a373852fcfa5df0d1fcb561c5e7", "score": "0.6879723", "text": "public function show($id)\n {\n \n $reg = Leave::find($id);\n\n \n //dd($reg);\n return view('personnel.leave4', compact('reg','id'));\n \n }", "title": "" }, { "docid": "b30782d8ffd0ce4c42fe1e58dd5bad2c", "score": "0.6858306", "text": "public function edit(Leave $leave)\n {\n //\n }", "title": "" }, { "docid": "b30782d8ffd0ce4c42fe1e58dd5bad2c", "score": "0.6858306", "text": "public function edit(Leave $leave)\n {\n //\n }", "title": "" }, { "docid": "b30782d8ffd0ce4c42fe1e58dd5bad2c", "score": "0.6858306", "text": "public function edit(Leave $leave)\n {\n //\n }", "title": "" }, { "docid": "bf23561c00b931d93955f5e3cde8dbea", "score": "0.6819825", "text": "public function show(Leave $leaf)\n {\n\n }", "title": "" }, { "docid": "c1324a1a527a48b5e73303f7b14f806b", "score": "0.6797983", "text": "public function index()\n { \n $leaves = Leave::with('users')\n ->where('status',2)->take(5)\n ->orderBy('updated_at', 'desc')\n ->get();\n return view('approval.approval', compact('leaves'));\n }", "title": "" }, { "docid": "793ef45654db493602792b79bcdd126a", "score": "0.67305005", "text": "public function yourLeaveList()\n\t{\n\t\t\n\t\tif(session('role') == 'Admin' || session('role') == 'HR' || session('role') == 'Manager') {\n\t\t\t$data = [\n\t\t\t\t'yourLeaveData' => $this->yourLeaveRequest->managerGetAll(),\n\t\t\t\t\n\t\t\t];\n\t\t}else {\n\t\t\t$data = [\n\t\t\t\t'yourLeaveData' => $this->yourLeaveRequest->getAllYourLeave(),\n\t\t\t];\n\t\t}\n\t\tif(!session()->get('isLoggedIn')){\t\n\t\tredirect()->to(base_url('/'));\n\t}\n\n\treturn view('your_leaves/your_leaves', $data);\t \n\n\t}", "title": "" }, { "docid": "15088bec5908089903cfc276186a5f5d", "score": "0.6721561", "text": "public function index()\n {\n $data = SetupLeave::where('company_id', session()->get('company_id'))->get();\n return view('setup.leave', compact('data'));\n }", "title": "" }, { "docid": "12fdaa930e451137711a2df47befdb61", "score": "0.66877854", "text": "public function index()\n {\n //\n if(Auth::user()->role == \"HOD\"){\n $department_id = Auth::user()->department_id;\n $department = Department::find($department_id);\n $leave = DB::table('leaves')->where('department_id', $department_id)->get();\n $users = $department->user()->get();\n\n return view('leave.index', compact('users', 'leave'));\n }\n elseif(Auth::user()->role == \"deputy registrar\" || Auth::user()->role == 'finance officer'){\n $departments = Department::all();\n $users = User::all();\n $leave = Leave::all();\n \n return view('leave.index', compact( 'users' , 'leave', 'departments'));\n\n }\n else{\n $leave = Auth::user()->leave()->get();\n\n return view('leave.index' , compact('leave'));\n }\n }", "title": "" }, { "docid": "a8c012fc46f56f225e2748c67bacd2bf", "score": "0.6633818", "text": "public function leave_history(Request $request,$id){\n $stud = Leave::where('employee_id',$id)->get();\n // $stud=DB::table('leaves')\n // ->where('employee_id',$id)\n // ->get();\n return response([ 'data' => $stud], 200);\n }", "title": "" }, { "docid": "3073576c72cbb221a1ed419518d90c2a", "score": "0.6624036", "text": "public function show(LeaveApply $leaveApply)\n {\n //\n }", "title": "" }, { "docid": "06dda99aee8efbf25f1337268130b7d5", "score": "0.65709156", "text": "public function index()\n {\n $leaves = Leave::whereDate('to', '>=', Carbon::today()->toDateString())->paginate(15);\n return view('leaves.index', compact('leaves'));\n }", "title": "" }, { "docid": "018d2788933cbc83f07ec6926d2df83e", "score": "0.65686893", "text": "public function index()\n {\n $type = leaveType::orderBy('id', 'desc')->get();\n return view('Admin.LeaveType.view', compact('type'));\n }", "title": "" }, { "docid": "843584a42729f6331dae77d9dc2fc4c1", "score": "0.6490115", "text": "public function show($id)\n {\n $leave = Leave::find($id);\n $leave->user = User::find($leave->id_user);\n $leave->approvedBy = User::find($leave->approvedBy);\n $leave->department = Departement::find($leave->id_department);\n\n $data = [\n 'leave' => $leave,\n ];\n return view('leave.show', $data);\n }", "title": "" }, { "docid": "a7396e0b18f37678499c291f1d6f84e8", "score": "0.64299875", "text": "public function show($id)\n {\n //\n $leave = Leave::find($id);\n $userid = $leave->user_id;\n $user = User::find($userid);\n $department_id = $leave->department_id;\n $department = Department::find($department_id);\n\n return view('leave.show' , compact('leave', 'user', 'department'));\n }", "title": "" }, { "docid": "a87c7f82bb51165271af095dc088e077", "score": "0.64050406", "text": "public function create()\n {\n $leaves = Leave::all();\n return view('leave-mgt.create', compact('leaves'));\n }", "title": "" }, { "docid": "1cc6e1950a07f380e37f5de1385e8af7", "score": "0.6315182", "text": "public function getIndex()\n\t{\n\t\tif(Auth::user()->role->name==\"employee\")\n\t\t{\n\t\t\treturn Redirect::to('dashboard');\n\t\t}\n\t\t$leave_request=Leave::where('read_unread','=',0)->where('approval','pending')->orderBy('leave_application_date', 'desc')->paginate(10);\n\t\treturn view('leave.show_all_leave_request')->with('leave_request',$leave_request);\n\t\t\n\t}", "title": "" }, { "docid": "6f586206d65f015dec9b66e0f1da465b", "score": "0.6302546", "text": "public function leaveReportDetails(Request $request)\n {\n // --\n // Check role/permission\n if (!AdminHelper::can_action(51, 'view')) {\n return response()->json(\"Access denied\", 403);\n }\n\n return $this->leaveRepo->leaveReportDetails($request);\n }", "title": "" }, { "docid": "23f3d8cbc7ae3f3a5b1ae9e6f5339d11", "score": "0.6280317", "text": "function showUserLeaveHistory($id)\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('leave');\n\t\t$this->db->where('id', $id);\n\t\t$query = $this->db->get();\n\t\t$result = $query->result();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "e2933ef1ab17d43262e3844f26f19373", "score": "0.62656504", "text": "public function show()\n {\n\n $all_leaves = DB::table('leaves')\n ->select('*')\n ->join('staff', 'staff.staff_id', 'leaves.leave_staff_id')\n ->get();\n\n return view('leaves', [\n 'leaves' => $all_leaves\n ]);\n }", "title": "" }, { "docid": "f28b3c6b4e45986a7c5b5b126103088c", "score": "0.62346345", "text": "public function index()\n {\n if(\\Auth::user()->can('Manage Leave Requests'))\n {\n $leave_requests = LeaveRequest::where('created_by', '=', \\Auth::user()->creatorId())->get();\n $pendingstatues = LeaveRequest::where('created_by', '=', \\Auth::user()->creatorId())->where('status','Pending')->get()->count();\n $approvestatues = LeaveRequest::where('created_by', '=', \\Auth::user()->creatorId())->where('status','Approve')->get()->count();\n $rejectstatues = LeaveRequest::where('created_by', '=', \\Auth::user()->creatorId())->where('status','Reject')->get()->count();\n return view('hr.leave_management.leave_request.index',compact('pendingstatues','approvestatues','rejectstatues','leave_requests'));\n }\n else\n {\n return redirect()->back()->with('errors', __('Permission denied.'));\n }\n }", "title": "" }, { "docid": "e6bf5f2ea23dbaf570f02bc5b472f2d4", "score": "0.6205698", "text": "function events_detail(){\r\n\r\n return view('index/Events_detail');\r\n\r\n }", "title": "" }, { "docid": "825418132e943df295a0893115b21d05", "score": "0.6202287", "text": "public function leaving_edit(Request $request) {\n\n $log = new LogSystem;\n $log->module_id = 19;\n $log->activity_type_id = 3;\n $log->description = \"Popup kemaskini Borang (LU) L - Butiran Pegawai Yang Meninggalkan Jawatan\";\n $log->url = $request->fullUrl();\n $log->method = strtoupper($request->method());\n $log->ip_address = $request->ip();\n $log->created_by_user_id = auth()->id();\n $log->save();\n\n $leaving_officer = FormLLeaving::where('officer_id', $request->leaving_id)->firstOrFail();\n $formlu = FormL::findOrFail($request->id);\n $officers = $formlu->tenure->officers;\n\n return view('change-officer.lu.forml.tab2.edit', compact('leaving_officer', 'formlu','officers'));\n }", "title": "" }, { "docid": "229ad5dd75d47bb7d4d3af0d58576c1c", "score": "0.6160454", "text": "public function index(Request $request)\n {\n $buildLeaves = Leave::where('id', '>', 0);\n\n if ($request->nameAuto == null && $request->surname != null)\n return redirect()->back()->withInput()->with('danger', 'Both name and surname must be entered');\n\n if ($request->surname == null && $request->nameAuto != null)\n return redirect()->back()->withInput()->with('danger', 'Both name and surname must be entered');\n\n $employee = Employee::where('name', '=', $request->nameAuto)\n ->where('surname', '=', $request->surname)->first();\n\n if($employee) {\n if ($request->leaveType_id != null)\n $buildLeaves = $buildLeaves->where('leaveType_id', '=', $request->leaveType_id)\n ->where('employee_id', '=', $employee->id);\n else\n $buildLeaves = $buildLeaves->where('employee_id', '=', $employee->id);\n } else {\n if ($request->leaveType_id != null)\n $buildLeaves = $buildLeaves->where('leaveType_id', '=', $request->leaveType_id);\n }\n $leaves = $buildLeaves->get();\n\n $leaveSummaries = array();\n foreach ($leaves as $leave)\n {\n $LeaveSummary = new LeaveSummary();\n $LeaveSummary->leaveId = $leave->id;\n $employee = Employee::find($leave->employee_id);\n $LeaveSummary->employeeNo = $employee->employee_no;\n $LeaveSummary->employeeSurname = $employee->surname;\n $LeaveSummary->employeeName = $employee->name;\n $LeaveSummary->leaveStart = $leave->start_date;\n $LeaveSummary->leaveEnd = $leave->end_date;\n\n $date1 = new Carbon($leave->start_date);\n $date2 = new Carbon($leave->end_date);\n $interval = $date1->diffInWeekdays($date2);\n $days = ++$interval;\n $LeaveSummary->duration = $days;\n\n $type = LeaveType::find($leave->leaveType_id);\n $LeaveSummary->leaveType = $type->type;\n if ($leave->approved == 'Y')\n $LeaveSummary->leaveStatus = 'Approved';\n elseif ($leave->approved == 'N')\n $LeaveSummary->leaveStatus = 'Pending';\n else\n $LeaveSummary->leaveStatus = 'Cancelled';\n array_push($leaveSummaries, $LeaveSummary);\n }\n return view('reports.leaveSummary', compact('leaveSummaries'));\n }", "title": "" }, { "docid": "13df16f67e949c228adb0b90f8e7ece4", "score": "0.61558795", "text": "public function create()\n {\n return view('leave.create');\n }", "title": "" }, { "docid": "13df16f67e949c228adb0b90f8e7ece4", "score": "0.61558795", "text": "public function create()\n {\n return view('leave.create');\n }", "title": "" }, { "docid": "df6e67373688a59c8e26af06984ec575", "score": "0.6155076", "text": "public function getAllLeave(Request $request)\n {\n // --\n // Check role/permission\n if (!AdminHelper::can_action(102, 'view')) {\n return response()->json(\"Access denied\", 403);\n }\n\n return $this->leaveRepo->getAllLeave($request);\n }", "title": "" }, { "docid": "2280a3d7a5034dfea31ab9de193f0d6a", "score": "0.612635", "text": "public function create()\n {\n //\n return view('leave.create');\n }", "title": "" }, { "docid": "bca72807d97d8770fe554c0ed62f4559", "score": "0.61245286", "text": "public function edit(LeaveRequest $leaveRequest)\n {\n //\n }", "title": "" }, { "docid": "547d31369ff647e7a0d29028097e698f", "score": "0.61211973", "text": "public function index()\n {\n if (Auth::user()->role == 1) {\n $leave = Leave::orderBy('updated_at', 'desc')->where('delete', 0)->get();\n $leave->map(function ($item) {\n $item->user = User::find($item->id_user);\n $item->department = Departement::find($item->id_department);\n return $item;\n });\n\n $pending = $leave->where('approve', 0)->where('date','>=', \\Carbon\\Carbon::now()->format('d/m/Y'))->take(100);\n $pendingCount = $leave->where('approve', 0)->where('date','>=', \\Carbon\\Carbon::now()->format('d/m/Y'))->count();\n $approved = $leave->where('approve', 1)->take(200);\n $approvedCount = $leave->where('approve', 1)->count();\n $canceled = $leave->where('approve', 2)->take(100);\n $canceledCount = $leave->where('approve', 2)->count();\n $expired = $leave->where('approve', 0)->where('date','<', \\Carbon\\Carbon::now()->format('d/m/Y'))->take(100);\n $expiredCount = $leave->where('approve', 0)->where('date','<', \\Carbon\\Carbon::now()->format('d/m/Y'))->count();\n $approval = User::orderBy('username', 'desc')->where('role', 2)->where('delete', 0)->where('id_department', Auth::user()->id_department)->first();\n \n $data = [\n 'leave' => $leave,\n 'pendingCount' => $pendingCount,\n 'approvedCount' => $approvedCount,\n 'canceledCount' => $canceledCount,\n 'expiredCount' => $expiredCount,\n 'pending' => $pending,\n 'approved' => $approved,\n 'canceled' => $canceled,\n 'expired' => $expired,\n 'approval' => $approval,\n ];\n return view('leave.index', $data);\n } else if (Auth::user()->role == 2) {\n $leave = Leave::orderBy('updated_at', 'desc')->where('delete', 0)->where('id_department', Auth::user()->id_department)->take(100)->get();\n $leave->map(function ($item) {\n $item->user = User::find($item->id_user);\n $item->department = Departement::find($item->id_department);\n return $item;\n });\n\n $pending = $leave->where('approve', 0)->where('date','>=', \\Carbon\\Carbon::now()->format('d/m/Y'))->take(100);\n $pendingCount = $leave->where('approve', 0)->where('date','>=', \\Carbon\\Carbon::now()->format('d/m/Y'))->count();\n $approved = $leave->where('approve', 1)->take(100);\n $approvedCount = $leave->where('approve', 1)->count();\n $canceled = $leave->where('approve', 2)->take(100);\n $canceledCount = $leave->where('approve', 2)->count();\n $expired = $leave->where('approve', 0)->where('date','<', \\Carbon\\Carbon::now()->format('d/m/Y'))->take(100);\n $expiredCount = $leave->where('approve', 0)->where('date','<', \\Carbon\\Carbon::now()->format('d/m/Y'))->count();\n $approval = User::orderBy('username', 'desc')->where('role', 2)->where('delete', 0)->where('id_department', Auth::user()->id_department)->first();\n \n $data = [\n 'leave' => $leave,\n 'pendingCount' => $pendingCount,\n 'approvedCount' => $approvedCount,\n 'canceledCount' => $canceledCount,\n 'expiredCount' => $expiredCount,\n 'pending' => $pending,\n 'approved' => $approved,\n 'canceled' => $canceled,\n 'expired' => $expired,\n 'approval' => $approval,\n ];\n return view('leave.index', $data);\n } else {\n $leave = Leave::orderBy('updated_at', 'desc')->where('delete', 0)->where('id_user', Auth::user()->id)->take(100)->get();\n $leave->map(function ($item) {\n $item->user = User::find($item->id_user);\n $item->department = Departement::find($item->id_department);\n return $item;\n });\n\n $pending = $leave->where('approve', 0)->where('date','>=', \\Carbon\\Carbon::now()->format('d/m/Y'))->take(100);\n $pendingCount = $leave->where('approve', 0)->where('date','>=', \\Carbon\\Carbon::now()->format('d/m/Y'))->count();\n $approved = $leave->where('approve', 1)->take(100);\n $approvedCount = $leave->where('approve', 1)->count();\n $canceled = $leave->where('approve', 2)->take(100);\n $canceledCount = $leave->where('approve', 2)->count();\n $expired = $leave->where('approve', 0)->where('date','<', \\Carbon\\Carbon::now()->format('d/m/Y'))->take(100);\n $expiredCount = $leave->where('approve', 0)->where('date','<', \\Carbon\\Carbon::now()->format('d/m/Y'))->count();\n $approval = User::orderBy('username', 'desc')->where('role', 2)->where('delete', 0)->where('id_department', Auth::user()->id_department)->first();\n\n $data = [\n 'leave' => $leave,\n 'pendingCount' => $pendingCount,\n 'approvedCount' => $approvedCount,\n 'canceledCount' => $canceledCount,\n 'expiredCount' => $expiredCount,\n 'pending' => $pending,\n 'approved' => $approved,\n 'canceled' => $canceled,\n 'expired' => $expired,\n 'approval' => $approval,\n ];\n return view('leave.index', $data);\n } \n }", "title": "" }, { "docid": "43187b3065bcb637836e63ff492e46a4", "score": "0.60898256", "text": "public function edit($id)\n {\n \n $all_leaves = Leave::findOrfail($id);\n\n $from = date('d/m/Y');\n $to = $all_leaves -> leave_to;\n $start_date = \\Carbon\\Carbon::createFromFormat('d/m/Y', $from);\n $end_date = \\Carbon\\Carbon::createFromFormat('d/m/Y', $to);\n $different_days = $start_date->diffInDays($end_date);\n\n $all_leaves = Leave::findOrfail($id);\n return view('update-leave', [\n 'leaves' => $all_leaves,\n 'date_remain' => $different_days\n ]);\n }", "title": "" }, { "docid": "ef6903cd9318c9f48d1a9a2fe10348fa", "score": "0.6073589", "text": "public function show($id)\n {\n // --\n // Check role/permission\n if (!AdminHelper::can_action(102, 'view')) {\n return response()->json(\"Access denied\", 403);\n }\n\n return $this->leaveRepo->findById($id);\n }", "title": "" }, { "docid": "1d25228ed9f5521b495fe0a5386bf30c", "score": "0.60724914", "text": "function edit_leave(){\n\t\tif($this->session->userdata('userType') != '1' && $this->session->userdata('userID') != \"\"){\n\t\t\t$data['page_title'] = SITE_TITLE;\n\t $data['page_name'] = \"Leave Apply\";\n\t $data['page_slug'] = 'leave-apply'; \n\t $data['pageCSS']\t\t\t= array('css/lib/clockpicker/bootstrap-clockpicker.min.css');\n\t $data['pageJS']\t\t\t\t= array('js/lib/daterangepicker/daterangepicker.js','js/lib/bootstrap-select/bootstrap-select.min.js','js/angular.min.js','js/controller/employee.js');\n\n\t $data['initJsFunc']\t= array(\"$('#leavestartdate').daterangepicker({singleDatePicker: true,showDropdowns: true,minDate: '\".date('m/d/Y').\"'});\",\"$('#leaveenddate').daterangepicker({singleDatePicker: true,showDropdowns: true,minDate: '\".date('m/d/Y').\"'});\");\n\t $this->load->view('admin/common/header.php',$data); \n\t $this->load->view('admin/common/topheader.php',$data);\n\t $this->load->view('admin/common/sidebarMenu.php',$data); \n\t $this->load->view('admin/employee/edit_leave',$data); \n\t $this->load->view('admin/common/footer.php',$data);\n\n\t\t} else {\n\t\t\techo ACCESS_DENIED;\n\t\t}\n\t}", "title": "" }, { "docid": "b3c8fc08d512fa6fc812abf7f2d50b5a", "score": "0.6069439", "text": "public function showDetail(){}", "title": "" }, { "docid": "0fbf7f4bed8bab10a731e5a86704e498", "score": "0.60593766", "text": "public function edit($id)\n {\n $leave = Leave::find($id);\n $leave->user = User::find($leave->id_user);\n $leave->department = Departement::find($leave->id_department);\n\n $data = [\n 'leave' => $leave,\n ];\n return view('leave.edit', $data);\n }", "title": "" }, { "docid": "6e76b211ec3deb378b4bdc36de455aa3", "score": "0.603223", "text": "public function blocked_leave_dates()\n\t{\n\t\t$this->data['leave_list'] = $this->transaction_employees_model->blocked_leave_dates();\n\t\t$this->load->view('app/transaction/blocked_leave_dates',$this->data);\t\n\t}", "title": "" }, { "docid": "c1572bbd4af235e75db3215da5474353", "score": "0.6026666", "text": "public function index()\n {\n $start = \"\";\n $end = \"\";\n $atten = DB::table('attendances')\n ->join('users', 'users.id', '=', 'attendances.user_id')\n ->paginate(15);\n\n $data = AddLeave::all()->where('status',0)->COUNT('status');\n return view('report.atten',compact('data','atten','start','end'));\n }", "title": "" }, { "docid": "0c82a7223a9cb88580cd6ba9ac6b86ca", "score": "0.6022051", "text": "public function create()\n {\n $leave_type = leave_type::get();\n return view('users.leaves.create',compact('leave_type'));\n }", "title": "" }, { "docid": "35b63eca70bf16299a7b99818b2f9a30", "score": "0.6013317", "text": "public function showRequests()\n\t{\n\t\t$query = $this->db->get(\"leave\");\n\t\treturn $query->result();\n\t}", "title": "" }, { "docid": "b31115bf59c29a9aeb976ec0f2f82280", "score": "0.6010758", "text": "function showData()\n\t{\n\t\t$query = $this->db->get('leave');\n\t\t$query_result = $query->result();\n\t\treturn $query_result;\n\t}", "title": "" }, { "docid": "ccb218c30b40f153d5e18d2c3c7b5247", "score": "0.5998713", "text": "public function detail(Request $request)\n {\n $sth = leaves::where('user_id','=',Auth::user()->id);\n \n if($request->search ){\n $leaves = $sth->orderby('created_at', 'desc')->get();\n $leaves2 = leaves::findOrFail($request->search);\n\n return view('users.leaves.detail',compact('leaves','leaves2'));\n }\n else\n {\n $leaves = $sth->orderby('created_at', 'desc')->get();\n return view('users.leaves.detail',compact('leaves'));\n }\n \n }", "title": "" }, { "docid": "d8e6bdd6cf14d81204317637495eb5d0", "score": "0.59961236", "text": "public function index()\n {\n //get client detail info\n $clientDetails = ClientDetails::all();\n\n return view('leave_behind.view', ['clientDetails' => $clientDetails]);\n }", "title": "" }, { "docid": "70ecc370beb21724f1be0cc04c70c955", "score": "0.5943703", "text": "private function fetch_leaves() {\n\n try {\n\n $result = Model_Leave::find(\"all\", array(\n \"order_by\" => array(\"date_filed\" => \"desc\")\n ));\n\n return $result;\n\n }catch (Exception $e) {\n return $e->getMessage();\n }\n\n }", "title": "" }, { "docid": "9e7d4202149eb04fa9b3eb5cb3cf5334", "score": "0.5926452", "text": "public function leave_apply(){\n $snk_no = Auth::user()->sainik_no;\n\n /*Take Leave list*/\n $leave_list = Leave::all();\n\n /*$leave_taken hold those rows which leaves are taken*/\n $leave_taken = DB::table('leave_history')\n ->join('leave_type', 'leave_type.id', '=', 'leave_history.leave_no','RIGHT')\n ->select('leave_type.id','leave_type.name','leave_type.limit',DB::raw(\"SUM(DATEDIFF(leave_history.leave_till,leave_history.leave_from)) as take\"))\n ->groupBy('leave_type.id')\n ->where('leave_history.snk_no',$snk_no)\n ->where('leave_history.is_approve' , 1)\n ->whereBetween('leave_history.leave_from', array(DB::raw(DATE_FORMAT(Carbon::now(),'Y-01-01')), DB::raw(DATE_FORMAT(Carbon::now(),'Y-12-31'))))\n ->get();\n\n /*$leave_not_taken hold those rows which leaves are not taken*/\n $leave_not_taken = DB::table('leave_type')->whereNotIn('id', function($q){\n $q->select('leave_type.id')\n ->join('leave_history', 'leave_type.id', '=', 'leave_history.leave_no','from leave_type left')\n ->groupBy('leave_type.id')\n ->where('leave_history.snk_no',Auth::user()->sainik_no)\n ->where('leave_history.is_approve' , 1)\n ->whereBetween('leave_history.leave_from', array(DB::raw(DATE_FORMAT(Carbon::now(),'Y-01-01')), DB::raw(DATE_FORMAT(Carbon::now(),'Y-12-31'))))\n ->get();\n })->get();\n\n /*$leave_taken and $leave_not_taken both are hold the leave status*/\n\n return view('user.leave_form')->with('leave_not_taken',$leave_not_taken)->with('leave_list',$leave_list)->with('leave_taken',$leave_taken);\n }", "title": "" }, { "docid": "b8f0880736cea9e4d656fb2aac5b960b", "score": "0.5914782", "text": "public function viewdetailsAction()\n {\n \n }", "title": "" }, { "docid": "464887585eee892756df2c80a90769d4", "score": "0.58892745", "text": "public function index()\n {\n $logged_emp_company_id = MenuPageController::loggedUser('company_id');\n $company=Company::all();\n $leave_policies=LeavePolicy::where('company_id',$logged_emp_company_id);\n $leave_user_data=LeaveAssignedYearlyData::where('company_id',$logged_emp_company_id);\n $employee=EmployeeInfo::all();\n $year=Year::where('company_id',$logged_emp_company_id);\n\n\n //$logged_emp_company_id = '';\n return view('module.settings.leaveUserDataList',['company'=>$company,'leave_policies'=>$leave_policies,'leave_user_data'=>$leave_user_data,'employee'=>$employee,'year'=>$year, 'logged_emp_com' => $logged_emp_company_id]);\n }", "title": "" }, { "docid": "81f8ee7813a4a58208fbf4b7f02fc977", "score": "0.5886114", "text": "public function show(LeaveEmailTemplateType $leaveEmailTemplateType)\n {\n //\n }", "title": "" }, { "docid": "dfed757edc1f9a9fe84c37babd1c85c4", "score": "0.58464974", "text": "public function detail_event($id)\n {\n $show = Event::where('id',$id)->get();\n return view('detail_event', ['show' => $show]);\n }", "title": "" }, { "docid": "511cea1879e2bd127a6df5b01a967e1d", "score": "0.5842559", "text": "public function show(Expediente $expediente)\n {\n //\n }", "title": "" }, { "docid": "5bef8c2af86f1b751b147bdbb2b8200a", "score": "0.5821744", "text": "public function getLeavesForReport(Request $request)\n {\n // --\n // Check role/permission\n if (!AdminHelper::can_action(51, 'view')) {\n return response()->json(\"Access denied\", 403);\n }\n\n return $this->leaveRepo->getLeavesForReport($request);\n }", "title": "" }, { "docid": "4a6c0a3ae42a5f95378fc11471fa84f0", "score": "0.58176607", "text": "public function viewAgentDetailsAction() {\n $adminModel = Admin_Model_Users::getInstance();\n $result = $adminModel->getAdminDetails(); // showing image\n if ($result) {\n $this->view->admindetails = $result;\n }\n $agentsModel = Admin_Model_Agents::getInstance();\n $agentid = $this->getRequest()->getParam('agentid');\n $agentdetails = $agentsModel->getAgentsDetailsByAgentID($agentid);\n if ($agentdetails) {\n $this->view->agentdetails = $agentdetails;\n }\n }", "title": "" }, { "docid": "372e3a659a0832e8758ca6072ebfd3de", "score": "0.5815973", "text": "public function detail(){\n\t\t\t$record = $this->modelGetRecord();\n\t\t\t$this->loadView(\"ViewDetail.php\",array(\"record\"=>$record));\n\t\t}", "title": "" }, { "docid": "ecd91199dd9d21bfd674c3f6ad0dbf0c", "score": "0.5815608", "text": "public function show(employe $employe)\n {\n //\n }", "title": "" }, { "docid": "f078d1511a0c14d43530d75b531ed39f", "score": "0.5813402", "text": "function log_view_detail()\n\t{\n\t\t//-----------------------------------------\n\t\t// INIT\n\t\t//-----------------------------------------\n\t\t\n\t\t$api_log_id = intval( $this->ipsclass->input['api_log_id'] );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Get data from the deebee\n\t\t//-----------------------------------------\n\t\t\n\t\t$log = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t 'from' => 'api_log',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t 'where' => 'api_log_id='.$api_log_id ) );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tif ( ! $log['api_log_id'] )\n\t\t{\n\t\t\t$this->ipsclass->main_msg = \"No log for that ID found\";\n\t\t\t$this->log_list();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Display...\n\t\t//-----------------------------------------\n\t\t\n\t\t$log['_api_log_date'] \t\t= $this->ipsclass->get_date( $log['api_log_date'], 'LONG' );\n\t\t$log['_api_log_allowed'] = $log['api_log_allowed'] ? 'aff_tick.png' : 'aff_cross.png';\n\t\t$log['_api_log_query'] = htmlspecialchars( $log['api_log_query'] );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Show...\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->ipsclass->html .= $this->html->api_log_detail( $log );\n\t\t\n\t\t$this->ipsclass->admin->print_popup();\n\t}", "title": "" }, { "docid": "a4ad28918c6a9e6a0e4f46c391c73a4c", "score": "0.58083004", "text": "public function index()\n {\n $datas['details'] = $details = $this->model->latest()->get();\n return view('employer::admin.list', $datas);\n }", "title": "" }, { "docid": "bfcdd916784779035eece77f8c9ec3dd", "score": "0.5791744", "text": "public function show(Estate $estate)\n {\n //\n }", "title": "" }, { "docid": "5ab2c4ef4e1afbedd1a50e8d9da28ece", "score": "0.5786508", "text": "function detailWines(){\n $this->authHelper->checkLoggedIn();\n $wines= $this->model->GetWines();\n\n $this->view->ShowDetailWines($wines);\n }", "title": "" }, { "docid": "de7154be21101584768792389d8b8057", "score": "0.5785257", "text": "public function edit($id)\n\t{\n\t\t$organization_id = Session::get('organization_id');\n\t\t$leaves_type = HrmLeaveType::where('organization_id',$organization_id)->pluck('name','id');\n\t\t$leaves_type->prepend(\"Select Leave Type\", \"\");\n\n\t\t$leaves = HrmLeave::where('organization_id',$organization_id)->where('id', $id)->first();\n\n\t\t//return $leave_types;\n\n\t\tif(!$leaves) abort(403);\n\n\t\treturn view('hrm.leaves_edit',compact('leaves','leaves_type'));\n\t}", "title": "" }, { "docid": "0702c0d5ba040a45b157511e1d24e477", "score": "0.57748556", "text": "public function leaveDashboard()\n {\n $query = $this->db\n ->select('\n pegawai.nama_awal,\n pegawai.nama_akhir,\n typecuti.nama_type,\n cuti.tanggal_cuti,\n cuti.sampai_tanggal,\n ')\n ->join('pegawai', 'pegawai.id=cuti.id_pegawai')\n ->join('typecuti', 'typecuti.id=cuti.id_type')\n ->order_by('cuti.id', 'desc')\n ->limit(5)\n ->get('cuti')->result();\n return $query;\n }", "title": "" }, { "docid": "a72fe7a58c7990e7b4d85d93c3164eab", "score": "0.57642823", "text": "public function viewHotelDetailsAction() {\n $adminModel = Admin_Model_Users::getInstance();\n $result = $adminModel->getAdminDetails(); // showing image\n if ($result) {\n $this->view->admindetails = $result;\n }\n $hotelDetailsModel = Admin_Model_HotelDetails::getInstance();\n $hotelCuisinesModel = Admin_Model_HotelCuisines::getInstance();\n $hotel_id = $this->getRequest()->getParam('id');\n $dt['hotel_id'] = $hotel_id;\n $cuisinesdDetails = $hotelCuisinesModel->getCuisinesByHotelId($hotel_id);\n $i = 0;\n if ($cuisinesdDetails) {\n foreach ($cuisinesdDetails as $value) {\n $array[$i] = $value['Cuisine_name'];\n } $i++;\n $this->view->cuisinesdDetails = $cuisinesdDetails;\n }\n $result = $hotelDetailsModel->getHotelDetailsByID($hotel_id);\n if ($result) {\n $this->view->allhoteldetails = $result;\n } else {\n echo 'controller error occured';\n }\n }", "title": "" }, { "docid": "8d56079e1d9f2b19a6a3f70c4ebe4883", "score": "0.5748886", "text": "function getLeaveData(){\n\t\t$postData = $this->input->post('data');\n $data['empdata']= $this->common->_getRow('employeeLeave', array('leaveId' => encrypt_decrypt('decrypt',$postData)));\n \n\t\techo json_encode(array('status' => TRUE ,'data' => $data, 'message' => \"\"));\n\t}", "title": "" }, { "docid": "f296e7f60981f609ecb9223d9aad7241", "score": "0.5741486", "text": "public function index()\n {\n //\n $allevent=event::all();\n return view('showallevent')->with(compact('allevent'));\n }", "title": "" }, { "docid": "9a196ab6f3343ebd645bf65a6449e53b", "score": "0.5735029", "text": "public function leaves(){\n\n return $this->hasMany('App\\Models\\Leave');\n\n }", "title": "" }, { "docid": "9272a9979cdb3679c6d2780ad5d65bf9", "score": "0.5729282", "text": "public function hotelDetailsAction() {\n $adminModel = Admin_Model_Users::getInstance();\n $result = $adminModel->getAdminDetails(); // showing image\n if ($result) {\n $this->view->admindetails = $result;\n }\n $hotelDetailsModel = Admin_Model_HotelDetails::getInstance();\n $result = $hotelDetailsModel->selectAllHotels();\n\n if ($result) {\n $this->view->hoteldetails = $result;\n } else {\n echo 'controller error occured';\n }\n }", "title": "" }, { "docid": "4b4ac4f388f6cbed07625a1280da5262", "score": "0.57057667", "text": "public function getLeaveRequests()\r\n {\r\n return QueryBuilder::query(\r\n \"SELECT l.title, l.date_start, l.date_end, l.comment, lc.accepted, lc.comment\r\n FROM leave_request l\r\n LEFT JOIN leave_request_checked lc ON lc.leave_request_id = l.id\r\n WHERE l.employee_id = :id\", array(\r\n \":id\" => $this->id\r\n )\r\n );\r\n }", "title": "" }, { "docid": "1fcc07e2eafffeff149fa7959bf2d22a", "score": "0.56988424", "text": "public function show(empleado $empleado)\n {\n //\n }", "title": "" }, { "docid": "c1e0ec459a8d1f888bee50fe3de5fc22", "score": "0.5696024", "text": "public function index()\n {\n\n\n $visitors=Visitor::select('id','name','purpose','date','entry_time','leave_time','visitor_card_no','id','leave_time')->where('status',1)->get();\n return view('visitor::visitor.index',compact('visitors'));\n\n }", "title": "" }, { "docid": "7aa7d29fc9a18b58cd42848a65634688", "score": "0.5695967", "text": "public function leaving_index(Request $request) {\n\n $log = new LogSystem;\n $log->module_id = 19;\n $log->activity_type_id = 1;\n $log->description = \"Papar senarai Pegawai Borang L - Butiran Pegawai Yang Meninggalkan Jawatan\";\n $log->data_old = json_encode($request->input());\n $log->url = $request->fullUrl();\n $log->method = strtoupper($request->method());\n $log->ip_address = $request->ip();\n $log->created_by_user_id = auth()->id();\n $log->save();\n\n $officers = FormLLeaving::where('forml_id', $request->id)->with(['officer.designation']);\n\n return datatables()->of($officers)\n ->editColumn('left_at', function ($officer) {\n return $officer->left_at ? date('d/m/Y', strtotime($officer->left_at)) : '';\n })\n ->editColumn('action', function ($officer) {\n $button = \"\";\n\n $button .= '<a onclick=\"editLeaving('.$officer->officer_id.')\" href=\"javascript:;\" class=\"btn btn-primary btn-xs\"><i class=\"fa fa-edit\"></i></a> ';\n $button .= '<a onclick=\"removeLeaving('.$officer->officer_id.')\" href=\"javascript:;\" class=\"btn btn-danger btn-xs \"><i class=\"fa fa-trash\"></i></a> ';\n return $button;\n })\n ->make(true);\n }", "title": "" }, { "docid": "fca956909b16c5c3ba8249d884c6baf4", "score": "0.5687637", "text": "function leave_message(){\n\t\t\t$message = $this->MessageModel->get_users_messages($this->session->userdata('user_id'));\n\n\t\t\t$this->load->view('templates/header');\n\t\t\t$this->load->view('message/index', array('messages' => $message));\n\t\t\t$this->load->view('templates/partsfooter');\n\t\t}", "title": "" }, { "docid": "dbcd8d609fe67b97e44027460cd888ff", "score": "0.5673052", "text": "function my_leave(){\n\t\tif($this->session->userdata('userType') != '1' && $this->session->userdata('userID') != \"\"){\n\t\t\t$data['page_title'] = SITE_TITLE;\n\t $data['page_name'] = \"My Leave\";\n\t $data['page_slug'] = 'leave-apply'; \n\t $data['pageCSS']\t\t\t= array('css/lib/datatables-net/datatables.min.css','css/lib/bootstrap-sweetalert/sweetalert.css');\n\t $data['pageJS']\t\t\t\t= array('js/lib/daterangepicker/daterangepicker.js','js/lib/bootstrap-select/bootstrap-select.min.js','js/lib/datatables-net/datatables.min.js','js/lib/bootstrap-sweetalert/sweetalert.min.js','js/angular.min.js','js/controller/employee.js');\n\n\t //$data['initJsFunc']\t= array(\"$('#example').DataTable();\");\n\t $data['initJsFunc']\t= array(\"$('#doj').daterangepicker({singleDatePicker: true,showDropdowns: true});\",\"$('#dob').daterangepicker({singleDatePicker: true,showDropdowns: true});\",\"$('#myleavelist').DataTable();\");\n \t$data['leaves']\t = $this->common->_getCustomeQuery('select epl.*,u.name,u.empId as employeeId,u.designationId,u.departmentId,design.name as desinationName , depart.name as departmentName from employeeLeave epl left join user u on u.userID = epl.empId left join designations design on design.id = u.designationId left join departments depart on depart.id = u.departmentId where epl.empId = '.$this->session->userdata('userID').' ORDER BY epl.leaveId DESC ',1);\n\n\t $this->load->view('admin/common/header.php',$data); \n\t $this->load->view('admin/common/topheader.php',$data);\n\t $this->load->view('admin/common/sidebarMenu.php',$data); \n\t $this->load->view('admin/employee/my_leave',$data); \n\t $this->load->view('admin/common/footer.php',$data);\n\n\t\t} else {\n\t\t\techo ACCESS_DENIED;\n\t\t}\n\t}", "title": "" }, { "docid": "a218ff1dc60bc37b07ef7dc612101b97", "score": "0.56727487", "text": "public function show(Request $request)\n {\n //\n try{\n $events=Event::findOrFail($request->id);\n \n }\n catch(\\Illuminate\\Database\\QueryException $ex)\n {\n \\Session::flash('message','Query Exception Occurred. Call Developer!');\n\n return \\Redirect::back();\n }\n \n\n return view('pages.admin.events.eventview',compact('events'));\n }", "title": "" }, { "docid": "4d49770c5cd9043ba390f9f59580202f", "score": "0.5664287", "text": "public function edit(LeaveApply $leaveApply)\n {\n //\n }", "title": "" }, { "docid": "32493c11856f3df79349da6ea069649a", "score": "0.5663555", "text": "public function index()\n {\n \n\n // echo Auth::user()->role->role;die();\n if (Auth::user()->role_id==2) \n { // 2: Developer Role\n\n $leaves = DB::table('employee_leave_histories')\n ->select('*')\n ->join('users', 'users.id', '=', 'employee_leave_histories.emp_id')\n ->join('leave_type', 'employee_leave_histories.leave_type', '=', 'leave_type.ltype_id')\n ->join('roles', 'users.role_id', '=', 'roles.id')\n ->where('users.id', Auth::user()->id)\n ->where('deleted_at',NULL)\n ->orderBy ('employee_leave_histories.created_at','DESC')\n ->paginate(10);\n return view('devhome',compact('leaves'));\n } else \n { \n //HR Role\n $leaves = DB::table('employee_leave_histories')\n ->select('*')\n ->join('users', 'users.id', '=', 'employee_leave_histories.emp_id')\n ->join('leave_type', 'employee_leave_histories.leave_type', '=', 'leave_type.ltype_id')\n ->join('roles', 'users.role_id', '=', 'roles.id')\n ->where('users.hr_id', Auth::user()->id)\n ->where('deleted_at',NULL)\n ->orderBy ('employee_leave_histories.created_at','DESC')\n ->paginate(5);\n // echo\"<pre>\"; \n // print_r($leaves);die();\n return view('hrhome',compact('leaves'));\n }\n }", "title": "" }, { "docid": "d06aae30b7d251c2d8f1ea273d53a341", "score": "0.56603307", "text": "public function show(Emp $emp)\n {\n //\n }", "title": "" }, { "docid": "7a16fc5111664c66941792707ccec65d", "score": "0.5650047", "text": "public function index(Request $request){\n // $leaves = Leave::all();\n // return response($leaves);\n\n\n $leaves = Leave::join('employees', 'Leaves.employee_id','=','employees.id')\n ->select('Leaves.*','Leaves.id as LeaveId','employees.*',DB::raw(\"DATE_FORMAT(Leaves.date_from, '%d-%m-%Y') as fromdate\"),\nDB::raw(\"DATE_FORMAT(Leaves.date_to, '%d-%m-%Y') as todate\"),DB::raw(\"DATE_FORMAT(Leaves.applied_on, '%d-%m-%Y') as applieddate\"))\n ->get();\n\n return response()->json([\"data\"=>$leaves],200);\n\n }", "title": "" }, { "docid": "2a3d145e2ed730034d57256f83f853af", "score": "0.5633783", "text": "public function index()\n {\n $events = Events::with('event_hotspot')\n ->orderBy('events.id', 'desc')->get();\n $users = User::all();\n\n foreach ($events as $event) {\n $event->due_join_date_event = $this->formatDateLocal($event->due_join_date_event);\n $event->release_time_event = $this->formatDateLocal($event->release_time_event);\n if (!is_null($event->expired_time_event)) {\n $event->expired_time_event = $this->formatDateLocal($event->expired_time_event);\n }\n }\n\n return view('admin.pages.list-event', ['events' => $events, 'users' => $users]);\n }", "title": "" }, { "docid": "93ab568b141b1b3fa1ada48d15cb96ba", "score": "0.56333256", "text": "public function show(Empleado $empleado)\n {\n //\n }", "title": "" }, { "docid": "93ab568b141b1b3fa1ada48d15cb96ba", "score": "0.56333256", "text": "public function show(Empleado $empleado)\n {\n //\n }", "title": "" }, { "docid": "93ab568b141b1b3fa1ada48d15cb96ba", "score": "0.56333256", "text": "public function show(Empleado $empleado)\n {\n //\n }", "title": "" }, { "docid": "7de8da95e1c901dbf2d557c5b170896d", "score": "0.56326765", "text": "function ArticleDetail() {\n\t\t\t\n\t\t\t$this->SubscriberAuthenticate();\n\t\t\t$msg = \"\";\n\t\t\tif(isset($_GET['mgs'])) {\n\t\t\t\t\n\t\t\t\tif($_GET['mgs'] == \"comment_added\") {\n\t\t\t\t\n\t\t\t\t\t$msg = \"comment_added\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$this->oView->msg\t=\t$msg;\n\t\t\t\n\t\t\tif(isset($_GET['id'])) {\n\t\t\t\t$article_id = $_GET['id'];\n\t\t\t\t$erID\t= $_GET['er_id'];\n\t\t\t}\n\t\t\t$oArticle = $this->oModel->getERArticleDetails($article_id);\n\t\t\t\n\t\t\t$oArticle = $oArticle[0];\n\t\t\t$this->oView->oArticle\t=\t$oArticle;\n\t\t\t$this->oView->er_id\t\t=\t$erID;\n\t\t\t$this->oView->ArticleDetail();\n\t\t}", "title": "" }, { "docid": "cd04fe9aa01f79016f7dcc433e559af9", "score": "0.56277925", "text": "public function showDetails($event_id) {\n\t\tif ($_SESSION['admin'] != 2) {\n\t\t\treturn $this->db->query(\"SELECT *, event.name AS event_name, event.created_at AS created FROM event \n \t\tJOIN user ON user.userId = event.created_by\n \t\tWHERE eventId = '$event_id' AND `date` >= CURRENT_DATE();\")->fetch_object();\n\t\t} else {\n\t\t\treturn $this->db->query(\"SELECT *, event.name AS event_name, event.created_at AS created FROM event \n \t\tJOIN user ON user.userId = event.created_by\n \t\tWHERE eventId = '$event_id';\")->fetch_object();\n\t\t}\n\n\t}", "title": "" }, { "docid": "d4aca2797be0f80652e217c7e96671b3", "score": "0.56212395", "text": "public function getEventDetail($id)\n {\n if (Auth::user()->is_admin) {\n $event = Event::find($id);\n return view('admin.eventDetail',compact('event'));\n } else {\n abort(403, 'Unauthorized action.');\n }\n }", "title": "" }, { "docid": "695989d73966ac2c5a83039fd0be021e", "score": "0.5612642", "text": "public function selDetails()\n {\n $users = DB::table('users')\n ->where('id', $_POST['id'])\n ->get();\n\n $repairinfo = DB::table('repairinfo')\n ->latest()\n ->where('users_id', $_POST['id'])\n ->get();\n\n return view('/pastRepairDetails', compact(['users', 'repairinfo']));\n }", "title": "" }, { "docid": "a5498043c364cbd1ba6686c9b8e5420f", "score": "0.5611272", "text": "public function __invoke()\n {\n $data = [\n 'title' => 'Leave types',\n 'meta_desc' => 'All leave types',\n 'body_class' => null,\n 'user' => $this->user,\n 'menu' => 'customer',\n 'notifications' => notifications($this->user),\n 'new_notification' => countNewNotifications($this->user),\n 'crumbs' => [\n 'user/leave' => 'Leave',\n 'active' => 'Types'\n ],\n 'leave_types' => LeaveType::orderBy('name')\n ->paginate(),\n 'card_title' => 'All leave types',\n 'card_sub_title' => 'All types of leaves on' . config('project.appName'),\n ];\n return view('customer.user.performance.leave.type.index', $data);\n }", "title": "" }, { "docid": "5cecdb1dafe58c409dee4c63a158dbd9", "score": "0.55971575", "text": "public function viewEditSeller() {\n\t\tLog::info ( 'User has viewed Edit seller individual page from My Profile:' . $this->user_pk, array (\n\t\t\t\t'c' => '1' \n\t\t) );\n\t\t\n\t\tCommonComponent::activityLog ( \"DISPLAY_EDIT_SELLER_INDIVIDUAL\", DISPLAY_EDIT_SELLER_INDIVIDUAL, 0, HTTP_REFERRER, CURRENT_URL );\n\t\t\n\t\t$stateList = \\DB::table ( 'lkp_states' )->orderBy ( 'state_name', 'asc' )->lists ( 'state_name', 'id' );\n\t\t$country = \\DB::table ( 'lkp_countries' )->orderBy ( 'country_name', 'asc' )->lists ( 'country_name', 'id' );\n\t\t$services = \\DB::table ( 'lkp_services' )->where ( 'id', '<', '11' )->lists ( 'service_name', 'id' );\n\t\t$packaging = \\DB::table ( 'lkp_services' )->where ( 'id', '>', '10' )->where ( 'id', '<', '16' )->lists ( 'service_name', 'id' );\n\t\t$locality = \\DB::table ( 'lkp_localities' )->orderBy ( 'locality_name', 'asc' )->lists ( 'locality_name', 'id' );\n\t\t$cities = \\DB::table ( 'lkp_cities' )->orderBy ( 'city_name', 'asc' )->lists ( 'city_name', 'id' );\n\t\t$intracity_cities_list = \\DB::table ( 'lkp_cities as lc' )\n\t\t->join('lkp_ict_locations as ictl','ictl.lkp_city_id','=','lc.id')\n\t\t->join('lkp_localities as ictlt','ictlt.id','=','ictl.lkp_locality_id')\n\t\t->orderBy ( 'lc.city_name', 'asc' )\n\t\t->select ( 'lc.city_name', 'lc.id' )->get();\n\t\t\n\t\tfor($k=0;$k<count($intracity_cities_list);$k++){\n\t\t\t$intracity_cities[$intracity_cities_list[$k]->id]= $intracity_cities_list[$k]->city_name;\n\t\t}\n\t\t$sellerRecord = DB::table ( 'seller_details' )\n\t\t\t\t\t\t/** Start : @jagadeesh - 02/05/2016 \n\t\t\t\t\t\t *Reg : Getting User uploaded logo and user picture details\n\t\t\t\t\t\t */\n\t\t\t\t\t\t\t->join('users as u','u.id','=','user_id')\n\t\t\t\t\t\t\t->select('seller_details.*','u.logo','u.user_pic','u.pannumber')\t\n\t\t\t\t\t\t/** \n\t\t\t\t\t\t *End : @jagadeesh - 02/05/2016 \n\t\t\t\t\t\t */\n\t\t\t\t\t\t->where ( 'user_id', '=', $this->user_pk )\n\t\t\t\t\t\t->first ();\n\t\tDB::table ( 'users' )->leftJoin ( 'seller_details', 'users.id', '=', 'seller_details.user_id' )->where ( 'users.id', '=', $this->user_pk )->first ();\n\t\t\n\t\t$intracity = DB::table ( 'users' )->select ( 'lkp_locality_id as locality_id', 'lc.id as city_id' )->leftJoin ( 'seller_intracity_localities as sip', 'users.id', '=', 'sip.user_id' )->leftJoin ( 'lkp_localities as ll', 'sip.lkp_locality_id', '=', 'll.id' )->leftJoin ( 'lkp_cities as lc', 'll.lkp_city_id', '=', 'lc.id' )->where ( 'users.id', '=', $this->user_pk )->get ();\n\t\t\n\t\t$packersMovers = DB::table ( 'users' )->select ( 'lkp_city_id as city_id', 'ls.id as state_id' )->leftJoin ( 'seller_pm_cities as spc', 'users.id', '=', 'spc.user_id' )->leftJoin ( 'lkp_cities as lc', 'spc.lkp_city_id', '=', 'lc.id' )->leftJoin ( 'lkp_states as ls', 'lc.lkp_state_id', '=', 'ls.id' )->where ( 'users.id', '=', $this->user_pk )->get ();\n\t\t$allServices = \\DB::table ( 'lkp_services' )->select ( 'service_name','group_name','service_crumb_name','service_image_path','id')->get();\n\t\t\n\t\t\n\t\t$seller_id = '';\n\t\t$pmCity_array = array ();\n\t\t$pmState_array = array ();\n\t\t$intra_locality = array ();\n\t\t$intra_city = array ();\n\t\tforeach ( $packersMovers as $pm ) {\n\t\t\t\n\t\t\tarray_push ( $pmCity_array, $pm->city_id );\n\t\t\tarray_push ( $pmState_array, $pm->state_id );\n\t\t}\n\t\tforeach ( $intracity as $pm ) {\n\t\t\t\n\t\t\tarray_push ( $intra_locality, $pm->locality_id );\n\t\t\tarray_push ( $intra_city, $pm->city_id );\n\t\t}\n\t\t\n\t\t$packersMoverscities = \\DB::table ( 'lkp_cities' )->whereIn ( 'lkp_state_id', $pmState_array )->orderBy ( 'city_name', 'asc' )->lists ( 'city_name', 'id' );\n\t\t\n\t\t$transport = \\DB::table ( 'seller_services as ss' )->select ( 'ss.lkp_service_id as service_id' )->leftJoin ( 'users', 'users.id', '=', 'ss.user_id' )->where ( 'ss.user_id', '=', $this->user_pk )->get ();\n\t\t\t\t\n\t\t$handling = \\DB::table ( 'seller_services as ss' )->select ( 'ss.lkp_service_id as service_id' )->leftJoin ( 'users', 'users.id', '=', 'ss.user_id' )->where ( 'ss.lkp_service_id', '>', '10' )->where ( 'ss.user_id', '=', $this->user_pk )->get ();\n\t\t\n\t\t$transport_array = array ();\n\t\tforeach ( $transport as $trans ) {\n\t\t\t\n\t\t\tarray_push ( $transport_array, $trans->service_id );\n\t\t}\n\t\t\n\t\t$handling_array = array ();\n\t\tforeach ( $handling as $hand ) {\n\t\t\t\n\t\t\tarray_push ( $handling_array, $hand->service_id );\n\t\t}\n\t\t\n\t\t// echo \"<pre>\"; print_r($transport_array);die();\n\t\tif (! empty ( $sellerRecord )) {\n\t\t\t$in_corporation_file = explode ( \"/\", $sellerRecord->in_corporation_file );\n\t\t\t$sellerRecord->in_corporation_file = end ( $in_corporation_file );\n\t\t\t\n\t\t\t$tin = explode ( \"/\", $sellerRecord->tin_filepath );\n\t\t\t$sellerRecord->tin_filepath = end ( $tin );\n\t\t\t\n\t\t\t$gta = explode ( \"/\", $sellerRecord->gta_filepath );\n\t\t\t$sellerRecord->gta_filepath = end ( $gta );\n\t\t\t\n\t\t\t$pancard = explode ( \"/\", $sellerRecord->pancard_filepath );\n\t\t\t$sellerRecord->pancard_filepath = end ( $pancard );\n\t\t\t\n\t\t\t$service_tax = explode ( \"/\", $sellerRecord->service_tax_filepath );\n\t\t\t$sellerRecord->service_tax_filepath = end ( $service_tax );\n\t\t\t\n\t\t\t$central_excise = explode ( \"/\", $sellerRecord->central_excise_filepath );\n\t\t\t$sellerRecord->central_excise_filepath = end ( $central_excise );\n\t\t\t\n\t\t\t$sales_tax = explode ( \"/\", $sellerRecord->sales_tax_filepath );\n\t\t\t$sellerRecord->sales_tax_filepath = end ( $sales_tax );\n\t\t\t\n\t\t\t$seller_id = $sellerRecord->id;\n\t\t\t\n\t\t\t\n\t\t\t$lkp_industry = $this->getIndustries();\n\t\t\t$getSpecialities = $this->getSpecialities();\n\t\t\t$getEmployeeStrengths = $this->getEmployeeStrengths();\n\t\t\t$getYearofEstablished = CommonComponent::getYearofEstablished(); // @jagadeesh-29042016\n\n\t\t}\n\t\t\n\t\t// echo \"<pre>\";print_r($packersMoverscities);die();\n\t\treturn view ( 'auth.edit_seller', compact ( 'sellerRecord' ), array (\n\t\t\t\t'allServices'=>$allServices,\n\t\t\t\t'stateList' => $stateList,\n\t\t\t\t'country' => $country,\n\t\t\t\t'services' => $services,\n\t\t\t\t'packaging' => $packaging,\n\t\t\t\t'cities' => $cities,\n\t\t\t\t'intracity_cities' => $intracity_cities,\n\t\t\t\t'seller_id' => $seller_id,\n\t\t\t\t'locality' => $locality,\n\t\t\t\t'pmCity' => $pmCity_array,\n\t\t\t\t'pmState' => $pmState_array,\n\t\t\t\t'intra_locality' => $intra_locality,\n\t\t\t\t'intra_city' => $intra_city,\n\t\t\t\t'handling' => $handling_array,\n\t\t\t\t'transport' => $transport_array,\n\t\t\t\t'packMovCities' => $packersMoverscities,\n\t\t\t\t'userId' => $this->user_pk,\n\t\t\t\t'lkp_industry' => $lkp_industry,\n\t\t\t\t'getSpecialities' => $getSpecialities,\n\t\t\t\t'getEmployeeStrengths' => $getEmployeeStrengths,\n\t\t\t\t'getYearofEstablished'=> $getYearofEstablished // @jagadeesh-29042016\n\n\t\t) );\n\t}", "title": "" }, { "docid": "c80a89398a00a01464e0c766edb8c750", "score": "0.5593878", "text": "public function index()\r\n\t{\r\n\t\treturn view('offernew');\r\n\t}", "title": "" } ]
916041f1d19504a653603b34b8b99363
this function means withdraw from bank & deposit to locker
[ { "docid": "d19a6052d3b08e2f2c52fabec6d70de3", "score": "0.0", "text": "static function create_locker_bank_transaction(BankReceivePermission $bank_receive) {\n $data = [\n 'locker_id' => $bank_receive->locker_exchange_permission->fromLocker->id,\n 'account_id' => $bank_receive->locker_exchange_permission->toBank->id,\n 'type' => 'withdrawal',\n 'created_by' => auth()->user()->id,\n 'date' => $bank_receive->operation_date,\n 'amount' => $bank_receive->amount,\n 'branch_id' => $bank_receive->branch_id\n ];\n LockerTransaction::create($data);\n }", "title": "" } ]
[ { "docid": "4c396215b030e47ece69708bb017ba21", "score": "0.77627593", "text": "function do_withdraw()\n\t{\n\t\t$this->ipsclass->input['points'] = str_replace( ',', '', $this->ipsclass->input['points'] );\n\t\t$this->ipsclass->input['pts'] = str_replace( '-', '', intval($this->ipsclass->input['points']) );\n\t\t$pts = intval($this->ipsclass->input['points']);\n\t\t\n\t\tif ( !$this->ipsclass->vars['points_bank'] )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_bank_offline'));\n\t\t}\n\t\t\n\t\tif ( !$this->ipsclass->member['deposited_points'] )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_no_moneyinbank'));\n\t\t}\n\t\t\n\t\tif ( $this->ipsclass->member['deposited_points'] < $pts )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_no_wd'));\n\t\t}\n\n\t\tif ( !$pts )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_no_amount'));\n\t\t}\n\t\t\n\t\t$this->ipsclass->DB->do_update( 'members', array( 'deposited_points' => $this->ipsclass->member['deposited_points'] - $pts,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'points' => $this->ipsclass->member['points'] + $pts,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t), 'id='.$this->ipsclass->member['id']\n\t\t\t\t\t\t\t\t\t );\n\t\t\n\t\t$this->ipsclass->print->redirect_screen( $this->ipsclass->lang['withdrawed'], 'autocom=points' );\n\t}", "title": "" }, { "docid": "5d4a30fc3a7f2d1f67cb8a70056a5616", "score": "0.7468636", "text": "function warquest_bank_withdraw_do() {\r\n\r\n\t/* input */\r\n\tglobal $player;\r\n\tglobal $id;\r\n\tglobal $withdraw;\r\n\tglobal $id;\r\n\t\r\n\t/* output */\r\n\tglobal $output;\r\n\t\r\n\t/* Remove dots */\r\n\t$withdraw = str_replace(\".\", \"\", $withdraw);\r\n\t\t\r\n\t$balance=0;\r\n\tswitch ($id) {\r\n\t\tcase 1: $balance=$player->bank1;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\tcase 2: $balance=$player->bank2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\tcase 3: $balance=$player->bank3;\r\n\t\t\t\tbreak;\t\t\t\r\n\t}\r\n\t\r\n\tif ($withdraw>0) {\r\n\t\r\n\t\tif ($balance >= $withdraw) {\r\n\t\r\n\t\t\t/* Calculate new values\t*/\r\n\t\t\t$player->money += $withdraw;\r\n\t\t\t\r\n\t\t\tswitch ($id) {\r\n\t\t\t\tcase 1: \t$player->bank1 -= $withdraw;\t\t\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tcase 2: \t$player->bank2 -= $withdraw;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tcase 3: \t$player->bank3 -= $withdraw;\r\n\t\t\t\t\t\t\tbreak;\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\twarquest_db_bank_insert($player->pid, 0, $id, ($withdraw*-1), ($balance-$withdraw), 0);\r\n\t\t\t\t\r\n\t\t\t$message = t('BANK_WITHDRAW', money_format1($withdraw), t('BANK_GROUP_'.$id));\r\n\t\t\t$output->popup .= warquest_box_icon(\"info\", $message);\r\n\t\t\t\r\n\t\t\t$log = 'Withdraw '.number_format2($withdraw).' for '.t('BANK_GROUP_'.$id);\t\t\r\n\t\t\twarquest_user_log($player, $log);\r\n\t\t\r\n\t\t} else {\r\n\t\r\n\t\t\t$message = t('BANK_WITHDRAW_FAILED', money_format1($withdraw));\r\n\t\t\t$output->popup .= warquest_box_icon(\"warning\", $message);\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "50a1c7dd95993bd95fc361c227ae4947", "score": "0.72339064", "text": "public function withdraw($amount) {\n $this->cashTransaction($amount, 'DEPOSIT');\n }", "title": "" }, { "docid": "62af3a165d92e560c45b52d6dd9dca1e", "score": "0.7189733", "text": "public function withdraw() {\n try{\n if ($this->input->post('cryptoId1')) {\n if ($this->CryptocurrModel->check($this->input->post('cryptoId1'))) {\n $this->session->set_userdata('cryptoId1', $this->input->post('cryptoId1'));\n }\n }\n if ($this->input->post('amount')) {\n $amount = $this->input->post('amount');\n $success = $this->WalletModel->withdraw($this->session->userdata('cryptoId1'), $this->UserModel->get_email(), $amount);\n $this->session->set_flashdata('success', $success);\n }\n redirect(base_url().'user/withdraw');\n } catch (Exception $e) {\n $this->session->set_flashdata('error', $e->getMessage());\n redirect(base_url().'user/withdraw');\n }\n }", "title": "" }, { "docid": "082820350e8a6e49b27d46602bcf6b6d", "score": "0.7090388", "text": "function warquest_bank_deposit_do() {\r\n\r\n /* input */\r\n\tglobal $player;\r\n\tglobal $id;\r\n\tglobal $config;\r\n\tglobal $deposit;\r\n\t\r\n\t/* output */\r\n\tglobal $output;\r\n\t\r\n\t/* Remove dots */\r\n\t$deposit = str_replace(\".\", \"\", $deposit);\r\n\t\r\n\t$price = $deposit;\r\n\t\t\r\n\tif ($price>0) {\r\n\t\r\n\t\tif ($player->money >= $price) {\r\n\t\t\r\n\t\t\t$player->money-=$price;\r\n\t\t\t$balance=0;\r\n\t\t\t\r\n\t\t\tswitch ($id) {\r\n\t\t\t\tcase 1: \t$player->bank1+=$deposit;\r\n\t\t\t\t\t\t\t$balance=$player->bank1;\r\n\t\t\t\t\t\t\t$init_bank_deposit = $config[\"init_bank1_deposit\"];\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tcase 2: \t$player->bank2+=$deposit;\r\n\t\t\t\t\t\t\t$balance=$player->bank2;\r\n\t\t\t\t\t\t\t$init_bank_deposit = $config[\"init_bank2_deposit\"];\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tcase 3: \t$player->bank3+=$deposit;\r\n\t\t\t\t\t\t\t$balance=$player->bank3;\r\n\t\t\t\t\t\t\t$init_bank_deposit = $config[\"init_bank3_deposit\"];\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t \t\t\r\n\t\t\t/* Update transaction log.\t*/\r\n\t\t\twarquest_db_bank_insert($player->pid, 0, $id, $deposit, $balance, 1);\r\n\t\t\t\r\n\t\t\t$handleFee = (round($deposit * ($init_bank_deposit/100)) * -1);\r\n\t\t\t$balance=0;\r\n\t\t\tswitch ($id) {\r\n\t\t\t\tcase 1: \t$player->bank1 += $handleFee;\r\n\t\t\t\t\t\t\t$balance=$player->bank1;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tcase 2: \t$player->bank2 += $handleFee;\r\n\t\t\t\t\t\t\t$balance=$player->bank2;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tcase 3: \t$player->bank3 += $handleFee;\r\n\t\t\t\t\t\t\t$balance=$player->bank3;\r\n\t\t\t\t\t\t\tbreak;\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\t/* Update transaction log. */\r\n\t\t\twarquest_db_bank_insert($player->pid, 0, $id, $handleFee, $balance, 2);\r\n\t\t\t\r\n\t\t\t$message = t('BANK_DEPOSIT', money_format1($deposit), t('BANK_GROUP_'.$id));\r\n\t\t\t$output->popup .= warquest_box_icon(\"info\", $message);\r\n\t\t\t\r\n\t\t\t$log = 'Deposit '.number_format2($deposit).' to '.t('BANK_GROUP_'.$id);\t\t\r\n\t\t\twarquest_user_log($player, $log);\r\n\t\t\r\n\t\t} else {\r\n\t\r\n\t\t\t$message = t('BANK_DEPOSIT_FAILED', money_format1($price));\r\n\t\t\t$output->popup .= warquest_box_icon(\"warning\", $message);\r\n\t\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "67248feb1deb6ededb42648f68e9d3bf", "score": "0.7058443", "text": "function withdraw($card, $amount)\n {\n }", "title": "" }, { "docid": "5d04526331bfca6c590e17f7493ac912", "score": "0.68307304", "text": "public function postWithdraw()\n\t{\n\t\tBook::withdraw(Input::get('service'), Auth::user()->id);\n\n\t\tSession::flash('message', \"You've successfully withdrawn from the program.\");\n\t\tSession::flash('messageStatus', \"success\");\n\t}", "title": "" }, { "docid": "986b737af3f1efea644c2b9a1c09fd34", "score": "0.67876476", "text": "function withdraw_form()\n\t{\n\t\tif ( !$this->ipsclass->member['deposited_points'] )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_no_moneyinbank'));\n\t\t}\n\t\telse\n\t\t{\n\t\t\n\t\t$data['points'] = $this->ipsclass->do_number_format($this->ipsclass->member['points']);\n\t\t$data['bank'] = $this->ipsclass->do_number_format($this->ipsclass->member['deposited_points']);\n\t\t\n\t\t\t$this->output .= $this->ipsclass->compiled_templates['skin_points']->bank_withdraw( $data );\n\t\t}\n\t\t\n\t\t$this->page_title = $this->ipsclass->lang['bank'];\n\t\t$this->nav[] = $this->ipsclass->lang['bank'];\n\t}", "title": "" }, { "docid": "29471001047b9f9d6f6e65c3ad2ae0e2", "score": "0.67475486", "text": "public function WithDraw($amount)\n {\n\n // get the current date and time to add to the audit info when a withdraw is attempted\n $transDate = new DateTime();\n\n if ($this->Locked === false) {\n $this->Balance -= $amount;\n // below you are pushing an array into the audit array, the elements of the pushed array contain different information about the withdrawal\n array_push($this->Audit, array(\"WITHDRAW ACCEPTED\", $amount, $this->Balance, $transDate->format('c')));\n } else {\n array_push($this->Audit, array(\"WITHDRAW DENIED\", $amount, $this->Balance, $transDate->format('c')));\n }\n }", "title": "" }, { "docid": "668d271a5b7cb7f6f178613c0a7d31f7", "score": "0.6702002", "text": "public function deposit($amount)\n {\n $this->balance += $amount;\n echo \"Amount is deposited into your account<br/>\";\n echo \"New balance is \". $this->balance . \"<br/>\";\n }", "title": "" }, { "docid": "c8ff8cb11bf62d3846aa2d382a0f3d55", "score": "0.6677004", "text": "public function deposit_cash($amount, $acc_id)\r\n\t{\r\n\t\t$check_balance = \"SELECT * FROM wallet WHERE account_id = :acc_id \";\r\n\t\t$prepare_check_balance = $this->pdo_connect->prepare($check_balance);\r\n\r\n\t\t$prepare_check_balance->execute(array(\":acc_id\" => $acc_id));\r\n\t\t$results = $prepare_check_balance->rowCount();\r\n\r\n\t\t#update or add\r\n\t\tif ($results > 0) {\r\n\t\t\twhile ($rows = $prepare_check_balance->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\t\t#update balance because row already exists\r\n\t\t\t\t$update_balance = \"UPDATE wallet SET amount = :amt, date_updated = :dt, time_updated = :tt AND status = :sts WHERE account_id = :acc_id \";\r\n\t\t\t\t$prepare_update_balance = $this->pdo_connect->prepare($update_balance);\r\n\r\n\t\t\t\t$array_data = array(\":amt\" => $amount + $rows['amount'],\r\n\t\t\t\t\t\t\t\t\t\":dt\" => Date('D, d-M, Y'),\r\n\t\t\t\t\t\t\t\t\t\":tt\" => Date('G:i:s a'),\r\n\t\t\t\t\t\t\t\t\t\":sts\" => \"Deposit\",\r\n\t\t\t \":acc_id\" => $acc_id);\r\n\t\t\t\t$prepare_update_balance->execute($array_data);\r\n\r\n\t\t\t\t$msg = \"Your account balance was updated successfully!\";\r\n\t\t\t\theader(\"Location: someplace.php?msg=\" . $msg);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t#create new wallet row\r\n\t\t\t$update_balance = \"INSERT INTO wallet (amount, date_updated, time_updated, status, account_id) VALUES(:amt, :dt, :tt, :sts, :acc_id)\"; \t\t\t\r\n\t\t\t$prepare_update_balance = $this->pdo_connect->prepare($update_balance);\r\n\r\n\t\t\t$array_data = array(\":amt\" => $amount,\r\n\t\t\t\t\t\t\t\t\":dt\" => Date('D, d-M, Y'),\r\n\t\t\t\t\t\t\t\t\":tt\" => Date('G:i:s a'),\r\n\t\t\t\t\t\t\t\t\":sts\" => \"Deposit\",\r\n\t\t\t \":acc_id\" => $acc_id);\r\n\t\t\t$prepare_update_balance->execute($array_data);\r\n\r\n\t\t\t$msg = \"Your account balance was updated successfully!\";\r\n\t\t\theader(\"Location: someplace.php?msg=\" . $msg);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "880d26a6565eff1b44b228553b663730", "score": "0.66279227", "text": "function deposit($card, $amount)\n {\n }", "title": "" }, { "docid": "cf8617bd3a69ea3c0d6f295996d1e129", "score": "0.6568447", "text": "public function testWithdraw()\n {\n $account = new DebitAccount();\n\n $account->deposit(Money::fromAmount(1000));\n $account->withdraw(Money::fromAmount(300));\n\n $this->assertEquals(700, $account->balance()->amount());\n }", "title": "" }, { "docid": "ef0ea5688e603d2be4df95e2d5e62f06", "score": "0.65501875", "text": "function deposit($arguments) {\n $sql = \"UPDATE users SET balance=balance+\".$arguments['deposit'].\" WHERE id=\".$_SESSION['id'];\n mysqli_query($this->conn, $sql);\n }", "title": "" }, { "docid": "c7a96809ff86a1e965dfe99f13630356", "score": "0.6507179", "text": "public function withdraw($amount)\n {\n if($amount > $this->bankBalance){\n // echo \"you dont have enough money for this withdrawal\";\n throw new Exception('Go away'); // Exception is php class\n }\n\n if($amount == $this->bankBalance)\n {\n\n\n }\n\n $this->bankBalance = $this->bankBalance - $amount;\n\n return $this->bankBalance;\n\n\n\n }", "title": "" }, { "docid": "dee7c32beb6d5228e6012d3270f63549", "score": "0.6496619", "text": "function do_deposit()\n\t{\n\t\t$this->ipsclass->input['points'] = str_replace( ',', '', $this->ipsclass->input['points'] );\n\t\t$this->ipsclass->input['pts'] = str_replace( '-', '', intval($this->ipsclass->input['points']) );\n\t\t$pts = intval($this->ipsclass->input['points']);\n\t\t\n\t\tif ( !$this->ipsclass->vars['points_bank'] )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_bank_offline'));\n\t\t}\n\t\t\n\t\tif ( !$this->ipsclass->member['points'] )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_no_points'));\n\t\t}\n\t\t\n\t\tif ( $pts > $this->ipsclass->member['points'] )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_not_enough_points'));\n\t\t}\n\n\t\tif ( !$pts )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_no_amount'));\n\t\t}\n\t\t\n\t\t$this->ipsclass->DB->do_update( 'members', array( 'deposited_points' => $this->ipsclass->member['deposited_points'] + $pts,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'points' => $this->ipsclass->member['points'] - $pts,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t), 'id='.$this->ipsclass->member['id']\n\t\t\t\t\t\t\t\t\t );\n\t\t\n\t\t$this->ipsclass->print->redirect_screen( $this->ipsclass->lang['depoed'], 'autocom=points' );\n\t}", "title": "" }, { "docid": "0312ed2d4c548897a9aa4c9fd95de728", "score": "0.6494883", "text": "public function withdraw($amount) {\n\t\t$this->balance -= $amount;\n\t\t// skapa en transaktion för uttaget\n\t\tarray_push($this->transactions, -$amount);\n\t}", "title": "" }, { "docid": "210f53afc07b4c9dcf40cc5f527ddc38", "score": "0.64901596", "text": "public function withdraw($amount)\n {\n $this->balance -= $amount;\n $transType = 'Withdraw';\n try {\n $this->updateBalance($amount, $transType);\n } catch (BankException $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "c777534a452d51646626aeb48c7fd76f", "score": "0.6475746", "text": "private function withdraw(){\n $withdraw =new Withdraw;\n $withdraw ->amount =request()->amount;\n $withdraw ->created_by =Auth::user()->id;\n $withdraw ->save();\n return redirect()->back()->with('msg','You have Successfully withdrawn Your Money');\n\n }", "title": "" }, { "docid": "35236f980b1f04aab404229a36b63f25", "score": "0.6363074", "text": "function withdrawal(){\r\n $data['basepath'] = base_url();\r\n $uid = $this->session->userdata['ts_uid'];\r\n $data_array = array(\r\n 'venwith_uid' => $uid,\r\n 'venwith_type' => 'paypal_email'\r\n );\r\n $data['withdrawalDetails_paypal'] = $this->DatabaseModel->access_database('ts_vendorwithdrawal','select','', $data_array);\r\n\r\n $data_array = array(\r\n 'venwith_uid' => $uid,\r\n 'venwith_type' => 'banktransfer_details'\r\n );\r\n $data['withdrawalDetails_bnkdetails'] = $this->DatabaseModel->access_database('ts_vendorwithdrawal','select','', $data_array);\r\n\r\n $productdetails = $this->DatabaseModel->access_database('ts_products','select','',array('prod_uid'=>$uid));\r\n $venCommArr = array();\r\n if(!empty($productdetails)) {\r\n $transactionDetailsArray = array();\r\n foreach($productdetails as $solo_prod) {\r\n $trDet = $this->DatabaseModel->access_database('ts_paymentdetails','like', '' , array('payment_pid'=>$solo_prod['prod_uniqid']));\r\n if(!empty($trDet)) {\r\n foreach($trDet as $solotransaction) {\r\n $custom = trim($solotransaction['payment_pid']);\r\n $customArr = explode(',',$custom);\r\n\r\n $venStr = trim($solotransaction['payment_vendor_commission']);\r\n if( $venStr != '' ) {\r\n $venArr = explode(',',$venStr);\r\n\r\n for($i=0;$i<count($venArr);$i++) {\r\n $venSplitArr = explode('@#', trim($venArr[$i]));\r\n\r\n if($solo_prod['prod_uniqid'] == $venSplitArr[0] ) {\r\n $venCommArr[] = $venSplitArr[1];\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n $data['totalCommissionAmount'] = array_sum($venCommArr);\r\n }\r\n else {\r\n $data['totalCommissionAmount'] = 0;\r\n }\r\n\r\n $data['withdrawalDetails_received'] = $this->DatabaseModel->access_database('ts_vendorwithdrawal','totalvalue', array('venwith_text','totalReceivedAmount') , array('venwith_uid'=>$uid,'venwith_type'=>'payed_amount'));\r\n\r\n $data['withdrawalReceivedDetails'] = $this->DatabaseModel->access_database('ts_vendorwithdrawal','select', '' , array('venwith_uid'=>$uid,'venwith_type'=>'payed_amount'));\r\n\r\n $this->load->view('vendor/include/vheader',$data);\r\n $this->load->view('vendor/withdrawal',$data);\r\n $this->load->view('vendor/include/vfooter',$data);\r\n }", "title": "" }, { "docid": "307f09fa2863689c75221a106815ea8d", "score": "0.6353923", "text": "public function withdraw(float $amount): void;", "title": "" }, { "docid": "a417c43c5095ad884176117903d0f500", "score": "0.6309792", "text": "public function deposit($amount)\n {\n $this->bankBalance += $amount;\n return $this->bankBalance;\n }", "title": "" }, { "docid": "7c2f97908cfaeedac26f9d2fb340e5ec", "score": "0.6296793", "text": "public function deposit() {\n try{\n if ($this->input->post('cryptoId1')) {\n if ($this->CryptocurrModel->check($this->input->post('cryptoId1'))) {\n $this->session->set_userdata('cryptoId1', $this->input->post('cryptoId1'));\n }\n }\n if ($this->input->post('amount')) {\n $amount = $this->input->post('amount');\n $success = $this->WalletModel->deposit($this->session->userdata('cryptoId1'), $this->UserModel->get_email(), $amount);\n $this->session->set_flashdata('success', $success);\n }\n redirect(base_url().'user/deposit');\n } catch (Exception $e) {\n $this->session->set_flashdata('error', $e->getMessage());\n redirect(base_url().'user/deposit');\n }\n }", "title": "" }, { "docid": "d52ae568c581dcec707e4cac0686949c", "score": "0.628661", "text": "function warquest_clan_deposit_do() {\r\n\r\n\t/* input */\r\n\tglobal $player;\r\n\tglobal $cid;\r\n\tglobal $deposit;\r\n\tglobal $config;\r\n\t\r\n\t/* output */\r\n\tglobal $output;\t\r\n\t\r\n\t$old = mktime(date(\"H\"), date(\"i\"), date(\"s\"), date(\"m\"), date(\"d\")-1, date(\"Y\"));\r\n\r\n\t$query = 'select date from clan_bank where pid='.$player->pid.' and action=2 and date>\"'.date(\"Y-m-d H:i:s\", $old).'\" order by date desc limit 0,1 ';\r\n\t$result = warquest_db_query($query);\t\r\n\t$data = warquest_db_fetch_object($result);\r\n\t\r\n\t/* Remove dots */\r\n\t$deposit = str_replace(\".\", \"\", $deposit);\r\n\t\r\n\t$clan = warquest_db_clan($cid);\r\n\t\r\n\tif ($deposit > $player->money) {\r\n\t\t\t\r\n\t\t$message = t('BANK_DEPOSIT_FAILED', money_format1($deposit));\r\n\t\t$output->popup .= warquest_box_icon(\"warning\", $message);\r\n\t\r\n\t} else if ($deposit > ($player->money_step*10)) {\r\n\t\r\n\t\t$message = t('CLAN_DEPOSIT_TOO_HIGH', money_format1($player->money_step*10));\r\n\t\t$output->popup .= warquest_box_icon(\"warning\", $message);\r\n\t\r\n\t} else if (isset($data->date)) {\r\n\t\r\n\t\t$new = mktime(date(\"H\"), date(\"i\"), date(\"s\"), date(\"m\"), date(\"d\"), date(\"Y\"));\r\n\t\t$value = (24*60*60) - ($new - strtotime($data->date));\r\n\t\r\n\t\t$tmp = '<script language=\"JavaScript\" src=\"'.$config[\"content_url\"].'js/countdown4.js\" type=\"text/javascript\"></script>';\r\n\r\n\t\t$tmp .= '<div class=\"countdown\"><div id=\"countdown_time4\"></div></div>';\r\n\t\t$tmp .= '<script language=\"JavaScript\" type=\"text/javascript\">';\r\n\t\t$tmp .= \"countdown4.init(\".$value.\", 'countdown_time4', '00:00:00');\"; \r\n\t\t$tmp .= '</script>';\r\n\t\t\r\n\t\t$message = t('CLAN_DEPOSIT_MAX',$tmp );\r\n\t\t$output->popup .= warquest_box_icon(\"warning\", $message);\r\n\t\r\n\t} else {\r\n\r\n\t\t$clan->money += $deposit;\r\n\t\twarquest_db_clan_bank_insert($clan->cid, $player->pid, $deposit, $clan->money, 10);\t\t\r\n\t\t\r\n\t\t$fee = $deposit * ($config[\"init_clan_bank_deposit\"]/100);\r\n\t\t\r\n\t\t$clan->money -= $fee;\r\n\t\t$clan->last_activity = date('Y-m-d H:i:s');\r\n\t\twarquest_db_clan_update($clan);\r\n\t\t\r\n\t\twarquest_db_clan_bank_insert($clan->cid, $player->pid, ($fee*-1), $clan->money, 2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\t\r\n\t\t$player->money -= $deposit;\r\n\t\t\r\n\t\t$message = t('BANK_DEPOSIT', money_format1($deposit), t('BANK_GROUP_4'));\r\n\t\t$output->popup .= warquest_box_icon(\"info\", $message);\r\n\t\t\r\n\t\t$log = 'Deposit '.number_format2($deposit).' to clan bank';\t\t\r\n\t\twarquest_user_log($player, $log);\r\n\t}\r\n}", "title": "" }, { "docid": "45884d261bb90a59162b8b64cfeeb53b", "score": "0.625412", "text": "public function withdraw(Request $request)\n {\n $wallet = ewallet::where('user_id', Auth::user()->id)->first();\n $userdata = $request->user('api');\n\n $validator = Validator::make($request->all(), [\n 'amount' => 'required|integer|min:2',\n 'destination' => 'required'\n ]);\n\n if ($validator->fails()) {\n return $this->sendError('Validation Error.', ['kode' => 1064, 'message' => 'Not null exception', 'validation_errors' => $validator->errors()]);\n }\n\n /** check balance */\n if ($request->amount > $wallet['balance']) {\n return $this->sendError('the withdrawal amount exceeds the available balance', ['error' => 'the withdrawal amount exceeds the available balance'], 403);\n }\n\n\n $destination = $request->destination;\n\n $dest = json_decode($wallet['withdrawal'], true);\n\n $input['user_id'] = $userdata->id;\n $input['amount'] = $request->amount;\n $input['destination'] = json_encode($dest[$destination]);\n $input['status'] = 'pending';\n $input['description'] = 'Withdrawal processed. ';\n $save = ewallet_withdraw::create($input);\n\n $data['amount'] = $input['amount'];\n $data['destination'] = $input['destination'];\n $data['status'] = 'pending';\n $data['status_url'] = url('/api/wallet/withdraw-status/' . $save->id);\n\n return $this->sendResponse($data, 'Successfully');\n }", "title": "" }, { "docid": "5ad2f2a2c9c22e10acc928878934c889", "score": "0.6232959", "text": "static function request_withdraw(){\n\n\t\t$response = array( 'success' => true,'msg'=> __('Your withdrawal request is sent','boxtheme') );\n\t\t$request= $_REQUEST['request'];\n\n\t\t$credit = BX_Credit::get_instance();\n\t\t$result = $credit->request_withdraw($request); //request_withdraw\n\n\t\tif( is_wp_error( $result ) ){\n\t\t\t$response = array( 'success' => false,'msg' => $result->get_error_message() );\n\t\t}\n\t\twp_send_json( $response );\n\t}", "title": "" }, { "docid": "bede44887ddfa0f0f41c237b581b05c5", "score": "0.62157136", "text": "function reset_bank()\n \t{\n\n\t\tif ( !$this->ipsclass->member['g_tools_pts'] )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_no_tools_pts'));\n\t\t}\n\t\n\t\t$this->ipsclass->DB->build_query( array( 'update' => 'members', 'set' => \"deposited_points=0\" ) );\n\t\t$this->ipsclass->DB->exec_query();\n\n\t\t$s = intval($this->ipsclass->input['status']);\n\n\t\t$this->ipsclass->boink_it( $this->ipsclass->base_url.\"autocom=points&amp;cmd=tools&amp;s=\".$s );\n\n \t}", "title": "" }, { "docid": "2eea5473a44f7d98fe519863cfb8aaf1", "score": "0.6204898", "text": "public function ReductFromBalance()\n {\n global $g_oMemberSession;\n global $g_dNow;\n \n if ($this->m_aData[self::PROPERTY_PAYMENT_METHOD_ID] != Consts::PAYMENT_METHOD_REDUCT_FROM_BALANCE)\n return FALSE;\n \n if ($this->TotalCoopDelta == 0) //no real change\n return FALSE;\n \n if (!$this->CheckEditPermission()) //since it is a public method\n return FALSE;\n \n $dNow = $g_dNow;\n $sNow = $dNow->format(DATABASE_DATE_FORMAT);\n \n $bSessionWrite = FALSE;\n \n //balance\n $sSQL = \" UPDATE T_Member SET mBalance = mBalance - :delta, mBalanceHeld = mBalanceHeld - :delta \" . \n \" WHERE MemberID = \" . $this->m_aData[self::PROPERTY_MEMBER_ID] . ';';\n\n $this->RunSQLWithParams( $sSQL, array(\n \"delta\" => $this->TotalCoopDelta));\n \n //session write\n if ($g_oMemberSession->MemberID == $this->m_aData[self::PROPERTY_MEMBER_ID])\n {\n $_SESSION[UserSessionBase::KEY_BALANCE] = $_SESSION[UserSessionBase::KEY_BALANCE] - $this->TotalCoopDelta;\n $_SESSION[UserSessionBase::KEY_BALANCE_HELD] = $_SESSION[UserSessionBase::KEY_BALANCE_HELD] - $this->TotalCoopDelta;\n $bSessionWrite = TRUE;\n }\n\n //cachier\n $sSQL = \" UPDATE T_PickupLocation \" .\n \" SET mPrevCachier = mCachier, mCachier = mCachier - :delta, dCachierUpdate = :CachierUpdate \" .\n \" WHERE PickupLocationKeyID = \" . $this->m_aData[self::PROPERTY_PICKUP_LOCATION_ID] . ';';\n\n $this->RunSQLWithParams( $sSQL, array(\n \"delta\" => $this->TotalCoopDelta,\n \"CachierUpdate\" => $sNow,));\n\n //transaction\n $sSQL = \" INSERT INTO T_Transaction (PickupLocationKeyID, MemberID, ModifiedByMemberID, mAmount, dDate, sTransaction) \" .\n \" VALUES(:pickuplocid, :memberid, :modifier, :amount, :date, :desc);\";\n\n $this->RunSQLWithParams($sSQL, array(\n 'pickuplocid' => $this->m_aData[self::PROPERTY_PICKUP_LOCATION_ID],\n 'memberid' => $this->m_aData[self::PROPERTY_MEMBER_ID],\n 'modifier' => $g_oMemberSession->MemberID,\n 'amount' => (-$this->TotalCoopDelta),\n 'date' => $sNow,\n 'desc' => '<!$TRANSACTION_TYPE_REDUCT_FROM_BALANCE$!>',\n ));\n \n return $bSessionWrite;\n \n }", "title": "" }, { "docid": "4a472e978bc41ec12e219da8b602283e", "score": "0.6199879", "text": "function deposit_form()\n\t{\n\t\tif ( !$this->ipsclass->vars['points_bank'] )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_bank_offline'));\n\t\t}\n\t\t\n\t\tif ( !$this->ipsclass->member['points'] )\n\t\t{\n\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_no_points'));\n\t\t}\n\t\t\n\t\t$data['points'] = $this->ipsclass->do_number_format($this->ipsclass->member['points']);\n\t\t$data['bank'] = $this->ipsclass->do_number_format($this->ipsclass->member['deposited_points']);\n\t\t\n\t\t$this->output .= $this->ipsclass->compiled_templates['skin_points']->bank_depo( $data );\n\t\t\n\t\t$this->page_title = $this->ipsclass->lang['bank'];\n\t\t$this->nav[] = $this->ipsclass->lang['bank'];\n\t}", "title": "" }, { "docid": "6c7a21af1091b005bd9a3e5ee9b4b8b0", "score": "0.6164323", "text": "function transferTo($dbc, $account1ID, $account2ID, $amount)\r\n{\r\n if(!Accounts::doesAccountExists($dbc, $account1ID) || !Accounts::doesAccountExists($dbc, $account2ID))\r\n {\r\n echo \"One of the accounts do not exists </br>\";\r\n }\r\n\r\n else if ($account1ID == $account2ID)\r\n {\r\n echo \"can't transfer to same account </br>\";\r\n }\r\n\r\n else {\r\n $instancedAcc1 = Accounts::generateInstancedAccountByID($dbc, $account1ID);\r\n $instancedAcc2 = Accounts::generateInstancedAccountByID($dbc, $account2ID);\r\n\r\n if($instancedAcc2->getAccountType() == 'credit')\r\n {\r\n echo \"can't transfer to foreign credit accounts </br>\";\r\n }\r\n\r\n else if($instancedAcc1->getTransactionLeft() <= 0)\r\n {\r\n //2$ charges per transactions\r\n //TODO iT DOES NOT REMOVE A TRANSACTIONLEFT AT THIS POINT, DUNNO IF WE WANT TO CHANGE IT\r\n if ($instancedAcc1->getBalance() > $amount + 2)\r\n {\r\n $instancedBranch = new Branch($dbc, $instancedAcc1->findBranchID($dbc));\r\n $instancedBranch->instantiateOwnBankAcc($dbc);\r\n\r\n $instancedBranchAccount1 = $instancedBranch->getBranchAccount();\r\n transferAccountUpdate($dbc, $instancedAcc1,$instancedAcc2, $amount);\r\n transferAccountUpdate($dbc, $instancedAcc1,$instancedBranchAccount1, 2);\r\n transferInstanciation($dbc, $instancedAcc1,$instancedAcc2, $amount);\r\n transferInstanciation($dbc, $instancedAcc1,$instancedBranchAccount1, 2);\r\n }\r\n\r\n else\r\n {\r\n echo \"Insuficient funds to pay the transaction fee\";\r\n }\r\n }\r\n\r\n else {\r\n\r\n if ($instancedAcc1->getBalance() > $amount)\r\n {\r\n $instancedAcc1->setTransactionLeft($instancedAcc1->getTransactionLeft() -1);\r\n transferAccountUpdate($dbc, $instancedAcc1,$instancedAcc2, $amount);\r\n transferInstanciation($dbc, $instancedAcc1,$instancedAcc2, $amount);\r\n }\r\n else\r\n {\r\n echo \"Insufficient funds to transfer:$amount\";\r\n }\r\n\r\n }\r\n }\r\n}", "title": "" }, { "docid": "a262bdf0c4ce9c76e2a448b001752dc6", "score": "0.6146443", "text": "public function balance();", "title": "" }, { "docid": "fb20880be1cac01edcb875d69729ef6b", "score": "0.61146915", "text": "public function canWithdraw()\n {\n return true;\n }", "title": "" }, { "docid": "4a79a3016b784220e1280fbef93e8122", "score": "0.6100879", "text": "public function Deposit($amount)\n {\n\n $transDate = new DateTime();\n\n if ($this->Locked === false) {\n\n $this->Balance += $amount;\n\n array_push($this->Audit, array(\"DEPOSIT ACCEPTED\", $amount, $this->Balance, $transDate->format('c')));\n } else {\n array_push($this->Audit, array(\"DEPOSIT DENIED\", $amount, $this->Balance, $transDate->format('c')));\n }\n }", "title": "" }, { "docid": "f0cac527fb0601f18683a6d6e0cb0b38", "score": "0.6096767", "text": "private function withdrawBalance($owner_id, $amount)\n {\n // buyurtmani olamiz\n $invoice = $this->getInvoice($owner_id);\n if (!$invoice) {\n throw new \\Exception(\"Can't find order\");\n }\n\n // buyurtmani tolandi db belgilash\n $this->pdo->query(\"UPDATE `dle_billing_invoice` SET `invoice_date_pay` = '0' WHERE invoice_id = {$owner_id}\");\n $this->pdo->query(\"UPDATE `dle_users` SET `user_balance` = (user_balance - '{$amount}') WHERE name = '{$invoice['invoice_user_name']}'\");\n }", "title": "" }, { "docid": "efa19344124110cf8e70f07de6b4fafa", "score": "0.6082195", "text": "public function deposit($amount) {\n $this->cashTransaction($amount, 'DEPOSIT');\n }", "title": "" }, { "docid": "8e3cf28c1f0a81cb79d49b97fd412839", "score": "0.60727334", "text": "private function updateWalletforcredit($vendor, $transaction) \n {\n $commission = $this->calculateCommission($transaction->type, $vendor->user_id, $transaction->amount);\n $distCommission = $this->calculateCommission($transaction->type, $vendor->parent_id, $transaction->amount);\n $superDistId = Vendor::where('user_id', $vendor->parent_id)->first()->parent_id;\n $superDistCommission = $this->calculateCommission($transaction->type, $superDistId, $transaction->amount);\n\n\n // Perform Wallet Updations for Amount Transacted\n if ($transaction->type == 1 || $transaction->type == 2) {\n //$vendor->balance += $transaction->type == 1 ? -$transaction->amount : ($transaction->type == 2 ? $transaction->amount : 0);\n /*$amount_wallet_transaction = WalletTransaction::create([\n 'user_id' => $vendor->user_id,\n 'transaction_type' => $transaction->type == 1 ? 0 : ($transaction->type == 2 ? 1 : null),\n 'activity' => $transaction->type == 1 ? 'debitt' :($transaction->type == 2 ? 'creditt' : ' '),\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $transaction->amount,\n 'balance' => $vendor->balance\n ]);\n\n $key = $transaction->type == 1 ? 'debit_id' : ($transaction->type == 2 ? 'credit_id' : '');\n\n AepsWalletAction::create([\n 'user_id' => $vendor->user_id,\n 'amount' => $transaction->amount,\n 'status' => 1,\n $key => $amount_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => false\n ]);\n */\n $key = $transaction->type == 1 ? 'debit_id' : ($transaction->type == 2 ? 'credit_id' : '');\n\n $dipl_vendor = Vendor::where('type', 8)->lockForUpdate()->first();\n $dipl_vendor->balance += $transaction->type == 1 ? -$transaction->amount : ($transaction->type == 2 ? $transaction->amount : 0);\n $dipl_vendor->save();\n $dipl_amount_wallet_transaction = WalletTransaction::create([\n 'user_id' => $dipl_vendor->user_id,\n 'transaction_type' => $transaction->type == 1 ? 0 : ($transaction->type == 2 ? 1 : null),\n 'activity' => $transaction->type == 1 ? 'debit' :($transaction->type == 2 ? 'credit' : ' '),\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $transaction->amount,\n 'balance' => $dipl_vendor->balance\n ]);\n\n AepsWalletAction::create([\n 'user_id' => $dipl_vendor->user_id,\n 'amount' => $transaction->amount,\n 'status' => 1,\n $key => $dipl_amount_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => false\n ]);\n\n }\n\n $dipl_vendor = Vendor::where('type', 8)->lockForUpdate()->first();\n\n // Perform Wallet Updations for Commission\n if ($commission && $dipl_vendor->commission && $vendor->commission) {\n $commissionAmount = 0;\n if ($commission['rate_type'] == 1)\n $commissionAmount = $commission['rate'];\n if ($commission['rate_type'] == 2)\n $commissionAmount = $transaction->amount * $commission['rate']/100;\n $vendor->balance += $commissionAmount; \n $commission_wallet_transaction = WalletTransaction::create([\n 'user_id' => $vendor->user_id,\n 'transaction_type' => 1,\n 'activity' => 'credit',\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $commissionAmount,\n 'balance' => $vendor->balance\n ]);\n\n AepsWalletAction::create([\n 'user_id' => $vendor->user_id,\n 'amount' => $commissionAmount,\n 'status' => 1,\n 'credit_id' => $commission_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => true\n ]);\n }\n\n if ($distCommission && $dipl_vendor->commission) {\n $distributor = Vendor::where('user_id', $vendor->parent_id)->lockForUpdate()->first();\n $distCommissionAmount = 0;\n if ($distributor && $distributor->commission == 1) {\n if ($distCommission['rate_type'] == 1)\n $distCommissionAmount = $distCommission['rate'];\n if ($distCommission['rate_type'] == 2)\n $distCommissionAmount = $transaction->amount * $distCommission['rate']/100;\n $distributor->balance += $distCommissionAmount;\n $commission_wallet_transaction = WalletTransaction::create([\n 'user_id' => $distributor->user_id,\n 'transaction_type' => 1,\n 'activity' => 'credit',\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $distCommissionAmount,\n 'balance' => $distributor->balance\n ]);\n\n $distributor->save();\n\n AepsWalletAction::create([\n 'user_id' => $distributor->user_id,\n 'amount' => $distCommissionAmount,\n 'status' => 1,\n 'credit_id' => $commission_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => true\n ]);\n } \n }\n\n if ($superDistCommission && $dipl_vendor->commission) {\n $superDistributor = Vendor::where('user_id', $superDistId)->lockForUpdate()->first();\n $superDistCommissionAmount = 0;\n if ($superDistributor && $superDistributor->commission == 1) {\n if ($superDistCommission['rate_type'] == 1)\n $superDistCommissionAmount = $superDistCommission['rate'];\n if ($superDistCommission['rate_type'] == 2)\n $superDistCommissionAmount = $transaction->amount * $superDistCommission['rate']/100;\n $superDistributor->balance += $superDistCommissionAmount;\n $commission_wallet_transaction = WalletTransaction::create([\n 'user_id' => $superDistributor->user_id,\n 'transaction_type' => 1,\n 'activity' => 'credit',\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $superDistCommissionAmount,\n 'balance' => $superDistributor->balance\n ]);\n\n $superDistributor->save();\n\n AepsWalletAction::create([\n 'user_id' => $superDistributor->user_id,\n 'amount' => $superDistCommissionAmount,\n 'status' => 1,\n 'credit_id' => $commission_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => true\n ]);\n }\n \n }\n\n return $vendor->balance;\n }", "title": "" }, { "docid": "f77a31b7b9a7d1f9cd33a0bae3709741", "score": "0.60708827", "text": "function write_accounts($newledger){\n}", "title": "" }, { "docid": "86ca1a081193da59d01c07557db7b4a6", "score": "0.6044835", "text": "function bank()\n\t{\n\t\t$data['points'] = $this->ipsclass->do_number_format($this->ipsclass->member['points']);\n\t\t$data['bank'] = $this->ipsclass->do_number_format($this->ipsclass->member['deposited_points']);\n\t\t\n\t\t$this->output .= $this->ipsclass->compiled_templates['skin_points']->bank( $data );\n\t\t\n\t\t$this->page_title = $this->ipsclass->lang['bank'];\n\t\t$this->nav[] = $this->ipsclass->lang['bank'];\n\t}", "title": "" }, { "docid": "52faf37551fc53ff757aee2789f872ac", "score": "0.60264564", "text": "public function fund_deposit_with_bank($user_data) {\n\n\t $senderget = $this->core_model->core_get_user_with_email($this->session->email);\n\t $fees = $user_data['amount']*$this->site_settings->bank_deposit_percentage_fees/100 + $this->site_settings->bank_deposit_flat_fees;\n\t\t$amount = $user_data['amount'] - $fees;\n\t\t\n\t\t// Get sender name\n\t\tif ($senderget->business_name) {\n\t\t\t$sender_name = $senderget->business_name;\n\t\t}else {\n\t\t\t$sender_name = $senderget->full_name;\n\t\t}\n\t\t\n\t $this->db->set('sender', $this->session->id);\n\t\t$this->db->set('sender_name', $sender_name);\n\t\t$this->db->set('sender_email', $senderget->email);\n\t\t$this->db->set('userid', $this->session->id);\n\t\t$this->db->set('receiver', 'Bank - '.$sender_name.'');\n $this->db->set('amount', number_format($amount, 2, '.', ''));\n\t\t$this->db->set('total', number_format($user_data['amount'], 2, '.', ''));\n\t\t$this->db->set('fees', number_format($fees, 2));\n\t\t$this->db->set('txn_id', 'TXT'.rand(1000, 9999).'TZ'.time().'');\n\t\t$this->db->set('status', 'Pending');\n\t\t$this->db->set('payment_type', 'Deposit');\n\t\t$this->db->set('payment_method', 'Bank');\n $this->db->set('date', time());\n\n $this->db->insert('transactions');\n\n if ($this->db->affected_rows() == 1) {\n return TRUE;\n } else {\n return FALSE;\n }\n\n }", "title": "" }, { "docid": "e4112eb4be1489e9bc54309b40a4da21", "score": "0.5994567", "text": "public function abot_reinvest(){\n $u_id = $this->session->userdata('u_id');\n \n $arr = str_split($u_id); // convert string to an array\n $last_digit = end($arr);\n \n // if($last_digit == 4 || $last_digit == 5){\n // echo \"Lock by admin\";\n // exit;\n // }\n \n if($this->db->query(\"SELECT * FROM admin_locks WHERE name = ?\", array('abot_lock'))->row()->lock_status == 1 && $u_id != '13870'){\n echo \"Lock by admin\";\n exit;\n } \n // $arb_in_usd = ARB_VALUE_IN_USD;\n \n // $arb_in_usd = doubleval(file_get_contents(\"https://www.arbitraging.co/platform/abot_arb\"));\n // if($arb_in_usd <= 0){\n // exit;\n // }\n \n if($u_id != ''){\n $abot_wallet = $this->db->query(\"SELECT * FROM abot_wallet WHERE user_id = ?\", array($u_id))->row();\n if($abot_wallet->earned <= 0){\n echo \"false\"; exit;\n }\n \n $earned_in_db = $abot_wallet->earned;\n \n $arb_in_usd = $this->calculate_arb_abot_price($earned_in_db, 'in');\n if($arb_in_usd <= 0){\n exit;\n }\n \n $earned_arb_to_dollar = ($earned_in_db * $arb_in_usd);\n $new_pending = $abot_wallet->pending + $earned_arb_to_dollar;\n \n $this->db->query(\"UPDATE abot_wallet SET pending = ?, earned = ? WHERE user_id = ?\", array($new_pending, 0, $u_id));\n $this->db->query(\"INSERT into wallet_logs (user_id, type, value, comment, last_blnc) values (?,?,?,?,?)\", array($u_id, 'abotWallet_earned', '-'.$abot_wallet->earned, \"aBot reinvest Earned ARB to pending $\", $abot_wallet->earned));\n $this->db->query(\"INSERT into wallet_logs (user_id, type, value, comment, last_blnc) values (?,?,?,?,?)\", array($u_id, 'abotWallet_pending', $earned_arb_to_dollar, \"Credit $ in aBot pending arb in usd ( \" .$arb_in_usd. \" )\", $abot_wallet->pending));\n\t echo \"true\"; exit;\n }else{\n echo \"false\"; exit;\n }\n }", "title": "" }, { "docid": "3c824b2e5ca79970bf3c8a90b7eff321", "score": "0.59798384", "text": "public function deposit($paymentId, $amount);", "title": "" }, { "docid": "14101d1f826705e4147dd7ec5d88d1db", "score": "0.59788686", "text": "public function store(Request $request)\n {\n $request->validate([\n 'release_amount'=>'required',\n 'release_date'=>'required',\n 'balance'=>'required',\n 'deposit_id'=>'required',\n ]);\n $deposit=Deposit::find($request->deposit_id);\n $department=Department::find($deposit->department_id)->pluck('abbreviation');\n do {\n $release_memo = $department[0].'/'.strval(mt_rand( 10000, 99999 ));\n } while ( DB::table( 'withdraws' )->where( 'release_memo', $release_memo )->exists() );\n // dd($release_memo);\n $withdrawsave=new Withdraw;\n $withdrawsave->release_amount=$request->release_amount;\n $withdrawsave->release_date=$request->release_date;\n $withdrawsave->balance=$request->balance;\n $withdrawsave->deposit_id=$request->deposit_id;\n $withdrawsave->balance=$request->balance;\n $withdrawsave->release_memo=$release_memo;\n $withdrawsave->save();\n \n\n\n $deposit=Deposit::find($request->deposit_id);\n $total_withdrawn=Withdraw::where('deposit_id',$request->deposit_id)->pluck('release_amount')->sum();\n $a=$deposit->challan_amount;\n $b=$deposit->withdrawn_amount+$request->release_amount;\n $balance=(int)$a-(int)$b;\n \n Deposit::where('id',$request->deposit_id)->update(['withdrawn_amount'=>$total_withdrawn, 'balance'=>$balance]);\n $withdraws=Withdraw::where('deposit_id',$request->deposit_id);\n return redirect()->route('withdraws.main',$request->deposit_id)->with( ['deposit' => $deposit,'withdraws' => $deposit] )->with('status', 'withdraw updated!');;\n }", "title": "" }, { "docid": "d76fe40175d32836544d948e176c9ae5", "score": "0.59622836", "text": "public function withdraw_save(){\n\t\t$reqid = $this -> input -> post(\"lab_ref_no\");\n\t\t$version_id = $this -> input -> post(\"version_id\");\n\t\t$req_version_id = $this -> input -> post(\"req_version_id\");\n\t\t$withdrawal_status = $this -> input -> post(\"w_status\");\n\t\t\n\t\t$samples_returned = $this -> input -> post(\"samples_returned\");\n\t\t$issued_samples_available = $this -> input -> post(\"issued_samples\");\n\t\t$req_samples_available = $this -> input -> post(\"request_samples\");\n\t\t\n\t\tif($withdrawal_status == 0){\n\t\t$issued_sample_qty = $issued_samples_available;\n\t\t$used_samples = $issued_samples_available - $samples_returned;\n\t\t$request_sample_qty = $req_samples_available + $samples_returned;\n\t\t$wstatus = 1;\n\t\t}\n\n\t\telse if($withdrawal_status == 1){\n\t\t$issued_sample_qty = $samples_returned;\n\t\t$used_samples = 0;\n\t\t$request_sample_qty = $req_samples_available - $samples_returned;\n\t\t$wstatus = 0;\n\t\t}\t\n\n\t\t\n\t\t$issue_data1 = array(\n\t\t'samples_no' => $issued_sample_qty,\n\t\t'samples_used' => $used_samples\n\t\t);\n\t\t\n\t\t$issue_data2 = array(\n\t\t'withdrawal_status' => $wstatus,\n\t\t'samples_returned' => $samples_returned\n\t\t);\n\t\t\n\t\t$request_data = array(\n\t\t'sample_qty' => $request_sample_qty\n\t\t);\n\t\t\n\t\t$this -> db -> where(array('request_id' => $reqid));\n\t\t$this -> db -> update('request', $request_data);\n\t\t\n\t\t$this -> db -> where(array('lab_ref_no' => $reqid));\n\t\t$this -> db -> update('sample_issuance', $issue_data1);\n\t\t\n\t\t$this -> db -> where(array('lab_ref_no' => $reqid));\n\t\t$this -> db -> update('sample_issuance', $issue_data2);\n\t\t\n\t\tredirect('sample_issue/issued_listing');\n\t\t\n\t}", "title": "" }, { "docid": "ae7bbb63fc8b0ca5782c177870546a46", "score": "0.5943577", "text": "public function testCheckIfTheSellerCanCheckOutThereWallet()\n {\n $user = User::find(1);\n $wallet = $user->Wallet;\n if($wallet){\n $amount = $wallet->amount;\n $wallet->amount = 1;\n $wallet->save();\n $withdraw = new PaypalStrategy($user->email,\"123456789\");\n $this->assertEquals(\"0\",$withdraw->withdraw($user));\n\n $wallet->amount = $amount;\n $wallet->save();\n\n }else{\n $this->assertTrue(false);\n }\n\n }", "title": "" }, { "docid": "10efb63d4d3970f6aabc75062a9cfac9", "score": "0.5936652", "text": "public function deduct_balance(Request $request)\n {\n $cust= DB::table('connection_request')->select('user_id')->where('auth_code','=', $request->auth_code)->where('connection_id','=', $request->connection_id)->first();\n if($cust)\n {\n $wallet = Wallet::where('customer_id',$cust->user_id)->first();\n $post_bal = $wallet->balance;\n $decrement = $request->amount;\n $curr_bal = $post_bal - $decrement;\n $wallet->balance = $curr_bal;\n $wallet->save();\n\n $transaction = new Transaction;\n $transaction->wallet_id = $wallet->id;\n $transaction->amount = $decrement;\n $transaction->transaction_id = time();\n $transaction->source = 'Withdraw Request';\n $transaction->trans_type = 'debit';\n $transaction->balance = $curr_bal;\n $transaction->save();\n\n $balance = array('customer' => $wallet->customer->name,'balance' => $wallet->balance);\n return $this->processResponse('add_balance',$balance,'success','Withdraw request done');\n }\n else\n return $this->processResponse(null,null,'error','Enter correct login details');\n\n }", "title": "" }, { "docid": "3bffe24c666e55bb9bc38ae67a3ec50e", "score": "0.59265304", "text": "public function show(Withdraw $withdraw)\n {\n //\n\t\tif($withdraw->status==1)\n\t\t\t$status ='<p class=\"text-success\" ><i class=\"fas fa-check\"></i> Approved</p>';\n\t\t\telse if($withdraw->status==2)\n\t\t\t\t$status ='<p class=\"text-danger\" ><i class=\"fas fa-times\"></i> Canceled</p>';\n\t\t\telse if($withdraw->status==0)\n\t\t\t$status ='<p class=\"text-warning\" ><i class=\"fas fa-clock\"></i> Pending</p>';\n\t\t\n $output='';\n $output.= ' \n <div style=\"overflow-y: height:300px;\" class=\"table-responsive\"> \n <table align=\"center\" border=\"0\" class=\"table\" width=\"100%\"> '; \n \n \n $output .= ' \n\t\t\t\t<tr> \n <td width=\"30%\"><label>Amount</label></td> \n <td width=\"70%\">$'.$withdraw->amount.'</td> \n\t\t\t\t</tr>\n\t\t\t\t<tr> \n <td width=\"30%\"><label>Type</label></td> \n <td width=\"70%\">'.ucwords($withdraw->type).'</td> \n\t\t\t\t</tr>';\n\t\t\t\tif($withdraw->type=='paypal')\n\t\t\t\t{\n\t\t\t\t $output .= '<tr> \n <td width=\"30%\"><label>Paypal Id</label></td> \n <td width=\"70%\">'.$withdraw->paypal_id.'</td> \n\t\t\t\t</tr>'; \t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$output .= '\n\t\t\t\t\t\n\t\t\t\t\t<tr> \n <td width=\"30%\"><label>Ac Holder Name</label></td> \n <td width=\"70%\">'.$withdraw->account_holder_name.'</td> \n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr> \n <td width=\"30%\"><label>Ac No</label></td> \n <td width=\"70%\">'.$withdraw->account_no.'</td> \n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr> \n <td width=\"30%\"><label>Phone No</label></td> \n <td width=\"70%\">'.$withdraw->phone_no.'</td> \n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr> \n <td width=\"30%\"><label>Bank Name</label></td> \n <td width=\"70%\">'.$withdraw->bank_name.'</td> \n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr> \n <td width=\"30%\"><label>Branch Name</label></td> \n <td width=\"70%\">'.$withdraw->branch_name.'</td> \n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr> \n <td width=\"30%\"><label>Swit Code</label></td> \n <td width=\"70%\">'.$withdraw->swift_code.'</td> \n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr> \n <td width=\"30%\"><label>Branch Address</label></td> \n <td width=\"70%\">'.$withdraw->branch_address.'</td> \n\t\t\t\t\t</tr>\n\t\t\t\t';\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t $output .= ' \n\t\t\t \n\t\t\t <tr> \n <td width=\"30%\"><label>Created Date</label></td> \n <td width=\"70%\">'.date(\"d-M-Y\",strtotime($withdraw->today_date)).'</td> \n </tr>\n\t\t\t <tr> \n <td width=\"30%\"><label>Status</label></td> \n <td width=\"70%\">'.$status.'</td> \n </tr>\n ';\n \n \n \n $output .= \"</table></div>\"; \n echo $output; \n }", "title": "" }, { "docid": "31461f363b0993a395027d42988ae024", "score": "0.5923987", "text": "public function fund_withdraw_with_western($user_data) {\n\n\t\t$fees = $user_data['amount']*$this->site_settings->withdraw_western_percentage_fees/100 + $this->site_settings->withdraw_western_flat_fees;\n\t\t$amount = $user_data['amount'] - $fees;\n\t $WesternInfo = 'Name: '.$user_data['name'].' </br> \n\t\t City: '.$user_data['city'].' </br>\n\t\t Country: '.$user_data['country'].' </br>\n\t\t Phone: '.$user_data['phone'].'';\n\t\n\t $this->db->set('sender', $this->session->id);\n\t\t$this->db->set('userid', $this->session->id);\n\t\t$this->db->set('email_add', $WesternInfo);\n\t\t$this->db->set('receiver', 'WESTERN UNION - '.$user_data['name'].'');\n $this->db->set('amount', number_format($amount, 2, '.', ''));\n\t\t$this->db->set('total', number_format($user_data['amount'], 2, '.', ''));\n\t\t$this->db->set('fees', number_format($fees, 2));\n\t\t$this->db->set('note', $WesternInfo);\n\t\t$this->db->set('txn_id', 'TXT'.rand(1000, 9999).'TZ'.time().'');\n\t\t$this->db->set('status', 'Pending');\n\t\t$this->db->set('payment_type', 'Withdraw');\n\t\t$this->db->set('payment_method', 'WESTERN UNION');\n $this->db->set('date', time());\n\n $this->db->insert('transactions');\n\n if ($this->db->affected_rows() == 1) {\n return TRUE;\n } else {\n return FALSE;\n }\n\n }", "title": "" }, { "docid": "dcc3c4ccd4c2127fecdd04c2b99c3eac", "score": "0.5922844", "text": "public function saveTransaction($data)\n {\n $branchID = $data['branch_id'];\n $accountID = $data['account_id'];\n $date = $data['date'];\n $amount = $data['amount'];\n\n // get the current balance of the selected account\n $qbal = $this->app_lib->get_table('accounts', $accountID, true);\n $cbal = $qbal['balance'];\n $bal = $cbal + $amount;\n // query system voucher head / insert\n $arrayHead = array(\n 'name' => 'Online Admission Fees Collection',\n 'type' => 'income',\n 'system' => 1,\n 'branch_id' => $branchID\n );\n $this->db->where($arrayHead);\n $query =$this->db->get('voucher_head');\n if ($query->num_rows() > 0) {\n $voucher_headID = $query->row()->id;\n } else {\n $this->db->insert('voucher_head', $arrayHead);\n $voucher_headID = $this->db->insert_id();\n }\n // query system transactions / insert\n $arrayTransactions =array(\n 'account_id' => $accountID,\n 'voucher_head_id' => $voucher_headID,\n 'type' => 'deposit',\n 'system' => 1,\n 'date' => date(\"Y-m-d\", strtotime($date)),\n 'branch_id' => $branchID\n );\n $this->db->where($arrayTransactions);\n $query = $this->db->get('transactions');\n if ($query->num_rows() == 1) {\n $this->db->set('amount', 'amount+' . $amount, FALSE);\n $this->db->set('cr', 'cr+' . $amount, FALSE);\n $this->db->set('bal', $bal);\n $this->db->where('id', $query->row()->id);\n $this->db->update('transactions');\n } else {\n $arrayTransactions['ref'] = '';\n $arrayTransactions['amount'] = $amount;\n $arrayTransactions['dr'] = 0;\n $arrayTransactions['cr'] = $amount;\n $arrayTransactions['bal'] = $bal;\n $arrayTransactions['pay_via'] = 5;\n $arrayTransactions['description'] = date(\"d-M-Y\", strtotime($date)) . \" Total Fees Collection\";\n $this->db->insert('transactions', $arrayTransactions);\n }\n\n $this->db->where('id', $accountID);\n $this->db->update('accounts', array('balance' => $bal));\n }", "title": "" }, { "docid": "55f80e10b79334ac50dc18a2f39eb966", "score": "0.5910575", "text": "function warquest_clan_bank() {\r\n \r\n\t/* input\t*/\r\n\tglobal $mid;\r\n\tglobal $sid;\r\n\tglobal $ssid;\r\n\r\n\tglobal $player;\t\r\n\tglobal $config;\r\n\tglobal $offset;\r\n\t\r\n\t/* output */\r\n\tglobal $page;\r\n\r\n\t$player_clan = warquest_db_player_clan($player->pid);\r\n\t\t\r\n\tif ( !isset($player_clan->cid) || ($player_clan->approved==0)) { \r\n\t\r\n\t\t$page .= '<div class=\"subparagraph\">';\r\n\t\t$page .= t('CLAN_BANK');\r\n\t\t$page .= '</div>';\r\n\t\t\r\n\t\t$message = t('CLAN_BANK_NO_CLAN');\r\n\t\t$page .= warquest_box_icon(\"warning\", $message);\r\n\t\t\r\n\t} else {\r\n\t\t\r\n\t\t$clan = warquest_db_clan($player_clan->cid);\r\n\t\r\n\t\t$page .= '<div class=\"subparagraph\">';\r\n\t\t$page .= $clan->name.' '.t('CLAN_BANK');\r\n\t\t$page .= '</div>';\n\t\r\n\t\t$page .= '<div class=\"box\">';\t\t\t\r\n\t\t\r\n\t\t$page .= '<table>';\r\n\t\t$page .= '<tr>';\r\n\t\t$page .= '<td width=\"160\" >';\t\r\n\t\t$page .= warquest_bank_image(4, 140, 100);\r\n\t\t$page .= '</td>';\r\n\t\t\r\n\t\t$page .= '<td>';\r\n\t\t\r\n\t\t$page .= '<table>';\r\n\t\t\r\n\t\t$page .= '<tr>';\r\n\t\t$page .= '<td width=\"340\">';\t\t\r\n\t\t$page .= t('LINK_BALANCE').\":<br/>\";\r\n\t\t$page .= '<input id=\"text\" name=\"balance\" size=\"19\" maxlength=\"16\" disabled=\"disabled\" type=\"text\" ';\r\n\t\t$page .= 'value=\"'.number_format($clan->money,0,\",\",\".\").'\">';\r\n\t\t$page .= \"</td>\";\r\n\t\t\r\n\t\t$page .= \"<td>\";\t\r\n\t\t$page .= \"</td>\";\r\n\t\t\r\n\t\t$page .= \"</tr>\";\r\n\t\t\r\n\t\t$page .= \"<tr>\";\r\n\t\t\r\n\t\t$page .= '<td>';\r\n\t\tif ( isset($player_clan->cid) && ($clan->cid==$player_clan->cid) ) {\r\n\t\t\t$page .= t('LINK_DEPOSIT').\":<br/>\";\r\n\t\t\t$page .= '<input id=\"text\" name=\"deposit\" size=\"19\" maxlength=\"16\" type=\"text\" value=\"';\r\n\t\t\t$tmp = $player->money_step * 10;\r\n\t\t\tif ( $tmp > $player->money ) {\r\n\t\t\t\t$tmp = $player->money;\r\n\t\t\t}\r\n\t\t\t$page .= number_format($tmp,0,\",\",\".\");\r\n\t\t\t$page .= '\"><br/>';\r\n\t\t\t$page .= warquest_link('mid='.$mid.'&sid='.$sid.'&ssid='.$ssid.'&cid='.$clan->cid.'&eid='.EVENT_CLAN_DEPOSIT, t('LINK_DEPOSIT'));\r\n\t\t}\r\n\t\t$page .= \"</td>\";\r\n\t\t\r\n\t\t$page .= \"</table>\";\r\n\t\t\r\n\t\t$page .= '</td>';\r\n\t\t$page .= '</tr>';\r\n\t\t$page .= \"</table>\";\r\n\t\t\r\n\t\t$page .= '</div>';\r\n\t\t\r\n\t\t$page .= '<div class=\"note\">';\r\n\t\t$page .= t('CLAN_BANK_INFO', $config[\"init_clan_bank_deposit\"], $config[\"init_clan_bank_interest\"]);\r\n\t\t$page .= '</div>';\r\n\t\t\t\r\n\t\t\t\r\n\t\t$page .= '<div class=\"subparagraph\">'.t('CLAN_BANK_TRANSACTION').'</div>' ;\r\n\t\t$limit=20;\r\n\t\t\r\n\t\t$query1 = 'select cid from clan_bank where cid='.$clan->cid;\r\n\t\t$result1 = warquest_db_query($query1);\t\r\n\t\t$total = warquest_db_num_rows($result1);\r\n\t\t\r\n\t\tif ($total == 0) {\r\n\t\t\r\n\t\t\t$message = t('CLAN_BANK_NO_LOG');\r\n\t\t\t$page .= warquest_box_icon('info', $message);\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\t/* show bank transactions. */\r\n\t\t\t$query2 = 'select a.pid, a.amount, a.action, a.balance, ';\r\n\t\t\t$query2 .= 'date_format(a.date , \"%d-%m-%Y %H:%i:%s\") as date, ';\r\n\t\t\t$query2 .= '(select name from player where pid=a.pid) as name, '; \r\n\t\t\t$query2 .= '(select country from player where pid=a.pid) as country '; \r\n\t\t\t$query2 .= 'from clan_bank a where a.cid='.$clan->cid.' order by a.cbid desc ';\r\n\t\t\t$query2 .= 'limit '.$offset.','.$limit;\r\n\t\t\r\n\t\t\t$result2 = warquest_db_query($query2);\t\r\n\t\t\t\r\n\t\t\t$page .= '<div class=\"box rows\">';\r\n\t\t\t\r\n\t\t\t$page .= warquest_page_control($offset, $limit, $total, 1, '&cid='.$clan->cid);\r\n\t\t\t\r\n\t\t\t$page .= '<table>';\r\n\t\t\t\r\n\t\t\t$page .= '<tr>';\r\n\t\t\t$page .= '<th width=\"80\">'.t('GENERAL_AGO').'</th>';\r\n\t\t\t$page .= '<th width=\"310\">'.t('GENERAL_TRANSACTION').'</th>';\r\n\t\t\t$page .= '<th width=\"110\">'.t('GENERAL_BALANCE').'</th>';\r\n\t\t\t$page .= '</tr>';\r\n\t\t\t\r\n\t\t\twhile ($data2=warquest_db_fetch_object($result2)) {\r\n\t\t\t\r\n\t\t\t\t$page .= '<tr>';\r\n\t\t\t\t$page .= '<td>'.warquest_ui_ago($data2->date).'</td>';\r\n\t\t\t\t$page .= '<td>';\r\n\t\t\t\t\r\n\t\t\t\tswitch ($data2->action) {\r\n\t\r\n\t\t\t\t\tcase 10:\t\t\r\n\t\t\t\t\t\t$page .= player_format($data2->pid, $data2->name, $data2->country).' '.t('BANK_TRANSACTION_TYPE_'.$data2->action);\r\n\t\t\t\t\t\t$page .= ' '.dollar_format($data2->amount).'.';\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t\tcase 11:\t\t\r\n\t\t\t\t\t\t$page .= t('BANK_TRANSACTION_TYPE_'.$data2->action,t('GENERAL_PLANET_'.$data2->pid)).' ';\r\n\t\t\t\t\t\t$page .= ' '.dollar_format($data2->amount).'.';\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tdefault:\t\t\t\r\n\t\t\t\t\t\t$page .= t('BANK_TRANSACTION_TYPE_'.$data2->action);\r\n\t\t\t\t\t\t$page .= ' '.dollar_format($data2->amount).'.';\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t$page .= '</td>';\r\n\t\t\t\t$page .= '<td>'.money_format1($data2->balance).'</td>';\r\n\t\t\t\t$page .= '</tr>';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$page .= '</table>';\r\n\t\t\r\n\t\t\t$page .= warquest_page_control($offset, $limit, $total, 0, '&cid='.$clan->cid);\r\n\t\t\t\r\n\t\t\t$page .= '</div>';\t\t\r\n\t\t}\r\n\t}\r\n\t\r\n\t$page .= '<div class=\"note\">';\r\n\t$page .= t('CLAN_BANK_NOTE');\r\n\t$page .= '</div>';\r\n}", "title": "" }, { "docid": "34969eef2ca1346c858a6109ce03a86a", "score": "0.5888343", "text": "public function deposit(float $amount): void;", "title": "" }, { "docid": "44e9826ecd288dcf6f5a5c448e6d6a7a", "score": "0.5877805", "text": "private function settleExchangeMemberCbaWithdrawal()\n\t{\n\t\t// create transaction\n\t\t$transaction = $this->transactionRepo->record([\n\t\t\t'type_id' => $this->transaction_type_id,\n\t\t\t'merchant_exchange_id' => $this->merchantExchange->id,\n\t\t\t'merchant_user_id' => $this->merchantUser->id,\n\t\t\t'customer_exchange_id' => $this->customerExchange->id,\n\t\t\t'customer_member_id' => $this->customerMember->id,\n\t\t\t'notes' => $this->notes,\n\t\t]);\n\n\t\t// record journal entries\n\t\t$this->journalEntries = [];\n\t\t\n\t\t// Debit customer member’s cba account\n\t\t$this->journalEntries[] = $this->createJournalEntry('7040', -$this->debit_amount, $transaction->id, ['member_id' => $this->customerMember->id ]);\n\n\t\t// Debit merchant exchange’s unearned member barter revenue account\n\t\t$this->journalEntries[] = $this->createJournalEntry('4120', -$this->debit_amount, $transaction->id, ['exchange_id' => $this->merchantExchange->id ]);\n\n\t\t$this->transaction = $this->transactionRepo->settle($transaction);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c9eda2bda4cdd4d9ca6a9fd9c54a650d", "score": "0.58695936", "text": "public function depositStake ( $Bet ) {\n//\t\tvar_dump($Bet);\n $this->CI->load->sentinel();\n $UserModel = $this->CI->sentinel->getUserRepository();\n $user = $UserModel->find($Bet->user_id);\n $cash = $user->cash;\n if ( $Bet->effective_odd > 100 )\n $Bet->effective_odd = 100;\n $user->update(array(\n 'cash' => $cash + ($Bet->stake * $Bet->effective_odd)\n ));\n\n $this->CI->load->eloquent('payment/Transaction');\n Transaction::create([\n 'trans_id' => $user->id . $Bet->id ,\n 'price' => ($Bet->stake * $Bet->effective_odd) ,\n 'invoice_type' => 2 ,\n 'status' => 1 ,\n 'cash' => $cash + ($Bet->stake * $Bet->effective_odd) ,\n 'user_id' => $user->id ,\n 'description' => 'واریز مبلغ برد شرط به شناسه ' . $Bet->id ,\n ]);\n\n return true;\n }", "title": "" }, { "docid": "d1303e40b764b550c8db8aefbc91e9b9", "score": "0.58499694", "text": "public function deposit( $amount ) {\n\t\t$this -> balance += $amount * $this -> extra;\n\t}", "title": "" }, { "docid": "35e488e94439b8e50eebbba5715971d7", "score": "0.5849267", "text": "public function updateWithdrawState($id)\n {\n $this->db->where('wd_id', $id);\n $this->db->set('wd_status', 1);\n $this->db->update('zd_withdrawal');\n return TRUE;\n }", "title": "" }, { "docid": "b26bd9b0b814ddc01e8ac288c85ec693", "score": "0.5843828", "text": "function pay_now($data){\n global $current_user;\n if(check_token($data['crf_code'],'check')){\n $data = clean_security($data);\n $data['balance'] = str_replace(',','',$data['balance']);\n $data['amount'] = str_replace(',','',$data['amount']);\n $data['discount'] = str_replace(',','',$data['discount']);\n\n \n $data['amount'] = (empty($data['amount']))?0: $data['amount'];\n $data['discount'] = (empty($data['discount']))?0: $data['discount'];\n if (preg_match('/-/', $data['balance'])) {\n exit('invalid paid or discount please check ');\n }\n\n $data['description'] .= \"<br>\".$data['invoice_date'];\n $total = $data['amount']+$data['discount'];\n if (!empty( $total) ) {\n mysqli_query_(\"INSERT INTO payments (`student_id`,`amount`,`discount`,`date`,`description`,`taken_by` )VALUES('{$data['student_id']}','{$data['amount']}','{$data['discount']}','{$data['date']}','{$data['description']}','$current_user')\");\n }\n \n \n // invoice fix \n mysqli_query_(\"update invoices set balance=balance-$total where id='{$data['id']}'\"); \n \n // remove_crf\n check_token($data['crf_code'],''); \n\n return 'ok'; \n \n }else{\n return 'login';\n }\n}", "title": "" }, { "docid": "af3354d5a61983d3e06fa113c24629bc", "score": "0.58340985", "text": "public function edit(Withdraw $withdraw)\n {\n //\n\t\t\t\n }", "title": "" }, { "docid": "ea57e8771445ed91c1727410dcbb25b6", "score": "0.5830372", "text": "function bankwith() {\n $tims = time();\n $das = date('Y-m-d', $tims);\n $this->db->where('date', $das);\n $query = $this->db->get('bank_withdraw');\n return $query->result();\n }", "title": "" }, { "docid": "8dddfbe7a76f3b78204a1b7a6bc84f0d", "score": "0.58204716", "text": "function requestPayout () {\r\n \t\r\n \t// Globals\r\n \tglobal $MySelf;\r\n \tglobal $DB;\r\n \tglobal $TIMEMARK;\r\n\t\r\n\t// How much isk we got?\r\n\t$MyCredits = getCredits($MySelf->getID());\r\n\r\n\t// Is this a number?\r\n\tif (!is_numeric($_POST[amount])) {\r\n \t\tmakeNotice(\"The frog looks at you and your cheque with the amount of \\\"\".$_POST[amount].\"\\\". The frog is unsure how much ISK that is and instead decides to lick your face in a friendly manner, then it closes the teller and goes for lunch.\", \"warning\", \"Huh?\");\r\n \t}\r\n \t\r\n \t// We are requesting a POSITIVE amount, right?\r\n \tif (!numericCheckBool($_POST[amount],0)) {\r\n \t\tmakeNotice(\"You can only request positive amounts of ISK. If you want money, go work for it.\",\r\n \t\t\"notice\", \"This aint no charity\", \"index.php?action=manageWallet\", \"But i got women and children to feed...\");\r\n \t}\r\n \t\r\n \t// So, can we afford it?\r\n \tif (!numericCheckBool($_POST[amount], 1, $MyCredits)){\r\n \t\tmakeNotice(\"You can only request a payment up to \" . number_format($MyCredits). \r\n \" ISK. You requested \" . number_format($_POST[amount]).\r\n \" ISK. Thats \" . number_format(($_POST[amount] - $MyCredits),2) .\r\n \" ISK more than you can afford.\", \"warning\", \"Too big of a payout.\", \r\n \"index.php?action=manageWallet\", \"[Cancel]\");\r\n \t}\r\n\r\n\t// We sure?\r\n\tconfirm(\"Please confirm your payout request of \" . number_format($_POST[amount],2) . \" ISK.\");\r\n\t\r\n\t// Ok, do it.\r\n\t$DB->query(\"INSERT INTO payoutRequests (time, applicant, amount) VALUES (?,?,?)\",\r\n\t array($TIMEMARK, $MySelf->getID(), $_POST[amount]));\r\n\t\r\n\tif ($DB->affectedRows() == 1){\r\n\t\tmakeNotice(\"You request has been logged. An accountant will soon honor your request.\", \"notice\", \"Request logged\", \"index.php?action=manageWallet\", \"[OK]\");\r\n\t} else {\r\n\t\tmakeNotice(\"Internal Error! Unable to record your request into the database! Inform the admin!\", \"error\", \"Internal Error!\", \"index.php?action=manageWallet\", \"[cancel]\");\r\n\t}\r\n }", "title": "" }, { "docid": "e9b9c257db4b8ed321bc6386b263b76d", "score": "0.58181363", "text": "public function deposit($u_id,$amount,$mem_num,$gamemaker_num=112,$logID=NULL){\t//轉入點數到遊戲帳號內\n $OrderId='OUT'.date('YmdHis').trim($u_id);\n //將轉點編號寫入DB\n $upSql=\"UPDATE `member_wallet_log` SET `TradeNo`='\".$OrderId.\"' where num=\".$logID;\n $OperatorID = $this->get_OperatorID();\n $vendor_member_id = $this -> operatorId . \"_\" . $u_id; //此遊戲自己前綴\n $vendor_trans_id=$OperatorID . \"_\" . $OrderId;\n $data=array('vendor_id'=>$this -> vendor_id,'vendor_member_id'=>$vendor_member_id,'vendor_trans_id'=>$vendor_trans_id,\n 'amount'=>$amount,'currency'=>$this -> currency,'direction'=>'1','wallet_id'=>'1');\n $QS=http_build_query($data);\n $ch = curl_init($this->api_url.\"FundTransfer\");\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $QS);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT,$this->timeout);\n $output = curl_exec($ch);\n $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n $curl_errno = curl_errno($ch);\n curl_close($ch);\n $output=json_decode($output);\n //print_r($output);\n if(!$curl_errno){\n if($http_code===200 && $output->error_code=='0'){\n $WalletTotal = getWalletTotal($mem_num); //會員餘額\n $before_balance = (float)$WalletTotal; //異動前點數\n $after_balance = (float)$before_balance - (float)$amount;//異動後點數\n $parameter = array();\n $colSql = \"mem_num,kind,points,makers_num,makers_balance,admin_num,buildtime,before_balance,after_balance\";\n $sqlStr = \"INSERT INTO `member_wallet` (\" . sqlInsertString($colSql, 0) . \")\";\n $sqlStr .= \" VALUES (\" . sqlInsertString($colSql, 1) . \")\";\n $parameter[\":mem_num\"] = $mem_num;\n $parameter[\":kind\"] = 3; //轉入遊戲\n $parameter[\":points\"] = \"-\" . $amount;\n $parameter[\":makers_num\"] = $gamemaker_num;\n $parameter[\":makers_balance\"] = (float)$output->Data->after_amount;\n $parameter[\":admin_num\"] = tb_sql(\"admin_num\", \"member\", $mem_num);\n $parameter[\":buildtime\"] = now();\n $parameter[':before_balance'] = $before_balance;\n $parameter[':after_balance'] = $after_balance;\n $this->CI->webdb->sqlExc($sqlStr, $parameter);\n return NULL;\n }else{\n return \"轉點錯誤:\".$output->message;\n }\n }else{\n return $this->CheckFundTransfer($u_id,$mem_num,$gamemaker_num,$vendor_trans_id,$amount,1);\n //return '系統繁忙中,請稍後再試'\t;\n }\n }", "title": "" }, { "docid": "eb9696f52b398275cce9460c18a7ab59", "score": "0.57672983", "text": "public function exchange_to_wallet(){\n // echo 'This feature is currently disabled by admin, be patient.';\n // exit;\n // for pro plus user request\n \n $u_id = $this->session->userdata('u_id');\n if($u_id != ''){\n $currency = $this->input->post('currency');\n $amount = doubleval($this->input->post('amount'));\n // if($this->db->query(\"SELECT * FROM admin_locks WHERE name = ?\", array('exchange_lock'))->row()->lock_status == 1 && $u_id != 13870){\n // echo json_encode(array('error'=>'1', 'msg' => 'Lock by admin.')); exit;\n // } \n \n \n if($currency == 'ARB'){\n if($amount < 1){echo json_encode(array('error'=>'1', 'msg' => 'Minimum amount of transfer is 1 ARB.')); exit;}\n $get_exchange_arb = $this->db->query(\"SELECT activeArb FROM exchange_wallet WHERE user_id = ?\", array($u_id))->row()->activeArb;\n \n if($get_open_sellorders = $this->DB2->query(\"SELECT sum(amount) as orders_arb_sum FROM orders WHERE user_id = ? AND order_type = ? AND status = ? AND order_from = 'exchange'\", array($u_id, 'Sell', 0))->row()){\n $expected_amount = $get_exchange_arb - $get_open_sellorders->orders_arb_sum;\n \n if($expected_amount >= $amount){\n $update_exchange_arb = $get_exchange_arb - $amount;\n $this->db->query(\"UPDATE exchange_wallet SET activeArb = ? WHERE user_id = ?\", array($update_exchange_arb, $u_id));\n \n $get_system_active_arb = $this->db->query(\"SELECT activeArb FROM system_wallet WHERE user_id = ?\", array($u_id))->row()->activeArb;\n $system_update_arb = $get_system_active_arb + $amount;\n $this->db->query(\"UPDATE system_wallet SET activeArb = ? WHERE user_id = ?\", array($system_update_arb, $u_id));\n \n $log1 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc, comment) values (?,?,?,?,?)\", array($u_id,'exchangeWallet_ARB','-'.$amount,$get_exchange_arb, \"Transfer ARB from Exchange to Wallet\"));\n $log2 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc, comment) values (?,?,?,?,?)\", array($u_id,'systemWallet_ARB',$amount,$get_system_active_arb, \"Credit ARB in Wallet from Exchange\"));\n \n echo json_encode(array('success'=>'1', 'msg' => 'Transfered to wallet successfully.')); exit;\n }else{\n echo json_encode(array('error'=>'1', 'msg' => 'Not enough balance in your exchange.')); exit;\n }\n }else{echo json_encode(array('error'=>'1', 'msg' => 'Something went wrong.')); exit;}\n }else if($currency == 'ETH'){\n if($amount < 0.01){echo json_encode(array('error'=>'1', 'msg' => 'Minimum amount of transfer is 0.01 ETH.')); exit;}\n $get_exchange_eth = $this->db->query(\"SELECT activeEth FROM exchange_wallet WHERE user_id = ?\", array($u_id))->row()->activeEth;\n \n if($get_open_buyorders = $this->DB2->query(\"SELECT sum(price*amount) as orders_eth_sum FROM orders WHERE user_id = ? AND order_type = ? AND status = ?\", array($u_id, 'Buy', 0))->row()){\n $expected_amount = $get_exchange_eth - $get_open_buyorders->orders_eth_sum;\n \n if($expected_amount >= $amount){\n $update_exchange_eth = $get_exchange_eth - $amount;\n $this->db->query(\"UPDATE exchange_wallet SET activeEth = ? WHERE user_id = ?\", array($update_exchange_eth, $u_id));\n \n $get_system_active_eth = $this->db->query(\"SELECT activeEth FROM system_wallet WHERE user_id = ?\", array($u_id))->row()->activeEth;\n $system_update_eth = $get_system_active_eth + $amount;\n $this->db->query(\"UPDATE system_wallet SET activeEth = ? WHERE user_id = ?\", array($system_update_eth, $u_id));\n \n $log1 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc, comment) values (?,?,?,?,?)\", array($u_id,'exchangeWallet_ETH','-'.$amount, $get_exchange_eth, \"Transfer ETH from Exchange to Wallet\"));\n $log2 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc, comment) values (?,?,?,?,?)\", array($u_id,'systemWallet_ETH',$amount, $get_system_active_eth, \"Credit ETH in Wallet from Exchange\"));\n \n echo json_encode(array('success'=>'1', 'msg' => 'Transfered to wallet successfully.')); exit;\n }else{\n echo json_encode(array('error'=>'1', 'msg' => 'Not enough balance in your exchange.')); exit;\n }\n }else{echo json_encode(array('error'=>'1', 'msg' => 'Something went wrong.')); exit;}\n }else{\n echo json_encode(array('error'=>'1', 'msg' => 'No such a curreny math in our system.')); exit;\n }\n \n }else{\n echo json_encode(array('error'=>'1', 'msg' => 'User session expired.')); exit;\n }\n }", "title": "" }, { "docid": "238c417aa31e3b172a5b30c59041cd0c", "score": "0.5763974", "text": "public function admin_decline($id)\n {\n $bitcoin_withdraw = Withdraw::whereId($id)->firstOrFail();\n $bitcoin_withdraw->status = 'cancelled';\n $bitcoin_withdraw->update();\n\n $user = User::where('id',$bitcoin_withdraw->user->id)->first();\n $user->wallet += ($bitcoin_withdraw->amount + ($bitcoin_withdraw->fee / 2));\n $user->update();\n\n $admin = User::whereRole(\"admin\")->firstOrFail();\n $new_trx = new Transaction();\n $new_trx->amount = - ($bitcoin_withdraw->fee / 2);\n $new_trx->status = 'created';\n $new_trx->type = 'withdrawal_bonus';\n $new_trx->user_id = $admin->id;\n\n\n $new_bonus_trx = new Bonus();\n $new_bonus_trx->user_id = $admin->id;\n $new_bonus_trx->amount = - ($bitcoin_withdraw->fee / 2);\n $new_bonus_trx->status = 'created';\n $new_bonus_trx->type = 'service_charge_initial_reversed';\n $new_bonus_trx->save();\n $new_bonus_trx->transaction()->save($new_trx);\n $new_trx->status = 'completed';\n $new_trx->update();\n $admin->bonus += $new_trx->amount;\n $admin->update();\n $response = 'Bitcoin Payment Request Rejected';\n return response()->json($response, Response::HTTP_OK);\n }", "title": "" }, { "docid": "1cc39332d5d01199491e81d8a33211b2", "score": "0.57603866", "text": "public function updatefund() {\n $this->layout = \"adminLayout\";\n\n if ($this->request->is('post')) {\n\n $tangocard = new Sourcefuse\\TangoCard(PLATFORM_ID, PLATFORM_KEY);\n\n $tangocard->setAppMode(TANGO_MODE);\n\n //fetch the tango fund using tango api.\n $response = $tangocard->getAccountInfo($_POST['customer'], $_POST['identifier']);\n if ($response->success == '1') {\n $av_bal=$response->account->available_balance / 100;\n $this->TangoAccount->query('update tango_accounts set available_balance=' . $av_bal . ' where customer=\"' . $_POST['customer'] . '\"');\n echo $av_bal;\n } else {\n echo 0;\n }\n }\n die;\n }", "title": "" }, { "docid": "2e2dd0a52b847903a79b24e455d53b60", "score": "0.57439125", "text": "function new_balance() {\r\n $a['balance_due'] = $this->balance_due;\r\n zen_db_perform(TABLE_ORDERS, $a, 'update', 'orders_id = ' . $this->oID);\r\n }", "title": "" }, { "docid": "50223a94d7c3f81f04ece76d5e4e8973", "score": "0.57359475", "text": "public function testDeposit()\n {\n $account = new DebitAccount();\n\n $firstDeposit = $account->deposit(Money::fromAmount(1000));\n $this->assertEquals(1000, $firstDeposit->amount()->amount());\n\n $this->assertEquals(1000, $account->balance()->amount());\n\n $secondDeposit = $account->deposit(Money::fromAmount(5000));\n $this->assertEquals(5000, $secondDeposit->amount()->amount());\n\n $this->assertEquals(6000, $account->balance()->amount());\n }", "title": "" }, { "docid": "fc53e2260326bff3d41ef8c97fccf082", "score": "0.57352275", "text": "public function processWithdrawn($status, $withdrawnIds)\n {\n $now = date(\"Y-m-d H:i:s\", (new \\DateTime())->getTimestamp());\n $store = $this->_storeManager->getStore();\n\n $withdrawnCollection = $this->_withdrawnFactory->create()->getCollection()\n ->addFieldToFilter('withdrawn_id', ['in' => $withdrawnIds])\n ->addFieldToFilter('status', ['neq' => Status::COMPLETE])\n ->addFieldToFilter('status', ['neq' => Status::CANCELED]);\n\n if ($status == Status::COMPLETE) {\n foreach ($withdrawnCollection as $withdrawn) {\n $customerId = $withdrawn->getCustomerId();\n\n /* Handle Paypal Withdrawn by Paypal Masspay */\n if ($withdrawn->getPaymentGateway() == 'paypal') {\n if($this->getStoreConfig('affiliate/paypal_credential/paypal_status') > 0) {\n $customer = $this->_customerFactory->create()->load($customerId);\n $paypalParams = [\n 'amount' => $withdrawn->getAmountReceive(),\n 'currency' => $store->getCurrentCurrencyCode(),\n 'customer_email' => $withdrawn->getPaymentEmail(),\n 'customer_name' => $customer->getName(),\n ];\n\n $paypalResponse = $this->withdrawnPaypal($paypalParams);\n if ($paypalResponse['status'] !== 'success') {\n $this->_messageManager->addError(__($paypalResponse['error']));\n continue;\n } else {\n $withdrawn->setStatus(Status::COMPLETE)\n ->setWithdrawnTime($now)->save();\n }\n }else{\n $withdrawn->setStatus(Status::COMPLETE)\n ->setWithdrawnTime($now)->save();\n }\n } else {\n $withdrawn->setStatus(Status::COMPLETE)\n ->setWithdrawnTime($now)->save();\n }\n\n // Send email to customer when withdrawn successfully\n $this->sendMailCustomerWithdrawnComplete(\n $customerId,\n $withdrawn->getWithdrawnAmount(),\n $store->getCode()\n );\n\n // Update status in mw_credit_history table\n $collection = $this->_credithistoryFactory->create()->getCollection()\n ->addFieldToFilter('type_transaction', Transactiontype::WITHDRAWN)\n ->addFieldToFilter('customer_id', $customerId)\n ->addFieldToFilter('transaction_detail', $withdrawn->getId())\n ->addFieldToFilter('status', Orderstatus::PENDING);\n\n foreach ($collection as $credithistory) {\n $credithistory->setStatus(Orderstatus::COMPLETE)->save();\n }\n }\n } else if ($status == Status::CANCELED) {\n foreach ($withdrawnCollection as $withdrawn) {\n $customerId = $withdrawn->getCustomerId();\n $withdrawn->setStatus(Status::CANCELED)\n ->setWithdrawnTime($now)->save();\n\n // Send email to customer when withdrawn failed\n $this->sendMailCustomerWithdrawnCancel(\n $customerId,\n $withdrawn->getWithdrawnAmount(),\n $store->getCode()\n );\n\n // Update status in mw_credit_history table\n $collection = $this->_credithistoryFactory->create()->getCollection()\n ->addFieldToFilter('type_transaction', Transactiontype::WITHDRAWN)\n ->addFieldToFilter('customer_id', $customerId)\n ->addFieldToFilter('transaction_detail', $withdrawn->getId())\n ->addFieldToFilter('status', Orderstatus::PENDING);\n\n $creditcustomer = $this->_creditcustomerFactory->create()->load($customerId);\n $oldcredit = $creditcustomer->getCredit();\n\n foreach ($collection as $credithistory) {\n $amount = $credithistory->getAmount();\n $newcredit = $oldcredit - $amount;\n $credithistory->setStatus(Orderstatus::CANCELED)->save();\n $creditcustomer->setCredit($newcredit)->save();\n\n // Save record to mw_credit_history table (Cancel status)\n $historyData = [\n 'customer_id'\t\t\t=> $customerId,\n 'type_transaction'\t\t=> Transactiontype::CANCEL_WITHDRAWN,\n 'status'\t\t\t\t=> Orderstatus::COMPLETE,\n 'transaction_detail'\t=> $withdrawn->getId(),\n 'amount'\t\t\t\t=> -$amount,\n 'beginning_transaction' => $oldcredit,\n 'end_transaction'\t\t=> $newcredit,\n 'created_time'\t\t\t=> $now\n ];\n $this->_credithistoryFactory->create()->setData($historyData)->save();\n }\n }\n }\n\n $this->_messageManager->addSuccess(\"You have successfully updated the withdrawn(s) status\");\n }", "title": "" }, { "docid": "8402c4055269b54df23f3d7545115c04", "score": "0.57250035", "text": "public static function completeFundWallet()\n {\n $reference = $_GET['reference'];\n $data = Paystack::verifyPayment($reference);\n\n // update payment table\n $conn = Database::connect();\n $query = \"UPDATE payments SET paystack_ref_id=:paystack_ref_id, domain=:domain, amount=:amount, currency=:currency, payment_channel=:payment_channel, payment_status=:payment_status, ip_address=:ip_address WHERE reference = :reference\";\n $stmt = $conn->prepare($query);\n $stmt->bindParam(':paystack_ref_id', $data['id']);\n $stmt->bindParam(':domain', $data['domain']);\n $stmt->bindParam(':amount', $data['amount']);\n $stmt->bindParam(':currency', $data['currency']);\n $stmt->bindParam(':payment_channel', $data['channel']);\n $stmt->bindParam(':payment_status', $data['status']);\n $stmt->bindParam(':ip_address', $data['ip_address']);\n $stmt->bindParam(':reference', $reference);\n $stmt->execute();\n\n // if payment successful\n if ($data['status'] == 'success') {\n // create a wallet transaction with the paystack data\n $query = \"INSERT INTO wallet_transactions (wallet_id, email, credit, debit, reference) VALUES (:wallet_id, :email, :credit, :debit, :reference)\";\n $stmt = $conn->prepare($query);\n $email = $data['metadata']['email'];\n $walletId = $data['metadata']['wallet_id'];\n $amountInNaira = intval($data['amount']) / 100; // convert back to naira\n $debit = 0;\n $stmt->bindParam(':wallet_id', $walletId);\n $stmt->bindParam(':email', $email);\n $stmt->bindParam(':credit', $amountInNaira);\n $stmt->bindParam(':debit', $debit);\n $stmt->bindParam(':reference', $reference);\n $stmt->execute();\n\n // read the wallet balance\n $query = \"SELECT SUM(credit) as credit, SUM(debit) as debit FROM wallet_transactions WHERE wallet_id='$walletId'\";\n $stmt = $conn->prepare($query);\n $stmt->execute();\n\n $stmt->setFetchMode(PDO::FETCH_ASSOC);\n $response = $stmt->fetchAll();\n\n $balance = floatval($response[0]['credit']) - floatval($response[0]['debit']);\n\n // return success response with wallet balance\n Response::success(message: $data['gateway_response'] . '. Wallet funded successfully.', data: [\n 'current_balance' => $balance\n ]);\n } else {\n // else, return error response with reason from paystack\n Response::error(message: $data['gateway_response']);\n }\n }", "title": "" }, { "docid": "cb7b15cee18517eaf5fb4ea361715d61", "score": "0.5717583", "text": "public function approveAndDeposit($paymentId, $amount);", "title": "" }, { "docid": "07e70cecc21bff8c80e5accef79a1782", "score": "0.57128805", "text": "public function deposit($amount) {\n\t\t$this->balance += $amount;\n\t\t// skapa en transaktion för insättningen\n\t\tarray_push($this->transactions, $amount);\n\t}", "title": "" }, { "docid": "32b3a717df27f47321baf182adff2daa", "score": "0.5704348", "text": "public function processTransferAccount() {\r\n\t\t\r\n\t\t// Transfer funds from the account.\r\n\t\t$this->getAccount ();\r\n\t\t$transaction = new Transactions ();\r\n\t\t$transaction->accountID = $this->_accountID;\r\n\t\t$transaction->transactionDate = $_SESSION ['transferDate'];\r\n\t\t$transaction->transactionDescription = 'Description: ' . $_SESSION ['transferDescription'];\r\n\t\t$transaction->transactee = $_SESSION ['transferAccountPayee'];\r\n\t\tif (isset ( $_SESSION ['transferDate'] )) {\r\n\t\t\t$date = date_create ( $_SESSION ['transferDate'] );\r\n\t\t\t$transferDate = date_format ( $date, 'zY' );\r\n\t\t\t$transferDate = intval ( $transferDate );\r\n\t\t\t$currentDate = date_create ( date ( 'm/d/Y h:i:s a', time () ) );\r\n\t\t\t$currentDate = date_format ( $currentDate, 'zY' );\r\n\t\t\t$currentDate = intval ( $currentDate );\r\n\t\t\tif ($transferDate == $currentDate) {\r\n\t\t\t\t$_SESSION ['transferStatus'] = 'Paid';\r\n\t\t\t} elseif ($transferDate > $currentDate) {\r\n\t\t\t\t$_SESSION ['transferStatus'] = 'Future Payment';\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$transaction->transactionStatus = $_SESSION ['transferStatus'];\r\n\t\t$transaction->debits = $_SESSION ['transferAmount'];\r\n\t\t$transaction->transactionType = 'Payee';\r\n\t\t\r\n\t\t$transaction->transactionID = $transaction->set ();\r\n\t\t\r\n\t\t// Transfer funds to the selected account\r\n\t\tif ($transaction->transactionID > 0) {\r\n\t\t\t$transaction->getTransaction ();\r\n\t\t\t$conf = 'B' . $transferDate . $transaction->transactionID;\r\n\t\t\t$_SESSION ['transferConf'] = $conf;\r\n\t\t\t$_SESSION ['transferCreated'] = $transaction->transactionDate;\r\n\t\t\t\r\n\t\t\t// Reverse Transaction\r\n\t\t\t$id = explode ( '-', $_SESSION ['transferAccountPayeeID'] );\r\n\t\t\t$account2 = new Account ();\r\n\t\t\t$account2->accountID = $transaction->accountID;\r\n\t\t\t$account2->getAccount ();\r\n\t\t\t$transaction2 = new Transactions ();\r\n\t\t\t$transaction2->accountID = $id [1];\r\n\t\t\t$transaction2->transactionDate = $transaction->transactionDate;\r\n\t\t\t$transaction2->transactionDescription = $transaction->transactionDescription;\r\n\t\t\t$transaction2->transactee = $account2->accountName;\r\n\t\t\t$transaction2->transactionStatus = 'Deposit';\r\n\t\t\t$transaction2->transactionType = $transaction->transactionType;\r\n\t\t\t$transaction2->credits = $transaction->debits;\r\n\t\t\t$transaction2->debits = '0.00';\r\n\t\t\t$transaction2->transactionID = $transaction2->set ();\r\n\t\t\tif ($transaction2->transactionID > 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "22492547c006f37182533da86c1ec91d", "score": "0.56943786", "text": "private function updateWalletmuthoot ($vendor, $transaction) \n {\n $commission = $this->calculateCommission($transaction->type, $vendor->user_id, $transaction->amount);\n $distCommission = $this->calculateCommission($transaction->type, $vendor->parent_id, $transaction->amount);\n $superDistId = Vendor::where('user_id', $vendor->parent_id)->first()->parent_id;\n $superDistCommission = $this->calculateCommission($transaction->type, $superDistId, $transaction->amount);\n $distributordetails=Vendor::where('user_id',$vendor->parent_id)->first();\n// echo \"distributor commission-\".$distCommission;\n // Perform Wallet Updations for Amount Transacted\n if ($transaction->type == 1 || $transaction->type == 2) {\n $distributordetails=Vendor::where('user_id',$vendor->parent_id)->first();\n\n //$vendor->balance;\n $distributordetails->balance += $transaction->type == 1 ? -$transaction->amount : ($transaction->type == 2 ? $transaction->amount : 0);\n // $distributordetails->save();\n\n $amount_wallet_transaction = WalletTransaction::create([\n 'user_id' => $distributordetails->user_id,\n 'transaction_type' => $transaction->type == 1 ? 0 : ($transaction->type == 2 ? 1 : null),\n 'activity' => $transaction->type == 1 ? 'debit' :($transaction->type == 2 ? 'credit' : ' '),\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $transaction->amount,\n 'balance' => $distributordetails->balance\n ]);\n\n $key = $transaction->type == 1 ? 'debit_id' : ($transaction->type == 2 ? 'credit_id' : '');\n\n AepsWalletAction::create([\n 'user_id' => $distributordetails->user_id,\n 'amount' => $transaction->amount,\n 'status' => 1,\n $key => $amount_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => false\n ]);\n\n $dipl_vendor = Vendor::where('type', 8)->lockForUpdate()->first();\n $dipl_vendor->balance += $transaction->type == 1 ? -$transaction->amount : ($transaction->type == 2 ? $transaction->amount : 0);\n $dipl_vendor->save();\n $dipl_amount_wallet_transaction = WalletTransaction::create([\n 'user_id' => $dipl_vendor->user_id,\n 'transaction_type' => $transaction->type == 1 ? 0 : ($transaction->type == 2 ? 1 : null),\n 'activity' => $transaction->type == 1 ? 'debit' :($transaction->type == 2 ? 'credit' : ' '),\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $transaction->amount,\n 'balance' => $dipl_vendor->balance\n ]);\n\n AepsWalletAction::create([\n 'user_id' => $dipl_vendor->user_id,\n 'amount' => $transaction->amount,\n 'status' => 1,\n $key => $dipl_amount_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => false\n ]);\n\n }\n\n $dipl_vendor = Vendor::where('type', 8)->lockForUpdate()->first();\n\n // Perform Wallet Updations for Commission\n if ($commission && $dipl_vendor->commission && $vendor->commission) {\n $commissionAmount = 0;\n if ($commission['rate_type'] == 1)\n $commissionAmount = $commission['rate'];\n if ($commission['rate_type'] == 2)\n $commissionAmount = $transaction->amount * $commission['rate']/100;\n\n $vendor->balance += $commissionAmount; \n $vendor->save();\n \n $commission_wallet_transaction = WalletTransaction::create([\n 'user_id' => $vendor->user_id,\n 'transaction_type' => 1,\n 'activity' => 'credit',\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $commissionAmount,\n 'balance' => $vendor->balance\n ]);\n\n\n AepsWalletAction::create([\n 'user_id' => $vendor->user_id,\n 'amount' => $commissionAmount,\n 'status' => 1,\n 'credit_id' => $commission_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => true\n ]);\n }\n\n if ($distCommission && $dipl_vendor->commission) {\n echo 'check...';\n print_r($distCommission);\n \n $distributor = Vendor::where('user_id', $vendor->parent_id)->lockForUpdate()->first();\n $distCommissionAmount = 0;\n if ($distributor && $distributor->commission == 1) {\n if ($distCommission['rate_type'] == 1)\n $distCommissionAmount = $distCommission['rate'];\n if ($distCommission['rate_type'] == 2)\n $distCommissionAmount = $transaction->amount * $distCommission['rate']/100;\n //$distributor->balance += $distCommissionAmount; check ones\n $distributordetailsblance = $distCommissionAmount + $distributordetails->balance;\n $commission_wallet_transaction = WalletTransaction::create([\n 'user_id' => $distributor->user_id,\n 'transaction_type' => 1,\n 'activity' => 'credit',\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $distCommissionAmount,\n 'balance' => $distributordetailsblance\n ]);\n\n $distributor->save();\n\n\n\n AepsWalletAction::create([\n 'user_id' => $distributor->user_id,\n 'amount' => $distCommissionAmount,\n 'status' => 1,\n 'credit_id' => $commission_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => true\n ]);\n } \n }\n\n if ($superDistCommission && $dipl_vendor->commission) {\n $superDistributor = Vendor::where('user_id', $superDistId)->lockForUpdate()->first();\n $superDistCommissionAmount = 0;\n if ($superDistributor && $superDistributor->commission == 1) {\n if ($superDistCommission['rate_type'] == 1)\n $superDistCommissionAmount = $superDistCommission['rate'];\n if ($superDistCommission['rate_type'] == 2)\n $superDistCommissionAmount = $transaction->amount * $superDistCommission['rate']/100;\n $superDistributor->balance += $superDistCommissionAmount;\n $commission_wallet_transaction = WalletTransaction::create([\n 'user_id' => $superDistributor->user_id,\n 'transaction_type' => 1,\n 'activity' => 'credit',\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $superDistCommissionAmount,\n 'balance' => $superDistributor->balance\n ]);\n\n $superDistributor->save();\n\n AepsWalletAction::create([\n 'user_id' => $superDistributor->user_id,\n 'amount' => $superDistCommissionAmount,\n 'status' => 1,\n 'credit_id' => $commission_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => true\n ]);\n }\n \n }\n //dd($distributordetails->balance);\n return $distributordetails->balance;\n }", "title": "" }, { "docid": "44f38e6713a60f42785421c447c4b8d1", "score": "0.5687134", "text": "function do_donate()\n\t{\n\t\n\t\tif( $this->ipsclass->vars['donate_on'] == 0 )\n\t\t{\n\t\t\t$title = \"<{CAT_IMG}>&nbsp;{$this->ipsclass->lang['find_member']}\";\n\t\t\t$data = \"<i>{$this->ipsclass->lang['donate_off']}</i>\";\n\t\t\t$this->output .= $this->ipsclass->compiled_templates['skin_points']->none( $title, $data );\n\t\t}\n\t\telse if( $this->ipsclass->vars['donate_on'] == 1 )\n\t\t{\n\t\t\t$this->ipsclass->input['userid'] = intval( $this->ipsclass->input['userid'] );\n\t\t$this->ipsclass->input['amount'] = str_replace( ',', '', $this->ipsclass->input['amount'] );\n\t\t$this->ipsclass->input['amount'] = str_replace( '-', '', intval($this->ipsclass->input['amount']) );\n\t\t$amt = intval($this->ipsclass->input['amount']);\n\t\t\t$username = trim( $this->ipsclass->input['username'] );\n\t\t\t$msg = trim( $this->ipsclass->input['message'] );\n\t\t\n\t\t\tif ( !$this->ipsclass->input['userid'] )\n\t\t\t{\n\t\t\t\t$this->ipsclass->Error( array( 'MSG' => 'no_user' ) );\n\t\t\t}\n\t\t\n\t\t\tif ( $this->ipsclass->input['userid'] == $this->ipsclass->member['id'] )\n\t\t\t{\n\t\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_no_retards'));\n\t\t\t}\n\t\t\n\t\t\tif ( $amt > $this->ipsclass->member['points'] )\n\t\t\t{\n\t\t\t\t$this->ipsclass->Error(array(LEVEL => 1, MSG => 'error_not_enough'));\n\t\t\t}\n\t\t\n\t\t\t$this->ipsclass->DB->build_query( array( 'update' => 'members',\n\t\t\t\t\t\t\t\t\t\t\t\t 'set' => \"points=points+\".$amt,\n\t\t\t\t\t\t\t\t\t\t\t\t 'where' => 'id='.$this->ipsclass->input['userid']\n\t\t\t\t\t\t\t\t\t\t)\t );\n\t\t\t$this->ipsclass->DB->exec_query();\n\t\t\n\t\t\t$this->ipsclass->DB->do_update( 'members', array( 'points' => $this->ipsclass->member['points'] - $amt ), \"id=\".$this->ipsclass->member['id'] );\n\t\t\n\t\t\t$this->ipsclass->DB->do_insert( 'transactions', array( 'sentfrom' => $this->ipsclass->member['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'sentto' => $this->ipsclass->input['userid'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'amount' => $amt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'reason'\t\t\t=> $msg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'time' => time(),\n\t\t\t\t\t\t\t\t\t )\t\t\t\t\t\t );\n\t\t\n\t\t\tif ( $this->ipsclass->vars['points_pm'] )\n\t\t\t{\n\t\t\t\t$this->do_pm( $msg, $this->ipsclass->input['userid'], $amt );\n\t\t\t}\n\t\t\n\t\t\t$this->ipsclass->print->redirect_screen( $this->ipsclass->lang['p_donated'], \"&autocom=points\" );\n\t\t}\n\t}", "title": "" }, { "docid": "618cc05ffd3beca4a27befa31cc0dc80", "score": "0.56723905", "text": "public function updateBalance($login, $postAction = true);", "title": "" }, { "docid": "f4ce7ed24cff5c5ca67864c78b411580", "score": "0.56536263", "text": "public function createCapitalWithdrawal()\n {\n }", "title": "" }, { "docid": "61ea1815329a85a4609b29b44131a2c1", "score": "0.5646452", "text": "public function settleCashout()\n\t{\n\t\t$action = input_string($this->input->post(\"action\"),array('settled','rejected'),'rejected');\n\t\t$comments = check_empty($this->input->post(\"comments\"),FALSE,'请输入处理记录内容!');\n\t\t$apply_id = input_int($this->input->post(\"apply_id\"),'1',FALSE,FALSE,'错误请求!');\n\n\t\t$apply = $this-> model-> get_cashout_apply_by_id($apply_id);\n\t\tif (!$apply||$apply['state'] != 'applying') \n\t\t{\n\t\t\tresponse_msg(\"申请不存在!\");\n\t\t}\n\t\t$apply_inn = $this->model->get_inn_info_by_inn_id($apply['inn_id'],FALSE);\n\t\tif($apply['amount']>$apply_inn['withdrawing'])\n\t\t{\n\t\t\tresponse_msg(\"系统异常!\");\n\t\t}\n\t\t$apply['comments'] = $comments;\n\t\t$apply['inn_account'] = $apply_inn['account'];\n\t\t$apply['cashier_id'] = $this->get_user_id();\n\t\t$rs = $this->model->settle_apply_cashout($action,$apply);\n\t\tresponse_code($rs?'1':'-1');\n\t}", "title": "" }, { "docid": "feef255a41aed9e884139f0d7b5e5c7e", "score": "0.56362504", "text": "public function bookDress($data)\n {\n //insert to customer table\n //update dress table\n //then if need update deductions table\n $dress_det = $this->getDressAmountDetails($data['dress_id']);\n \n $trans_fields['transaction_id'] = $this->generateOrderID();\n $trans_fields['destination_acct'] = \"RENT A DRESS\";\n $trans_fields['source_acct'] = $data['source_acct'];\n $trans_fields['transaction_desc'] = \"Booking for a dress\";\n $trans_fields['transaction_amount'] = ((isset($data['discount']))?$data['discount_price']:$dress_det['dress_fee']) + $dress_det['caution_fee'];\n $trans_fields['dress_amount'] = $dress_det['dress_fee'];\n $trans_fields['caution_fee'] = $dress_det['caution_fee'];\n $trans_fields['response_code'] = 0;\n $trans_fields['response_message'] = \"success\";\n $trans_fields['payment_mode'] = \"CASH\";\n $trans_fields['created'] = date(\"Y-m-d h:i:s\");\n $trans_fields['charge_currency'] = \"NAIRA\";\n $trans_fields['return_date'] = $data['return_date'];\n $trans_fields['pickup_date'] = $data['pickup_date'];\n $trans_fields['dress_id'] = $data['dress_id'];\n $trans_fields['additional_request'] = $data['additional_request'];\n $trans_fields['payment_mode'] = $data['payment_mode'];\n $trans_fields['discount_price'] = (isset($data['discount']))?$data['discount_price']:0;\n $trans_fields['is_discounted'] = (isset($data['discount']))?1:0;\n $trans_fields['posted_by'] = $_SESSION['username_sess'];\n $trans_fields['branch_id'] = ($_SESSION['role_id_sess'] == \"002\")?$data['branch_id']:$_SESSION['branch_id'];\n $trans_fields['state_id'] = $this->getitemlabel('branch','id',$trans_fields['branch_id'],'state_id');\n \n $validation = $this->validate($data, array('source_acct'=>'required', 'return_date'=>'required', 'pickup_date'=>'required', 'dress_id'=>'required','phone'=>'required|int|min:11','first_name'=>'required|min:2','last_name'=>'required|min:2','address'=>'required','bank_name'=>'required','account_no'=>'required' ), array('account_no'=>'Account Number','account_name'=>'Account Name','source_acct'=>'Email','bank_name'=>'Bank Name','dress_id'=>'Dress','return_date'=>'Return Date','pickup_date'=>'Pickup Date','last_name'=>'Last Name','first_name'=>'First Name'));\n if((isset($data['discount']) && $data['discount_price'] == \"\") || (isset($data['discount']) && $data['discount_price'] >= $dress_det['dress_fee']))\n {\n return json_encode(array(\"response_code\"=>34,\"response_message\"=>\"Enter the discounted price, discount price should be less than \".$dress_det['dress_fee']));\n }\n if($_SESSION['role_id_sess'] == \"002\" && $data['branch_id'] == \"\")\n {\n return json_encode(array(\"response_code\"=>34,\"response_message\"=>\"Select Dress Location\"));\n }\n if(!$validation['error'])\n {\n $trans_record = $this->doInsert('transaction_table',$trans_fields,[]);\n $dress_record = $this->doUpdate('dress',array('transaction_id'=>$trans_fields['transaction_id'],'status'=>'1'),[],array('id'=>$data['dress_id']));\n\n $customer_record = $this->doInsert('customers',array('email'=>$data['source_acct'],'phone'=> $data['phone'] ,'first_name'=>$data['first_name'],'last_name'=>$data['last_name'],'address'=>$data['address'],'bank_name'=>$data['bank_name'],'account_name'=>$data['account_name'],'account_no'=>$data['account_no'],'created'=>date(\"Y-m-d h:i:s\"),'phone_2'=>$data['phone_2']),[]);\n if($trans_record > 0)\n {\n return json_encode(array('response_code'=>0,'response_message'=>'Saved successfully','data'=>array('id'=>$trans_fields['transaction_id'])));\n }else\n {\n return json_encode(array('response_code'=>78,'response_message'=>'Could not save transaction record'));\n }\n }\n else\n {\n return json_encode(array(\"response_code\"=>34,\"response_message\"=>$validation['messages'][0]));\n }\n }", "title": "" }, { "docid": "aee896dcd67a78e32861c58405d80f79", "score": "0.5628472", "text": "private function updateWallet ($vendor, $transaction) \n {\n $commission = $this->calculateCommission($transaction->type, $vendor->user_id, $transaction->amount);\n $distCommission = $this->calculateCommission($transaction->type, $vendor->parent_id, $transaction->amount);\n $superDistId = Vendor::where('user_id', $vendor->parent_id)->first()->parent_id;\n $superDistCommission = $this->calculateCommission($transaction->type, $superDistId, $transaction->amount);\n\n \n\n // Perform Wallet Updations for Amount Transacted\n if ($transaction->type == 1 || $transaction->type == 2) {\n $vendor->balance += $transaction->type == 1 ? -$transaction->amount : ($transaction->type == 2 ? $transaction->amount : 0);\n $amount_wallet_transaction = WalletTransaction::create([\n 'user_id' => $vendor->user_id,\n 'transaction_type' => $transaction->type == 1 ? 0 : ($transaction->type == 2 ? 1 : null),\n 'activity' => $transaction->type == 1 ? 'debit' :($transaction->type == 2 ? 'credit' : ' '),\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $transaction->amount,\n 'balance' => $vendor->balance\n ]);\n\n $key = $transaction->type == 1 ? 'debit_id' : ($transaction->type == 2 ? 'credit_id' : '');\n\n AepsWalletAction::create([\n 'user_id' => $vendor->user_id,\n 'amount' => $transaction->amount,\n 'status' => 1,\n $key => $amount_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => false\n ]);\n\n $dipl_vendor = Vendor::where('type', 8)->lockForUpdate()->first();\n $dipl_vendor->balance += $transaction->type == 1 ? -$transaction->amount : ($transaction->type == 2 ? $transaction->amount : 0);\n $dipl_vendor->save();\n $dipl_amount_wallet_transaction = WalletTransaction::create([\n 'user_id' => $dipl_vendor->user_id,\n 'transaction_type' => $transaction->type == 1 ? 0 : ($transaction->type == 2 ? 1 : null),\n 'activity' => $transaction->type == 1 ? 'debit' :($transaction->type == 2 ? 'credit' : ' '),\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $transaction->amount,\n 'balance' => $dipl_vendor->balance\n ]);\n\n AepsWalletAction::create([\n 'user_id' => $dipl_vendor->user_id,\n 'amount' => $transaction->amount,\n 'status' => 1,\n $key => $dipl_amount_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => false\n ]);\n\n }\n\n $dipl_vendor = Vendor::where('type', 8)->lockForUpdate()->first();\n\n // Perform Wallet Updations for Commission\n if ($commission && $dipl_vendor->commission && $vendor->commission) {\n $commissionAmount = 0;\n if ($commission['rate_type'] == 1)\n $commissionAmount = $commission['rate'];\n if ($commission['rate_type'] == 2)\n $commissionAmount = $transaction->amount * $commission['rate']/100;\n $vendor->balance += $commissionAmount; \n $commission_wallet_transaction = WalletTransaction::create([\n 'user_id' => $vendor->user_id,\n 'transaction_type' => 1,\n 'activity' => 'credit-commission',\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $commissionAmount,\n 'balance' => $vendor->balance\n ]);\n\n AepsWalletAction::create([\n 'user_id' => $vendor->user_id,\n 'amount' => $commissionAmount,\n 'status' => 1,\n 'credit_id' => $commission_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => true\n ]);\n }\n\n if ($distCommission && $dipl_vendor->commission) {\n $distributor = Vendor::where('user_id', $vendor->parent_id)->lockForUpdate()->first();\n $distCommissionAmount = 0;\n if ($distributor && $distributor->commission == 1) {\n if ($distCommission['rate_type'] == 1)\n $distCommissionAmount = $distCommission['rate'];\n if ($distCommission['rate_type'] == 2)\n $distCommissionAmount = $transaction->amount * $distCommission['rate']/100;\n $distributor->balance += $distCommissionAmount;\n $commission_wallet_transaction = WalletTransaction::create([\n 'user_id' => $distributor->user_id,\n 'transaction_type' => 1,\n 'activity' => 'credit-commission',\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $distCommissionAmount,\n 'balance' => $distributor->balance\n ]);\n\n $distributor->save();\n\n AepsWalletAction::create([\n 'user_id' => $distributor->user_id,\n 'amount' => $distCommissionAmount,\n 'status' => 1,\n 'credit_id' => $commission_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => true\n ]);\n } \n }\n\n if ($superDistCommission && $dipl_vendor->commission) {\n $superDistributor = Vendor::where('user_id', $superDistId)->lockForUpdate()->first();\n $superDistCommissionAmount = 0;\n if ($superDistributor && $superDistributor->commission == 1) {\n if ($superDistCommission['rate_type'] == 1)\n $superDistCommissionAmount = $superDistCommission['rate'];\n if ($superDistCommission['rate_type'] == 2)\n $superDistCommissionAmount = $transaction->amount * $superDistCommission['rate']/100;\n $superDistributor->balance += $superDistCommissionAmount;\n $commission_wallet_transaction = WalletTransaction::create([\n 'user_id' => $superDistributor->user_id,\n 'transaction_type' => 1,\n 'activity' => 'credit-commission',\n 'narration'=>'TransID='.$transaction->id,\n 'amount' => $superDistCommissionAmount,\n 'balance' => $superDistributor->balance\n ]);\n\n $superDistributor->save();\n\n AepsWalletAction::create([\n 'user_id' => $superDistributor->user_id,\n 'amount' => $superDistCommissionAmount,\n 'status' => 1,\n 'credit_id' => $commission_wallet_transaction->id,\n 'transaction_id' => $transaction->id,\n 'transaction_type' => $transaction->type,\n 'commission' => true\n ]);\n }\n\n //white label code\n if($superDistributor->user_id == 7829 && (501 <= $transaction->amount) && ($transaction->amount <= 1999))\n {\n \n //super dist amount debit for white label\n\n $superDistributors = Vendor::where('user_id', $superDistId)->lockForUpdate()->first();\n $debit_amount=(($transaction->amount * 0.30) / 100);\n $final_debit=6-$debit_amount;\n $superDistributors->balance -= $final_debit;\n \n \n $wallet_transaction = WalletTransaction::create([\n 'user_id' => $superDistributor->user_id,\n 'transaction_type' => 0,\n 'activity' => 'debit-commission',\n 'narration'=>'TransID='.$transaction->id.'- Debited Against Extra Commission.',\n 'amount' => $final_debit,\n 'balance' => $superDistributors->balance\n ]);\n\n $superDistributors->save();\n \n\n AepsWalletAction::create([\n 'user_id' => $superDistributor->user_id,\n 'amount' => $final_debit,\n 'status' => 1,\n 'debit_id' => $wallet_transaction->id,\n 'transaction_type' => 0,\n 'commission' => true\n ]); \n \n\n\n //admin credit amount in wallet for white label\n\n $dipl_vendor = Vendor::where('type', 8)->lockForUpdate()->first();\n $dipl_vendor->balance +=$final_debit;\n \n\n\n $wallet_transaction = WalletTransaction::create([\n 'user_id' => $dipl_vendor->user_id,\n 'transaction_type' => 1,\n 'activity' => 'credit-commission',\n 'narration'=>'TransID='.$transaction->id.'- Credited Against Extra Commission.',\n 'amount' => $final_debit,\n 'balance' => $dipl_vendor->balance\n ]);\n\n $dipl_vendor->save();\n \n\n AepsWalletAction::create([\n 'user_id' => $dipl_vendor->user_id,\n 'amount' => $final_debit,\n 'status' => 1,\n 'credit_id' => $wallet_transaction->id,\n 'transaction_type' => 1,\n 'commission' => true\n ]); \n\n\n }\n \n }\n\n return $vendor->balance;\n }", "title": "" }, { "docid": "4751ed334fb84bf759154bef0c246cbc", "score": "0.56259793", "text": "public function updateBalance($param);", "title": "" }, { "docid": "ceb3a863fc80e623f5c5ebc9c8c684d2", "score": "0.56071013", "text": "public function walletAction($walletType,$walletBalance,$userId,$paymentType,$customerOrder)\n {\n $em = $this->getDoctrine()->getManager();\n $re=$em->getRepository('AppBundle:Wallet')->findByUser($userId);\n foreach ($re as $da)\n {\n $prepaid=$da->getPrepaid();\n $postpaid=$da->getPostpaid();\n if($walletType==0)\n {\n $amount=$prepaid-$walletBalance;\n $em->getConnection()->exec( \"update wallet set prepaid='$amount' where user='$userId'\");\n $this->addWalletLogsAction($userId,$walletBalance,0,date('d-m-Y'),$amount,$customerOrder,$walletType,'0',$time,$paymentType);\n\n }\n else\n {\n $amount=$postpaid-$walletBalance;\n $em->getConnection()->exec( \"update wallet set postpaid='$amount' where user='$userId'\");\n $time=date('H-i a');\n $this->addWalletLogsAction($userId,$walletBalance,0,date('d-m-Y'),$amount,$customerOrder,$walletType,'0',$time,$paymentType);\n $this->addDuesAction($walletBalance,$amount,date('d-m-Y'),'15',$userId,$customerOrder,'0');\n\n }\n }\n}", "title": "" }, { "docid": "a082e7200467ca9adbe6b45cb212a76e", "score": "0.56001467", "text": "public function banktransfer() {\n \n $app = JFactory::getApplication();\n /** @var $app JSite **/\n \n $model = $this->getModel();\n /** @var CrowdFundingModelPayments **/\n \n // Get plugin parameters\n $plugin = JPluginHelper::getPlugin('crowdfundingpayment', 'banktransfer');\n $pluginParams = new JRegistry($plugin->params);\n \n // Get component parameters\n $componentParams = JComponentHelper::getParams(\"com_crowdfunding\");\n \n // Check for disabled payment functionality\n if($componentParams->get(\"debug_payment_disabled\", 0)) {\n $response = array(\n \"success\" => false,\n \"title\" => JText::_(\"COM_CROWDFUNDING_FAIL\"),\n \"text\" => JText::_(\"COM_CROWDFUNDING_ERROR_PAYMENT_HAS_BEEN_DISABLED_MESSAGE\")\n );\n \n echo json_encode($response);\n JFactory::getApplication()->close();\n }\n \n $projectId = $app->input->getInt(\"project_id\");\n $amount = $app->input->getFloat(\"amount\");\n \n $uri = JUri::getInstance();\n \n // Save data\n try {\n \n // Get project\n jimport(\"crowdfunding.project\");\n $project = CrowdFundingProject::getInstance($projectId);\n \n if(!$project->getId()) {\n $response = array(\n \"success\" => false,\n \"title\" => JText::_(\"COM_CROWDFUNDING_FAIL\"),\n \"text\" => JText::_(\"COM_CROWDFUNDING_ERROR_INVALID_PROJECT\")\n );\n \n echo json_encode($response);\n JFactory::getApplication()->close();\n }\n \n jimport(\"crowdfunding.currency\");\n $currencyId = $componentParams->get(\"project_currency\");\n $currency = CrowdFundingCurrency::getInstance($currencyId);\n \n // Prepare return URL\n $returnUrl = JString::trim($pluginParams->get('return_url'));\n if(!$returnUrl) {\n $returnUrl = $uri->toString(array(\"scheme\", \"host\")).JRoute::_(CrowdFundingHelperRoute::getBackingRoute($project->getSlug(), $project->getCatslug(), \"share\"), false);\n }\n \n \n // Intentions\n \n $userId = JFactory::getUser()->get(\"id\");\n $aUserId = $app->getUserState(\"auser_id\");\n \n // Reset anonymous user hash ID \n if(!empty($aUserId)) {\n $app->setUserState(\"auser_id\", \"\");\n }\n \n $intention = CrowdFundingHelper::getIntention($userId, $aUserId, $projectId);\n \n // Validate intention record\n if(!$intention->getId()) {\n \n $response = array(\n \"success\" => false,\n \"title\" => JText::_(\"COM_CROWDFUNDING_FAIL\"),\n \"text\" => JText::_(\"COM_CROWDFUNDING_ERROR_INVALID_PROJECT\")\n );\n \n echo json_encode($response);\n JFactory::getApplication()->close();\n \n }\n \n // Validate Reward\n // If the user is anonymous, the system will store 0 for reward ID. \n // The anonymous users can't select rewards.\n $rewardId = ($intention->isAnonymous()) ? 0 : (int)$intention->getRewardId();\n if(!empty($rewardId)) {\n $rewardId= $model->updateRewardBankTransfer($rewardId, $projectId, $amount);\n }\n \n // Prepare transaction data\n jimport(\"itprism.string\");\n $transactinoId = JString::strtoupper(ITPrismString::generateRandomString(12, \"BT\"));\n $transactionData = array(\n \"txn_amount\" => $amount,\n \"txn_currency\" => $currency->getAbbr(),\n \"txn_status\" => \"pending\",\n \"txn_id\" => $transactinoId,\n \"project_id\" => $projectId,\n \"reward_id\" => $rewardId, \n \"investor_id\" => (int)$userId,\n \"receiver_id\" => (int)$project->getUserId(),\n \"service_provider\" => \"Bank Transfer\"\n );\n \n // Store transaction data\n jimport(\"crowdfunding.transaction\");\n $transaction = new CrowdFundingTransaction();\n $transaction->bind($transactionData);\n \n $transaction->store();\n \n // Remove intention\n $intention->delete();\n \n // Reset the values of the payment process ( the flag step 1 ).\n $paymentProcessContext = CrowdFundingConstants::PAYMENT_PROCESS_CONTEXT.$projectId;\n $paymentProcess = $app->getUserState($paymentProcessContext);\n $paymentProcess->step1 = false;\n $app->setUserState($paymentProcessContext, $paymentProcess);\n \n } catch (Exception $e) {\n \n JLog::add($e->getMessage());\n \n $response = array(\n \"success\" => false,\n \"title\" => JText::_(\"COM_CROWDFUNDING_FAIL\"),\n \"text\" => JText::_(\"COM_CROWDFUNDING_ERROR_SYSTEM\")\n );\n \n echo json_encode($response);\n JFactory::getApplication()->close();\n \n }\n \n $language = JFactory::getLanguage();\n $language->load(\"plg_crowdfundingpayment_banktransfer\", JPATH_ADMINISTRATOR);\n \n \n // Send mail to administrator\n if($pluginParams->get(\"send_admin_mail\", 0)) {\n \n $subject = JText::_(\"PLG_CROWDFUNDINGPAYMENT_BANKTRANSFER_NEW_INVESTMENT_ADMIN_SUBJECT\");\n $body = JText::sprintf(\"PLG_CROWDFUNDINGPAYMENT_BANKTRANSFER_NEW_INVESTMENT_ADMIN_BODY\", $project->getTitle());\n $return = JFactory::getMailer()->sendMail($app->getCfg(\"mailfrom\"), $app->getCfg(\"fromname\"), $app->getCfg(\"mailfrom\"), $subject, $body);\n \n // Check for an error.\n if ($return !== true) {\n $error = JText::sprintf(\"PLG_CROWDFUNDINGPAYMENT_BANKTRANSFER_ERROR_MAIL_SENDING_ADMIN\");\n JLog::add($error);\n }\n \n }\n \n // Send mail to user\n if($pluginParams->get(\"send_user_mail\", 0)) {\n \n jimport(\"itprism.string\");\n $amount = ITPrismString::getAmount($transaction->getAmount(), $transaction->getCurrency());\n \n $user = JUser::getInstance($project->getUserId());\n \n $subject = JText::sprintf(\"PLG_CROWDFUNDINGPAYMENT_BANKTRANSFER_NEW_INVESTMENT_USER_SUBJECT\", $project->getTitle());\n $body = JText::sprintf(\"PLG_CROWDFUNDINGPAYMENT_BANKTRANSFER_NEW_INVESTMENT_USER_BODY\", $amount, $project->getTitle(), $transactinoId, $transactinoId);\n $return = JFactory::getMailer()->sendMail($app->getCfg(\"mailfrom\"), $app->getCfg(\"fromname\"), $app->getCfg(\"mailfrom\"), $subject, $body);\n \n // Check for an error.\n if ($return !== true) {\n $error = JText::sprintf(\"PLG_CROWDFUNDINGPAYMENT_BANKTRANSFER_ERROR_MAIL_SENDING_USER\");\n JLog::add($error);\n }\n \n }\n \n $response = array(\n \"success\" => true,\n \"title\" => JText::_('COM_CROWDFUNDING_SUCCESS'),\n \"text\" => JText::sprintf('PLG_CROWDFUNDINGPAYMENT_PAYMENT_BANK_TRANSFER_TRANSACTION_REGISTERED', $transactionData[\"txn_id\"], $transactionData[\"txn_id\"]),\n \"data\" => array(\n \"return_url\" => $returnUrl\n )\n );\n \n echo json_encode($response);\n JFactory::getApplication()->close();\n \n }", "title": "" }, { "docid": "9ac04e80d3cb5fc1dbae2f7f3b76449a", "score": "0.55989015", "text": "public function deposit($amount)\n {\n $this->balance += $amount;\n $transType = 'Deposit';\n try {\n $this->updateBalance($amount, $transType);\n } catch (BankException $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "bbcf89cb565fda10f20785c55a4175c6", "score": "0.55943835", "text": "public function show(Withdraw $withdraw)\n {\n //\n }", "title": "" }, { "docid": "7f5f8142fb2701c0558a3271e6733ee7", "score": "0.5585691", "text": "public function testReOpenAccount()\n {\n $account = new DebitAccount();\n\n $account->close();\n $account->open();\n\n $deposit = $account->deposit(Money::fromAmount(1000));\n $this->assertEquals(1000, $deposit->amount()->amount());\n\n $this->assertEquals(1000, $account->balance()->amount());\n }", "title": "" }, { "docid": "2452aeaf782c09bebd34cff735bc6ff1", "score": "0.5585493", "text": "function _withdrawstack($account = null, $pk = null,$amount = 0){\r\n\t\t\tinclude('../config.php');\r\n\t\t\tif ($account == null){\r\n\t\t\t\t$account= $configAccount;\r\n\t\t\t}\r\n\r\n\t\t\tif ($pk == null){\r\n\t\t\t\t$pk = $privateKey;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$result=file_get_contents(\"https://bank2.cloudcoin.global/withdraw_one_stack?account=$account&pk=$pk&amount=$amount\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t$result = json_decode($result, true);\r\n\t\t\t//returns array that shows the user the receipt.\r\n\t\t\treturn $result;\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6a76e023c271f67b4bafa9730f45cb87", "score": "0.55823666", "text": "public function abot_active_to_stop_abot_wallet_oold(){\n echo 'Lock by admin';\n exit;\n \n $u_id = $this->session->userdata('u_id');\n if(empty($this->db->query(\"SELECT * FROM stop_abot_wallet WHERE user_id = ?\", array($u_id))->result())){\n $this->db->query(\"INSERT INTO stop_abot_wallet (user_id) values ($u_id)\");\n }\n\n \t// for pro plus user request\n \tif(!empty($this->input->post('get_from')) && $this->input->post('get_from') == 'reqfromproplususerstopabot'){\n \t\t$token = hash('sha256', $this->input->post('time_stamp').$this->input->post('u_id'));\n \t\tif($token == $this->input->post('token')){\n \t\t\t$per_age = $this->input->post('active_arb_per');\n \t\t\t$u_id = $this->input->post('u_id');\n \t\t\tif($per_age < 0 || $per_age > 100){\n \t\t\t\techo 'invalid %age'; exit;\n \t\t\t}\n \t\t\tif($user_abot_date = $this->db->query(\"SELECT * FROM abot_wallet WHERE user_id = ?\", array($u_id))->row()){\n \t\t\t\t$_POST['dollar_selected'] = ($user_abot_date->active / 100) * $per_age;\n \t\t\t}else{\n \t\t\t\techo 'no abot record'; exit;\n \t\t\t}\n \t\t}else{\n \t\t\techo 'unknown request';\n \t\t\texit;\n \t\t}\n \t}else{\n \t\t$u_id = $this->session->userdata('u_id');\n \t}\n \n \tif($u_id != ''){\n \t\t// check lock time here \n \t\t$abot_wallet = $this->db->query(\"SELECT * FROM abot_wallet WHERE user_id = ?\", array($u_id))->row();\n \t\tif($abot_wallet->abot_lock_status == 1){\n \t\t\t$now = date('Y-m-d H:i:s');\n \t\t\t$block_days = '+'.$abot_wallet->lock_days.' days';\n \t\t\t$block_time = date('Y-m-d H:i:s', strtotime($block_days, strtotime($abot_wallet->lock_time)));\n \t\t\tif($now < $block_time){\n \t\t\t\techo 'false'; exit;\n \t\t\t}else{\n \t\t\t\t$this->db->query(\"UPDATE abot_wallet SET abot_lock_status = ? WHERE user_id = ?\", array(0, $u_id));\n \t\t\t}\n \t\t}\n \t\t$dollar_selected = doubleval($this->input->post('dollar_selected'));\n \n \t\t$arb_in_usd = $this->calculate_arb_abot_price($dollar_selected, 'out');\n \n \t\tif($arb_in_usd <= 0){\n \t\t\texit;\n \t\t}\n \n \t\t$abot_active_transfer_amount = $dollar_selected / $arb_in_usd;\n \n \t\tif(!empty($dollar_selected) && $dollar_selected > 0 && $abot_active_transfer_amount > 0){\n \t\t\t$get_active_from_abot = $this->db->query(\"SELECT * FROM abot_wallet WHERE user_id = ?\", array($u_id))->row();\n \t\t\tif($get_active_from_abot->active > 0 && $get_active_from_abot->active >= $dollar_selected){\n \t\t\t\t$before_24hour = date(\"Y-m-d H:i:s\", strtotime('-24 hour'));\n \t\t\t\tif($get_active_from_abot->pending_date > $before_24hour){\n \t\t\t\t\techo \"false\"; exit;\n \t\t\t\t}\n \t\t\t\t$abot_update_amount = $get_active_from_abot->active - $dollar_selected;\n \t\t\t\t$now = date('Y-m-d H:i:s');\n \t\t\t\t$this->db->query(\"UPDATE abot_wallet SET active = ?, stop_abot_time = ? WHERE user_id = ?\", array($abot_update_amount, $now, $u_id));\n \n \t\t\t\t$get_stop_active_arb = $this->db->query(\"SELECT activeArb FROM stop_abot_wallet WHERE user_id = ?\", array($u_id))->row()->activeArb;\n \n \t\t\t\t// 0.5 % fee on stop abot\n \t\t\t\t$stopabot_fee = $abot_active_transfer_amount * 0.04;\n \t\t\t\t$abot_arb_afterfee = $abot_active_transfer_amount - $stopabot_fee;\n \n \t\t\t\t$stop_update_arb = $get_stop_active_arb + $abot_arb_afterfee;\n \t\t\t\t$this->db->query(\"UPDATE stop_abot_wallet SET activeArb = ? WHERE user_id = ?\", array($stop_update_arb, $u_id));\n \n \t\t\t\t// stop_abot_data_record\n \t\t\t\t$this->db->query(\"INSERT into stop_abot_data (user_id, comment, wallet, value, price, date_time) values (?,?,?,?,?,?)\", array($u_id, 'stop aBot', 'Earned Wallet', $abot_arb_afterfee, $arb_in_usd, $now));\n \n \t\t\t\t//update admin wallet\n \t\t\t\t$get_admin_wallet = $this->db->query(\"SELECT * FROM admin_wallet WHERE id = 1 LIMIT 1\")->row();\n \t\t\t\t$admin_new_arb = $get_admin_wallet->arb + $stopabot_fee;\n \t\t\t\t$this->db->query(\"UPDATE admin_wallet SET arb = ? WHERE id = ?\", array($admin_new_arb, 1));\n \n \t\t\t\t$log1 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc, comment) values (?,?,?,?,?)\", array($u_id,'abotWallet_active','-'.$dollar_selected, $get_active_from_abot->active, \"Transfer $ from aBot active to Stop aBOT Wallet\"));\n \t\t\t\t$log2 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc, comment) values (?,?,?,?,?)\", array($u_id,'systemWallet_ARB',$abot_active_transfer_amount, $get_stop_active_arb, \"Credit ARB in Stop aBot Wallet\"));\n \t\t\t\t$log3 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc, comment) values (?,?,?,?,?)\", array($u_id,'stop_aBotFee','-'.$stopabot_fee, ($get_stop_active_arb+$abot_active_transfer_amount), \"Fee\"));\n \n \t\t\t\techo \"true\"; exit;\n \n \t\t\t}else{\n \t\t\t\techo \"false\"; exit;\n \t\t\t}\n \t\t}else{\n \t\t\techo 'false'; exit;\n \t\t}\n \t}else{\n \t\techo 'false'; exit;\n \t}\n }", "title": "" }, { "docid": "f6ea0554f523de0750c81a74341dbca0", "score": "0.55823493", "text": "public function testCantWithdrawMoreThanBalance()\n {\n $account = new DebitAccount();\n\n $account->deposit(Money::fromAmount(1000));\n\n $withdrawal = $account->withdraw(Money::fromAmount(1100));\n\n $this->assertEquals('Declined', $withdrawal->description());\n $this->assertEquals(0, $withdrawal->amount()->amount());\n\n $this->assertEquals(1000, $account->balance()->amount());\n }", "title": "" }, { "docid": "0c606690ba291e3b7d60fa3bfd4f0b0a", "score": "0.5568096", "text": "public function getWithdraws()\n {\n return $this->request('GET', 'withdraw/', $this->getLkApiAccountId());\n }", "title": "" }, { "docid": "c15be10cabffbfabe2ad5d17b0dccc27", "score": "0.5556792", "text": "public function makeDeposit():string\n {\n $sql = \"SELECT NIC FROM account WHERE accID = ?\";\n $stmt = (new Connection)->connect()->prepare($sql);\n $stmt->execute([$this->accID]);\n $found = $stmt->fetch();\n if($found){\n $sql2 = \"INSERT INTO `deposit` (`deposit_id`, `accID`, `amount`, `Description`, `branchCode`, `deposit_by`, `time`) VALUES (NULL, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP);\";\n $stmt = (new Connection)->connect()->prepare($sql2);\n $stmt->execute([$this->accID, $this->amount, $this->description, $this->branchCode, $this->depositBy]);\n return SUCCESSDEPOSIT;\n }\n return ACCOUNTNOTFOUND;\n \n }", "title": "" }, { "docid": "1d6a87de7889aa6b32d4c6ecef67d79b", "score": "0.55546343", "text": "function warquest_bank_log($id) {\r\n \r\n\t/* input\t*/\r\n\tglobal $mid;\r\n\tglobal $sid;\r\n\tglobal $player;\t\r\n\tglobal $config;\r\n\tglobal $offset;\r\n\t\r\n\t/* output */\r\n\tglobal $page;\r\n\r\n\t$limit=25;\r\n\t\r\n\t$query1 = 'select id from bank where bgid='.$id.' and pid1='.$player->pid;\r\n\t$result1 = warquest_db_query($query1);\t\r\n\t$total = warquest_db_num_rows($result1);\n\r\n\t$page .= '<div class=\"subparagraph\">'.t('BANK_TRANSACTION_LOG').'</div>';\r\n\t\t\r\n\tif ($total == 0) {\r\n\t\t\r\n\t\t$message = t('BANK_NO_LOG');\r\n\t\t$page .= warquest_box_icon('info', $message);\r\n\t\t\t\r\n\t} else {\r\n\t\r\n\t\t/* show bank transactions. */\r\n\t\t$query2 = 'select a.id, a.pid1, a.pid2, a.amount, a.action, a.balance, ';\r\n\t\t$query2 .= 'date_format(a.date , \"%d-%m-%Y %H:%i:%s\") as date, ';\r\n\t\t$query2 .= '(select name from player where pid=a.pid2) as name '; \r\n\t\t$query2 .= 'from bank a where a.pid1='.$player->pid.' and a.bgid='.$id.' ';\r\n\t\t$query2 .= 'order by a.id desc ';\r\n\t\t$query2 .= 'limit '.$offset.','.$limit;\r\n\t\r\n\t\t$result2 = warquest_db_query($query2);\t\r\n\t\t\r\n\t\t$page .= '<div class=\"box rows\">';\r\n\t\t\r\n\t\t$page .= warquest_page_control($offset, $limit, $total, 1);\n\t\t\r\n\t\t$page .= '<table>';\r\n\t\t\r\n\t\t$page .= '<tr>';\r\n\t\t$page .= '<th width=\"80\">'.t('GENERAL_AGO').'</th>';\r\n\t\t$page .= '<th width=\"310\">'.t('GENERAL_TRANSACTION').'</th>';\r\n\t\t$page .= '<th width=\"110\">'.t('GENERAL_BALANCE').'</th>';\r\n\t\t$page .= '</tr>';\r\n\t\t\r\n\t\twhile ($data2=warquest_db_fetch_object($result2)) {\r\n\t\t\r\n\t\t\t$page .= '<tr>';\r\n\t\t\t$page .= '<td>'.warquest_ui_ago($data2->date).'</td>';\r\n\t\t\t$page .= '<td>';\r\n\t\t\t\r\n\t\t\tif ($data2->action == 5) {\r\n\t\t\t\t$page .= warquest_link('mid='.$mid.'&sid='.PAGE_PROFILE.'&oid='.$data2->pid2, $data2->name).' ';\r\n\t\t\t\t$page .= t('BANK_TRANSACTION_TYPE_'.$data2->action);\r\n\t\t\t\t$page .= ' '.dollar_format($data2->amount).'.';\r\n\t\t\t} else {\r\n\t\t\t\t$page .= t('BANK_TRANSACTION_TYPE_'.$data2->action);\r\n\t\t\t\t$page .= ' '.dollar_format($data2->amount).'.';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$page .= '</td>';\r\n\t\t\t$page .= '<td>'.money_format1($data2->balance).'</td>';\r\n\t\t\t$page .= '</tr>';\r\n\t\t}\r\n\t\t\r\n\t\t$page .= '</table>';\r\n\t\r\n\t\t$page .= warquest_page_control($offset, $limit, $total, 0);\r\n\t}\r\n\t\r\n\t$page .= '</div>';\r\n}", "title": "" }, { "docid": "abc0a4f8b98b5403fe6216e2fd26d935", "score": "0.55537176", "text": "function executeWithdrawal($withdrawal, $funding_source_id) {\n\t\tif (empty($funding_source_id)) {\n\t\t\t$message = '#' . $withdrawal['Withdrawal']['id'] . ' failed to process, User funding_source_id not found.';\n\t\t\tCakeLog::write('payouts.mvpay', $message);\n\n\t\t\treturn false;\n\t\t}\n\t\t/* check if mvpay receiver is not empty -- */\n\t\t\n\t\t/* -- pre-load models to be used */\n\t\t$models_to_load = array(\n\t\t\t'Withdrawal',\n\t\t\t'PaymentMethod',\n\t\t\t'Setting',\n\t\t);\n\t\tforeach ($models_to_load as $model) {\n\t\t\tApp::import('Model', $model);\n\t\t\t$this->$model = new $model;\n\t\t}\n\t\t/* pre-load models to be used -- */\n\t\t\n\t\t// convert cents to dollars\n\t\t$amount = -1 * $withdrawal['Withdrawal']['amount_cents'] / 100;\n\n\t\t/* -- load mvpay master credentials */\n\t\t$settings = $this->Setting->find('list', array(\n\t\t\t'fields' => array('Setting.name', 'Setting.value'),\n\t\t\t'conditions' => array(\n\t\t\t\t'Setting.name' => array(\n\t\t\t\t\t'dwolla_v2.master.access_token', \n\t\t\t\t\t'dwolla_v2.master.account_id', \n\t\t\t\t\t'dwolla_v2.api_url'\n\t\t\t\t),\n\t\t\t\t'Setting.deleted' => false\n\t\t\t)\n\t\t));\n\t\t\n\t\tif (!isset($settings['dwolla_v2.api_url']) || empty($settings['dwolla_v2.api_url'])) {\n\t\t\tCakeLog::write('payouts.mvpay', '#' . $withdrawal['Withdrawal']['id'] . ' failed to process. dwolla_v2.api_url not found.');\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (!isset($settings['dwolla_v2.master.access_token']) || empty($settings['dwolla_v2.master.access_token'])) {\n\t\t\tCakeLog::write('payouts.mvpay', '#' . $withdrawal['Withdrawal']['id'] . ' failed to process. Master access token not found.');\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (!isset($settings['dwolla_v2.master.account_id']) || empty($settings['dwolla_v2.master.account_id'])) {\n\t\t\tCakeLog::write('payouts.mvpay', '#' . $withdrawal['Withdrawal']['id'] . ' failed to process. Master account id not found.');\n\t\t\treturn false;\n\t\t}\n\t\t/* load mvpay master credentials -- */\n\n\n\t\t// send money ...\n\t\tApp::import('Vendor', 'autoload_v2', array(\n\t\t\t'file' => 'DwollaV2SDK' . DS . 'vendor' . DS . 'autoload.php'\n\t\t));\n\t\tDwollaSwagger\\Configuration::$access_token = $settings['dwolla_v2.master.access_token'];\n\t\t$apiClient = new DwollaSwagger\\ApiClient($settings['dwolla_v2.api_url']);\n\t\t\n\t\t/* -- get master funding source id */\n\t\t$master_funding_source_id = null;\n\t\ttry {\n\t\t\t// get master account id\n\t\t\t$fundingSourcesApi = new DwollaSwagger\\FundingsourcesApi($apiClient);\n\t\t\t$accountUrl = $settings['dwolla_v2.api_url'] . 'accounts/' . $settings['dwolla_v2.master.account_id'];\n\t\t\t$account = $fundingSourcesApi->getAccountFundingSources($accountUrl, false); // removed => false (get only active funding sources)\n\t\t\t\n\t\t\tif (isset($account->_embedded->{'funding-sources'}[0])) {\n\t\t\t\t$source_funding_sources = $account->_embedded->{'funding-sources'};\n\t\t\t\tforeach ($source_funding_sources as $funding_source) {\n\t\t\t\t\t// find funding source with type as 'balance' for dwolla master funding source\n\t\t\t\t\tif ($funding_source->type == 'balance') {\n\t\t\t\t\t\t$master_funding_source_id = $funding_source->id;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\t$errors = json_decode($e->getResponseBody());\n\t\t\tCakeLog::write('payouts.mvpay', '#' . $withdrawal['Withdrawal']['id'] . ' failed to process. ' . json_encode($errors));\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!$master_funding_source_id) {\n\t\t\t$message = '#' . $withdrawal['Withdrawal']['id'] . ' failed to process. Master funding source not found.';\n\t\t\tCakeLog::write('payouts.mvpay', $message);\n\t\t\treturn false;\n\t\t}\n\t\t/* get master funding source id -- */\n\n\t\t/* -- transfer amount from master funding source to customer funding source */\n\t\ttry {\n\t\t\t$transfersApi = new DwollaSwagger\\TransfersApi($apiClient);\n\t\t\t$transfer = $transfersApi->create(array(\n\t\t\t\t'_links' => array(\n\t\t\t\t\t'source' => array(\n\t\t\t\t\t\t'href' => $settings['dwolla_v2.api_url'] . 'funding-sources/' . $master_funding_source_id,\n\t\t\t\t\t),\n\t\t\t\t\t'destination' => array(\n\t\t\t\t\t\t'href' => $settings['dwolla_v2.api_url'] . 'funding-sources/' . $funding_source_id\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t'amount' => array(\n\t\t\t\t\t'currency' => 'USD',\n\t\t\t\t\t'value' => $amount\n\t\t\t\t),\n\t\t\t\t'metadata' => array(\n\t\t\t\t\t'paymentId' => $withdrawal['Withdrawal']['id'],\n\t\t\t\t\t'note' => \" Payout from your MintVine account\",\n\t\t\t\t),\n\t\t\t));\n\t\t\t\n\t\t\t// fetch transactionId from response url\n\t\t\t$transactionId = substr($transfer, strrpos($transfer, '/') + 1);\n\t\t\tCakeLog::write('payouts.mvpay', '#' . $withdrawal['Withdrawal']['id'] . ' mvpay transactionId: ' . $transactionId);\n\t\t\t\n\t\t\tif (!empty($transactionId)) {\n\t\t\t\treturn array(\n\t\t\t\t\t'paid_amount_cents' => $withdrawal['Withdrawal']['amount_cents'],\n\t\t\t\t\t'response' => $transfer,\n\t\t\t\t\t'payment_id' => $transactionId\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\t$errors = json_decode($e->getResponseBody());\n\t\t\tCakeLog::write('payouts.mvpay', '#' . $withdrawal['Withdrawal']['id'] . ' failed to process. '. json_encode($errors));\n\t\t\treturn false;\n\t\t}\n\t\t/* transfer amount from master funding source to customer funding source -- */\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "34a229b2db0f7829a34a0d4e34f3eb32", "score": "0.5551534", "text": "public function abot_earned_to_vault(){\n // if($this->db->query(\"SELECT * FROM admin_locks WHERE name = ?\", array('abot_lock'))->row()->lock_status == 1){\n // echo 'Lock by admin'; exit;\n // } \n \n $u_id = $this->session->userdata('u_id');\n if($u_id != ''){\n if($this->db->query(\"SELECT count(*) as tot FROM vault_req WHERE user_id = ?\", array($u_id))->row()->tot > 0){\n echo 'false';\n exit;\n }\n // get ARB to transfer from wallet to Vault min amount 5 ARB\n $amount = $this->getTruncatedValue(abs($this->input->post('abot_earned_transfer_amount')), 4);\n if($amount < 5){\n echo 'false';\n exit;\n }\n \n // check user abot wallet\n $user_abot_wallet = $this->db->query(\"SELECT * FROM abot_wallet WHERE user_id = ?\", array($u_id))->row();\n if($user_abot_wallet->earned >= $amount){\n // update user abot wallet\n $user_updated_arb = $user_abot_wallet->earned - $amount;\n $user_updated_arb = $this->getTruncatedValue($user_updated_arb, 4);\n $this->db->query(\"UPDATE abot_wallet SET earned = ? WHERE user_id = ?\", array($user_updated_arb, $u_id));\n \n // insert logs\n $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc, comment) values (?,?,?,?,?)\", array($u_id,'abotWallet_ARB','-'.$amount, $user_abot_wallet->earned, \"Transfer abot_earned from abot_wallet to vault (Processing...)\"));\n $log_id = $this->db->insert_id();\n // generate request\n $this->db->query(\"INSERT INTO vault_req (user_id, amount, type, log_id, wallet) VALUES (?,?,?,?,?)\", array($u_id, $amount, 'in', $log_id, 'internal'));\n \n echo 'true';\n exit;\n \n }else{\n echo 'false';\n exit;\n }\n \n }else{\n echo 'false';\n exit;\n }\n \n }", "title": "" }, { "docid": "1e99f6e623450c0fbfcb9234d63a5350", "score": "0.5545468", "text": "public function depositFunds($accountID, $amount){\n \n /**\n * Get current balance\n */\n $currentBalance = $this->getBalance($accountID);\n \n /**\n * Calculate new figure.\n */\n $newBalance = $currentBalance + $amount;\n \n /**\n * Update the customer account with the new value.\n */\n $this->update('deposits', array('balance'=>$newBalance), array('account_id'=>$accountID));\n\n /**\n * Make record for the transaction just happened.\n * About third parameter 1-Deposit, 2-Withdraw\n */\n $this->createTransaction($accountID, 1, $amount );\n }", "title": "" }, { "docid": "92a795235f645d75e650e134fb25cf12", "score": "0.5543972", "text": "public function abot_earned_to_systemWallet(){\n $u_id = $this->session->userdata('u_id');\n \n \n //$arr = str_split($u_id); // convert string to an array\n //$last_digit = end($arr);\n \n // if($last_digit == 4 || $last_digit == 5){\n // echo \"Lock by admin\";\n // exit;\n // }\n \n // if($this->db->query(\"SELECT * FROM admin_locks WHERE name = ?\", array('abot_lock'))->row()->lock_status == 1){\n // echo \"Lock by admin\";\n // exit;\n // } \n \n if($u_id != ''){\n $abot_earned_transfer_amount = doubleval($this->input->post('abot_earned_transfer_amount'));\n if(!empty($abot_earned_transfer_amount) && $abot_earned_transfer_amount > 0){\n $get_earned_from_abot = $this->db->query(\"SELECT earned FROM abot_wallet WHERE user_id = ?\", array($u_id))->row()->earned;\n if($get_earned_from_abot > 0 && $get_earned_from_abot >= $abot_earned_transfer_amount){\n \n $abot_update_amount = $get_earned_from_abot - $abot_earned_transfer_amount;\n $this->db->query(\"UPDATE abot_wallet SET earned = ? WHERE user_id = ?\", array($abot_update_amount, $u_id));\n \n $get_system_active_arb = $this->db->query(\"SELECT activeArb FROM system_wallet WHERE user_id = ?\", array($u_id))->row()->activeArb;\n $system_update_arb = $get_system_active_arb + $abot_earned_transfer_amount;\n $this->db->query(\"UPDATE system_wallet SET activeArb = ? WHERE user_id = ?\", array($system_update_arb, $u_id));\n \n $log1 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc,comment) values (?,?,?,?,?)\", array($u_id,'abotWallet_earned','-'.$abot_earned_transfer_amount, $get_earned_from_abot, \"Transfer aBot Earned ARB to Wallet\"));\n $log2 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc,comment) values (?,?,?,?,?)\", array($u_id,'systemWallet_ARB',$abot_earned_transfer_amount, $get_system_active_arb, \"Credit ARB in Wallet from aBot Earned\"));\n \n echo \"true\"; exit;\n \n }else{\n echo \"false\"; exit;\n }\n }else{\n echo 'false'; exit;\n }\n \n }else{\n echo 'false'; exit;\n }\n }", "title": "" }, { "docid": "2b99e67c2f9c664b08e7917e5dffa21b", "score": "0.5537278", "text": "public function exEarned_to_system_wallet(){\n \n $u_id = $this->session->userdata('u_id');\n if($u_id != ''){\n $exearned_transfer_amount = abs($this->getTruncatedValue(doubleval($this->input->post('exearned_transfer_amount')), 4));\n if(!empty($exearned_transfer_amount) && $exearned_transfer_amount > 0){\n $get_activeArb_from_exearned_wallet = $this->db->query(\"SELECT activeArb FROM exchange_earned_wallet WHERE user_id = ?\", array($u_id))->row()->activeArb;\n if($get_activeArb_from_exearned_wallet > 0 && $get_activeArb_from_exearned_wallet >= $exearned_transfer_amount){\n \n $update_amount = $get_activeArb_from_exearned_wallet - $exearned_transfer_amount;\n $this->db->query(\"UPDATE exchange_earned_wallet SET activeArb = ? WHERE user_id = ?\", array($update_amount, $u_id));\n \n if($get_system_active_arb = $this->db->query(\"SELECT activeArb FROM system_wallet WHERE user_id = ?\", array($u_id))->row()){\n $updated_system_active_arb = $get_system_active_arb->activeArb + $exearned_transfer_amount;\n $this->db->query(\"UPDATE system_wallet SET activeArb = ? WHERE user_id = ?\", array($updated_system_active_arb, $u_id));\n }else{\n $updated_system_active_arb = $exearned_transfer_amount;\n $this->db->query(\"INSERT INTO system_wallet (user_id, activeArb) VALUES (?,?)\", array($u_id, $updated_system_active_arb));\n }\n \n $log1 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc,comment) values (?,?,?,?,?)\", array($u_id,'exEarnedWallet_ARB','-'.$exearned_transfer_amount, $get_activeArb_from_exearned_wallet, \"Transfer exEarned ARB to System Wallet\"));\n $log2 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc,comment) values (?,?,?,?,?)\", array($u_id,'systemWallet_ARB',$exearned_transfer_amount, $get_system_active_arb->activeArb, \"Credit ARB in System Wallet from exEarnedWallet\"));\n \n echo json_encode(array('success'=>'1', 'msg' => 'Transfered to wallet successfully.')); exit;\n \n }else{\n echo json_encode(array('error'=>'1', 'msg' => 'Not enough balance in your wallet.')); exit;\n }\n }else{\n echo json_encode(array('error'=>'1', 'msg' => 'Invalid Amount')); exit;\n }\n \n }else{\n echo json_encode(array('error'=>'1', 'msg' => 'Session Expired')); exit;\n }\n }", "title": "" }, { "docid": "d717296d3be7cfb01acb497900ba9743", "score": "0.55331945", "text": "function update_customer_balance($customer_id){\n \n\n\t\t $out = mysqli_fetch_assoc_(mysqli_query_(\"select sum(amount_ksh) as ksh_out,sum(amount_dollar) as dollar_out from transactions where customer_id='\".sanitize($customer_id).\"' and type='out' and delete_status!='1'\"));\n\n\t\t $in = mysqli_fetch_assoc_(mysqli_query_(\"select sum(amount_ksh) as ksh_in,sum(amount_dollar) as dollar_in from transactions where customer_id='\".sanitize($customer_id).\"' and type='in' and delete_status!='1'\"));\n\n\t\t $balance_ksh = $in['ksh_in'] - $out['ksh_out'];\n $balance_doll = $in['dollar_in'] - $out['dollar_out'];\n\n \t\t\t\t\t\tmysqli_query_(\"update customers set current_ksh_balace='$balance_ksh', current_dollar_balace='$balance_doll' where customer_id='\".sanitize($customer_id).\"'\");\n}", "title": "" }, { "docid": "92535c878906169a7563a28d1577a3a3", "score": "0.55259347", "text": "public function previous_balance_add($balance, $customer_id) {\n $this->load->library('auth');\n $cusifo = $this->db->select('*')->from('customer_information')->where('customer_id',$customer_id)->get()->row();\n $headn = $customer_id.'-'.$cusifo->customer_name;\n $coainfo = $this->db->select('*')->from('acc_coa')->where('HeadName',$headn)->get()->row();\n $customer_headcode = $coainfo->HeadCode;\n $transaction_id = $this->auth->generator(10);\n\n\n// Customer debit for previous balance\n $cosdr = array(\n 'VNo' => $transaction_id,\n 'Vtype' => 'PR Balance',\n 'VDate' => date(\"Y-m-d\"),\n 'COAID' => $customer_headcode,\n 'Narration' => 'Customer debit For '.$cusifo->customer_name,\n 'Debit' => $balance,\n 'Credit' => 0,\n 'IsPosted' => 1,\n 'CreateBy' => $this->session->userdata('user_id'),\n 'CreateDate' => date('Y-m-d H:i:s'),\n 'IsAppove' => 1\n );\n $inventory = array(\n 'VNo' => $transaction_id,\n 'Vtype' => 'PR Balance',\n 'VDate' => date(\"Y-m-d\"),\n 'COAID' => 10107,\n 'Narration' => 'Inventory credit For Old sale For'.$cusifo->customer_name,\n 'Debit' => 0,\n 'Credit' => $balance,//purchase price asbe\n 'IsPosted' => 1,\n 'CreateBy' => $this->session->userdata('user_id'),\n 'CreateDate' => date('Y-m-d H:i:s'),\n 'IsAppove' => 1\n ); \n\n \n if(!empty($balance)){\n $this->db->insert('acc_transaction', $cosdr); \n $this->db->insert('acc_transaction', $inventory); \n }\n }", "title": "" }, { "docid": "2a32baef4293c206f4ebc5710c588bad", "score": "0.5520289", "text": "public function updateBalance()\n\t{\n\t\t$this->db->begin();\n\n\t\t// Update sold of vocations\n\t\t$result = $this->updateSoldeCP();\n\n\t\t// Check nb of users into table llx_holiday_users and update with empty lines\n\t\t//if ($result > 0) $result = $this->verifNbUsers($this->countActiveUsersWithoutCP(), $this->getConfCP('nbUser'));\n\n\t\tif ($result >= 0)\n\t\t{\n\t\t\t$this->db->commit();\n\t\t\treturn 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->db->rollback();\n\t\t\treturn -1;\n\t\t}\n\t}", "title": "" }, { "docid": "205388ba6a9c5c60acb3aa80a03109bf", "score": "0.55152464", "text": "public function eth_earned_to_systemWallet(){\n $u_id = $this->session->userdata('u_id');\n \n if($this->db->query(\"SELECT * FROM admin_locks WHERE name = ?\", array('abot_lock'))->row()->lock_status == 1){\n echo json_encode(array('error'=>'1', 'msg' => 'Lock by admin.')); exit;\n } \n \n if($u_id != ''){\n $eth_earned_transfer_amount = doubleval($this->input->post('eth_earned_transfer_amount'));\n if(!empty($eth_earned_transfer_amount) && $eth_earned_transfer_amount > 0){\n $get_eth_earned_from_abot = $this->db->query(\"SELECT eth_earned FROM abot_wallet WHERE user_id = ?\", array($u_id))->row()->eth_earned;\n if($get_eth_earned_from_abot > 0 && $get_eth_earned_from_abot >= $eth_earned_transfer_amount){\n \n $update_amount = $get_eth_earned_from_abot - $eth_earned_transfer_amount;\n $this->db->query(\"UPDATE abot_wallet SET eth_earned = ? WHERE user_id = ?\", array($update_amount, $u_id));\n \n $get_system_active_eth = $this->db->query(\"SELECT activeEth FROM system_wallet WHERE user_id = ?\", array($u_id))->row()->activeEth;\n $system_update_eth = $get_system_active_eth + $eth_earned_transfer_amount;\n $this->db->query(\"UPDATE system_wallet SET activeEth = ? WHERE user_id = ?\", array($system_update_eth, $u_id));\n \n $log1 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc,comment) values (?,?,?,?,?)\", array($u_id,'abotWallet_eth_earned','-'.$eth_earned_transfer_amount, $get_eth_earned_from_abot, \"Transfer aBot Earned ETH to System Wallet\"));\n $log2 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc,comment) values (?,?,?,?,?)\", array($u_id,'systemWallet_ETH',$eth_earned_transfer_amount, $get_system_active_eth, \"Credit ETH in System Wallet from aBot Earned Eth\"));\n \n echo json_encode(array('success'=>'1', 'msg' => 'Transfered to system wallet successfully')); exit;\n \n }else{\n echo json_encode(array('error'=>'1', 'msg' => 'Not enough balance in you aBot Earned Eth.')); exit;\n }\n }else{\n echo json_encode(array('error'=>'1', 'msg' => 'Value must be greater then 0.')); exit;\n }\n }else{\n echo json_encode(array('error'=>'1', 'msg' => 'Session Expired.')); exit;\n }\n }", "title": "" }, { "docid": "74539a9b84ff43550814c96b840b4114", "score": "0.5508283", "text": "public function depositar($deposito){\n $this->setSaldo($this->getSaldo() + $deposito);\n }", "title": "" }, { "docid": "8521f8cee6f8e476a9ac223248114337", "score": "0.5505746", "text": "public static function createWithdraw($data){\n try{\n\n // If any error wil throw all database operations will rollback\n $createData = \\DB::transaction(function() use($data){\n $bonus = 0;\n $userInstance = User::findOrFail($data['user_id']);\n\n if($data['amount'] > ($userInstance->balance - $userInstance->bonus_balance)){\n throw new \\Exception(\"You can make only withdraw to \"\n .($userInstance->balance-$userInstance->bonus_balance), 422);\n }\n\n $createData = [\n 'user_id' => $data['user_id'],\n 'type' => $data['type'],\n 'amount' => $data['amount'],\n 'bonus_amount' => 0\n ];\n $created = self::create($createData);\n\n if(!$created){\n throw new \\Exception(\"Withdraw has been not registered\", 422);\n }\n\n $userInstance->balance = $userInstance->balance-$createData['amount'];\n\n $userInstanceSaved = $userInstance->save();\n\n if(!$userInstanceSaved){\n throw new \\Exception(\"Withdraw has been not registered\", 422);\n }\n return $createData;\n });\n return $createData;\n\n }catch(\\Exception $e){\n throw new \\Exception($e->getMessage(), 422);\n }\n }", "title": "" }, { "docid": "a62a1c081931f43b3f1d3ea7a2ebbdc6", "score": "0.5499511", "text": "public function abot_earned_to_exEarned(){\n // echo 'This feature is currently disabled by admin, be patient.';\n // exit;\n $u_id = $this->session->userdata('u_id');\n \n $arr = str_split($u_id); // convert string to an array\n $last_digit = end($arr);\n \n // if($last_digit == 4 || $last_digit == 5){\n // echo \"Lock by admin\";\n // exit;\n // }\n \n // if($this->db->query(\"SELECT * FROM admin_locks WHERE name = ?\", array('abot_lock'))->row()->lock_status == 1){\n // echo \"Lock by admin\";\n // exit;\n // } \n \n if($u_id != ''){\n $abot_earned_transfer_amount = abs($this->getTruncatedValue(doubleval($this->input->post('abot_earned_transfer_amount')), 4));\n if(!empty($abot_earned_transfer_amount) && $abot_earned_transfer_amount > 0){\n $get_earned_from_abot = $this->db->query(\"SELECT earned FROM abot_wallet WHERE user_id = ?\", array($u_id))->row()->earned;\n if($get_earned_from_abot > 0 && $get_earned_from_abot >= $abot_earned_transfer_amount){\n \n $abot_update_amount = $get_earned_from_abot - $abot_earned_transfer_amount;\n $this->db->query(\"UPDATE abot_wallet SET earned = ? WHERE user_id = ?\", array($abot_update_amount, $u_id));\n $exEarned_last = 0;\n if($get_exEarned_active_arb = $this->db->query(\"SELECT activeArb FROM exchange_earned_wallet WHERE user_id = ?\", array($u_id))->row()){\n $exEarned_last = $get_exEarned_active_arb->activeArb;\n $exEarned_update_arb = $get_exEarned_active_arb->activeArb + $abot_earned_transfer_amount;\n $this->db->query(\"UPDATE exchange_earned_wallet SET activeArb = ? WHERE user_id = ?\", array($exEarned_update_arb, $u_id));\n }else{\n $exEarned_update_arb = $abot_earned_transfer_amount;\n $this->db->query(\"INSERT INTO exchange_earned_wallet (user_id, activeArb) VALUES (?,?)\", array($u_id, $exEarned_update_arb));\n }\n \n \n $log1 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc,comment) values (?,?,?,?,?)\", array($u_id,'abotWallet_earned','-'.$abot_earned_transfer_amount, $get_earned_from_abot, \"Transfer aBot Earned ARB to Exchange Earned Wallet\"));\n $log2 = $this->db->query(\"INSERT into wallet_logs (user_id, type, value, last_blnc,comment) values (?,?,?,?,?)\", array($u_id,'exEarnedWallet_ARB',$abot_earned_transfer_amount, $exEarned_last, \"Credit ARB in Exchange Earned Wallet from aBot earned\"));\n \n echo \"true\"; exit;\n \n }else{\n echo \"false\"; exit;\n }\n }else{\n echo 'false'; exit;\n }\n \n }else{\n echo 'false'; exit;\n }\n }", "title": "" }, { "docid": "130d31535ddd122b2e9a450f8fddeecd", "score": "0.54868245", "text": "public function updateBalance()\n {\n $request_content = json_decode(file_get_contents('php://input'));\n $this->user->setBalance((float)number_format(\n (float)$request_content->balance,\n 2,\n '.',\n ''));\n $newBalance = [\n 'balance' => $this->user->getBalance()\n ];\n if ($this->user::updateData($newBalance, 'acc_number', $request_content->acc_number)) {\n Helper::apiResponse(\n 'Saldo atualizado com sucesso'\n );\n } else {\n http_response_code(404);\n Helper::apiResponse(\n 'Conta informada não encontrada/Saldo inserido igual ao atual'\n );\n }\n }", "title": "" } ]
8a0a27153e7e284134aa799e043034f0
Called before Zend_Controller_Front enters its dispatch loop. During the dispatch loop, Zend_Controller_Front keeps a stack of Zend_Controller_Dispatcher_Token objects, and uses Zend_Controller_Dispatcher to dispatch the Zend_Controller_Dispatcher_Token objects to controllers/actions.
[ { "docid": "48acc6f9e266096f220b4da42adb5928", "score": "0.0", "text": "public function dispatchLoopStartup($action)\r\n\t{\r\n\t foreach ($this->_plugins as $plugin) {\r\n\t $action = $plugin->dispatchLoopStartup($action);\r\n\t }\r\n\t return $action;\r\n\t}", "title": "" } ]
[ { "docid": "b280601782705ae694e456ff6425237d", "score": "0.72887975", "text": "public function preDispatch(){\n\n parent::preDispatch();\n $controllerName = $this->getRequest()->getControllerName();\n $actionName = $this->getRequest()->getActionName();\n Zend_Registry::set('controllerName', $controllerName);\n Zend_Registry::set('actionName', $actionName);\n // check the Flag and Flippers\n $this->_checkFlagFlippers();\n $this->_checkAssistantAccess();\n }", "title": "" }, { "docid": "45caea7f1da39589bdc58cc3fa6b5b03", "score": "0.701568", "text": "public function preDispatch() {\n parent::preDispatch();\n }", "title": "" }, { "docid": "f680fffab6f5b9f789515ace94bd4d9b", "score": "0.6966809", "text": "public function preDispatch()\n\t{\n\t\t$this->getContainer ()->findBy ( 'uri', $this->getRequest ()->getRequestUri () )->active = true;\n\t}", "title": "" }, { "docid": "fef0d1b9fb6be14eac63ec1408d7a534", "score": "0.6953675", "text": "public function preDispatch()\n {\n $this->getActionController()->acl = $this;\n }", "title": "" }, { "docid": "b44752200cfa3cb5a6506631f2d79470", "score": "0.6888403", "text": "public function preDispatch()\n {\n // a brute-force protection here would be nice\n\n parent::preDispatch();\n\n if (!$this->getRequest()->isDispatched()) {\n return;\n }\n\n if (!$this->_getSession()->authenticate($this)) {\n $this->setFlag('', 'no-dispatch', true);\n }\n \n }", "title": "" }, { "docid": "e7b28e77058bec66c50bcc7c60bb775b", "score": "0.68573964", "text": "public function preDispatch() {\n $this->getContainer()\n ->findBy('uri', $this->getRequest()->getRequestUri())\n ->active = true;\n }", "title": "" }, { "docid": "28ab7d7fa11248722c7149b8c1d05433", "score": "0.68571824", "text": "public function preDispatch()\n\t\t{\n\t\t\t\n\t\t\t/*$auth = Zend_Auth::getInstance();\n\t\t\tif(!$auth->hasIdentity())\n\t\t\t{\n\t\t\t\tif($this->_request->getActionName() != 'login')\n\t\t\t\t{\n\t\t\t\t\t$this->_redirect('/user/login');\n\t\t\t\t}\n\t\t\t}*/\n\t\t}", "title": "" }, { "docid": "0bf1bd0112b6c818b870cce91b20ad17", "score": "0.6821632", "text": "public function preDispatch()\n {\n }", "title": "" }, { "docid": "ecada467a9cd3af2311e1ca6420fac96", "score": "0.67804444", "text": "public function preDispatch()\n\t{\n\t}", "title": "" }, { "docid": "2dccf707cc4c77e216bbcf6d844338c3", "score": "0.6700309", "text": "public function preDispatch() {\n \n }", "title": "" }, { "docid": "6b66002c952b1713b65bd47d71eac28a", "score": "0.6694279", "text": "public function preDispatch()\n {\n\n parent::preDispatch();\n\n if (!$this->getRequest()->isDispatched()) {\n return;\n }\n\n $action = $this->getRequest()->getActionName();\n $openActions = array(\n 'create',\n 'login',\n 'logoutsuccess',\n 'forgotpassword',\n 'forgotpasswordpost',\n 'resetpassword',\n 'resetpasswordpost',\n 'confirm',\n 'confirmation'\n );\n $pattern = '/^(' . implode('|', $openActions) . ')/i';\n\n if (!preg_match($pattern, $action)) {\n if (!$this->_getSession()->authenticate($this)) {\n $this->setFlag('', 'no-dispatch', true);\n }\n } else {\n $this->_getSession()->setNoReferer(true);\n }\n }", "title": "" }, { "docid": "69890834e39de44f73787ecbc6640ac5", "score": "0.669305", "text": "public function preDispatch()\n {\n\n }", "title": "" }, { "docid": "bf38031031f43a649a097a6d2c9f7424", "score": "0.66410834", "text": "public function preDispatch()\n {\n \n }", "title": "" }, { "docid": "1890c6f89968848059a445408e4d2fcb", "score": "0.66024184", "text": "function preDispatch()\n {\n\n }", "title": "" }, { "docid": "699b414797fe5d1be5f9e111b63b8819", "score": "0.65832865", "text": "public function preDispatch(){\t\t\t\t\t\n\t\t\tparent::preDispatch();\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "3337dd88a591359a2fa29df1cb763b89", "score": "0.65820634", "text": "public function preDispatch()\n\t{\n\t\n\t\tif(Auth_UserAdapter::hasIdentity())\n\t\t{\n\t\t\tif($this->getRequest()->getParam('id'))\n\t\t\t{\n\t\t\t\t\n\t\t\t\t$after_login_redirection_session = new Zend_Session_Namespace('after_login_redirection_session');\n\t\t\t\t// value 8 is used for post detail\n\t\t\t\t$after_login_redirection_session->action = 8;\n\t\t\t\t$after_login_redirection_session->post_detail_id = $this->getRequest()->getParam('id');\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse if( !Auth_UserAdapter::hasIdentity() )\n\t\t{\n\t\t\t$this->_helper->redirector( 'index', 'index' );\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "a6e4590493cdfd8c5a7526e881b2a616", "score": "0.6544482", "text": "function executeOnDispatcherInitialise() {\r\n\t\t$this->getRequest()->setSession(new mvcSession($this->getRequest()));\r\n\t}", "title": "" }, { "docid": "3304ea8fa9d82a72cda5829c586ba168", "score": "0.65014315", "text": "public function init()\r\n {\r\n //$front = Zend_Controller_Front::getInstance();\r\n \r\n }", "title": "" }, { "docid": "04bac2d23b7308a46f18943334c7b0f3", "score": "0.64694476", "text": "public function onBeforeDispatch()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f59f9645b2508504490fb512dafbc7d2", "score": "0.6423782", "text": "public function preDispatch()\n\t{\n\t\tif ( Auth_AdminAdapter::hasIdentity() )\n\t\t{\n\t\t\t//Checking admin type and redirecting accordingly\n\t\t\tif( Auth_AdminAdapter::getIdentity()->getRole()->getId() == 1 )//if Admin but not Sub-admin.\n\t\t\t{\n\t\t\t\t$sec_storage = new Zend_Session_Namespace('admin_secondary_identity_storage');\n\t\t\t\tif( !$sec_storage->id )\n\t\t\t\t{\n\t\t\t\t\t$this->_helper->redirector( 'index', 'secondary-authentication', 'admin' );\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Checking if sub-admin and login first time then redirect to change password\n\t\t\telse if( Auth_AdminAdapter::getIdentity()->getRole()->getId() == 2 &&\n\t\t\t\t\tAuth_AdminAdapter::getIdentity()->getIs_first_time_login() == 1 )\n\t\t\t{\n\t\t\t\t$sec_storage = new Zend_Session_Namespace('admin_secondary_identity_storage');\n\t\t\t\tif( !$sec_storage->id )\n\t\t\t\t{\n\t\t\t\t\t$this->_helper->redirector( 'change-password', 'sub-admins', 'admin' );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_helper->redirector( 'index', 'index', 'admin' );\n\t\t}\n\t}", "title": "" }, { "docid": "79c9077b2c86044b8bc263c804c6825b", "score": "0.63958913", "text": "public function preDispatch() {\r\n\t\tparent::preDispatch();\r\n \r\n // See if we have a logged in user.\r\n\t $this->checkLogin();\r\n\t}", "title": "" }, { "docid": "add59c55efa244a33234c3bb996fc212", "score": "0.63954747", "text": "public function preDispatch()\n {\n if (!in_array($this->Request()->getActionName(), ['index', 'load', 'validateArticle'])) {\n $this->Front()->Plugins()->Json()->setRenderer(true);\n }\n }", "title": "" }, { "docid": "08aa514328a9aba6a737d3374de11c2d", "score": "0.6359729", "text": "public function preDispatch()\n {\n parent::preDispatch();\n \n if (!Mage::helper('wsu_eventtickets')->isEnabled()) {\n $this->setFlag('', 'no-dispatch', true);\n $this->_redirect('noRoute');\n } \n }", "title": "" }, { "docid": "366abd248e4128684e4ed64fc98d5075", "score": "0.63302505", "text": "public function preDispatch()\n {\n // Is user logged in?\n $this->_helper->login();\n\n // Is user allowed?\n $allowed = $this->_helper->Acl();\n\n // Redirect if they do not have permissions\n if(!$allowed) $this->_redirector->goToSimple('denied', 'error', 'default');\n }", "title": "" }, { "docid": "1c2a1e54e6c8b08c9359b78abc65231d", "score": "0.62977237", "text": "public function dispatch()\r\n\t{\r\n\t\tif (!isset($this->dispatcher) )\r\n\t\t\tthrow new FrontControllerException('Call to FrontController::dispatch() without a Dispatcher object');\r\n\t\t\r\n\t\t\r\n\t\t$this->__preDispatch();\r\n\t\t\r\n\t\t\r\n\t\tif (isset($this->router) )\r\n\t\t\t$this->router->route($this->request);\r\n\t\t\t\r\n\t\t//The dispatch() call\r\n\t\t$this->response = $this->dispatcher->dispatch($this->request, $this->response);\r\n\t\t\r\n\t\t$this->__postDispatch();\r\n\t\r\n\t\t$this->response->send();\r\n\t}", "title": "" }, { "docid": "5fea27677f8d95e3eaf8101e06c71a94", "score": "0.62925166", "text": "public function preDispatch(){\n\n parent::preDispatch();\n if(!Mage::helper('discountcoffee_quickorder')->isEnabled()){\n $this->setFlag('','no-dispatch',TRUE);\n $this->_redirect('noRoute');\n }\n\n }", "title": "" }, { "docid": "f73ff0c94d448abdb581c683b687d3f6", "score": "0.62847346", "text": "public function preDispatch() {\n\t\t$this->session = new Zend_Session_Namespace ( 'Admin' );\n\t\t$this->subscribers = new NewslettersSubscribers();\n\t\t$this->translator = Shineisp_Registry::getInstance ()->Zend_Translate;\n\t\t$this->datagrid = $this->_helper->ajaxgrid;\n\t\t$this->datagrid->setModule ( \"subscribers\" )->setModel ( $this->subscribers );\t\t\n\t}", "title": "" }, { "docid": "5897eefe295e319ee503012135ac6eb4", "score": "0.6278253", "text": "public function preDispatch()\n\t{\n\t\tparent::preDispatch();\n\t\tif (!Mage::getSingleton('customer/session')->authenticate($this)) {\n\t\t\t$this->setFlag('', 'no-dispatch', true);\n\t\t}\n\t}", "title": "" }, { "docid": "b6128048006084fc4b358bb5c4ddbeaf", "score": "0.626333", "text": "public function preDispatch(Zend_Controller_Request_Abstract $request)\n {\n $this->_callPlugins(self::PREDISPATCH_METHOD);\n }", "title": "" }, { "docid": "e95730e786fa71935ea656e4b12aebc5", "score": "0.62553173", "text": "public function preDispatch() {\n\n $request = $this->getRequest();\n $moduleName = $request->getModuleName();\n $controllerName = $request->getControllerName();\n $action = $request->getActionName();\n $this->config = Zend_Registry::get('config');\n\n if ('admin' == $moduleName) {\n\n $auth = Zend_Auth::getInstance();\n\n if (!$auth->hasIdentity() && $controllerName != 'login') {\n $this->_redirect('/admin/login');\n } else {\n return true;\n }\n }\n }", "title": "" }, { "docid": "2b978197d4d3cfef456ab7f73bede44e", "score": "0.624448", "text": "public function preDispatch() {\n\n // Executa o pre dispatch da classe DefaultViewController para verificacoes padrao de todos os controllers\n parent::preDispatch();\n\n // Extrai caracteres invalidos de dados enviados\n $this->_request->setParams(SecurityHelper::secureEnvData($this->_request->getParams()));\n\n // Extrai caracteres invalidos de dados enviados\n $this->_dataModule->camposForm = SecurityHelper::preparaDadosFormulario($this->_dataModule->camposForm, $this->_request->getParams());\n\n // disponibiliza o nome do controller para view. Deve ser executado apenas após da preparacao dos dados\n // Unico local (aqui e nas chamadas para) do sistema que é permitido a utilizacao go getParam e apenas para esta funcao\n $this->view->menuURL = $this->_dataModule->camposForm['controller'] = $this->_request->getParam('controller');\n }", "title": "" }, { "docid": "2d80eda953e010128e5a917a82a5b980", "score": "0.62177587", "text": "public function preDispatch() {\n $this->_requireLogin();\n }", "title": "" }, { "docid": "a01d53c93336b3975d16c2d9c58ffd8d", "score": "0.6194549", "text": "public function preDispatch()\n {\n $this->View()->setScope(Enlight_Template_Manager::SCOPE_PARENT);\n }", "title": "" }, { "docid": "dc940878e9ba0b1f81c8c6564fc335f0", "score": "0.616632", "text": "public function preDispatch() {\n\t\tMage_Core_Controller_Front_Action::preDispatch();\n\t\tif (0 === preg_match('/^(create|createpost)/i', $this->getRequest()->getActionName())) {\n\t\t\t$this->norouteAction();\n\t\t\t$this->setFlag('', self::FLAG_NO_DISPATCH, true);\n\t\t}\n\t\telse if (!df_h()->invitation()->config()->isEnabledOnFront()) {\n\t\t\t$this->norouteAction();\n\t\t\t$this->setFlag('', self::FLAG_NO_DISPATCH, true);\n\t\t}\n\t\telse if ($this->_getSession()->isLoggedIn()) {\n\t\t\t$this->_redirect('customer/account/');\n\t\t\t$this->setFlag('', self::FLAG_NO_DISPATCH, true);\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "016b44b185fca18a8de3c86e61d4bd58", "score": "0.6133947", "text": "public function preDispatch()\n {\n parent::preDispatch();\n $this->_session = Mage::getSingleton($this->_sessionName);\n if (!$this->_session->authenticate($this)) {\n $this->setFlag('', self::FLAG_NO_DISPATCH, true);\n }\n\n }", "title": "" }, { "docid": "b73287602ec814fdd6e3a319b1c331ee", "score": "0.61296654", "text": "public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request)\n { \n $acl = $this->getAcl(); /* @var $acl Application_Acl */\n $user = $this->getCurrentUser();\n $resource = $request->getControllerName() . 'Controller';\n $privilege = $request->getActionName();\n \n $allowed = $acl->isAllowed($user, $resource);\n if (!$allowed) {\n $controller = 'auth';\n $auth = $this->getAuth();\n if (!$auth->hasIdentity()) {\n $action = 'index';\n } else {\n $action = 'permissions';\n }\n\n $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');\n $redirector->gotoSimple($action, $controller);\n }\n }", "title": "" }, { "docid": "c038c9d6cd57726372a3cfa366ceaea0", "score": "0.6115184", "text": "public function preDispatch() {\n\t\t\n\t\tif($this->getRequest()->getParams())\n\t\t{\n\t\t\t\n\t\t}\n\t\tif (Auth_UserAdapter::hasIdentity ()) \n\t\t{\n\t\t\tif ('logout' != strtolower ( $this->getRequest ()->getActionName () )) \n\t\t\t{\n\t\t\t\tif ('login' == strtolower ( $this->getRequest ()->getActionName () )) \n\t\t\t\t{\n\t\t\t\t\t$this->_helper->redirector ( 'index', 'dashboard' );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse \n\t\t{\n\t\t\tif ('logout' == $this->getRequest ()->getActionName ()) \n\t\t\t{\n\t\t\t\t$this->_helper->redirector ( 'index', 'index' );\n\t\t\t}\n\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "9604bc149db3e26f3302e3ea57074f02", "score": "0.6112154", "text": "public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request)\n {}", "title": "" }, { "docid": "335d0a76eb4717eeb63994ba1e40dcc9", "score": "0.61098397", "text": "public function preDispatch(Zend_Controller_Request_Abstract $request)\r\n {\r\n\t \r\n //user only to login for access to admin functions\r\n /*if ('admin' != $request->getModuleName()) {\r\n return;\r\n }\r\n \r\n if (App_Model_Users::isLoggedIn() && App_Model_Users::isAdmin()) {\r\n //user is logged in and allowed to access admin functions\r\n return;\r\n }*/\n\t\tif ('admin' == $request->getModuleName()) {\r\n return;\r\n }\r\n \r\n /**\r\n * User not logged in or not allowed to access admin ... redirect to login.\r\n * Note: if user is logged in but not authorised, we redirect to login\r\n * to allow user to login as a different user with the right permissions.\r\n */\r\n\t\t Zend_Session::destroy(true);\r\n\tif($request->getActionName() != 'logincheck'){ \r\n\t\t\t$request->setModuleName('default')\r\n\t\t\t->setControllerName('login')\r\n\t\t\t->setActionName('index');\r\n\t\t\t//->setDispatched(FALSE);\r\n\t\t\theader(\"Location:http://\".$_SERVER['HTTP_HOST'].\"/login/index\");\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n }", "title": "" }, { "docid": "a9963dd5b0ea189bcce7b26b86ab55f4", "score": "0.60917515", "text": "public function preDispatch() {\r\n if (isset($this->cookie->{$this->config->auth->cookie_name->login})) {\r\n #return $this->_forward('index', 'login');\r\n return $this->_redirect('/member/login/?redirect=' . urlencode($this->_getParam('redirect')));\r\n }\r\n }", "title": "" }, { "docid": "b193494a7875f7e1d2b851f09cd29f7b", "score": "0.60893387", "text": "public function dispatch() {\n\t\t$controller = $this->_controller;\n\t\t$controller->preProcess();\n\t\t$controller->dispatchAction();\n\t\t$controller->postProcess();\n\n\t\tif ($controller->engine->config->render) {\n\t\t\t$engine = $controller->engine;\n\t\t\t$engine->preRender();\n\t\t\t$engine->run();\n\t\t\t$engine->postRender();\n\t\t}\n\t}", "title": "" }, { "docid": "f6e479571695fe5b0ea04a06686860ed", "score": "0.60785073", "text": "protected function initDispatcher() {\r\n $_Di = $this->_Di;\r\n $config = $this->_Config;\r\n\r\n $this->_Di->set('dispatcher', function() use ($_Di, $config) {\r\n // Create an EventsManager\r\n $eventsManager = $_Di->getShared('eventsManager');\r\n\r\n /**\r\n * set listener for events of the dispatcher by the SecurityManager plugin\r\n */\r\n $securityManager = new SecurityManager();\r\n $securityManager->setPublicResource($config->publicResource);\r\n\r\n $eventsManager->attach('dispatch', $securityManager);\r\n\r\n $dispatcher = new MvcDispatcher();\r\n $dispatcher->setEventsManager($eventsManager);\r\n\r\n return $dispatcher;\r\n });\r\n }", "title": "" }, { "docid": "0c950f197318d74fbaad4be34601a36c", "score": "0.6047883", "text": "public function preDispatch() {\n parent::preDispatch();\n //Chequeo de identidad\n if (!Zend_Auth::getInstance()->hasIdentity()) {\n $this->_redirect('/seguridad/login');\n //Si la identidad es valida chequeo que tenga permisos para el recurso\n } else {\n $acl = SGTi\\Security\\MyAcl::getInstance();\n $rol = Zend_Auth::getInstance()->getIdentity()->getRol();\n $recurso = $this->getRequest()->getControllerName();\n $allowed = $acl->verificar($rol, $recurso);\n if (!$allowed) {\n $this->_redirect('/error/denied');\n }\n }\n }", "title": "" }, { "docid": "c5e971d7d0449dc8586aff625ae84367", "score": "0.60197437", "text": "public function preDispatch() {\n\n $this->_isAjax = $this->getRequest()->isXmlHttpRequest();\n }", "title": "" }, { "docid": "1932139ac1be74e64232a683d15a22cf", "score": "0.6019634", "text": "public function preDispatch()\n { \n parent::preDispatch();\n $this->view->moduleParent = (strpos(__FILE__, \"privateModules\") === false) ? \"modules\":\"privateModules\";\n $this->view->json['global']['moduleParent'] = $this->view->moduleParent;\n $this->view->json['global']['httpUrl'] = UtilityComponent::getServerURL();\n \n }", "title": "" }, { "docid": "b709a93e91012e74f6357754685503c5", "score": "0.60052156", "text": "public function testFrontendControllerDispatchesEvents(): void\n {\n $this->setupEventManagerSpy();\n\n /** @var FrontControllerInterface $frontController */\n $frontController = ObjectManager::getInstance()->create(FrontControllerInterface::class);\n $this->configureRequestForAction('cms', 'index', 'index');\n $frontController->dispatch($this->request);\n\n $this->assertPreAndPostDispatchEventsAreDispatched();\n }", "title": "" }, { "docid": "3e86372a40af24d1dbb75b5c7ee8f5bb", "score": "0.60006", "text": "public function preDispatch() \n {\n $this->_helper->viewRenderer->setNoRender(true);\n }", "title": "" }, { "docid": "9ef355b05a8b4c9c92ebe87d8f94ec07", "score": "0.5998295", "text": "public function dispatchLoopStartup (Zend_Controller_Request_Abstract $request)\n {\n $cache = $this->getCache();\n\n $result = $cache->start();\n\n }", "title": "" }, { "docid": "927db5aad9aba0ad3a967257c8dc87d1", "score": "0.59756106", "text": "public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request) {\n parent::dispatchLoopStartup($request);\n \n $acl = new Zend_Acl();\n \n $acl->addRole(new Zend_Acl_Role('guest'));\n $acl->addRole(new Zend_Acl_Role('nowy'),'guest');\n $acl->addRole(new Zend_Acl_Role('user'));\n \n \n $acl->add(new Zend_Acl_Resource('index'));\n $acl->add(new Zend_Acl_Resource('logowanie'));\n $acl->add(new Zend_Acl_Resource('jsondane'));\n $acl->add(new Zend_Acl_Resource('error'));\n $acl->allow('guest','index',array('index','dodaj','test','checkemail'));\n $acl->allow('guest','logowanie',array('zmianahasla','zaloguj','potwierdzenie','nowyuser','nowehaslo'));\n $acl->allow('guest','error','error');\n $acl->allow('nowy','logowanie','wyloguj');\n $acl->allow('nowy','index','dane');\n $acl->allow('user',null);\n //var_dump(Zend_Auth::getInstance()->getIdentity());\n if(Zend_Auth::getInstance()->hasIdentity()){\n $role = Zend_Auth::getInstance()->getIdentity()->status; \n //echo Zend_Auth::getInstance()->getIdentity()->email;\n }else{\n $role = 'guest'; \n }\n if (!$acl->isAllowed($role,\n $request->getControllerName(),\n $request->getActionName())\n ){\n $request->setControllerName('index');\n $request->setActionName('index'); \n return;\n }\n \n// $auth = Zend_Auth::getInstanse();\n/* \n \n $controller = $request->getControllerName();\n $action = $request->getActionName();\n if (!$acl->isAllowed($role, $controller, $action)) {\n if ($role == 'guest') {\n $request->setControllerName('index');\n $request->setActionName('index');\n } else {\n $request->setControllerName('error');\n $request->setActionName('brak-dostepu');\n }\n }\n\n * \n */ \n }", "title": "" }, { "docid": "88fedcfbaecc2f07f76d4e4fbb2ba8d7", "score": "0.5967187", "text": "public function preDispatch(Zend_Controller_Request_Abstract $request)\r\n {\r\n // check if a user is logged in and has a valid role,\r\n // otherwise, assign them the default role (guest)\r\n if ($this->auth->hasIdentity())\r\n $role = $this->auth->getIdentity()->user_type;\r\n else\r\n $role = $this->_guest;\r\n\r\n if (!$this->acl->hasRole($role))\r\n $role = $this->_guest;\r\n\r\n // the ACL resource is the requested controller name\r\n $resource = $request->controller;\r\n\r\n // the ACL privilege is the requested action name\r\n $privilege = $request->action;\r\n\r\n // if we haven't explicitly added the resource, check\r\n // the default global permissions\r\n if (!$this->acl->has($resource))\r\n $resource = null;\r\n\r\n // access denied - reroute the request to the default action handler\r\n if (!$this->acl->isAllowed($role, $resource, $privilege)) {\r\n $request->setControllerName($this->_authController['controller']);\r\n $request->setActionName($this->_authController['action']);\r\n }\r\n }", "title": "" }, { "docid": "1d31bff691f342823d042a1a93f98cb9", "score": "0.5963731", "text": "public function init()\n {\n $event = new Enlight_Event_Handler_Default(\n 'Enlight_Controller_Action_PreDispatch',\n array($this, 'onPreDispatch'),\n 300\n );\n $this->Application()->Events()->registerListener($event);\n }", "title": "" }, { "docid": "5494f40cec9275ff11f7220680e14b82", "score": "0.59582627", "text": "public function preDispatch() {\n\t\t// do not automatically create a view object\n\t\t$this->_helper->viewRenderer->setNoRender();\n\t\t// disable layouts for this controller\n\t\t$this->_helper->layout->disableLayout();\n\t\t// set http header to xml\n\t\t$this->getResponse()->setHeader('Content-Type', 'text/xml');\n\t\t// create a dom object\n\t\t$this->xml = new DOMDocument(\"1.0\");\n\t\t// create root element 'rsp'\n\t\t$this->rsp = $this->xml->createElement(\"rsp\");\n\t\t// add the 'rsp' element to the xml document\n\t\t$this->xml->appendChild($this->rsp);\n\t\t// load config data\n\t\t$this->config = Zend_Registry :: get('config');\n\t}", "title": "" }, { "docid": "97636f209d32d82f0c91486f545a9537", "score": "0.5949455", "text": "protected function _before() {\n\t\tparent::_before ();\n\t\t$this->config [\"debug\"] = true;\n\t\tLogger::init ( $this->config );\n\t\t$this->_startServices ();\n\t\t$this->_initRequest ( 'TestController', 'GET' );\n\t}", "title": "" }, { "docid": "cc8efcc16444cc5a7fe65a760cc21291", "score": "0.5900745", "text": "public function run()\n\t{\n\t\tif (!$this->initialized)\n\t\t\t$this->initialize();\n\n\t\t$this->frontController->run();\n\t}", "title": "" }, { "docid": "05e24e2ff33db9e12846b2ede8551f4e", "score": "0.58970296", "text": "public function preDispatch()\r\n {\r\n parent::preDispatch();\r\n\r\n $action = strtolower($this->getRequest()->getActionName());\r\n if (in_array($action, $this->authActions)) {\r\n $auth = \\Zend_Auth::getInstance();\r\n $this->auth = $auth;\r\n\r\n if (!$auth->hasIdentity()) {\r\n $config = array(\r\n 'accept_schemes' => 'basic',\r\n 'realm' => GEMS_PROJECT_NAME,\r\n 'nonce_timeout' => 3600,\r\n );\r\n $adapter = new \\Zend_Auth_Adapter_Http($config);\r\n $basicResolver = new \\Zend_Auth_Adapter_Http_Resolver_File();\r\n\r\n //This is a basic resolver, use username:realm:password\r\n //@@TODO: move to a better db stored authentication system\r\n\r\n $basicResolver->setFile(GEMS_ROOT_DIR . '/var/settings/pwd.txt');\r\n $adapter->setBasicResolver($basicResolver);\r\n $request = $this->getRequest();\r\n $response = $this->getResponse();\r\n\r\n assert($request instanceof \\Zend_Controller_Request_Http);\r\n assert($response instanceof \\Zend_Controller_Response_Http);\r\n\r\n $adapter->setRequest($request);\r\n $adapter->setResponse($response);\r\n\r\n $result = $auth->authenticate($adapter);\r\n\r\n if (!$result->isValid()) {\r\n $adapter->getResponse()->sendResponse();\r\n print 'Unauthorized';\r\n exit;\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d39439d8aad2fb46a1ed23bcdea66f3e", "score": "0.5883644", "text": "public function preDispatch()\n {\n foreach($this->plugins as $plugin) {\n $plugin->preDispatch();\n }\n }", "title": "" }, { "docid": "2cbb38e8b8b91b68af6bbdc0948dcdfa", "score": "0.5875773", "text": "public function preDispatch()\n {\n //\n $this->_helper->viewRenderer->setScriptAction('index');\n\n $this->view->error = array();\n\n $session = Zend_Registry::get('session');\n\n // -------------------------\n // get model callback\n // -------------------------\n $this->model_callback = new Geocontexter_Model_ModelCallback( $session );\n\n $this->callback_num = $this->request->getParam('callback_num');\n\n $this->model_info = $this->model_callback->get( $this->callback_num );\n\n if(false === $this->model_info)\n {\n return $this->error( 'callback number dosent exists: ' . var_export($this->callback_num,true), __file__, __line__ );\n }\n\n $this->view->opener_url = $this->model_info['opener_url'];\n $this->view->callback_num = $this->callback_num;\n $this->view->input_type = $this->model_info['input_type'];\n\n $this->view->id_value = false;\n\n if(isset($this->model_info['check_circular']))\n {\n $this->view->id_value = $this->model_info['id_value'];\n }\n\n\n // assign html head title\n //\n $this->view->headTitle('Select context ', 'PREPEND');\n }", "title": "" }, { "docid": "b63b571799aa2d07a3cb4a12ed51b857", "score": "0.5874133", "text": "public function preDispatch() {\n $actionName = $this->getRequest()->getActionName();\n if ('denied' != $actionName && !preg_match('/^invalid/', $actionName)) {\n if (!$this->_parseJsonRequest()) {\n $this->_forward('invalid-params');\n return;\n }\n\n // pokud na to neexistuje akce nebo akci vubec nespecifikoval presmeruji na chybovou akci\n if (!in_array($actionName, $this->_getActions())) {\n $this->_forward('invalid-method');\n }\n\n elseif (!$this->_isValidToken($this->_request_data['AccessKey'])) {\n $this->_forward('denied');\n }\n }\n }", "title": "" }, { "docid": "09426d6f67d1505d4b6ce96d7059c050", "score": "0.5868407", "text": "public function beforeDispatch(\\Magento\\Framework\\Interception\\InterceptorInterface $controller)\r\n {\r\n $this->benchmark->start(__METHOD__);\r\n $actionName = $controller->getRequest()->getActionName();\r\n $fullActionName = $controller->getRequest()->getFullActionName();\r\n\r\n $this->processor->init($fullActionName, $actionName);\r\n $this->processor->addPageVisitLog($controller->getRequest()->getModuleName());\r\n $this->benchmark->end(__METHOD__);\r\n }", "title": "" }, { "docid": "99c8deebddc6f982bf470f6b867896e0", "score": "0.5865901", "text": "public function preDispatch(Zend_Controller_Request_Abstract $request)\n {\n // default role to them\n if($this->auth->hasIdentity())\n {\n $role = $this->auth->getIdentity()->user_type;\n }\n else $role = $this->_defaultRole;\n\n if(!$this->acl->hasRole($role)) $role = $this->_defaultRole;\n\n // the ACL resource is the requested controller name\n $resource = $request->controller;\n\n // the ACL privilege is the requested action name\n $privilege = $request->action;\n\n // if we haven't explicitly added the resource, check the default global\n // permissions\n if(!$this->acl->has($resource)) $resource = null;\n\n // access denied - reroute the request to the default action handler\n if(!$this->acl->isAllowed($role, $resource, $privilege))\n {\n $request->setControllerName($this->_authController['controller']);\n $request->setActionName($this->_authController['action']);\n }\n }", "title": "" }, { "docid": "0202d6591e3192cb9e17ee4d9ebe9046", "score": "0.5784951", "text": "public function readyDispatch()\n {\n $this->dispatch = true;\n }", "title": "" }, { "docid": "dfcb08fa0395c633c65cb12fb492161e", "score": "0.5774403", "text": "public function beforeDispatch(Event $event, Dispatcher $dispatcher)\n {\n $auth = $this->session->get('auth');\n if(!$auth) {\n $role = 'Guest';\n } else {\n //Get role from auth session variable\n $role = $auth[\"role\"];\n }\n\n $controller = $dispatcher->getControllerName();\n $action = $dispatcher->getActionName();\n\n //Obtain the ACL list\n $acl = self::getAcl();\n\n //Check if the role have access to the controller (resource)\n $allowed = $acl->isAllowed($role, $controller, $action);\n if($allowed != Acl::ALLOW) {\n //If he doesn't have access forward him to the index controller\n $this->flashSession->error(\"You don't have access to \".$action.\" page\");\n\n // forward user to frontpage via $this->dispatcher using $dispatcher will create infinite loop\n $this->response->redirect('/');\n //Returning \"false\" we tell to the dispatcher to stop the current operation\n return false;\n }\n }", "title": "" }, { "docid": "5a1a57d242f7357ef319818b8bed0aca", "score": "0.57606584", "text": "protected function _initDependencyInjection()\n {\n $container = \\DI\\ContainerBuilder::buildDevContainer();\n\n $dispatcher = new Dispatcher();\n $dispatcher->setContainer($container);\n\n $frontController = Zend_Controller_Front::getInstance();\n $frontController->setDispatcher($dispatcher);\n }", "title": "" }, { "docid": "ce331c1f7d63fee7c47e3334b89bc211", "score": "0.5757843", "text": "public function preDispatch(Zend_Controller_Request_Abstract $request)\n {\n \t/* @var $freeAccess Modulos que são acessiveis sem login */\n \t$freeeAccess = array('default');\n \t$restrictedAccess = array('adm');\n \n //recupera o objeto de autorizacao\n $auth = Zend_Auth::getInstance();\n\n //parametros da requisicao\n $moduleName = strtolower($request->getModuleName());\n \n //Verifica se o modulo que esta sendo acessado é restrito.\n if( in_array($moduleName, $restrictedAccess) )\n {\n \t//Se o Usuario nao está logado redireciona para home.\n \tif( !$auth->hasIdentity() )\n\t\t\t\t$this->_redirect('/');\n \telse \n \t\t$identity = $auth->getIdentity();\n \t\n \t\t \n \t//Verifica se o usuario logado é admin.\n \tif(!isset($identity->id_admin))\t \n \t\t$this->_redirect('/');\n \t\n }\n \n \n }", "title": "" }, { "docid": "ce7f75eefa234a65caafa671117e55c0", "score": "0.57512116", "text": "public function dispatchRouter() {\n if ( is_feed() || is_comment_feed() ) {\n return;\n }\n $this->container['route']->dispatch();\n }", "title": "" }, { "docid": "5ee037c10be1543297e78b6e61dc8d1d", "score": "0.5745583", "text": "protected function _initControllers()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "a2e3c4328e9f15193657d7718b2e8e70", "score": "0.5728475", "text": "private function assertPreDispatchEventsAreDispatched(): void\n {\n $this->assertEventDispatchCount('controller_action_predispatch', 1);\n $this->assertEventDispatchCount('controller_action_predispatch_cms', 1);\n $this->assertEventDispatchCount('controller_action_predispatch_cms_index_index', 1);\n $this->assertEventDispatchCount('controller_action_postdispatch_cms_index_index', 0);\n $this->assertEventDispatchCount('controller_action_postdispatch_cms', 0);\n $this->assertEventDispatchCount('controller_action_postdispatch', 0);\n }", "title": "" }, { "docid": "630241212bb888d875897b826982370f", "score": "0.57157737", "text": "private function setupControllers()\n {\n parent::offsetSet('controller', parent::share(function ($app) {\n return new Controller($app);\n }));\n\n parent::offsetSet('hooks.controller', parent::share(function ($app) {\n return new HooksController($app);\n }));\n\n parent::error(function (\\Exception $e) {\n $this->log($e->getMessage(), $e->getTrace(), Logger::ERROR);\n\n return $this['controller']->indexAction();\n });\n\n Request::setTrustedProxies(array('127.0.0.1', '192.168.1.0/24', '172.17.41.0/16'));\n }", "title": "" }, { "docid": "a2926a0e454e1818586431c963f28e4d", "score": "0.5705997", "text": "protected function setupRequestStack()\n {\n $this->requestStack[] = $this->container['request'];\n }", "title": "" }, { "docid": "8c23559535dbd0b1bf70f473e316c489", "score": "0.57015246", "text": "public function beforeRequest()\n\t{\n\t\t$this->trigger(self::EVENT_BEFORE_REQUEST);\n\t}", "title": "" }, { "docid": "c04201ac413b32bdd6bbd2bddda8a37d", "score": "0.56981903", "text": "public function __construct()\r\n {\r\n // Get front controller instance\r\n $this->_front = Zend_Controller_Front::getInstance();\r\n\r\n // Get request object\r\n $this->_request = $this->_front->getRequest();\r\n }", "title": "" }, { "docid": "08fce3ac86f9e74d7420b06e1574a0d1", "score": "0.56798077", "text": "public function preDispatch()\n {\n parent::preDispatch();\n\n // extension is enabled\n if (!Mage::getStoreConfigFlag('ddq/general/enabled')) {\n $this->_getHelper()->log(\"The extension is not enabled.\");\n $this->norouteAction();\n }\n }", "title": "" }, { "docid": "5279e0fc01d90c874b8ce83d7825dc49", "score": "0.56719935", "text": "public function preDispatch()\n\t{\n parent::preDispatch();\n\n $action = $this->getRequest()->getActionName();\n $pattern = '/^(image|involve|watch|pendingApproval|create)/i';\n if (preg_match($pattern, $action)) {\n if (!$this->_getSession()->authenticate($this)) {\n $this->_redirect('/profile/login');\n }\n }\n\t}", "title": "" }, { "docid": "1171eea1ca0a0dac183f1b89d2aa181b", "score": "0.5671299", "text": "public function hookInitialize()\n {\n\t\t$front = Zend_Controller_Front::getInstance();\n\t\t$front->registerPlugin(new MetaMetaData_Controller_Plugin_MadFilter);\n#\t\t$front->registerPlugin(new MetaMetaData_Controller_Plugin_AdminShowItemsFilter); #work on this one later\n }", "title": "" }, { "docid": "d1296cabef9a1698ed04e2ce13e01985", "score": "0.56709474", "text": "public function init() { \n $this->_action = $this->getActionController();\n\n // add resource for this controller\n $controller = $this->_action->getRequest()->getControllerName();\n if (!$this->_acl->has($controller)) {\n $this->_acl->add(new Zend_Acl_Resource($controller));\n }\n }", "title": "" }, { "docid": "4b988e1bea8e53ffe8ae92c4b9f4b61b", "score": "0.56659913", "text": "public function dispatch()\n {\n $this->request = new Request();\n //request->url='/mvc/', class request\n Router::parse($this->request->url, $this->request); \n $controller = $this->loadController();\n //gọi hàm taskController\n call_user_func_array([$controller, $this->request->action], $this->request->params);\n }", "title": "" }, { "docid": "69384a38ee3364d1de21e69d0ba517b8", "score": "0.56633127", "text": "public function dispatch(): void\n {\n if (!file_exists($this->getControllerPath()))\n {\n throw new Exception('Le controller recherché n\\'existe pas');\n }\n\n $this->setController($this->getRouter()->getControllerName());\n\n if (!method_exists($this->controller, $this->getRouter()->getActionName()))\n {\n throw new Exception('L\\'action demandé n\\'est pas disponible');\n }\n\n call_user_func([$this->getController() , $this->router->getActionName()]);\n }", "title": "" }, { "docid": "7b76625017a09ff84adc5e789d271ffa", "score": "0.56474143", "text": "function preDispatch() \n {\n\t\t$this->_guidPrefix = 'lgsimp';\n\t\t$this->_guidPrefixCms = 'lgsimp';\n\t\t$this->_guidPrefixDms = 'lgsimpdms';\n\t\t$this->_guidPrefixFile = 'lgsimpfl';\n\t\t\n\t\t$this->_dbSource = Zend_Db::factory(\"Pdo_Mysql\", array(\n\t\t 'host' => 'localhost',\n\t\t 'username' => 'root',\n\t\t 'password' => 'root',\n\t\t 'dbname' => 'lgs12agustus'\n\t\t)); \n\t\t\n\t\t$this->_dbTarget = Zend_Db::factory(\"Pdo_Mysql\", array(\n\t\t 'host' => 'localhost',\n\t\t 'username' => 'root',\n\t\t 'password' => 'root',\n\t\t 'dbname' => 'kutump-lgs'\n\t\t));\n\t\t\n\t\t$modDir = $this->getFrontController()->getModuleDirectory();\n\t\trequire_once($modDir.'/lib/LgsIntraPrima.php');\n\t}", "title": "" }, { "docid": "1b17c0b3572d0d3e28e9df82e3ba340b", "score": "0.5640654", "text": "public function preDispatch(Zend_Controller_Request_Abstract $request) {\n\n /**\n * Configuração para execução somente no modulo sisad\n */\n $module = strtolower($request->getModuleName());\n $controller = strtolower($request->getControllerName());\n $action = strtolower($request->getActionName());\n \n if ( !in_array($module,array('sisad','sosti')) ) {\n return;\n }\n $resource = Zend_Controller_Front::getInstance ()->getParam('bootstrap')->getPluginResource('multidb');\n $db = $resource->getDb($module);\n Zend_Db_Table::setDefaultAdapter($db);\n \n /**\n * Iniciando o primeiro acesso\n */\n $this->_userNamespace = new Zend_Session_Namespace('userNs');\n \t$AcessoCaixaUnidade = new App_Controller_Plugin_AcessoCaixaUnidade();\n if(! $this->_inited ){\n $AcessoCaixaUnidade->initAcessoCaixaUnidade($this->_userNamespace->matricula);\n }\n \n }", "title": "" }, { "docid": "efad00b5588d965281c76cb53da6a087", "score": "0.5622963", "text": "function preDispatch()\n {\n require_once 'Admin/Dal/Application.php';\n $dalApp = Admin_Dal_Application::getDefaultInstance();\n $allow = $dalApp->isAppAllowedToUser('parking', $this->_user->uid);\n if (!$allow) {\n $this->_request->setDispatched(true);\n echo 'You Have Not Allow To View This Page!!';\n exit();\n }\n }", "title": "" }, { "docid": "fd1fe438ffd27018808e3f844218c48e", "score": "0.5609973", "text": "function dispatchBefore($event_name, \\Everon\\Interfaces\\Controller $Controller);", "title": "" }, { "docid": "070dc97881e6f8e5bf6b8220ece66e94", "score": "0.56063586", "text": "public function init_controllers()\n\t{\n\t\t\\Carbon_Fields\\Carbon_Fields::boot();\n\t\t// define( 'Carbon_Fields\\COMPACT_INPUT', true );\n\n\t\t// Settings\n\t\tnew WPVQGR_Settings();\n\t\t// Quizzes\n\t\tnew WPVQGR_type_global_meta();\n\t\tnew WPVQGR_type_trivia_meta();\n\t\tnew WPVQGR_type_perso_meta();\n\t\t// Users\n\t\tnew WPVQGR_type_user_meta();\n\t\t// Ajax\n\t\tnew WPVQGR_ajax_controller();\n\t\t// Hooks\n\t\tnew WPVQGR_hook_results_API_services();\n\n\t\t// Flush rules for permalink\n\t\tif (is_admin()) \n\t\t{\n\t\t // Flush permalink if needed\n\t\t\t$set = get_option( 'post_type_rules_flush_wpvqgr' );\n\t\t\tif ( $set !== true ){\n\t\t\t flush_rewrite_rules( false );\n\t\t\t update_option( 'post_type_rules_flush_wpvqgr', true );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ed4dc269bf1963f8436c08bdd9711427", "score": "0.56006336", "text": "public function preDispatch() {\r\n\t\t\r\n\t\tparent::preDispatch();\r\n\r\n\t\t$fanpage_admin_model = new Model_FanpageAdmins;\r\n\t\t$admins = $fanpage_admin_model->findByFanpageId($this->_getParam('id'));\r\n\t\t\r\n\t\t$adminUserFound = false;\r\n\t\tforeach($admins as $admin) {\r\n\t\t\tif ($this->_identity->facebook_user_id === $admin->facebook_user_id) {\r\n\t\t\t\t$adminUserFound = true;\r\n\t\t\t\t$this->_fanpageId = $this->_getParam('id');\r\n\t\t\t\t$this->_accessToken = $this->_identity->facebook_user_access_token;\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!$adminUserFound) {\r\n\t\t\t$this->_response->setHttpResponseCode(403);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5262025c71192ee73890a4bf97b5e1fe", "score": "0.5599108", "text": "function beforeRender() {\r\n\t\t$loggedIn = $this->Cookie->read('Auth.UserLogged');\r\n\t\tif ($this->Auth->user()) {\r\n\t\t\tif (!isset($loggedIn)) {\r\n\t\t\t\t$this->Cookie->write('Auth.UserLogged', 'Logged in');\r\n\t\t\t}\r\n\t\t}\r\n\t\telseif (isset($loggedIn)) {\r\n\t\t\t$this->Cookie->del('Auth.UserLogged');\r\n\t\t\t$this->Session->setFlash('Session Expired');\r\n\t\t}\r\n\r\n\t\t//If we have an authorised user logged then pass over an array of controllers\r\n\t\t//to which they have index action permission\r\n\t\tif($this->Auth->user()){\r\n\t\t\t$controllerList = Configure::listObjects('controller');\r\n\t\t\t$permittedControllers = array();\r\n\t\t\tforeach($controllerList as $controllerItem){\r\n\t\t\t\tif($controllerItem <> 'App'){\r\n\t\t\t\t\tif($this->__permitted($controllerItem,'index')){\r\n\t\t\t\t\t\t$permittedControllers[] = $controllerItem;\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->set(compact('permittedControllers'));\r\n\t}", "title": "" }, { "docid": "06a589be99ca10cbe698e2e0a5cbbfc5", "score": "0.5583177", "text": "public static function getFront(){\r\n return Zend_Controller_Front::getInstance();\r\n }", "title": "" }, { "docid": "f57004f29e668cc5a2bca9d162f72a28", "score": "0.5582915", "text": "public function _initNavigation() {\n $this->bootstrap('frontController');\n $front = $this->getResource('frontController');\n\n $front->registerPlugin(new Eindwerk_Controller_Plugin_Translate()); // => library/Syntra/Controller/Plugin/Translate.php\n $front->registerPlugin(new Eindwerk_Controller_Plugin_Navigation());\n $front->registerPlugin(new Eindwerk_Controller_Plugin_NavigationCatg());\n $front->registerPlugin(new Eindwerk_Controller_Plugin_Locales());\n $front->registerPlugin(new Eindwerk_Auth_Acl());\n $front->registerPlugin(new Eindwerk_Auth_Auth());\n }", "title": "" }, { "docid": "69b3dcede8dcb96d0a2ee6cfdc098156", "score": "0.557619", "text": "public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request)\n\t{\n\t\t//Check if the user is not logged in\n if ($this->_auth->isLoggedIn()) {\n if ($this->_saveUrlBeforeRedirect\n && isset($this->_session->redirectUrl)) {\n $redirectUrl = $this->_session->redirectUrl;\n if (strlen($redirectUrl) > 0) {\n unset($this->_session->redirectUrl);\n $this->getResponse()->setRedirect($redirectUrl);\n }\n }\n } else {\n $isRedirectRequired = true;\n $noAuthRequired = Bazzline_Static_Config::get('plugin.auth.noAuthRequired', '');\n\n if (is_a($noAuthRequired, 'Zend_Config')) {\n $noAuthRequired = $noAuthRequired->toArray();\n }\n\n if (Bazzline_Static_Validate_Array::isValid(\n $noAuthRequired, \n array(Bazzline_Static_Validate_Array::IS_FILLED => true))) {\n $module = $request->getModuleName();\n $controller = $request->getControllerName();\n $action = $request->getActionName();\n $url = '';\n $url .= (strlen($module) > 0) ? '/' . $module : '';\n $url .= (strlen($controller) > 0) ? '/' . $controller : '';\n $url .= (strlen($action) > 0) ? '/' . $action : '';\n\n foreach ($noAuthRequired as $noAuthUrl) {\n if ($url == $noAuthUrl) {\n $isRedirectRequired = false;\n break;\n }\n }\n }\n\n if ($isRedirectRequired) {\n if ($this->_saveUrlBeforeRedirect\n && !isset($this->_session->redirectUrl)) {\n $this->_session->redirectUrl = $request->getRequestUri();\n }\n $loginUrl = Bazzline_Static_Config::get('plugin.auth.loginUrl', '/');\n\n $this->getResponse()->setRedirect($loginUrl);\n// $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');\n// $redirector->gotoUrl($url)->redirectAndExist();\n }\n }\n\n return true;\n\t}", "title": "" }, { "docid": "9230eb4ab191b2616f7920b6ded48fd4", "score": "0.55637383", "text": "protected function preAction()\n {\n }", "title": "" }, { "docid": "2bdd5899b10c4a606ca200ff24d8ce53", "score": "0.555958", "text": "public function postDispatch(){\n\t\t$siteConfig = Zend_Registry::get('siteConfig');\n\t\t$this->view->headMeta()->setHttpEquiv('Refresh',$siteConfig['config_meta']['refresh']);\n\t\t$this->view->headMeta()->setHttpEquiv('content-language',$siteConfig['config_meta']['content_language']);\n\t\t$this->view->headMeta()->setName('classification',$siteConfig['config_meta']['classification']);\n\t\t$this->view->headMeta()->setName('language',$siteConfig['config_meta']['language']);\n\t\t$this->view->headMeta()->setName('robots',$siteConfig['config_meta']['robots']);\n\t\t$this->view->headMeta()->setName('author',$siteConfig['config_meta']['author']);\n\t\t$this->view->headMeta()->setName('copyright',$siteConfig['config_meta']['copyright']);\n\t\t$this->view->headMeta()->setName('revisit-after',$siteConfig['config_meta']['revisit_after']);\n\n\t\tif($siteConfig['config_site']['offline'] == 1){\n\t\t\t$this->_forward('off','public','default');\n\t\t}\n\t}", "title": "" }, { "docid": "cce1f1552982ca74528b25cb4737f2aa", "score": "0.55344373", "text": "public function before_request() {\n\t}", "title": "" }, { "docid": "270b6bb894212ff2719f9625e28e5062", "score": "0.55291647", "text": "public function before()\n\t{\n\t\tEvent::fire('platform.controller.before');\n\t\treturn parent::before();\n\t}", "title": "" }, { "docid": "8d351c461e5b640e56324382bc5648d3", "score": "0.5528995", "text": "public function dispatch()\n {\n $className = $this->_controller.'controller';\n $controller = new $className ();\n $controller->setController($this->_controller);\n $controller->setAction($this->_action);\n $controller->setRegistry($this->_registry);\n $controller->setParams($this->_params);\n $controller->setTemplate($this->_template);\n $method = strtolower($this->_action).'Action';\n if (method_exists($controller, $method)) {\n $controller->$method();\n }\n }", "title": "" }, { "docid": "4815e54f20e8fc36ee1742cf16c9796f", "score": "0.55257744", "text": "protected function dispatch() {\n if (!$this->request) {\n // there is no request to start with, so we just return the\n // appropriate HTTP response status code\n $this->response->setStatusCode(Response::STATUS_CODE_NOT_IMPLEMENTED);\n return;\n }\n\n $dispatcher = $this->getDispatcher();\n\n // request chaining\n while ($this->request) {\n $this->eventManager->triggerEvent(self::EVENT_PRE_DISPATCH ,$this);\n\n if (!$this->request) {\n continue;\n }\n\n try {\n $chainedRequest = $dispatcher->dispatch($this->request, $this->response);\n\n if ($chainedRequest && !$chainedRequest instanceof Request) {\n throw new ZiboException('Action returned a invalid value, return nothing or a new zibo\\\\core\\\\Request object for request chaining.');\n }\n\n $this->setRequest($chainedRequest);\n } catch (Exception $exception) {\n $this->eventManager->triggerEvent(self::EVENT_ERROR, $exception);\n $this->setRequest(null);\n }\n\n $this->eventManager->triggerEvent(self::EVENT_POST_DISPATCH, $this);\n }\n }", "title": "" }, { "docid": "718d22cd534cd30e2a40f7f50af68bc8", "score": "0.5520202", "text": "public function preDispatch(Zend_Controller_Request_Abstract $request) {\r\n /* $requestingAuth = ($request->getModuleName() == 'login' && $request->getControllerName() == 'auth' && $request->getActionName() == 'auth');\r\n parse_str(file_get_contents('php://input'), $arguments);\r\n\r\n //$hasUserAndPassword = ((isset($arguments['user']) && $arguments['user'] != '') && ((isset($arguments['password']) && $arguments['password'] != '')));\r\n $hasUserIdAndToken = ((isset($arguments['userId']) && $arguments['userId'] != '') && ((isset($arguments['token']) && $arguments['token'] != ''))); */\r\n\r\n $autoJoinToken = $request->getParam('aj', null);\r\n $uid = $request->getParam('uid', null);\r\n\r\n if ($autoJoinToken != null) {\r\n IMDT_Util_Auth::getInstance()->set('token', $autoJoinToken);\r\n IMDT_Util_Auth::getInstance()->set('userId', $uid);\r\n $apiResponse = IMDT_Util_Rest::get('/api/auto-join/' . $autoJoinToken);\r\n if ($apiResponse['success'] == '1') {\r\n Zend_Auth::getInstance()->getStorage()->write($apiResponse['data']);\r\n $redirectToRefererNs = new Zend_Session_Namespace('redirectToReferer');\r\n /* var_dump($redirectToRefererNs->uri);\r\n var_dump( Zend_Auth::getInstance()->hasIdentity());die;\r\n $this->getResponse()->setRedirect('/ui/my-rooms/go/id/' . $request->getParam('id')); */\r\n $redirectToRefererNs->uri = '/ui/my-rooms/go/id/' . $request->getParam('id');\r\n }\r\n }\r\n $requestingPublicResource = ($request->getModuleName() == 'ui' && $request->getControllerName() == 'assets');\r\n $requestingPublicResource = $requestingPublicResource || ($request->getModuleName() == 'ui' && $request->getControllerName() == 'public-rooms');\r\n $requestingPublicResource = $requestingPublicResource || ($request->getModuleName() == 'login' && $request->getControllerName() == 'auth' && $request->getActionName() == 'auth');\r\n $requestingPublicResource = $requestingPublicResource || ($request->getModuleName() == 'login' && $request->getControllerName() == 'auth' && $request->getActionName() == 'forget-pass');\r\n $requestingPublicResource = $requestingPublicResource || ($request->getModuleName() == 'login' && $request->getControllerName() == 'auth' && $request->getActionName() == 'persona');\r\n\r\n /* $hasUserAndPassword = (($request->getParam('user', null) != null) && (($request->getParam('password', null) != null)));\r\n //$hasUserIdAndToken = (($request->getParam('userId', null) != null) && (($request->getParam('token', null) != null)));\r\n $hasUserIdAndToken = (($request->getHeader('userId', null) != null) && (($request->getHeader('token', null) != null)));\r\n\r\n //TODO handler for invalid token\r\n if($hasUserIdAndToken) {\r\n return;\r\n } */\r\n\r\n $authData = Zend_Auth::getInstance()->getStorage()->read();\r\n\r\n if ((!isset($authData['id'])) && (!$requestingPublicResource)) {\r\n $request->setModuleName('login')\r\n ->setControllerName('auth')\r\n ->setActionName('index');\r\n\r\n Zend_Layout::getMvcInstance()->setLayout('auth');\r\n\r\n $ignoredRedirects = array(\r\n '/favicon.ico'\r\n );\r\n\r\n if (!in_array($this->_originalRequestedUrl, $ignoredRedirects)) {\r\n $redirectToRefererNs = new Zend_Session_Namespace('redirectToReferer');\r\n $redirectToRefererNs->uri = $this->_originalRequestedUrl;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "b864535ba75f97ad7aff29800a9a668b", "score": "0.5510006", "text": "public static function dispatcher(){\n self::getInstance()->_currentRoute->callDispatch();\n }", "title": "" }, { "docid": "3aafeb3574d33087fe44b3d120eeebf7", "score": "0.5507837", "text": "public function postDispatch()\n\t{\n\t \t$request = Zend_Controller_Front::getInstance() -> getRequest();\n\t \t$controller_name = $request -> getControllerName();\n\t \tif (strpos($controller_name,'admin-') !== false)\n\t \t{\n\t \t\treturn;\n\t \t}\n\t \t$view = Zend_Registry::get('Zend_View');\n\t\t// check module responsive file\n\t\t$view -> headLink() -> appendStylesheet($view -> layout() -> staticBaseUrl . 'application/css.php?request=application/modules/YounetCore/externals/styles/ynresponsive.css');\n\t\t$bootstrap_script = \"\n\t\t\twindow.addEvent('domready', function(){\n\t\t\t\t$$('body')[0].addClass('\".RESPONSIVE_ACTIVE.\"');\n\t\t\t});\";\n\t\t$view->headScript()->appendScript( $bootstrap_script );\n\t}", "title": "" }, { "docid": "5a4366e9f1d070d74f1d4aea71be6546", "score": "0.55044454", "text": "function dispatch() {\n\t\t$this->_invoke($this->controller, $this->action, $this->parameter);\n\t}", "title": "" }, { "docid": "3754615ff5fd2c155b90a70eca677bfb", "score": "0.5500787", "text": "public function init()\n {\n parent::init();\n\n // get the CSRF value\n $this->_csrf = $this->getFrontController()->getParam('csrf');\n\n // get any params\n $this->_params = $this->getRequest()->getParams();\n\n // check if ajax\n $this->_isAjax = $this->getRequest()->isXmlHttpRequest();\n if ($this->_isAjax) {\n // disable layout for ajax requests\n $this->disableLayout();\n }\n\n // update the view navigation key\n $this->view->route = $this->getRequest()->controller . '_' . $this->getRequest()->action;\n\n // set client theme data\n $this->setClientData();\n }", "title": "" }, { "docid": "5bbc4d4d8882b07895a2b57519353fb0", "score": "0.5493807", "text": "protected function set_up()\n {\n Zend_Controller_Front::getInstance()->resetInstance();\n $this->request = new Zend_Controller_Request_Http();\n $this->response = new Zend_Controller_Response_Http();\n $this->plugin = new Zend_Controller_Plugin_ErrorHandler();\n\n $this->plugin->setRequest($this->request);\n $this->plugin->setResponse($this->response);\n }", "title": "" }, { "docid": "3fe4bbe1e51c278d2b1bbc7e4e1e3178", "score": "0.5487596", "text": "public function beforeDispatch(Event $event, Dispatcher $dispatcher)\n {\n $controllerName = $dispatcher->getControllerClass();\n\n $actionName = $dispatcher->getActiveMethod();\n\n $controllerIsPrivate = false;\n $classAnnotations = $this->annotations->get($controllerName)->getClassAnnotations();\n if ($classAnnotations !== false) {\n $controllerIsPrivate = $classAnnotations->has(\"Private\");\n }\n\n $annotations = $this->annotations->getMethod($controllerName, $actionName);\n\n if ($controllerIsPrivate || $annotations->has(\"Private\")) {\n if (!$this->session->has(\"member\")) {\n $dispatcher->forward(\n [\n \"controller\" => \"error\",\n \"action\" => \"error401\",\n ]\n );\n $this->response->setStatusCode(401);\n return false;\n }\n }\n if ($classAnnotations !== false) {\n if ($classAnnotations->has(\"Admin\")) {\n if ($this->session->get(\"member\")->role != 'admin') {\n $dispatcher->forward(\n [\n \"controller\" => \"error\",\n \"action\" => \"error403\",\n ]\n );\n $this->response->setStatusCode(403);\n return false;\n }\n }\n }\n if ($classAnnotations !== false) {\n if ($classAnnotations->has(\"Ajax\")) {\n if (!$this->request->isAjax()) {\n $dispatcher->forward(\n [\n \"controller\" => \"error\",\n \"action\" => \"error404\",\n ]\n );\n $this->response->setStatusCode(404);\n return false;\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "08dce675f1afe798f6f0bfd3123414c8", "score": "0.5486785", "text": "protected function hook()\n {\n $key = is_admin() ? 'admin' : 'front';\n $actions = array_merge($this->actions['actions'], $this->actions[$key]);\n \n foreach($actions as $action => $callback) {\n if (isset($callback['callback'])) {\n $tmp = $callback;\n $callback = $callback['callback'];\n $priority = isset($tmp['priority']) ? $tmp['priority'] : self::PRIORITY;\n $argc = isset($tmp['argc']) ? $tmp['argc'] : 1;\n } else {\n $priority = self::PRIORITY;\n $argc = 1;\n }\n \n add_action($action, $callback, $priority, $argc);\n }\n \n $filters = array_merge($this->filters['filters'], $this->filters[$key]);\n \n foreach($filters as $filter => $callback) {\n add_filter($filter, $callback);\n }\n }", "title": "" } ]
9d25c2645f2350ed4e0e5f175242f878
Set up common test part
[ { "docid": "b1e83f1d98fc9174289680d2984c6e15", "score": "0.0", "text": "public function setUp()\n {\n $this->event = Phake::mock('FOS\\UserBundle\\Event\\FormEvent');\n $this->router = Phake::mock('Symfony\\Component\\Routing\\RouterInterface');\n\n $this->subscriber = new ResetPasswordSubscriber($this->router);\n }", "title": "" } ]
[ { "docid": "697bd3857cdc4614341778bb8331f133", "score": "0.78748685", "text": "abstract protected function setUp();", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76971203", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76969475", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76969475", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76969475", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76969475", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76969475", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76969475", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.76967806", "text": "protected function setUp() {}", "title": "" } ]
381075b9e52e8d1954f31b7e78ce6288
Get options in "keyvalue" format
[ { "docid": "1e6c2a80cba4eed5f2fac813449c5b43", "score": "0.0", "text": "public function toArray()\n {\n $store_option_hash = $this->_getStoreOptionHash();\n $translated_store_option_hash = array();\n foreach($store_option_hash as $store_id => $store_name)\n {\n $translated_store_option_hash[$store_id] = __($store_name);\n }\n\n return $translated_store_option_hash;\n }", "title": "" } ]
[ { "docid": "9ec25384d76a8e2f2dd1bf5c7f2b1795", "score": "0.76220244", "text": "public function options()\n\t{\n\t\t$assoc_arr = json_decode($this->options);\n\n\t\treturn $assoc_arr;\n\t}", "title": "" }, { "docid": "e6c27343bca2aa7426bf11c9d26757b1", "score": "0.74756604", "text": "function get_options($key = '')\r\n {\r\n return $this->options['options'];\r\n }", "title": "" }, { "docid": "3f4ebcb8967d9d3aaa7e01acd3fdd8a5", "score": "0.74752027", "text": "public function getOptions()\n {\n $output = '';\n $items = array();\n foreach ($this->_sql->options as $key => $value) {\n $items[] = \"{$key} = '{$value}'\";\n }\n if (sizeof($items) > 0) {\n $output = implode(\"\\n\", $items);\n }\n return $output;\n }", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "baf0b86033d2ca254bf6b03a697bf99e", "score": "0.74328315", "text": "public function getOptions();", "title": "" }, { "docid": "b3c55834f42fdd8ce604e711c27e9767", "score": "0.7415759", "text": "function getOptions() ;", "title": "" }, { "docid": "85e1f67bb2aca1c8041c6ca24fce9e0b", "score": "0.73610616", "text": "protected function getOptions()\n {\n $options = [];\n foreach ($this->input()->getOptions() as $key => $value) {\n if (!empty($value) && 'root' !== $key) {\n $options[] = '--'.$key.'='.$value;\n }\n }\n\n return $options;\n }", "title": "" }, { "docid": "9cb95af7f8cd3c62609fb49aad35e229", "score": "0.7205118", "text": "public function getOptions(){\n\t\t$vars = get_object_vars( $this );\n\t\t$result = array();\n\t\tforeach( $vars as $key => $value ) {\n\t\t\tif( substr( $key, 0, 1 ) == \"_\" ) continue;\n\t\t\t$key_parts = explode( \"_\", $key );\n\t\t\tforeach( $key_parts as $index => $val ){\n\t\t\t\t$key_parts[ $index ] = ucfirst( $val );\n\t\t\t}\n\t\t\t$method = 'get' . implode( $key_parts );\n\t\t\t\n\t\t\t$value = $this->$method();\n\t\t\tif( is_array( $value ) ||\n\t\t\t\t is_object( $value ) ){\n\t\t\t\t $value = serialize( $value );\n\t\t\t}\n\t\t\t$result[ $key ] = $value;\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "4c654562577346e077e2a71b08d14875", "score": "0.7171282", "text": "public function getOptions() {}", "title": "" }, { "docid": "4c654562577346e077e2a71b08d14875", "score": "0.7171282", "text": "public function getOptions() {}", "title": "" }, { "docid": "4c654562577346e077e2a71b08d14875", "score": "0.7170338", "text": "public function getOptions() {}", "title": "" }, { "docid": "8656cf6583f99bdff966ebe54659fb7a", "score": "0.7161883", "text": "public function getOptions()\n {\n return json_decode($this->options);\n }", "title": "" }, { "docid": "edd9d723473ff701b79ce45299878484", "score": "0.71616244", "text": "public function getOptions()\n {\n $value = $this->getData('options');\n return json_decode($value, true);\n }", "title": "" }, { "docid": "b5ffd044c8f9ea750c58bca48425d9f6", "score": "0.7132702", "text": "public function getOptions()\n {\n return [0 => 'world', 1 => 'foobar', 2 => 'barbaz'];\n }", "title": "" }, { "docid": "1b38fa979195cdafe1b9080cd271e5df", "score": "0.71287704", "text": "public function getOptions()\n {\n $return = array();\n foreach ( $this->options as $option ) {\n if ( array_key_exists('long', $option) ) {\n $return[$option['long']] = $this->getOption($option['long']);\n }\n if ( array_key_exists('short', $option) ) {\n $return[$option['short']] = $this->getOption($option['short']);\n }\n }\n return $return;\n }", "title": "" }, { "docid": "9eb085f6d0127b279505397c448d5950", "score": "0.70798427", "text": "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t\n\t\t];\n\t}", "title": "" }, { "docid": "9eb085f6d0127b279505397c448d5950", "score": "0.70798427", "text": "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t\n\t\t];\n\t}", "title": "" }, { "docid": "9eb085f6d0127b279505397c448d5950", "score": "0.70798427", "text": "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t\n\t\t];\n\t}", "title": "" }, { "docid": "15839d216cbcd9bacdf907a3b504e28e", "score": "0.6984202", "text": "protected function getOptions()\n {\n $options = [];\n\n foreach ($this->options as $name => $value) {\n $options[] = $name . '=' . $value;\n }\n\n return $options;\n }", "title": "" }, { "docid": "f1f8c65751db8278e91b02d339cbff6c", "score": "0.6976794", "text": "public function toOptionHash();", "title": "" }, { "docid": "16cbb9ceff4410012ba1ec1fd45d8201", "score": "0.697232", "text": "public function getOptions(): array;", "title": "" }, { "docid": "16cbb9ceff4410012ba1ec1fd45d8201", "score": "0.697232", "text": "public function getOptions(): array;", "title": "" }, { "docid": "16cbb9ceff4410012ba1ec1fd45d8201", "score": "0.697232", "text": "public function getOptions(): array;", "title": "" }, { "docid": "16cbb9ceff4410012ba1ec1fd45d8201", "score": "0.697232", "text": "public function getOptions(): array;", "title": "" }, { "docid": "d388675e605948313d5ee2200815007d", "score": "0.69692576", "text": "function anva_get_formatted_options() {\n\t$api = Anva_Options_API::instance();\n\treturn $api->get_formatted_options();\n}", "title": "" }, { "docid": "de41c35f2fb02df5d8052da284896dcd", "score": "0.69487196", "text": "public function getOptions()\n {\n return $this->_input->getOptions();\n }", "title": "" }, { "docid": "cd169dfebfae55494d1173fc71dd6a91", "score": "0.69302046", "text": "protected function getOptions() {}", "title": "" }, { "docid": "cd169dfebfae55494d1173fc71dd6a91", "score": "0.692995", "text": "protected function getOptions() {}", "title": "" }, { "docid": "904add7ae401f6dfa789e2086f9eb968", "score": "0.68753296", "text": "protected function getOptions()\n {\n $options = [];\n foreach ($this->options as $value => $active) {\n $options[] = $this->getActiveString($active).$value;\n }\n\n return implode(\" \", $options);\n }", "title": "" }, { "docid": "09b345728a1f9f953c0a4494d25cd0e8", "score": "0.68692964", "text": "protected function getOptions()\r\n\t{\r\n\t\treturn array();\r\n\t}", "title": "" }, { "docid": "72838d5ff24a81be3fb71c451fb9ba52", "score": "0.6862018", "text": "public function getOptions() {\n $options = array();\n $data = self::$connection->SelectAssociativeValues(\"SELECT * FROM options\");\n \n foreach ($data as $d) {\n $options[$d['type']] = $d['value'];\n \n }\n \n return $options;\n }", "title": "" }, { "docid": "d3a51d692e96a45cb352de7b17bb14e6", "score": "0.68587923", "text": "public function getOption($key){ }", "title": "" }, { "docid": "8a14844ce4738125261828b9ed5e2312", "score": "0.6837364", "text": "public function getOptions()\n {\n $values = array();\n foreach(static::$options as $opt) {\n $values[$opt] = $this->getOption($opt);\n }\n return $values;\n }", "title": "" }, { "docid": "767468cd5a2598de0444fd608621fbcd", "score": "0.6833754", "text": "public function options_export()\r\n\t\t{\r\n\t\t\t$this->load('options');\r\n\r\n $options = array();\r\n\t\t\tforeach($this->OPTIONS as $id => $name)\r\n\t\t\t{\r\n\t\t\t\t$options[$id] = $this->options[$name];\r\n\t\t\t}\t\t\t\r\n\t\t\treturn $options;\r\n\t\t}", "title": "" }, { "docid": "21d5b6741e16a2c24c4047da3dd93c28", "score": "0.6833313", "text": "protected function getOptions()\n\t{\n\t\treturn array(\n\n\t\t);\n\t}", "title": "" }, { "docid": "21d5b6741e16a2c24c4047da3dd93c28", "score": "0.6833313", "text": "protected function getOptions()\n\t{\n\t\treturn array(\n\n\t\t);\n\t}", "title": "" }, { "docid": "1591175773ffee04481b615889c0d58b", "score": "0.68293434", "text": "public function getOptions($value = NULL);", "title": "" }, { "docid": "4438a5ad0462cdff0d0b90f4fa7b6bd9", "score": "0.6824476", "text": "public function getOptions()\n {\n return $this->value;\n }", "title": "" }, { "docid": "a89394a8c0c868a1196506662ec7a23a", "score": "0.68200696", "text": "public function options()\n {\n return $this->option();\n }", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.68184125", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.68184125", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.68184125", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.68184125", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9364eb1794ee02bd4ca2f0b11e97cf42", "score": "0.68184125", "text": "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "845c881db7d185f077973fedbfc82300", "score": "0.6816125", "text": "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "845c881db7d185f077973fedbfc82300", "score": "0.6816125", "text": "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "845c881db7d185f077973fedbfc82300", "score": "0.6816125", "text": "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "845c881db7d185f077973fedbfc82300", "score": "0.6816125", "text": "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "845c881db7d185f077973fedbfc82300", "score": "0.6816125", "text": "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "845c881db7d185f077973fedbfc82300", "score": "0.6816125", "text": "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "845c881db7d185f077973fedbfc82300", "score": "0.6816125", "text": "protected function getOptions()\n\t{\n\t\treturn [];\n\t}", "title": "" }, { "docid": "0cb5360bfb75bcba73161e3f5a96e45c", "score": "0.68156815", "text": "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "title": "" }, { "docid": "0cb5360bfb75bcba73161e3f5a96e45c", "score": "0.68156815", "text": "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "title": "" }, { "docid": "0cb5360bfb75bcba73161e3f5a96e45c", "score": "0.68156815", "text": "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "title": "" }, { "docid": "0cb5360bfb75bcba73161e3f5a96e45c", "score": "0.68156815", "text": "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "title": "" }, { "docid": "0cb5360bfb75bcba73161e3f5a96e45c", "score": "0.68156815", "text": "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "title": "" }, { "docid": "80d89174e90753d2b6efe99e2ff997f5", "score": "0.68155", "text": "protected function getOptions()\n\t{\n\treturn [];\n\t}", "title": "" }, { "docid": "8cf9722dde8cd569806830b2f5eb5c99", "score": "0.6810496", "text": "function getOptions($encode = false)\r\n {\r\n if (! $encode) {\r\n return $this->_options;\r\n }\r\n $value = array();\r\n foreach($this->_options as $val => $name) {\r\n $value[$encode ? htmlspecialchars($val, ENT_QUOTES) : $val] = ($encode > 1) ? htmlspecialchars($name, ENT_QUOTES) : $name;\r\n }\r\n return $value;\r\n }", "title": "" }, { "docid": "8cf9722dde8cd569806830b2f5eb5c99", "score": "0.6810496", "text": "function getOptions($encode = false)\r\n {\r\n if (! $encode) {\r\n return $this->_options;\r\n }\r\n $value = array();\r\n foreach($this->_options as $val => $name) {\r\n $value[$encode ? htmlspecialchars($val, ENT_QUOTES) : $val] = ($encode > 1) ? htmlspecialchars($name, ENT_QUOTES) : $name;\r\n }\r\n return $value;\r\n }", "title": "" }, { "docid": "096b4c21c480d9600d20fa7d180ccffd", "score": "0.6802574", "text": "abstract protected function getAdditionalOptionsKey();", "title": "" }, { "docid": "6d8831ddf1e074b95e9409f9c6a148a3", "score": "0.6799455", "text": "public function getOptions()\n {\n }", "title": "" }, { "docid": "29433adf3225e71872a0093a7a14fb49", "score": "0.67935544", "text": "protected function getOptions()\n {\n return array(\n\n );\n }", "title": "" }, { "docid": "29433adf3225e71872a0093a7a14fb49", "score": "0.67935544", "text": "protected function getOptions()\n {\n return array(\n\n );\n }", "title": "" }, { "docid": "18701f3e20ed6949556ef58e14fdf123", "score": "0.6789972", "text": "public function optionByKey($key){\n return $this->options[$key];\n }", "title": "" }, { "docid": "9a6d1bcc8da76badcc2d69717d4d8d09", "score": "0.6782897", "text": "protected function getOptions()\n {\n return array(\n array('user-id', null, InputOption::VALUE_OPTIONAL, 'Link the generated API key to a user ID', null),\n array('level', null, InputOption::VALUE_OPTIONAL, 'Permission level of the generated API key', null),\n array('ignore-limits', null, InputOption::VALUE_OPTIONAL, 'Specify whether this API key will ignore limits or not', null),\n );\n }", "title": "" }, { "docid": "9bae2eb28372863a8177193b28cc4b1b", "score": "0.67601556", "text": "public function get() {\n\t\treturn $this->encrypted_options->get( self::OPTION );\n\t}", "title": "" }, { "docid": "e8daabdef5f3460095e59b3aa4ea69de", "score": "0.6759029", "text": "public function getOption($key);", "title": "" }, { "docid": "e8daabdef5f3460095e59b3aa4ea69de", "score": "0.6759029", "text": "public function getOption($key);", "title": "" }, { "docid": "46a447dc2344a8496550a07c8d68eed6", "score": "0.6754667", "text": "protected function getOptions() {\n\t\treturn array(\n\t\t);\n\t}", "title": "" }, { "docid": "44fc4cf4056ec2bf3b1c194e911dff6f", "score": "0.6723223", "text": "public function get_options()\n {\n return $this->options;\n }", "title": "" }, { "docid": "1362115ea108765b88d53b8d177e8ff7", "score": "0.67224586", "text": "public function get_options(): array\n {\n return $this->options;\n }", "title": "" }, { "docid": "9b1a7ac79a26f366e32ee88448c94744", "score": "0.668606", "text": "public function getOptions() {\n\n\t\ttx_pttools_assert::isNotEmptyArray($this->conf['options.'], array('message' => 'No options defined!'));\n\n\t\t$options = array();\n\t\t\n\t\t// first sort array by keys (as we expect single option definitions defined under keys 10., 20., 30., ...)\n\t\t$sortedKeys = t3lib_TStemplate::sortedKeyList($this->conf['options.'], true);\n\t\t\t\n\t\tforeach ($sortedKeys as $tsKey) {\n\t\t\t$option = $this->conf['options.'][$tsKey . '.'];\n\t\t\ttx_pttools_assert::isNotEmptyArray($option, array('message' => sprintf('Invalid option found in key \"%s\"', $tsKey)));\n\t\t\t\n\t\t\t$options[$tsKey . '.'] = array(\n\t\t\t\t'item' => \t\t$option['item'],\n\t\t\t\t'label' => \t\t$GLOBALS['TSFE']->sL($option['label']),\n\t\t\t\t'quantity' => \t$option['quantity'],\n\t\t\t\t'class' => \t\t$option['class'],\n\t\t\t);\n\t\t}\n\t\t\t\t\n\t\treturn $options;\n\t}", "title": "" }, { "docid": "5d3e0f5adf8bf507e68d70206b3411ba", "score": "0.6675017", "text": "public function getOptions()\n {\n return $this->_option;\n }", "title": "" }, { "docid": "1c039888c80a1ee473e0378dfdec328d", "score": "0.66740775", "text": "public function get()\n\t{\n\t\treturn $this->options->getAll();\n\t}", "title": "" }, { "docid": "7e30ede93291fc81e0cbad280b608e35", "score": "0.666511", "text": "protected function _get_options() {\n\t\t\n\t\t$options = array();\n\n\t\t$args = (array) $_SERVER['argv'];\n\n\t\t// We're not interested in the first argument, which is the filename \n\t\tarray_shift($args);\n\n\t\t// If there are values before any keys, assign them to the main array \n\t\t$last_key = 'main';\n\t\tforeach($args as $arg) {\n\t\t\t\n\t\t\t// Remove the - characters \n\t\t\t$value = ltrim($arg, '-');\n\n\t\t\t// If it's still the same, it's a value, not an argument \n\t\t\tif ($value == $arg) {\n\n\t\t\t\t// If we have a last key, we can set it to that, otherwise it's discarded \n\t\t\t\tif ($last_key) { \n\n\t\t\t\t\t// We may want to append \n\t\t\t\t\tif (isset($options[$last_key]) && $options[$last_key] !== TRUE) {\n\t\t\t\t\t\t$options[$last_key] = $options[$last_key] . ' ' . $value;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$options[$last_key] = $value;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// If it's different, it's an argument \n\t\t\t} else {\n\n\t\t\t\t// We may see a value for this soon, but for now, set it to true \n\t\t\t\t$options[$value] = TRUE;\n\n\t\t\t\t// See the last key in case there's a value coming \n\t\t\t\t$last_key = $value; \n\n\t\t\t}\n\n\t\t}\n\n\t\treturn $options;\n\n\t}", "title": "" }, { "docid": "e4333c292e6a2bc4d11cdc623dc9bb8a", "score": "0.6656002", "text": "protected function getOptions()\n {\n return [\n ];\n }", "title": "" }, { "docid": "e4333c292e6a2bc4d11cdc623dc9bb8a", "score": "0.6656002", "text": "protected function getOptions()\n {\n return [\n ];\n }", "title": "" }, { "docid": "e4333c292e6a2bc4d11cdc623dc9bb8a", "score": "0.6656002", "text": "protected function getOptions()\n {\n return [\n ];\n }", "title": "" }, { "docid": "9e7b4c4ec7a6f31eb5a0a5c49b42f655", "score": "0.66544145", "text": "public function getOptions()\n\t{\n\t\treturn array();\n\t}", "title": "" }, { "docid": "f99a7183e42a2c52abc85650101c900e", "score": "0.66487235", "text": "static function extractOptions( array $options ) {\n\t\t$results = array();\n\t\tforeach ( $options as $option ) {\n\t\t\t$pair = explode( '=', $option );\n\t\t\tif ( count( $pair ) == 2 ) {\n\t\t\t\t$name = trim( $pair[0] );\n\t\t\t\t$value = trim( $pair[1] );\n\t\t\t\t$results[$name] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "35824dee46b606d1ff104d87e04cb935", "score": "0.6647179", "text": "protected function getOptions()\n {\n return array();\n }", "title": "" }, { "docid": "35824dee46b606d1ff104d87e04cb935", "score": "0.6647179", "text": "protected function getOptions()\n {\n return array();\n }", "title": "" }, { "docid": "35824dee46b606d1ff104d87e04cb935", "score": "0.6647179", "text": "protected function getOptions()\n {\n return array();\n }", "title": "" }, { "docid": "35824dee46b606d1ff104d87e04cb935", "score": "0.6647179", "text": "protected function getOptions()\n {\n return array();\n }", "title": "" }, { "docid": "15b0f4af39c5705aa6fb64a725da3589", "score": "0.6646244", "text": "public function getOptions()\n {\n $res = [];\n foreach ($this->getOptionArray() as $index => $value) {\n $res[] = ['value' => $index, 'label' => $value];\n }\n return $res;\n }", "title": "" }, { "docid": "15b0f4af39c5705aa6fb64a725da3589", "score": "0.6646244", "text": "public function getOptions()\n {\n $res = [];\n foreach ($this->getOptionArray() as $index => $value) {\n $res[] = ['value' => $index, 'label' => $value];\n }\n return $res;\n }", "title": "" } ]
fcb394468651c4a9260a29d130040f0b
Export set Contenttype's records to the export file.
[ { "docid": "3ea1b0cc3d178c71185eab4e228eb1cd", "score": "0.7450762", "text": "public function exportContenttypesRecords()\n {\n if ($this->getError()) {\n return $this;\n }\n\n // Keep track of our export progress as some data formats require closing elements\n $last = false;\n $end = array_keys($this->contenttypes);\n $end = end($end);\n\n foreach ($this->contenttypes as $key => $contenttype) {\n if ($key === $end) {\n $last = true;\n }\n\n $this->exportContenttypeRecords($contenttype, $last);\n }\n }", "title": "" } ]
[ { "docid": "8682afc156d8e5f2490725bcadeb9f0b", "score": "0.6630922", "text": "private function exportContenttypeRecords($contenttype, $last)\n {\n // Get all the records for the contenttype\n $records = $this->app['storage']->getContent($contenttype);\n $data = array();\n\n // If we're on the last Contenttype, we want to know when we've got the\n // last record so we can close off if need be\n if ($last) {\n $last = false;\n $end = array_keys($records);\n $end = end($end);\n }\n\n foreach ($records as $key => $record) {\n if ($key === $end) {\n $last = true;\n }\n\n $values = $record->getValues();\n unset($values['id']);\n $data[$contenttype] = $values;\n\n $this->writeMigrationFile($data, $last, true);\n }\n }", "title": "" }, { "docid": "23d36339862b447d04be09122e392052", "score": "0.65266526", "text": "private function exportContenttype($contenttype, $file, OutputInterface $output)\n {\n // Get all the records foe the contenttype\n $records = $this->app['storage']->getContent($contenttype);\n\n $output = array();\n foreach ($records as $record) {\n $values = $record->getValues();\n unset($values['id']);\n $output[$contenttype][] = $values;\n }\n\n // Get a new YAML dumper\n $dumper = new Dumper();\n\n // Generate the YAML string\n $yaml = $dumper->dump($output, 4);\n\n file_put_contents($file, $yaml, FILE_APPEND);\n }", "title": "" }, { "docid": "ec58a6b66fb03b22cb0691282a7da659", "score": "0.64877605", "text": "public function export() {\n\n foreach (self::$exportObjects as $object) {\n $this->exportObject($object);\n }\n\n // $this->exportTeams();\n // $this->exportPlayers();\n }", "title": "" }, { "docid": "94098be4fa26a3963ca04ff0c2bfc538", "score": "0.60794026", "text": "function export($type, $records = null, $members = false, $sample = false)\n{\n global $locale;\n global $beanList;\n global $beanFiles;\n global $current_user;\n global $app_strings;\n global $app_list_strings;\n global $timedate;\n global $mod_strings;\n global $current_language;\n $sampleRecordNum = 5;\n $fields_to_exclude = array();\n\n // Array of fields that should not be exported and are only used for logic\n $remove_from_members = array(\"ea_deleted\", \"ear_deleted\", \"primary_address\");\n $focus = 0;\n\n $focus = BeanFactory::newBean($type);\n $searchFields = array();\n $db = DBManagerFactory::getInstance();\n\n if ($records) {\n $records = explode(',', $records);\n $records = \"'\" . implode(\"','\", array_map(array($db,'quote'), $records)) . \"'\";\n $where = \"{$focus->table_name}.id in ($records)\";\n } elseif (isset($_REQUEST['all'])) {\n $where = '';\n } else {\n $current_post = InputValidation::getService()->getValidInputRequest(\n 'current_post',\n array('Assert\\PhpSerialized' => array('base64Encoded' => true))\n );\n\n if(!empty($current_post)) {\n $ret_array = generateSearchWhere($type, $current_post);\n $where = $ret_array['where'];\n $searchFields = $ret_array['searchFields'];\n } else {\n $where = '';\n }\n }\n\n if ($focus->bean_implements('ACL')) {\n if (!ACLController::checkAccess($focus->module_dir, 'export', true)) {\n ACLController::displayNoAccess();\n dotb_die('');\n }\n $tba = new TeamBasedACLConfigurator();\n $access = ACLAction::getUserAccessLevel($current_user->id, $focus->module_dir, 'export');\n if (ACLController::requireOwner($focus->module_dir, 'export')) {\n if (!empty($where)) {\n $where .= ' AND ';\n }\n $where .= $focus->getOwnerWhere($current_user->id);\n } elseif ($tba->isValidAccess($access)) {\n $focus->addVisibilityStrategy('TeamBasedACLVisibility');\n }\n }\n\n if ($focus->bean_implements('ACL')) {\n if (!ACLController::checkAccess($focus->module_dir, 'export', true)) {\n ACLController::displayNoAccess();\n dotb_die('');\n }\n $focus->addVisibilityWhere($where, array(\n 'action' => 'list',\n ));\n }\n\n // Export entire list was broken because the where clause already has \"where\" in it\n // and when the query is built, it has a \"where\" as well, so the query was ill-formed.\n // Eliminating the \"where\" here so that the query can be constructed correctly.\n if ($members == true) {\n $query = $focus->create_export_members_query($records);\n } else {\n $beginWhere = substr(trim($where), 0, 5);\n if ($beginWhere == \"where\") {\n $where = substr(trim($where), 5, strlen($where));\n }\n\n // get the export query. Note that $focus->fields_to_exclude is a temporary variable and is modified within\n // create_export_query(). $focus->fields_to_exclude will be used later by getExportContentFromResult() to\n // exclude fields from export.\n $focus->fields_to_exclude = array();\n $query = $focus->create_export_query('', $where);\n }\n\n $result = null;\n if ($sample) {\n $result = $db->limitQuery(\n $query,\n 0,\n $sampleRecordNum,\n true,\n $app_strings['ERR_EXPORT_TYPE'] . $type . \": <BR>.\" . $query\n );\n $sample = $focus->_get_num_rows_in_query($query) < 1;\n } else {\n $result = $db->query($query, true, $app_strings['ERR_EXPORT_TYPE'] . $type . \": <BR>.\" . $query);\n }\n\n return getExportContentFromResult($focus, $result, $members, $remove_from_members, $sample);\n}", "title": "" }, { "docid": "74bcaae324d9838c87a57f65c80872f3", "score": "0.6038903", "text": "function ExportData() {\n\t\tglobal $formulario;\n\t\t$sCsvStr = \"\";\n\n\t\t// Default export style\n\t\t$sExportStyle = \"h\";\n\n\t\t// Load recordset\n\t\t$rs = $this->LoadRecordset();\n\t\t$this->lTotalRecs = $rs->RecordCount();\n\t\t$this->lStartRec = 1;\n\n\t\t// Export all\n\t\tif ($formulario->ExportAll) {\n\t\t\t$this->lStopRec = $this->lTotalRecs;\n\t\t} else { // Export 1 page only\n\t\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t\t// Set the last record to display\n\t\t\tif ($this->lDisplayRecs < 0) {\n\t\t\t\t$this->lStopRec = $this->lTotalRecs;\n\t\t\t} else {\n\t\t\t\t$this->lStopRec = $this->lStartRec + $this->lDisplayRecs - 1;\n\t\t\t}\n\t\t}\n\t\tif ($formulario->Export == \"xml\") {\n\t\t\t$XmlDoc = new cXMLDocument();\n\t\t} else {\n\t\t\techo ew_ExportHeader($formulario->Export);\n\n\t\t\t// Horizontal format, write header\n\t\t\tif ($sExportStyle <> \"v\" || $formulario->Export == \"csv\") {\n\t\t\t\t$sExportStr = \"\";\n\t\t\t\tew_ExportAddValue($sExportStr, 'idFormulario', $formulario->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'idMer', $formulario->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'idPlanilla', $formulario->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'archivo', $formulario->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'cuenta', $formulario->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'porcentaje', $formulario->Export);\n\t\t\t\techo ew_ExportLine($sExportStr, $formulario->Export);\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$this->lRecCnt = $this->lStartRec - 1;\n\t\tif (!$rs->EOF) {\n\t\t\t$rs->MoveFirst();\n\t\t\t$rs->Move($this->lStartRec - 1);\n\t\t}\n\t\twhile (!$rs->EOF && $this->lRecCnt < $this->lStopRec) {\n\t\t\t$this->lRecCnt++;\n\t\t\tif (intval($this->lRecCnt) >= intval($this->lStartRec)) {\n\t\t\t\t$this->LoadRowValues($rs);\n\n\t\t\t\t// Render row for display\n\t\t\t\t$formulario->RowType = EW_ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->RenderRow();\n\t\t\t\tif ($formulario->Export == \"xml\") {\n\t\t\t\t\t$XmlDoc->BeginRow();\n\t\t\t\t\t$XmlDoc->AddField('idFormulario', $formulario->idFormulario->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('idMer', $formulario->idMer->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('idPlanilla', $formulario->idPlanilla->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('archivo', $formulario->archivo->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('cuenta', $formulario->cuenta->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('porcentaje', $formulario->porcentaje->CurrentValue);\n\t\t\t\t\t$XmlDoc->EndRow();\n\t\t\t\t} else {\n\t\t\t\t\tif ($sExportStyle == \"v\" && $formulario->Export <> \"csv\") { // Vertical format\n\t\t\t\t\t\techo ew_ExportField('idFormulario', $formulario->idFormulario->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t\techo ew_ExportField('idMer', $formulario->idMer->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t\techo ew_ExportField('idPlanilla', $formulario->idPlanilla->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t\techo ew_ExportField('archivo', $formulario->archivo->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t\techo ew_ExportField('cuenta', $formulario->cuenta->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t\techo ew_ExportField('porcentaje', $formulario->porcentaje->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t}\telse { // Horizontal format\n\t\t\t\t\t\t$sExportStr = \"\";\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $formulario->idFormulario->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $formulario->idMer->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $formulario->idPlanilla->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $formulario->archivo->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $formulario->cuenta->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $formulario->porcentaje->ExportValue($formulario->Export, $formulario->ExportOriginalValue), $formulario->Export);\n\t\t\t\t\t\techo ew_ExportLine($sExportStr, $formulario->Export);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$rs->MoveNext();\n\t\t}\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\t\tif ($formulario->Export == \"xml\") {\n\t\t\theader(\"Content-Type: text/xml\");\n\t\t\techo $XmlDoc->XML();\n\t\t} else {\n\t\t\techo ew_ExportFooter($formulario->Export);\n\t\t}\n\t}", "title": "" }, { "docid": "03794c112a4af6248926e5e8d61f56db", "score": "0.60311544", "text": "public function actionExport()\r\n\t{\r\n\t\t$exportPage = new ExportPage('objects', $this->schema);\r\n\t\t$exportPage->run();\r\n\r\n\t\t$this->render('../global/export', array(\r\n\t\t\t'model' => $exportPage,\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "a5313632d7b953363ea693826a1c91a2", "score": "0.6030272", "text": "function export($type, $records = null, $members = false) {\n\tglobal $beanList;\n\tglobal $beanFiles;\n\tglobal $current_user;\n\tglobal $app_strings;\n\tglobal $timedate;\n\t$contact_fields = array(\n\t\t\"id\"=>\"Contact ID\"\n\t\t,\"lead_source\"=>\"Lead Source\"\n\t\t,\"date_entered\"=>\"Date Entered\"\n\t\t,\"date_modified\"=>\"Date Modified\"\n\t\t,\"first_name\"=>\"First Name\"\n\t\t,\"last_name\"=>\"Last Name\"\n\t\t,\"salutation\"=>\"Salutation\"\n\t\t,\"birthdate\"=>\"Lead Source\"\n\t\t,\"do_not_call\"=>\"Do Not Call\"\n\t\t,\"email_opt_out\"=>\"Email Opt Out\"\n\t\t,\"title\"=>\"Title\"\n\t\t,\"department\"=>\"Department\"\n\t\t,\"birthdate\"=>\"Birthdate\"\n\t\t,\"do_not_call\"=>\"Do Not Call\"\n\t\t,\"phone_home\"=>\"Phone (Home)\"\n\t\t,\"phone_mobile\"=>\"Phone (Mobile)\"\n\t\t,\"phone_work\"=>\"Phone (Work)\"\n\t\t,\"phone_other\"=>\"Phone (Other)\"\n\t\t,\"phone_fax\"=>\"Fax\"\n\t\t,\"email1\"=>\"Email\"\n\t\t,\"email2\"=>\"Email (Other)\"\n\t\t,\"assistant\"=>\"Assistant\"\n\t\t,\"assistant_phone\"=>\"Assistant Phone\"\n\t\t,\"primary_address_street\"=>\"Primary Address Street\"\n\t\t,\"primary_address_city\"=>\"Primary Address City\"\n\t\t,\"primary_address_state\"=>\"Primary Address State\"\n\t\t,\"primary_address_postalcode\"=>\"Primary Address Postalcode\"\n\t\t,\"primary_address_country\"=>\"Primary Address Country\"\n\t\t,\"alt_address_street\"=>\"Other Address Street\"\n\t\t,\"alt_address_city\"=>\"Other Address City\"\n\t\t,\"alt_address_state\"=>\"Other Address State\"\n\t\t,\"alt_address_postalcode\"=>\"Other Address Postalcode\"\n\t\t,\"alt_address_country\"=>\"Other Address Country\"\n\t\t,\"description\"=>\"Description\"\n\t);\n\n\t$account_fields = array(\n\t\t\"id\"=>\"Account ID\",\n\t\t\"name\"=>\"Account Name\",\n\t\t\"website\"=>\"Website\",\n\t\t\"industry\"=>\"Industry\",\n\t\t\"account_type\"=>\"Type\",\n\t\t\"ticker_symbol\"=>\"Ticker Symbol\",\n\t\t\"employees\"=>\"Employees\",\n\t\t\"ownership\"=>\"Ownership\",\n\t\t\"phone_office\"=>\"Phone\",\n\t\t\"phone_fax\"=>\"Fax\",\n\t\t\"phone_alternate\"=>\"Other Phone\",\n\t\t\"email1\"=>\"Email\",\n\t\t\"email2\"=>\"Other Email\",\n\t\t\"rating\"=>\"Rating\",\n\t\t\"sic_code\"=>\"SIC Code\",\n\t\t\"annual_revenue\"=>\"Annual Revenue\",\n\t\t\"billing_address_street\"=>\"Billing Address Street\",\n\t\t\"billing_address_city\"=>\"Billing Address City\",\n\t\t\"billing_address_state\"=>\"Billing Address State\",\n\t\t\"billing_address_postalcode\"=>\"Billing Address Postalcode\",\n\t\t\"billing_address_country\"=>\"Billing Address Country\",\n\t\t\"shipping_address_street\"=>\"Shipping Address Street\",\n\t\t\"shipping_address_city\"=>\"Shipping Address City\",\n\t\t\"shipping_address_state\"=>\"Shipping Address State\",\n\t\t\"shipping_address_postalcode\"=>\"Shipping Address Postalcode\",\n\t\t\"shipping_address_country\"=>\"Shipping Address Country\",\n\t\t\"description\"=>\"Description\"\n\t);\n\t$focus = 0;\n\t$content = '';\n\n\t$bean = $beanList[$type];\n\trequire_once($beanFiles[$bean]);\n\t$focus = new $bean;\n\n\t$db = DBManagerFactory::getInstance();\n\n\tif($records) {\n\t\t$records = explode(',', $records);\n\t\t$records = \"'\" . implode(\"','\", $records) . \"'\";\n\t\t$where = \"{$focus->table_name}.id in ($records)\";\n\t} elseif (isset($_REQUEST['all']) ) {\n\t\t$where = '';\n\t} else {\n\t\tif(!empty($_REQUEST['current_post'])) {\n\t\t\t$ret_array = generateSearchWhere($type, $_REQUEST['current_post']);\n\t\t\t$where = $ret_array['where'];\n\t\t\t$searchFields = $ret_array['searchFields'];\n\t\t} else {\n\t\t\t$where = '';\n\t\t}\n\t}\n\t$order_by = \"\";\n\tif($focus->bean_implements('ACL')){\n\t\tif(!ACLController::checkAccess($focus->module_dir, 'export', true)){\n\t\t\tACLController::displayNoAccess();\n\t\t\tsugar_die('');\n\t\t}\n\t\tif(ACLController::requireOwner($focus->module_dir, 'export')){\n\t\t\tif(!empty($where)){\n\t\t\t\t$where .= ' AND ';\n\t\t\t}\n\t\t\t$where .= $focus->getOwnerWhere($current_user->id);\n\t\t}\n\t\t/* BEGIN - SECURITY GROUPS */\n \tif(ACLController::requireSecurityGroup($focus->module_dir, 'export') )\n \t{\n\t\t\trequire_once('modules/SecurityGroups/SecurityGroup.php');\n \t\tglobal $current_user;\n \t\t$owner_where = $focus->getOwnerWhere($current_user->id);\n \t\t$group_where = SecurityGroup::getGroupWhere($focus->table_name,$focus->module_dir,$current_user->id);\n \t\tif(empty($where))\n \t\t{\n \t\t\t$where = \" (\". $owner_where.\" or \".$group_where.\")\";\n \t\t} else {\n \t\t\t$where .= \" AND (\". $owner_where.\" or \".$group_where.\")\";\n \t\t}\n \t}\n \t/* END - SECURITY GROUPS */\n\n\t}\n // Export entire list was broken because the where clause already has \"where\" in it\n // and when the query is built, it has a \"where\" as well, so the query was ill-formed.\n // Eliminating the \"where\" here so that the query can be constructed correctly.\n if($members == true){\n \t\t$query = $focus->create_export_members_query($records);\n }else{\n\t\t$beginWhere = substr(trim($where), 0, 5);\n\t if ($beginWhere == \"where\")\n\t $where = substr(trim($where), 5, strlen($where));\n\t $ret_array = create_export_query_relate_link_patch($type, $searchFields, $where); \n\t $query = $focus->create_export_query($order_by,$ret_array['where'], $ret_array['join']);\n }\n\n \t\n\t$result = $db->query($query, true, $app_strings['ERR_EXPORT_TYPE'].$type.\": <BR>.\".$query);\n\t\n\t$fields_array = $db->getFieldsArray($result,true);\n\n\t// setup the \"header\" line with quotation marks\n\t$header = implode(\"\\\"\".getDelimiter().\"\\\"\", array_values($fields_array));\n\tif($members){\n\t\t$header = str_replace('\"ea_deleted\",\"ear_deleted\",\"primary_address\",','',$header);\n\t}\n\t$header = \"\\\"\" .$header;\n\t$header .= \"\\\"\\r\\n\";\n\t$content .= $header;\n\t$pre_id = '';\n\twhile($val = $db->fetchByAssoc($result, -1, false)) {\n\t\t$new_arr = array();\n\n\n\n\n\n\n\n\n\n\t\tif($members){\n\t\t\tif($pre_id == $val['id'])\n\t\t\t\tcontinue;\n\t\t\tif($val['ea_deleted']==1 || $val['ear_deleted']==1){\t\n\t\t\t\t$val['primary_email_address'] = '';\n\t\t\t}\n\t\t\tunset($val['ea_deleted']);\n\t\t\tunset($val['ear_deleted']);\t\n\t\t\tunset($val['primary_address']);\t\t\t\n\t\t}\n\t\t$pre_id = $val['id'];\n\t\tforeach (array_values($val) as $key => $value) {\n\t\t\t//if our value is a datetime field, then apply the users locale\n\t\t\tif(isset($focus->field_name_map[$fields_array[$key]]['type']) && $focus->field_name_map[$fields_array[$key]]['type'] == 'datetime'){\n\t\t\t\t$value = $timedate->to_display_date_time($value);\n\t\t\t}\n\t\t\t//kbrill Bug #16296\n\t\t\tif(isset($focus->field_name_map[$fields_array[$key]]['type']) && $focus->field_name_map[$fields_array[$key]]['type'] == 'date'){\n\t\t\t\t$value = $timedate->to_display_date($value, false);\n\t\t\t}\n\t\t\tarray_push($new_arr, preg_replace(\"/\\\"/\",\"\\\"\\\"\", $value));\n\t\t}\n\t\t$line = implode(\"\\\"\".getDelimiter().\"\\\"\", $new_arr);\n\t\t$line = \"\\\"\" .$line;\n\t\t$line .= \"\\\"\\r\\n\";\n\n\t\t$content .= $line;\n\t}\n\treturn $content;\n}", "title": "" }, { "docid": "c585884210fcc4a7d0fe1510314d4b64", "score": "0.60209584", "text": "public function export($type)\n {\n if(!empty($_POST))\n {\n if($type == 'story')\n {\n $this->loadModel('story');\n\n $stories = $this->dao->select('id, title')->from(TABLE_STORY)->where($this->session->storyQueryCondition)\n ->beginIF($this->session->storyOrderBy != false)->orderBy($this->session->storyOrderBy)->fi()\n ->fetchAll('id');\n\n foreach($stories as $story)\n {\n $story->title = \"<a href='\" . common::getSysURL() . $this->createLink('story', 'view', \"storyID=$story->id\") . \"' target='_blank'>$story->title</a>\";\n }\n\n $this->post->set('fields', array('id' => $this->lang->story->id, 'title' => $this->lang->story->title));\n $this->post->set('rows', $stories);\n $this->fetch('file', 'export2HTML', $_POST);\n }\n else if($type == 'bug')\n {\n $this->loadModel('bug');\n\n $bugs = $this->dao->select('id, title')->from(TABLE_BUG)->where($this->session->bugQueryCondition)\n ->beginIF($this->session->bugOrderBy != false)->orderBy($this->session->bugOrderBy)->fi()\n ->fetchAll('id');\n\n foreach($bugs as $bug)\n {\n $bug->title = \"<a href='\" . common::getSysURL() . $this->createLink('bug', 'view', \"bugID=$bug->id\") . \"' target='_blank'>$bug->title</a>\";\n }\n\n $this->post->set('fields', array('id' => $this->lang->bug->id, 'title' => $this->lang->bug->title));\n $this->post->set('rows', $bugs);\n $this->fetch('file', 'export2HTML', $_POST);\n }\n }\n\n $this->display();\n }", "title": "" }, { "docid": "76c164a93dbfa9eae76d81c789b9685a", "score": "0.6016416", "text": "function ExportData() {\n\t\t$utf8 = (strtolower(EW_CHARSET) == \"utf-8\");\n\t\t$bSelectLimit = $this->UseSelectLimit;\n\n\t\t// Load recordset\n\t\tif ($bSelectLimit) {\n\t\t\t$this->TotalRecs = $this->SelectRecordCount();\n\t\t} else {\n\t\t\tif (!$this->Recordset)\n\t\t\t\t$this->Recordset = $this->LoadRecordset();\n\t\t\t$rs = &$this->Recordset;\n\t\t\tif ($rs)\n\t\t\t\t$this->TotalRecs = $rs->RecordCount();\n\t\t}\n\t\t$this->StartRec = 1;\n\n\t\t// Export all\n\t\tif ($this->ExportAll) {\n\t\t\tset_time_limit(EW_EXPORT_ALL_TIME_LIMIT);\n\t\t\t$this->DisplayRecs = $this->TotalRecs;\n\t\t\t$this->StopRec = $this->TotalRecs;\n\t\t} else { // Export one page only\n\t\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t\t// Set the last record to display\n\t\t\tif ($this->DisplayRecs <= 0) {\n\t\t\t\t$this->StopRec = $this->TotalRecs;\n\t\t\t} else {\n\t\t\t\t$this->StopRec = $this->StartRec + $this->DisplayRecs - 1;\n\t\t\t}\n\t\t}\n\t\tif ($bSelectLimit)\n\t\t\t$rs = $this->LoadRecordset($this->StartRec-1, $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs);\n\t\tif (!$rs) {\n\t\t\theader(\"Content-Type:\"); // Remove header\n\t\t\theader(\"Content-Disposition:\");\n\t\t\t$this->ShowMessage();\n\t\t\treturn;\n\t\t}\n\t\t$this->ExportDoc = ew_ExportDocument($this, \"h\");\n\t\t$Doc = &$this->ExportDoc;\n\t\tif ($bSelectLimit) {\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->StopRec = $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs;\n\t\t} else {\n\n\t\t\t//$this->StartRec = $this->StartRec;\n\t\t\t//$this->StopRec = $this->StopRec;\n\n\t\t}\n\n\t\t// Call Page Exporting server event\n\t\t$this->ExportDoc->ExportCustom = !$this->Page_Exporting();\n\t\t$ParentTable = \"\";\n\t\t$sHeader = $this->PageHeader;\n\t\t$this->Page_DataRendering($sHeader);\n\t\t$Doc->Text .= $sHeader;\n\t\t$this->ExportDocument($Doc, $rs, $this->StartRec, $this->StopRec, \"\");\n\t\t$sFooter = $this->PageFooter;\n\t\t$this->Page_DataRendered($sFooter);\n\t\t$Doc->Text .= $sFooter;\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\n\t\t// Call Page Exported server event\n\t\t$this->Page_Exported();\n\n\t\t// Export header and footer\n\t\t$Doc->ExportHeaderAndFooter();\n\n\t\t// Clean output buffer\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\n\t\t\tob_end_clean();\n\n\t\t// Write debug message if enabled\n\t\tif (EW_DEBUG_ENABLED && $this->Export <> \"pdf\")\n\t\t\techo ew_DebugMsg();\n\n\t\t// Output data\n\t\tif ($this->Export == \"email\") {\n\t\t\techo $this->ExportEmail($Doc->Text);\n\t\t} else {\n\t\t\t$Doc->Export();\n\t\t}\n\t}", "title": "" }, { "docid": "cdd26450568122a1db08bf5e43ebe1b0", "score": "0.6014394", "text": "public function export()\n\t\t{\n\t\t\t$this->headers();\n\n\t\t\t$header_line = false;\n\n\t\t\tforeach ($this->collection as $object)\n\t\t\t{\n\t\t\t\t$vars = get_object_vars($object);\n\t\t\t\tif (!$header_line)\n\t\t\t\t{\n\t\t\t\t\t$this->output(array_keys($vars));\n\t\t\t\t\t$header_line = true;\n\t\t\t\t}\n\n\t\t\t\t// outputs values\n\t\t\t\t$this->output($vars);\n\t\t\t\tunset($vars);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "520aa4d06ef206b554dd4d1dded22ccb", "score": "0.6005036", "text": "function ExportData() {\n\t\t$utf8 = (strtolower(EW_CHARSET) == \"utf-8\");\n\t\t$bSelectLimit = EW_SELECT_LIMIT;\n\n\t\t// Load recordset\n\t\tif ($bSelectLimit) {\n\t\t\t$this->TotalRecs = $this->SelectRecordCount();\n\t\t} else {\n\t\t\tif (!$this->Recordset)\n\t\t\t\t$this->Recordset = $this->LoadRecordset();\n\t\t\t$rs = &$this->Recordset;\n\t\t\tif ($rs)\n\t\t\t\t$this->TotalRecs = $rs->RecordCount();\n\t\t}\n\t\t$this->StartRec = 1;\n\n\t\t// Export all\n\t\tif ($this->ExportAll) {\n\t\t\tset_time_limit(EW_EXPORT_ALL_TIME_LIMIT);\n\t\t\t$this->DisplayRecs = $this->TotalRecs;\n\t\t\t$this->StopRec = $this->TotalRecs;\n\t\t} else { // Export one page only\n\t\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t\t// Set the last record to display\n\t\t\tif ($this->DisplayRecs <= 0) {\n\t\t\t\t$this->StopRec = $this->TotalRecs;\n\t\t\t} else {\n\t\t\t\t$this->StopRec = $this->StartRec + $this->DisplayRecs - 1;\n\t\t\t}\n\t\t}\n\t\tif ($bSelectLimit)\n\t\t\t$rs = $this->LoadRecordset($this->StartRec-1, $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs);\n\t\tif (!$rs) {\n\t\t\theader(\"Content-Type:\"); // Remove header\n\t\t\theader(\"Content-Disposition:\");\n\t\t\t$this->ShowMessage();\n\t\t\treturn;\n\t\t}\n\t\t$this->ExportDoc = ew_ExportDocument($this, \"h\");\n\t\t$Doc = &$this->ExportDoc;\n\t\tif ($bSelectLimit) {\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->StopRec = $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs;\n\t\t} else {\n\n\t\t\t//$this->StartRec = $this->StartRec;\n\t\t\t//$this->StopRec = $this->StopRec;\n\n\t\t}\n\n\t\t// Call Page Exporting server event\n\t\t$this->ExportDoc->ExportCustom = !$this->Page_Exporting();\n\t\t$ParentTable = \"\";\n\t\t$sHeader = $this->PageHeader;\n\t\t$this->Page_DataRendering($sHeader);\n\t\t$Doc->Text .= $sHeader;\n\t\t$this->ExportDocument($Doc, $rs, $this->StartRec, $this->StopRec, \"\");\n\t\t$sFooter = $this->PageFooter;\n\t\t$this->Page_DataRendered($sFooter);\n\t\t$Doc->Text .= $sFooter;\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\n\t\t// Export header and footer\n\t\t$Doc->ExportHeaderAndFooter();\n\n\t\t// Call Page Exported server event\n\t\t$this->Page_Exported();\n\n\t\t// Clean output buffer\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\n\t\t\tob_end_clean();\n\n\t\t// Write debug message if enabled\n\t\tif (EW_DEBUG_ENABLED)\n\t\t\techo ew_DebugMsg();\n\n\t\t// Output data\n\t\t$Doc->Export();\n\t}", "title": "" }, { "docid": "c733d4ec011cddf0b8ceb109e17f835a", "score": "0.6003487", "text": "function ExportData() {\n\t\t$utf8 = (strtolower(EW_CHARSET) == \"utf-8\");\n\t\t$bSelectLimit = FALSE;\n\n\t\t// Load recordset\n\t\tif ($bSelectLimit) {\n\t\t\t$this->TotalRecs = $this->SelectRecordCount();\n\t\t} else {\n\t\t\tif (!$this->Recordset)\n\t\t\t\t$this->Recordset = $this->LoadRecordset();\n\t\t\t$rs = &$this->Recordset;\n\t\t\tif ($rs)\n\t\t\t\t$this->TotalRecs = $rs->RecordCount();\n\t\t}\n\t\t$this->StartRec = 1;\n\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t// Set the last record to display\n\t\tif ($this->DisplayRecs <= 0) {\n\t\t\t$this->StopRec = $this->TotalRecs;\n\t\t} else {\n\t\t\t$this->StopRec = $this->StartRec + $this->DisplayRecs - 1;\n\t\t}\n\t\tif (!$rs) {\n\t\t\theader(\"Content-Type:\"); // Remove header\n\t\t\theader(\"Content-Disposition:\");\n\t\t\t$this->ShowMessage();\n\t\t\treturn;\n\t\t}\n\t\t$this->ExportDoc = ew_ExportDocument($this, \"v\");\n\t\t$Doc = &$this->ExportDoc;\n\t\tif ($bSelectLimit) {\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->StopRec = $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs;\n\t\t} else {\n\n\t\t\t//$this->StartRec = $this->StartRec;\n\t\t\t//$this->StopRec = $this->StopRec;\n\n\t\t}\n\n\t\t// Call Page Exporting server event\n\t\t$this->ExportDoc->ExportCustom = !$this->Page_Exporting();\n\t\t$ParentTable = \"\";\n\t\t$sHeader = $this->PageHeader;\n\t\t$this->Page_DataRendering($sHeader);\n\t\t$Doc->Text .= $sHeader;\n\t\t$this->ExportDocument($Doc, $rs, $this->StartRec, $this->StopRec, \"view\");\n\n\t\t// Export detail records (gastos)\n\t\tif (EW_EXPORT_DETAIL_RECORDS && in_array(\"gastos\", explode(\",\", $this->getCurrentDetailTable()))) {\n\t\t\tglobal $gastos;\n\t\t\tif (!isset($gastos)) $gastos = new cgastos;\n\t\t\t$rsdetail = $gastos->LoadRs($gastos->GetDetailFilter()); // Load detail records\n\t\t\tif ($rsdetail && !$rsdetail->EOF) {\n\t\t\t\t$ExportStyle = $Doc->Style;\n\t\t\t\t$Doc->SetStyle(\"h\"); // Change to horizontal\n\t\t\t\tif ($this->Export <> \"csv\" || EW_EXPORT_DETAIL_RECORDS_FOR_CSV) {\n\t\t\t\t\t$Doc->ExportEmptyRow();\n\t\t\t\t\t$detailcnt = $rsdetail->RecordCount();\n\t\t\t\t\t$gastos->ExportDocument($Doc, $rsdetail, 1, $detailcnt);\n\t\t\t\t}\n\t\t\t\t$Doc->SetStyle($ExportStyle); // Restore\n\t\t\t\t$rsdetail->Close();\n\t\t\t}\n\t\t}\n\t\t$sFooter = $this->PageFooter;\n\t\t$this->Page_DataRendered($sFooter);\n\t\t$Doc->Text .= $sFooter;\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\n\t\t// Export header and footer\n\t\t$Doc->ExportHeaderAndFooter();\n\n\t\t// Call Page Exported server event\n\t\t$this->Page_Exported();\n\n\t\t// Clean output buffer\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\n\t\t\tob_end_clean();\n\n\t\t// Write debug message if enabled\n\t\tif (EW_DEBUG_ENABLED)\n\t\t\techo ew_DebugMsg();\n\n\t\t// Output data\n\t\t$Doc->Export();\n\t}", "title": "" }, { "docid": "0958b7e62cd47b40dda8036be2258e61", "score": "0.5967405", "text": "function ExportData() {\n\t\t$utf8 = (strtolower(EW_CHARSET) == \"utf-8\");\n\t\t$bSelectLimit = EW_SELECT_LIMIT;\n\n\t\t// Load recordset\n\t\tif ($bSelectLimit) {\n\t\t\t$this->TotalRecs = $this->SelectRecordCount();\n\t\t} else {\n\t\t\tif ($rs = $this->LoadRecordset())\n\t\t\t\t$this->TotalRecs = $rs->RecordCount();\n\t\t}\n\t\t$this->StartRec = 1;\n\n\t\t// Export all\n\t\tif ($this->ExportAll) {\n\t\t\tset_time_limit(EW_EXPORT_ALL_TIME_LIMIT);\n\t\t\t$this->DisplayRecs = $this->TotalRecs;\n\t\t\t$this->StopRec = $this->TotalRecs;\n\t\t} else { // Export one page only\n\t\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t\t// Set the last record to display\n\t\t\tif ($this->DisplayRecs <= 0) {\n\t\t\t\t$this->StopRec = $this->TotalRecs;\n\t\t\t} else {\n\t\t\t\t$this->StopRec = $this->StartRec + $this->DisplayRecs - 1;\n\t\t\t}\n\t\t}\n\t\tif ($bSelectLimit)\n\t\t\t$rs = $this->LoadRecordset($this->StartRec-1, $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs);\n\t\tif (!$rs) {\n\t\t\theader(\"Content-Type:\"); // Remove header\n\t\t\theader(\"Content-Disposition:\");\n\t\t\t$this->ShowMessage();\n\t\t\treturn;\n\t\t}\n\t\t$ExportDoc = ew_ExportDocument($this, \"h\");\n\t\t$ParentTable = \"\";\n\t\tif ($bSelectLimit) {\n\t\t\t$StartRec = 1;\n\t\t\t$StopRec = $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs;\n\t\t} else {\n\t\t\t$StartRec = $this->StartRec;\n\t\t\t$StopRec = $this->StopRec;\n\t\t}\n\t\t$sHeader = $this->PageHeader;\n\t\t$this->Page_DataRendering($sHeader);\n\t\t$ExportDoc->Text .= $sHeader;\n\t\t$this->ExportDocument($ExportDoc, $rs, $StartRec, $StopRec, \"\");\n\t\t$sFooter = $this->PageFooter;\n\t\t$this->Page_DataRendered($sFooter);\n\t\t$ExportDoc->Text .= $sFooter;\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\n\t\t// Export header and footer\n\t\t$ExportDoc->ExportHeaderAndFooter();\n\n\t\t// Clean output buffer\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\n\t\t\tob_end_clean();\n\n\t\t// Write debug message if enabled\n\t\tif (EW_DEBUG_ENABLED)\n\t\t\techo ew_DebugMsg();\n\n\t\t// Output data\n\t\t$ExportDoc->Export();\n\t}", "title": "" }, { "docid": "c2302d3526e0df65cfb4b828d980f830", "score": "0.59618247", "text": "function ExportData() {\r\n\t\t$utf8 = (strtolower(EW_CHARSET) == \"utf-8\");\r\n\t\t$bSelectLimit = EW_SELECT_LIMIT;\r\n\r\n\t\t// Load recordset\r\n\t\tif ($bSelectLimit) {\r\n\t\t\t$this->TotalRecs = $this->SelectRecordCount();\r\n\t\t} else {\r\n\t\t\tif ($rs = $this->LoadRecordset())\r\n\t\t\t\t$this->TotalRecs = $rs->RecordCount();\r\n\t\t}\r\n\t\t$this->StartRec = 1;\r\n\r\n\t\t// Export all\r\n\t\tif ($this->ExportAll) {\r\n\t\t\tset_time_limit(EW_EXPORT_ALL_TIME_LIMIT);\r\n\t\t\t$this->DisplayRecs = $this->TotalRecs;\r\n\t\t\t$this->StopRec = $this->TotalRecs;\r\n\t\t} else { // Export one page only\r\n\t\t\t$this->SetUpStartRec(); // Set up start record position\r\n\r\n\t\t\t// Set the last record to display\r\n\t\t\tif ($this->DisplayRecs <= 0) {\r\n\t\t\t\t$this->StopRec = $this->TotalRecs;\r\n\t\t\t} else {\r\n\t\t\t\t$this->StopRec = $this->StartRec + $this->DisplayRecs - 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($bSelectLimit)\r\n\t\t\t$rs = $this->LoadRecordset($this->StartRec-1, $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs);\r\n\t\tif (!$rs) {\r\n\t\t\theader(\"Content-Type:\"); // Remove header\r\n\t\t\theader(\"Content-Disposition:\");\r\n\t\t\t$this->ShowMessage();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t$ExportDoc = ew_ExportDocument($this, \"h\");\r\n\t\t$ParentTable = \"\";\r\n\t\tif ($bSelectLimit) {\r\n\t\t\t$StartRec = 1;\r\n\t\t\t$StopRec = $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs;\r\n\t\t} else {\r\n\t\t\t$StartRec = $this->StartRec;\r\n\t\t\t$StopRec = $this->StopRec;\r\n\t\t}\r\n\t\t$sHeader = $this->PageHeader;\r\n\t\t$this->Page_DataRendering($sHeader);\r\n\t\t$ExportDoc->Text .= $sHeader;\r\n\t\t$this->ExportDocument($ExportDoc, $rs, $StartRec, $StopRec, \"\");\r\n\t\t$sFooter = $this->PageFooter;\r\n\t\t$this->Page_DataRendered($sFooter);\r\n\t\t$ExportDoc->Text .= $sFooter;\r\n\r\n\t\t// Close recordset\r\n\t\t$rs->Close();\r\n\r\n\t\t// Export header and footer\r\n\t\t$ExportDoc->ExportHeaderAndFooter();\r\n\r\n\t\t// Clean output buffer\r\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\r\n\t\t\tob_end_clean();\r\n\r\n\t\t// Write debug message if enabled\r\n\t\tif (EW_DEBUG_ENABLED)\r\n\t\t\techo ew_DebugMsg();\r\n\r\n\t\t// Output data\r\n\t\t$ExportDoc->Export();\r\n\t}", "title": "" }, { "docid": "3aecea88b9b89bce257669e47b6c3a8a", "score": "0.5924822", "text": "public function exportFile( $path, $type = 1, $tables = array() );", "title": "" }, { "docid": "f9684c29b0619382c7a560cdbe1a9cb0", "score": "0.58726", "text": "public static function export(string $type = \"file\"){\n switch($type){\n case 'file': self::toFile();\n break;\n\n case 'screen': self::toScreen();\n break;\n\n case 'email' : self::toEmail();\n break;\n\n case 'all': self::toScreen(); self::toEmail();\n break; \n\n default:\n self::toFile();\n break;\n }\n }", "title": "" }, { "docid": "53e357675d98c296cf511fdfd4ec2ebc", "score": "0.58448625", "text": "public function exportReport();", "title": "" }, { "docid": "2837f4fed785bc8edb4b55881a792be6", "score": "0.58275056", "text": "public function exportfile($table = '', $type = 'xml')\n\t{\n\t\t$this->load->model('system_m');\n\t\t$this->load->helper('download');\n\t\t$this->load->library('format');\n\n\t\t$table_list = config_item('system.export_tables');\n\n\t\tif (in_array($table, $table_list))\n\t\t{\n\t\t\t$this->system_m->export($table, $type, $table_list);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect('admin/system');\n\t\t}\n\t}", "title": "" }, { "docid": "70e48f4104b4a71c93386c514a90fffb", "score": "0.58270866", "text": "public function export(){\n return parent::export() + array('name'=>$this->name) + $this->fields->export(); \n }", "title": "" }, { "docid": "9afaeb07c39b99a8c7960e13086622bd", "score": "0.5806991", "text": "function exportSample($type)\n{\n global $app_strings;\n\n // first grab the\n $_REQUEST['all']=true;\n\n // retrieve the export content\n $content = export($type, null, false, true);\n\n // Add a new row and add details on removing the sample data\n // Our Importer will stop after he gets to the new row, ignoring the text below\n\n //edit by TKT\n return $content;\n\n}", "title": "" }, { "docid": "774d95e1fab17b0fecacfa68d5546c79", "score": "0.58058345", "text": "public function exportData(){\n\t\tswitch($_POST['export_to']){\n\t\t\tcase 'csv':\n\t\t\t\treturn $this->exportCSV();\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'json':\n\t\t\t\treturn $this->exportJSON();\n\t\t\t\tbreak;\n\t\t\t \n\t\t\tcase 'xml':\n\t\t\t\treturn $this->exportXML();\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "11e74e217ed182ea7d9ce3c3aeefc0d0", "score": "0.57887447", "text": "public function exportAll(): array;", "title": "" }, { "docid": "970c6453b2fe997b7bf8f2af56391831", "score": "0.57810694", "text": "public function exportAction()\n {\n $columns = array('id', 'name', 'title','company','email', 'phone','time');\n $model = $this->getModel('freetrial');\n $select = $model->select()\n ->columns($columns)\n ->order('id ASC');\n $data = $model->selectWith($select);\n $value = $data->toArray();\n foreach ($value as $v)\n {\n $v = implode(\",\",$v);\n $temp[] = $v;\n }\n $t=\"\";\n foreach($temp as $v){\n $t.=\"'\".$v.\"'\".\"\\n\";\n }\n $source=substr($t,0,-1);\n d($value);\n d($source);\n\n $options = array(\n // Required\n 'type' => 'raw',\n // Optional\n 'filename' => 'list.xls',\n // Optional\n 'content_type' => 'application/octet-stream',\n );\n\n// $downloader = new Download;\n// $downloader->send($t, $options);\n Pi::service('file')->download($source,$options);\n }", "title": "" }, { "docid": "498f80e8db6cffb55aad372b0a327be6", "score": "0.5764161", "text": "function su_csv_export() {\n\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\treturn false;\n\t\t}\n\t\t// Check if we are in WP-Admin\n\t\tif ( ! is_admin() ) {\n\t\t\treturn false;\n\t\t}\n\t\t// Nonce Check\n\t\t$nonce = isset( $_GET['_wpnonce'] ) ? $_GET['_wpnonce'] : '';\n\t\tif ( ! wp_verify_nonce( $nonce, 'download_csv' ) ) {\n\t\t\tdie( 'Security check error' );\n\t\t}\n\n\t\tob_start();\n\t\t$domain = $_SERVER['SERVER_NAME'];\n\n\n\t\t$data_rows = array();\n\t\tglobal $wpdb;\n\t\tif ( $_GET['type'] == \"ttr\" ) {\n\t\t\t$sql = 'SELECT meta_id,' . $wpdb->prefix . 'postmeta.post_id,meta_key,meta_value,' . $wpdb->prefix . 'posts.post_title AS curtitle FROM ' . $wpdb->prefix . 'postmeta INNER JOIN ' . $wpdb->prefix . 'posts ON ' . $wpdb->prefix . 'posts.ID = ' . $wpdb->prefix . 'postmeta.post_id WHERE meta_key = \\'_su_title\\' AND post_status = \\'publish\\'';\n\t\t\t$filename = 'titles-' . $domain . '-' . time() . '.csv';\n\t\t\t$header_row = array(\n\t\t\t\t'ID',\n\t\t\t\t'POST ID',\n\t\t\t\t'Title',\n\t\t\t\t'SUP Meta Key',\n\t\t\t\t'SUP Value'\n\t\t\t);\n\t\t\t$dataout = $wpdb->get_results( $sql, 'ARRAY_A' );\n\t\t\tforeach ( $dataout as $dataout1 ) {\n\t\t\t\t$row = array(\n\t\t\t\t\t$dataout1['meta_id'],\n\t\t\t\t\t$dataout1['post_id'],\n\t\t\t\t\t$dataout1['curtitle'],\n\t\t\t\t\t@$dataout1['meta_key'],\n\t\t\t\t\t$dataout1['meta_value']\n\t\t\t\t);\n\t\t\t\t$data_rows[] = $row;\n\t\t\t}\n\t\t} elseif ( $_GET['type'] == \"metadescr\" ) {\n\t\t\t$sql = 'SELECT meta_id,' . $wpdb->prefix . 'postmeta.post_id,meta_key,meta_value,' . $wpdb->prefix . 'posts.post_title AS curtitle FROM ' . $wpdb->prefix . 'postmeta INNER JOIN ' . $wpdb->prefix . 'posts ON ' . $wpdb->prefix . 'posts.ID = ' . $wpdb->prefix . 'postmeta.post_id WHERE meta_key = \\'_su_description\\' AND post_status = \\'publish\\'';\n\t\t\t$filename = 'meta-' . $domain . '-' . time() . '.csv';\n\t\t\t$header_row = array(\n\t\t\t\t'ID',\n\t\t\t\t'POST ID',\n\t\t\t\t'Title',\n\t\t\t\t'SUP Meta Key',\n\t\t\t\t'SUP Value'\n\t\t\t);\n\t\t\t$dataout = $wpdb->get_results( $sql, 'ARRAY_A' );\n\t\t\tforeach ( $dataout as $dataout1 ) {\n\t\t\t\t$row = array(\n\t\t\t\t\t$dataout1['meta_id'],\n\t\t\t\t\t$dataout1['post_id'],\n\t\t\t\t\t$dataout1['curtitle'],\n\t\t\t\t\t@$dataout1['meta_key'],\n\t\t\t\t\t$dataout1['meta_value']\n\t\t\t\t);\n\t\t\t\t$data_rows[] = $row;\n\t\t\t}\n\t\t} elseif ( $_GET['type'] == \"og\" ) {\n\t\t\t$sql = 'SELECT meta_id,' . $wpdb->prefix . 'postmeta.post_id,meta_key,meta_value,' . $wpdb->prefix . 'posts.post_title AS curtitle FROM ' . $wpdb->prefix . 'postmeta INNER JOIN ' . $wpdb->prefix . 'posts ON ' . $wpdb->prefix . 'posts.ID = ' . $wpdb->prefix . 'postmeta.post_id WHERE meta_key Like \\'%_su_og%\\' AND post_status = \\'publish\\'';\n\t\t\t$filename = 'opengraph-' . $domain . '-' . time() . '.csv';\n\t\t\t$header_row = array(\n\t\t\t\t'ID',\n\t\t\t\t'POST ID',\n\t\t\t\t'Title',\n\t\t\t\t'SUP Meta Key',\n\t\t\t\t'SUP Value'\n\t\t\t);\n\t\t\t$dataout = $wpdb->get_results( $sql, 'ARRAY_A' );\n\t\t\tforeach ( $dataout as $dataout1 ) {\n\t\t\t\t$row = array(\n\t\t\t\t\t$dataout1['meta_id'],\n\t\t\t\t\t$dataout1['post_id'],\n\t\t\t\t\t$dataout1['curtitle'],\n\t\t\t\t\t@$dataout1['meta_key'],\n\t\t\t\t\t$dataout1['meta_value']\n\t\t\t\t);\n\t\t\t\t$data_rows[] = $row;\n\t\t\t}\n\t\t} elseif ( $_GET['type'] == \"mrte\" ) {\n\t\t\t$sql = 'SELECT meta_id,' . $wpdb->prefix . 'postmeta.post_id,meta_key,meta_value,' . $wpdb->prefix . 'posts.post_title AS curtitle FROM ' . $wpdb->prefix . 'postmeta INNER JOIN ' . $wpdb->prefix . 'posts ON ' . $wpdb->prefix . 'posts.ID = ' . $wpdb->prefix . 'postmeta.post_id WHERE meta_key LIKE \\'%_su_meta_robots%\\' AND post_status = \\'publish\\'';\n\t\t\t$filename = 'metarobots-' . $domain . '-' . time() . '.csv';\n\t\t\t$header_row = array(\n\t\t\t\t'ID',\n\t\t\t\t'POST ID',\n\t\t\t\t'Title',\n\t\t\t\t'WP Meta Key',\n\t\t\t\t'SUP Value'\n\t\t\t);\n\t\t\t$dataout = $wpdb->get_results( $sql, 'ARRAY_A' );\n\t\t\tforeach ( $dataout as $dataout1 ) {\n\t\t\t\t$row = array(\n\t\t\t\t\t$dataout1['meta_id'],\n\t\t\t\t\t$dataout1['post_id'],\n\t\t\t\t\t$dataout1['curtitle'],\n\t\t\t\t\t@$dataout1['meta_key'],\n\t\t\t\t\t$dataout1['meta_value']\n\t\t\t\t);\n\t\t\t\t$data_rows[] = $row;\n\t\t\t}\n\t\t} elseif ( $_GET['type'] == \"altattrib\" ) {\n\t\t\t$sql = 'SELECT meta_id,' . $wpdb->prefix . 'postmeta.post_id,meta_key,meta_value,' . $wpdb->prefix . 'posts.post_title AS curtitle FROM ' . $wpdb->prefix . 'postmeta INNER JOIN ' . $wpdb->prefix . 'posts ON ' . $wpdb->prefix . 'posts.ID = ' . $wpdb->prefix . 'postmeta.post_id WHERE meta_key = \\'_wp_attachment_image_alt\\'';\n\t\t\t$filename = 'altattrib-' . $domain . '-' . time() . '.csv';\n\t\t\t$header_row = array(\n\t\t\t\t'ID',\n\t\t\t\t'POST ID',\n\t\t\t\t'Title',\n\t\t\t\t'SUP Meta Key',\n\t\t\t\t'SUP Value'\n\t\t\t);\n\t\t\t$dataout = $wpdb->get_results( $sql, 'ARRAY_A' );\n\t\t\tforeach ( $dataout as $dataout1 ) {\n\t\t\t\t$row = array(\n\t\t\t\t\t$dataout1['meta_id'],\n\t\t\t\t\t$dataout1['post_id'],\n\t\t\t\t\t$dataout1['curtitle'],\n\t\t\t\t\t@$dataout1['meta_key'],\n\t\t\t\t\t$dataout1['meta_value']\n\t\t\t\t);\n\t\t\t\t$data_rows[] = $row;\n\t\t\t}\n\t\t}\n\n\n\t\t$fh = @fopen( 'php://output', 'w' );\n\t\tfprintf( $fh, chr( 0xEF ) . chr( 0xBB ) . chr( 0xBF ) );\n\t\theader( 'Cache-Control: must-revalidate, post-check=0, pre-check=0' );\n\t\theader( 'Content-Description: File Transfer' );\n\t\theader( 'Content-type: text/csv' );\n\t\theader( \"Content-Disposition: attachment; filename={$filename}\" );\n\t\theader( 'Expires: 0' );\n\t\theader( 'Pragma: public' );\n\t\tfputcsv( $fh, $header_row );\n\t\tforeach ( $data_rows as $data_row ) {\n\t\t\tfputcsv( $fh, $data_row );\n\t\t}\n\t\tfclose( $fh );\n\n\t\tob_end_flush();\n\n\t\tdie();\n\t}", "title": "" }, { "docid": "13f3f979129c7a08cddd68a0aee1507d", "score": "0.57385963", "text": "public function exportToCSV(){\n\n\t\t//Get the post data and turn it back into an array\n\t\t$export = $_POST['data'];\n\t\t$export = unserialize($export);\n\n\t\t//Set the headers to download\n\t\theader(\"Content-type: text/csv\");\n\t\theader(\"Content-Disposition: attachment; filename=entityextractionexport.csv\");\n\t\theader(\"Pragma: no-cache\");\n\t\theader(\"Expires: 0\");\n\n\n\t\t//Create the CSV!\n\t\t$fp = fopen('php://output', 'w');\n\n\t\t$headRow = array_keys($export[0]);\n\t\tfputcsv($fp, $headRow);\n\n\t\tforeach($export as $record){\n\t\t\tfputcsv($fp, $record);\n\t\t}\n\n\t\tfclose($fp);\n\t}", "title": "" }, { "docid": "e5ddeca0220b9e7b13a86b05b32b9a19", "score": "0.56929886", "text": "abstract public function export($dataType = '');", "title": "" }, { "docid": "6a3acf6c2d9cec9887847c6539f497f2", "score": "0.56867397", "text": "abstract protected function export_format($contents);", "title": "" }, { "docid": "576b10626dbfb92bf4e7d702413d534e", "score": "0.5665285", "text": "public function doExport();", "title": "" }, { "docid": "143a2f727253dea75efab1f048b2f109", "score": "0.56560963", "text": "function ExportData() {\n\t\tglobal $logistik_perm_dana;\n\t\t$sCsvStr = \"\";\n\n\t\t// Default export style\n\t\t$sExportStyle = \"h\";\n\n\t\t// Load recordset\n\t\t$rs = $this->LoadRecordset();\n\t\t$this->lTotalRecs = $rs->RecordCount();\n\t\t$this->lStartRec = 1;\n\n\t\t// Export all\n\t\tif ($logistik_perm_dana->ExportAll) {\n\t\t\t$this->lStopRec = $this->lTotalRecs;\n\t\t} else { // Export 1 page only\n\t\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t\t// Set the last record to display\n\t\t\tif ($this->lDisplayRecs < 0) {\n\t\t\t\t$this->lStopRec = $this->lTotalRecs;\n\t\t\t} else {\n\t\t\t\t$this->lStopRec = $this->lStartRec + $this->lDisplayRecs - 1;\n\t\t\t}\n\t\t}\n\t\tif ($logistik_perm_dana->Export == \"xml\") {\n\t\t\t$XmlDoc = new cXMLDocument();\n\t\t} else {\n\t\t\techo ew_ExportHeader($logistik_perm_dana->Export);\n\n\t\t\t// Horizontal format, write header\n\t\t\tif ($sExportStyle <> \"v\" || $logistik_perm_dana->Export == \"csv\") {\n\t\t\t\t$sExportStr = \"\";\n\t\t\t\tew_ExportAddValue($sExportStr, 'kodepermohonan', $logistik_perm_dana->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'tanggal', $logistik_perm_dana->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'notes', $logistik_perm_dana->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'withtax', $logistik_perm_dana->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'receive', $logistik_perm_dana->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'receiveby', $logistik_perm_dana->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'receivedate', $logistik_perm_dana->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'createby', $logistik_perm_dana->Export);\n\t\t\t\tew_ExportAddValue($sExportStr, 'dirut', $logistik_perm_dana->Export);\n\t\t\t\techo ew_ExportLine($sExportStr, $logistik_perm_dana->Export);\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$this->lRecCnt = $this->lStartRec - 1;\n\t\tif (!$rs->EOF) {\n\t\t\t$rs->MoveFirst();\n\t\t\t$rs->Move($this->lStartRec - 1);\n\t\t}\n\t\twhile (!$rs->EOF && $this->lRecCnt < $this->lStopRec) {\n\t\t\t$this->lRecCnt++;\n\t\t\tif (intval($this->lRecCnt) >= intval($this->lStartRec)) {\n\t\t\t\t$this->LoadRowValues($rs);\n\n\t\t\t\t// Render row for display\n\t\t\t\t$logistik_perm_dana->RowType = EW_ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->RenderRow();\n\t\t\t\tif ($logistik_perm_dana->Export == \"xml\") {\n\t\t\t\t\t$XmlDoc->BeginRow();\n\t\t\t\t\t$XmlDoc->AddField('kodepermohonan', $logistik_perm_dana->kodepermohonan->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('tanggal', $logistik_perm_dana->tanggal->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('notes', $logistik_perm_dana->notes->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('withtax', $logistik_perm_dana->withtax->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('receive', $logistik_perm_dana->receive->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('receiveby', $logistik_perm_dana->receiveby->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('receivedate', $logistik_perm_dana->receivedate->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('createby', $logistik_perm_dana->createby->CurrentValue);\n\t\t\t\t\t$XmlDoc->AddField('dirut', $logistik_perm_dana->dirut->CurrentValue);\n\t\t\t\t\t$XmlDoc->EndRow();\n\t\t\t\t} else {\n\t\t\t\t\tif ($sExportStyle == \"v\" && $logistik_perm_dana->Export <> \"csv\") { // Vertical format\n\t\t\t\t\t\techo ew_ExportField('kodepermohonan', $logistik_perm_dana->kodepermohonan->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\techo ew_ExportField('tanggal', $logistik_perm_dana->tanggal->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\techo ew_ExportField('notes', $logistik_perm_dana->notes->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\techo ew_ExportField('withtax', $logistik_perm_dana->withtax->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\techo ew_ExportField('receive', $logistik_perm_dana->receive->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\techo ew_ExportField('receiveby', $logistik_perm_dana->receiveby->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\techo ew_ExportField('receivedate', $logistik_perm_dana->receivedate->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\techo ew_ExportField('createby', $logistik_perm_dana->createby->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\techo ew_ExportField('dirut', $logistik_perm_dana->dirut->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t}\telse { // Horizontal format\n\t\t\t\t\t\t$sExportStr = \"\";\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $logistik_perm_dana->kodepermohonan->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $logistik_perm_dana->tanggal->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $logistik_perm_dana->notes->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $logistik_perm_dana->withtax->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $logistik_perm_dana->receive->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $logistik_perm_dana->receiveby->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $logistik_perm_dana->receivedate->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $logistik_perm_dana->createby->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\tew_ExportAddValue($sExportStr, $logistik_perm_dana->dirut->ExportValue($logistik_perm_dana->Export, $logistik_perm_dana->ExportOriginalValue), $logistik_perm_dana->Export);\n\t\t\t\t\t\techo ew_ExportLine($sExportStr, $logistik_perm_dana->Export);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$rs->MoveNext();\n\t\t}\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\t\tif ($logistik_perm_dana->Export == \"xml\") {\n\t\t\theader(\"Content-Type: text/xml\");\n\t\t\techo $XmlDoc->XML();\n\t\t} else {\n\t\t\techo ew_ExportFooter($logistik_perm_dana->Export);\n\t\t}\n\t}", "title": "" }, { "docid": "295058c3fcadd9baf977c2099015f5f1", "score": "0.5630482", "text": "function export()\n {\n ##import Comment model for processing\n App::import(\"Model\", \"Comment\");\n $this->Comment = & new Comment();\n // Stop Cake from displaying action's execution time\n // Configure::write('debug',2);\n // Find fields needed without recursing through associated models\n $data = $this->Comment->find('all',array('fields' => array('id','comment','rsvp','created'),\n 'order' => \"Comment.id ASC\",\n 'contain' => false\n ));\n // Define column headers for CSV file, in same array format as the data itself\n $headers = array(\n 'Comment'=>array(\n 'id' => 'ID',\n 'created' => 'Date',\n 'comment' => 'Comment',\n 'rsvp' => 'RSVP'\n )\n );\n\n // Add headers to start of data array\n array_unshift($data,$headers);\n // Make the data available to the view (and the resulting CSV file)\n $this->set(compact('data'));\n }", "title": "" }, { "docid": "999d1c80242b3b936bd554e7c2cd1ba5", "score": "0.56211865", "text": "public function exportCSV($dataType)\n {\n header('Content-type: text/csv');\n header('Content-Disposition: attachment; filename=books.csv');\n header('Pragma: no-cache');\n header('Expires: 0');\n $file = fopen('php://output', 'w');\n\n if ($dataType === 'titles&authors') {\n $books = Book::getOrderedBy('titles', 0);\n $columns = array('Title', 'Author');\n fputcsv($file, $columns);\n foreach ($books as $book) {\n fputcsv($file, array($book->title, $book->author));\n }\n } elseif ($dataType === 'titles') {\n $books = Book::getOrderedBy('titles', 0);\n $columns = array('Title');\n fputcsv($file, $columns);\n foreach ($books as $book) {\n fputcsv($file, array($book->title));\n }\n } elseif ($dataType === 'authors'){\n $books = Book::getOrderedBy('authors', 0);\n $columns = array('Author');\n fputcsv($file, $columns);\n foreach ($books as $book) {\n fputcsv($file, array($book->author));\n }\n } else {\n return redirect('books/export');\n }\n\n fclose($file);\n exit();\n }", "title": "" }, { "docid": "2c50fa52a31369c5cac7bc6d7733460a", "score": "0.56048244", "text": "public function export()\n {\n\n $schema_insert = '';\n $out = '';\n\n if ($this->headerColumns)\n {\n //START create header row\n foreach($this->headerColumns as $column_number => $column) :\n $l = $this->enclosed . str_replace($this->enclosed, $this->escaped . $this->enclosed,\n stripslashes($column)) . $this->enclosed;\n $schema_insert .= $l;\n $schema_insert .= $this->separator;\n endforeach;\n //END create header row\n\n $out .= trim(substr($schema_insert, 0, -1));\n $out .= $this->terminator;\n }\n\n if ($this->rows)\n {\n //START build rows\n foreach($this->rows as $row) :\n foreach($row as $column => $value) :\n\n $schema_insert = '';\n\n if (isset($value))\n {\n\n if ($this->enclosed == '')\n {\n $schema_insert .= $value;\n }\n else\n {\n $schema_insert .= $this->enclosed .\n\t\t\t\t\t str_replace($this->enclosed, $this->escaped . $this->enclosed, $value) .\n $this->enclosed;\n }\n }\n else\n {\n $schema_insert .= '';\n }\n\n if ($column < count($row) - 1)\n {\n $schema_insert .= $this->separator;\n }\n\n $out .= $schema_insert;\n\n endforeach;\n\n $out .= $this->terminator;\n\n endforeach;\n //END build rows\n }\n\n header(\"Cache-Control: must-revalidate, post-check=0, pre-check=0\");\n header(\"Content-Length: \" . strlen($out));\n header(\"Content-type: \" . $this->mimeType.\"; charset=utf-8\");\n header(\"Content-Disposition: attachment; filename=\" . $this->filename);\n echo $out;\n\n }", "title": "" }, { "docid": "4e24918cd70839c334940ed8c379376e", "score": "0.56012064", "text": "public function export_report_all_format($file_type, $filename, $html)\n { \n $date=date('d/M/Y_H:i:s ');\n \n if($file_type == 'pdf')\n {\n \n App::import('Vendor', 'dompdf', array('file' => 'dompdf' . DS . 'dompdf_config.inc.php'));\n $this->dompdf = new DOMPDF(); \n $papersize = \"legal\";\n $orientation = 'landscape'; \n $this->dompdf->load_html($html);\n $this->dompdf->set_paper($papersize, $orientation); \n $this->dompdf->render();\n $this->dompdf->stream(\"$filename.pdf\");\n $this->dompdf->output();\n die();\n \n } \n else if($file_type == 'xls')\n { \n $file = $filename.\".xls\";\n header('Content-Type: text/html');\n header(\"Content-type: application/x-msexcel\"); //tried adding charset='utf-8' into header\n header(\"Content-Disposition: attachment; filename=$file\");\n echo $html;\n \n }\n else if($file_type == 'doc')\n { \n $file = $filename.\".doc\";\n header(\"Content-type: application/vnd.ms-word\");\n header(\"Content-Disposition: attachment;Filename=Items.doc\");\n echo $html;\n \n }\n\t\t\n }", "title": "" }, { "docid": "ca3cc291aa8b92067115021361c7fd24", "score": "0.55880386", "text": "public function export();", "title": "" }, { "docid": "c4c60ae9f3fd58245b15e13b0fc2a3e4", "score": "0.5572097", "text": "public static function getContentType(){\n\t\treturn 'text/csv';\n\t}", "title": "" }, { "docid": "a99f7ffde94e8f87547e6de2bb68678d", "score": "0.55631334", "text": "public function exportFile($type){\n\n $responsaveis = Responsavel::get()->toArray();\n\n\n //serve para criar uma nova folha dentro de um arquivo recém criado\n return \\Excel::create('relatorio_responsavel', function($excel) use ($responsaveis) {\n\n $excel->sheet('sheet name', function($sheet) use ($responsaveis)\n\n\n\n {\n\n $sheet->fromArray($responsaveis);\n\n });\n\n })->download($type);\n\n }", "title": "" }, { "docid": "e683269896572be5e8ba10d1e8c677c1", "score": "0.55597484", "text": "private function runExport()\n\t{\n\t\t//get ObjectController\n\t\t$objectController = ObjectController::create();\n\n\t\t//walk through all ExportDestinations\n\t\tforeach($this->exportDestinations as $exportDestinationObj)\n\t\t{\n\t\n\t\t\t//set up exportDestination\n\t\t\t$exportDestinationClass = __NAMESPACE__.\"\\\\\".$exportDestinationObj->getClass();\n\t\t\t$exportDestination = new $exportDestinationClass();\n\t\t\t$exportDestination->setUp($exportDestinationObj, $this->exportVariables);\n\t\t\t\n\t\n\t\t\t//walk through all ExportSources\n\t\t\tforeach($this->exportSources as $exportSource)\n\t\t\t{\n\t\t\t\t//get objects to export\n\t\t\t\t$objects = Array();\n\t\t\t\t$exportSourceFieldname = $exportSource->getFieldname();\n\t\t\t\t$exportSourceFieldvalue = $exportSource->getFieldvalue();\n\t\t\t\t$exportSourceObjectTypes = array($exportSource->getObjectType());\n\t\t\t\t$exportSourceStatusActive = $exportSource->getStatus();\n\t\t\t\tif($exportSourceFieldname == null || $exportSourceFieldvalue == null )\n\t\t\t\t{\n\t\t\t\t\t$objects = $objectController->getObjectsByType($exportSourceObjectTypes[0], \"\", \"ASC\", $exportSourceStatusActive, 0, 0, \"yourCMDB-exporter\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$objects = $objectController->getObjectsByField($exportSourceFieldname, \n\t\t\t\t\t\t\t\t\t\t\t$exportSourceFieldvalue, \n\t\t\t\t\t\t\t\t\t\t\t$exportSourceObjectTypes, \n\t\t\t\t\t\t\t\t\t\t\t$exportSourceStatusActive,\n\t\t\t\t\t\t\t\t\t\t\t0,0, \"yourCMDB-exporter\");\n\t\t\t\t}\n\t\n\t\t\t\t//export objects\n\t\t\t\tforeach($objects as $object)\n\t\t\t\t{\n\t\t\t\t\t$exportDestination->addObject($object);\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t//finish export\n\t\t\t$exportDestination->finishExport();\n\t\t}\n\t}", "title": "" }, { "docid": "42d5769303314bc788a604b89bf8c462", "score": "0.55555713", "text": "function ExportData() {\n\t\tglobal $sponsored_student;\n\t\t$utf8 = FALSE;\n\t\t$bSelectLimit = EW_SELECT_LIMIT;\n\n\t\t// Load recordset\n\t\tif ($bSelectLimit) {\n\t\t\t$this->lTotalRecs = $sponsored_student->SelectRecordCount();\n\t\t} else {\n\t\t\tif ($rs = $this->LoadRecordset())\n\t\t\t\t$this->lTotalRecs = $rs->RecordCount();\n\t\t}\n\t\t$this->lStartRec = 1;\n\n\t\t// Export all\n\t\tif ($sponsored_student->ExportAll) {\n\t\t\t$this->lDisplayRecs = $this->lTotalRecs;\n\t\t\t$this->lStopRec = $this->lTotalRecs;\n\t\t} else { // Export one page only\n\t\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t\t// Set the last record to display\n\t\t\tif ($this->lDisplayRecs < 0) {\n\t\t\t\t$this->lStopRec = $this->lTotalRecs;\n\t\t\t} else {\n\t\t\t\t$this->lStopRec = $this->lStartRec + $this->lDisplayRecs - 1;\n\t\t\t}\n\t\t}\n\t\tif ($bSelectLimit)\n\t\t\t$rs = $this->LoadRecordset($this->lStartRec-1, $this->lDisplayRecs);\n\t\tif (!$rs) {\n\t\t\theader(\"Content-Type:\"); // Remove header\n\t\t\theader(\"Content-Disposition:\");\n\t\t\t$this->ShowMessage();\n\t\t\treturn;\n\t\t}\n\t\tif ($sponsored_student->Export == \"xml\") {\n\t\t\t$XmlDoc = new cXMLDocument(EW_XML_ENCODING);\n\t\t\t$XmlDoc->AddRoot();\n\t\t} else {\n\t\t\t$ExportDoc = new cExportDocument($sponsored_student, \"h\");\n\t\t\t$ExportDoc->ExportHeader();\n\t\t\tif ($ExportDoc->Horizontal) { // Horizontal format, write header\n\t\t\t\t$ExportDoc->BeginExportRow();\n\t\t\t\t$ExportDoc->ExportCaption($sponsored_student->sponsored_student_id);\n\t\t\t\t$ExportDoc->ExportCaption($sponsored_student->student_firstname);\n\t\t\t\t$ExportDoc->ExportCaption($sponsored_student->student_middlename);\n\t\t\t\t$ExportDoc->ExportCaption($sponsored_student->student_lastname);\n\t\t\t\t$ExportDoc->ExportCaption($sponsored_student->student_applicant_student_applicant_id);\n\t\t\t\t$ExportDoc->ExportCaption($sponsored_student->student_resident_programarea_id);\n\t\t\t\t$ExportDoc->EndExportRow();\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$this->lRecCnt = $this->lStartRec - 1;\n\t\tif (!$rs->EOF) {\n\t\t\t$rs->MoveFirst();\n\t\t\tif (!$bSelectLimit && $this->lStartRec > 1)\n\t\t\t\t$rs->Move($this->lStartRec - 1);\n\t\t}\n\t\twhile (!$rs->EOF && $this->lRecCnt < $this->lStopRec) {\n\t\t\t$this->lRecCnt++;\n\t\t\tif (intval($this->lRecCnt) >= intval($this->lStartRec)) {\n\t\t\t\t$this->LoadRowValues($rs);\n\n\t\t\t\t// Render row\n\t\t\t\t$sponsored_student->CssClass = \"\";\n\t\t\t\t$sponsored_student->CssStyle = \"\";\n\t\t\t\t$sponsored_student->RowType = EW_ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->RenderRow();\n\t\t\t\tif ($sponsored_student->Export == \"xml\") {\n\t\t\t\t\t$XmlDoc->AddRow();\n\t\t\t\t\t$XmlDoc->AddField('sponsored_student_id', $sponsored_student->sponsored_student_id->ExportValue($sponsored_student->Export, $sponsored_student->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('student_firstname', $sponsored_student->student_firstname->ExportValue($sponsored_student->Export, $sponsored_student->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('student_middlename', $sponsored_student->student_middlename->ExportValue($sponsored_student->Export, $sponsored_student->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('student_lastname', $sponsored_student->student_lastname->ExportValue($sponsored_student->Export, $sponsored_student->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('student_applicant_student_applicant_id', $sponsored_student->student_applicant_student_applicant_id->ExportValue($sponsored_student->Export, $sponsored_student->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('student_resident_programarea_id', $sponsored_student->student_resident_programarea_id->ExportValue($sponsored_student->Export, $sponsored_student->ExportOriginalValue));\n\t\t\t\t} else {\n\t\t\t\t\t$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled\n\t\t\t\t\t$ExportDoc->ExportField($sponsored_student->sponsored_student_id);\n\t\t\t\t\t$ExportDoc->ExportField($sponsored_student->student_firstname);\n\t\t\t\t\t$ExportDoc->ExportField($sponsored_student->student_middlename);\n\t\t\t\t\t$ExportDoc->ExportField($sponsored_student->student_lastname);\n\t\t\t\t\t$ExportDoc->ExportField($sponsored_student->student_applicant_student_applicant_id);\n\t\t\t\t\t$ExportDoc->ExportField($sponsored_student->student_resident_programarea_id);\n\t\t\t\t\t$ExportDoc->EndExportRow();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\tif ($sponsored_student->Export <> \"xml\")\n\t\t\t$ExportDoc->ExportFooter();\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\n\t\t// Clean output buffer\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\n\t\t\tob_end_clean();\n\n\t\t// Write BOM if utf-8\n\t\tif ($utf8 && !in_array($sponsored_student->Export, array(\"email\", \"xml\")))\n\t\t\techo \"\\xEF\\xBB\\xBF\";\n\n\t\t// Write debug message if enabled\n\t\tif (EW_DEBUG_ENABLED)\n\t\t\techo ew_DebugMsg();\n\n\t\t// Output data\n\t\tif ($sponsored_student->Export == \"xml\") {\n\t\t\theader(\"Content-Type: text/xml\");\n\t\t\techo $XmlDoc->XML();\n\t\t} elseif ($sponsored_student->Export == \"email\") {\n\t\t\t$this->ExportEmail($ExportDoc->Text);\n\t\t\t$this->Page_Terminate($sponsored_student->ExportReturnUrl());\n\t\t} else {\n\t\t\techo $ExportDoc->Text;\n\t\t}\n\t}", "title": "" }, { "docid": "efb65cc5a1ef32dd1b48e58c8a2bdd4b", "score": "0.55552274", "text": "public function exportDataAction() {\n if ($this->getStoreManager()->getConnection()->getSchemaManager()->tablesExist(array('persona'))) {\n $this->getStore()\n ->getExporter()\n ->setEntities(array(\n '\\examples\\exampleBundle\\Model\\Entity\\Persona'\n ))\n ->save(__DIR__ . '/exportExample.php');\n\n return file_get_contents(__DIR__ . '/exportExample.php');\n }\n \n }", "title": "" }, { "docid": "16ca307d5e4525444ec8a806b0bbcc69", "score": "0.5554854", "text": "function ExportData()\n {\n global $historial_pagos;\n $utf8 = (strtolower(EW_CHARSET) == \"utf-8\");\n $bSelectLimit = FALSE;\n\n // Load recordset\n if ($bSelectLimit) {\n $this->TotalRecs = $historial_pagos->SelectRecordCount();\n } else {\n if ($rs = $this->LoadRecordset())\n $this->TotalRecs = $rs->RecordCount();\n }\n $this->StartRec = 1;\n $this->SetUpStartRec(); // Set up start record position\n\n // Set the last record to display\n if ($this->DisplayRecs < 0) {\n $this->StopRec = $this->TotalRecs;\n } else {\n $this->StopRec = $this->StartRec + $this->DisplayRecs - 1;\n }\n if (!$rs) {\n header(\"Content-Type:\"); // Remove header\n header(\"Content-Disposition:\");\n $this->ShowMessage();\n return;\n }\n if ($historial_pagos->Export == \"xml\") {\n $XmlDoc = new cXMLDocument(EW_XML_ENCODING);\n } else {\n $ExportDoc = new cExportDocument($historial_pagos, \"v\");\n }\n $ParentTable = \"\";\n if ($bSelectLimit) {\n $StartRec = 1;\n $StopRec = $this->DisplayRecs;\n } else {\n $StartRec = $this->StartRec;\n $StopRec = $this->StopRec;\n }\n if ($historial_pagos->Export == \"xml\") {\n $historial_pagos->ExportXmlDocument($XmlDoc, ($ParentTable <> \"\"), $rs, $StartRec, $StopRec, \"view\");\n } else {\n $sHeader = $this->PageHeader;\n $this->Page_DataRendering($sHeader);\n $ExportDoc->Text .= $sHeader;\n $historial_pagos->ExportDocument($ExportDoc, $rs, $StartRec, $StopRec, \"view\");\n $sFooter = $this->PageFooter;\n $this->Page_DataRendered($sFooter);\n $ExportDoc->Text .= $sFooter;\n }\n\n // Close recordset\n $rs->Close();\n\n // Export header and footer\n if ($historial_pagos->Export <> \"xml\") {\n $ExportDoc->ExportHeaderAndFooter();\n }\n\n // Clean output buffer\n if (!EW_DEBUG_ENABLED && ob_get_length())\n ob_end_clean();\n\n // Write BOM if utf-8\n if ($utf8 && !in_array($historial_pagos->Export, array(\"email\", \"xml\")))\n echo \"\\xEF\\xBB\\xBF\";\n\n // Write debug message if enabled\n if (EW_DEBUG_ENABLED)\n echo ew_DebugMsg();\n\n // Output data\n if ($historial_pagos->Export == \"xml\") {\n header(\"Content-Type: text/xml\");\n echo $XmlDoc->XML();\n } elseif ($historial_pagos->Export == \"email\") {\n $this->ExportEmail($ExportDoc->Text);\n $this->Page_Terminate($historial_pagos->ExportReturnUrl());\n } elseif ($historial_pagos->Export == \"pdf\") {\n $this->ExportPDF($ExportDoc->Text);\n } else {\n echo $ExportDoc->Text;\n }\n }", "title": "" }, { "docid": "cd36e5215634e3eb688a3860acce44db", "score": "0.55489475", "text": "public function export() {\n\t\treturn $this->_collector->export();\n\t}", "title": "" }, { "docid": "c2d523bdcc46d09c6a31677bf975c549", "score": "0.5540673", "text": "public function contentExport($entity_type_id, $entity_id, $options = ['file' => NULL]) {\n $export = $this->defaultContentExporter->exportContent($entity_type_id, $entity_id);\n\n if ($file = $options['file']) {\n file_put_contents($file, $export);\n }\n else {\n $this->output()->write($export);\n }\n }", "title": "" }, { "docid": "844b8606fe99736bc3beacb7b3b6d6a6", "score": "0.5539145", "text": "function export() {\r\n $this->rdAuth->noStudentsAllowed();\r\n $courseId = $this->rdAuth->courseId;\r\n $this->pageTitle = $this->sysContainer->getCourseName($courseId).' > Export Evaluation Results';\r\n //do stuff\r\n if (isset($this->params['form']) && !empty($this->params['form'])) {\r\n $this->autoRender = false;\r\n $fileContent = $this->ExportHelper->createCSV($this->params);\r\n $fileName = isset($this->params['form']['file_name']) && empty($this->params['form']['file_name']) ? $this->params['form']['file_name']:date('m.d.y');\r\n\r\n header('Content-Type: application/csv');\r\n header('Content-Disposition: attachment; filename=' . $fileName . '.csv');\r\n echo $fileContent;\r\n } else {\r\n $this->set('file_name',date('m.d.y'));\r\n }\r\n }", "title": "" }, { "docid": "fa526bc7ce1542e8fc00fd38ff088b62", "score": "0.5536588", "text": "public function export($type) \n\t{\n\t\t$products = Property::get()->toArray();\n \t$PropertyImages = PropertyImages::get()->toArray();\n \t$PropertyLinks=PropertyLinks::get()->toArray();\n \treturn Excel::create('propertyData', function($excel) use ($products,$PropertyImages,$PropertyLinks) {\n\t\t\t$excel->sheet('property', function($sheet) use ($products,$PropertyImages,$PropertyLinks){\n \t\t$sheet->fromArray($products);\n\t\t\t\t$sheet->fromArray($PropertyImages);\n\t\t\t\t$sheet->fromArray($PropertyLinks);\n \t}); \n\t\t})->download($type);\n\t}", "title": "" }, { "docid": "f7adfe2cbbc1dc29eecb16efa786371c", "score": "0.5531023", "text": "public function export() \n {\n //return (new EntreprisesExport)->download('entreprises.xlsx', \\Maatwebsite\\Excel\\Excel::XLSX, ['Content-Type' => 'text/xlsx']);\n return (new EntreprisesExport)->forYear(2020)->download('entreprises.xlsx');\n }", "title": "" }, { "docid": "257ea624bbbe1146d02d201dff714009", "score": "0.5522494", "text": "function exportCollection()\n {\n // get user\n $userID = $this->session->userdata('UserID');\n\n // check that user is logged in\n if($userID <= 0)\n {\n $this->returnError($this->lang->line('error_logged_out'),\"/login\",\"Login\");\n return;\n }\n\n // get collection data\n $this->load->model('Collection');\n $data = $this->Collection->getRawCollection($userID);\n\n // convert to csv\n $this->load->dbutil();\n $csv_data = $this->dbutil->csv_from_result($data);\n\n // create file\n $this->load->helper('download');\n force_download('gwl_export.csv', $csv_data);\n }", "title": "" }, { "docid": "0182c876a016984dc06168c8766fe79b", "score": "0.5519778", "text": "public function actionExport()\n\t{\n \n $re= ServiceUser::model()->with('priceAdmins')->findAll();\n // echo \"<pre>\";print_r($re);die;\n foreach($re as $res)\n {\n \t \n $compName=$res['company_name'];\n $email =$res['email'];\n $city =$res['city'];\n $phone =$res['phone'];\n $zip =$res['zipcode'];\n \n \n $company[]=array('Company Name'=>$compName,'Email Address'=>$email,'City'=>$city,'Phone'=>$phone,'Zip'=>$zip,);\n\n\n } //die;\t//echo \"<pre>\";print_r($val);die;\n \n $filename=\"company.csv\";\n $csv = new ECSVExport($company);\n\t\t$content = $csv->toCSV(); \n\n\n\t\t \n\t\tYii::app()->getRequest()->sendFile($filename, $content, \"text/csv\", false);\n\t\texit();\n\t \n \n\n\t}", "title": "" }, { "docid": "506a02fb927b0e502aa5ab5da86775d0", "score": "0.5491414", "text": "function csvDownload($contentArray,$filename) {\n\theader('Content-Description: File Transfer');\n\theader('Content-Type: text/csv; charset=utf-8');\n\theader('Content-Disposition: attachment;filename=' . $filename);\n\t//ob_clean();\n\t$fp = fopen('php://output', 'w');\n fputcsv($fp, array_keys($contentArray[0]));\t\n foreach ($contentArray as $fields) {\n $fields = (array)$fields;\n fputcsv($fp, $fields);\n }\n fclose($fp);\n die();\n}", "title": "" }, { "docid": "a48f783d883fc062342b59111e2d3b24", "score": "0.54836464", "text": "public function export() : array;", "title": "" }, { "docid": "22eded2ff7cb4292dd1c4e090bdfec1d", "score": "0.54827505", "text": "public function exportFile($type){\n\n return \\Excel::download(new Barang, 'report_barang.xls');\n }", "title": "" }, { "docid": "eb4c422add7a541a52ed4867951ae591", "score": "0.5471", "text": "public function exportAction(){\n\t\t$excelWriter = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceService('PHPExcel');\n\t\t$excelObj = $excelWriter->getPHPExcel();\n\t\t\n $headers = array(\n 'Pragma' => 'public',\n 'Expires' => 0,\n 'Cache-Control' => 'must-revalidate, post-check=0, pre-check=0',\n 'Cache-Control' => 'public',\n 'Content-Description' => 'Export CSV Date Files',\n 'Content-Type' => 'text/csv;charset=UTF-8',\n 'Content-Disposition' => 'attachment; filename=\"cal_export.csv\"',\n 'Content-Transfer-Encoding' => 'binary',\n \t\t'Content-Encoding' => 'UTF-8'\n );\n \n // send headers\n foreach ($headers as $header => $data)\n $this->response->setHeader($header, $data);\n \n $this->response->sendHeaders();\n \n\t\t$this->view->assign('dates', $this->dateRepository->listBackendDates($this->id));\n\t}", "title": "" }, { "docid": "988cb305e39271485ac9c240ab8d4992", "score": "0.5466065", "text": "public function settings_export( $buf ) {\n\t\t\tglobal $sfwd_options, $sfp;\n\t\t\t$post_types = null;\n\t\t\t$has_data = null;\n\t\t\t$general_settings = null;\n\t\t\t$exporter_choices = esc_attr( $_REQUEST['sfp_importer_exporter_export_choices'] );\n\n\t\t\tif ( ! empty( $exporter_choices ) && is_array( $exporter_choices ) ) {\n\n\t\t\t\tforeach ( $exporter_choices as $ex ) {\n\t\t\t\t\tif ( 1 === $ex ) {\n\t\t\t\t\t\t$general_settings = true;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( 2 === $ex ) {\n\t\t\t\t\t\tif ( isset( $_REQUEST['sfp_importer_exporter_export_post_types'] ) ) {\n\t\t\t\t\t\t\t$post_types = esc_attr( $_REQUEST['sfp_importer_exporter_export_post_types'] );\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\tif ( null !== $post_types ) {\n\t\t\t\t$posts_query = new WP_Query( array( 'post_type' => $post_types ) );\n\t\t\t\t$export_data = array();\n\n\t\t\t\tif ( ( $this === $sfp ) || ( null !== $this->locations ) ) {\n\t\t\t\t\twhile ( $posts_query->have_posts() ) :\n\t\t\t\t\t\t$posts_query->the_post();\n\n\t\t\t\t\t\tglobal $post;\n\t\t\t\t\t\t$guid = $post->guid;\n\t\t\t\t\t\t$type = $post->post_type;\n\t\t\t\t\t\t$title = $post->post_title;\n\t\t\t\t\t\t$date = $post->post_date;\n\t\t\t\t\t\t$data = '';\n\n\t\t\t\t\t\t/* Add Module Meta Data */\n\t\t\t\t\t\tif ( null !== $this->locations ) {\n\t\t\t\t\t\t\tforeach ( $this->locations as $k => $v ) {\n\t\t\t\t\t\t\t\tif ( isset( $v['type'] ) && isset( $v['options'] ) && ( 'metabox' === $v['type'] ) ) {\n\t\t\t\t\t\t\t\t\t$value = $this->get_prefix( $k ) . $k;\n\t\t\t\t\t\t\t\t\t$post_meta = get_post_meta( $post->ID, '_' . $value, true );\n\t\t\t\t\t\t\t\t\tif ( $post_meta ) {\n\t\t\t\t\t\t\t\t\t\t$data .= \"$value = '\" . str_replace( array( \"'\", \"\\n\", \"\\r\" ), array( \"\\'\", '\\n', '\\r' ), trim( serialize( $post_meta ) ) ) . \"'\";\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} else {\n\t\t\t\t\t\t\t/* Add Post Field Data */\n\t\t\t\t\t\t\t$post_custom_fields = get_post_custom( $post->ID );\n\t\t\t\t\t\t\t$has_data = null;\n\t\t\t\t\t\t\tif ( is_array( $post_custom_fields ) ) {\n\t\t\t\t\t\t\t\tforeach ( $post_custom_fields as $field_name => $field ) {\n\t\t\t\t\t\t\t\t\tif ( ( substr( $field_name, 1, 7 ) == 'sfwd' ) && ( $field[0] ) ) {\n\t\t\t\t\t\t\t\t\t\t$has_data = true;\n\t\t\t\t\t\t\t\t\t\t$data .= $field_name . \" = '\" . $field[0] . \"'\\n\";\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}\n\n\t\t\t\t\t\t/* Print post data to file */\n\t\t\t\t\t\tif ( null !== $has_data ) {\n\t\t\t\t\t\t\t$post_info = \"\\n[post_data]\\n\\n\";\n\t\t\t\t\t\t\t$post_info .= \"post_title = '\" . $title . \"'\\n\";\n\t\t\t\t\t\t\t$post_info .= \"post_guid = '\" . $guid . \"'\\n\";\n\t\t\t\t\t\t\t$post_info .= \"post_date = '\" . $date . \"'\\n\";\n\t\t\t\t\t\t\t$post_info .= \"post_type = '\" . $type . \"'\\n\";\n\n\t\t\t\t\t\t\tif ( $data ) {\n\t\t\t\t\t\t\t\t$buf .= $post_info . $data . \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\tendwhile;\n\t\t\t\t\twp_reset_postdata();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Add all active settings to settings file */\n\t\t\t$name = $this->get_option_name();\n\t\t\t$options = $this->get_class_option();\n\n\t\t\tif ( ! empty( $options ) && null !== $general_settings ) {\n\t\t\t\t$buf .= \"\\n[ $name]\\n\\n\";\n\t\t\t\tforeach ( $options as $key => $value ) {\n\n\t\t\t\t\tif ( ( $name == $this->parent_option ) && ( 'modules' === $key ) ) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// don't re-export all module settings -- pdb\n\t\t\t\t\tif ( is_array( $value ) ) {\n\t\t\t\t\t\t$value = \"'\" . str_replace( array( \"'\", \"\\n\", \"\\r\" ), array( \"\\'\", '\\n', '\\r' ), trim( serialize( $value ) ) ) . \"'\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$value = str_replace( array( \"\\n\", \"\\r\" ), array( '\\n', '\\r' ), trim( var_export( $value, true ) ) );\n\t\t\t\t\t}\n\n\t\t\t\t\t$buf .= \"$key = $value\\n\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $buf;\n\t\t}", "title": "" }, { "docid": "cd77bf24be08fbbfdc41955ca517ac56", "score": "0.5464077", "text": "public function populateExport(ExportFormat $export);", "title": "" }, { "docid": "ae4728f3961a50cf8105ccee774cc2cc", "score": "0.5456619", "text": "public function actionExport(){\n $fp = fopen('/tmp/export-way'.strtotime('now').rand(111,999).'.csv', 'w+');\n $models = OrderSource::model()->findAllByAttributes(array('type'=>OrderSource::TYPE_AGENCY));\n $agencyWayData = array();\n foreach($models as $key=>$model){\n\n $row = array(\"送签社\", $model->name, \"联系人\", $model->contact_name);\n\n $tempAgencyWay = VisaTypeAgency::model()->findAllByAttributes(array('agency_id'=>$model->id));\n $agencyWayData[$key]['ways'] = array();\n if(!empty($tempAgencyWay)){\n $row = array(\" \");\n fputcsv($fp, $row);\n foreach($row as $ttKey=>$ttVal){\n $row[$ttKey] = iconv('utf-8', 'GBK//IGNORE', $ttVal);\n }\n fputcsv($fp, $row);\n\n $row = array(\"编号\", \"国家\",\"类型\", \"成本价\", \"预测出签\");\n foreach($row as $tKey=>$tVal){\n $row[$tKey] = iconv('utf-8', 'GBK//IGNORE', $tVal);\n }\n fputcsv($fp, $row);\n foreach($tempAgencyWay as $tKey=>$tVal){\n $row = array(($tKey+1), $tVal->type->country->name, $tVal->type->name, $tVal->price, $tVal->predict_date);\n foreach($row as $ttKey=>$ttVal){\n $row[$ttKey] = iconv('utf-8', 'GBK//IGNORE', $ttVal);\n }\n fputcsv($fp, $row);\n }\n $row = array(\"总计\", count($tempAgencyWay));\n foreach($row as $tKey=>$tVal){\n $row[$tKey] = iconv('utf-8', 'GBK//IGNORE', $tVal);\n }\n fputcsv($fp, $row);\n }\n }\n rewind($fp);\n Yii::app()->request->sendFile('签证渠道_'.date(\"Y年m月d日\").'[按送签社].csv',stream_get_contents($fp), 'text/csv; charset=GBK//IGNORE');\n fclose($fp);\n }", "title": "" }, { "docid": "f971f950aa3e9146de16e8069995bd53", "score": "0.54546124", "text": "public function maybe_do_export() {\n\t\tif ( ! is_admin() || empty( $_POST['rank_math_pro_csv_export'] ) ) {\n\t\t\treturn;\n\t\t}\n\t\tif ( empty( $_POST['object_types'] ) || ! is_array( $_POST['object_types'] ) ) {\n\t\t\twp_die( esc_html__( 'Please select at least one object type to export.', 'rank-math-pro' ) );\n\t\t}\n\t\tif ( ! wp_verify_nonce( isset( $_REQUEST['_wpnonce'] ) ? $_REQUEST['_wpnonce'] : '', 'rank_math_pro_csv_export' ) ) {\n\t\t\twp_die( esc_html__( 'Invalid nonce.', 'rank-math-pro' ) );\n\t\t}\n\t\tif ( ! current_user_can( 'export' ) ) {\n\t\t\twp_die( esc_html__( 'Sorry, you are not allowed to export the content of this site.', 'rank-math-pro' ) );\n\t\t}\n\n\t\t$use_advanced_options = ! empty( $_POST['use_advanced_options'] );\n\t\t$advanced_options = [\n\t\t\t'post_types' => isset( $_POST['post_types'] ) && is_array( $_POST['post_types'] ) ? array_map( 'sanitize_title', wp_unslash( $_POST['post_types'] ) ) : [],\n\t\t\t'taxonomies' => isset( $_POST['taxonomies'] ) && is_array( $_POST['taxonomies'] ) ? array_map( 'sanitize_title', wp_unslash( $_POST['taxonomies'] ) ) : [],\n\t\t\t'roles' => isset( $_POST['roles'] ) && is_array( $_POST['roles'] ) ? array_map( 'sanitize_title', wp_unslash( $_POST['roles'] ) ) : [],\n\t\t\t'readonly_columns' => ! empty( $_POST['readonly_columns'] ),\n\t\t];\n\n\t\t$exporter = new Exporter( array_map( 'sanitize_title', wp_unslash( $_POST['object_types'] ) ), $use_advanced_options ? $advanced_options : false );\n\t\t$exporter->export();\n\t}", "title": "" }, { "docid": "7b7d6204b89c8e9624fab94c920f99cf", "score": "0.54402834", "text": "protected function saveAllFile($feed, $type, $lastPageNum)\n {\n $feedData = $feed->getData();\n $attributeTemplate = $this->json->unserialize($feedData['attribute_template']);\n $fieldSeparate = $attributeTemplate['fieldseparate'];\n $fieldAroundBy = $attributeTemplate['fieldaroundby'];\n $name = 'facebook_feed.csv';\n $fileName = $feed->getFileName();\n $filepath = self::FEED_FILE_PATH . '' . $name;\n $headerFile = self::TEMPLATE_HEADER . '_' . $name;\n $itemFile = self::TEMPLATE_ITEMS . '_' . $name;\n $pathHeaderFile = $this->_directory->getPath(\"pub\") . \"/productfeed/\" . $headerFile;\n $pathItemsFile = $this->_directory->getPath(\"pub\") . \"/productfeed/\" . $itemFile;\n $temp = '';\n $headerContent = $this->csv->getData($pathHeaderFile);\n $itemsContent = $this->csv->getData($pathItemsFile);\n $temp .= file_get_contents($pathHeaderFile) . '' . file_get_contents($pathItemsFile);\n $data[] = array_merge($headerContent, $itemsContent);\n $fileUrl = self::FEED_FILE_PATH . '' . $fileName;\n $stream = $this->directory->openFile($fileUrl, 'w+');\n foreach ($data as $value) {\n foreach ($value as $result) {\n foreach ($result as $item) {\n $row[] = $fieldAroundBy . '' . $item . '' . $fieldAroundBy;\n }\n $stream->writeCsv($row, $fieldSeparate);\n $row = null;\n }\n }\n if ($this->file->fileExists($pathHeaderFile) && $this->file->fileExists($pathItemsFile)) {\n $this->file->rm($pathHeaderFile);\n $this->file->rm($pathItemsFile);\n }\n $this->addLogs($feed);\n }", "title": "" }, { "docid": "9ccdb5d51bdd103311a5fe4baeca49ac", "score": "0.5425035", "text": "function ExportDocument(&$Doc, &$Recordset, $StartRec, $StopRec, $ExportPageType = \"\") {\n\t\tif (!$Recordset || !$Doc)\n\t\t\treturn;\n\t\tif (!$Doc->ExportCustom) {\n\n\t\t\t// Write header\n\t\t\t$Doc->ExportTableHeader();\n\t\t\tif ($Doc->Horizontal) { // Horizontal format, write header\n\t\t\t\t$Doc->BeginExportRow();\n\t\t\t\tif ($ExportPageType == \"view\") {\n\t\t\t\t\tif ($this->Kontrak_No->Exportable) $Doc->ExportCaption($this->Kontrak_No);\n\t\t\t\t\tif ($this->Kontrak_Tgl->Exportable) $Doc->ExportCaption($this->Kontrak_Tgl);\n\t\t\t\t\tif ($this->Kontrak_Lama->Exportable) $Doc->ExportCaption($this->Kontrak_Lama);\n\t\t\t\t\tif ($this->Jatuh_Tempo_Tgl->Exportable) $Doc->ExportCaption($this->Jatuh_Tempo_Tgl);\n\t\t\t\t\tif ($this->Deposito->Exportable) $Doc->ExportCaption($this->Deposito);\n\t\t\t\t\tif ($this->Bunga_Suku->Exportable) $Doc->ExportCaption($this->Bunga_Suku);\n\t\t\t\t\tif ($this->Bunga->Exportable) $Doc->ExportCaption($this->Bunga);\n\t\t\t\t\tif ($this->nasabah_id->Exportable) $Doc->ExportCaption($this->nasabah_id);\n\t\t\t\t\tif ($this->bank_id->Exportable) $Doc->ExportCaption($this->bank_id);\n\t\t\t\t\tif ($this->No_Ref->Exportable) $Doc->ExportCaption($this->No_Ref);\n\t\t\t\t\tif ($this->Biaya_Administrasi->Exportable) $Doc->ExportCaption($this->Biaya_Administrasi);\n\t\t\t\t\tif ($this->Biaya_Materai->Exportable) $Doc->ExportCaption($this->Biaya_Materai);\n\t\t\t\t\tif ($this->Kontrak_Status->Exportable) $Doc->ExportCaption($this->Kontrak_Status);\n\t\t\t\t\tif ($this->Jatuh_Tempo_Status->Exportable) $Doc->ExportCaption($this->Jatuh_Tempo_Status);\n\t\t\t\t\tif ($this->Bunga_Status->Exportable) $Doc->ExportCaption($this->Bunga_Status);\n\t\t\t\t} else {\n\t\t\t\t\tif ($this->id->Exportable) $Doc->ExportCaption($this->id);\n\t\t\t\t\tif ($this->Kontrak_No->Exportable) $Doc->ExportCaption($this->Kontrak_No);\n\t\t\t\t\tif ($this->Kontrak_Tgl->Exportable) $Doc->ExportCaption($this->Kontrak_Tgl);\n\t\t\t\t\tif ($this->Kontrak_Lama->Exportable) $Doc->ExportCaption($this->Kontrak_Lama);\n\t\t\t\t\tif ($this->Jatuh_Tempo_Tgl->Exportable) $Doc->ExportCaption($this->Jatuh_Tempo_Tgl);\n\t\t\t\t\tif ($this->Deposito->Exportable) $Doc->ExportCaption($this->Deposito);\n\t\t\t\t\tif ($this->Bunga_Suku->Exportable) $Doc->ExportCaption($this->Bunga_Suku);\n\t\t\t\t\tif ($this->Bunga->Exportable) $Doc->ExportCaption($this->Bunga);\n\t\t\t\t\tif ($this->nasabah_id->Exportable) $Doc->ExportCaption($this->nasabah_id);\n\t\t\t\t\tif ($this->bank_id->Exportable) $Doc->ExportCaption($this->bank_id);\n\t\t\t\t\tif ($this->No_Ref->Exportable) $Doc->ExportCaption($this->No_Ref);\n\t\t\t\t\tif ($this->Biaya_Administrasi->Exportable) $Doc->ExportCaption($this->Biaya_Administrasi);\n\t\t\t\t\tif ($this->Biaya_Materai->Exportable) $Doc->ExportCaption($this->Biaya_Materai);\n\t\t\t\t\tif ($this->Periode->Exportable) $Doc->ExportCaption($this->Periode);\n\t\t\t\t\tif ($this->Kontrak_Status->Exportable) $Doc->ExportCaption($this->Kontrak_Status);\n\t\t\t\t\tif ($this->Jatuh_Tempo_Status->Exportable) $Doc->ExportCaption($this->Jatuh_Tempo_Status);\n\t\t\t\t\tif ($this->Bunga_Status->Exportable) $Doc->ExportCaption($this->Bunga_Status);\n\t\t\t\t}\n\t\t\t\t$Doc->EndExportRow();\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$RecCnt = $StartRec - 1;\n\t\tif (!$Recordset->EOF) {\n\t\t\t$Recordset->MoveFirst();\n\t\t\tif ($StartRec > 1)\n\t\t\t\t$Recordset->Move($StartRec - 1);\n\t\t}\n\t\twhile (!$Recordset->EOF && $RecCnt < $StopRec) {\n\t\t\t$RecCnt++;\n\t\t\tif (intval($RecCnt) >= intval($StartRec)) {\n\t\t\t\t$RowCnt = intval($RecCnt) - intval($StartRec) + 1;\n\n\t\t\t\t// Page break\n\t\t\t\tif ($this->ExportPageBreakCount > 0) {\n\t\t\t\t\tif ($RowCnt > 1 && ($RowCnt - 1) % $this->ExportPageBreakCount == 0)\n\t\t\t\t\t\t$Doc->ExportPageBreak();\n\t\t\t\t}\n\t\t\t\t$this->LoadListRowValues($Recordset);\n\n\t\t\t\t// Render row\n\t\t\t\t$this->RowType = EW_ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->ResetAttrs();\n\t\t\t\t$this->RenderListRow();\n\t\t\t\tif (!$Doc->ExportCustom) {\n\t\t\t\t\t$Doc->BeginExportRow($RowCnt); // Allow CSS styles if enabled\n\t\t\t\t\tif ($ExportPageType == \"view\") {\n\t\t\t\t\t\tif ($this->Kontrak_No->Exportable) $Doc->ExportField($this->Kontrak_No);\n\t\t\t\t\t\tif ($this->Kontrak_Tgl->Exportable) $Doc->ExportField($this->Kontrak_Tgl);\n\t\t\t\t\t\tif ($this->Kontrak_Lama->Exportable) $Doc->ExportField($this->Kontrak_Lama);\n\t\t\t\t\t\tif ($this->Jatuh_Tempo_Tgl->Exportable) $Doc->ExportField($this->Jatuh_Tempo_Tgl);\n\t\t\t\t\t\tif ($this->Deposito->Exportable) $Doc->ExportField($this->Deposito);\n\t\t\t\t\t\tif ($this->Bunga_Suku->Exportable) $Doc->ExportField($this->Bunga_Suku);\n\t\t\t\t\t\tif ($this->Bunga->Exportable) $Doc->ExportField($this->Bunga);\n\t\t\t\t\t\tif ($this->nasabah_id->Exportable) $Doc->ExportField($this->nasabah_id);\n\t\t\t\t\t\tif ($this->bank_id->Exportable) $Doc->ExportField($this->bank_id);\n\t\t\t\t\t\tif ($this->No_Ref->Exportable) $Doc->ExportField($this->No_Ref);\n\t\t\t\t\t\tif ($this->Biaya_Administrasi->Exportable) $Doc->ExportField($this->Biaya_Administrasi);\n\t\t\t\t\t\tif ($this->Biaya_Materai->Exportable) $Doc->ExportField($this->Biaya_Materai);\n\t\t\t\t\t\tif ($this->Kontrak_Status->Exportable) $Doc->ExportField($this->Kontrak_Status);\n\t\t\t\t\t\tif ($this->Jatuh_Tempo_Status->Exportable) $Doc->ExportField($this->Jatuh_Tempo_Status);\n\t\t\t\t\t\tif ($this->Bunga_Status->Exportable) $Doc->ExportField($this->Bunga_Status);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($this->id->Exportable) $Doc->ExportField($this->id);\n\t\t\t\t\t\tif ($this->Kontrak_No->Exportable) $Doc->ExportField($this->Kontrak_No);\n\t\t\t\t\t\tif ($this->Kontrak_Tgl->Exportable) $Doc->ExportField($this->Kontrak_Tgl);\n\t\t\t\t\t\tif ($this->Kontrak_Lama->Exportable) $Doc->ExportField($this->Kontrak_Lama);\n\t\t\t\t\t\tif ($this->Jatuh_Tempo_Tgl->Exportable) $Doc->ExportField($this->Jatuh_Tempo_Tgl);\n\t\t\t\t\t\tif ($this->Deposito->Exportable) $Doc->ExportField($this->Deposito);\n\t\t\t\t\t\tif ($this->Bunga_Suku->Exportable) $Doc->ExportField($this->Bunga_Suku);\n\t\t\t\t\t\tif ($this->Bunga->Exportable) $Doc->ExportField($this->Bunga);\n\t\t\t\t\t\tif ($this->nasabah_id->Exportable) $Doc->ExportField($this->nasabah_id);\n\t\t\t\t\t\tif ($this->bank_id->Exportable) $Doc->ExportField($this->bank_id);\n\t\t\t\t\t\tif ($this->No_Ref->Exportable) $Doc->ExportField($this->No_Ref);\n\t\t\t\t\t\tif ($this->Biaya_Administrasi->Exportable) $Doc->ExportField($this->Biaya_Administrasi);\n\t\t\t\t\t\tif ($this->Biaya_Materai->Exportable) $Doc->ExportField($this->Biaya_Materai);\n\t\t\t\t\t\tif ($this->Periode->Exportable) $Doc->ExportField($this->Periode);\n\t\t\t\t\t\tif ($this->Kontrak_Status->Exportable) $Doc->ExportField($this->Kontrak_Status);\n\t\t\t\t\t\tif ($this->Jatuh_Tempo_Status->Exportable) $Doc->ExportField($this->Jatuh_Tempo_Status);\n\t\t\t\t\t\tif ($this->Bunga_Status->Exportable) $Doc->ExportField($this->Bunga_Status);\n\t\t\t\t\t}\n\t\t\t\t\t$Doc->EndExportRow();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call Row Export server event\n\t\t\tif ($Doc->ExportCustom)\n\t\t\t\t$this->Row_Export($Recordset->fields);\n\t\t\t$Recordset->MoveNext();\n\t\t}\n\t\tif (!$Doc->ExportCustom) {\n\t\t\t$Doc->ExportTableFooter();\n\t\t}\n\t}", "title": "" }, { "docid": "ebdc598cc7cd3adef5a89f35adcafe6f", "score": "0.5424556", "text": "function ExportDocument(&$Doc, &$Recordset, $StartRec, $StopRec, $ExportPageType = \"\") {\n\t\tif (!$Recordset || !$Doc)\n\t\t\treturn;\n\t\tif (!$Doc->ExportCustom) {\n\n\t\t\t// Write header\n\t\t\t$Doc->ExportTableHeader();\n\t\t\tif ($Doc->Horizontal) { // Horizontal format, write header\n\t\t\t\t$Doc->BeginExportRow();\n\t\t\t\tif ($ExportPageType == \"view\") {\n\t\t\t\t\tif ($this->fk_kodedaftar->Exportable) $Doc->ExportCaption($this->fk_kodedaftar);\n\t\t\t\t\tif ($this->fk_jenis_praktikum->Exportable) $Doc->ExportCaption($this->fk_jenis_praktikum);\n\t\t\t\t\tif ($this->biaya_bayar->Exportable) $Doc->ExportCaption($this->biaya_bayar);\n\t\t\t\t\tif ($this->tgl_daftar_detail->Exportable) $Doc->ExportCaption($this->tgl_daftar_detail);\n\t\t\t\t\tif ($this->jam_daftar_detail->Exportable) $Doc->ExportCaption($this->jam_daftar_detail);\n\t\t\t\t\tif ($this->status_praktikum->Exportable) $Doc->ExportCaption($this->status_praktikum);\n\t\t\t\t\tif ($this->id_kelompok->Exportable) $Doc->ExportCaption($this->id_kelompok);\n\t\t\t\t\tif ($this->id_jam_prak->Exportable) $Doc->ExportCaption($this->id_jam_prak);\n\t\t\t\t\tif ($this->id_lab->Exportable) $Doc->ExportCaption($this->id_lab);\n\t\t\t\t\tif ($this->id_pngjar->Exportable) $Doc->ExportCaption($this->id_pngjar);\n\t\t\t\t\tif ($this->id_asisten->Exportable) $Doc->ExportCaption($this->id_asisten);\n\t\t\t\t\tif ($this->status_kelompok->Exportable) $Doc->ExportCaption($this->status_kelompok);\n\t\t\t\t\tif ($this->nilai_akhir->Exportable) $Doc->ExportCaption($this->nilai_akhir);\n\t\t\t\t\tif ($this->persetujuan->Exportable) $Doc->ExportCaption($this->persetujuan);\n\t\t\t\t} else {\n\t\t\t\t\tif ($this->id_detailpendaftaran->Exportable) $Doc->ExportCaption($this->id_detailpendaftaran);\n\t\t\t\t\tif ($this->fk_kodedaftar->Exportable) $Doc->ExportCaption($this->fk_kodedaftar);\n\t\t\t\t\tif ($this->fk_jenis_praktikum->Exportable) $Doc->ExportCaption($this->fk_jenis_praktikum);\n\t\t\t\t\tif ($this->biaya_bayar->Exportable) $Doc->ExportCaption($this->biaya_bayar);\n\t\t\t\t\tif ($this->tgl_daftar_detail->Exportable) $Doc->ExportCaption($this->tgl_daftar_detail);\n\t\t\t\t\tif ($this->jam_daftar_detail->Exportable) $Doc->ExportCaption($this->jam_daftar_detail);\n\t\t\t\t\tif ($this->status_praktikum->Exportable) $Doc->ExportCaption($this->status_praktikum);\n\t\t\t\t\tif ($this->id_kelompok->Exportable) $Doc->ExportCaption($this->id_kelompok);\n\t\t\t\t\tif ($this->id_jam_prak->Exportable) $Doc->ExportCaption($this->id_jam_prak);\n\t\t\t\t\tif ($this->id_lab->Exportable) $Doc->ExportCaption($this->id_lab);\n\t\t\t\t\tif ($this->id_pngjar->Exportable) $Doc->ExportCaption($this->id_pngjar);\n\t\t\t\t\tif ($this->id_asisten->Exportable) $Doc->ExportCaption($this->id_asisten);\n\t\t\t\t\tif ($this->status_kelompok->Exportable) $Doc->ExportCaption($this->status_kelompok);\n\t\t\t\t\tif ($this->nilai_akhir->Exportable) $Doc->ExportCaption($this->nilai_akhir);\n\t\t\t\t\tif ($this->persetujuan->Exportable) $Doc->ExportCaption($this->persetujuan);\n\t\t\t\t}\n\t\t\t\t$Doc->EndExportRow();\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$RecCnt = $StartRec - 1;\n\t\tif (!$Recordset->EOF) {\n\t\t\t$Recordset->MoveFirst();\n\t\t\tif ($StartRec > 1)\n\t\t\t\t$Recordset->Move($StartRec - 1);\n\t\t}\n\t\twhile (!$Recordset->EOF && $RecCnt < $StopRec) {\n\t\t\t$RecCnt++;\n\t\t\tif (intval($RecCnt) >= intval($StartRec)) {\n\t\t\t\t$RowCnt = intval($RecCnt) - intval($StartRec) + 1;\n\n\t\t\t\t// Page break\n\t\t\t\tif ($this->ExportPageBreakCount > 0) {\n\t\t\t\t\tif ($RowCnt > 1 && ($RowCnt - 1) % $this->ExportPageBreakCount == 0)\n\t\t\t\t\t\t$Doc->ExportPageBreak();\n\t\t\t\t}\n\t\t\t\t$this->LoadListRowValues($Recordset);\n\n\t\t\t\t// Render row\n\t\t\t\t$this->RowType = EW_ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->ResetAttrs();\n\t\t\t\t$this->RenderListRow();\n\t\t\t\tif (!$Doc->ExportCustom) {\n\t\t\t\t\t$Doc->BeginExportRow($RowCnt); // Allow CSS styles if enabled\n\t\t\t\t\tif ($ExportPageType == \"view\") {\n\t\t\t\t\t\tif ($this->fk_kodedaftar->Exportable) $Doc->ExportField($this->fk_kodedaftar);\n\t\t\t\t\t\tif ($this->fk_jenis_praktikum->Exportable) $Doc->ExportField($this->fk_jenis_praktikum);\n\t\t\t\t\t\tif ($this->biaya_bayar->Exportable) $Doc->ExportField($this->biaya_bayar);\n\t\t\t\t\t\tif ($this->tgl_daftar_detail->Exportable) $Doc->ExportField($this->tgl_daftar_detail);\n\t\t\t\t\t\tif ($this->jam_daftar_detail->Exportable) $Doc->ExportField($this->jam_daftar_detail);\n\t\t\t\t\t\tif ($this->status_praktikum->Exportable) $Doc->ExportField($this->status_praktikum);\n\t\t\t\t\t\tif ($this->id_kelompok->Exportable) $Doc->ExportField($this->id_kelompok);\n\t\t\t\t\t\tif ($this->id_jam_prak->Exportable) $Doc->ExportField($this->id_jam_prak);\n\t\t\t\t\t\tif ($this->id_lab->Exportable) $Doc->ExportField($this->id_lab);\n\t\t\t\t\t\tif ($this->id_pngjar->Exportable) $Doc->ExportField($this->id_pngjar);\n\t\t\t\t\t\tif ($this->id_asisten->Exportable) $Doc->ExportField($this->id_asisten);\n\t\t\t\t\t\tif ($this->status_kelompok->Exportable) $Doc->ExportField($this->status_kelompok);\n\t\t\t\t\t\tif ($this->nilai_akhir->Exportable) $Doc->ExportField($this->nilai_akhir);\n\t\t\t\t\t\tif ($this->persetujuan->Exportable) $Doc->ExportField($this->persetujuan);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($this->id_detailpendaftaran->Exportable) $Doc->ExportField($this->id_detailpendaftaran);\n\t\t\t\t\t\tif ($this->fk_kodedaftar->Exportable) $Doc->ExportField($this->fk_kodedaftar);\n\t\t\t\t\t\tif ($this->fk_jenis_praktikum->Exportable) $Doc->ExportField($this->fk_jenis_praktikum);\n\t\t\t\t\t\tif ($this->biaya_bayar->Exportable) $Doc->ExportField($this->biaya_bayar);\n\t\t\t\t\t\tif ($this->tgl_daftar_detail->Exportable) $Doc->ExportField($this->tgl_daftar_detail);\n\t\t\t\t\t\tif ($this->jam_daftar_detail->Exportable) $Doc->ExportField($this->jam_daftar_detail);\n\t\t\t\t\t\tif ($this->status_praktikum->Exportable) $Doc->ExportField($this->status_praktikum);\n\t\t\t\t\t\tif ($this->id_kelompok->Exportable) $Doc->ExportField($this->id_kelompok);\n\t\t\t\t\t\tif ($this->id_jam_prak->Exportable) $Doc->ExportField($this->id_jam_prak);\n\t\t\t\t\t\tif ($this->id_lab->Exportable) $Doc->ExportField($this->id_lab);\n\t\t\t\t\t\tif ($this->id_pngjar->Exportable) $Doc->ExportField($this->id_pngjar);\n\t\t\t\t\t\tif ($this->id_asisten->Exportable) $Doc->ExportField($this->id_asisten);\n\t\t\t\t\t\tif ($this->status_kelompok->Exportable) $Doc->ExportField($this->status_kelompok);\n\t\t\t\t\t\tif ($this->nilai_akhir->Exportable) $Doc->ExportField($this->nilai_akhir);\n\t\t\t\t\t\tif ($this->persetujuan->Exportable) $Doc->ExportField($this->persetujuan);\n\t\t\t\t\t}\n\t\t\t\t\t$Doc->EndExportRow();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call Row Export server event\n\t\t\tif ($Doc->ExportCustom)\n\t\t\t\t$this->Row_Export($Recordset->fields);\n\t\t\t$Recordset->MoveNext();\n\t\t}\n\t\tif (!$Doc->ExportCustom) {\n\t\t\t$Doc->ExportTableFooter();\n\t\t}\n\t}", "title": "" }, { "docid": "f134800a2f283b0ddcaa014fa81c9a1c", "score": "0.5423562", "text": "public function exportContentsAction()\n {\n $actions = array(\n 'include-about-page' => 'about',\n 'include-competency-page' => 'competency',\n 'include-compliance-page' => 'compliance',\n 'include-exams-page' => 'exams',\n 'include-lab-practice-page' => 'skill-sheets',\n 'include-internship-summary-page' => 'internship-records',\n 'include-affective-eval-page' => 'affective-evaluations'\n );\n\n $this->view->includeBase = true;\n\n $this->view->noHeader = true;\n $this->view->noFooter = true;\n\n $this->view->actions = array();\n\n foreach ($actions as $option => $action) {\n if ($this->_getParam($option, false)) {\n $this->view->actions[] = $action;\n }\n }\n }", "title": "" }, { "docid": "375adeb671359dac5ef23dc3b82ea598", "score": "0.54194117", "text": "public function clear_exports() {\n global $DB;\n\n foreach ($this->exportsettings as $setting) {\n if ($setting->status == self::STATUS_CREATED) {\n $DB->delete_records('local_campusconnect_export', array('id' => $setting->id));\n unset($this->exportsettings[$setting->id]);\n\n } else if ($setting->status != self::STATUS_DELETED) {\n $upd = new stdClass();\n $upd->id = $setting->id;\n $upd->mids = '';\n $upd->status = self::STATUS_DELETED;\n $DB->update_record('local_campusconnect_export', $upd);\n\n $this->exportsettings[$upd->id]->mids = '';\n $this->exportsettings[$upd->id]->status = self::STATUS_DELETED;\n }\n }\n }", "title": "" }, { "docid": "688c6a17af3c98c4bc9f463f10acbba8", "score": "0.5418905", "text": "private function write_export_data( ) {\n\n\t\t$output = '';\n\t\t$sep = ',';\n\t\t$quo = '\"';\n\t\t\n\t\t$fname = sanitize_title( home_url( ) . '-export-' . date('Ymd-Hi') ) . '.csv';\n\n\t\t$fpath = $this->tmppath . \"/\" . $fname;\n\n\t\t//ID, post_title, post.php?post=ID&action=edit, /post_name/, updatez_status, updatez_updater, updatez_comment, post_modified\n\t\t$output .= $quo . implode( $quo . $sep . $quo , $this->csv_fields ). $quo . \"\\n\"; \n\t\t\t\n\t\tforeach ( $this->all_pages as $thispage ){\n\t\t\t$output .= \n\t\t\t\t$thispage->ID . $sep . \n\t\t\t\t$quo . $thispage->post_title . $quo . $sep . \n\t\t\t\t$quo . site_url( \"wp-admin/post.php?post=\" . $thispage->ID . \"&action=edit\" ) . $quo . $sep . \n\t\t\t\t$quo . get_the_permalink( $thispage->ID ) . $quo . $sep . \n\t\t\t\t$quo . $this->statuses[ get_post_meta( $thispage->ID, \"updatez_status\" , true )] . $quo . $sep . \n\t\t\t\t$quo . get_post_meta( $thispage->ID, \"updatez_updater\" , true ) . $quo . $sep . \n\t\t\t\t$quo . get_post_meta( $thispage->ID, \"updatez_comment\" , true ) . $quo . $sep . \n\t\t\t\t$quo . $thispage->post_modified . $quo . \"\\n\";\n\t\t}\n\t\t\n\t\t//write temp file\n\t\t$expfile = fopen( $fpath , \"w\") or die(\"Unable to create \". $fpath .\" file.\");\n\t\tfwrite($expfile, $output);\n\t\tfclose($expfile);\n\t\t\n\t\treturn $fname;\n\t\t\n\t}", "title": "" }, { "docid": "fd68162ab9f0bc87d778395dfea5c269", "score": "0.5412684", "text": "public function export() {\n if( !$this->uri->segment(2) ) {\n show_error('Campaign token is required');\n return;\n }\n\n $campaign = $this->giving_impact\n ->campaign\n ->fetch($this->uri->segment(2));\n\n if( !$this->uri->segment(4) ) {\n show_error('Campaign token is required');\n return;\n }\n\n $opportunity = $this->giving_impact\n ->opportunity\n ->fetch($this->uri->segment(4));\n\n $donations = $opportunity\n ->donations\n ->fetch();\n\n $this->output\n ->set_header('Expires: Mon, 26 Jul 1997 05:00:00 GMT') // Date in the past\n ->set_header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT') // always modified\n ->set_header('Cache-Control: cache, must-revalidate') // HTTP/1.1\n ->set_header('Pragma: public') // HTTP/1.0\n ->set_header(sprintf(\n 'Content-Disposition: attachment; filename=\"%s\"',\n url_title($campaign->title).'.csv'\n ))\n ->set_content_type('csv')\n ->set_output(donations_to_csv($campaign, $donations));\n }", "title": "" }, { "docid": "4acd4ee55c33ab1da6e2593a4e14fc3c", "score": "0.5411632", "text": "function DoExportphonebook()\n\t{\n\t\t//check here php version > 5.1\n\t\t$entries = $this->user->_phoneBook->getEntries();\n\t\t$handle = fopen( 'php://temp', 'r+' );\n\n\t\tforeach( $entries as $entry ){\n\t\t\tfputcsv( $handle , array( $entry->name, $entry->number ), ';' );\n\t\t}\n\n\t\trewind($handle);\n\t\t$content = stream_get_contents($handle);\n\t\tfclose($handle);\n\n\t\theader('Content-type: text/comma-separated-values');\n\t\theader('Content-Disposition: attachment; filename=\"phonebook.csv\"');\n\t\techo $content;\n\t\texit();\n\t}", "title": "" }, { "docid": "f2822ba98cbed75675ee27eacacd3e4f", "score": "0.5404989", "text": "abstract protected function handleExport();", "title": "" }, { "docid": "d8ddd7c7524ee3e92b426c21714251a2", "score": "0.5404842", "text": "public function exportValues();", "title": "" }, { "docid": "7bdc07558ba2c077a34a10f1870c6fcd", "score": "0.5403964", "text": "public function export(string $type,string $filename='')\n { \n $this->pageproperties['creator']=$this->creator;\n $this->pageproperties['author']= $this->author;\n $this->pageproperties['keywords']=$this->keywords;\n $this->pageproperties['title']= !empty($this->title) ? $this->title : $this->pageproperties['name'];\n $this->pageproperties['subject']= !empty($this->subject) ? $this->subject : $this->pageproperties['name'];\n // print_r($this->pageproperties);\n \n $classname = '\\\\simitsdk\\\\phpjasperxml\\\\Exports\\\\'.ucfirst($type).\"_driver\";\n\n // $this->console($this->pageproperties);die;\n $this->output = new $classname($this->pageproperties);\n \n // print_r($this->bands);die;\n $this->output->defineBands($this->bands,$this->elements,$this->groups);\n // echo \"rowcount $this->rowcount\";die;\n if($this->rowcount>0)\n {\n $this->sortData();\n $this->output->defineColumns($this->columnCount,$this->columnWidth);\n foreach($this->rows as $i=>$r)\n { \n $this->setRow($i);\n if($i==0)\n {\n $this->newPage(true);\n }\n $postfix='';\n if($this->printOrder=='Horizontal')\n {\n $postfix='Horizontal'; \n }\n call_user_func([$this,'draw_groupsHeader'.$postfix]);\n call_user_func([$this,'draw_detail'.$postfix]);\n call_user_func([$this,'draw_groupsFooter'.$postfix]);\n // call_user_func([$this.'draw_groupsFooter'.$postfix]);\n \n }\n $this->endPage();\n }\n else\n {\n if($this->bands['noData']['height'])\n {\n $this->draw_noData();\n }\n else\n {\n die('No data found, and noData band undefined');\n }\n \n }\n // echo \"export\";die;\n if(!empty($filename))\n {\n // $filename = '/tmp/'.str_replace('.jrxml','.pdf',$this->filename);\n \n $this->output->export($filename);\n }\n else\n {\n // echo 'export';die;\n $this->output->export();\n }\n \n }", "title": "" }, { "docid": "d9b3ad2879e25da00bb3d67cf0fedf4b", "score": "0.54017353", "text": "public function exportFile()\n {\n if (isset($this->_data[self::FILTER_ELEMENT_GROUP])) {\n $this->addLogComment(Mage::helper('importexport')->__('Begin export of %s', $this->getEntity()));\n $result = $this->_getEntityAdapter()\n ->setWriter($this->_getWriter())\n ->exportFile();\n\n if (isset($result['rows'])) {\n if (!$result['rows']) {\n Mage::throwException(\n Mage::helper('importexport')->__('There is no data for export')\n );\n }\n if ($result['rows']) {\n $this->addLogComment(array(\n Mage::helper('importexport')->__('Exported %s rows.', $result['rows']),\n Mage::helper('importexport')->__('Export has been done.')\n ));\n }\n }\n\n return $result;\n } else {\n Mage::throwException(\n Mage::helper('importexport')->__('No filter data provided')\n );\n }\n }", "title": "" }, { "docid": "0c4d1a6580c0d2bb20df771b38bba646", "score": "0.53991365", "text": "public function export($type)\n {\n $subscribers = $this->findAll(array('order' => '`date_created` DESC'));\n \n $list = CHtml::listData($subscribers, 'id', 'email');\n \n $data = '';\n switch ($type) {\n case 'csv': $data = \"\\\"email\\\"\\r\\n\".implode(\"\\r\\n\", array_values($list)).\"\\r\\n\"; break;\n case 'array': $data = array_values($list); break;\n }\n \n return $data;\n }", "title": "" }, { "docid": "9fba201899c0d9aca95b547d168d05b0", "score": "0.5382309", "text": "protected function exportAll()\n {\n $product_export = new Mage_ImportExport_Model_Export_Entity_Product;\n $array_writer = new JumpLink_ImportExport_Model_Export_Adapter_Array;\n $product_export->setWriter($array_writer);\n $result = $product_export->export();\n $this->transorm_keys_each ($result);\n return $result;\n }", "title": "" }, { "docid": "712fce7b2c6e9dbd0919294d6d1cdce2", "score": "0.53783476", "text": "public function bulkhandlerExport($type) {\n\t\t$data = NULL;\n\n\t\tswitch ($type) {\n\t\tcase 'extensions':\n\t\t\t$users = $this->getAllUsersByDeviceType();\n\t\t\tforeach ($users as $user) {\n\t\t\t\t$device = $this->getDevice($user['extension']);\n\t\t\t\tif (isset($device['secret_origional'])) {\n\t\t\t\t\t/* Don't expose our typo laden craziness to users. We like our users! */\n\t\t\t\t\tunset($device['secret_origional']);\n\t\t\t\t}\n\t\t\t\tif (isset($device['vm'])) {\n\t\t\t\t\t/* This value doesnt make sense since we control vm externally through voicemail */\n\t\t\t\t\tunset($device['vm']);\n\t\t\t\t}\n\t\t\t\t$du = $this->freepbx->Config->get(\"AMPEXTENSIONS\");\n\t\t\t\tif($du != \"deviceanduser\") {\n\t\t\t\t\tunset($device['password']);\n\t\t\t\t\tunset($device['devicetype']);\n\t\t\t\t\tunset($device['user']);\n\t\t\t\t\tunset($device['id']);\n\t\t\t\t\tunset($device['name']);\n\t\t\t\t\tunset($device['account']);\n\t\t\t\t}\n\t\t\t\t$tmp_user_data = $this->getUser($user['extension']);\n\t\t\t\tif(isset($tmp_user_data['cid_masquerade'])) {\n\t\t\t\t\t$user['cid_masquerade'] = $tmp_user_data['cid_masquerade'];\n\t\t\t\t}\n\t\t\t\tif(isset($tmp_user_data['concurrency_limit'])) {\n $user['concurrency_limit'] = $tmp_user_data['concurrency_limit'];;\n }\n\t\t\t\t$data[$user['extension']] = array_merge($user, $device);\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase 'dids':\n\t\t\t$dids = $this->getAllDIDs();\n\t\t\t$data = array();\n\t\t\tforeach($dids as $did) {\n\t\t\t\t$key = $did['extension'].\"/\".$did[\"cidnum\"];\n\t\t\t\t$data[$key] = $did;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "1098d5719ed3350a0e013dfed8fbadc5", "score": "0.53760856", "text": "public function exportDocument($doc, $recordset, $startRec = 1, $stopRec = 1, $exportPageType = \"\")\n\t{\n\t\tif (!$recordset || !$doc)\n\t\t\treturn;\n\t\tif (!$doc->ExportCustom) {\n\n\t\t\t// Write header\n\t\t\t$doc->exportTableHeader();\n\t\t\tif ($doc->Horizontal) { // Horizontal format, write header\n\t\t\t\t$doc->beginExportRow();\n\t\t\t\tif ($exportPageType == \"view\") {\n\t\t\t\t\t$doc->exportCaption($this->firelink_doc_no);\n\t\t\t\t\t$doc->exportCaption($this->client_doc_no);\n\t\t\t\t\t$doc->exportCaption($this->order_number);\n\t\t\t\t\t$doc->exportCaption($this->project_name);\n\t\t\t\t\t$doc->exportCaption($this->document_tittle);\n\t\t\t\t\t$doc->exportCaption($this->current_status);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_1);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_1);\n\t\t\t\t\t$doc->exportCaption($this->direction_1);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_1);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_1);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_2);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_2);\n\t\t\t\t\t$doc->exportCaption($this->direction_2);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_2);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_2);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_2);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_2);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_3);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_3);\n\t\t\t\t\t$doc->exportCaption($this->direction_3);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_3);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_3);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_3);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_3);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_4);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_4);\n\t\t\t\t\t$doc->exportCaption($this->direction_4);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_4);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_4);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_4);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_4);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_5);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_5);\n\t\t\t\t\t$doc->exportCaption($this->direction_5);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_5);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_5);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_5);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_5);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_6);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_6);\n\t\t\t\t\t$doc->exportCaption($this->direction_6);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_6);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_6);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_6);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_6);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_7);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_7);\n\t\t\t\t\t$doc->exportCaption($this->direction_7);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_7);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_7);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_7);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_7);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_8);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_8);\n\t\t\t\t\t$doc->exportCaption($this->direction_8);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_8);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_8);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_8);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_8);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_9);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_9);\n\t\t\t\t\t$doc->exportCaption($this->direction_9);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_9);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_9);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_9);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_9);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_10);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_10);\n\t\t\t\t\t$doc->exportCaption($this->direction_10);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_10);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_10);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_10);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_10);\n\t\t\t\t\t$doc->exportCaption($this->log_updatedon);\n\t\t\t\t} else {\n\t\t\t\t\t$doc->exportCaption($this->firelink_doc_no);\n\t\t\t\t\t$doc->exportCaption($this->client_doc_no);\n\t\t\t\t\t$doc->exportCaption($this->order_number);\n\t\t\t\t\t$doc->exportCaption($this->project_name);\n\t\t\t\t\t$doc->exportCaption($this->document_tittle);\n\t\t\t\t\t$doc->exportCaption($this->current_status);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_1);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_1);\n\t\t\t\t\t$doc->exportCaption($this->direction_1);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_1);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_1);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_1);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_1);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_2);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_2);\n\t\t\t\t\t$doc->exportCaption($this->direction_2);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_2);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_2);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_2);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_2);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_3);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_3);\n\t\t\t\t\t$doc->exportCaption($this->direction_3);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_3);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_3);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_3);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_3);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_4);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_4);\n\t\t\t\t\t$doc->exportCaption($this->direction_4);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_4);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_4);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_4);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_4);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_5);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_5);\n\t\t\t\t\t$doc->exportCaption($this->direction_5);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_5);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_5);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_5);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_5);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_6);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_6);\n\t\t\t\t\t$doc->exportCaption($this->direction_6);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_6);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_6);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_6);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_6);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_7);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_7);\n\t\t\t\t\t$doc->exportCaption($this->direction_7);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_7);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_7);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_7);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_7);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_8);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_8);\n\t\t\t\t\t$doc->exportCaption($this->direction_8);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_8);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_8);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_8);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_8);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_9);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_9);\n\t\t\t\t\t$doc->exportCaption($this->direction_9);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_9);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_9);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_9);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_9);\n\t\t\t\t\t$doc->exportCaption($this->submit_no_10);\n\t\t\t\t\t$doc->exportCaption($this->revision_no_10);\n\t\t\t\t\t$doc->exportCaption($this->direction_10);\n\t\t\t\t\t$doc->exportCaption($this->planned_date_10);\n\t\t\t\t\t$doc->exportCaption($this->transmit_date_10);\n\t\t\t\t\t$doc->exportCaption($this->transmit_no_10);\n\t\t\t\t\t$doc->exportCaption($this->approval_status_10);\n\t\t\t\t\t$doc->exportCaption($this->log_updatedon);\n\t\t\t\t}\n\t\t\t\t$doc->endExportRow();\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$recCnt = $startRec - 1;\n\t\tif (!$recordset->EOF) {\n\t\t\t$recordset->moveFirst();\n\t\t\tif ($startRec > 1)\n\t\t\t\t$recordset->move($startRec - 1);\n\t\t}\n\t\twhile (!$recordset->EOF && $recCnt < $stopRec) {\n\t\t\t$recCnt++;\n\t\t\tif ($recCnt >= $startRec) {\n\t\t\t\t$rowCnt = $recCnt - $startRec + 1;\n\n\t\t\t\t// Page break\n\t\t\t\tif ($this->ExportPageBreakCount > 0) {\n\t\t\t\t\tif ($rowCnt > 1 && ($rowCnt - 1) % $this->ExportPageBreakCount == 0)\n\t\t\t\t\t\t$doc->exportPageBreak();\n\t\t\t\t}\n\t\t\t\t$this->loadListRowValues($recordset);\n\n\t\t\t\t// Render row\n\t\t\t\t$this->RowType = ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->resetAttributes();\n\t\t\t\t$this->renderListRow();\n\t\t\t\tif (!$doc->ExportCustom) {\n\t\t\t\t\t$doc->beginExportRow($rowCnt); // Allow CSS styles if enabled\n\t\t\t\t\tif ($exportPageType == \"view\") {\n\t\t\t\t\t\t$doc->exportField($this->firelink_doc_no);\n\t\t\t\t\t\t$doc->exportField($this->client_doc_no);\n\t\t\t\t\t\t$doc->exportField($this->order_number);\n\t\t\t\t\t\t$doc->exportField($this->project_name);\n\t\t\t\t\t\t$doc->exportField($this->document_tittle);\n\t\t\t\t\t\t$doc->exportField($this->current_status);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_1);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_1);\n\t\t\t\t\t\t$doc->exportField($this->direction_1);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_1);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_1);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_2);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_2);\n\t\t\t\t\t\t$doc->exportField($this->direction_2);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_2);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_2);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_2);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_2);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_3);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_3);\n\t\t\t\t\t\t$doc->exportField($this->direction_3);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_3);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_3);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_3);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_3);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_4);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_4);\n\t\t\t\t\t\t$doc->exportField($this->direction_4);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_4);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_4);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_4);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_4);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_5);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_5);\n\t\t\t\t\t\t$doc->exportField($this->direction_5);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_5);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_5);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_5);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_5);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_6);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_6);\n\t\t\t\t\t\t$doc->exportField($this->direction_6);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_6);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_6);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_6);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_6);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_7);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_7);\n\t\t\t\t\t\t$doc->exportField($this->direction_7);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_7);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_7);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_7);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_7);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_8);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_8);\n\t\t\t\t\t\t$doc->exportField($this->direction_8);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_8);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_8);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_8);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_8);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_9);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_9);\n\t\t\t\t\t\t$doc->exportField($this->direction_9);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_9);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_9);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_9);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_9);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_10);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_10);\n\t\t\t\t\t\t$doc->exportField($this->direction_10);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_10);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_10);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_10);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_10);\n\t\t\t\t\t\t$doc->exportField($this->log_updatedon);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$doc->exportField($this->firelink_doc_no);\n\t\t\t\t\t\t$doc->exportField($this->client_doc_no);\n\t\t\t\t\t\t$doc->exportField($this->order_number);\n\t\t\t\t\t\t$doc->exportField($this->project_name);\n\t\t\t\t\t\t$doc->exportField($this->document_tittle);\n\t\t\t\t\t\t$doc->exportField($this->current_status);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_1);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_1);\n\t\t\t\t\t\t$doc->exportField($this->direction_1);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_1);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_1);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_1);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_1);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_2);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_2);\n\t\t\t\t\t\t$doc->exportField($this->direction_2);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_2);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_2);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_2);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_2);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_3);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_3);\n\t\t\t\t\t\t$doc->exportField($this->direction_3);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_3);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_3);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_3);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_3);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_4);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_4);\n\t\t\t\t\t\t$doc->exportField($this->direction_4);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_4);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_4);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_4);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_4);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_5);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_5);\n\t\t\t\t\t\t$doc->exportField($this->direction_5);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_5);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_5);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_5);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_5);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_6);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_6);\n\t\t\t\t\t\t$doc->exportField($this->direction_6);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_6);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_6);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_6);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_6);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_7);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_7);\n\t\t\t\t\t\t$doc->exportField($this->direction_7);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_7);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_7);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_7);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_7);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_8);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_8);\n\t\t\t\t\t\t$doc->exportField($this->direction_8);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_8);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_8);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_8);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_8);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_9);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_9);\n\t\t\t\t\t\t$doc->exportField($this->direction_9);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_9);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_9);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_9);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_9);\n\t\t\t\t\t\t$doc->exportField($this->submit_no_10);\n\t\t\t\t\t\t$doc->exportField($this->revision_no_10);\n\t\t\t\t\t\t$doc->exportField($this->direction_10);\n\t\t\t\t\t\t$doc->exportField($this->planned_date_10);\n\t\t\t\t\t\t$doc->exportField($this->transmit_date_10);\n\t\t\t\t\t\t$doc->exportField($this->transmit_no_10);\n\t\t\t\t\t\t$doc->exportField($this->approval_status_10);\n\t\t\t\t\t\t$doc->exportField($this->log_updatedon);\n\t\t\t\t\t}\n\t\t\t\t\t$doc->endExportRow($rowCnt);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call Row Export server event\n\t\t\tif ($doc->ExportCustom)\n\t\t\t\t$this->Row_Export($recordset->fields);\n\t\t\t$recordset->moveNext();\n\t\t}\n\t\tif (!$doc->ExportCustom) {\n\t\t\t$doc->exportTableFooter();\n\t\t}\n\t}", "title": "" }, { "docid": "dc196fec99a68e49e222ac815583ab67", "score": "0.53748405", "text": "public function export(){\n\t\t\n\n\t}", "title": "" }, { "docid": "1a309611095754160e0c2843c7d85e9e", "score": "0.53734654", "text": "public function export(Request $request, Worktype $worktype)\n {\n $this->authorize('export', Workunit::class);\n\n // \n }", "title": "" }, { "docid": "6f571e0641b63141d679150ac9bf89c8", "score": "0.5371004", "text": "public function allExportAction() {\n $data = $this->getRequest()->getPost();\n $_option = $data['profiles'];\n switch ($_option) {\n case 1:\n if ($this->orderValidate($data)) {\n $this->orderExport($data, $_option);\n }break;\n case 2:\n if ($this->orderValidate($data)) {\n $this->orderExport($data, $_option);\n }break;\n case 3:\n if ($this->invoiceValidate($data)) {\n $this->invoiceExport($data, $_option);\n }break;\n case 4:\n if ($this->invoiceValidate($data)) {\n $this->invoiceExport($data, $_option);\n }break;\n case 5:\n if ($this->shipmentValidate($data)) {\n $this->shipmentExport($data, $_option);\n }break;\n case 6:\n if ($this->shipmentValidate($data)) {\n $this->shipmentExport($data, $_option);\n }break;\n case 7:\n if ($this->creditmemoValidate($data)) {\n $this->creditmemoExport($data, $_option);\n } break;\n case 8:\n if ($this->creditmemoValidate($data)) {\n $this->creditmemoExport($data, $_option);\n }break;\n case 10:\n if ($this->customerValidate($data)) {\n $this->customerExport($data, $_option);\n }break;\n case 11:\n if ($this->customerValidate($data)) {\n $this->customerExport($data, $_option);\n }break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "7ccb621c9b795e47eeb7c98de0ef700f", "score": "0.5352443", "text": "public function csvExport(){\r\n\t\tif ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validate() && isset($this->request->post['csv_export'])) {\r\n\t\t\t$ReflectionResponse = new ReflectionClass($this->response);\r\n\t\t\t//$t1 = $ReflectionResponse->getCharset();\r\n\t\t\t//echo $t1; exit;\r\n\t\t\tif ($ReflectionResponse->getMethod('addheader')->getNumberOfParameters() == 2) {\r\n\t\t\t\t$this->response->addheader('Pragma', 'public');\r\n\t\t\t\t$this->response->addheader('Expires', '0');\r\n\t\t\t\t$this->response->addheader('Content-Description', 'File Transfer');\r\n\t\t\t\t$this->response->addheader(\"Content-type', 'text/octect-stream\");\r\n\t\t\t\t$this->response->addheader(\"Content-Disposition', 'attachment;filename=\" . $this->request->post['csv_export'] . \".csv\");\r\n\t\t\t\t$this->response->addheader('Content-Transfer-Encoding', 'binary');\r\n\t\t\t\t$this->response->addheader('Cache-Control', 'must-revalidate, post-check=0,pre-check=0');\r\n\t\t\t} else {\r\n\t\t\t\t$this->response->addheader('Pragma: public');\r\n\t\t\t\t$this->response->addheader('Expires: 0');\r\n\t\t\t\t$this->response->addheader('Content-Description: File Transfer');\r\n\t\t\t\t$this->response->addheader(\"Content-type:text/octect-stream\");\r\n\t\t\t\t$this->response->addheader(\"Content-Disposition:attachment;filename=\" . $this->request->post['csv_export'] . \".csv\");\r\n\t\t\t\t$this->response->addheader('Content-Transfer-Encoding: binary');\r\n\t\t\t\t$this->response->addheader('Cache-Control: must-revalidate, post-check=0,pre-check=0');\r\n\t\t\t}\r\n\t\t\t//$this->log->aPrint( $this->response ); exit;\r\n\t\t\t$this->load->model('ar/quickbook');\r\n\t\t\t$this->response->setOutput($this->model_ar_quickbook->csvExport($this->request->post['csv_export']));\r\n\t\t} else {\r\n\t\t\treturn $this->forward('error/permission');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8465ad197abb2d7b32d7de2df7902417", "score": "0.5350321", "text": "public function export(Request $request)\n {\n $this->authorize('export', Bloodtype::class);\n\n // \n }", "title": "" }, { "docid": "d4fadd4d95092bcef0e820f124d69ea5", "score": "0.5346658", "text": "public function exportdata()\n {\n include 'dbimexport.php';\n $db_config = array(\n 'dbtype' => \"MYSQL\",\n 'host' => $this->db->hostname,\n 'database' => $this->db->database,\n 'user' => $this->db->username,\n 'password' => $this->db->password,\n );\n $dbimexport = new dbimexport($db_config);\n $dbimexport->download_path = \"\";\n $dbimexport->download = true;\n $dbimexport->file_name = \"backup_data_\" . date(\"Y-m-d_H-i-s\");\n $dbimexport->export();\n }", "title": "" }, { "docid": "dbab5845244d4044289e119b93ceaeee", "score": "0.5346043", "text": "function Export()\n\t{\n\t\t// Check user authorization and permissions\n\t\tAuthenticatedUser()->CheckAuth();\n\t\tAuthenticatedUser()->PermissionOrDie(PERMISSION_RATE_MANAGEMENT | PERMISSION_ADMIN);\n\t\t\n\t\t// Initialise variables\n\t\t$strRateGroupCSV = \"\";\n\t\t$strFilename = \"\";\n\t\t\n\t\t$arrRateGroupColumns = Array(\"RateGroup Id\", \"Name\", \"Description\", \"Service Type\",\t\"Record Type\", \"Fleet\", \"CapLimit (optional)\");\n\n\t\t$arrRateColumnNames = Array(\"Rate Id\", \t\"Editable\", \"Destination Code\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Destination\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Name\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Description\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Start Time\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"End Time\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Monday\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Tuesday\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Wednesday\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t\"Thursday\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Friday\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Saturday\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Sunday\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Pass through at cost\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Excluded from Cap Plan\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Prorate\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Allow CDR Hiding\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Minimum Charge (\\$)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Discount (%) (1.5 = 1.5%) (optional)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Standard Flagfall (\\$)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Standard Billing Units\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Charge Per Single Unit (\\$)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Markup on Cost (\\$)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Markup on Cost (%) (1.5 = 1.5%)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Start Capping at (Units)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Start Capping at (\\$)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Stop Capping at (Units)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Stop Capping at (\\$)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Excess Flagfall (\\$)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Excess Billing Units\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Charge Per Single Excess Unit (\\$)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Excess Markup on Cost (\\$)\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Excess Markup on Cost (%) (1.5 = 1.5%)\");\n\t\tif (DBO()->RateGroup->Id->Value)\n\t\t{\n\t\t\t// Export the RateGroup defined in DBO()->RateGroup\n\t\t\tDBO()->RateGroup->Load();\n\t\t\tDBO()->RecordType->Id = DBO()->RateGroup->RecordType->Value;\n\t\t\tDBO()->RecordType->Load();\n\t\t\t\n\t\t\t$strFilename = DBO()->RecordType->Name->Value .\" - \". DBO()->RateGroup->Name->Value;\n\t\t\t\n\t\t\t$arrRateGroup = Array\t(\n\t\t\t\t\t\t\t\t\t\tDBO()->RateGroup->Id->Value,\n\t\t\t\t\t\t\t\t\t\tDBO()->RateGroup->Name->Value,\n\t\t\t\t\t\t\t\t\t\tDBO()->RateGroup->Description->Value,\n\t\t\t\t\t\t\t\t\t\tDBO()->RateGroup->ServiceType->Value,\n\t\t\t\t\t\t\t\t\t\tDBO()->RateGroup->RecordType->Value,\n\t\t\t\t\t\t\t\t\t\tDBO()->RateGroup->Fleet->Value,\n\t\t\t\t\t\t\t\t\t\tDBO()->RateGroup->CapLimit->Value\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\n\t\t\t$arrColumnNames = Array(\"RateId\"\t\t\t\t\t=> \"R.Id\",\n\t\t\t\t\t\t\t\t\t\"Editable\"\t\t\t\t\t=> \"IF(R.Archived = \". RATE_STATUS_DRAFT .\", \\\"Yes\\\", \\\"No\\\")\",\n\t\t\t\t\t\t\t\t\t\"DestinationCode\"\t\t\t=> \"D.Code\",\n\t\t\t\t\t\t\t\t\t\"DestinationDescription\"\t=> \"D.Description\",\n\t\t\t\t\t\t\t\t\t\"RateName\"\t\t\t\t\t=> \"R.Name\",\n\t\t\t\t\t\t\t\t\t\"RateDescription\"\t\t\t=> \"R.Description\",\n\t\t\t\t\t\t\t\t\t\"StartTime\"\t\t\t\t\t=> \"R.StartTime\",\n\t\t\t\t\t\t\t\t\t\"EndTime\"\t\t\t\t\t=> \"R.EndTime\",\n\t\t\t\t\t\t\t\t\t\"Monday\"\t\t\t\t\t=> \"R.Monday\",\n\t\t\t\t\t\t\t\t\t\"Tuesday\"\t\t\t\t\t=> \"R.Tuesday\",\n\t\t\t\t\t\t\t\t\t\"Wednesday\"\t\t\t\t\t=> \"R.Wednesday\",\n\t\t\t\t\t\t\t\t\t\"Thursday\"\t\t\t\t\t=> \"R.Thursday\",\n\t\t\t\t\t\t\t\t\t\"Friday\"\t\t\t\t\t=> \"R.Friday\",\n\t\t\t\t\t\t\t\t\t\"Saturday\"\t\t\t\t\t=> \"R.Saturday\",\n\t\t\t\t\t\t\t\t\t\"Sunday\"\t\t\t\t\t=> \"R.Sunday\",\n\t\t\t\t\t\t\t\t\t\"PassThrough\"\t\t\t\t=> \"R.PassThrough\",\n\t\t\t\t\t\t\t\t\t\"Uncapped\"\t\t\t\t\t=> \"R.Uncapped\",\n\t\t\t\t\t\t\t\t\t\"Prorate\"\t\t\t\t\t=> \"R.Prorate\",\n\t\t\t\t\t\t\t\t\t\"allow_cdr_hiding\"\t\t\t=> \"R.allow_cdr_hiding\",\n\t\t\t\t\t\t\t\t\t\"StdMinCharge\"\t\t\t\t=> \"R.StdMinCharge\",\n\t\t\t\t\t\t\t\t\t\"discount_percentage\"\t\t=> \"R.discount_percentage\",\n\t\t\t\t\t\t\t\t\t\"StdFlagfall\"\t\t\t\t=> \"R.StdFlagfall\",\n\t\t\t\t\t\t\t\t\t\"StdUnits\"\t\t\t\t\t=> \"R.StdUnits\",\n\t\t\t\t\t\t\t\t\t\"StdRatePerUnit\"\t\t\t=> \"R.StdRatePerUnit\",\n\t\t\t\t\t\t\t\t\t\"StdMarkup\"\t\t\t\t\t=> \"R.StdMarkup\",\n\t\t\t\t\t\t\t\t\t\"StdPercentage\"\t\t\t\t=> \"R.StdPercentage\",\n\t\t\t\t\t\t\t\t\t\"CapUnits\"\t\t\t\t\t=> \"R.CapUnits\",\n\t\t\t\t\t\t\t\t\t\"CapCost\"\t\t\t\t\t=> \"R.CapCost\",\n\t\t\t\t\t\t\t\t\t\"CapUsage\"\t\t\t\t\t=> \"R.CapUsage\",\n\t\t\t\t\t\t\t\t\t\"CapLimit\"\t\t\t\t\t=> \"R.CapLimit\",\n\t\t\t\t\t\t\t\t\t\"ExsFlagfall\"\t\t\t\t=> \"R.ExsFlagfall\",\n\t\t\t\t\t\t\t\t\t\"ExsUnits\"\t\t\t\t\t=> \"R.ExsUnits\",\n\t\t\t\t\t\t\t\t\t\"ExsRatePerUnit\"\t\t\t=> \"R.ExsRatePerUnit\",\n\t\t\t\t\t\t\t\t\t\"ExsMarkup\"\t\t\t\t\t=> \"R.ExsMarkup\",\n\t\t\t\t\t\t\t\t\t\"ExsPercentage\"\t\t\t\t=> \"R.ExsPercentage\");\n\t\t\t\n\t\t\t$selRates = new StatementSelect(\"Rate AS R LEFT OUTER JOIN Destination AS D ON R.Destination = D.Code\", $arrColumnNames, \"R.Id IN (SELECT Rate FROM RateGroupRate WHERE RateGroup = <RateGroupId> AND NOW() BETWEEN effective_start_datetime AND effective_end_datetime)\",\"D.Description, R.Name\");\n\t\t\t\n\t\t\t$mixNumRecords = $selRates->Execute(Array(\"RateGroupId\" => DBO()->RateGroup->Id->Value));\n\t\t\t$arrRates = $selRates->FetchAll();\n\n\t\t\t$strRateGroupCSV .= MakeCSVLine($arrRateGroupColumns);\n\t\t\t$strRateGroupCSV .= MakeCSVLine($arrRateGroup);\n\t\t\t$strRateGroupCSV .= \"\\n\";\n\t\t\t$strRateGroupCSV .= MakeCSVLine($arrRateColumnNames);\n\t\t\tforeach ($arrRates as $arrRate)\n\t\t\t{\n\t\t\t\t$strRateGroupCSV .= MakeCSVLine($arrRate);\n\t\t\t}\n\t\t}\n\t\telseif (DBO()->RecordType->Id->Value)\n\t\t{\n\t\t\t// Export a skeleton csv for the given RecordType defined in RecordType\n\t\t\tDBO()->RecordType->Load();\n\t\t\t\n\t\t\t$arrBlankRateGroup = Array(NULL,NULL,NULL, DBO()->RecordType->ServiceType->Value, DBO()->RecordType->Id->Value, DBO()->RateGroup->Fleet->Value, NULL);\n\t\t\t\n\t\t\t// Default Values (including precision)\n\t\t\t$arrRate = Array(NULL, \"Editable\"=>\"Yes\", \"DestinationCode\"=>NULL, \"DestinationDescription\"=>NULL, \"RateName\"=>\"<RateGroupName> - <Destination>\", \"RateDescription\"=>\"<RateGroupName> - <Destination>\",\n\t\t\t\t\t\t\t\t\"00:00:00\",\t\"23:59:59\", 1, 1, 1, 1, 1, 1,1,\n\t\t\t\t\t\t\t\t\t\t\t\"PassThrough\"\t\t\t=> 0,\n\t\t\t\t\t\t\t\t\t\t\t\"Uncapped\"\t\t\t\t=> 0,\n\t\t\t\t\t\t\t\t\t\t\t\"Prorate\"\t\t\t\t=> 0,\n\t\t\t\t\t\t\t\t\t\t\t\"allow_cdr_hiding\"\t\t=> 0,\n\t\t\t\t\t\t\t\t\t\t\t\"StdMinCharge\"\t\t\t=> \"0.0000\",\n\t\t\t\t\t\t\t\t\t\t\t\"discount_percentage\"\t=> NULL,\n\t\t\t\t\t\t\t\t\t\t\t\"StdFlagfall\"\t\t\t=> \"0.0000\",\n\t\t\t\t\t\t\t\t\t\t\t\"StdUnits\"\t\t\t\t=> 1,\n\t\t\t\t\t\t\t\t\t\t\t\"StdRatePerUnit\"\t\t=> \"0.00000000\",\n\t\t\t\t\t\t\t\t\t\t\t\"StdMarkup\"\t\t\t\t=> \"0.00000000\",\n\t\t\t\t\t\t\t\t\t\t\t\"StdPercentage\"\t\t\t=> \"0.0000\",\n\t\t\t\t\t\t\t\t\t\t\t\"CapUnits\"\t\t\t\t=> 0,\n\t\t\t\t\t\t\t\t\t\t\t\"CapCost\"\t\t\t\t=> \"0.0000\",\n\t\t\t\t\t\t\t\t\t\t\t\"CapUsage\"\t\t\t\t=> 0,\n\t\t\t\t\t\t\t\t\t\t\t\"CapLimit\"\t\t\t\t=> \"0.0000\",\n\t\t\t\t\t\t\t\t\t\t\t\"ExsFlagfall\"\t\t\t=> \"0.0000\",\n\t\t\t\t\t\t\t\t\t\t\t\"ExsUnits\"\t\t\t\t=> 0,\n\t\t\t\t\t\t\t\t\t\t\t\"ExsRatePerUnit\"\t\t=> \"0.00000000\",\n\t\t\t\t\t\t\t\t\t\t\t\"ExsMarkup\"\t\t\t\t=> \"0.00000000\",\n\t\t\t\t\t\t\t\t\t\t\t\"ExsPercentage\"\t\t\t=> \"0.0000\"\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t$strRateGroupCSV .= MakeCSVLine($arrRateGroupColumns);\n\t\t\t$strRateGroupCSV .= MakeCSVLine($arrBlankRateGroup);\n\t\t\t$strRateGroupCSV .= \"\\n\";\n\t\t\t$strRateGroupCSV .= MakeCSVLine($arrRateColumnNames);\n\t\t\t\n\t\t\tif (DBO()->RecordType->Context->Value > 0)\n\t\t\t{\n\t\t\t\t// load the destinations\n\t\t\t\tDBL()->Destination->Context = DBO()->RecordType->Context->Value;\n\t\t\t\tDBL()->Destination->OrderBy(\"Description ASC\");\n\t\t\t\tDBL()->Destination->Load();\n\t\t\t\t\n\t\t\t\tforeach(DBL()->Destination as $dboDestination)\n\t\t\t\t{\n\t\t\t\t\t$arrRate['DestinationCode'] = $dboDestination->Code->Value;\n\t\t\t\t\t$arrRate['DestinationDescription'] = $dboDestination->Description->Value;\n\t\t\t\t\t\n\t\t\t\t\t$strRateGroupCSV .= MakeCSVLine($arrRate);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// not destination based so set destination code and destination description to null when output into CSV rate Id is always set to null as no rates\n\t\t\t\t$arrRate['RateName'] = \"<RateGroupName>\";\n\t\t\t\t$arrRate[\"RateDescription\"] = \"<RateGroupName>\";\n\t\t\t\t\n\t\t\t\t$strRateGroupCSV .= MakeCSVLine($arrRate);\n\t\t\t}\n\n\n\t\t\t$strFilename = DBO()->RecordType->Name->Value .\" - Skeleton\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// The Input parameters have not been set up properly for this function\n\t\t\t//TODO! The user should probably be warned, however this function is not being triggered via an ajax call,\n\t\t\t// so we can't use popups. For now it is acceptable to just have the process die\n\t\t\tdie;\n\t\t}\n\t\t\n\t\t// Convert the filename to lower case and use underscores instead of spaces\n\t\t$strFilename = str_replace('\"', \"'\", $strFilename);\n\t\t$strFilename = strtolower($strFilename) . \".csv\";\n\t\t$strFilename = str_replace(\" \", \"_\", $strFilename);\n\t\t\n\t\t// Send the csv file to the user\n\t\theader(\"Content-Type: text/csv\");\n\t\theader(\"Content-Disposition: attachment; filename=\\\"$strFilename\\\"\");\n\t\techo $strRateGroupCSV;\n\t\texit;\n\t}", "title": "" }, { "docid": "e67bfe9783ae90c2f53edf54bc24877f", "score": "0.53442997", "text": "public function doExport()\n {\n // If the operation mode is production, force the csv file to be downloaded.\n if($this->operationMode === \"production\"){\n \t$filename = $_SERVER[\"DOCUMENT_ROOT\"] . \"/tmp/file.csv\";\n header(\"Content-type: application/csv\");\n header(\"Content-Disposition: attachment; filename={$filename}\");\n header(\"Pragma: no-cache\");\n header(\"Expires: 0\");\n }\n \n foreach($this->columnHeaders as $header){\n $this->headersString .= $this->fieldEncapsulator;\n $this->headersString .= $header;\n $this->headersString .= $this->fieldEncapsulator;\n $this->headersString .= $this->fieldTerminator;\n }\n\n // Loop through each of the rows and columns.\n foreach($this->data as $row){\n foreach($row as $col){\n $this->exportString .= $this->fieldEncapsulator;\n $this->exportString .= $col;\n $this->exportString .= $this->fieldEncapsulator;\n $this->exportString .= $this->fieldTerminator;\n }\n\n $this->exportString = substr($this->exportString, 0, strlen($this->exportString)-1);\n $this->exportString .= $this->lineBreaker;\n }\n \n // Trim the final comma from the export string.\n $headers = substr($this->headersString, 0, strlen($this->headersString)-1);\n //$export = substr($this->exportString, 0, strlen($this->exportString)-2);\n\n // Echo the data.\n print $headers;\n print $this->lineBreaker;\n print $this->exportString;\n die;\n }", "title": "" }, { "docid": "1a19a744cee8be283458fa14674f7279", "score": "0.53402966", "text": "public function export(){\n\t\t$_POST=$this->as_array();\n\t}", "title": "" }, { "docid": "52e498bab6b8b0cfd3259f4493033c65", "score": "0.5340109", "text": "function ExportDocument(&$Doc, &$Recordset, $StartRec, $StopRec, $ExportPageType = \"\") {\n\t\tif (!$Recordset || !$Doc)\n\t\t\treturn;\n\t\tif (!$Doc->ExportCustom) {\n\n\t\t\t// Write header\n\t\t\t$Doc->ExportTableHeader();\n\t\t\tif ($Doc->Horizontal) { // Horizontal format, write header\n\t\t\t\t$Doc->BeginExportRow();\n\t\t\t\tif ($ExportPageType == \"view\") {\n\t\t\t\t\tif ($this->id->Exportable) $Doc->ExportCaption($this->id);\n\t\t\t\t\tif ($this->nomer_sep->Exportable) $Doc->ExportCaption($this->nomer_sep);\n\t\t\t\t\tif ($this->nomr->Exportable) $Doc->ExportCaption($this->nomr);\n\t\t\t\t\tif ($this->no_kartubpjs->Exportable) $Doc->ExportCaption($this->no_kartubpjs);\n\t\t\t\t\tif ($this->jenis_layanan->Exportable) $Doc->ExportCaption($this->jenis_layanan);\n\t\t\t\t\tif ($this->tgl_sep->Exportable) $Doc->ExportCaption($this->tgl_sep);\n\t\t\t\t\tif ($this->tgl_rujukan->Exportable) $Doc->ExportCaption($this->tgl_rujukan);\n\t\t\t\t\tif ($this->kelas_rawat->Exportable) $Doc->ExportCaption($this->kelas_rawat);\n\t\t\t\t\tif ($this->no_rujukan->Exportable) $Doc->ExportCaption($this->no_rujukan);\n\t\t\t\t\tif ($this->ppk_asal->Exportable) $Doc->ExportCaption($this->ppk_asal);\n\t\t\t\t\tif ($this->nama_ppk->Exportable) $Doc->ExportCaption($this->nama_ppk);\n\t\t\t\t\tif ($this->ppk_pelayanan->Exportable) $Doc->ExportCaption($this->ppk_pelayanan);\n\t\t\t\t\tif ($this->catatan->Exportable) $Doc->ExportCaption($this->catatan);\n\t\t\t\t\tif ($this->kode_diagnosaawal->Exportable) $Doc->ExportCaption($this->kode_diagnosaawal);\n\t\t\t\t\tif ($this->nama_diagnosaawal->Exportable) $Doc->ExportCaption($this->nama_diagnosaawal);\n\t\t\t\t\tif ($this->laka_lantas->Exportable) $Doc->ExportCaption($this->laka_lantas);\n\t\t\t\t\tif ($this->lokasi_laka->Exportable) $Doc->ExportCaption($this->lokasi_laka);\n\t\t\t\t\tif ($this->user->Exportable) $Doc->ExportCaption($this->user);\n\t\t\t\t\tif ($this->nik->Exportable) $Doc->ExportCaption($this->nik);\n\t\t\t\t\tif ($this->kode_politujuan->Exportable) $Doc->ExportCaption($this->kode_politujuan);\n\t\t\t\t\tif ($this->nama_politujuan->Exportable) $Doc->ExportCaption($this->nama_politujuan);\n\t\t\t\t\tif ($this->dpjp->Exportable) $Doc->ExportCaption($this->dpjp);\n\t\t\t\t\tif ($this->idx->Exportable) $Doc->ExportCaption($this->idx);\n\t\t\t\t\tif ($this->last_update->Exportable) $Doc->ExportCaption($this->last_update);\n\t\t\t\t\tif ($this->pasien_baru->Exportable) $Doc->ExportCaption($this->pasien_baru);\n\t\t\t\t\tif ($this->cara_bayar->Exportable) $Doc->ExportCaption($this->cara_bayar);\n\t\t\t\t\tif ($this->petugas_klaim->Exportable) $Doc->ExportCaption($this->petugas_klaim);\n\t\t\t\t\tif ($this->total_biaya_rs->Exportable) $Doc->ExportCaption($this->total_biaya_rs);\n\t\t\t\t\tif ($this->total_biaya_rs_adjust->Exportable) $Doc->ExportCaption($this->total_biaya_rs_adjust);\n\t\t\t\t\tif ($this->tgl_pulang->Exportable) $Doc->ExportCaption($this->tgl_pulang);\n\t\t\t\t\tif ($this->flag_proc->Exportable) $Doc->ExportCaption($this->flag_proc);\n\t\t\t\t\tif ($this->poli_eksekutif->Exportable) $Doc->ExportCaption($this->poli_eksekutif);\n\t\t\t\t\tif ($this->cob->Exportable) $Doc->ExportCaption($this->cob);\n\t\t\t\t\tif ($this->penjamin_laka->Exportable) $Doc->ExportCaption($this->penjamin_laka);\n\t\t\t\t\tif ($this->no_telp->Exportable) $Doc->ExportCaption($this->no_telp);\n\t\t\t\t\tif ($this->status_kepesertaan_bpjs->Exportable) $Doc->ExportCaption($this->status_kepesertaan_bpjs);\n\t\t\t\t\tif ($this->faskes_id->Exportable) $Doc->ExportCaption($this->faskes_id);\n\t\t\t\t\tif ($this->nama_layanan->Exportable) $Doc->ExportCaption($this->nama_layanan);\n\t\t\t\t\tif ($this->nama_kelas->Exportable) $Doc->ExportCaption($this->nama_kelas);\n\t\t\t\t\tif ($this->table_source->Exportable) $Doc->ExportCaption($this->table_source);\n\t\t\t\t} else {\n\t\t\t\t\tif ($this->id->Exportable) $Doc->ExportCaption($this->id);\n\t\t\t\t\tif ($this->nomer_sep->Exportable) $Doc->ExportCaption($this->nomer_sep);\n\t\t\t\t\tif ($this->nomr->Exportable) $Doc->ExportCaption($this->nomr);\n\t\t\t\t\tif ($this->no_kartubpjs->Exportable) $Doc->ExportCaption($this->no_kartubpjs);\n\t\t\t\t\tif ($this->jenis_layanan->Exportable) $Doc->ExportCaption($this->jenis_layanan);\n\t\t\t\t\tif ($this->tgl_sep->Exportable) $Doc->ExportCaption($this->tgl_sep);\n\t\t\t\t\tif ($this->tgl_rujukan->Exportable) $Doc->ExportCaption($this->tgl_rujukan);\n\t\t\t\t\tif ($this->kelas_rawat->Exportable) $Doc->ExportCaption($this->kelas_rawat);\n\t\t\t\t\tif ($this->no_rujukan->Exportable) $Doc->ExportCaption($this->no_rujukan);\n\t\t\t\t\tif ($this->ppk_asal->Exportable) $Doc->ExportCaption($this->ppk_asal);\n\t\t\t\t\tif ($this->nama_ppk->Exportable) $Doc->ExportCaption($this->nama_ppk);\n\t\t\t\t\tif ($this->ppk_pelayanan->Exportable) $Doc->ExportCaption($this->ppk_pelayanan);\n\t\t\t\t\tif ($this->catatan->Exportable) $Doc->ExportCaption($this->catatan);\n\t\t\t\t\tif ($this->kode_diagnosaawal->Exportable) $Doc->ExportCaption($this->kode_diagnosaawal);\n\t\t\t\t\tif ($this->nama_diagnosaawal->Exportable) $Doc->ExportCaption($this->nama_diagnosaawal);\n\t\t\t\t\tif ($this->laka_lantas->Exportable) $Doc->ExportCaption($this->laka_lantas);\n\t\t\t\t\tif ($this->lokasi_laka->Exportable) $Doc->ExportCaption($this->lokasi_laka);\n\t\t\t\t\tif ($this->user->Exportable) $Doc->ExportCaption($this->user);\n\t\t\t\t\tif ($this->nik->Exportable) $Doc->ExportCaption($this->nik);\n\t\t\t\t\tif ($this->kode_politujuan->Exportable) $Doc->ExportCaption($this->kode_politujuan);\n\t\t\t\t\tif ($this->nama_politujuan->Exportable) $Doc->ExportCaption($this->nama_politujuan);\n\t\t\t\t\tif ($this->dpjp->Exportable) $Doc->ExportCaption($this->dpjp);\n\t\t\t\t\tif ($this->idx->Exportable) $Doc->ExportCaption($this->idx);\n\t\t\t\t\tif ($this->last_update->Exportable) $Doc->ExportCaption($this->last_update);\n\t\t\t\t\tif ($this->pasien_baru->Exportable) $Doc->ExportCaption($this->pasien_baru);\n\t\t\t\t\tif ($this->cara_bayar->Exportable) $Doc->ExportCaption($this->cara_bayar);\n\t\t\t\t\tif ($this->petugas_klaim->Exportable) $Doc->ExportCaption($this->petugas_klaim);\n\t\t\t\t\tif ($this->total_biaya_rs->Exportable) $Doc->ExportCaption($this->total_biaya_rs);\n\t\t\t\t\tif ($this->total_biaya_rs_adjust->Exportable) $Doc->ExportCaption($this->total_biaya_rs_adjust);\n\t\t\t\t\tif ($this->tgl_pulang->Exportable) $Doc->ExportCaption($this->tgl_pulang);\n\t\t\t\t\tif ($this->flag_proc->Exportable) $Doc->ExportCaption($this->flag_proc);\n\t\t\t\t\tif ($this->poli_eksekutif->Exportable) $Doc->ExportCaption($this->poli_eksekutif);\n\t\t\t\t\tif ($this->cob->Exportable) $Doc->ExportCaption($this->cob);\n\t\t\t\t\tif ($this->penjamin_laka->Exportable) $Doc->ExportCaption($this->penjamin_laka);\n\t\t\t\t\tif ($this->no_telp->Exportable) $Doc->ExportCaption($this->no_telp);\n\t\t\t\t\tif ($this->status_kepesertaan_bpjs->Exportable) $Doc->ExportCaption($this->status_kepesertaan_bpjs);\n\t\t\t\t\tif ($this->faskes_id->Exportable) $Doc->ExportCaption($this->faskes_id);\n\t\t\t\t\tif ($this->nama_layanan->Exportable) $Doc->ExportCaption($this->nama_layanan);\n\t\t\t\t\tif ($this->nama_kelas->Exportable) $Doc->ExportCaption($this->nama_kelas);\n\t\t\t\t\tif ($this->table_source->Exportable) $Doc->ExportCaption($this->table_source);\n\t\t\t\t}\n\t\t\t\t$Doc->EndExportRow();\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$RecCnt = $StartRec - 1;\n\t\tif (!$Recordset->EOF) {\n\t\t\t$Recordset->MoveFirst();\n\t\t\tif ($StartRec > 1)\n\t\t\t\t$Recordset->Move($StartRec - 1);\n\t\t}\n\t\twhile (!$Recordset->EOF && $RecCnt < $StopRec) {\n\t\t\t$RecCnt++;\n\t\t\tif (intval($RecCnt) >= intval($StartRec)) {\n\t\t\t\t$RowCnt = intval($RecCnt) - intval($StartRec) + 1;\n\n\t\t\t\t// Page break\n\t\t\t\tif ($this->ExportPageBreakCount > 0) {\n\t\t\t\t\tif ($RowCnt > 1 && ($RowCnt - 1) % $this->ExportPageBreakCount == 0)\n\t\t\t\t\t\t$Doc->ExportPageBreak();\n\t\t\t\t}\n\t\t\t\t$this->LoadListRowValues($Recordset);\n\n\t\t\t\t// Render row\n\t\t\t\t$this->RowType = EW_ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->ResetAttrs();\n\t\t\t\t$this->RenderListRow();\n\t\t\t\tif (!$Doc->ExportCustom) {\n\t\t\t\t\t$Doc->BeginExportRow($RowCnt); // Allow CSS styles if enabled\n\t\t\t\t\tif ($ExportPageType == \"view\") {\n\t\t\t\t\t\tif ($this->id->Exportable) $Doc->ExportField($this->id);\n\t\t\t\t\t\tif ($this->nomer_sep->Exportable) $Doc->ExportField($this->nomer_sep);\n\t\t\t\t\t\tif ($this->nomr->Exportable) $Doc->ExportField($this->nomr);\n\t\t\t\t\t\tif ($this->no_kartubpjs->Exportable) $Doc->ExportField($this->no_kartubpjs);\n\t\t\t\t\t\tif ($this->jenis_layanan->Exportable) $Doc->ExportField($this->jenis_layanan);\n\t\t\t\t\t\tif ($this->tgl_sep->Exportable) $Doc->ExportField($this->tgl_sep);\n\t\t\t\t\t\tif ($this->tgl_rujukan->Exportable) $Doc->ExportField($this->tgl_rujukan);\n\t\t\t\t\t\tif ($this->kelas_rawat->Exportable) $Doc->ExportField($this->kelas_rawat);\n\t\t\t\t\t\tif ($this->no_rujukan->Exportable) $Doc->ExportField($this->no_rujukan);\n\t\t\t\t\t\tif ($this->ppk_asal->Exportable) $Doc->ExportField($this->ppk_asal);\n\t\t\t\t\t\tif ($this->nama_ppk->Exportable) $Doc->ExportField($this->nama_ppk);\n\t\t\t\t\t\tif ($this->ppk_pelayanan->Exportable) $Doc->ExportField($this->ppk_pelayanan);\n\t\t\t\t\t\tif ($this->catatan->Exportable) $Doc->ExportField($this->catatan);\n\t\t\t\t\t\tif ($this->kode_diagnosaawal->Exportable) $Doc->ExportField($this->kode_diagnosaawal);\n\t\t\t\t\t\tif ($this->nama_diagnosaawal->Exportable) $Doc->ExportField($this->nama_diagnosaawal);\n\t\t\t\t\t\tif ($this->laka_lantas->Exportable) $Doc->ExportField($this->laka_lantas);\n\t\t\t\t\t\tif ($this->lokasi_laka->Exportable) $Doc->ExportField($this->lokasi_laka);\n\t\t\t\t\t\tif ($this->user->Exportable) $Doc->ExportField($this->user);\n\t\t\t\t\t\tif ($this->nik->Exportable) $Doc->ExportField($this->nik);\n\t\t\t\t\t\tif ($this->kode_politujuan->Exportable) $Doc->ExportField($this->kode_politujuan);\n\t\t\t\t\t\tif ($this->nama_politujuan->Exportable) $Doc->ExportField($this->nama_politujuan);\n\t\t\t\t\t\tif ($this->dpjp->Exportable) $Doc->ExportField($this->dpjp);\n\t\t\t\t\t\tif ($this->idx->Exportable) $Doc->ExportField($this->idx);\n\t\t\t\t\t\tif ($this->last_update->Exportable) $Doc->ExportField($this->last_update);\n\t\t\t\t\t\tif ($this->pasien_baru->Exportable) $Doc->ExportField($this->pasien_baru);\n\t\t\t\t\t\tif ($this->cara_bayar->Exportable) $Doc->ExportField($this->cara_bayar);\n\t\t\t\t\t\tif ($this->petugas_klaim->Exportable) $Doc->ExportField($this->petugas_klaim);\n\t\t\t\t\t\tif ($this->total_biaya_rs->Exportable) $Doc->ExportField($this->total_biaya_rs);\n\t\t\t\t\t\tif ($this->total_biaya_rs_adjust->Exportable) $Doc->ExportField($this->total_biaya_rs_adjust);\n\t\t\t\t\t\tif ($this->tgl_pulang->Exportable) $Doc->ExportField($this->tgl_pulang);\n\t\t\t\t\t\tif ($this->flag_proc->Exportable) $Doc->ExportField($this->flag_proc);\n\t\t\t\t\t\tif ($this->poli_eksekutif->Exportable) $Doc->ExportField($this->poli_eksekutif);\n\t\t\t\t\t\tif ($this->cob->Exportable) $Doc->ExportField($this->cob);\n\t\t\t\t\t\tif ($this->penjamin_laka->Exportable) $Doc->ExportField($this->penjamin_laka);\n\t\t\t\t\t\tif ($this->no_telp->Exportable) $Doc->ExportField($this->no_telp);\n\t\t\t\t\t\tif ($this->status_kepesertaan_bpjs->Exportable) $Doc->ExportField($this->status_kepesertaan_bpjs);\n\t\t\t\t\t\tif ($this->faskes_id->Exportable) $Doc->ExportField($this->faskes_id);\n\t\t\t\t\t\tif ($this->nama_layanan->Exportable) $Doc->ExportField($this->nama_layanan);\n\t\t\t\t\t\tif ($this->nama_kelas->Exportable) $Doc->ExportField($this->nama_kelas);\n\t\t\t\t\t\tif ($this->table_source->Exportable) $Doc->ExportField($this->table_source);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($this->id->Exportable) $Doc->ExportField($this->id);\n\t\t\t\t\t\tif ($this->nomer_sep->Exportable) $Doc->ExportField($this->nomer_sep);\n\t\t\t\t\t\tif ($this->nomr->Exportable) $Doc->ExportField($this->nomr);\n\t\t\t\t\t\tif ($this->no_kartubpjs->Exportable) $Doc->ExportField($this->no_kartubpjs);\n\t\t\t\t\t\tif ($this->jenis_layanan->Exportable) $Doc->ExportField($this->jenis_layanan);\n\t\t\t\t\t\tif ($this->tgl_sep->Exportable) $Doc->ExportField($this->tgl_sep);\n\t\t\t\t\t\tif ($this->tgl_rujukan->Exportable) $Doc->ExportField($this->tgl_rujukan);\n\t\t\t\t\t\tif ($this->kelas_rawat->Exportable) $Doc->ExportField($this->kelas_rawat);\n\t\t\t\t\t\tif ($this->no_rujukan->Exportable) $Doc->ExportField($this->no_rujukan);\n\t\t\t\t\t\tif ($this->ppk_asal->Exportable) $Doc->ExportField($this->ppk_asal);\n\t\t\t\t\t\tif ($this->nama_ppk->Exportable) $Doc->ExportField($this->nama_ppk);\n\t\t\t\t\t\tif ($this->ppk_pelayanan->Exportable) $Doc->ExportField($this->ppk_pelayanan);\n\t\t\t\t\t\tif ($this->catatan->Exportable) $Doc->ExportField($this->catatan);\n\t\t\t\t\t\tif ($this->kode_diagnosaawal->Exportable) $Doc->ExportField($this->kode_diagnosaawal);\n\t\t\t\t\t\tif ($this->nama_diagnosaawal->Exportable) $Doc->ExportField($this->nama_diagnosaawal);\n\t\t\t\t\t\tif ($this->laka_lantas->Exportable) $Doc->ExportField($this->laka_lantas);\n\t\t\t\t\t\tif ($this->lokasi_laka->Exportable) $Doc->ExportField($this->lokasi_laka);\n\t\t\t\t\t\tif ($this->user->Exportable) $Doc->ExportField($this->user);\n\t\t\t\t\t\tif ($this->nik->Exportable) $Doc->ExportField($this->nik);\n\t\t\t\t\t\tif ($this->kode_politujuan->Exportable) $Doc->ExportField($this->kode_politujuan);\n\t\t\t\t\t\tif ($this->nama_politujuan->Exportable) $Doc->ExportField($this->nama_politujuan);\n\t\t\t\t\t\tif ($this->dpjp->Exportable) $Doc->ExportField($this->dpjp);\n\t\t\t\t\t\tif ($this->idx->Exportable) $Doc->ExportField($this->idx);\n\t\t\t\t\t\tif ($this->last_update->Exportable) $Doc->ExportField($this->last_update);\n\t\t\t\t\t\tif ($this->pasien_baru->Exportable) $Doc->ExportField($this->pasien_baru);\n\t\t\t\t\t\tif ($this->cara_bayar->Exportable) $Doc->ExportField($this->cara_bayar);\n\t\t\t\t\t\tif ($this->petugas_klaim->Exportable) $Doc->ExportField($this->petugas_klaim);\n\t\t\t\t\t\tif ($this->total_biaya_rs->Exportable) $Doc->ExportField($this->total_biaya_rs);\n\t\t\t\t\t\tif ($this->total_biaya_rs_adjust->Exportable) $Doc->ExportField($this->total_biaya_rs_adjust);\n\t\t\t\t\t\tif ($this->tgl_pulang->Exportable) $Doc->ExportField($this->tgl_pulang);\n\t\t\t\t\t\tif ($this->flag_proc->Exportable) $Doc->ExportField($this->flag_proc);\n\t\t\t\t\t\tif ($this->poli_eksekutif->Exportable) $Doc->ExportField($this->poli_eksekutif);\n\t\t\t\t\t\tif ($this->cob->Exportable) $Doc->ExportField($this->cob);\n\t\t\t\t\t\tif ($this->penjamin_laka->Exportable) $Doc->ExportField($this->penjamin_laka);\n\t\t\t\t\t\tif ($this->no_telp->Exportable) $Doc->ExportField($this->no_telp);\n\t\t\t\t\t\tif ($this->status_kepesertaan_bpjs->Exportable) $Doc->ExportField($this->status_kepesertaan_bpjs);\n\t\t\t\t\t\tif ($this->faskes_id->Exportable) $Doc->ExportField($this->faskes_id);\n\t\t\t\t\t\tif ($this->nama_layanan->Exportable) $Doc->ExportField($this->nama_layanan);\n\t\t\t\t\t\tif ($this->nama_kelas->Exportable) $Doc->ExportField($this->nama_kelas);\n\t\t\t\t\t\tif ($this->table_source->Exportable) $Doc->ExportField($this->table_source);\n\t\t\t\t\t}\n\t\t\t\t\t$Doc->EndExportRow();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call Row Export server event\n\t\t\tif ($Doc->ExportCustom)\n\t\t\t\t$this->Row_Export($Recordset->fields);\n\t\t\t$Recordset->MoveNext();\n\t\t}\n\t\tif (!$Doc->ExportCustom) {\n\t\t\t$Doc->ExportTableFooter();\n\t\t}\n\t}", "title": "" }, { "docid": "3a45d124ef712ba57703305e592ee249", "score": "0.5339615", "text": "function ExportDocument(&$Doc, &$Recordset, $StartRec, $StopRec, $ExportPageType = \"\") {\n\t\tif (!$Recordset || !$Doc)\n\t\t\treturn;\n\t\tif (!$Doc->ExportCustom) {\n\n\t\t\t// Write header\n\t\t\t$Doc->ExportTableHeader();\n\t\t\tif ($Doc->Horizontal) { // Horizontal format, write header\n\t\t\t\t$Doc->BeginExportRow();\n\t\t\t\tif ($ExportPageType == \"view\") {\n\t\t\t\t\tif ($this->id->Exportable) $Doc->ExportCaption($this->id);\n\t\t\t\t\tif ($this->user_id->Exportable) $Doc->ExportCaption($this->user_id);\n\t\t\t\t\tif ($this->password->Exportable) $Doc->ExportCaption($this->password);\n\t\t\t\t\tif ($this->real_name->Exportable) $Doc->ExportCaption($this->real_name);\n\t\t\t\t\tif ($this->role_id->Exportable) $Doc->ExportCaption($this->role_id);\n\t\t\t\t\tif ($this->phone->Exportable) $Doc->ExportCaption($this->phone);\n\t\t\t\t\tif ($this->_email->Exportable) $Doc->ExportCaption($this->_email);\n\t\t\t\t\tif ($this->_language->Exportable) $Doc->ExportCaption($this->_language);\n\t\t\t\t\tif ($this->date_format->Exportable) $Doc->ExportCaption($this->date_format);\n\t\t\t\t\tif ($this->date_sep->Exportable) $Doc->ExportCaption($this->date_sep);\n\t\t\t\t\tif ($this->tho_sep->Exportable) $Doc->ExportCaption($this->tho_sep);\n\t\t\t\t\tif ($this->dec_sep->Exportable) $Doc->ExportCaption($this->dec_sep);\n\t\t\t\t\tif ($this->theme->Exportable) $Doc->ExportCaption($this->theme);\n\t\t\t\t\tif ($this->page_size->Exportable) $Doc->ExportCaption($this->page_size);\n\t\t\t\t\tif ($this->prices_dec->Exportable) $Doc->ExportCaption($this->prices_dec);\n\t\t\t\t\tif ($this->qty_dec->Exportable) $Doc->ExportCaption($this->qty_dec);\n\t\t\t\t\tif ($this->rates_dec->Exportable) $Doc->ExportCaption($this->rates_dec);\n\t\t\t\t\tif ($this->percent_dec->Exportable) $Doc->ExportCaption($this->percent_dec);\n\t\t\t\t\tif ($this->show_gl->Exportable) $Doc->ExportCaption($this->show_gl);\n\t\t\t\t\tif ($this->show_codes->Exportable) $Doc->ExportCaption($this->show_codes);\n\t\t\t\t\tif ($this->show_hints->Exportable) $Doc->ExportCaption($this->show_hints);\n\t\t\t\t\tif ($this->last_visit_date->Exportable) $Doc->ExportCaption($this->last_visit_date);\n\t\t\t\t\tif ($this->query_size->Exportable) $Doc->ExportCaption($this->query_size);\n\t\t\t\t\tif ($this->graphic_links->Exportable) $Doc->ExportCaption($this->graphic_links);\n\t\t\t\t\tif ($this->pos->Exportable) $Doc->ExportCaption($this->pos);\n\t\t\t\t\tif ($this->print_profile->Exportable) $Doc->ExportCaption($this->print_profile);\n\t\t\t\t\tif ($this->rep_popup->Exportable) $Doc->ExportCaption($this->rep_popup);\n\t\t\t\t\tif ($this->sticky_doc_date->Exportable) $Doc->ExportCaption($this->sticky_doc_date);\n\t\t\t\t\tif ($this->startup_tab->Exportable) $Doc->ExportCaption($this->startup_tab);\n\t\t\t\t\tif ($this->transaction_days->Exportable) $Doc->ExportCaption($this->transaction_days);\n\t\t\t\t\tif ($this->save_report_selections->Exportable) $Doc->ExportCaption($this->save_report_selections);\n\t\t\t\t\tif ($this->use_date_picker->Exportable) $Doc->ExportCaption($this->use_date_picker);\n\t\t\t\t\tif ($this->def_print_destination->Exportable) $Doc->ExportCaption($this->def_print_destination);\n\t\t\t\t\tif ($this->def_print_orientation->Exportable) $Doc->ExportCaption($this->def_print_orientation);\n\t\t\t\t\tif ($this->inactive->Exportable) $Doc->ExportCaption($this->inactive);\n\t\t\t\t\tif ($this->is_local->Exportable) $Doc->ExportCaption($this->is_local);\n\t\t\t\t} else {\n\t\t\t\t\tif ($this->id->Exportable) $Doc->ExportCaption($this->id);\n\t\t\t\t\tif ($this->user_id->Exportable) $Doc->ExportCaption($this->user_id);\n\t\t\t\t\tif ($this->password->Exportable) $Doc->ExportCaption($this->password);\n\t\t\t\t\tif ($this->real_name->Exportable) $Doc->ExportCaption($this->real_name);\n\t\t\t\t\tif ($this->role_id->Exportable) $Doc->ExportCaption($this->role_id);\n\t\t\t\t\tif ($this->phone->Exportable) $Doc->ExportCaption($this->phone);\n\t\t\t\t\tif ($this->_email->Exportable) $Doc->ExportCaption($this->_email);\n\t\t\t\t\tif ($this->_language->Exportable) $Doc->ExportCaption($this->_language);\n\t\t\t\t\tif ($this->date_format->Exportable) $Doc->ExportCaption($this->date_format);\n\t\t\t\t\tif ($this->date_sep->Exportable) $Doc->ExportCaption($this->date_sep);\n\t\t\t\t\tif ($this->tho_sep->Exportable) $Doc->ExportCaption($this->tho_sep);\n\t\t\t\t\tif ($this->dec_sep->Exportable) $Doc->ExportCaption($this->dec_sep);\n\t\t\t\t\tif ($this->theme->Exportable) $Doc->ExportCaption($this->theme);\n\t\t\t\t\tif ($this->page_size->Exportable) $Doc->ExportCaption($this->page_size);\n\t\t\t\t\tif ($this->prices_dec->Exportable) $Doc->ExportCaption($this->prices_dec);\n\t\t\t\t\tif ($this->qty_dec->Exportable) $Doc->ExportCaption($this->qty_dec);\n\t\t\t\t\tif ($this->rates_dec->Exportable) $Doc->ExportCaption($this->rates_dec);\n\t\t\t\t\tif ($this->percent_dec->Exportable) $Doc->ExportCaption($this->percent_dec);\n\t\t\t\t\tif ($this->show_gl->Exportable) $Doc->ExportCaption($this->show_gl);\n\t\t\t\t\tif ($this->show_codes->Exportable) $Doc->ExportCaption($this->show_codes);\n\t\t\t\t\tif ($this->show_hints->Exportable) $Doc->ExportCaption($this->show_hints);\n\t\t\t\t\tif ($this->last_visit_date->Exportable) $Doc->ExportCaption($this->last_visit_date);\n\t\t\t\t\tif ($this->query_size->Exportable) $Doc->ExportCaption($this->query_size);\n\t\t\t\t\tif ($this->graphic_links->Exportable) $Doc->ExportCaption($this->graphic_links);\n\t\t\t\t\tif ($this->pos->Exportable) $Doc->ExportCaption($this->pos);\n\t\t\t\t\tif ($this->print_profile->Exportable) $Doc->ExportCaption($this->print_profile);\n\t\t\t\t\tif ($this->rep_popup->Exportable) $Doc->ExportCaption($this->rep_popup);\n\t\t\t\t\tif ($this->sticky_doc_date->Exportable) $Doc->ExportCaption($this->sticky_doc_date);\n\t\t\t\t\tif ($this->startup_tab->Exportable) $Doc->ExportCaption($this->startup_tab);\n\t\t\t\t\tif ($this->transaction_days->Exportable) $Doc->ExportCaption($this->transaction_days);\n\t\t\t\t\tif ($this->save_report_selections->Exportable) $Doc->ExportCaption($this->save_report_selections);\n\t\t\t\t\tif ($this->use_date_picker->Exportable) $Doc->ExportCaption($this->use_date_picker);\n\t\t\t\t\tif ($this->def_print_destination->Exportable) $Doc->ExportCaption($this->def_print_destination);\n\t\t\t\t\tif ($this->def_print_orientation->Exportable) $Doc->ExportCaption($this->def_print_orientation);\n\t\t\t\t\tif ($this->inactive->Exportable) $Doc->ExportCaption($this->inactive);\n\t\t\t\t\tif ($this->is_local->Exportable) $Doc->ExportCaption($this->is_local);\n\t\t\t\t}\n\t\t\t\t$Doc->EndExportRow();\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$RecCnt = $StartRec - 1;\n\t\tif (!$Recordset->EOF) {\n\t\t\t$Recordset->MoveFirst();\n\t\t\tif ($StartRec > 1)\n\t\t\t\t$Recordset->Move($StartRec - 1);\n\t\t}\n\t\twhile (!$Recordset->EOF && $RecCnt < $StopRec) {\n\t\t\t$RecCnt++;\n\t\t\tif (intval($RecCnt) >= intval($StartRec)) {\n\t\t\t\t$RowCnt = intval($RecCnt) - intval($StartRec) + 1;\n\n\t\t\t\t// Page break\n\t\t\t\tif ($this->ExportPageBreakCount > 0) {\n\t\t\t\t\tif ($RowCnt > 1 && ($RowCnt - 1) % $this->ExportPageBreakCount == 0)\n\t\t\t\t\t\t$Doc->ExportPageBreak();\n\t\t\t\t}\n\t\t\t\t$this->LoadListRowValues($Recordset);\n\n\t\t\t\t// Render row\n\t\t\t\t$this->RowType = EW_ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->ResetAttrs();\n\t\t\t\t$this->RenderListRow();\n\t\t\t\tif (!$Doc->ExportCustom) {\n\t\t\t\t\t$Doc->BeginExportRow($RowCnt); // Allow CSS styles if enabled\n\t\t\t\t\tif ($ExportPageType == \"view\") {\n\t\t\t\t\t\tif ($this->id->Exportable) $Doc->ExportField($this->id);\n\t\t\t\t\t\tif ($this->user_id->Exportable) $Doc->ExportField($this->user_id);\n\t\t\t\t\t\tif ($this->password->Exportable) $Doc->ExportField($this->password);\n\t\t\t\t\t\tif ($this->real_name->Exportable) $Doc->ExportField($this->real_name);\n\t\t\t\t\t\tif ($this->role_id->Exportable) $Doc->ExportField($this->role_id);\n\t\t\t\t\t\tif ($this->phone->Exportable) $Doc->ExportField($this->phone);\n\t\t\t\t\t\tif ($this->_email->Exportable) $Doc->ExportField($this->_email);\n\t\t\t\t\t\tif ($this->_language->Exportable) $Doc->ExportField($this->_language);\n\t\t\t\t\t\tif ($this->date_format->Exportable) $Doc->ExportField($this->date_format);\n\t\t\t\t\t\tif ($this->date_sep->Exportable) $Doc->ExportField($this->date_sep);\n\t\t\t\t\t\tif ($this->tho_sep->Exportable) $Doc->ExportField($this->tho_sep);\n\t\t\t\t\t\tif ($this->dec_sep->Exportable) $Doc->ExportField($this->dec_sep);\n\t\t\t\t\t\tif ($this->theme->Exportable) $Doc->ExportField($this->theme);\n\t\t\t\t\t\tif ($this->page_size->Exportable) $Doc->ExportField($this->page_size);\n\t\t\t\t\t\tif ($this->prices_dec->Exportable) $Doc->ExportField($this->prices_dec);\n\t\t\t\t\t\tif ($this->qty_dec->Exportable) $Doc->ExportField($this->qty_dec);\n\t\t\t\t\t\tif ($this->rates_dec->Exportable) $Doc->ExportField($this->rates_dec);\n\t\t\t\t\t\tif ($this->percent_dec->Exportable) $Doc->ExportField($this->percent_dec);\n\t\t\t\t\t\tif ($this->show_gl->Exportable) $Doc->ExportField($this->show_gl);\n\t\t\t\t\t\tif ($this->show_codes->Exportable) $Doc->ExportField($this->show_codes);\n\t\t\t\t\t\tif ($this->show_hints->Exportable) $Doc->ExportField($this->show_hints);\n\t\t\t\t\t\tif ($this->last_visit_date->Exportable) $Doc->ExportField($this->last_visit_date);\n\t\t\t\t\t\tif ($this->query_size->Exportable) $Doc->ExportField($this->query_size);\n\t\t\t\t\t\tif ($this->graphic_links->Exportable) $Doc->ExportField($this->graphic_links);\n\t\t\t\t\t\tif ($this->pos->Exportable) $Doc->ExportField($this->pos);\n\t\t\t\t\t\tif ($this->print_profile->Exportable) $Doc->ExportField($this->print_profile);\n\t\t\t\t\t\tif ($this->rep_popup->Exportable) $Doc->ExportField($this->rep_popup);\n\t\t\t\t\t\tif ($this->sticky_doc_date->Exportable) $Doc->ExportField($this->sticky_doc_date);\n\t\t\t\t\t\tif ($this->startup_tab->Exportable) $Doc->ExportField($this->startup_tab);\n\t\t\t\t\t\tif ($this->transaction_days->Exportable) $Doc->ExportField($this->transaction_days);\n\t\t\t\t\t\tif ($this->save_report_selections->Exportable) $Doc->ExportField($this->save_report_selections);\n\t\t\t\t\t\tif ($this->use_date_picker->Exportable) $Doc->ExportField($this->use_date_picker);\n\t\t\t\t\t\tif ($this->def_print_destination->Exportable) $Doc->ExportField($this->def_print_destination);\n\t\t\t\t\t\tif ($this->def_print_orientation->Exportable) $Doc->ExportField($this->def_print_orientation);\n\t\t\t\t\t\tif ($this->inactive->Exportable) $Doc->ExportField($this->inactive);\n\t\t\t\t\t\tif ($this->is_local->Exportable) $Doc->ExportField($this->is_local);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($this->id->Exportable) $Doc->ExportField($this->id);\n\t\t\t\t\t\tif ($this->user_id->Exportable) $Doc->ExportField($this->user_id);\n\t\t\t\t\t\tif ($this->password->Exportable) $Doc->ExportField($this->password);\n\t\t\t\t\t\tif ($this->real_name->Exportable) $Doc->ExportField($this->real_name);\n\t\t\t\t\t\tif ($this->role_id->Exportable) $Doc->ExportField($this->role_id);\n\t\t\t\t\t\tif ($this->phone->Exportable) $Doc->ExportField($this->phone);\n\t\t\t\t\t\tif ($this->_email->Exportable) $Doc->ExportField($this->_email);\n\t\t\t\t\t\tif ($this->_language->Exportable) $Doc->ExportField($this->_language);\n\t\t\t\t\t\tif ($this->date_format->Exportable) $Doc->ExportField($this->date_format);\n\t\t\t\t\t\tif ($this->date_sep->Exportable) $Doc->ExportField($this->date_sep);\n\t\t\t\t\t\tif ($this->tho_sep->Exportable) $Doc->ExportField($this->tho_sep);\n\t\t\t\t\t\tif ($this->dec_sep->Exportable) $Doc->ExportField($this->dec_sep);\n\t\t\t\t\t\tif ($this->theme->Exportable) $Doc->ExportField($this->theme);\n\t\t\t\t\t\tif ($this->page_size->Exportable) $Doc->ExportField($this->page_size);\n\t\t\t\t\t\tif ($this->prices_dec->Exportable) $Doc->ExportField($this->prices_dec);\n\t\t\t\t\t\tif ($this->qty_dec->Exportable) $Doc->ExportField($this->qty_dec);\n\t\t\t\t\t\tif ($this->rates_dec->Exportable) $Doc->ExportField($this->rates_dec);\n\t\t\t\t\t\tif ($this->percent_dec->Exportable) $Doc->ExportField($this->percent_dec);\n\t\t\t\t\t\tif ($this->show_gl->Exportable) $Doc->ExportField($this->show_gl);\n\t\t\t\t\t\tif ($this->show_codes->Exportable) $Doc->ExportField($this->show_codes);\n\t\t\t\t\t\tif ($this->show_hints->Exportable) $Doc->ExportField($this->show_hints);\n\t\t\t\t\t\tif ($this->last_visit_date->Exportable) $Doc->ExportField($this->last_visit_date);\n\t\t\t\t\t\tif ($this->query_size->Exportable) $Doc->ExportField($this->query_size);\n\t\t\t\t\t\tif ($this->graphic_links->Exportable) $Doc->ExportField($this->graphic_links);\n\t\t\t\t\t\tif ($this->pos->Exportable) $Doc->ExportField($this->pos);\n\t\t\t\t\t\tif ($this->print_profile->Exportable) $Doc->ExportField($this->print_profile);\n\t\t\t\t\t\tif ($this->rep_popup->Exportable) $Doc->ExportField($this->rep_popup);\n\t\t\t\t\t\tif ($this->sticky_doc_date->Exportable) $Doc->ExportField($this->sticky_doc_date);\n\t\t\t\t\t\tif ($this->startup_tab->Exportable) $Doc->ExportField($this->startup_tab);\n\t\t\t\t\t\tif ($this->transaction_days->Exportable) $Doc->ExportField($this->transaction_days);\n\t\t\t\t\t\tif ($this->save_report_selections->Exportable) $Doc->ExportField($this->save_report_selections);\n\t\t\t\t\t\tif ($this->use_date_picker->Exportable) $Doc->ExportField($this->use_date_picker);\n\t\t\t\t\t\tif ($this->def_print_destination->Exportable) $Doc->ExportField($this->def_print_destination);\n\t\t\t\t\t\tif ($this->def_print_orientation->Exportable) $Doc->ExportField($this->def_print_orientation);\n\t\t\t\t\t\tif ($this->inactive->Exportable) $Doc->ExportField($this->inactive);\n\t\t\t\t\t\tif ($this->is_local->Exportable) $Doc->ExportField($this->is_local);\n\t\t\t\t\t}\n\t\t\t\t\t$Doc->EndExportRow($RowCnt);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call Row Export server event\n\t\t\tif ($Doc->ExportCustom)\n\t\t\t\t$this->Row_Export($Recordset->fields);\n\t\t\t$Recordset->MoveNext();\n\t\t}\n\t\tif (!$Doc->ExportCustom) {\n\t\t\t$Doc->ExportTableFooter();\n\t\t}\n\t}", "title": "" }, { "docid": "4a2788750453da004320df6b51c22223", "score": "0.5336319", "text": "public function to_exportable_data() {\n\n\t\tif ( ! Forminator::is_import_export_feature_enabled() ) {\n\t\t\treturn array();\n\t\t}\n\n\t\tif ( Forminator::is_export_integrations_feature_enabled() ) {\n\t\t\tadd_filter( 'forminator_form_model_to_exportable_data', array( $this, 'export_integrations_data' ), 1, 1 );\n\t\t}\n\n\t\t$exportable_data = parent::to_exportable_data();\n\n\t\t// avoid filter executed on next cycle\n\t\tremove_filter( 'forminator_form_model_to_exportable_data', array( $this, 'export_integrations_data' ), 1 );\n\n\t\treturn $exportable_data;\n\t}", "title": "" }, { "docid": "7e1145467c4cb090c7833e86a9a27d4a", "score": "0.53361857", "text": "public function exportCsvAction()\n {\n $fileName = 'post.csv';\n $content = $this->getLayout()->createBlock('tech_blog/adminhtml_post_grid')\n ->getCsv();\n $this->_prepareDownloadResponse($fileName, $content);\n }", "title": "" }, { "docid": "c3c44ea9e70a4525f33b569ff1175c89", "score": "0.5321148", "text": "function thb_export() {\n\t\t$exportOptions = isset($_POST['export_options']) && $_POST['export_options'] == 1;\n\t\t$exportMods = isset($_POST['export_mods']) && $_POST['export_mods'] == 1;\n\t\t// $exportDuplicable = isset($_POST['export_duplicable']) && $_POST['export_duplicable'] == 1;\n\n\t\t$data = array();\n\t\t$filename = 'thb-export';\n\n\t\tif( $exportOptions ) {\n\t\t\t$thb_theme = thb_theme();\n\t\t\t$data['options'] = $thb_theme->getOptions();\n\t\t\t$data['duplicable'] = thb_duplicable_get_all();\n\n\t\t\t$filename .= '-options';\n\t\t}\n\n\t\tif( $exportMods ) {\n\t\t\t$data['mods'] = get_theme_mods();\n\n\t\t\t$filename .= '-skin';\n\t\t}\n\n\t\tif ( isset( $data['options'][0] ) && ! is_array( $data['options'][0] ) ) {\n\t\t\tunset( $data['options'][0] );\n\t\t}\n\n\t\tif ( isset( $data['mods'][0] ) && ! is_array( $data['mods'][0] ) ) {\n\t\t\tunset( $data['mods'][0] );\n\t\t}\n\n\t\tif ( isset( $data['duplicable'][0] ) && ! is_array( $data['duplicable'][0] ) ) {\n\t\t\tunset( $data['duplicable'][0] );\n\t\t}\n\n\t\tthb_export_data($data, $filename);\n\t}", "title": "" }, { "docid": "19722e5585d12f91d08be8e0638e8e4d", "score": "0.53194726", "text": "function admin_exportcausecsv() {\n\t\t//$this->set(\"schoolId\",$schoolId);\n\t\t\n\t\t\n\t\t/*$Page=$this->Member->find('all',array(\n\t\t'conditions'=>array(\n\t\t'Member.active !='=>'0'),\n\t\t'order'=>array(\n\t\t'Member.created'=>'desc')\n\t\t)\n\t\t);*/\n\t\t\n\t\t$Page = $this->Member->find('all', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'Member.group_id' => '6'\n\t\t\t)\n\t\t));\n\t\t//echo \"<pre>\";print_r($Page);exit;\n\t\t$data = \"S.No,Name,User Email,Address,Contact,Status\\n\";\n\t\t$i = 1;\n\t\tforeach ($Page as $pages):\n\t\t\t$data .= $i . \",\";\n\t\t\t\n\t\t\t$fullname = $pages['userMeta']['fname'] . ' ' . $pages['userMeta']['lname'];\n\t\t\t$data .= $fullname . \",\";\n\t\t\t$useremail = $pages['Member']['email'];\n\t\t\t$data .= $useremail . \",\";\n\t\t\t\n\t\t\t$address = $pages['userMeta']['address'] . ' ' . $pages['userMeta']['city'] . ' ' . $pages['userMeta']['state'] . ' ' . $pages['userMeta']['country'] . ' ' . $pages['userMeta']['zip'];\n\t\t\t\n\t\t\t$data .= $address . \",\";\n\t\t\t\n\t\t\t$contact = $pages['userMeta']['contact'];\n\t\t\t$data .= $contact . \",\";\n\t\t\t\n\t\t\t$sta = $pages['Member']['active'];\n\t\t\tif ($sta == 1) {\n\t\t\t\t$status = 'Active';\n\t\t\t} else {\n\t\t\t\t$status = 'Deactive';\n\t\t\t}\n\t\t\t$data .= $status . \"\\n\";\n\t\t\t\n\t\t\t$i++;\n\t\tendforeach;\n\t\techo $data;\n\t\theader(\"Content-type:text/octect-stream\");\n\t\theader(\"Content-Disposition:attachment;filename=Cause(\" . date('m/d/Y') . \").csv\");\n\t\tdie();\n\t}", "title": "" }, { "docid": "6c0f4ba247713882d250f15312a0d432", "score": "0.531656", "text": "public function export()\n {\n $items =$this->input->get_post('items',TRUE);\n $items_data = str_replace(\"row\",\"\",$items); \n $items_data = explode(\",\",$items_data);\n $data = $this->supplier_designation_mod->export();\n\n export_report($items_data);\n array_to_csv($data,\"Supplier-Designation.csv\");\n }", "title": "" }, { "docid": "ecbf662f7d19a07f4c0ce4ee33d3d936", "score": "0.5314146", "text": "public function export()\n {\n try {\n $counter = 0;\n $csv = [];\n\n $csv[$counter][] = 'ID';\n $csv[$counter][] = 'Gerder';\n $csv[$counter][] = 'Birthday';\n $csv[$counter][] = 'First Name';\n $csv[$counter][] = 'Last Name';\n $csv[$counter][] = 'Username';\n $csv[$counter][] = 'Company';\n $csv[$counter][] = 'Email';\n $csv[$counter][] = 'Phone';\n $csv[$counter][] = 'Fax';\n $csv[$counter][] = 'Last Login';\n $csv[$counter][] = 'Notes';\n\n $counter++;\n foreach ($this->sql_get($this->table, '', '', 'id ASC') as $data) {\n $csv[$counter][] = $data['id'];\n $csv[$counter][] = $data['gender'];\n $csv[$counter][] = date('m/d/Y', strtotime($data['birthday']));\n $csv[$counter][] = $data['first_name'];\n $csv[$counter][] = $data['last_name'];\n $csv[$counter][] = $data['username'];\n $csv[$counter][] = $data['company'];\n $csv[$counter][] = $data['email'];\n $csv[$counter][] = $data['phone'];\n $csv[$counter][] = $data['fax'];\n $csv[$counter][] = $this->format_sort_date($data['last_login']);\n $csv[$counter][] = $data['notes'];\n $counter++;\n }\n return $csv;\n } catch (Exception $e) {\n die('ERROR: '.__METHOD__.': '.$e->getMessage());\n }\n }", "title": "" }, { "docid": "e716d3f7231911993f52c0e109784d6d", "score": "0.5306003", "text": "public static function download_csv_file($export_fields, $filename = 'books.csv') {\n $books = DB::table('books')->select($export_fields)->get();\n $books = json_decode(json_encode($books), 1);\n $delimiter = ',';\n header(\"Content-Type: text/csv\");\n header(\"Content-Disposition: attachment; filename=\\\"$filename\\\"\");\t\n $fh = fopen( 'php://output', 'w' );\n $is_coloumn = true;\n if(!empty($books)) {\n foreach($books as $record) {\n if($is_coloumn) {\n fputcsv($fh, array_keys($record));\n $is_coloumn = false;\n }\t\t\n fputcsv($fh, array_values($record));\n }\n fclose($fh);\n }\n exit; \n }", "title": "" }, { "docid": "7cdc151dfbbd4134e549a7092730805f", "score": "0.53017765", "text": "public function exportAction(){\n\t\t$id = $this->params()->fromRoute('id');\n\t\t$type = $this->params()->fromRoute('type');\n\n\t\tif(empty($id)){\n\t\t\treturn $this->redirect()->toRoute('events');\n\t\t}\n\n\t\tif($type == \"ics\"){\n\t\t\theader('Content-type: text/calendar; charset=utf-8');\n\t\t\theader('Content-Disposition: attachment; filename=cal.ics');\n\t\t\t$url = $this->getRequest()->getServer('HTTP_HOST');\n\n\t\t\tdie($this->eventService->icsExporter($id, $url, $this->translator->getLocale()));\n\t\t}\n\n\t\treturn $this->redirect()->toRoute('events');\n\n\t}", "title": "" }, { "docid": "97b8d4edc67dd9ac6fa762f4e0afc22d", "score": "0.52981293", "text": "public function export()\n {\n $objWriter = new PHPExcel_Writer_Excel5($this->objPHPExcel);\n header(\"Pragma: public\");\n header(\"Expires: 0\");\n header(\"Cache-Control: must-revalidate, post-check=0, pre-check=0\"); \n header(\"Content-Type: application/force-download\");\n header(\"Content-Type: application/octet-stream\");\n header(\"Content-Type: application/download\");;\n header(\"Content-Disposition: attachment;filename=citizens.xls\"); \n header(\"Content-Transfer-Encoding: binary\");\n $objWriter->save('php://output');\n }", "title": "" }, { "docid": "b5dfdd8159cf90b2c35efef77db1af30", "score": "0.5293948", "text": "public function downloadData($type)\n {\n\n return (new FormatodpExport)->download('invoices.xlsx');\n \n }", "title": "" }, { "docid": "b8808ce0fcdbece44379e527f75997c2", "score": "0.52843153", "text": "public function export_tab_filter();", "title": "" }, { "docid": "b40c501ec96bf1e21682b1c233a012fb", "score": "0.5282915", "text": "public static function exportMultiple(string $type = \"file\", $databases){\n switch($type){\n case 'file': \n foreach($databases as $database){\n self::toFile($database);\n }\n break;\n\n case 'all':\n case 'email' : \n foreach($databases as $database){\n self::toEmail($database);\n }\n\n break; \n\n default:\n foreach($databases as $database){\n self::toFile($database);\n }\n break;\n }\n }", "title": "" }, { "docid": "931db3658085a9584f6f08c17feeb2c9", "score": "0.5277707", "text": "public function formatValuesExport()\n\t{\n\t\tif (JFactory::getApplication()->input->get('params_export_attachment')=='2' and count($this->_fieldValues)) {\n\t\t\t$pathTemp = JPATH_SITE . '/' . $this->_typeParams->get('temp_path', 'tmp/fleximport/');\n\t\t\t$filePath = $this->_typeParams->get('filename', 'fleximport');\n\t\t\t$pathTemp = $pathTemp . JFolder::makeSafe($filePath);\n\t\t\tif (!JFolder::exists($pathTemp)) JFolder::create($pathTemp);\n\t\t\tforeach ($this->_fieldValues as $idv => $fieldValue) {\n\t\t\t\t$fileOk = false;\n\t\t\t\tif ($fieldInfo = $this->fileInfo($fieldValue)) {\n\t\t\t\t\tif ($fieldInfo->url) {\n\t\t\t\t\t\t// supprime les espaces\n\t\t\t\t\t\tif (copy(str_replace(' ', '%20', $fieldInfo->filename), $pathTemp . '/' . $fieldInfo->altname . \".\" . $fieldInfo->ext))\n\t\t\t\t\t\t\t$fileOk = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($fieldInfo->secure) {\n\t\t\t\t\t\t\t$flexiPath = COM_FLEXICONTENT_FILEPATH;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$flexiPath = COM_FLEXICONTENT_MEDIAPATH;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (JFile::copy($flexiPath . '/' . $fieldInfo->filename, $pathTemp . '/' . $fieldInfo->filename))\n\t\t\t\t\t\t\t$fileOk = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($fileOk){\n\t\t\t\t\t$this->_fieldValues[$idv] = $fieldInfo->filename;\n\t\t\t\t}else{\n\t\t\t\t\tunset($this->_fieldValues[$idv]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "2fc24f0cf84f063451bf146ee26d2ea1", "score": "0.5274431", "text": "function ExportCSVFile($records) {\n $fh = fopen( 'php://output', 'w' );\n $heading = false;\n if(!empty($records))\n foreach($records as $row) {\n if(!$heading) {\n // output the column headings\n fputcsv($fh, array_keys($row));\n $heading = true;\n }\n // loop over the rows, outputting them\n fputcsv($fh, array_values($row));\n \n }\n fclose($fh);\n}", "title": "" }, { "docid": "f2ac4a06dd3a78c86896c90b096ac632", "score": "0.52711815", "text": "public function go_export() {\n if( !$this->uri->segment(2) ) {\n show_error('Campaign token is required');\n return;\n }\n\n $campaign = $this->giving_impact\n ->campaign\n ->fetch($this->uri->segment(2));\n\n $opportunities = $campaign\n ->opportunities\n ->status('both')\n ->sort('title')\n ->fetch();\n\n $this->output\n ->set_header('Expires: Mon, 26 Jul 1997 05:00:00 GMT') // Date in the past\n ->set_header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT') // always modified\n ->set_header('Cache-Control: cache, must-revalidate') // HTTP/1.1\n ->set_header('Pragma: public') // HTTP/1.0\n ->set_header(sprintf(\n 'Content-Disposition: attachment; filename=\"%s\"',\n url_title($campaign->title).'_giving_opportunties.csv'\n ))\n ->set_content_type('csv')\n ->set_output(opportunities_to_csv($campaign, $opportunities));\n }", "title": "" }, { "docid": "4130c142e94d2d03f31e7a58a7e7e290", "score": "0.5270874", "text": "public function export()\r\n {\r\n return array(\r\n 'id' => $this->id,\r\n 'fb_id' => $this->fb_id,\r\n 'tw_id' => $this->tw_id,\r\n 'first' => $this->firstname,\r\n 'last' => $this->lastname,\r\n 'date' => $this->date,\r\n 'grade' => $this->grade,\r\n 'lang' => $this->lang,\r\n 'pic_id' => $this->pic_id,\r\n 'recipes' => $this->recipes\r\n );\r\n }", "title": "" }, { "docid": "4469b5f1dcbc9ee0ec76c78b82633ed1", "score": "0.5268287", "text": "public function exportDocument($doc, $recordset, $startRec = 1, $stopRec = 1, $exportPageType = \"\")\n\t{\n\t\tif (!$recordset || !$doc)\n\t\t\treturn;\n\t\tif (!$doc->ExportCustom) {\n\n\t\t\t// Write header\n\t\t\t$doc->exportTableHeader();\n\t\t\tif ($doc->Horizontal) { // Horizontal format, write header\n\t\t\t\t$doc->beginExportRow();\n\t\t\t\tif ($exportPageType == \"view\") {\n\t\t\t\t\t$doc->exportCaption($this->LACode);\n\t\t\t\t\t$doc->exportCaption($this->PeriodCode);\n\t\t\t\t\t$doc->exportCaption($this->RunDate);\n\t\t\t\t\t$doc->exportCaption($this->Description);\n\t\t\t\t\t$doc->exportCaption($this->Year);\n\t\t\t\t\t$doc->exportCaption($this->RunMonth);\n\t\t\t\t\t$doc->exportCaption($this->PayrollCode);\n\t\t\t\t} else {\n\t\t\t\t\t$doc->exportCaption($this->LACode);\n\t\t\t\t\t$doc->exportCaption($this->PeriodCode);\n\t\t\t\t\t$doc->exportCaption($this->RunDate);\n\t\t\t\t\t$doc->exportCaption($this->Description);\n\t\t\t\t\t$doc->exportCaption($this->Year);\n\t\t\t\t\t$doc->exportCaption($this->RunMonth);\n\t\t\t\t\t$doc->exportCaption($this->PayrollCode);\n\t\t\t\t}\n\t\t\t\t$doc->endExportRow();\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$recCnt = $startRec - 1;\n\t\tif (!$recordset->EOF) {\n\t\t\t$recordset->moveFirst();\n\t\t\tif ($startRec > 1)\n\t\t\t\t$recordset->move($startRec - 1);\n\t\t}\n\t\twhile (!$recordset->EOF && $recCnt < $stopRec) {\n\t\t\t$recCnt++;\n\t\t\tif ($recCnt >= $startRec) {\n\t\t\t\t$rowCnt = $recCnt - $startRec + 1;\n\n\t\t\t\t// Page break\n\t\t\t\tif ($this->ExportPageBreakCount > 0) {\n\t\t\t\t\tif ($rowCnt > 1 && ($rowCnt - 1) % $this->ExportPageBreakCount == 0)\n\t\t\t\t\t\t$doc->exportPageBreak();\n\t\t\t\t}\n\t\t\t\t$this->loadListRowValues($recordset);\n\n\t\t\t\t// Render row\n\t\t\t\t$this->RowType = ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->resetAttributes();\n\t\t\t\t$this->renderListRow();\n\t\t\t\tif (!$doc->ExportCustom) {\n\t\t\t\t\t$doc->beginExportRow($rowCnt); // Allow CSS styles if enabled\n\t\t\t\t\tif ($exportPageType == \"view\") {\n\t\t\t\t\t\t$doc->exportField($this->LACode);\n\t\t\t\t\t\t$doc->exportField($this->PeriodCode);\n\t\t\t\t\t\t$doc->exportField($this->RunDate);\n\t\t\t\t\t\t$doc->exportField($this->Description);\n\t\t\t\t\t\t$doc->exportField($this->Year);\n\t\t\t\t\t\t$doc->exportField($this->RunMonth);\n\t\t\t\t\t\t$doc->exportField($this->PayrollCode);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$doc->exportField($this->LACode);\n\t\t\t\t\t\t$doc->exportField($this->PeriodCode);\n\t\t\t\t\t\t$doc->exportField($this->RunDate);\n\t\t\t\t\t\t$doc->exportField($this->Description);\n\t\t\t\t\t\t$doc->exportField($this->Year);\n\t\t\t\t\t\t$doc->exportField($this->RunMonth);\n\t\t\t\t\t\t$doc->exportField($this->PayrollCode);\n\t\t\t\t\t}\n\t\t\t\t\t$doc->endExportRow($rowCnt);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call Row Export server event\n\t\t\tif ($doc->ExportCustom)\n\t\t\t\t$this->Row_Export($recordset->fields);\n\t\t\t$recordset->moveNext();\n\t\t}\n\t\tif (!$doc->ExportCustom) {\n\t\t\t$doc->exportTableFooter();\n\t\t}\n\t}", "title": "" }, { "docid": "2cc951268db536de3fcc9b80ee43a5b6", "score": "0.5265749", "text": "public function exportData($return = false)\n {\n global $Language;\n $utf8 = SameText(Config(\"PROJECT_CHARSET\"), \"utf-8\");\n\n // Load recordset\n $this->TotalRecords = $this->listRecordCount();\n $this->StartRecord = 1;\n\n // Export all\n if ($this->ExportAll) {\n if (Config(\"EXPORT_ALL_TIME_LIMIT\") >= 0) {\n @set_time_limit(Config(\"EXPORT_ALL_TIME_LIMIT\"));\n }\n $this->DisplayRecords = $this->TotalRecords;\n $this->StopRecord = $this->TotalRecords;\n } else { // Export one page only\n $this->setupStartRecord(); // Set up start record position\n // Set the last record to display\n if ($this->DisplayRecords <= 0) {\n $this->StopRecord = $this->TotalRecords;\n } else {\n $this->StopRecord = $this->StartRecord + $this->DisplayRecords - 1;\n }\n }\n $rs = $this->loadRecordset($this->StartRecord - 1, $this->DisplayRecords <= 0 ? $this->TotalRecords : $this->DisplayRecords);\n $this->ExportDoc = GetExportDocument($this, \"h\");\n $doc = &$this->ExportDoc;\n if (!$doc) {\n $this->setFailureMessage($Language->phrase(\"ExportClassNotFound\")); // Export class not found\n }\n if (!$rs || !$doc) {\n RemoveHeader(\"Content-Type\"); // Remove header\n RemoveHeader(\"Content-Disposition\");\n $this->showMessage();\n return;\n }\n $this->StartRecord = 1;\n $this->StopRecord = $this->DisplayRecords <= 0 ? $this->TotalRecords : $this->DisplayRecords;\n\n // Call Page Exporting server event\n $this->ExportDoc->ExportCustom = !$this->pageExporting();\n $header = $this->PageHeader;\n $this->pageDataRendering($header);\n $doc->Text .= $header;\n $this->exportDocument($doc, $rs, $this->StartRecord, $this->StopRecord, \"\");\n $footer = $this->PageFooter;\n $this->pageDataRendered($footer);\n $doc->Text .= $footer;\n\n // Close recordset\n $rs->close();\n\n // Call Page Exported server event\n $this->pageExported();\n\n // Export header and footer\n $doc->exportHeaderAndFooter();\n\n // Clean output buffer (without destroying output buffer)\n $buffer = ob_get_contents(); // Save the output buffer\n if (!Config(\"DEBUG\") && $buffer) {\n ob_clean();\n }\n\n // Write debug message if enabled\n if (Config(\"DEBUG\") && !$this->isExport(\"pdf\")) {\n echo GetDebugMessage();\n }\n\n // Output data\n if ($this->isExport(\"email\")) {\n // Export-to-email disabled\n } else {\n $doc->export();\n if ($return) {\n RemoveHeader(\"Content-Type\"); // Remove header\n RemoveHeader(\"Content-Disposition\");\n $content = ob_get_contents();\n if ($content) {\n ob_clean();\n }\n if ($buffer) {\n echo $buffer; // Resume the output buffer\n }\n return $content;\n }\n }\n }", "title": "" } ]
cfc1269c83936225179f05b021c0d344
This function appears in the table if no objects are found.
[ { "docid": "9e167d80068815d3a8bcafedc071b325", "score": "0.0", "text": "function no_items() {\n\t\tesc_attr_e( 'No assessments found.' );\n\t}", "title": "" } ]
[ { "docid": "6127a22578d61553b13a4692237786cf", "score": "0.59200794", "text": "function noDataFound(){\n $this->tblOpen();\n $this->rowOpen(0, $this->rowColor[0]);\n $add_column = 0;\n if((isset($this->modes['add'][$this->mode]) && ($this->modes['add'][$this->mode])) ||\n (isset($this->modes['edit'][$this->mode]) && ($this->modes['edit'][$this->mode]))\n ) $add_column += 1;\n if(isset($this->mode['delete']) && $this->mode['delete']) $add_column += 1;\n $this->colOpen(\"center\", (count($this->sorted_columns) + $add_column),\"\"); \n if($this->is_error){\n echo \"<br /><span class='class_error_message no_print'>\".$this->lang['no_data_found_error'].\"<br />&nbsp;\";\n if(!$this->debug){ echo \"<br />\".$this->lang['turn_on_debug_mode'].\"<br />&nbsp;\"; }\n echo \"</span>\";\n }else{\n echo \"<br />\".$this->lang['no_data_found'].\"<br />&nbsp;\";\n }\n $this->colClose(); \n $this->rowClose();\n $this->tblClose();\n }", "title": "" }, { "docid": "402251a88399e336228388efbd60550a", "score": "0.5835593", "text": "public static function _associatedTableEmpty()\n {\n $db = Db::getInstance();\n $default_schema = $db->config->dbname;\n $table = self::_associatedTableName();\n $sql = 'SELECT 1 FROM `' . $default_schema . '`.`' . $table . '`';\n return !$db->query($sql)->num_rows;\n }", "title": "" }, { "docid": "d5185cc332e44052a8f56e1fe93e236b", "score": "0.5666014", "text": "private function init_empty_control(){\r\r\n foreach($this->table as $val){\r\r\n if(empty($val))\r\r\n throw new Seo_Exception('TABLE DATA can\\'t be empty.\r\r\n Please provide table information.\r\r\n Seo class '.__FUNCTION__.' error!');\r\r\n }\r\r\n return true;\r\r\n }", "title": "" }, { "docid": "cad07a881a6e1cc95dcbc6ce63bd9c83", "score": "0.561425", "text": "public function blank() {\r\n\t\treturn $this->blankObject(self::table);\r\n\t}", "title": "" }, { "docid": "4e45dc8119bb84570801ab060be78d48", "score": "0.5514207", "text": "public function display_rows_or_placeholder() \n {\n\t\tif ( $this->has_items() ) {\n\t\t\t$this->display_rows();\n\t\t} else {\n\t\t // Remplacement par une valeur vide pour éviter les erreurs dataTables\n\t\t\techo '';\n\t\t}\n\t}", "title": "" }, { "docid": "489e401957c8b284db99416689d6691e", "score": "0.53649324", "text": "static function printobjecttable($object_id = NULL) {\n\n\t\tif($object_id === NULL)\n\t\t\treturn;\n\n\t\t$object = spotEntity ('object', $object_id);\n\n\t\tif($object === false)\n\t\t\treturn;\n\n\t\tif($object['rack_id'])\n\t\t{\n\t\t\t$rack = spotEntity('rack', $object['rack_id']);\n\n\t\t\t$object['row_name'] = $rack['row_name'];\n\t\t\t$object['rack_name'] = $rack['name'];\n\t\t}\n\n\t\techo \"<table><tr><td>\";\n\t\trenderCell($object);\n\t\techo \"</td></tr><tr><td><table>\";\n\n\t\tself::_printinforow($object,\n\t\t\t\tarray(\n\t\t\t\t\t'id' => 'ID',\n\t\t\t\t\t'dname' => 'Name',\n\t\t\t\t\t'label' => 'Label',\n\t\t\t\t\t'rack_name' => 'Rack',\n\t\t\t\t\t'row_name' => 'Row',\n\t\t\t\t)\n\n\t\t); /* printinforow */\n\n\t\t$urlparams = array(\n\t\t\t\t\t'module' => 'redirect',\n\t\t\t\t\t'page' => 'object',\n\t\t\t\t\t'tab' => 'linkmgmt',\n\t\t\t\t\t'op' => 'map',\n\t\t\t\t\t'object_id' => $object_id,\n\t\t\t\t\t'usemap' => 1,\n\t\t\t\t);\n\n\t\techo '<tr><td><a title=\"don\\'t highlight object\" href=\"?'.http_build_query($urlparams).'\">-ohl</a></td>';\n\n\t\t$urlparams['hl'] = 'o';\n\t\techo '<td><a title=\"highlight object\" href=\"?'.http_build_query($urlparams).'\">+ohl</a></td></tr>';\n\n\t\techo \"</table></td></tr></table>\";\n\n\t\treturn $object;\n\n\t}", "title": "" }, { "docid": "2e2d00e7052e24ef34b5075bd364869e", "score": "0.5338326", "text": "function table_reflow_start()\n {\n $this->_in_table++;\n }", "title": "" }, { "docid": "86dba74f08454459a47dd37ace29c102", "score": "0.5304232", "text": "public function no_items() {\n\t\tesc_attr_e( 'No entries stored yet.', 'sp' );\n\t}", "title": "" }, { "docid": "31133dde9cdc94da011858358ba886d1", "score": "0.5267756", "text": "public function isLogTableExisting(){\n $db = JFactory::getDbo();\n $table = $db->qn($this->_tableName);\n $query = 'DESC '.$table;\n $db->setQuery($query);\n $isTableFound = $db->query();\n if($this->_config['isDebugging']){\n $this->_debugInfo[] = 'TableExisting Query: '.$query;\n }\n return $isTableFound; \n }", "title": "" }, { "docid": "923ecb022ca22dec098de35401a50e5a", "score": "0.5223037", "text": "public function displayTable(){\n\t\tforeach ($this->getArray() as $uneadresse) {\n\t\t\t$uneadresse->displayRow();\n\t\t}\n\t}", "title": "" }, { "docid": "cb14ce9a21b7520c4ca20de3685fe860", "score": "0.5193692", "text": "protected abstract function tableList();", "title": "" }, { "docid": "6ce369dd39490cd11bd51b257c5a3a61", "score": "0.5178026", "text": "function row_exists();", "title": "" }, { "docid": "b7bd4fb338b9deb92551ee8c03e2d75b", "score": "0.51697516", "text": "function no_record($output,$colspan){\n\t// this function is created to remove the jquery error on IE\n\t$rows = mysql_num_rows($output);\n\tif($rows < 1 || $rows == 0){\n\t\techo '<tr><td class=\"no_rec\" colspan=\"' . $colspan . '\" align=\"center\">No Record found!</td></tr>';\n\t\t}\n\t}", "title": "" }, { "docid": "b7897a05c6ebe069058a34b33008f163", "score": "0.51409715", "text": "public function hasRows(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "7372bd67b4ea58b90303dbe9dcfa80cf", "score": "0.51343966", "text": "public static function checkTable() {\r\n\t}", "title": "" }, { "docid": "02e32d9c92e13eef804fdaaf691bff35", "score": "0.5120726", "text": "function get_empty_object()\n { \n $obj = new stdClass();\n \n $fields = $this->db->list_fields( $this->table_name );\n foreach ( $fields as $field ) {\n $obj->$field = '';\n }\n $obj->is_empty_object = true;\n return $obj;\n }", "title": "" }, { "docid": "6e4a9b20edcb106a70cebdf0ce8572bb", "score": "0.5110309", "text": "public function hasRows(){\n return $this->_has(4);\n }", "title": "" }, { "docid": "29add11ae0f14027c050a2bd9e7e6dfd", "score": "0.5098442", "text": "function main_object_columns() {\n \n }", "title": "" }, { "docid": "1f797864c13d5cab33940c61ec732044", "score": "0.50741476", "text": "public function isEmpty(){\n return ($this->getRowCount())?true:false;\n }", "title": "" }, { "docid": "3ccbf9559d9e24e3ff130f1ab60a68e1", "score": "0.50704175", "text": "public function displayTable(){\n if($this->table != null && count($this->table) > 0) {\n $s = \"<table border='1' class='database_table'>\";\n foreach ($this->table as $row) {\n $s .= \"<tr>\";\n foreach ($row as $kom) {\n $s .= \"<td>\" . $kom . \"</td>\";\n }\n $s .= \"</tr>\";\n }\n $s .= \"</table>\";\n echo $s;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "0a6597646cae27c6aa9916fb5359efac", "score": "0.5058032", "text": "public function hasModelIndex(){\n return $this->_has(4);\n }", "title": "" }, { "docid": "f03f2dfeed8b080609e620026f34bb13", "score": "0.50571656", "text": "public function requireTable() {\n //Init the search engine\n $searchEngine=Config::inst()->get('CodeBank', 'snippet_search_engine');\n if($searchEngine && class_exists($searchEngine) && in_array('ICodeBankSearchEngine', class_implements($searchEngine))) {\n $searchEngine::requireTable();\n }else {\n //Class is missing or invalid so fallback to the default\n DefaultCodeBankSearchEngine::requireTable();\n }\n \n parent::requireTable();\n }", "title": "" }, { "docid": "47fc2b60d02a79c877f0e1cffcf2effb", "score": "0.5048226", "text": "protected function GetObjectTable() {\r\n\t\t\treturn $this->objectTable;\r\n\t\t}", "title": "" }, { "docid": "0bb1385fc1b026093a1827352a832a97", "score": "0.5039452", "text": "public function no_items()\n\t{\n \t\t_e( 'No clouds found.' );\n\t}", "title": "" }, { "docid": "cdc903dde7daba1d3ed3271c0421432c", "score": "0.50232327", "text": "public function hasTableId(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "1e7a526e0c640513d46aecdf260acf17", "score": "0.5016079", "text": "public function getFoundRows()\n\t{\n\t}", "title": "" }, { "docid": "230af67b5b298582531cf8fa24aece8b", "score": "0.5014431", "text": "public function testCallingTheMethodWillFillTheEntriesIfFound()\n {\n $this->object->execute();\n\n $expected = array(\n 'database1.table1.sql' => $this->table['table_1'],\n 'database1.table2.sql' => $this->table['table_2']\n );\n\n $entries = $this->objectHelper->getValue('entries');\n $this->assertEquals($expected, $entries->toArray());\n }", "title": "" }, { "docid": "7b8897f2fa77c6d8822eb6917973592c", "score": "0.50133914", "text": "public function blank()\n {\n $table = (new ProductFamily)->getTable();\n $result = DB::select(DB::raw(\"DESCRIBE {$table}\"));\n $emptyProductFamily = [];\n foreach($result as $column) {\n $emptyProductFamily[$column->Field] = get_empty_value_for_column($column);\n }\n return [\"data\" => $emptyProductFamily];\n }", "title": "" }, { "docid": "04abbf3d401e25135061ae6986bf31bc", "score": "0.5009804", "text": "public function add_if_needed(){\n\t\t$this->missing_tables = $this->find_missing_tables();\n\t\tif( empty( $this->missing_tables ) ){\n\t\t\treturn;\n\t\t}\n\n\t\t$this->set_charset();\n\n\t\t$search = $this->wpdb->prefix . 'cf_';\n\t\tforeach( $this->missing_tables as $table ){\n\t\t\tcall_user_func( array( $this, str_replace( $search, '', $table ) ) );\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "b4c54f4409e2b00cabc0ee9c307d19af", "score": "0.50078416", "text": "public function getNoTableData()\n {\n return $this->noTableData;\n }", "title": "" }, { "docid": "d001c5ae0fa491faacd6aff4a3f50936", "score": "0.50024563", "text": "function draw_table ()\r\n{}", "title": "" }, { "docid": "13a57cf674444ce3f927c1184060d6fd", "score": "0.4997534", "text": "public function hasDataTableName(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "6c83e30e746d6c0c29a918cacebb3e8f", "score": "0.49931064", "text": "function exists($name)\r\n\t{\r\n\t\tglobal $sql;\r\n\t\t$name = sql::escape($name);\r\n\t\t$tablename = dkpPointsTableEntry::tablename;\r\n\t\t$exists = $sql->QueryItem(\"SELECT id FROM $tablename WHERE id='$name'\"); //MODIFY THIS LINE\r\n\t\treturn ($exists != \"\");\r\n\t}", "title": "" }, { "docid": "34325b8e97c30180a1ef36d99fc2b7e0", "score": "0.4989625", "text": "public function testExists(): void\n {\n $table = $this->getTableLocator()->get('users');\n $this->assertTrue($table->exists(['id' => 1]));\n $this->assertFalse($table->exists(['id' => 501]));\n $this->assertTrue($table->exists(['id' => 3, 'username' => 'larry']));\n }", "title": "" }, { "docid": "68a1ce83447d803e1ad18d864c78ca0b", "score": "0.4984958", "text": "function displayPokemon() {\n global $db_conn;\n\n $res = executePlainSQL(\"SELECT * FROM Pokemon\");\n echo \"<table style='border-collapse:separate;border-spacing:20px 0px;'><tr><th>Species ID</th><th>Nickname</th><th>Gender</th><th>Time Caught</th><th>Owned ID</th></tr>\";\n while (($row = oci_fetch_row($res)) != false) {\n echo \"<tr><td>\". $row[0] . \"</td><td>\" . $row[1] . \"</td><td> \" . $row[2] . \"</td><td>\" . $row[3] . \".</td><td>\" . $row[4] . \"</td></tr>\";\n }\n echo \"</table>\";\n OCICommit($db_conn);\n }", "title": "" }, { "docid": "fa03e9e5af7d5c03145d0e066e2ec635", "score": "0.4982331", "text": "protected function showMissingTableError()\n {\n ExportRelationSchema::dieSchema(\n $this->pageNumber,\n \"DIA\",\n sprintf(__('The %s table doesn\\'t exist!'), $this->tableName)\n );\n }", "title": "" }, { "docid": "2ff2c2777b48b3a82a64ffbc458608bc", "score": "0.49754313", "text": "public static function _associatedTableExists()\n {\n $db = Db::getInstance();\n $default_schema = $db->config->dbname;\n $table = self::_associatedTableName();\n $sql = 'SHOW TABLES FROM `' . $default_schema . '` LIKE ' . $db->qt($table);\n return !!$db->query($sql)->num_rows;\n }", "title": "" }, { "docid": "6c49ef231ac94cd54fc4c1af5eb97590", "score": "0.49726415", "text": "function get_expenses_manage_table_data_rows($expenses, $controller)\n{\n $CI = & get_instance();\n $table_data_rows = '';\n \n foreach ($expenses->result() as $expense) {\n $table_data_rows .= get_expenses_data_row($expense, $controller);\n }\n \n if ($expenses->num_rows() == 0) {\n $table_data_rows .= \"<tr><td colspan='11'><span class='col-md-12 text-center text-warning' >\" . lang('expenses_no_expenses_to_display') . \"</span></td></tr>\";\n }\n \n return $table_data_rows;\n}", "title": "" }, { "docid": "7b45835a0151213eef7d0f1db29e4989", "score": "0.49694517", "text": "function get_people_manage_table_data_rows($people, $controller)\n{\n $CI = & get_instance();\n $table_data_rows = '';\n \n foreach ($people->result() as $person) {\n $table_data_rows .= get_person_data_row($person, $controller);\n }\n \n if ($people->num_rows() == 0) {\n $table_data_rows .= \"<tr><td colspan='10'><span class='col-md-12 text-center' ><span class='text-warning'>\" . lang('common_no_persons_to_display') . \"</span>&nbsp;&nbsp;<a class='btn btn-primary' href='\" . site_url('customers/excel_import') . \"'>\" . lang('customers_import_customers') . \"</a></span></tr>\";\n }\n \n return $table_data_rows;\n}", "title": "" }, { "docid": "f4506bcb2a055841cce83eafff7b5f6d", "score": "0.4959027", "text": "function tableCheck($tableName)\r\n{\r\nglobal $dbxlink;\r\n$result = NULL;\r\n$result = $dbxlink->query(\"SHOW TABLES LIKE '{$tableName}'\");\r\nif ($result==NULL) { print_r($dbxlink->errorInfo()); die(); }\r\nif (!($row = $result->fetch (PDO::FETCH_NUM))) {\r\n $q = \"CREATE TABLE IF NOT EXISTS `{$tableName}` (\r\n \t`id` int(10) NOT NULL auto_increment,\r\n \t`object_id` int(10) NOT NULL,\r\n \t`user` varchar(40) NOT NULL,\r\n \t`date` datetime NOT NULL,\r\n \t`content` text NOT NULL,\r\n \tPRIMARY KEY (`id`)\r\n \t) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ;\";\r\n $result = $dbxlink->query($q);\r\n if ($result==NULL) { print_r($dbxlink->errorInfo()); die(); }\r\n}\r\n}", "title": "" }, { "docid": "2f712476858c3b9f286a8777fd96fc36", "score": "0.49505603", "text": "public function tableExists();", "title": "" }, { "docid": "df7a0a71f7f6882edab9daf3e098640e", "score": "0.49355423", "text": "private function _fetch_table()\n\t{\n\t\tif ($this->_table == null) {\n\t\t\t$this->_table = plural(preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))));\n\t\t}\n\t}", "title": "" }, { "docid": "1c3931c897c3f2158b69a97333132212", "score": "0.4935486", "text": "public function checkIfTableExists($tableName, OutputInterface $o)\n {\n $query = \"SHOW TABLES LIKE '\".$tableName.\"'\";\n\n try \n {\n if ( $this->db->query($query)->rowCount() == 0) {\n $o->writeln(\" \\033[41m Table \".$tableName .\" does not exsits.\\033[0m \");\n exit;\n }\n } catch (\\Shadowapp\\Sys\\Exceptions\\Db\\WrongQueryException $e) {\n $o->writeln(\" \\033[41m \".$e->getMessage().\"\\033[0m \");\n exit; \n }\n }", "title": "" }, { "docid": "77dbf8f9e66ef95d921118c0500eb063", "score": "0.4930277", "text": "private function _tablegenerate(){\n\t}", "title": "" }, { "docid": "6067853464b6a4bb02f772c20ea399cf", "score": "0.49224532", "text": "protected function tableModel()\n {\n }", "title": "" }, { "docid": "b2dbbd3cf24fcc02840c322e04598ee5", "score": "0.49223065", "text": "public function printTable()\n {\n return $this->showAllEmp();\n }", "title": "" }, { "docid": "2e0c69a92124c31b2038c8c14d6c561e", "score": "0.49138704", "text": "public function firstRow()\r\n {\r\n }", "title": "" }, { "docid": "7efcd72c2b569e21bfc8f44173542de7", "score": "0.49117005", "text": "protected function items_Found() {\n $countProjects = Modelo::CountAll();\n if ($countProjects == 0) {\n QApplication::ExecuteJavaScript(\"itemsFound(1);\");\n } else {\n QApplication::ExecuteJavaScript(\"itemsFound(2);\");\n }\n }", "title": "" }, { "docid": "953b187dd8014e72776e38255bb749af", "score": "0.49028465", "text": "function pageHeader()\r\n {\r\n if($this->ProcessingTable)\r\n $this->TableHeader();\r\n }", "title": "" }, { "docid": "8da01e2cfb473eae1c5b1512d848d74f", "score": "0.49003917", "text": "public function table() {\n\n\n\t}", "title": "" }, { "docid": "554438389aa89e084c9f8984b9209237", "score": "0.48945305", "text": "private function predefined007()\n {\n \n \n print \"<h2>Non-Members</h2>\";\n print \"<table class=\\reportTable\\\">\";\n print \"<tr>\n <th>Surname</th>\n <th>Firstname</th>\n <th>Address 1</th>\n <th>Address 2</th>\n <th>Postcode</th>\n <th>Country</th>\n <th>Home Phone</th>\n <th>Mobile</th>\n <th>Email</th>\n <th>Type</th>\n </tr>\n \";\n\n $sql = \"SELECT surname, firstname, address1, address2, postcode, country, homephone, mobilephone, email, memberStatus FROM churchmembers WHERE memberStatus !='active' ORDER BY memberStatus ASC, surname ASC, firstname ASC\";\n $result = db::returnallrows($sql);\n foreach($result as $member){\n print \"<tr>\";\n print \"<td>\".$member['surname'].\"</td>\";\n print \"<td>\".$member['firstname'].\"</td>\";\n print \"<td>\".$member['address1'].\"</td>\";\n print \"<td>\".$member['address2'].\"</td>\";\n print \"<td>\".$member['postcode'].\"</td>\";\n print \"<td>\".$member['country'].\"</td>\";\n print \"<td>\".$member['homephone'].\"</td>\";\n print \"<td>\".$member['mobilephone'].\"</td>\";\n print \"<td>\".$member['email'].\"</td>\";\n print \"<td>\".$member['memberStatus'].\"</td>\";\n print \"</tr>\";\n }\n print \"</table>\";\n }", "title": "" }, { "docid": "8f36982c984a5650dafbf023555db15a", "score": "0.48944673", "text": "private function renderTable()\r\n {\r\n $this->generateQuestionTable($this->pages[$this->current_page]);\r\n $this->table->setFooterTitle('[Page ' . $this->current_page . '/' . count($this->pages) . ']');\r\n $this->table->setStyle('box');\r\n $this->table->render();\r\n $this->output->writeln(SELF::LIST_PROMPT);\r\n }", "title": "" }, { "docid": "efe762589c8e9faeec111317d62e2c47", "score": "0.48871797", "text": "function table() {\n if (empty($this->table)) {\n require_once (\"include/table.inc\");\n $this->table =& new HTMLTable;\n }\n return(0);\n }", "title": "" }, { "docid": "7d13967233f0be47bedef943755b7275", "score": "0.48841947", "text": "function get_locations_manage_table_data_rows($locations, $controller)\n{\n $CI = & get_instance();\n $table_data_rows = '';\n \n foreach ($locations->result() as $location) {\n $table_data_rows .= get_location_data_row($location, $controller);\n }\n \n if ($locations->num_rows() == 0) {\n $table_data_rows .= \"<tr><td colspan='7'><span class='col-md-12 text-center text-warning' >\" . lang('locations_no_locations_to_display') . \"</span></td></tr>\";\n }\n \n return $table_data_rows;\n}", "title": "" }, { "docid": "ddc9934de066bcf150dc8ddc0072f888", "score": "0.48816803", "text": "static function printTableHeader(){\n if (ProductRatings::$methodCount == 0){\n return;\n }\n ?>\n <thead>\n <tr><td>\n <td>Explicit\n <td>Orders\n <td>Display count\n <td>Method\n <td>Display time\n <td>Click\n <td>Scroll\n <td><b>Final</b>\n\n </thead>\n <tbody>\n <?php\n\n\n }", "title": "" }, { "docid": "4c1897e3f2619c9d0bef929710303a6a", "score": "0.48808655", "text": "public static function getEmptyDataModel();", "title": "" }, { "docid": "3549fa7afabc9f11e1a791d31a91e488", "score": "0.4880671", "text": "public function no_items() {\n _e( 'No users found.' );\n }", "title": "" }, { "docid": "797d6211f3f34fd1855525bd439f9f4a", "score": "0.4876865", "text": "function table_exists($table) {\n\n // echo \"table_exists($table)\" .br();\n if (! array_key_exists($table, $this->table_exist)) {\n // if the table has never been referenced\n\n $this->table_exist [$table] = $this->CI->db->table_exists($table);\n\n if ($this->table_exist [$table]) {\n\n // the table or the view exist in the database\n\n // fetch database metadata\n $this->fields_list [$table] = $this->CI->db->fields_list($table);\n // Do not use the CI>db->field_data, it does not report enough information\n $fields = $this->CI->model->getTableMetaData($table);\n\n // $fields contains the table or view information\n // Primary key information may be false for views.\n // var_dump($fields);\n\n /*\n * object(stdClass)[31]\n * public 'name' => string 'privilege_id' (length=12)\n * public 'type' => string 'int' (length=3)\n * public 'max_length' => int 11\n * public 'default' => null\n * public 'primary_key' => int 1\n */\n foreach ( $fields as $field ) {\n\n // store field information indexed by field\n $this->field_data [$table] [$field->name] = $field;\n // set the table primary key\n if ($field->primary_key) {\n $this->table_keys [$table] = $field->name;\n // echo \"primary key $table = \" . $field->name .br();\n }\n\n // var_dump($field);\n\n if ($this->is_a_view($table)) {\n // it is a view, look for data referenced by the field\n $reference = $this->reference($table, $field->name);\n $referenced_table = $reference ['table'];\n $referenced_field = $reference ['field'];\n\n // replace field data by pointed field data\n $this->field_data [$table] [$field->name] = $this->field_data [$referenced_table] [$referenced_field];\n if ($this->table_keys [$referenced_table] == $referenced_field) {\n $this->table_keys [$table] = $field->name;\n }\n }\n }\n }\n }\n return $this->table_exist [$table];\n }", "title": "" }, { "docid": "fb86b4798a1a88bf62bf33f87799fd8e", "score": "0.48742858", "text": "private function does_table_exist() {\n\t\t\tif ( 'rdb:' !== substr( $this->wpda_schema_name, 0, 4) ) {\n\t\t\t\t$wpda_dictionary_exists = new WPDA_Dictionary_Exist( $this->wpda_schema_name, $this->wpda_table_name );\n\t\t\t\t$this->table_exists = $wpda_dictionary_exists->plain_table_exists();\n\t\t\t\tif ( ! $this->table_exists ) {\n\t\t\t\t\t$this->real_table = null;\n\t\t\t\t\t$this->real_indexes = null;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// No remote checks\n\t\t\t\t$this->real_table = null;\n\t\t\t\t$this->real_indexes = null;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "90b54e10b4ce8a19be584c83dcb16f92", "score": "0.48729563", "text": "public function no_items() {\n\t\tesc_html_e( 'No entries found.', Forminator::DOMAIN );\n\t}", "title": "" }, { "docid": "a6f8bf78bc665a013c62b6435ebbfa30", "score": "0.48718414", "text": "function auto_table($data) {\n\t\t\t\t$this->table_head(array_keys($data[0]));\n\n\t\t\t\tfor ($item = 0; $item < count($data); $item++) {\n\t\t\t\t\t\t$this->add_row($data[$item]);\n\t\t\t\t}\n\n\t\t\t\t$this->create_output();\n\n\t\t\t\treturn $this->result;\n\t\t}", "title": "" }, { "docid": "b7bcddfb691b7642df61e522fe069de9", "score": "0.48663485", "text": "public function getIconForRecordWithNullTableReturnsMissingIcon()\n {\n $this->assertContains(\n '<span class=\"t3js-icon icon icon-size-default icon-state-default icon-default-not-found\" data-identifier=\"default-not-found\">',\n $this->subject->getIconForRecord('', [])->render()\n );\n }", "title": "" }, { "docid": "75696b03b2947a86af4aaebbbe5262b1", "score": "0.48663", "text": "protected function the_uql_entity_list_init() {\n \n $local_string_query = sprintf(\"SHOW TABLES FROM `%s`\", $this ->uql_database_handle->the_uql_get_database_name());\n $local_query_result = mysql_query($local_string_query/*, $this->uql_database_handle -> getConnectionHandle()*/);\n if ($local_query_result) {\n $tables_count = mysql_num_rows($local_query_result);\n\n while ($local_entity = mysql_fetch_row($local_query_result)) {\n $this->uql_entity_list[] = $local_entity[0];\n }\n\n @mysql_free_result($local_query_result);\n\n } else {\n $this->the_uql_error(mysql_error(/*$this->uql_database_handle -> getConnectionHandle()*/));\n }\n }", "title": "" }, { "docid": "59745ac3798addda5a06da803aaaf851", "score": "0.48660612", "text": "private function _fetch_table()\n {\n if (!isset($this->table))\n {\n $this->table = $this->_get_table_name(get_class($this));\n }\n return TRUE;\n }", "title": "" }, { "docid": "b28f3720cff9f892f968f80d066ec100", "score": "0.4865446", "text": "function getTableStatus() \n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "925e8fb8a3dd2d7e17e76ed042e2c561", "score": "0.4853633", "text": "public function PreventUseOfParentObjectWhenNoRecordsAreFound()\n {\n return false;\n }", "title": "" }, { "docid": "f952dfe9313fdfa2ed2c5046a0a21bcc", "score": "0.4839582", "text": "private function checkTable()\n {\n $objResult = $this->query('SHOW TABLES LIKE \"' . $this->getTableName() . '\"');\n if($objResult === false)\n {\n // Create table\n $this->createTable();\n }\n else\n {\n $this->checkTableChanges();\n }\n }", "title": "" }, { "docid": "22321765768ffa8bd6ec9056c773b2c7", "score": "0.48388788", "text": "public function hasObject(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "9bfd0264492d2d015aa35c956d112d75", "score": "0.4837431", "text": "abstract protected function table_exists($tablename);", "title": "" }, { "docid": "0a72af9174f212d71657150b83ecbcf0", "score": "0.4829241", "text": "function tableHead($class=\"\",$id=\"\", $name=\"\", $properties=\"\"){ \n return $tHead;\n }", "title": "" }, { "docid": "8063e63e0812428b6ce53bc3c2ee0fe2", "score": "0.4824864", "text": "public function getFoundRows()\r\n\t{\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "00b2d80e51a998124da073cabc7b85e3", "score": "0.48212975", "text": "function chk_tables_exists()\r\n {\r\n\r\n $conn=$this->dbconnect();\r\n$html='';\r\n foreach($this->tables[trim($_SESSION['post']['dbtype'])] as $table=>$value)\r\n {\r\n $r=$this->chk_table_exists($table,$conn);\r\n\r\n if(!$r&&($this->QUERY($value,$conn)))\r\n {\r\n #print $r.\"<hr>\";\r\n $html.='<div class=\"message\">Table '.$table.' created'.\"</div>\";\r\n }else{\r\n $html.='<div class=\"message error\">Table '.$table.' already exists'.\"</div>\";\r\n }\r\n\r\n }\r\n #die($html);\r\n $this->nextstep();\r\n return $html;\r\n }", "title": "" }, { "docid": "0c464c5b678f059151bae6a2e02c5606", "score": "0.48012766", "text": "function universalResults($table){\r\n\t\t\r\n\t\t// SEARCH FORM\r\n\t\t\r\n\t\t// SEARCH RESULTS\r\n\t\t\r\n\t\t//\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "122974a5b0e4ac4b941383d2e53ad38a", "score": "0.48006427", "text": "public function get_info() {\n\t\t$sql = \"SELECT COUNT(*) FROM `\" . $this->wpdb->term_relationships . \"` WHERE term_taxonomy_id=1 AND object_id NOT IN (SELECT id FROM `\" . $this->wpdb->posts . \"`);\";\n\t\t$orphandata = $this->wpdb->get_var($sql);\n\n\t\t$this->found_count += $orphandata;\n\t}", "title": "" }, { "docid": "447293d3602150e1699485c010e62163", "score": "0.4800073", "text": "public function loadRows()\n {\n global $db;\n \n $sql = \"SELECT * FROM $this->table\";\n $this->rows = $db->get_results($sql);\n }", "title": "" }, { "docid": "dda4d7ccc64ee11988b0647326c7b15b", "score": "0.4796688", "text": "function hasObject($object_id, $type) {\n $search_index_table = TABLE_PREFIX . 'search_index';\n return (boolean) array_var(db_execute_one(\"SELECT COUNT(*) AS 'row_count' FROM $search_index_table WHERE object_id = ? AND type = ?\", $object_id, $type), 'row_count');\n }", "title": "" }, { "docid": "9278e297d4598eb1f43cdd461f0125eb", "score": "0.47933847", "text": "function get_item_kits_manage_table_data_rows($item_kits, $controller)\n{\n $CI = & get_instance();\n $table_data_rows = '';\n \n foreach ($item_kits->result() as $item_kit) {\n $table_data_rows .= get_item_kit_data_row($item_kit, $controller);\n }\n \n if ($item_kits->num_rows() == 0) {\n $table_data_rows .= \"<tr><td colspan='9'><span class='col-md-12 text-center text-warning' >\" . lang('item_kits_no_item_kits_to_display') . \"</span></td></tr>\";\n }\n \n return $table_data_rows;\n}", "title": "" }, { "docid": "71f5623aed8684fc61bb383d329af8c5", "score": "0.4784857", "text": "private function fetchOneItemWithoutModel($object)\n {\n return $object->fetchAll(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "a70ddce4ad7c28ae24cfdee1a920cbfe", "score": "0.4780109", "text": "function select_all($table)\r\n{ \r\n\t$sql_desc =\"select * from $table\";\r\n $res = mysql_query($sql_desc);\r\n $count = mysql_num_rows($res); \r\n if($count>0)\r\n\t{\r\n\t\t\r\n\t\treturn $res;\r\n\t}\r\n\telse\r\n\t{\r\n\t\t$msg=\"No Records Found\";\r\n\t\treturn $msg;\r\n\t}\t\r\n}", "title": "" }, { "docid": "3ab0107dd0c1c23516c8017c8ff7a044", "score": "0.4770855", "text": "public function table_exists() {\n\t\treturn (bool) $this->get_row( 'SHOW TABLES LIKE %s', $this->table );\n\t}", "title": "" }, { "docid": "e372cc38ea3f5ba2ab16ea81e076bb36", "score": "0.4767241", "text": "public function testGetRowPotential()\n {\n $game = new Game();\n $res = $game->get_row_potential(\"ones\");\n\n $this->assertEmpty($res);\n }", "title": "" }, { "docid": "d54cf72b5e29f382d853c9a0aab0549f", "score": "0.47613904", "text": "public function noImss()\n\t{\t\t\n\t\treturn view('empleados/buscar')->with('empleados',Empleado::where('imss',null)->where('contratable',1)->get());\n\t}", "title": "" }, { "docid": "7ef63fa6e635b94b9e9c468369a7da89", "score": "0.4757585", "text": "public static function empty(): Table {\n return new Table();\n }", "title": "" }, { "docid": "c67359f8ce277ef5bfcb67daf36494be", "score": "0.47543105", "text": "function no_items() {\n _e( 'No entry found!', 'wp-erp-ac' );\n }", "title": "" }, { "docid": "00ed387c41e2c1f78e57fd8c57b94956", "score": "0.47490323", "text": "abstract public function Affected_Rows();", "title": "" }, { "docid": "58ba7ed4ee0a9e4f3cfc008e8ecbe88b", "score": "0.4746065", "text": "public function hasVariableTable(){\n return $this->_has(9);\n }", "title": "" }, { "docid": "75d4a9a7cd86a9e11ee80122392ce0a4", "score": "0.47401065", "text": "function DisplayTables($obj=\"\")\n\t{\n\t\t$obj=($obj!=\"\") ? $obj : $this->Table ;\n\t\tif (!headers_sent()){\n\t\t\theader(\"Content-Type: text/plain\");\n\t\t}\n\t\t$string= '$'.$this->Table.'=';\n\t\techo str_pad($string,30,' ').\"array();\".chr(13).\"\\n\\r\";\n\t\tforeach ($this->Fields as $field){\n\t\t\t$string='$'.$obj.'[\\''.$field.'\\']=';\n\t\t\techo str_pad($string,30,' ').\"'';\" .chr(13).\"\\n\\r\";\n\t\t}\n\t\techo '$sql->Save($'.$this->Table.',false);'.chr(13).\"\\n\\r\";\n\t\techo '$sql->PrintSQL();'.chr(13).\"\\n\\r\";\n\t}", "title": "" }, { "docid": "558fd37a7e6033e83a483517ef7a656e", "score": "0.47384992", "text": "function load_object()\n {\n // if no sql defined die gracefully\n if(!$this->res)\n {\n if($this->debug) trigger_error(\"No query to load result from.\");\n return false;\n }\n else\n {\n if($this->debug > 1) return pg_fetch_object($this->res);\n else\n return @pg_fetch_object($this->res);\n }\n }", "title": "" }, { "docid": "111e71b34547119ae639d4564b7e97b8", "score": "0.47359765", "text": "function is_data_exists($table, $where){\n $this->db->from($table);\n $this->db->where($where);\n $query = $this->db->get();\n $rowcount = $query->num_rows();\n if($rowcount==0){\n return 0; //record not found\n }\n else {\n return 1; //returns true if record found\n }\n }", "title": "" }, { "docid": "c1f1ca12bcc480d2a350a3ec19d08a33", "score": "0.473524", "text": "function no_items() {\r\n\t\t_e( 'No points log found.','eddpoints' );\r\n\t}", "title": "" }, { "docid": "37eb060c75b23936029210a4c1eb87fc", "score": "0.47344232", "text": "public function exists()\n\t{\n\t\t// returns TRUE if the id of this object is set and not empty, OR\n\t\t// there are items in the ALL array.\n\t\treturn isset($this->id) ? !empty($this->id) : ($this->result_count() > 0);\n\t}", "title": "" }, { "docid": "bb23c7afd4fd03ef39fe02338fa67fb2", "score": "0.4730326", "text": "public function clear(){\n $this->_qbuilder->empty_table($this->_active_model_object->get_table_name());\n return $this->_qbuilder->affected_rows();\n\n }", "title": "" }, { "docid": "7129e25b4895beb194ef7f62ebe5933f", "score": "0.4729774", "text": "function getAllTabelas();", "title": "" }, { "docid": "91a84a04bca7319ab4575feadcb7ecf3", "score": "0.47286087", "text": "function get_nodata_tables_count() {\n return count($this->nodata_tables) ? count($this->nodata_tables) : t(\"No data omitted\");\n }", "title": "" }, { "docid": "35d893b7bd036d604de14c5b74909c19", "score": "0.4726397", "text": "function search_empty() {\n global $lang;\n $this->bar($lang->search_empty_title);\n print \"<center>\".$lang->search_empty_query.\"</center>\";\n }", "title": "" }, { "docid": "7b0fe468d11098b8c8f9c23a88d9c6ea", "score": "0.47235584", "text": "function existetabla($tabla){\n\t\t$CI =& get_instance();\n\t\treturn $CI->db->table_exists($tabla);\n\t}", "title": "" }, { "docid": "9360c772475ac460ad3b1de82c4e1e1a", "score": "0.4723473", "text": "function table_row($row) {\n echo \"<tr>\";\n foreach ($row as $field) \n if ($field)\n echo \"<td>$field</td>\\n\";\n else\n echo \"<td>---</td>\\n\";\n echo \"</tr>\";\n }", "title": "" }, { "docid": "78f2f8be6411cfbe39ae0e6ab40bb796", "score": "0.47219035", "text": "public function showData(): void\n {\n if ($this->data === null || count($this->data) === 0) {\n print('No data found');\n } else {\n foreach ($this->data as $obj) {\n // creates the entity from data\n $entity = new GenericEntity($obj);\n // do stuff with entity\n }\n }\n\n }", "title": "" }, { "docid": "bc6dbe686f363c68236b64403356bed5", "score": "0.47210926", "text": "protected function tableExists(): bool\n {\n $sqlWhere = \" WHERE table_schema = '%s' AND table_name = '%s';\";\n $sql = sprintf(\n \"SELECT count(*) as counter FROM %s \" . $sqlWhere,\n 'information_schema.tables',\n $this->repository->getDatabase(),\n $this->repository->getTable()\n );\n $this->run($sql)->hydrate();\n $result = $this->getRowset()[0];\n $counter = (int) $result['counter'];\n return ($counter > 0);\n }", "title": "" }, { "docid": "6374979e066c124ffcca38e5195e5daa", "score": "0.47184953", "text": "public function hasEntityIndex(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "82dc74735cb24620f8e430b9468773ff", "score": "0.47108397", "text": "public function hasRows() {\n return !empty($this->commonRows) || !empty($this->intakeRows);\n }", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a433e4db90e8b2bc1724f47789dc0d06", "score": "0.0", "text": "public function edit($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac53c5763e3a0b0ec0125039ef9bb509", "score": "0.7631773", "text": "public function edit()\n {\n $this->form();\n }", "title": "" }, { "docid": "b8b614ce042ab5ea8a3e6ef84e6e7778", "score": "0.713407", "text": "public function edit($id)\n {\n $res = Resource::find($id);\n return view('resource.edit')->withResource($res);\n }", "title": "" }, { "docid": "f2b550245f3055e9568b85c7fbb1163e", "score": "0.7120567", "text": "public function edit(int $id)\n {\n $resource = Resource::findOrFail($id);\n\n return view('admin.resource.edit', [\n 'resource' => $resource\n ]);\n }", "title": "" }, { "docid": "361abed2cb852975c0683ccd26ce7d82", "score": "0.70657694", "text": "public function edit($id)\n {\n $data['module'] = array_merge($this->module(),[\n 'action' => 'update'\n ]);\n $data['data'] = Resources::findOrFail($id);\n return view(\"backend.{$this->module()['module']}.create-edit\", $data);\n }", "title": "" }, { "docid": "b7a9dbd94e4c376397338c3286f585f3", "score": "0.6979171", "text": "public function action_edit() {\n $article_id = $this->request->param('id');\n $article = new Model_Article($article_id);\n\n $this->template->title = \"Editar Art&iacute;culo\";\n $this->template->content = View::factory('article/dashboard/form')\n ->bind('article', $article);\n }", "title": "" }, { "docid": "54bd15e9dccbc11ab9791830a78b15b6", "score": "0.69532436", "text": "public function edit($id) {\n $viewData = $this->getDefaultFormViewData();\n $viewData[\"mode\"] = \"edit\";\n $viewData[\"supplier\"] = Supplier::find($id);\n\n return view(\"{$this->viewPath}.form\", $viewData);\n }", "title": "" }, { "docid": "989918b39caf8ede67ab11ef4dc4a651", "score": "0.69339967", "text": "public function editresourceAction() {\n\t\t$resourceid = $this->_request->getParam('resourceid');\n\t\t$srlink = new StudentResourceLink();\n\t\t$select = $srlink->select()->where($srlink->getAdapter()->quoteInto('auto_id = ?', $resourceid));\n\t\t$rows = $srlink->fetchAll($select);\n\t\t$therow = null;\n\t\tforeach ($rows as $row) {\n\t\t\t$therow=$row;\n\t\t}\n\t\t//print_r($therow);\n\t\t$this->view->resourcelink = $therow;\n\t\t\n\t\t$mediabankUtility = new MediabankUtility();\n\t\tob_start();\n\t\t$mediabankUtility->curlDownloadResource($therow['mid'],false);\n\t\t$content = ob_get_contents();\n\t\tob_end_clean();\n\t\t$this->view->content = $content;\t\t\n\t\t$this->view->redirect_to = $_SERVER[\"HTTP_REFERER\"];\n\t\tStudentResourceService::prepStudentResourceView($this, $this->_request, $therow->loid);\n\t\tif($therow['category']=='Summary') //summary has been stripped out since a summary exists; add it back in if this one is a summary\n\t\t\t$this->view->studentResourceCategories[6]='Summary';\n\t}", "title": "" }, { "docid": "60cbf7aaa1aa0791c0914ed1dcab803f", "score": "0.6928311", "text": "public function edit($id) {\n $resource = static::$resource::findOrFail($id);\n return view($this->getView('edit'), [static::$varName[0] ?? $this->getResourceName() => $resource]);\n }", "title": "" }, { "docid": "d7aa2e5a119120de3c3ba215c6a55f12", "score": "0.6926486", "text": "public function showEdit($id)\n {\n $form = $this->singleRow($id);\n return view('forms.edit', compact('form'));\n }", "title": "" }, { "docid": "18527251f9ef186ce3fe75e5b272924a", "score": "0.69218755", "text": "public function edit()\n {\n return view('rms::edit');\n }", "title": "" }, { "docid": "18527251f9ef186ce3fe75e5b272924a", "score": "0.69218755", "text": "public function edit()\n {\n return view('rms::edit');\n }", "title": "" }, { "docid": "6bfd6ee5429b006ef8ac6c80e55dd39b", "score": "0.6914203", "text": "public function edit($id)\n {\n $oItem = $this->oRepository\n ->getFillFromView($this->sPath.'/form')\n ->find($id);\n \n $sPageTitle = $this->sName;\n \n return view($this->sPath.'/form', compact('oItem','sPageTitle'));\n }", "title": "" }, { "docid": "901ccd53ce97c5a7d1966359f57043a4", "score": "0.69117606", "text": "public function edit()\n {\n return view('inpatient::edit');\n }", "title": "" }, { "docid": "0602544d24c996605ea507ebb7ee3e56", "score": "0.6878878", "text": "public function edit($id)\n\t{\n return $this->showForm( $id, 'update' );\n\t}", "title": "" }, { "docid": "a71e27a959041b3dc97b873e60de94e7", "score": "0.68629944", "text": "public function showEditForm()\n {\n return view('profile.edit');\n }", "title": "" }, { "docid": "3736499054b89a9776863393fe21594e", "score": "0.68470234", "text": "public function editAction()\n {\n $id = (int) $this->param('id');\n $project = $this->service->retrieveProjectById($id);\n if (!$project) {\n $this->flash('error')->addMessage('project.not.found');\n $this->redirectToRoute('list', ['page' => 1]);\n } else {\n $action = $this->view->url(['action' => 'update']);\n $projectForm = $this->service->getFormForEditing($action);\n $projectForm->populate($project->toArray());\n $this->view->project = $project;\n $this->view->projectForm = $projectForm;\n }\n }", "title": "" }, { "docid": "701c592af1d277babf262ba31d833e6d", "score": "0.6843164", "text": "public function edit()\n {\n return view('fehome::edit');\n }", "title": "" }, { "docid": "ef3688e29d18642367c0f31d2daf4e03", "score": "0.68410045", "text": "public function edit()\n {\n return view('commonbackend::edit');\n }", "title": "" }, { "docid": "a643a9d707708f188d2b193d7694df02", "score": "0.6840435", "text": "public function edit()\n {\n return view('orgmanagement::edit');\n }", "title": "" }, { "docid": "d38180038ed5b6fde7cb6b7829d278fc", "score": "0.6835701", "text": "public function edit()\n {\n JRequest::setVar( 'view', 'actions' );\n JRequest::setVar( 'layout', 'form' );\n JRequest::setVar( 'hidemainmenu', 1 );\n\n parent::display();\n }", "title": "" }, { "docid": "a695b4f4340bb78a765476c7a7b02c4c", "score": "0.68351203", "text": "public function edit()\n {\n return view('clientapp::edit');\n }", "title": "" }, { "docid": "1816939dd0a3de7ecf446799caf8016c", "score": "0.68238723", "text": "public function edit($id)\n {\n $data = $this->model->findOrFail($id);\n\n View::share(\"data\", $data);\n View::share(\"pageTitle\", $this->pageTitle);\n View::share(\"pageUrl\", $this->pageUrl);\n View::share(\"formFields\", $this->form->getFields());\n return View::make('admin.form.form');\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68047357", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68047357", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "3b2bff17656413d9e096fd6442febe9d", "score": "0.6799307", "text": "public function edit($id) {\n $model = new $this->model;\n $field = $model::find($id);\n return view('admin.' . strtolower($this->controller) . '.edit', compact('field'));\n }", "title": "" }, { "docid": "06c02e9061fd35c64388a48995f01327", "score": "0.6796334", "text": "public function edit($id)\n\t{\n\t\t//\n\t\t$resource = \\App\\Resource::find($id);\n\n\n\t\t$categories = \\App\\Category::lists('name','id');\n\n\t\treturn view('editResource', array( 'resource' => $resource , 'categories'=>$categories) );\n\t}", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.6791791", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "d2626096b25b928d4917d532209d348f", "score": "0.67897326", "text": "public function editAction()\n {\n Zend_Controller_Action_HelperBroker::removeHelper('Layout');\n\n $id = $this->_getParam(\"id\");\n $question = $this->em()->find(\"\\Classified\\Entity\\Question\", $id);\n $this->view->question = $question->getArrayCopy();\n }", "title": "" }, { "docid": "de733d13625d2e27b579a67d4dd0e5cb", "score": "0.67832476", "text": "public function getEdit()\n {\n //\n $id = Input::get('id');\n $model = new $this->model;\n $model = $model->find($id);\n return $this->viewMake('form.create', ['model'=> $model]);\n }", "title": "" }, { "docid": "80357935025ac73c8b779d2b96017dee", "score": "0.67724776", "text": "public function edit($id) {\n $name = $this->name;\n $config = $this->config;\n $model = $this->config->find($id);\n $form = new Form($model);\n $this->config->editForm($form, $model);\n return View::make(static::editViewName(), compact('id', 'name', 'config', 'model', 'form'));\n }", "title": "" }, { "docid": "8202b11a0ebab1ee33526e691e4d3eed", "score": "0.6755838", "text": "public function edit()\n {\n return view('frontend.edit');\n }", "title": "" }, { "docid": "63cbd5995cf95e846b6f36e8000a815a", "score": "0.6754102", "text": "public function editAction()\n {\n $this->_forward('new');\n }", "title": "" }, { "docid": "4e09d9c17a6aceefb0b461c0178bb595", "score": "0.6745991", "text": "public function edit(Form $form)\n {\n $this->authorize('view', $form);\n return view('forms.edit')->with(['form' => $form]);\n }", "title": "" }, { "docid": "ff2840a2ada11fccc572361d76303fac", "score": "0.6741958", "text": "function edit()\r\n\t{\r\n\t\tJRequest::setVar( 'view', 'individual' );\r\n\t\tJRequest::setVar( 'layout', 'form' );\r\n\t\tJRequest::setVar( 'hidemainmenu', 1);\r\n\r\n\t\tparent::display();\r\n\t}", "title": "" }, { "docid": "668b7d8579ddada4536a4181f3e08041", "score": "0.6737808", "text": "public function edit()\n {\n return view('rekanan::edit');\n }", "title": "" }, { "docid": "2b96e953246fda0c5243448568a7c515", "score": "0.67088807", "text": "public function edit($id)\n {\n $entreprise = Entreprise::find($id);\n return view('entreprises.formEdit', ['entreprise' => $entreprise]);\n }", "title": "" }, { "docid": "c4c379abb53b2ca3c6d6cbd170b55609", "score": "0.6686614", "text": "public function edit($id)\n {\n \n \t$model = $this->user->find($id);\n return view('dashboard.model.form', ['modelId'=>$id, 'model'=>$model]);\n }", "title": "" }, { "docid": "559ede1cbea107ac064ad8b6596ece86", "score": "0.66762877", "text": "public function editAction($id)\n {\n $entity = $this->getRepository('Alumni')->find($id);\n $this->forward404UnlessExist($entity);\n\n $editForm = $this->createForm(new AlumniType(), $entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->renderTwig('Master/Alumni:form', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "e12e61afec6117ea96b6103dec4dfafb", "score": "0.66596234", "text": "public function edit($id)\n {\n return view('post::forms');\n }", "title": "" }, { "docid": "b4bcae16b256bb23707dba844fd207b0", "score": "0.6656474", "text": "public static function edit()\n {\n $record = todos::findOne($_REQUEST['id']);\n self::getTemplate('edit_task', $record);\n \n }", "title": "" }, { "docid": "aecac872c5871a37f7794940474724af", "score": "0.6651918", "text": "public function edit($id)\n\t{\n\t\t//\n\t\t$employee = Employee::find($id);\n\t\treturn view('employee.edit')->with('employee', $employee);\n\t}", "title": "" }, { "docid": "5abc6953fae7162215480b7a9fef57c1", "score": "0.66518015", "text": "public function edit()\n {\n return view('collection::edit');\n }", "title": "" }, { "docid": "a39d1bedc4c3fd6b0b645b643c26dd0d", "score": "0.66507", "text": "public function edit($id)\n {\n $data = Employee::where('id', $id)->first();\n\n return view('master.form.employee-form', compact('data'));\n }", "title": "" }, { "docid": "75e95fc5ea1762bde4210a296e9c267f", "score": "0.6649592", "text": "public function edit()\n {\n return view('spereport::edit');\n }", "title": "" }, { "docid": "f03c98b1ded6cb4c6e6e2fc27daed613", "score": "0.66491336", "text": "public function edit(Question $question)\n {\n $this->authorize('update',$question);//update name is taken from questionpolicy.\n return view('questions.edit',compact('question'));\n }", "title": "" }, { "docid": "b8d8f7bcf858b30b9d3fd07cde03c478", "score": "0.66466177", "text": "public function edit($id)\n {\n return view('pemilih::edit');\n }", "title": "" }, { "docid": "2c86f1804737a94386a0a9ecc5c6ef5f", "score": "0.66418463", "text": "public function editAction ()\n\t{\n\t $id = $this->params()->fromRoute('id');\n\t \n\t $form = $this->form;\n\t\n\t // Get the record by its id\n\t $rsevent = $this->eventService->find($id);\n\n\t\tif(empty($rsevent)){\n\t $this->flashMessenger()->setNamespace('danger')->addMessage('The record has been not found!');\n\t return $this->redirect()->toRoute('events');\n\t }\n\n\t\t// Bind the data in the form\n\t if (! empty($rsevent)) {\n\t $form->bind($rsevent);\n\t }\n\t \n\t $viewModel = new ViewModel(array (\n\t 'form' => $form,\n\t 'event' => $rsevent,\n\t ));\n\t\n\t $viewModel->setTemplate('events/myevents/form');\n\t return $viewModel;\n\t}", "title": "" }, { "docid": "d75ec83a50e710b9d72084a319e7792e", "score": "0.66327494", "text": "public function edit($id)\n {\n $groups = Group::all();\n $resource = Resource::find($id);\n\n return view('resources.edit', compact('resource', 'groups'));\n }", "title": "" }, { "docid": "34b21fe71b4142863d1302f360b4a15e", "score": "0.66252655", "text": "public function editAction()\n {\n View::renderTemplate('Profile/edit.html.twig', [\n 'user' => $this->user\n ]);\n }", "title": "" }, { "docid": "0132281e923c663960827a2dba422346", "score": "0.6624558", "text": "public function edit(form $form)\n {\n return view('forms.edit',compact('form'));\n }", "title": "" }, { "docid": "c5e6fb8c3a6f53103bcd8c305c0be357", "score": "0.6624066", "text": "public function edit(Family $family)\n {\n return view('humanresources::edit');\n }", "title": "" }, { "docid": "892b227aa26c3b6d3701690609dfa3a0", "score": "0.662098", "text": "public function edit($id)\n {\n $this->data['titlePage'] = trans('admin.obj_edit',['obj' => trans('admin.'.$this->titleSingle)]);\n $breadcrumbs = array();\n $breadcrumbs[] = [ 'title' => trans('admin.home'), 'link' => route($this->routeRootAdmin), 'icon' => $this->iconDashboard ];\n $breadcrumbs[] = [ 'title' => trans('admin.'.$this->titlePlural), 'link' => route(GetRouteAdminResource($this->resourceRoute)), 'icon' => $this->iconMain ];\n $breadcrumbs[] = [ 'title' => $this->data['titlePage'], 'icon' => $this->iconEdit ];\n $this->data['breadcrumbs'] = $breadcrumbs;\n\n $this->data['data'] = $this->model->find($id);\n\n return view(GetViewAdminResource($this->resourceView, 'edit'))->with($this->data);\n }", "title": "" }, { "docid": "223a4b2e951b2071b1a916b352d3f758", "score": "0.66207314", "text": "public function edit($id)\n {\n $columns = $this->columnsExtractor->getUpdateFormFields($this->columnParams);\n $entity = $this->getEntity($id);\n $mediaExtractor = new MediaExtractor($entity);\n\n return view(AdminGeneratorServiceProvider::VIEWS_NAME . '::forms.edit')\n ->with([\n 'columns' => $columns,\n 'entity' => $entity,\n 'titleSingular' => $this->titleSingular,\n 'titlePlural' => $this->titlePlural,\n 'url' => $this->getUrl(),\n 'mediaExtractor' => $mediaExtractor,\n ]);\n }", "title": "" }, { "docid": "2632981557af6d87fc0ef718c76a60a5", "score": "0.6616139", "text": "public function edit($id)\n\t{\n\t\t//\n\t\treturn View::make('invfor.edit');\n\n\t}", "title": "" }, { "docid": "e7eb022f99d007266654247f8c875bb2", "score": "0.6612846", "text": "public function edit()\n {\n return view('leaveapplication::edit');\n }", "title": "" }, { "docid": "73eac20ddaa6b78ea1224540dfac5019", "score": "0.6609262", "text": "public function edit($id)\n {\n $record = Record::findOrFail($id);\n return view('admin.edit', compact('record'));\n\n }", "title": "" }, { "docid": "fb75ecb723bf601f0c220bda3e7a2405", "score": "0.66079116", "text": "public function edit($id);", "title": "" }, { "docid": "cbe6404e0b856f507d216614da279133", "score": "0.6604817", "text": "public function edit($id)\n {\n $data = $this->model::findOrFail($id);\n return view($this->masterViews.$this->routeName.'.form', [\n 'data' => $data\n ]);\n }", "title": "" }, { "docid": "eda065f96a6d12f0f767633c98f9c541", "score": "0.6597777", "text": "public function edit($id)\n\t{\n\t\t$model = Proyecto::find($id);\n\t\tif (is_null ($model)){\n\t\t\tApp::abort(404);\n\t\t}\n\n\t\t$form_data = array('route' => array('admin.proyectos.update', $model->id), 'method' => 'PATCH');\n $actionName = 'Editar';\n $action = 'edit';\n $estadoid = 'disabled';\n $modelsName = 'proyectos';\n $proyectosSelect = null;\n return View::make('admin/layoutform', compact('model', 'form_data', 'modelsName', 'action', 'actionName', 'estadoid', 'proyectosSelect'));\n\t}", "title": "" }, { "docid": "25924f3d76afc3161783024ff1fd4760", "score": "0.65920466", "text": "public function edit() {\n\t\tif(!is_numeric($this->intFieldID) || empty($this->intFieldID)) {\n\t\t\t// Shows form interface\n\t\t\t$this->objSmarty->assign('ALERT_MSG','You must choose an item to update!');\n\t\t\t$this->_create();\n\t\t\texit();\n\t\t}\n\t\t\n\t\t// Gets Field Data\n\t\t$this->getFieldData();\n\t\t$this->objSmarty->assign('objField',$this->objField);\n\t\n\t\t// Gets Fields List\n\t\t$this->getFieldList();\n\t\t$this->objSmarty->assign('objData',$this->objData);\n\t\t\n\t\t// Shows interface\n\t\t$this->renderTemplate(true,$this->strModule . '_form.html');\n\t}", "title": "" }, { "docid": "f8aee712021a0a05cbe7c94c60ca6d93", "score": "0.6588382", "text": "public function edit($id) {\n //\n $resource = Resource::find($id);\n return back()->with('editresource',$resource);\n }", "title": "" }, { "docid": "86d1f75f514c3b131adae0c8cebb7e03", "score": "0.6585817", "text": "public function edit($id) {\n $job = Job::where('id', $id)->first();\n\n return view('forms.editJobForm', ['job' => $job]);\n }", "title": "" }, { "docid": "0725b077de449824aa68932fd4c06e1e", "score": "0.6585609", "text": "public function edit($id)\n\t{\n\t\tView::share('action', 'edit');\n\t\t$this->book = Book::with('author')->findOrFail($id);\n\t\t$this->layout->content = View::make('book/edit')->with('book', $this->book);\n\t}", "title": "" }, { "docid": "63b009873bce5c7c95fc27d34eb2c977", "score": "0.6583854", "text": "public function edit($id)\n\t{\n\t\t// get the genero\n\t\t$genero = Genero::find($id);\n\n\t\t// show the edit form and pass the genero\n\t\t$this->layout->content = View::make('genero.edit')\n\t\t\t->with('genero', $genero);\n\t}", "title": "" }, { "docid": "2036ec29cbad4ebb5c2e9ffca9c418ae", "score": "0.65807027", "text": "public function edit($id)\n\t{\n\t\t$oficina = Oficina::findOrFail($id);\n\n\t\treturn view('admin.oficinas.edit', compact('oficina'));\n\t}", "title": "" }, { "docid": "0a559309f2a48b4e6e1f531aeecd4b3a", "score": "0.6580553", "text": "public function edit($id)\n {\n //\n \n if(Auth::user()->isAdmin()) {\n $product = Product::find($id);\n return view('products.edit_form') -> with('product', $product) -> with('manufacturers', Manufacturer::all());\n } else {\n \n session()->flash('danger', 'You do not have right to edit the product.');\n \n }\n return redirect()->back();\n }", "title": "" }, { "docid": "bbd0cad2e80812e64ded040020148d94", "score": "0.6580386", "text": "public function edit()\n {\n $jobId = Helper::getIdFromUrl('job');\n $job = JobModel::load()->get($jobId);\n\n Helper::checkIdsFromSessionAndUrl($job->user_id);\n\n View::render('jobs/edit.view', [\n 'method' => 'POST',\n 'action' => '/job/' . $jobId . '/update',\n 'job' => $job\n ]); \n }", "title": "" }, { "docid": "a6c6b148776a004b9feea4845a365f72", "score": "0.65799844", "text": "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "title": "" }, { "docid": "ff31c9fe6a0066f10f83d40443f2a001", "score": "0.65770376", "text": "public function edit($id, Request $request)\n {\n $resource = $this->resources->findOrFail($id);\n\n $category = $this->categories->findBySlug(Category::SLUG_RESOURCES);\n\n abort_unless($category, 404);\n\n $categoryId = $request->query('category_id', null);\n if ($categoryId) {\n $resource->category_id = $categoryId;\n }\n\n $categories = $this->categories->getChildrenByParent($category);\n $authors = $this->authors->all();\n $statuses = Resource::getAllStatuses();\n\n return view('spark::kiosk.resource.edit', compact('resource', 'categories', 'authors', 'statuses'));\n }", "title": "" }, { "docid": "81d2968d7fc0142efbb22b2c81fc3c03", "score": "0.6576812", "text": "public function edit()\n {\n return view('panel::edit');\n }", "title": "" }, { "docid": "5d95ad49eb9dde72f7bad4139e934d2a", "score": "0.6575461", "text": "public function edit(Product $product)\n {\n //\n return $this->formView($product);\n }", "title": "" }, { "docid": "32a2288a9719adb61281e330dcfcb6be", "score": "0.6572076", "text": "public function edit()\n {\n return view('post::edit');\n }", "title": "" }, { "docid": "102b804d3fdc24125875b01f5339096a", "score": "0.65714765", "text": "public function edit($id)\n {\n return view('form.edit', Form::findorfail($id));\n }", "title": "" }, { "docid": "adf8a8a4d2598db563e5a217bbdba3cd", "score": "0.6570653", "text": "public\n\tfunction edit() {\n\t\treturn view('roles::edit');\n\t}", "title": "" }, { "docid": "87f80527ccf944a69125ffa41418e52d", "score": "0.656931", "text": "public function edit()\n {\n return view('inventory::edit');\n }", "title": "" }, { "docid": "5612f7342c86406c173280e0606947ef", "score": "0.65648115", "text": "public function editAction(){\n $this->title = 'Edit privilege';\n \n $form = new PrivilegeForm();\n $privilegeModel = new Privilege();\n \n if($this->getRequest()->isPost()){\n if($form->isValid($this->getRequest()->getPost())){\n $privilegeModel->save($form->getValues());\n $this->_helper->FlashMessenger(\n array(\n 'msg-success' => 'The privilege was successfully edited.',\n )\n );\n \n //Regenerate Flag and Flippers\n App_FlagFlippers_Manager::save();\n \n $this->_redirect('/privileges/');\n }\n }else{\n $id = $this->_getParam('id');\n \n if (!is_numeric($id)) {\n $this->_helper->FlashMessenger(\n array(\n 'msg-error' => 'The provided privilege_id is invalid.',\n )\n );\n \n $this->_redirect('/privileges/');\n }\n \n $row = $privilegeModel->findById($id);\n \n if (empty($row)) {\n $this->_helper->FlashMessenger(\n array(\n 'msg-warning' => 'The requested privilege could not be found.',\n )\n );\n \n $this->_redirect('/privileges/');\n }\n \n $form->populate($row->toArray());\n $this->view->item = $row;\n }\n \n $this->view->form = $form;\n }", "title": "" }, { "docid": "f5e66e76e12762a9390e895ff8b010a1", "score": "0.6561447", "text": "public function edit($id)\n {\n return view('crm::edit');\n }", "title": "" }, { "docid": "f5e66e76e12762a9390e895ff8b010a1", "score": "0.6561447", "text": "public function edit($id)\n {\n return view('crm::edit');\n }", "title": "" }, { "docid": "5775aa0e917620a07289496795e159aa", "score": "0.6558975", "text": "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CabinetPatientBundle:Patient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Patient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CabinetPatientBundle:Patient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "5a4fa29c8ead075ce097e439b6230e7f", "score": "0.6557373", "text": "public function edit() {\n return view('page::edit');\n }", "title": "" }, { "docid": "7036da046bffbfc19788a64f352479f1", "score": "0.6556628", "text": "public function edit($id)\n {\n $this->data['mode'] = 'edit';\n $this->data['headline'] = 'Update Informtation';\n $this->data['button'] = 'Update';\n\n $this->data['categories'] = Category::arrayForSelect();\n $this->data['product'] = Product::findorfail($id);\n\n return view('products.form',$this->data);\n }", "title": "" }, { "docid": "b1e091bc34289ce5815c7d0b31f9819f", "score": "0.6555672", "text": "public function edit()\n {\n return view('penerimaanbarangpo::edit');\n }", "title": "" }, { "docid": "1bf97160345191ce099650d7d6e00526", "score": "0.6553838", "text": "public function edit($id)\n {\n $formulario = Formulario::find($id);\n\n return view('formulario/edit')->with('formulario', $formulario);\n }", "title": "" }, { "docid": "b1a3f3ce92584deb6d9ca02e12c64273", "score": "0.654789", "text": "public function edit($id)\n\t{\n return View::make('qualimandroids.edit');\n\t}", "title": "" }, { "docid": "151edb16858cb744e42ff9328609d7c5", "score": "0.65452754", "text": "public function edit($id)\n {\n $info = $this->tableService->find($id);\n return view('backend.table.form',compact('info'));\n }", "title": "" }, { "docid": "5bfd503c4d418b21289e0965a996d9ce", "score": "0.6544858", "text": "public function edit($id)\n\t{\n return View::make('documentos.edit');\n\t}", "title": "" }, { "docid": "68681147e5708ef1d65d76ee334789ed", "score": "0.6541047", "text": "public function editAction($id) {\n $this->securityControle();\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('GestionBundle:Employe')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Employe entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('GestionBundle:Employe:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "63bf6338921c0ecb6e450b96aa113d99", "score": "0.653981", "text": "public function edit($id) {\n $viewData = $this->getDefaultViewData();\n $viewData[\"salesInvoice\"] = SalesInvoice::find($id);\n $viewData[\"mode\"] = \"EDIT\";\n\n return view('pages.sales-invoices.form', $viewData);\n }", "title": "" }, { "docid": "f45506e1eb4c9818c7c6486f9f220b97", "score": "0.65383214", "text": "public function edit($id)\n {\n //see modal controller\n }", "title": "" }, { "docid": "f45506e1eb4c9818c7c6486f9f220b97", "score": "0.65383214", "text": "public function edit($id)\n {\n //see modal controller\n }", "title": "" }, { "docid": "84d9018597a19c73dbebf5d06a3be9a2", "score": "0.65322036", "text": "public function edit($id)\n {\n //\n $enterprise= enterprise::find($id);\n return view('Enterprise.edit',compact('enterprise'));\n }", "title": "" }, { "docid": "f0a76f273d495876976122c5ef6a0216", "score": "0.6531367", "text": "public function edit($id)\n {\n $model = $this->getModel()->find($id);\n if (!$model) {\n return $this->create();\n }\n\n $this->setIndexParams([\n 'model' => $model,\n 'url' => $this->getFormUrl(),\n 'module' => $this->module,\n 'viewPath' => $this->getViewPath()\n ]);\n return view(sprintf('%s.edit', $this->getViewPath()),$this->getIndexParams());\n }", "title": "" }, { "docid": "947653e61d0da11a491ac8f8ab4c2834", "score": "0.6529227", "text": "public function edit($id)\n {\n $requicisao = $this->requicisaoRepository->find($id);\n\n if (empty($requicisao)) {\n Flash::error(__('messages.not_found', ['model' => __('models/requicisaos.singular')]));\n\n return redirect(route('requicisaos.index'));\n }\n\n return view('requicisaos.edit')->with('requicisao', $requicisao);\n }", "title": "" }, { "docid": "8720fc9c034d2db005346ebf128debb7", "score": "0.6529178", "text": "public function edit($id)\n {\n $worker=Worker::find($id);\n return view('Worker.updateform')->with('worker',$worker);\n }", "title": "" }, { "docid": "3cc92efd165a27a9567115e63d5afc4f", "score": "0.65289825", "text": "public function edit($id)\n {\n //formulario que permite modificar los datos \n }", "title": "" }, { "docid": "452b52e702b8d21243ac1f71da4ecd8b", "score": "0.6528226", "text": "public function edit($id)\n {\n //\n $field = Field::find($id);\n $menu = 'field';\n return view('admin.field.edit',compact('field','id','menu'));\n }", "title": "" }, { "docid": "003b6711d6f29181a45b0161a4d2d580", "score": "0.65280944", "text": "public function edit($id)\n {\n $this->view->line = $this->model->edit($id);\n $this->view->render($this->path . '/edit');\n \n }", "title": "" }, { "docid": "1f1fbaf4a6b16a7929b4ed49489555ed", "score": "0.6526529", "text": "public function edit($id)\n {\n $model = Kain::findOrFail($id);\n return view('adminstok.stokkain.form', compact('model'));\n }", "title": "" }, { "docid": "1ac91718aaf760018a9a68bfca3c4ca9", "score": "0.65216976", "text": "public function edit()\n {\n return view('perfil.edit');\n }", "title": "" }, { "docid": "0061e073e0d24249bc7f3fb846e94788", "score": "0.65170205", "text": "public function edit($id)\n {\n //\n $projecto = projecto::find($id);\n\n // show the editprojecto form and pass the nerd\n return View('projecto.editProjecto')\n ->with('projectos', $projecto);\n }", "title": "" }, { "docid": "c8485d35beb0db260202f1dfbd256b0e", "score": "0.65143573", "text": "public function editAction()\r\n {\r\n $item = $this->getItem();\r\n if($item === false) {\r\n $this->getResponse()->setStatusCode(404);\r\n return;\r\n }\r\n\r\n /** @var \\Zend\\Form\\Form $form */\r\n $form = $this->getServiceLocator()->get('thingyform'); // name to be dealt with here\r\n $form->setObject($item);\r\n\r\n return array(\r\n 'item' => $item,\r\n 'form' => $form\r\n );\r\n }", "title": "" } ]
67a28ecc130a26fcaf7c5a91b9ccc6f2
/ Operation getRangeTextOnline Reads range text from the document.
[ { "docid": "43daba70c9dcd9bb7b6e87763a345d33", "score": "0.7625971", "text": "public function getRangeTextOnline(Requests\\getRangeTextOnlineRequest $request)\n {\n try {\n list($response) = $this->getRangeTextOnlineWithHttpInfo($request);\n return $response;\n }\n catch(RepeatRequestException $e) {\n \t\ttry {\n \tlist($response) = $this->getRangeTextOnlineWithHttpInfo($request);\n \treturn $response;\n \t}\n \tcatch(RepeatRequestException $e) {\n \tthrow new ApiException('Authorization failed', $e->getCode(), null, null);\n \t} \n } \n }", "title": "" } ]
[ { "docid": "120f7b2b371c6e52050d076813f27506", "score": "0.7686651", "text": "public function getRangeTextOnlineAsync(Requests\\getRangeTextOnlineRequest $request) \n {\n return $this->getRangeTextOnlineAsyncWithHttpInfo($request)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "e929374012c9c94ee1b4e0c5a3416328", "score": "0.7209833", "text": "private function getRangeTextOnlineWithHttpInfo(Requests\\getRangeTextOnlineRequest $request)\n {\n $returnType = '\\Aspose\\Words\\Model\\RangeTextResponse';\n $this->_checkAuthToken();\n $req = $request->createRequest($this->config);\n\n try {\n $options = $this->_createHttpClientOption();\n try {\n $response = $this->client->send($req, $options);\n } catch (RequestException $e) {\n if ($e->getCode() == 401) {\n $this->_requestToken();\n throw new RepeatRequestException(\"Request must be retried\", 401, null, null);\n }\n else if ($e->getCode() < 200 || $e->getCode() > 299) {\n throw new ApiException(sprintf('[%d] Error connecting to the API (%s)', $e->getCode(), $req->getUri()), $e->getCode(), null, null);\n }\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(sprintf('[%d] Error connecting to the API (%s)', $statusCode, $req->getUri()), $statusCode, $response->getHeaders(), $response->getBody());\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject' || $returnType === 'FILES_COLLECTION') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n if ($this->config->getDebug()) {\n $this->_writeResponseLog($statusCode, $response->getHeaders(), ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()));\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize($e->getResponseBody(), '\\Aspose\\Words\\Model\\RangeTextResponse', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "9f33fa0deb6d97920eec08cab299d9d0", "score": "0.7191451", "text": "public function getRangeTextAsync(Requests\\getRangeTextRequest $request) \n {\n return $this->getRangeTextAsyncWithHttpInfo($request)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "19db8cb4e6a7fa539ddc79784b3f4c99", "score": "0.71845984", "text": "public function getRangeText(Requests\\getRangeTextRequest $request)\n {\n try {\n list($response) = $this->getRangeTextWithHttpInfo($request);\n return $response;\n }\n catch(RepeatRequestException $e) {\n \t\ttry {\n \tlist($response) = $this->getRangeTextWithHttpInfo($request);\n \treturn $response;\n \t}\n \tcatch(RepeatRequestException $e) {\n \tthrow new ApiException('Authorization failed', $e->getCode(), null, null);\n \t} \n } \n }", "title": "" }, { "docid": "c485cc445a0d848808b7dcfd08e50b89", "score": "0.69448966", "text": "private function getRangeTextOnlineAsyncWithHttpInfo(Requests\\getRangeTextOnlineRequest $request) \n {\n $returnType = '\\Aspose\\Words\\Model\\RangeTextResponse';\n $request = $request->createRequest($this->config);\n\n return $this->client\n ->sendAsync($request, $this->_createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject' || $returnType === 'FILES_COLLECTION') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n if ($this->config->getDebug()) {\n $this->_writeResponseLog($response->getStatusCode(), $response->getHeaders(), ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()));\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) { \n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n\n if ($exception instanceof RepeatRequestException) {\n $this->_requestToken();\n throw new RepeatRequestException(\"Request must be retried\", 401, null, null);\n }\n\n throw new ApiException(\n sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "685c2e743f8a4f2c217bd4ebabde3da7", "score": "0.6510904", "text": "private function getRangeTextWithHttpInfo(Requests\\getRangeTextRequest $request)\n {\n $returnType = '\\Aspose\\Words\\Model\\RangeTextResponse';\n $this->_checkAuthToken();\n $req = $request->createRequest($this->config);\n\n try {\n $options = $this->_createHttpClientOption();\n try {\n $response = $this->client->send($req, $options);\n } catch (RequestException $e) {\n if ($e->getCode() == 401) {\n $this->_requestToken();\n throw new RepeatRequestException(\"Request must be retried\", 401, null, null);\n }\n else if ($e->getCode() < 200 || $e->getCode() > 299) {\n throw new ApiException(sprintf('[%d] Error connecting to the API (%s)', $e->getCode(), $req->getUri()), $e->getCode(), null, null);\n }\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(sprintf('[%d] Error connecting to the API (%s)', $statusCode, $req->getUri()), $statusCode, $response->getHeaders(), $response->getBody());\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject' || $returnType === 'FILES_COLLECTION') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n if ($this->config->getDebug()) {\n $this->_writeResponseLog($statusCode, $response->getHeaders(), ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()));\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize($e->getResponseBody(), '\\Aspose\\Words\\Model\\RangeTextResponse', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "feb6b35b688a9670fe6fd023ff6a0b6f", "score": "0.6319805", "text": "private function getRangeTextAsyncWithHttpInfo(Requests\\getRangeTextRequest $request) \n {\n $returnType = '\\Aspose\\Words\\Model\\RangeTextResponse';\n $request = $request->createRequest($this->config);\n\n return $this->client\n ->sendAsync($request, $this->_createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject' || $returnType === 'FILES_COLLECTION') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n if ($this->config->getDebug()) {\n $this->_writeResponseLog($response->getStatusCode(), $response->getHeaders(), ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()));\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, $response->getHeaders()),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) { \n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n\n if ($exception instanceof RepeatRequestException) {\n $this->_requestToken();\n throw new RepeatRequestException(\"Request must be retried\", 401, null, null);\n }\n\n throw new ApiException(\n sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "9b1e2fe8b235f97e308528208c2a1f38", "score": "0.58309513", "text": "function GetTextRange($startPos, $endPos){}", "title": "" }, { "docid": "14394b524b2c6ddf7e0e8b589b6d05e6", "score": "0.54858845", "text": "function GetRange(){}", "title": "" }, { "docid": "14394b524b2c6ddf7e0e8b589b6d05e6", "score": "0.54858845", "text": "function GetRange(){}", "title": "" }, { "docid": "14394b524b2c6ddf7e0e8b589b6d05e6", "score": "0.54858845", "text": "function GetRange(){}", "title": "" }, { "docid": "2bc5e477d7978b8a82997289408c63ad", "score": "0.547407", "text": "public function getText(): RichText\n {\n return $this->text;\n }", "title": "" }, { "docid": "de9ab141eed002e1d78b541c0c28c253", "score": "0.5303621", "text": "private function _processRangeText($text) {\n\t\t$regEx = SELF::_constructRegEx();\n\t\t# echo \"<pre>$text\\n\" . print_r($regEx,true) . \"</pre>\";\n\t\tforeach($regEx as $key => $val) { $$key = $val; }\n\n\t\t$allCount = preg_match_all( \"($combinedRegEx)i\", $text, $allMatches);\n\t\t// echo \"<p>$text</p>\";\n\t\t// echo \"<pre>Count: $allCount\\n\" . print_r($allMatches,true) . \"</pre>\"; // die();\n\n\t\t$cookedRanges = array();\n\t\tforeach(array_unique($allMatches[0]) as $singleMatch) {\n\n\t\t\t$usedRegExId = false;\n\t\t\tforeach($singleRegEx as $id => $testString) {\n\t\t\t\t$count = preg_match(\"($testString)i\", $singleMatch);\n\t\t\t\tif ($count) { $usedRegExId = $id; break; }\n\t\t\t}\n\n\t\t\tif ($usedRegExId) {\n\t\t\t\t$usedUnit = substr($usedRegExId, 0, strrpos($usedRegExId, \"/\") );\n\t\t\t\t$number = $unitRegEx[$usedUnit];\n\t\t\t\t#echo \"<pre>'$singleMatch' = $usedRegExId / $usedUnit ($number)</pre>\";\n\n\t\t\t\t$singleCount = preg_match_all ( \"($number)i\", $singleMatch, $singleSplit );\n\t\t\t\t# echo \"<pre>singleCount: $singleCount\\n\" . print_r($singleSplit,true) . \"</pre>\";\n\t\t\t\t$numberRange = array();\n\t\t\t\t$numberRange[] = $singleSplit[0][0];\n\t\t\t\t$numberRange[] = $singleSplit[0][ ($singleCount==2 ? 1 : 0 ) ];\n\t\t\t\t$numberRange = SELF::_expandNumberRange($numberRange);\n\t\t\t\t# echo \"<pre>\" . print_r($numberRange,true) . \"</pre>\";\n\t\t\t\t$numberRange[] = $usedUnit;\n\t\t\t\t$cookedRanges[] = $numberRange;\n\t\t\t}\n\t\t}\n\t\t// echo \"<pre>\" . print_r($cookedDates,true) . \"</pre>\"; die();\n\n\t\treturn $cookedRanges;\n\t}", "title": "" }, { "docid": "76b8daa7d26c0fd8b9bdd4078fe9b28a", "score": "0.52882266", "text": "public function getRange()\n {\n return $this->range;\n }", "title": "" }, { "docid": "76b8daa7d26c0fd8b9bdd4078fe9b28a", "score": "0.52882266", "text": "public function getRange()\n {\n return $this->range;\n }", "title": "" }, { "docid": "76b8daa7d26c0fd8b9bdd4078fe9b28a", "score": "0.52882266", "text": "public function getRange()\n {\n return $this->range;\n }", "title": "" }, { "docid": "76b8daa7d26c0fd8b9bdd4078fe9b28a", "score": "0.52882266", "text": "public function getRange()\n {\n return $this->range;\n }", "title": "" }, { "docid": "4a793f73d7116f319116a87ed8d14b9f", "score": "0.5231426", "text": "public function getRange() \n {\n \n return $this->_range;\n \n }", "title": "" }, { "docid": "4d4ab53424a9628c04a7bd1aca6c4b18", "score": "0.51935023", "text": "protected function _getText()\n {\n $sOutput = '';\n\n $sTempFilePath = AM_Handler_Temp::getInstance()->getFile('pdftotext');\n $sPdfToTextPath = $this->getConfig()->bin->get('pdftotext', '/usr/bin/pdftotext');\n $sCommand = sprintf('nice -n 15 %s -l 1 %s %s', $sPdfToTextPath, $this->_sSourceFile, $sTempFilePath);\n AM_Tools_Standard::getInstance()->passthru($sCommand);\n $sOutput = file_get_contents($sTempFilePath);\n\n if (!$sOutput) {\n throw new AM_Resource_Exception('Unable to get page text');\n }\n\n return $sOutput;\n }", "title": "" }, { "docid": "d3b52bf6aaa829200b1d9852481e2e1a", "score": "0.5182648", "text": "function GetTextRect(){}", "title": "" }, { "docid": "0807b61266cd153867fea1d65b3e4f9f", "score": "0.5042478", "text": "public function getRangeName()\n {\n return $this->range_name;\n }", "title": "" }, { "docid": "d90b783120a87bc3d75e2f1f6d3da9ec", "score": "0.49974602", "text": "public function getRangeId()\n {\n return $this->range_id;\n }", "title": "" }, { "docid": "2ba809e8eb5cbb3bd2a8b43304f29550", "score": "0.49891052", "text": "function get_range(){\n\t\t\n\t\t$sql = sprintf(\"SELECT * FROM range_detail where isactive=1\"); \n\t\t $rs=mysql_query($sql,$this->link);\n\t\t if(!$rs){\n\t\t\t echo mysql_error($this->link);\n\t\t\t }else\n\t\t\t return $rs;\n\t\t\t\t}", "title": "" }, { "docid": "63471c10d52a863b6b72951a00eb27f4", "score": "0.4980304", "text": "public function saveAsRangeOnlineAsync(Requests\\saveAsRangeOnlineRequest $request) \n {\n return $this->saveAsRangeOnlineAsyncWithHttpInfo($request)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "a41485a20e09a4878b83962ce730e3f7", "score": "0.49413234", "text": "function FindText($minPos, $maxPos, $text, $flags){}", "title": "" }, { "docid": "59dcf6f074c4b84e6bf3ca856b1264eb", "score": "0.49386343", "text": "public function getDmAreaText();", "title": "" }, { "docid": "32436425654a8f8aede8628ee5c89096", "score": "0.4919107", "text": "public function getBodyText() : string {\n\t\t$fragment = $this->getBodyRange()->cloneContents();\n\t\treturn $fragment->textContent;\n\t}", "title": "" }, { "docid": "ea2a9c983f7d0b6b7d91ecda579823df", "score": "0.48910525", "text": "public function getPageRange()\r\r\r\n\t{\r\r\r\n\t\treturn $this->_pageRange;\r\r\r\n\t}", "title": "" }, { "docid": "e7221dc7766f91c3b1f88c608acb07a5", "score": "0.48624146", "text": "public function getRange(string $key, int $start, int $end)\n {\n return $this->cur->getRange($key, $start, $end);\n }", "title": "" }, { "docid": "ffa36c78d20c1bfc935a8739a89f946a", "score": "0.4813152", "text": "function news_get_range($start, $range, $prefix = null) {\n $query = sprintf(\"SELECT\n *\n FROM ia_textblock\n WHERE `name` LIKE 'stiri/%s%%'\n ORDER BY ia_textblock.`creation_timestamp` DESC\n LIMIT %s, %s\",\n db_escape($prefix), db_quote((int)$start), db_quote((int)$range));\n return db_fetch_all($query);\n}", "title": "" }, { "docid": "e239eea35a1d18e728d0512329fe594c", "score": "0.48086423", "text": "public function getRange(string $key, int $start, int $end): string\n {\n return $this->redis->getRange($key, $start, $end);\n }", "title": "" }, { "docid": "3db7e5f477e3aaf554927ea8dc602878", "score": "0.48067355", "text": "public function getText();", "title": "" }, { "docid": "3db7e5f477e3aaf554927ea8dc602878", "score": "0.48067355", "text": "public function getText();", "title": "" }, { "docid": "3db7e5f477e3aaf554927ea8dc602878", "score": "0.48067355", "text": "public function getText();", "title": "" }, { "docid": "3db7e5f477e3aaf554927ea8dc602878", "score": "0.48067355", "text": "public function getText();", "title": "" }, { "docid": "3db7e5f477e3aaf554927ea8dc602878", "score": "0.48067355", "text": "public function getText();", "title": "" }, { "docid": "68ae947db1aae6d778c41746647b5411", "score": "0.48027086", "text": "public function getText()\n {\n $text = trim($this->text);\n $lines = explode(\"\\n\", $text);\n\n return implode(\"\\n\", array_map('trim', $lines));\n }", "title": "" }, { "docid": "7d4df664edf0315d8d50e00f7c10f856", "score": "0.48019645", "text": "public function getRangeProperties() : array;", "title": "" }, { "docid": "4c787c5b0332423a82adb7814e0c7144", "score": "0.4795624", "text": "public function getText()\n {\n $text = $this->getData('text');\n $helper = Mage::helper('cms');\n $processor = $helper->getBlockTemplateProcessor();\n $html = $processor->filter($text);\n return $html;\n }", "title": "" }, { "docid": "4c787c5b0332423a82adb7814e0c7144", "score": "0.4795624", "text": "public function getText()\n {\n $text = $this->getData('text');\n $helper = Mage::helper('cms');\n $processor = $helper->getBlockTemplateProcessor();\n $html = $processor->filter($text);\n return $html;\n }", "title": "" }, { "docid": "b04b07bc88f015c0d4faf483d34f0567", "score": "0.47920737", "text": "public function getRange() {\n return $this->_range_RNG;\n }", "title": "" }, { "docid": "ef2b09a07c5067a7554b0ca4cb523031", "score": "0.4769702", "text": "function detect_text($path)\r\n{\r\n $imageAnnotator = new ImageAnnotatorClient();\r\n # annotate the image\r\n $image = file_get_contents($path);\r\n $response = $imageAnnotator->textDetection($image);\r\n $texts = $response->getTextAnnotations();\r\n printf('%d texts found:' . PHP_EOL, count($texts));\r\n foreach ($texts as $text) {\r\n print_r($text->getDescription() . PHP_EOL);\r\n # get bounds\r\n $vertices = $text->getBoundingPoly()->getVertices();\r\n $bounds = [];\r\n foreach ($vertices as $vertex) {\r\n $bounds[] = sprintf('(%d,%d)', $vertex->getX(), $vertex->getY());\r\n }\r\n print_r('Bounds: ' . join(', ',$bounds) . PHP_EOL);\r\n }\r\n}", "title": "" }, { "docid": "3741fa2370ec9682365a661cdddf946d", "score": "0.47576323", "text": "public function saveAsRangeOnline(Requests\\saveAsRangeOnlineRequest $request)\n {\n try {\n list($response) = $this->saveAsRangeOnlineWithHttpInfo($request);\n return $response;\n }\n catch(RepeatRequestException $e) {\n \t\ttry {\n \tlist($response) = $this->saveAsRangeOnlineWithHttpInfo($request);\n \treturn $response;\n \t}\n \tcatch(RepeatRequestException $e) {\n \tthrow new ApiException('Authorization failed', $e->getCode(), null, null);\n \t} \n } \n }", "title": "" }, { "docid": "ac9ff0bb1de43a37975142f70ca6ff32", "score": "0.4756212", "text": "public function get_dtm_range()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$dtm = explode('-',$this->dtm);\n\t\t\tif(is_array($dtm) && !empty($dtm) &&(count($dtm)>1))\n\t\t\t{\n\t\t\t\tlist($a,$b) = $dtm;\n\t\t\t\tif($a===$b) return $a;\n\t\t\t\telse return $this->dtm;\n\t\t\t}\n\t\t\telse return $this->dtm;\n\t\t}\n\t\tcatch(\\ErrorException $e)\n\t\t{\n\t\t\treturn $this->dtm;\n\t\t}\n\t}", "title": "" }, { "docid": "8d05505b5d0aeaf25f7dff89a00d06bd", "score": "0.47552603", "text": "function GetPageText(){}", "title": "" }, { "docid": "db6707615428694314bd39defaf36633", "score": "0.47434258", "text": "function GetRange($from, $to){}", "title": "" }, { "docid": "80fe66b36683a1a8cb59aac527f7e90a", "score": "0.47415742", "text": "public function text()\n {\n try {\n $text = $this->frequentWords($this->textFileConsumer->text());\n\n $frequentWords = \"\";\n foreach($text as $word => $count) {\n $frequentWords .= $word . \",\" . $count . \"\\n\";\n }\n\n return $frequentWords;\n\n } catch (CouldNotConsumeTextException $e) {\n return $e->getMessage();\n }\n }", "title": "" }, { "docid": "f208d2746c169276fc55dec2be48c871", "score": "0.47406623", "text": "public function listRanges() {\n\t\treturn $this->ranges;\n\t}", "title": "" }, { "docid": "8f33413df3e09a9b86658394ab4b3196", "score": "0.4735224", "text": "function shortcode_estimated_range() {\n\tob_start();\n\trender_estimated_range();\n\treturn ob_get_clean();\n}", "title": "" }, { "docid": "4ecaee3281c2761b53b68f4070b891eb", "score": "0.4719966", "text": "public function getText(): string\n {\n return $this->text;\n }", "title": "" }, { "docid": "4ecaee3281c2761b53b68f4070b891eb", "score": "0.4719966", "text": "public function getText(): string\n {\n return $this->text;\n }", "title": "" }, { "docid": "f20bf2fe7b1b22c0e6d14c31719327b7", "score": "0.47147137", "text": "public function getPageRange()\n {\n return $this->pageRange;\n }", "title": "" }, { "docid": "a288450fd66c1e59205adb03d6627462", "score": "0.4710084", "text": "public function removeRangeOnlineAsync(Requests\\removeRangeOnlineRequest $request) \n {\n return $this->removeRangeOnlineAsyncWithHttpInfo($request)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "9e27839977272063ddc21f18b7f99be3", "score": "0.4706976", "text": "function randtext($range){\n $char = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZ123456789';\n $start = rand(1,(strlen($char)-$range));\n $shuffled = str_shuffle($char);\n return substr($shuffled,$start,$range);\n }", "title": "" }, { "docid": "ca12f166d68c6a9e58bafc5e224d421e", "score": "0.4692764", "text": "public function getRange() {\n $aReturn = array(\"result\" => FALSE);\n try {\n $dtEnd = $this->now();\n $dtStart = $this->start($dtEnd);\n $sEnd = $this->format($dtEnd);\n $sStart = $this->format($dtStart);\n $sMiddle = $this->middle($dtStart);\n $sMiddle = $this->format($sMiddle);\n $aReturn = array(\"result\" => TRUE, \"start\" => $sStart, \"middle\" => $sMiddle, \"end\" => $sEnd);\n } catch (Exception $exc) {\n $sMsj = $exc->getMessage();\n $sLine = $exc->getLine();\n $sCode = $exc->getCode();\n $sFile = $exc->getFile();\n $sTrace = $exc->getTraceAsString();\n $oMail = new MailController();\n $oMail->sendEmail($sCode, $sMsj, $sFile, $sLine, $sTrace);\n }\n return $aReturn;\n }", "title": "" }, { "docid": "ca12f166d68c6a9e58bafc5e224d421e", "score": "0.4692764", "text": "public function getRange() {\n $aReturn = array(\"result\" => FALSE);\n try {\n $dtEnd = $this->now();\n $dtStart = $this->start($dtEnd);\n $sEnd = $this->format($dtEnd);\n $sStart = $this->format($dtStart);\n $sMiddle = $this->middle($dtStart);\n $sMiddle = $this->format($sMiddle);\n $aReturn = array(\"result\" => TRUE, \"start\" => $sStart, \"middle\" => $sMiddle, \"end\" => $sEnd);\n } catch (Exception $exc) {\n $sMsj = $exc->getMessage();\n $sLine = $exc->getLine();\n $sCode = $exc->getCode();\n $sFile = $exc->getFile();\n $sTrace = $exc->getTraceAsString();\n $oMail = new MailController();\n $oMail->sendEmail($sCode, $sMsj, $sFile, $sLine, $sTrace);\n }\n return $aReturn;\n }", "title": "" }, { "docid": "33df12aaafc364445d326b328fb3d1ce", "score": "0.46921477", "text": "private function rangeValue()\n {\n $lowerInclusive = true;\n $upperInclusive = true;\n\n if ($this->lexer->isNextTokenAny(array(Lexer::T_OPEN_BRACE, Lexer::T_CLOSE_BRACE))) {\n $lowerInclusive = $this->lexer->isNextToken(Lexer::T_OPEN_BRACE);\n $this->lexer->moveNext();\n }\n\n $lowerBound = $this->stringValue();\n $this->match(Lexer::T_MINUS);\n $upperBound = $this->stringValue();\n\n if ($this->lexer->isNextTokenAny(array(Lexer::T_OPEN_BRACE, Lexer::T_CLOSE_BRACE))) {\n $upperInclusive = $this->lexer->isNextToken(Lexer::T_CLOSE_BRACE);\n $this->lexer->moveNext();\n }\n\n return new Value\\Range($lowerBound, $upperBound, $lowerInclusive, $upperInclusive);\n }", "title": "" }, { "docid": "eeac906dd0f42bad049f3548d5a8b89c", "score": "0.46898538", "text": "function GetText(){}", "title": "" }, { "docid": "eeac906dd0f42bad049f3548d5a8b89c", "score": "0.46898538", "text": "function GetText(){}", "title": "" }, { "docid": "eeac906dd0f42bad049f3548d5a8b89c", "score": "0.46898538", "text": "function GetText(){}", "title": "" }, { "docid": "eeac906dd0f42bad049f3548d5a8b89c", "score": "0.46898538", "text": "function GetText(){}", "title": "" }, { "docid": "eeac906dd0f42bad049f3548d5a8b89c", "score": "0.46898538", "text": "function GetText(){}", "title": "" }, { "docid": "7fc346eb2f96b4668b750d140a4b93e9", "score": "0.4680219", "text": "public function getText() {\n return $this->_text;\n }", "title": "" }, { "docid": "40d4ca92db769362d8c75fffdc3d1746", "score": "0.4674228", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "b085a2c172ed780f651a4bc351bf819b", "score": "0.46614382", "text": "public function getText()\n {\n if (!$this->converted) {\n $this->convert();\n }\n\n return $this->text;\n }", "title": "" }, { "docid": "650f075700f4dd85e515463a33d1d5b8", "score": "0.46573108", "text": "public function getText() {\n return $this->text;\n }", "title": "" }, { "docid": "650f075700f4dd85e515463a33d1d5b8", "score": "0.46573108", "text": "public function getText() {\n return $this->text;\n }", "title": "" }, { "docid": "4adb7ae486fc3ddb64beb0386d659390", "score": "0.46528533", "text": "public function getText(): string {\n\t\treturn $this->text;\n\t}", "title": "" }, { "docid": "6f69eda31f1f732907efe98f62e3b6f2", "score": "0.46527445", "text": "public function getText () {\n\n return $this->text;\n //===\n }", "title": "" }, { "docid": "9e17ecafc353e7e90da3cc937b01e3d4", "score": "0.46463615", "text": "public function getText()\n {\n return $this->_text;\n }", "title": "" }, { "docid": "d715ecea48e51f15c046a4a699799823", "score": "0.46431935", "text": "public function getDmGovernateText();", "title": "" }, { "docid": "4ceed7a0b04b44757f81a84c160780eb", "score": "0.46401376", "text": "public function getText()\n {\n return $this->get_text();\n }", "title": "" }, { "docid": "76db8447fa92d8db292052472d911f64", "score": "0.46382624", "text": "public function getText() {\r\n return $this->text;\r\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "26d2be6c9dfc8ec58e3f9814cebda94e", "score": "0.4631398", "text": "public function getText()\n {\n return $this->text;\n }", "title": "" }, { "docid": "4a8eaee31504ce05c37a5fd23d9393d4", "score": "0.46291137", "text": "public function getXsiTypeName() {\n return \"Range\";\n }", "title": "" }, { "docid": "e65d0bb6d65ce9c11101d53b52e3e18a", "score": "0.46237722", "text": "public function text();", "title": "" }, { "docid": "e65d0bb6d65ce9c11101d53b52e3e18a", "score": "0.46237722", "text": "public function text();", "title": "" }, { "docid": "cd19d123fc7cfa3e0814c2bba7ebcff3", "score": "0.46185076", "text": "public function getText() {\r\n return $this->text;\r\n }", "title": "" }, { "docid": "47adeb744c8d90c6874903abfde52d8f", "score": "0.46141273", "text": "public function getText ()\n {\n return $this->_text;\n }", "title": "" }, { "docid": "aa5ff2649944e231b15ed237b4b9e924", "score": "0.4612891", "text": "public function getRawText()\n {\n return $this->_text;\n }", "title": "" }, { "docid": "37caa0491e7f76b91c3499faae53f09b", "score": "0.4611594", "text": "function SelectionToText(){}", "title": "" }, { "docid": "03e8f12916cff1d23c12d4bb95e3b9e6", "score": "0.4609097", "text": "public function getText() {\n\t\treturn $this->text;\n\t}", "title": "" }, { "docid": "03e8f12916cff1d23c12d4bb95e3b9e6", "score": "0.4609097", "text": "public function getText() {\n\t\treturn $this->text;\n\t}", "title": "" }, { "docid": "5f645784773716095da8d11ef45310c7", "score": "0.45999768", "text": "public function getText():string\n {\n return $this->text;\n }", "title": "" }, { "docid": "e05fa44ab6dc5394e1e47237c733e4f2", "score": "0.45985687", "text": "protected function getTextBody()\n {\n return $this->_text;\n }", "title": "" }, { "docid": "cf9642726ef178cce8cdf8229e9ee8c6", "score": "0.459362", "text": "public function getText()\r\n {\r\n return $this->text;\r\n }", "title": "" }, { "docid": "638c5fcd8d721cdcbfb957aa312bee56", "score": "0.45836323", "text": "public function getBodyText();", "title": "" }, { "docid": "c5ffc5e81e633ec5af434723931fcdb1", "score": "0.45728868", "text": "protected function get_date_range() {\n\t\treturn $this->range;\n\t}", "title": "" }, { "docid": "48ad048f4c8a5cfd04256665212ab99f", "score": "0.45652848", "text": "public function removeRangeOnline(Requests\\removeRangeOnlineRequest $request)\n {\n try {\n list($response) = $this->removeRangeOnlineWithHttpInfo($request);\n return $response;\n }\n catch(RepeatRequestException $e) {\n \t\ttry {\n \tlist($response) = $this->removeRangeOnlineWithHttpInfo($request);\n \treturn $response;\n \t}\n \tcatch(RepeatRequestException $e) {\n \tthrow new ApiException('Authorization failed', $e->getCode(), null, null);\n \t} \n } \n }", "title": "" } ]
5ec3c50f8edd7fe917399714bfcf3377
remove unwanted dashboard widgets
[ { "docid": "22b141c6ece08b3133622d93685a7b6c", "score": "0.79536325", "text": "public function remove_dashboard_widgets()\n {\n // Quickpress\n remove_meta_box('dashboard_quick_press', 'dashboard', 'side');\n // WP News\n remove_meta_box('dashboard_primary', 'dashboard', 'side');\n //? remove_meta_box('dashboard_secondary', 'dashboard', 'side');\n }", "title": "" } ]
[ { "docid": "949a2883cf57456891377eedc420f62e", "score": "0.83561313", "text": "function essence_dashboard_widgets() {\n remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal');\n remove_meta_box('dashboard_plugins', 'dashboard', 'normal');\n remove_meta_box('dashboard_primary', 'dashboard', 'normal');\n remove_meta_box('dashboard_secondary', 'dashboard', 'normal');\n}", "title": "" }, { "docid": "3a269c75a9375398f7f1289e95d5d37f", "score": "0.82501745", "text": "function jr_remove_dashboard_widgets() {\n\tremove_meta_box('welcome-panel', 'dashboard', 'core');\n\tremove_meta_box('dashboard_right_now', 'dashboard', 'core');\n\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'core');\n\t// remove_meta_box('dashboard_incoming_links', 'dashboard', 'core');\n\tremove_meta_box('dashboard_plugins', 'dashboard', 'core');\n\tremove_meta_box('dashboard_quick_press', 'dashboard', 'core');\n\t// remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');\n\tremove_meta_box('dashboard_primary', 'dashboard', 'core');\n\tremove_meta_box('dashboard_secondary', 'dashboard', 'core');\n}", "title": "" }, { "docid": "b6872d86dd3f4e96cfdf420139360f91", "score": "0.8235459", "text": "function remove_unused_dashboard_widgets() {\n\tremove_meta_box('dashboard_incoming_links', 'dashboard', 'normal');\n\tremove_meta_box('dashboard_plugins', 'dashboard', 'normal');\n\tremove_meta_box('dashboard_primary', 'dashboard', 'normal');\n\tremove_meta_box('dashboard_secondary', 'dashboard', 'normal');\n\t//remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');\n\tremove_meta_box('postcustom', 'page', 'normal');\n\tremove_meta_box('postcustom', 'post', 'normal');\n\tremove_meta_box('wpseo_meta', 'post', 'normal');\n}", "title": "" }, { "docid": "d0fe11306f0c19982a352097efaf57f8", "score": "0.8202249", "text": "function remove_dashboard_widgets() {\n\tremove_meta_box('dashboard_incoming_links', 'dashboard', 'normal');\n\tremove_meta_box('dashboard_plugins', 'dashboard', 'normal');\n\tremove_meta_box('dashboard_primary', 'dashboard', 'normal');\n\tremove_meta_box('dashboard_secondary', 'dashboard', 'normal');\n\tremove_meta_box('dashboard_quick_press', 'dashboard', 'side');\n\tremove_meta_box('dashboard_recent_drafts', 'dashboard', 'side');\n\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');\n}", "title": "" }, { "docid": "58c6cd589fbe36f705f05ca10cd9c30a", "score": "0.8192157", "text": "function gloggi_remove_dashboard_widgets(){\n remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_activity', 'dashboard', 'normal');//since 3.8\n}", "title": "" }, { "docid": "d4f7ce81f001b5a69d7e81e703df3338", "score": "0.8186313", "text": "function shoestrap_remove_dashboard_widgets() {\n\tremove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );\n\tremove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );\n\tremove_meta_box( 'dashboard_primary', 'dashboard', 'normal' );\n\tremove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );\n}", "title": "" }, { "docid": "39a94108875d512c4df8be2aa4b7b19d", "score": "0.8184295", "text": "function remove_dashboard_widgets() {\n\t remove_meta_box( 'dashboard_activity', 'dashboard', 'normal');\n\t\tremove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\n\t\tremove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );\n\t\tremove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_primary', 'dashboard', 'side' );\n\t\tremove_action('welcome_panel', 'wp_welcome_panel');\n\t}", "title": "" }, { "docid": "8e1f0ca77f2de794a130bd15b13c8aec", "score": "0.81811446", "text": "function cu_remove_dashboard_widgets() {\n\t\tglobal $wp_meta_boxes;\n\t\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);\n\t\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);\n\t\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);\n\t\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);\n\t\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);\n\t\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);\n\t\tunset($wp_meta_boxes['dashboard']['side']['core']['feedwordpress_dashboard']);\n\t\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);\n\t\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);\n\t\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);\n\t}", "title": "" }, { "docid": "37b18120b188def607cc47d4f1435ef7", "score": "0.8163958", "text": "function remove_dashboard_widgets() {\n remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal');\n remove_meta_box('dashboard_plugins', 'dashboard', 'normal');\n remove_meta_box('dashboard_primary', 'dashboard', 'normal');\n remove_meta_box('dashboard_secondary', 'dashboard', 'normal');\n}", "title": "" }, { "docid": "a382382b1f9f62a7c9be35aa8de0e309", "score": "0.8157418", "text": "function remove_dashboard_widgets() {\n global $wp_meta_boxes;\n\n //unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); // Plugins widget\n //unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); // WordPress Blog widget\n //unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); // Other WordPress News widget\n //unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); // Right Now widget\n //unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); // Quick Press widget\n //unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); // Incoming Links widget\n //unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']); // Recent Drafts widget\n //unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); // Recent Comments widget\n}", "title": "" }, { "docid": "e0e056f0069a7a0d4ed1841bcadb3341", "score": "0.81421334", "text": "function mattrad_remove_dashboard_widgets(){\n global $wp_meta_boxes;\n unset($wp_meta_boxes['dashboard']['normal']['core']['rg_forms_dashboard']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['cws-wp-help-dashboard-widget']); \n}", "title": "" }, { "docid": "0e330f072a19c7ffaf72abaf7511afdd", "score": "0.81271595", "text": "function remove_dashboard_widgets() {\n\t/*remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' ); // Right Now\n\tremove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); // Recent Comments\n\tremove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' ); // Incoming Links\n\tremove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' ); // Plugins*/\n\tremove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); // Quick Press\n\t/*remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' ); // Recent Drafts*/\n\tremove_meta_box( 'dashboard_primary', 'dashboard', 'side' ); // WordPress blog\n\tremove_meta_box( 'dashboard_secondary', 'dashboard', 'side' ); // Other WordPress News\n\tremove_meta_box( 'wpseo-dashboard-overview', 'dashboard', 'side' ); // Yoast Seo widget\n}", "title": "" }, { "docid": "e771d5bbb240c237a7d0617efc437dcb", "score": "0.8093291", "text": "function idm_remove_dashboard_widgets() {\n\tglobal $wp_meta_boxes;\n\t// unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);\n\t// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);\n\t// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']);\n\t// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);\n}", "title": "" }, { "docid": "90d13e7241b7e9b424611be3a3fa59e6", "score": "0.8087089", "text": "function remove_dashboard_widgets() {\n global $wp_meta_boxes;\n\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); // Plugins widget\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); // WordPress Blog widget\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); // Other WordPress News widget\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); // Right Now widget\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); // Quick Press widget\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); // Incoming Links widget\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']); // Recent Drafts widget\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); // Recent Comments widget\n}", "title": "" }, { "docid": "c96cab6310f0808114bda17193fbbc48", "score": "0.80526906", "text": "public function removeDashboardWidgets()\n {\n global $wp_meta_boxes;\n\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['yoast_db_widget']);\n }", "title": "" }, { "docid": "ef2c8e44219c9ec1c717e17ef8c0dd95", "score": "0.8013646", "text": "public function removeDashboardWidgets() {\n add_action('wp_dashboard_setup', array($this, '_remove_dashboard_widgets'));\n }", "title": "" }, { "docid": "b3f1c93bcf3d0bb3695dc86c226acdce", "score": "0.7932731", "text": "function sandbox_remove_dashboard_widgets(){\n global $wp_meta_boxes;\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);}", "title": "" }, { "docid": "1ddd47c1720cb995402855c797d62d45", "score": "0.792579", "text": "public function remove_dashboard_widgets(){\n global $wp_meta_boxes;\n\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);\n }", "title": "" }, { "docid": "8bd6bf447a4f67709b837750a07c9239", "score": "0.79147375", "text": "function remove_dashboard_widgets() {\n\t\n\tglobal $wp_meta_boxes;\n\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); \n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']);\n\n}", "title": "" }, { "docid": "8b4ef26bd70331a8ff49f1c30993bc3a", "score": "0.79016274", "text": "function disable_default_dashboard_widgets() {\n\t// remove_meta_box('dashboard_right_now', 'dashboard', 'core'); // Right Now Widget\n\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); // Comments Widget\n\tremove_meta_box('dashboard_incoming_links', 'dashboard', 'core'); // Incoming Links Widget\n\tremove_meta_box('dashboard_plugins', 'dashboard', 'core'); // Plugins Widget\n\n\tremove_meta_box('dashboard_quick_press', 'dashboard', 'core'); // Quick Press Widget\n\t//remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core'); // Recent Drafts Widget\n\tremove_meta_box('dashboard_primary', 'dashboard', 'core'); //\n\tremove_meta_box('dashboard_secondary', 'dashboard', 'core'); //\n\n\t// removing plugin dashboard boxes\n\tremove_meta_box('yoast_db_widget', 'dashboard', 'normal'); // Yoast's SEO Plugin Widget\n\n\t/*\n\thave more plugin widgets you'd like to remove?\n\tshare them with us so we can get a list of\n\tthe most commonly used. :D\n\thttps://github.com/eddiemachado/bones/issues\n\t*/\n}", "title": "" }, { "docid": "32cd96c3b2dca761b6cc400dc1ffa7f2", "score": "0.78852224", "text": "function remove_some_widgets(){\n \n // Unregister some of the TwentyTen sidebars\n unregister_sidebar( 'sidebar-1' );\n}", "title": "" }, { "docid": "5c1bdc5edc433f6fd65eb486bb9612da", "score": "0.7882644", "text": "function rad_remove_dash_widgets(){\n\tremove_meta_box( 'dashboard_primary', 'dashboard', 'side' );\n\n\t//add our own widget (id, title, callback widget)\n\twp_add_dashboard_widget( 'dashboard_rad_feed', 'Melissa\\'s Wordpress Site', \n\t\t'rad_rss_widget' );\n}", "title": "" }, { "docid": "5e18854cfaec2709c93613a658107cd6", "score": "0.7862594", "text": "public function remove_dashboard_widgets() {\n\t\tglobal $wp_meta_boxes;\n\n\t\tunset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press'] );\n\t\tunset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links'] );\n\t\tunset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now'] );\n\t\tunset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins'] );\n\t\tunset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts'] );\n\t\tunset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments'] );\n\t\tunset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_primary'] );\n\t\tunset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary'] );\n\t\tunset( $wp_meta_boxes['dashboard']['normal']['core']['yoast_db_widget'] );\n\t}", "title": "" }, { "docid": "a7cddf2089179b0dc808b4c865c19891", "score": "0.7859857", "text": "function example_remove_dashboard_widgets() {\n\t// Globalize the metaboxes array, this holds all the widgets for wp-admin\n\n\tglobal $wp_meta_boxes;\n\n\t// Remove the plugins widget\n\t\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);\n\n\t// Remove the incoming links widget\n\nunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);\t\n}", "title": "" }, { "docid": "472e1837ab232edde6a38f7a6d59bb15", "score": "0.7754817", "text": "function wp_remove_dashboard_widgets(){\n\t \n\t remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); //Quick Press widget\n //remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' ); //Recent Drafts\n remove_meta_box( 'dashboard_primary', 'dashboard', 'side' ); //WordPress.com Blog\n //remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' ); //Other WordPress News\n //remove_meta_box( 'dashboard_incoming_links','dashboard', 'normal' ); //Incoming Links\n}", "title": "" }, { "docid": "e599f559ef028a2cca8d80d4b45db86c", "score": "0.77399176", "text": "function erocks_kill_all_dash_widgets() {\r\n\tglobal $wp_meta_boxes;\r\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);\r\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);\r\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);\r\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);\r\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);\r\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);\r\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);\r\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);\r\n}", "title": "" }, { "docid": "8bb7b37f6cf81294c7c20866e4c119ad", "score": "0.77066094", "text": "function disable_default_dashboard_widgets() {\n\tglobal $wp_meta_boxes;\n\t// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); // Right Now Widget\n//\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']); // Activity Widget\n//\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); // Comments Widget\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); // Incoming Links Widget\n//\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); // Plugins Widget\n\n\t// unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); // Quick Press Widget\n//\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']); // Recent Drafts Widget\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); //\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); //\n\n\t// remove plugin dashboard boxes\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['yoast_db_widget']); // Yoast's SEO Plugin Widget\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['rg_forms_dashboard']); // Gravity Forms Plugin Widget\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['bbp-dashboard-right-now']); // bbPress Plugin Widget\n}", "title": "" }, { "docid": "cd565d4ef5b85ce7beb380cf9ebd468f", "score": "0.7688437", "text": "function dez_remove_dashboard_widget() {\n remove_meta_box( 'dashboard_primary', 'dashboard', 'side');\n}", "title": "" }, { "docid": "9a8ebb7385fd14779a9ad7a42166b9e1", "score": "0.7678986", "text": "function remove_dashboard_widgets() {\n global $wp_meta_boxes;\n\n unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press'] );\n unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links'] );\n unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now'] );\n unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins'] );\n unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts'] );\n unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments'] );\n unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity'] );\n unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_primary'] );\n unset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary'] );\n\n}", "title": "" }, { "docid": "c4f2ce9c88cffea899ab53d30f3ecc13", "score": "0.76404405", "text": "function disable_default_dashboard_widgets() {\n\tif (!current_user_can('administrator')) { remove_meta_box('dashboard_right_now', 'dashboard', 'core'); } // Right Now Widget\n\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); // Comments Widget\n\tremove_meta_box('dashboard_incoming_links', 'dashboard', 'core'); // Incoming Links Widget\n\tremove_meta_box('dashboard_plugins', 'dashboard', 'core'); // Plugins Widget\n\n\tremove_meta_box('dashboard_quick_press', 'dashboard', 'core'); // Quick Press Widget\n\tremove_meta_box('dashboard_recent_drafts', 'dashboard', 'core'); // Recent Drafts Widget\n\tremove_meta_box('dashboard_primary', 'dashboard', 'core'); // Wordpress Blog Feed\n\tremove_meta_box('dashboard_secondary', 'dashboard', 'core'); // Other Wordpress News\n\t\n\t// removing plugin dashboard boxes \n\tremove_meta_box('yoast_db_widget', 'dashboard', 'normal'); // Yoast's SEO Plugin Widget\n\tremove_meta_box('rg_forms_dashboard', 'dashboard', 'normal'); // Gravity Forms Widget\n\tremove_meta_box('icl_dashboard_widget','dashboard','normal');\t\t\t\t\t\t// WPML Multilingual Widget\n\t\n}", "title": "" }, { "docid": "e999c141838da8a0f4c4de92edead80c", "score": "0.76314765", "text": "function disable_default_dashboard_widgets() {\n\n remove_meta_box('dashboard_right_now', 'dashboard', 'core');\n remove_meta_box('dashboard_activity', 'dashboard', 'core');\n remove_meta_box('dashboard_recent_comments', 'dashboard', 'core');\n remove_meta_box('dashboard_incoming_links', 'dashboard', 'core');\n remove_meta_box('dashboard_plugins', 'dashboard', 'core');\n\n remove_meta_box('dashboard_quick_press', 'dashboard', 'core');\n remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');\n remove_meta_box('dashboard_primary', 'dashboard', 'core');\n remove_meta_box('dashboard_secondary', 'dashboard', 'core');\n}", "title": "" }, { "docid": "5748ecd715accdf77a25ff71167fa18c", "score": "0.7628154", "text": "function optimizator_remove_dashboard_widgets () {\r\n // Brouillon rapide\r\n $opt_gen_dw_press = get_option('opt_gen_dw_press');\r\n if($opt_gen_dw_press){\r\n remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\r\n }\r\n\r\n // Un coup d'oeil\r\n $opt_gen_dw_oeil = get_option('opt_gen_dw_oeil');\r\n if($opt_gen_dw_oeil){\r\n remove_meta_box( 'dashboard_right_now', 'dashboard', 'side' );\r\n }\r\n\r\n // Commentaires récents\r\n $opt_gen_dw_commentaires = get_option('opt_gen_dw_commentaires');\r\n if($opt_gen_dw_commentaires){\r\n remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );\r\n }\r\n\r\n // Brouillons récents\r\n $opt_gen_dw_recent = get_option('opt_gen_dw_recent');\r\n if($opt_gen_dw_recent){\r\n remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );\r\n }\r\n\r\n // Activité\r\n $opt_gen_dw_activite = get_option('opt_gen_dw_activite');\r\n if($opt_gen_dw_activite){\r\n remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' );\r\n }\r\n\r\n // WordPress.com Blog\r\n $opt_gen_dw_wordpress = get_option('opt_gen_dw_wordpress');\r\n if($opt_gen_dw_wordpress){\r\n remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );\r\n remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );\r\n }\r\n\r\n // Plugins\r\n $opt_gen_dw_plugins = get_option('opt_gen_dw_plugins');\r\n if($opt_gen_dw_plugins){\r\n remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );\r\n }\r\n\r\n // Incoming Links\r\n $opt_gen_dw_liens = get_option('opt_gen_dw_liens');\r\n if($opt_gen_dw_liens){\r\n remove_meta_box( 'dashboard_incoming_links','dashboard', 'normal' );\r\n }\r\n \r\n }", "title": "" }, { "docid": "a0eaaebca72ae1f5cc8cd59842ea99a7", "score": "0.76105833", "text": "function jumpoff_disable_default_dashboard_widgets() {\n global $wp_meta_boxes;\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); // Right Now Widget\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']); // Activity Widget\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); // Comments Widget\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); // Incoming Links Widget\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); // Plugins Widget\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); // Quick Press Widget\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']); // Recent Drafts Widget\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); //\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); \n}", "title": "" }, { "docid": "9668cbfe6f261258b3c076c8030916fe", "score": "0.75963265", "text": "function disable_default_dashboard_widgets() {\n\n\tremove_meta_box('dashboard_right_now', 'dashboard', 'core');\n\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'core');\n\tremove_meta_box('dashboard_incoming_links', 'dashboard', 'core');\n\tremove_meta_box('dashboard_plugins', 'dashboard', 'core');\n\tremove_meta_box('dashboard_quick_press', 'dashboard', 'core');\n\tremove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');\n\tremove_meta_box('dashboard_primary', 'dashboard', 'core');\n\tremove_meta_box('dashboard_secondary', 'dashboard', 'core');\n}", "title": "" }, { "docid": "bad4f624ff70f25e405e80ef89e08a55", "score": "0.7589657", "text": "function remove_dashboard_widgets() {\n $user = wp_get_current_user();\n if ( ! $user->has_cap( 'manage_options' ) ) {\n remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_special_offers', 'dashboard', 'side' );\n }\n}", "title": "" }, { "docid": "d0cff50d12a665dbb47e8eb9d2557c19", "score": "0.7551389", "text": "function smallwins_disable_dashboard_widgets() {\n remove_menu_page( 'about.php' );\n remove_meta_box('dashboard_primary', 'dashboard', 'core');// Remove WordPress Events and News\n}", "title": "" }, { "docid": "1421ec2c986b44091041fbff4529b7c0", "score": "0.754498", "text": "function remove_some_widgets() {\n\tunregister_sidebar('header-right');\n}", "title": "" }, { "docid": "9e2169eb9ca0fd2c114d670934b1e843", "score": "0.7538723", "text": "function disable_default_dashboard_widgets() {\n\n\tglobal $wp_meta_boxes;\n\n // Clean default WP admin\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']);\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);\n\n\t// bbpress\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['bbp-dashboard-right-now']);\n\n // yoast seo\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['yoast_db_widget']);\n\n // gravity forms\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['rg_forms_dashboard']);\n\n}", "title": "" }, { "docid": "31e0a2d48cf4607a430baec9f015ba38", "score": "0.75303143", "text": "public function disableAllDashboardWidgets()\n {\n global $wp_meta_boxes;\n\n foreach ($wp_meta_boxes['dashboard']['normal']['core'] as $widget) {\n unset($widget);\n }\n\n foreach ($wp_meta_boxes['dashboard']['side']['core'] as $widget) {\n unset($widget);\n }\n }", "title": "" }, { "docid": "41570bc534d6dd70fe18c47fde903c10", "score": "0.74933803", "text": "function remove_some_wp_widgets(){\n unregister_widget('WP_Widget_Calendar');\n unregister_widget('WP_Widget_Search');\n }", "title": "" }, { "docid": "e3d8816bab8b8d61a1aa211d6408a18b", "score": "0.7426154", "text": "function remove_site_health_dashboard_widget()\n{\n remove_meta_box('dashboard_site_health', 'dashboard', 'normal');\n}", "title": "" }, { "docid": "53d88f61ac7741347f4f96e11a524f2a", "score": "0.732715", "text": "function disable_default_dashboard_widgets() {\n\t\tif( ! is_admin() ) return;\n\t\t// disable default dashboard widgets\n\t\tremove_meta_box('dashboard_right_now', 'dashboard', 'core');\n\t\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'core');\n\t\tremove_meta_box('dashboard_incoming_links', 'dashboard', 'core');\n\t\tremove_meta_box('dashboard_plugins', 'dashboard', 'core');\n\t\n\t\tremove_meta_box('dashboard_quick_press', 'dashboard', 'core');\n\t\tremove_meta_box('dashboard_recent_drafts', 'dashboard', 'core');\n\t\tremove_meta_box('dashboard_primary', 'dashboard', 'core');\n\t\tremove_meta_box('dashboard_secondary', 'dashboard', 'core');\n\t\n\t\t// disable plugin dashboard widget\n\t\tremove_meta_box('meandmymac_rss_widget', 'dashboard', 'normal');\n\t\tremove_meta_box('wpsc_dashboard_news', 'dashboard', 'normal');\n\t\tremove_meta_box('yoast_db_widget', 'dashboard', 'normal');\n\t\tremove_meta_box('feedwordpress_dashboard', 'dashboard', 'normal');\n\t}", "title": "" }, { "docid": "8d65af843e08273d19c76894add81a96", "score": "0.7326199", "text": "public function remove_conifer_widget() {\n add_action('wp_dashboard_setup', function() {\n // TODO widget API?\n remove_meta_box('conifer_guide', 'dashboard', 'normal');\n });\n }", "title": "" }, { "docid": "c4c845f6ca6c1e1504d7b3a08418e199", "score": "0.7312729", "text": "function my_custom_dashboard_widgets() {\n remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );\n //remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\n //remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );\n //remove_meta_box( 'dashboard_activity', 'dashboard', 'normal');//since 3.8\n remove_meta_box( 'icl_dashboard_widget', 'dashboard', 'side' ); // WPML\n remove_meta_box( 'ab_widget', 'dashboard', 'normal' ); // Antispam Bee\n wp_add_dashboard_widget('custom_help_widget', 'Bienvenue', 'custom_dashboard_help');\n}", "title": "" }, { "docid": "b0c1bfb39756e1322c3f762a3bd5193d", "score": "0.7232442", "text": "function hide_wp_widgets() {\n\tunregister_widget('WP_Widget_Calendar');\n\tunregister_widget('WP_Widget_Search');\n\tunregister_widget('WP_Widget_Recent_Comments');\n\tunregister_widget('WP_Widget_Text');\n\tunregister_widget('WP_Widget_RSS');\n\tunregister_widget('WP_Widget_Pages');\n\tunregister_widget('WP_Widget_Tag_Cloud');\n\tunregister_widget('WP_Widget_Recent_Posts');\n\tunregister_widget('WP_Widget_Meta');\n\tunregister_widget('WP_Widget_Links');\n\tunregister_widget('WP_Widget_Categories');\n\tunregister_widget('WP_Widget_Archives');\n}", "title": "" }, { "docid": "935376c931131998a33298fcac1aad9e", "score": "0.71494585", "text": "public static function removeDashboards(): void {\n remove_meta_box('dashboard_primary', 'dashboard', 'normal');\n }", "title": "" }, { "docid": "9d598094f2d92a0419792aa028525ee6", "score": "0.711775", "text": "function mattrad_remove_dashboard_meta_boxes(){\n global $wp_meta_boxes;\n // Dashboard core widgets :: Left Column\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);\n unset($wp_meta_boxes['dashboard']['normal']['core']['pb_backupbuddy_stats']);\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['bruteprotect_dashboard_widget']);\n \n // Additional dashboard core widgets :: Right Column\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);\n unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);\n // Remove the welcome panel\n update_user_meta(get_current_user_id(), 'show_welcome_panel', false);\n}", "title": "" }, { "docid": "b74fa09b89bf7fcea4538fe1e420cf44", "score": "0.7090269", "text": "function mmc_dashboard_widgets(){\n\t\t\t\t\t// \t ID \t\t\t\tscreen \t\tcolumn\n\tremove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\n\tremove_meta_box( 'dashboard_primary', 'dashboard', 'side' );\n\n\t// $id, $title, $callback, $screen, $context, $priority, $callback_args\n\tadd_meta_box( 'dashboard_mmc_help', 'Helpful Resources', 'mmc_dash_content', \n\t\t'dashboard', 'side', 'high' );\n}", "title": "" }, { "docid": "35df984bce670321bf4f012d329f8a71", "score": "0.6996095", "text": "function triberr_add_dashboard_widgets() {\n\t\n\t$PINGKEY = get_option('triberr_apikey');\n\tif($PINGKEY != \"\"){\n\twp_add_dashboard_widget('triberr_dashboard_widget', 'Tribal Stream from Triberr', 'triberr_dashboard_widget_function');\n\t\n\t// Globalize the metaboxes array, this holds all the widgets for wp-admin\n\tglobal $wp_meta_boxes;\n\t\n\t// Get the regular dashboard widgets array \n\t// (which has our new widget already but at the end)\n\n\t$normal_dashboard = $wp_meta_boxes['dashboard']['normal']['core'];\n\t\n\t// Backup and delete our new dashbaord widget from the end of the array\n\n\t$example_widget_backup = array('triberr_dashboard_widget' => $normal_dashboard['triberr_dashboard_widget']);\n\tunset($normal_dashboard['triberr_dashboard_widget']);\n\n\t// Merge the two arrays together so our widget is at the beginning\n\t$sorted_dashboard = array_merge($example_widget_backup, $normal_dashboard);\n\n\t// Save the sorted array back into the original metaboxes \n\t$wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;\n\t}\n}", "title": "" }, { "docid": "1c5db95168dcddf1f063c5500026d0e9", "score": "0.6967912", "text": "function add_dashboard_widgets() {\r\n\t\r\n\t// Remove all the default meta boxes, and thus widgets, in the admin dashboard\r\n\tglobal $wp_meta_boxes;\t\r\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);\r\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);\r\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);\r\n\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);\r\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);\r\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);\r\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);\r\n\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);\r\n\t\r\n\t// Add our admin dashboard widgets\r\n\twp_add_dashboard_widget('radius_report_dashboard_widget', \"Radius Reports\", 'radius_report_dashboard_widget_function');\r\n\t\r\n\t\r\n\t// override the number of columns in the dashboard to 1 \r\n\t$current_user = wp_get_current_user();\r\n\t$current_user_id = $current_user->ID;\r\n\t$user_meta_key = 'screen_layout_dashboard';\r\n\t$new_meta_value = '1';\r\n\tupdate_user_meta($current_user_id, $user_meta_key, $new_meta_value);\r\n\r\n}", "title": "" }, { "docid": "f83a31101b5f9a2fa8714a99296c4011", "score": "0.69368404", "text": "function disable_wordpress_news_widget() {\n remove_meta_box('dashboard_primary', 'dashboard', 'core');\n }", "title": "" }, { "docid": "985feb042fa542ff90c936db9c58e319", "score": "0.690826", "text": "function _jr_unregister_widgets() {\n\n\tif ( ! is_admin() ) {\n\t\treturn;\n\t}\n\tunregister_widget( 'WP_Widget_Calendar' );\n\tunregister_widget( 'WP_Widget_Search' );\n}", "title": "" }, { "docid": "3bc9df14f4ad16dec1b1c0b6cce7495b", "score": "0.6900697", "text": "function supreme_unregister_widgets()\r\n{\r\n\t/* Unregister the default WordPress widgets. */\r\n\tunregister_widget( 'WP_Widget_Archives' );\r\n\tunregister_widget( 'WP_Widget_Calendar' );\r\n\tunregister_widget( 'WP_Widget_Categories' );\r\n\tunregister_widget( 'WP_Nav_Menu_Widget' );\r\n\tunregister_widget( 'WP_Widget_Pages' );\r\n\tunregister_widget( 'WP_Widget_Recent_Posts' );\r\n\tunregister_widget( 'WP_Widget_Search' );\r\n\tunregister_widget( 'WP_Widget_Tag_Cloud' );\r\n\tunregister_sidebar( 'entry' );\r\n}", "title": "" }, { "docid": "534d270137487f1c788884ba4ecc808b", "score": "0.6851812", "text": "function child_theme_unregister_widgets() {\n\n\t$config = child_theme_get_config( 'widgets' );\n\n\tforeach ( $config as $widget ) {\n\n\t\tunregister_widget( $widget );\n\n\t}\n\n}", "title": "" }, { "docid": "e497d45d6cc2ce2617e9666e92cb21e7", "score": "0.68017364", "text": "function unregister_default_widgets() {\n unregister_widget('WP_Widget_Media_Audio');\n unregister_widget('WP_Widget_Media_Image');\n unregister_widget('WP_Widget_Media_Video');\n unregister_widget('WP_Widget_Pages');\n unregister_widget('WP_Widget_Calendar');\n unregister_widget('WP_Widget_Archives');\n unregister_widget('WP_Widget_Links');\n unregister_widget('WP_Widget_Meta');\n unregister_widget('WP_Widget_Search');\n unregister_widget('WP_Widget_Categories');\n unregister_widget('WP_Widget_Recent_Posts');\n unregister_widget('WP_Widget_Recent_Comments');\n unregister_widget('WP_Widget_RSS');\n unregister_widget('WP_Widget_Tag_Cloud');\n unregister_widget('WP_Nav_Menu_Widget');\n unregister_widget('Twenty_Eleven_Ephemera_Widget');\n}", "title": "" }, { "docid": "bba2eb71693b62bda89da5430375cbe7", "score": "0.6790682", "text": "public static function wp_dashboard_setup__removeDefaultWidgetsForEducators()\n\t\t{\n\n\t\t\tif( !Studiorum_Utils::usersRoleIs( 'studiorum_educator' ) ){\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tglobal $wp_meta_boxes;\n\n\t\t\tunset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins'] );\n\t\t\tunset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts'] );\n\t\t\tunset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_primary'] );\n\n\t\t}", "title": "" }, { "docid": "564bb395d3bccd1c0f6cd3e27270c900", "score": "0.67857456", "text": "function bones_custom_dashboard_widgets() {\n\t//wp_add_dashboard_widget('bones_rss_dashboard_widget', __('Recently on Themble (Customize on admin.php)', 'bonestheme'), 'bones_rss_dashboard_widget');\n\twp_add_dashboard_widget('obj_new_jobs_dashboard_widget', __('Aktuelle Stellenangebote, die auf eine Veröffentlichung warten', 'bonestheme'), 'obj_new_jobs_dashboard_widget');\n\t//Abgelaufene\n\twp_add_dashboard_widget('obj_expired_jobs_dashboard_widget', __('Abgelaufende Stellenangebote', 'bonestheme'), 'obj_expired_jobs_dashboard_widget');\n\n\t/*\n\tBe sure to drop any other created Dashboard Widgets\n\tin this function and they will all load.\n\t*/\n}", "title": "" }, { "docid": "de35ced0b248598614e4b40ffc00acdb", "score": "0.6781681", "text": "function _beans_reset_widget_area() {\n\n unset( $GLOBALS['_beans_widget_area'] );\n\n}", "title": "" }, { "docid": "825632a94a771110a935c241b173e183", "score": "0.6772348", "text": "function unregister_default_wp_widgets() {\n\tunregister_widget('WP_Widget_Pages');\n\tunregister_widget('WP_Widget_Calendar');\n\tunregister_widget('WP_Widget_Archives');\n\tunregister_widget('WP_Widget_Links');\n\tunregister_widget('WP_Widget_Meta');\n\tunregister_widget('WP_Widget_Categories');\n\tunregister_widget('WP_Widget_Recent_Posts');\n\tunregister_widget('WP_Widget_Recent_Comments');\n\tunregister_widget('WP_Widget_RSS');\n\tunregister_widget('WP_Widget_Tag_Cloud');\n}", "title": "" }, { "docid": "146a23b7091cc9f7ee692d2be18ef3f0", "score": "0.6767676", "text": "function trim_admin_interface(){\n add_filter( 'admin_footer_text', '__return_false' );\n remove_filter('update_footer', 'core_update_footer' );\n\n //Hides the dashboard menu link.\n remove_menu_page( 'index.php' );\n remove_menu_page( 'separator1' );\n}", "title": "" }, { "docid": "831c385c8dc43ceb1627d69e0b140ccd", "score": "0.67651945", "text": "function mcsw_uninstall() {\n function mcsw_remove_widget() {\n unregister_widget( 'mcsw_sidebar_widget' );\n }\n\n add_action( 'widgets_init', 'mcsw_remove_widget' );\n}", "title": "" }, { "docid": "a6715557d6e06b1c608e83012fc8c328", "score": "0.674263", "text": "function TFuse_deregister_widgets(){\r\n\tunregister_widget('WP_Widget_Search'); \r\n}", "title": "" }, { "docid": "d9c4dd879840cdacf4dc45f033cecdba", "score": "0.6725523", "text": "function remove_dashboard_meta() {\n remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_activity', 'dashboard', 'normal');//since 3.8\n}", "title": "" }, { "docid": "60b793ac10c9b46ddf58afd8c6a3554a", "score": "0.6694267", "text": "function disable_all_widgets($sidebars_widgets) {\n\t//if (is_home())\n\t\t$sidebars_widgets = array(false);\n\treturn $sidebars_widgets;\n}", "title": "" }, { "docid": "1e7e6066864415d4416aebb7b655dbd4", "score": "0.668644", "text": "public static function maybe_disable_dashboard_widget() {\n\t\t$options = self::get_options();\n\n\t\tif ( ! $options['enable_dashboard_widget'] )\n\t\t\tdefine( 'DISABLE_LAST_CONTACTED_DASHBOARD', true );\n\t}", "title": "" }, { "docid": "6b7a3a7f19725533fa5b190393926edb", "score": "0.6666881", "text": "function geazen_add_dashboard_widgets() {\r\n \r\n if(current_user_can('manage_options')){\r\n\twp_add_dashboard_widget('geazen_dashboard_widget', 'Geazen', 'geazen_dashboard_widget_function');\r\n // Globalize the metaboxes array, this holds all the widgets for wp-admin\r\n\r\n\tglobal $wp_meta_boxes;\r\n\t\r\n\t// Get the regular dashboard widgets array \r\n\t// (which has our new widget already but at the end)\r\n\r\n\t$normal_dashboard = $wp_meta_boxes['dashboard']['normal']['core'];\r\n\t\r\n\t// Backup and delete our new dashbaord widget from the end of the array\r\n\r\n\t$geazen_widget_backup = array('geazen_dashboard_widget' => $normal_dashboard['geazen_dashboard_widget']);\r\n\tunset($normal_dashboard['geazen_dashboard_widget']);\r\n\r\n\t// Merge the two arrays together so our widget is at the beginning\r\n\r\n\t$sorted_dashboard = array_merge($geazen_widget_backup, $normal_dashboard);\r\n\r\n\t// Save the sorted array back into the original metaboxes \r\n\r\n\t$wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;\r\n }\t\r\n}", "title": "" }, { "docid": "dedb34d5cbe134e60707816aad1a3e98", "score": "0.6654488", "text": "function remove_dashboard_meta() {\n\t\tremove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_primary', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\n\t\tremove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );\n\t\tremove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_activity', 'dashboard', 'normal');\n\t\tremove_meta_box( 'wpseo-dashboard-overview', 'dashboard', 'side');\n\t\tremove_meta_box('redux_dashboard_widget', 'dashboard', 'side');\n\t\tremove_meta_box( 'e-dashboard-overview', 'dashboard', 'normal');\n}", "title": "" }, { "docid": "5e5e697ca9fca79da200826bfc223cc5", "score": "0.6650511", "text": "function unregister_default_wp_widgets() {\n unregister_widget('WP_Widget_Calendar');\n unregister_widget('WP_Widget_Meta');\n unregister_widget('WP_Widget_Recent_Comments');\n unregister_widget('WP_Widget_RSS');\n unregister_widget('WP_Widget_Recent_Posts');\n unregister_widget('WP_Widget_Search');\n unregister_widget('WP_Widget_Pages');\n}", "title": "" }, { "docid": "6bc4f4d11df150f6f16f1377869be9f3", "score": "0.6648493", "text": "function administrator_dashboard_the_widgets() {\n\n // Call the widgets class\n $widgets = (new MidrubBaseAdminCollectionDashboardHelpers\\Widgets);\n\n // Get codeigniter object instance\n $CI =& get_instance();\n\n // Use the base model to get the widgets\n $dashboard_widgets = $CI->base_model->get_data_where(\n 'administrator_dashboard_widgets',\n '*'\n );\n\n // Widgets List\n $widgets_list = array();\n\n // Verify if widgets exists\n if ( $dashboard_widgets ) {\n\n // List all widgets\n foreach ( $dashboard_widgets as $dashboard_widget ) {\n\n // Set widget status\n $widgets_list[$dashboard_widget['widget_slug']] = ($dashboard_widget['enabled'])?false:true;\n\n }\n\n }\n\n // Returns widgets\n return array(\n 'widgets' => $widgets->load_widgets($widgets_list),\n 'enabled' => $widgets_list\n );\n \n }", "title": "" }, { "docid": "5bbf22d35dc51db3aaa5ab337d7bd577", "score": "0.6640204", "text": "function remove_dashboard_meta() {\n remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_primary', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_activity', 'dashboard', 'normal');//since 3.8\n remove_action( 'welcome_panel', 'wp_welcome_panel' );\n}", "title": "" }, { "docid": "ce52d2ad1cd03e6a4f44fc6059533406", "score": "0.66291744", "text": "function remove_dashboard_meta() {\n remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );\n remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );\n remove_meta_box( 'dashboard_activity', 'dashboard', 'normal');\n}", "title": "" }, { "docid": "52cdca4c39d89392125873771ad4158b", "score": "0.6542025", "text": "function ct_hide_admin_bar() {\n\n if ( defined(\"SHOW_CT_BUILDER\") ) {\n \tadd_filter('show_admin_bar', '__return_false');\n }\n}", "title": "" }, { "docid": "a95a6c6f8c3d597271581567fcf2da9f", "score": "0.6541396", "text": "function prli_add_dashboard_widgets() {\n global $current_user;\n get_currentuserinfo();\n if($current_user->user_level >= 8)\n {\n wp_add_dashboard_widget('prli_dashboard_widget', 'Pretty Link Quick Add', 'prli_dashboard_widget_function'); \n\n // Globalize the metaboxes array, this holds all the widgets for wp-admin\n global $wp_meta_boxes;\n\n // Get the regular dashboard widgets array \n $normal_dashboard = $wp_meta_boxes['dashboard']['normal']['core'];\n\n // Backup and delete our new dashbaord widget from the end of the array\n $prli_widget_backup = array('prli_dashboard_widget' => $normal_dashboard['prli_dashboard_widget']);\n unset($normal_dashboard['prli_dashboard_widget']);\n\n // Merge the two arrays together so our widget is at the beginning\n $i = 0;\n foreach($normal_dashboard as $key => $value)\n {\n if($i == 1 or (count($normal_dashboard) <= 1 and $i == count($normal_dashboard) - 1))\n $sorted_dashboard['prli_dashboard_widget'] = $prli_widget_backup['prli_dashboard_widget'];\n \n $sorted_dashboard[$key] = $normal_dashboard[$key];\n $i++;\n }\n\n // Save the sorted array back into the original metaboxes \n $wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;\n }\n}", "title": "" }, { "docid": "1ae2884e4007219e5700965e4aebf43b", "score": "0.6533141", "text": "private function dashboardWidgets()\n {\n $this->app['events']->listen('backend.dashboard', function(SmartBoxGenerator $widgets) {\n // $widgets->registerBox( new CustomModuleDashboardWidget());\n });\n }", "title": "" }, { "docid": "677ed3e7c4a55f76a8c89a7157445af2", "score": "0.6515895", "text": "function um_remove_scripts_and_styles_widget( $widget ) {\n\tif ( strpos( $widget['id'], 'um_' ) === 0 || strpos( $widget['id'], 'um-' ) === 0 ) {\n\t\t$GLOBALS['um_load_assets'] = true;\n\t}\n}", "title": "" }, { "docid": "3e2bc11df72e720bb044c8db6b53062e", "score": "0.65006536", "text": "function _beans_reset_widget() {\n\n unset( $GLOBALS['_beans_widget'] );\n\n}", "title": "" }, { "docid": "a2d23eb0bd925896a54944dd8b8c971e", "score": "0.6487607", "text": "function admin_bar_remove() {\n add_filter('show_admin_bar', '__return_false');\n show_admin_bar(false);\n}", "title": "" }, { "docid": "bfa7432c809cd22b62ffed2a422e4599", "score": "0.64570695", "text": "public function polylang_widgets()\r\n\t{\r\n\t\tif($this->polylang_active === true)\r\n\t\t{\r\n\t\t\tglobal $polylang;\r\n\r\n\t\t\tif(has_action('in_widget_form', array($polylang, 'in_widget_form')))\r\n\t\t\t\tremove_action('in_widget_form', array($polylang, 'in_widget_form'));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ca7d9cb14bd1a8e5b7046df853ef0ee8", "score": "0.6449347", "text": "function remove_try_guttenberg_panel() {\n\tif (\\is_admin()) {\n\t\t\\remove_filter( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' );\n\t}\n}", "title": "" }, { "docid": "af994364cf14f3de54093e2a0b4dfc2d", "score": "0.6443993", "text": "public function support_dashboard_widget(){\n\n wp_add_dashboard_widget( 'support_widget', __( 'PinkButterflies', 'pinkbutterflies' ), array( $this, 'support_widget_display' ) );\n\n // Globalize the metaboxes array, this holds all the widgets for wp-admin\n global $wp_meta_boxes;\n\n // Get the regular dashboard widgets array\n // (which has our new widget already but at the end)\n $normal_dashboard = $wp_meta_boxes['dashboard']['normal']['core'];\n\n // Backup and delete our new dashboard widget from the end of the array\n $support_widget_backup = array( 'support_widget' => $normal_dashboard['support_widget'] );\n unset( $normal_dashboard['support_widget'] );\n\n // Merge the two arrays together so our widget is at the beginning\n $sorted_dashboard = array_merge( $support_widget_backup, $normal_dashboard );\n\n // Save the sorted array back into the original metaboxes\n $wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;\n\n }", "title": "" }, { "docid": "51f1f076ab573438ea35fe30502cf0f5", "score": "0.64255816", "text": "function remove_annointed_admin_bar() {\n\tglobal $wp_admin_bar;\n\t$wp_admin_bar->remove_menu('wp-logo'); // wp logo\n\t$wp_admin_bar->remove_menu('comments'); // comments\n\t$wp_admin_bar->remove_menu('new-content'); // add new\n}", "title": "" }, { "docid": "ab5941fb817caf10207d91514f4beb96", "score": "0.63738126", "text": "function csd_admin_bar_render() {\n\t\n global $wp_admin_bar;\n\t$wp_admin_bar->remove_menu('customize');\n $wp_admin_bar->remove_node('wp-logo');\n $wp_admin_bar->remove_menu('new-post');\n $wp_admin_bar->remove_menu('search');\n $wp_admin_bar->remove_menu('themes');\n $wp_admin_bar->remove_menu('widgets');\n $wp_admin_bar->remove_node('updates');\n $wp_admin_bar->remove_menu('searchwp');\n $wp_admin_bar->remove_menu('delete-cache');\n\t$wp_admin_bar->remove_menu('litespeed-menu');\n}", "title": "" }, { "docid": "1dcaf962d28f820833d4c4a89199cd05", "score": "0.636871", "text": "function plastical_custom_dashboard_widgets() {\n\twp_add_dashboard_widget('plastical_rss_dashboard_widget', 'Plastical\\'s Blog', 'plastical_rss_dashboard_widget');\n\t/*\n\tBe sure to drop any other created Dashboard Widgets \n\tin this function and they will all load.\n\t*/\n}", "title": "" }, { "docid": "0ea9b6c35522bcd21a50cf1480521179", "score": "0.63608485", "text": "function dashboard_widget() {\n\n\t\tif ( 'dashboard' == get_current_screen()->base ) {\n\t\t\tadd_filter( 'wp_modules_need_post_type_fields', function () {\n\t\t\t\treturn true;\n\t\t\t} );\n // add assets for our graphics\n\t\t\t//add_action( 'admin_head', [ $this, 'add_scripts' ], 4 );\n\t\t\t//add_action( 'admin_head', [ $this, 'add_styles' ], 4 );\n\t\t}\n\n\t\twp_add_dashboard_widget( 'widget_name', get_bloginfo( 'name' ) . ' widget_name', [ $this, 'test_widget_handler' ] );\n\t}", "title": "" }, { "docid": "a64bbd2d930866f4f7e4180b863c960f", "score": "0.63550824", "text": "public static function wp_dashboard_setup__removeDefaultWidgetsForStudents()\n\t\t{\n\n\t\t\t// We only do this for students by default, but run it through a filter so we can add-to or remove roles\n\t\t\t$rolesToRemoveAllDefaultDashboardWidgets = apply_filters( 'studiorum_roles_to_remove_default_widgets', array( 'studiorum_student' ) );\n\t\t\t\n\t\t\tif( !$rolesToRemoveAllDefaultDashboardWidgets || !is_array( $rolesToRemoveAllDefaultDashboardWidgets ) || empty( $rolesToRemoveAllDefaultDashboardWidgets ) ){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Default is to not hide the metaboxes\n\t\t\t$hideMetaBoxes = false;\n\n\t\t\tforeach( $rolesToRemoveAllDefaultDashboardWidgets as $key => $role )\n\t\t\t{\n\n\t\t\t\tif( Studiorum_Utils::usersRoleIs( $role ) ){\n\n\t\t\t\t\t// This user is in a set of roles where we're hiding the metaboxes\n\t\t\t\t\t$hideMetaBoxes = true;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// role set?\n\t\t\tif( !$hideMetaBoxes ){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// OK, we're clearly hiding metaboxes for this user\n\t\t\tglobal $wp_meta_boxes;\n\t\t $wp_meta_boxes['dashboard']['normal']['core'] = array();\n\t\t $wp_meta_boxes['dashboard']['side']['core'] = array();\n\n\t\t}", "title": "" }, { "docid": "e366e571a16529497a98bf6ecd339fa2", "score": "0.6352673", "text": "function clb_register_my_dashboard_widget() {\n global $wp_meta_boxes;\n\n $site_title = get_bloginfo();\n $welcome = 'Plugin Licenses';\n\n wp_add_dashboard_widget(\n 'my_dashboard_widget',\n $welcome,\n 'clb_my_dashboard_widget_display'\n );\n\n $dashboard = $wp_meta_boxes['dashboard']['normal']['core'];\n\n $my_widget = array( 'my_dashboard_widget' => $dashboard['my_dashboard_widget'] );\n unset( $dashboard['my_dashboard_widget'] );\n\n $sorted_dashboard = array_merge( $my_widget, $dashboard );\n $wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;\n}", "title": "" }, { "docid": "4c59987e6f29a76eba315042908462a8", "score": "0.6348381", "text": "function genesisawesome_custom_widgets() {\n\n\t/* Unregister Defailt Header Right */\n\tunregister_sidebar( 'header-right' );\n\n\t/* Register Custom Widgets */\n\tregister_widget( 'GA_Facebook_Likebox_Widget' );\n\tregister_widget( 'GA_Flickr_Widget' );\n\n}", "title": "" }, { "docid": "83f5ed80d6baffcf9d5ba3b684a40f1f", "score": "0.633472", "text": "function kmw_remove_dashboard_meta() {\n\t\n\t\t# standard WordPress metaboxes =============================\n\n\t\tremove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_primary', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );\n\t\tremove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );\n\t\tremove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );\n\t\tremove_meta_box( 'dashboard_activity', 'dashboard', 'normal' );\n\t\n\t\t# custom WordPress metaboxes ===============================\n\n\t\t# Broken Link Checker plugin\n\t\t# remove_meta_box( 'blc_dashboard_widget', 'dashboard', 'normal' );\n\t\n\t\t# themefusion news for Avada\n\t\t# remove_meta_box( 'themefusion_news', 'dashboard', 'normal' );\n\t\n\t\t# rocketgenius widget for Gravity Forms\n\t\t# remove_meta_box( 'rg_forms_dashboard', 'dashboard', 'side' );\n\n\t}", "title": "" }, { "docid": "0a9ffa9df7d962ae3b7766d0bb963ff4", "score": "0.6313261", "text": "function available_widgets() {\n \tglobal $wp_registered_widget_controls;\n \t$widget_controls = $wp_registered_widget_controls;\n \t$available_widgets = array();\n \tforeach ( $widget_controls as $widget ) {\n \t\tif ( ! empty( $widget['id_base'] ) && ! isset( $available_widgets[$widget['id_base']] ) ) { // no dupes\n\n \t\t\t$available_widgets[$widget['id_base']]['id_base'] = $widget['id_base'];\n \t\t\t$available_widgets[$widget['id_base']]['name'] = $widget['name'];\n\n \t\t}\n\n \t}\n\n \treturn apply_filters( 'radium_theme_import_widget_available_widgets', $available_widgets );\n\n }", "title": "" }, { "docid": "74614a2936d674722b90af833081f826", "score": "0.6277099", "text": "function df_disable_comments_dashboard() {\n\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');\n}", "title": "" }, { "docid": "74614a2936d674722b90af833081f826", "score": "0.6277099", "text": "function df_disable_comments_dashboard() {\n\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');\n}", "title": "" }, { "docid": "3cfd0ca9f539d30ebf9cffeb09c27580", "score": "0.6263716", "text": "function df_disable_comments_dashboard() {\n\t\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');\n\t}", "title": "" }, { "docid": "3cfd0ca9f539d30ebf9cffeb09c27580", "score": "0.6263716", "text": "function df_disable_comments_dashboard() {\n\t\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');\n\t}", "title": "" }, { "docid": "8ebcf0481a096425fc40e7663b61e28f", "score": "0.6255077", "text": "function mytheme_admin_bar_render() {\n global $wp_admin_bar;\n $wp_admin_bar->remove_menu('comments');\t\t\t//Comments\n\t//$wp_admin_bar->remove_node( 'new-post' );\t\t//Posts\n\t$wp_admin_bar->remove_node( 'new-popuppress' );\t//Popup Press\n}", "title": "" }, { "docid": "ad28632370b3bd1068975b99f48a380c", "score": "0.62425613", "text": "function generate_remove_sidebars() {\n\n\t$config = array(\n\t\t// 'header',\n\t\t// 'sidebar-1',\n\t\t// 'sidebar-2',\n\t\t// 'top-bar',\n\t\t// 'footer-bar',\n\t\t// 'footer-1',\n\t\t// 'footer-2',\n\t\t// 'footer-3',\n\t\t// 'footer-4',\n\t\t// 'footer-5'\n\t);\n\n\tforeach( $config as $args ) {\n unregister_sidebar( $args );\n }\n}", "title": "" }, { "docid": "f16d484baace83f7c4d31a0330e7b81d", "score": "0.6233756", "text": "public function widgets_scripts_styles($page)\r\n\t{\r\n\t\tif($page !== 'widgets.php')\r\n \treturn;\r\n\r\n\t\twp_enqueue_script(\r\n\t\t\t'chosen',\r\n\t\t\tRESTRICT_WIDGETS_URL.'/js/chosen.jquery.min.js',\r\n\t\t\tarray('jquery')\r\n\t\t);\r\n\r\n\t\twp_enqueue_script(\r\n\t\t\t'restrict-widgets-admin',\r\n\t\t\tRESTRICT_WIDGETS_URL.'/js/admin.js',\r\n\t\t\tarray('jquery', 'chosen')\r\n\t\t);\r\n\r\n\t\t$js_widgets = $js_class = $js_nonclass = array();\r\n\t\t$orphan_sidebar = 0;\r\n\r\n\t\t//only for users without admin privileges\r\n\t\tif(!current_user_can('manage_options'))\r\n\t\t{\r\n\t\t\tglobal $wp_registered_widgets;\r\n\r\n\t\t\t$option = get_option('rw_widgets_options');\r\n\t\t\t$restrict = array_keys($option['available']);\r\n\t\t\t$widgets = array();\r\n\t\t\t$orphan_sidebar = 1;\r\n\r\n\t\t\tforeach(wp_get_sidebars_widgets() as $sidebar)\r\n\t\t\t{\r\n\t\t\t\tforeach($sidebar as $widget)\r\n\t\t\t\t{\r\n\t\t\t\t\t$widgets[] = $widget;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//which sidebars to hide\r\n\t\t\tforeach($widgets as $widget)\r\n\t\t\t{\r\n\t\t\t\tif(\r\n\t\t\t\t\t//standard based widget class\r\n\t\t\t\t\t(isset($wp_registered_widgets[$widget]['callback'][0]) && is_object($wp_registered_widgets[$widget]['callback'][0]) && in_array(get_class($wp_registered_widgets[$widget]['callback'][0]), $restrict)) ||\r\n\r\n\t\t\t\t\t//non-standard based widget\r\n\t\t\t\t\t(isset($wp_registered_widgets[$widget]['id']) && in_array($wp_registered_widgets[$widget]['id'], $restrict))\r\n\t\t\t\t)\r\n\t\t\t\t\t$js_widgets[] = $widget;\r\n\t\t\t}\r\n\r\n\t\t\t//which widgets to hide\r\n\t\t\tforeach($wp_registered_widgets as $widget)\r\n\t\t\t{\r\n\t\t\t\t//standard based widget class\r\n\t\t\t\tif(isset($widget['callback'][0]) && is_object($widget['callback'][0]) && in_array(get_class($widget['callback'][0]), $restrict))\r\n\t\t\t\t\t$js_class[] = $widget['callback'][0]->id_base;\r\n\t\t\t\t//non-standard based widget\r\n\t\t\t\telseif(in_array($widget['id'], $restrict))\r\n\t\t\t\t\t$js_nonclass[] = $widget['id'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twp_localize_script(\r\n\t\t\t'restrict-widgets-admin',\r\n\t\t\t'rwArgs',\r\n\t\t\tarray(\r\n\t\t\t\t'placeholder_text' => esc_attr__('Select options', 'restrict-widgets'),\r\n\t\t\t\t'restrict_available_widgets' => esc_attr__('Select widgets', 'restrict-widgets'),\r\n\t\t\t\t'restrict_widgets_selection' => esc_attr__('Select widgets options', 'restrict-widgets'),\r\n\t\t\t\t'restrict_sidebars' => esc_attr__('Select sidebars', 'restrict-widgets'),\r\n\t\t\t\t'restrict_roles' => esc_attr__('Select roles', 'restrict-widgets'),\r\n\t\t\t\t'restrict_languages' => esc_attr__('Select languages', 'restrict-widgets'),\r\n\t\t\t\t'restrict_widgets' => $js_widgets,\r\n\t\t\t\t'restrict_class' => array_unique($js_class),\r\n\t\t\t\t'restrict_nonclass' => array_unique($js_nonclass),\r\n\t\t\t\t'restrict_orphan_sidebar' => $orphan_sidebar\r\n\t\t\t)\r\n\t\t);\r\n\r\n\t\twp_enqueue_style(\r\n\t\t\t'chosen',\r\n\t\t\tRESTRICT_WIDGETS_URL.'/css/chosen.min.css'\r\n\t\t);\r\n\r\n\t\twp_enqueue_style(\r\n\t\t\t'restrict-widgets-admin',\r\n\t\t\tRESTRICT_WIDGETS_URL.'/css/admin.css'\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "e31f68b3f29f5dda3ba8350fe40608fd", "score": "0.6228155", "text": "function yiw_exclude_default_widgets( $excluded ) {\n\t$excluded[] = 'WP_Widget_Categories';\n\t$excluded[] = 'WP_Widget_Recent_Posts';\n\t\n\treturn $excluded;\t\n}", "title": "" }, { "docid": "c97ff77ffa07a333be304ca01a34dfde", "score": "0.6222767", "text": "function add_dashboard_widgets() {\n\tif( current_user_can('administrator')) {\n\t\t// wp_add_dashboard_widget(\n\t\t// // contact_SOAP(\"check_abo_status\"), // Widget slug.\n\t\t// 'ntd_abo_info',\n\t\t// 'new time design Abo Info', // Title.\n\t\t// 'display_abo_info' // Display function.\n\t\t// );\n\t\tadd_meta_box(\n\t\t\t'ntd_abo_info',\n\t\t\t'new time design Service Abonnement',\n\t\t\t'display_abo_info',\n\t\t\t'dashboard',\n\t\t\t'normal',\n\t\t\t'high'\n\t\t);\n\t}\n}", "title": "" }, { "docid": "1bda18a1fe7648a8edc3b6434d3ec426", "score": "0.61899513", "text": "function ufclas_emily_disable_comments_dashboard() {\n\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');\n}", "title": "" }, { "docid": "ebfd343f1a11bc35155e201f955e8dec", "score": "0.6189822", "text": "function iphorm_dashboard_widget()\n{\n if (iphorm_get_all_entry_count(1) && current_user_can('iphorm_view_entries')) {\n wp_enqueue_style('iphorm-dashboard', iphorm_admin_url() . '/css/dashboard.css', array(), IPHORM_VERSION);\n wp_add_dashboard_widget('iphorm-dashboard-widget', iphorm_get_plugin_name(), 'iphorm_dashboard_widget_display');\n }\n}", "title": "" } ]
9bc4d2090cc99f2dc70ac6a0a81391a2
Get an array of items that are not marked no_tax
[ { "docid": "ecd4d16babec201596ac415cd0b84753", "score": "0.63639116", "text": "public function taxable_items()\n\t{\n\t\t$items = array();\n\t\t\n\t\tforeach ($this->items as $item)\n\t\t{\n\t\t\tif ($item->is_taxable())\n\t\t\t{\n\t\t\t\t$items[$item->row_id()] = $item;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $items;\n\t}", "title": "" } ]
[ { "docid": "f6f8c2cb7f7d50a2a1233cb943ce6f85", "score": "0.8030109", "text": "public function non_taxable_items()\n\t{\n\t\t$items = array();\n\t\t\n\t\tforeach ($this->items as $item)\n\t\t{\n\t\t\tif ( ! $item->is_taxable())\n\t\t\t{\n\t\t\t\t$items[$item->row_id()] = $item;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $items;\n\t}", "title": "" }, { "docid": "2de77667d00667418857d08ef16e920e", "score": "0.6455437", "text": "public function non_shippable_items()\n\t{\n\t\t$items = array();\n\t\t\n\t\tforeach ($this->items as $item)\n\t\t{\n\t\t\tif ( ! $item->is_shippable())\n\t\t\t{\n\t\t\t\t$items[$item->row_id()] = $item;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $items;\n\t}", "title": "" }, { "docid": "6b8f1e10109237cd7b8af1ab2037b654", "score": "0.6365568", "text": "public function filterEmptyItems();", "title": "" }, { "docid": "a925ce1d0a18e4a678698a4b2f3ad623", "score": "0.6250129", "text": "public function allnotdeleted()\n {\n return SgpRegion::find()->where([\"=\", \"is_deleted\",0])->all();\n \n }", "title": "" }, { "docid": "c0a4f152dcc8a4f7f4f7f44deb1ca1fc", "score": "0.618487", "text": "function getTaxEntries() {\r\n\t\treturn $this->iterate('isTaxable', true);\r\n\t}", "title": "" }, { "docid": "cd39b6976ad03935e66136090a567a78", "score": "0.6162886", "text": "public function getNonHierarchicalTaxonomies()\n {\n $nonHierarchicalTaxonomies = array();\n foreach (get_object_taxonomies($this->type, 'objects') as $taxonomyName => $taxonomyObject) {\n if (!$taxonomyObject->hierarchical) {\n array_push($nonHierarchicalTaxonomies, $taxonomyObject);\n }\n }\n\n return apply_filters('non-hierarchical-taxonomies', $nonHierarchicalTaxonomies);\n }", "title": "" }, { "docid": "8d2f17a4708a9bad97d8f004c9450618", "score": "0.60252774", "text": "public function getUnpaid()\n {\n $list = $this->getORM()->find('Invoice', \"invoice_delete = 0 AND invoice_tax = '' AND DATEDIFF(NOW(), invoice_date) > invoice_terms\");\n if ($list === null) return null;\n foreach ($list as $key => $item) {\n /** @var Invoice $item */\n $list[$key] = $this->getById($item->id);\n }\n return $list;\n }", "title": "" }, { "docid": "5d7dec21fbdca65e3559044b3729511e", "score": "0.5998742", "text": "function findAllWithoutChecked() {\n\n $queryBuilder = $this->getEntityManager()->createQueryBuilder()\n ->select('personMissingInDs')\n ->from('AppBundle:PersonMissingInDataSource', 'personMissingInDs')\n ->where('personMissingInDs.hiddenByUser is null')\n ->orderBy('personMissingInDs.created', \"ASC\");\n\n return $queryBuilder->getQuery()->getResult();\n }", "title": "" }, { "docid": "de0c007a0d9216122e39b36925ee0c1d", "score": "0.5998047", "text": "public function getNotPaidInvoicesCollection(){\n $invoices = $this->getInvoicesCollection();\n foreach ($invoices as $key => $invoice)\n if ($invoice->isPaid())\n unset($invoices[$key]);\n return $invoices;\n }", "title": "" }, { "docid": "5d4252499c0f65e53f3fa39e0639988a", "score": "0.5974209", "text": "public function no_items();", "title": "" }, { "docid": "4dab5724ca0412f7a5fb7047649444dd", "score": "0.58939517", "text": "private function exclude_item_terms() {\n\t\t$cats = get_the_terms( $this->item->ID, 'category' );\n\t\t$exclude = 0;\n\n\t\tif ( is_array( $cats ) ) {\n\t\t\tforeach ( $cats as $cat ) {\n\t\t\t\tif ( isset( $this->options[ 'catexclude_' . $cat->slug ] ) ) {\n\t\t\t\t\t$exclude ++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( $exclude >= count( $cats ) ) {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "eb150039400aadb13f35c2060f80a40a", "score": "0.58594626", "text": "public function getNotSoldTransactions(): Collection\n {\n return $this->getSoldTransactions('!=');\n }", "title": "" }, { "docid": "b271784a75f0c0fa9806e588336836bf", "score": "0.58297807", "text": "protected abstract function getDisallowedItems();", "title": "" }, { "docid": "83d804b39fe3608afb2d79b847539a9c", "score": "0.58123916", "text": "function no_robots( $noindex ) {\n\tif ( is_tax( 'mentions' ) ) {\n\t\t$noindex = true;\n\t}\n\n\treturn $noindex;\n}", "title": "" }, { "docid": "c858ed2bcdcecc573fd0d2c7639c3d5e", "score": "0.57890135", "text": "function taxItems( $items )\r\n{\r\n\t# To do\r\n\tthrow new Exception ( 'taxItems() not implemented' );\r\n\treturn array ( array (), 0, 0 );\r\n}", "title": "" }, { "docid": "764474ee549c877808ff33035c74ffd7", "score": "0.5755423", "text": "public function getTaxable() \n {\n return $this->document->getImponibile();\n }", "title": "" }, { "docid": "7eff21ca94d3eefd81d961cf353ef243", "score": "0.5707724", "text": "public function getMissingFilters(): array;", "title": "" }, { "docid": "8f0de2a3b72344f7b516d035cbe33ea3", "score": "0.5678044", "text": "public function getNonactualisedOrdersPaidWithIngenico();", "title": "" }, { "docid": "c4bcbdd20b186ca7e4985a8ea54fd197", "score": "0.56766737", "text": "public function getIgnoredFields() {\r\n\t\t$list = array('item_id', 'lang_id', 'fran_id', 'item_status');\r\n\t\treturn $list; //array\r\n\t}", "title": "" }, { "docid": "956e5593b8ba048a9b5ea81051e18aec", "score": "0.5672497", "text": "private function removeVatFromAllItems()\n {\n # Make sure there is a zero tax object\n $zeroTax = new Tax();\n $zeroTax->setName('TAX0');\n $zeroTax->setValue(0);\n $zeroTax->setDefaultTax(false);\n $zeroTax->setRegion(Tax::TAX_REGION_PORTUGAL_UNKNOWN); # Unclear here if we should set any region\n\n if (!empty($this->getItems())) {\n $original = $this->getItems();\n # Clear all the current items\n $this->clearItems();\n foreach ($original as $item) {\n $item->setTax($zeroTax);\n // Add the Item back into the stack\n $this->addItem($item);\n }\n }\n }", "title": "" }, { "docid": "aabe5d4c2c1487886b9262441cfd8579", "score": "0.5664893", "text": "public function no_items() {\n\t\t_e( 'No commissions found.', 'woocommerce-product-vendors' );\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "51335708278fd057006edbe073bcb544", "score": "0.5661874", "text": "public function getUnchecked()\n {\n $unchecked_saleitems = DB::Table('saleitems')\n ->select('*')\n ->where('matched', '=', 'false')\n ->whereNull('checked')\n ->orderBy(\"created_at\", 'DESC')\n ->take(20)\n ->get();\n\n return $unchecked_saleitems;\n }", "title": "" }, { "docid": "b8419088831a49cd1f97006c379fa638", "score": "0.5634087", "text": "public function exclude_taxonomy_filter( $false, $tax ) {\r\n global $sitepress;\r\n return $this->is_per_domain()\r\n && $sitepress->get_current_language() != $sitepress->get_default_language()\r\n && !$sitepress->is_translated_taxonomy($tax) ? true : $false;\r\n }", "title": "" }, { "docid": "504d54e7fd98cb58174eccfc4a23ecde", "score": "0.5576659", "text": "public static function findAllNotDeleted()\r\n {\r\n return self::findNotDeleted()->all();\r\n }", "title": "" }, { "docid": "90e45a8c57905f7eec3ac9df318e3562", "score": "0.55187815", "text": "public function no_items()\n {\n\n esc_html_e('There are no related orders yet.', 'subscriptio');\n }", "title": "" }, { "docid": "2244564ff891af6f3b76c561f3a9d727", "score": "0.5485408", "text": "function gg_exclude_taxonomies( $taxonomy ) {\r\n $filters = apply_filters( 'gg_exclude_taxonomies', array( 'post_tag', 'nav_menu' ) );\r\n return(!in_array( $taxonomy->name, $filters ));\r\n}", "title": "" }, { "docid": "136357de0e5a561fc739c56fcf9ab1cc", "score": "0.5465101", "text": "public function getShippingExcludeTax()\n {\n return $this->getTotal()->getValue();\n }", "title": "" }, { "docid": "a04af758c7dd6f1331ccc4ea8ac7f94d", "score": "0.54579496", "text": "public static function provideNonBooleans()\n {\n return [\n ['true'],\n ['false'],\n ['0'],\n ['1'],\n [0],\n [1],\n [5.15],\n ['6QNgkt3G'],\n [null],\n [[true]],\n [new stdClass()]\n ];\n }", "title": "" }, { "docid": "01f81e6e7b74b0181af0eca628ad0e1b", "score": "0.54498804", "text": "function NonFeaturedProducts($recursive = true) {\n\t\treturn $this->ProductsShowable(\"\\\"FeaturedProduct\\\" = 0\",$recursive);\n\t}", "title": "" }, { "docid": "7feaf18e7bc768d507dcb6a719d4a7b6", "score": "0.5449", "text": "public function getUnwantedValues()\n {\n return $this->unwanted_values;\n }", "title": "" }, { "docid": "b9484bca0e517586fe6f7922dbf7b616", "score": "0.5448327", "text": "public function get_not_builtin_post_types(){\n $excludes = array( $this->plugin->arg( 'post_type' ) );\n $post_types = get_post_types( array( 'public' => true, '_builtin' => false, 'show_in_nav_menus' => true ), 'objects' );\n foreach( $excludes as $post_type ){\n if( isset( $post_types[$post_type] ) ){\n unset( $post_types[$post_type] );\n }\n }\n return $post_types;\n }", "title": "" }, { "docid": "73d2dba30c7845f786ab04054186be5a", "score": "0.54431653", "text": "public function no_items()\n {\n }", "title": "" }, { "docid": "5a0a8cfb825bdf265ef559edebef0871", "score": "0.5430403", "text": "private function getTagIdsExcludedInPurpose()\n {\n $excludedTagIds = [];\n\n foreach ($this->tagExcludingProbabilityPercent as $tagName => $exclusionProbability) {\n $rand = rand(0, 100);\n if ($rand < $exclusionProbability) {\n $excludedTagIds[] = $tagName;\n }\n }\n\n return $excludedTagIds;\n }", "title": "" }, { "docid": "9e403c3acd98b81d06709275468b1293", "score": "0.5429218", "text": "public static function ignored(){\n\t\treturn array();\n\t}", "title": "" }, { "docid": "f85578376e7d9a98263fc799a265430e", "score": "0.5421785", "text": "public function getTaxablesAttribute(): Collection;", "title": "" }, { "docid": "7200e2c4afcfdc3e9eaca181600b012b", "score": "0.54087526", "text": "public function no_items() {\n\t\t_e( 'No customers avaliable.', 'sp' );\n\t}", "title": "" }, { "docid": "111223d4279528e09c17da0f79b99e9a", "score": "0.53829587", "text": "public function getAssociatiNonIbernati(){\n //ottengo un array di ID di associati\n $ids = $this->irDAO->getIdAssociati();\n \n \n $associati = array();\n if(count($ids) > 0){\n foreach($ids as $id){\n $associato = $this->getAssociatoByIdAssociato($id); \n if($associato->getIbernato() == 0){\n array_push($associati, $associato);\n }\n }\n }\n \n return $associati;\n }", "title": "" }, { "docid": "0dad02e01b47daefd5e643e9e99ba097", "score": "0.5372496", "text": "function getTaxesTotaled(){\r\n\t\treturn $this->taxes;\r\n\t}", "title": "" }, { "docid": "00e78c218173615191c4e695c0a67f12", "score": "0.5371468", "text": "function _filter_taxonomy($post_type) {\n $taxonomies = array('category');\n return ( 0 == count(array_diff( $taxonomies, get_object_taxonomies($post_type) ) ) );\n }", "title": "" }, { "docid": "82cf158b983f46a923c066830e6b8cbc", "score": "0.5368775", "text": "public function get_shop_order_not() {\n\n $args = array(\n 'post_type' => 'shop_order',\n 'post_status' => array('wc-processing'),\n 'posts_per_page' => -1,\n 'fields' => 'ids',\n 'meta_query' => array(\n 'relation' => 'AND',\n array(\n 'key' => '_sms_twilio_cron',\n 'compare' => 'NOT EXISTS'\n ),\n array(\n 'key' => 'echosign_iframe_status',\n 'compare' => 'NOT EXISTS'\n ),\n array(\n 'key' => 'bank_iframe_status',\n 'compare' => 'NOT EXISTS'\n )\n ),\n 'date_query' => array(\n array(\n 'after' => $this->time.' minute ago',\n )\n ),\n 'no_found_rows' => true,\n 'update_post_term_cache' => false,\n 'update_post_meta_cache' => false,\n 'cache_results' => false\n );\n\n $query = new WP_Query($args);\n\n $result = $query->posts;\n\n wp_reset_postdata();\n\n return $result;\n }", "title": "" }, { "docid": "2eccccbcfaa10b9be3b71825a5bea78c", "score": "0.5361369", "text": "public function no_items() {\n\t\tif( ! $this->view || 'users' == $this->view ) {\n\t\t\t$type = 'learners';\n\t\t} else {\n\t\t\t$type = $this->view;\n\t\t}\n\t\techo sprintf( __( '%1$sNo %2$s found%3$s', 'woothemes-sensei' ), '<em>', $type, '</em>' );\n\t}", "title": "" }, { "docid": "af0cd3883aeb15c84fbe4cf3f4473e5d", "score": "0.53572214", "text": "public function getUnusedPaymentMethods();", "title": "" }, { "docid": "fedeb72a3c65e623a05f55ed9b098827", "score": "0.53544724", "text": "function sgwindow_get_tax_ids( $tax ) {\n $tax_names = array();\n while ( have_posts() ) : the_post(); \n $terms = get_the_terms( get_the_ID(), $tax );\n if ( $terms && ! is_wp_error( $terms ) ) : \n foreach ( $terms as $id => $term ) {\n $tax_names[ $term->term_id ] = $term->name;\n }\n endif;\n endwhile; \n rewind_posts();\n return array_unique( $tax_names );\n}", "title": "" }, { "docid": "97be2b30b3f7f3f65a24d4747dca2d6c", "score": "0.53510416", "text": "public function getAllNotDeletedForYear(string $year): array\n {\n return $this->app->repositories->myPaymentsMonthlyRepository->getAllNotDeletedForYear($year);\n }", "title": "" }, { "docid": "0bef46be418c6cc79275899d96bec93d", "score": "0.53495234", "text": "function no_items() {\n\t\tesc_html_e( 'No matching guest authors were found.', 'co-authors-plus' );\n\t}", "title": "" }, { "docid": "44fcf523d610f19f049ef6fe724a9ad9", "score": "0.5333939", "text": "private function skip_build_item() {\n\t\tif ( WPSEO_Meta::get_value( 'newssitemap-exclude', $this->item->ID ) === 'on' ) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ( false !== WPSEO_Meta::get_value( 'meta-robots', $this->item->ID ) && strpos( WPSEO_Meta::get_value( 'meta-robots', $this->item->ID ), 'noindex' ) !== false ) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ( 'post' === $this->item->post_type && $this->exclude_item_terms() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "33b295f3659c34312b81500294fe04d8", "score": "0.53209627", "text": "public function hasTax(){\n return $this->_has(15);\n }", "title": "" }, { "docid": "468f2d9cab75986e958f8733d78b8308", "score": "0.53199583", "text": "public function usersNotCompleted()\n {\n \treturn $this->usersList->where('completed', 0)->pluck('user');\n }", "title": "" }, { "docid": "f5bd7a34b5d49c683ca926f7ba125143", "score": "0.5311123", "text": "public function Get_Not_Completed_WO()\n {\n\n $query = $this->db->query(\"SELECT * FROM work_order A INNER JOIN proforma_invoice B on A.Proforma_Icode=B.Proforma_Icode INNER JOIN customer_master C ON B.Proforma_Customer_Icode=C.Customer_Icode \n WHERE A.WO_Completed = '0' \");\n return $query->result_array();\n }", "title": "" }, { "docid": "bb51425e4fa35f19cf10d22c235a8889", "score": "0.53045845", "text": "public function getUnUseCoupons(){\n $sql = \"SELECT * FROM t_coupons WHERE status = 1\";\n\n return $this->db->query($sql);\n }", "title": "" }, { "docid": "bbe1ad0dcf57295e706d7ce64a8a2ae2", "score": "0.53035533", "text": "public function getTransactionsWithoutCategories(){\r\n $db = $this->getDB();\r\n $stmt = $db->prepare(\"SELECT importId, transactionDate, generatedDescription, amount, class, category from CheckingAccountImport WHERE transactionType = 'WITHDRAWAL' and (category = '' or class = '')\");\r\n\r\n if ( $stmt->execute() && $stmt->rowCount() > 0 ) {\r\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n }\r\n \r\n return false;\r\n }", "title": "" }, { "docid": "f3c396a92e4b2ff1761530b2eff7b27e", "score": "0.52935636", "text": "public static function filter_exclude_taxonomies( $taxonomies, $filter = true ) {\n\t\t$taxonomies = $filter ? array_filter( $taxonomies, [ __CLASS__, 'is_taxonomy_viewable' ] ) : $taxonomies;\n\n\t\t/**\n\t\t * Filter: 'rank_math_excluded_taxonomies' - Allow changing the accessible taxonomies.\n\t\t *\n\t\t * @api array $taxonomies The public taxonomies.\n\t\t */\n\t\t$taxonomies = apply_filters( 'rank_math/excluded_taxonomies', $taxonomies );\n\n\t\treturn $taxonomies;\n\t}", "title": "" }, { "docid": "c278ec44d56126f59706460c534dfbf1", "score": "0.528933", "text": "public function dislikes()\n {\n return $this->has_many('Vote')\n ->where('like', '=', 0);\n }", "title": "" }, { "docid": "4b162f773339218c49b504f755118d77", "score": "0.52848613", "text": "function no_items() {\n _e( 'No Booking Request Found', 'ancineha' );\n }", "title": "" }, { "docid": "4931ff01b426701f7c251a55fdaf7ff7", "score": "0.52784306", "text": "public function getExcludeTaxLabel()\n {\n return __(\n 'Shipping Excl. Tax (%1)',\n $this->escapeHtml($this->getQuote()->getShippingAddress()->getShippingDescription())\n );\n }", "title": "" }, { "docid": "9b1fe8fca5bcaa1b073e0f7cb60728e3", "score": "0.5276281", "text": "public function no_items() {\n\t\t_e( 'No items found.' );\n\t}", "title": "" }, { "docid": "7ff70b28e830e91cc4a670b433f2010f", "score": "0.5266552", "text": "public function provideNegated() {\n return [\n 'negated' => [TRUE],\n 'normal' => [FALSE],\n ];\n }", "title": "" }, { "docid": "625d1a7da0f60e6d0b14ec62f22953ca", "score": "0.5264374", "text": "function ihc_return_all_cpt( $excluded=array() ){\n\t$args = array('public' => true, '_builtin' => false);\n\t$data = get_post_types($args);\n\tif(count($excluded)>0){\n\t\tforeach($excluded as $e){\n\t\t\tif(in_array($e, $data)) $data = array_diff($data, array($e) );\n\t\t}\n\t}\n\treturn $data;\n}", "title": "" }, { "docid": "eaee43f328d054750aaf4a3a31e7d024", "score": "0.5263027", "text": "public function getTaxClasses();", "title": "" }, { "docid": "c1a6a83ec1261233656f84b974ed243a", "score": "0.52589357", "text": "public function getUninvoicedOrders();", "title": "" }, { "docid": "a772eca03cebdd6d9c3b106d3dd6bd6a", "score": "0.5246739", "text": "function filterOutEmpty($unicorns)\n{\n $unicorns = array_filter($unicorns, function ($unicorn) {\n return $unicorn->name !== \"\";\n });\n return $unicorns;\n}", "title": "" }, { "docid": "99371118ab1ef72a41b3e755ae4c4016", "score": "0.5242118", "text": "public function getTaxes() {\n if ($this->customer->isLogged()) {\n // Bail if exempt.\n if ($this->customer->isTaxExempt()) { return 0; }\n }\n//var_dump($this->getProducts_all($_SESSION['store_code']));\n\t\tforeach ((array)$this->getProducts_all($_SESSION['store_code']) as $product) {\n\t\t // Customer Group module\t\t\n\t\t if ($this->customer->isLogged()) {\n\t\t\t $product['tax_class_id'] = $this->data['cust_tax_class'];\n \t\t}\n\t \t// end customer group\n\t\t\tif ($product['tax_class_id'] && $product['shipping']) { // KMC - we need to exclude Gift Certs, no ship, no taxes.\n\t\t\t\tif (!isset($taxes[$product['tax_class_id']])) {\n\t\t\t\t\t$taxes[$product['tax_class_id']] = $product['total'] / 100 * $this->tax->getRate($product['tax_class_id']);\n\t\t\t\t} else {\n\t\t\t\t\t$taxes[$product['tax_class_id']] += $product['total'] / 100 * $this->tax->getRate($product['tax_class_id']);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $taxes;\n \t}", "title": "" }, { "docid": "1b45e0d3e787f9f18a35726c10dd894f", "score": "0.5239063", "text": "function filterStats($itemDescr){\r\n return array_filter($itemDescr, fn ($stat) => !in_array($stat, ['price', 'type']), ARRAY_FILTER_USE_KEY);\r\n }", "title": "" }, { "docid": "757a8e79934ddd81ff8c55279727bd20", "score": "0.5228829", "text": "function get_unasked () {\n\t\t$unasked = array();\n\t\tforeach ( $this->entries as $entry )\n\t\t\tif ( !$entry->has_been_asked() ) $unasked[] = $entry;\n\t\treturn $unasked;\n\t}", "title": "" }, { "docid": "579bd7745a71debff0c4e730bb2178eb", "score": "0.52254975", "text": "public function no_items() {\n\t\tesc_html_e( 'No low in stock products found.', 'woocommerce' );\n\t}", "title": "" }, { "docid": "48f4b1735e0decfa0d81923d3cb08090", "score": "0.52246165", "text": "public static function ignoreOnly(): array\n {\n return ['index'];\n }", "title": "" }, { "docid": "369a77553834e79c159c740394012906", "score": "0.5211014", "text": "public static function all(){\n\t\t$terms = get_terms([\n\t\t\t'taxonomy' => 'product_attribute_groups',\n\t\t\t'hide_empty' => false\n\t\t]);\n\n\t\tif(is_wp_error($terms) || empty($terms)){\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $terms;\n\t}", "title": "" }, { "docid": "7f680fab4d5f0d138aa66e09b5e758c6", "score": "0.52100205", "text": "protected abstract function getTaxLabels();", "title": "" }, { "docid": "a3a779c735b2378e0c362437af52c578", "score": "0.5208858", "text": "function maybe_noindex( $noindex ) {\n\t// Noindex all o2 taxonomy pages.\n\tif ( is_tax() || is_tag() || is_category() ) {\n\t\t$noindex = true;\n\t}\n\n\t// Noindex empty/short pages\n\tif ( is_singular() && strlen( get_the_content() ) < 100 ) {\n\t\t$noindex = true;\n\t}\n\n\treturn $noindex;\n}", "title": "" }, { "docid": "c1cfe316406cfc53e19163b1e67dac9c", "score": "0.52057767", "text": "public static function getUserPagesWithNoBooks(){\n\t\treturn Auth::guest() ? collect([]) : self::where('user_id', '=', Auth::id())->whereNull('book_id')->get();\n\t}", "title": "" }, { "docid": "918d485728223b7197648d8696fe4280", "score": "0.5205037", "text": "private function getNotSetFields() : array\n {\n $notSet = [];\n foreach ($this->getData() as $fieldName => $value) {\n if (!isset($_POST[$fieldName])) {\n $notSet[] = $fieldName;\n }\n }\n return $notSet;\n }", "title": "" }, { "docid": "e6fe3c72e12066c828ce32f3ae20cec9", "score": "0.5195485", "text": "final protected function getWithPrependedEmpty($items)\r\n {\r\n // array_merge breaks the indexes (i.e parent ids), so in this case we'd simply sum arrays\r\n return array('0' => $this->translator->translate('— None —')) + $items;\r\n }", "title": "" }, { "docid": "f1a3a4d2567cf2df9f677f8c72621f41", "score": "0.51929003", "text": "public function listExcludedIngredients() \n {\n return Response::json('OK', 200);\n }", "title": "" }, { "docid": "ebcaa97b8ca351ce0cce8bfa1493ac5b", "score": "0.51905644", "text": "public function allNotPaginated()\n {\n }", "title": "" }, { "docid": "9f46c6ad1edfe61398b719622b117e1b", "score": "0.5185567", "text": "public function allEmpty()\n {\n return $this->allEqualTo(false);\n }", "title": "" }, { "docid": "0b842f9b35467d4d3ae6ff071c3f4f8e", "score": "0.5181016", "text": "function get_tax_overrides($trans_type, $trans_no)\n{\n\t$tax_overrides = array();\n\t$sql = \"SELECT amount, tax_type_id as id, rate\n\t\tFROM \".TB_PREF.\"trans_tax_details details\n\t\tWHERE trans_type=\".db_escape($trans_type).\" AND trans_no=\".db_escape($trans_no)\n\t\t.\" AND amount>0\"; // skip reposting of nondeductible VAT\n\n\t$result = db_query($sql, 'Cannot retrieve tax overrides');\n\twhile($row = db_fetch($result))\n\t{\n\t\t$tax_overrides[$row['id']] = $row['amount'];\n\t}\n\n\treturn $tax_overrides;\n}", "title": "" }, { "docid": "f69d022c9f3adb5b513a933f1a175526", "score": "0.51782", "text": "public function no_items() {\n\t\t_e( 'هیچ کلاسی در دسترس نیست', 'wp-extensions' );\n\t}", "title": "" }, { "docid": "2d50dcbe16c8f2eba1f082129ef380f8", "score": "0.51737016", "text": "public function UsedTags()\n {\n $tags = BlogTag::get();\n foreach ($tags as $tag) {\n if ($tag->BlogPosts()->count() == 0) {\n $tags = $tags->exclude(array('BlogTag.ID' => $tag->ID));\n }\n }\n return $tags;\n }", "title": "" }, { "docid": "305d613adbf94d63bf9de126a5c4172c", "score": "0.51688766", "text": "public function notInList(array $names) {\n\t\t// vytvoreni uvodniho indexu\n\t\t$index = array();\n\t\t$maxI = $this->_count;\n\t\t\n\t\tfor ($i = 0; $i < $maxI; $i++) {\n\t\t\t$index[$this[$i]->name] = $this[$i];\n\t\t}\n\t\t\n\t\t// odebrani jmen\n\t\tforeach ($names as $name) {\n\t\t\tunset($index[$name]);\n\t\t}\n\t\t\n\t\t// vytvoreni navratove hodnoty\n\t\t$retVal = array();\n\t\t\n\t\tforeach($index as $item) {\n\t\t\t$retVal[] = $item;\n\t\t}\n\t\t\n\t\treturn $item;\n\t}", "title": "" }, { "docid": "526e64367df1fea5465dfa2d89aa2355", "score": "0.5167304", "text": "public function amountNoTax()\n {\n $amount = 0;\n\n /** @var \\Ppb\\Db\\Table\\Row\\AbstractAccounting $row */\n foreach ($this->_rows as $row) {\n $amount += $row->amountNoTax();\n }\n\n return $amount;\n }", "title": "" }, { "docid": "e7ba5977aff11052e2653154f20b3f85", "score": "0.51640725", "text": "function ea_exclude_noindex_from_search($query)\n{\n if ($query->is_main_query() && $query->is_search() && !is_admin()) {\n $meta_query = empty($query->query_vars['meta_query']) ? array() : $query->query_vars['meta_query'];\n $meta_query[] = array(\n 'key' => '_yoast_wpseo_meta-robots-noindex',\n 'compare' => 'NOT EXISTS',\n );\n $query->set('meta_query', $meta_query);\n }\n}", "title": "" }, { "docid": "fee2f7a5fce2ce1e7a29d72e98c65815", "score": "0.51577884", "text": "public function getEmptyInvoicePriceGroup();", "title": "" }, { "docid": "1ea2c16fda91c3fb3616390ee4dae42a", "score": "0.5153278", "text": "protected function getEmptyExample()\r\n {\r\n return array('none'=>'none');\r\n }", "title": "" }, { "docid": "93248f97348fa0744f71682b98ce2e5c", "score": "0.5152941", "text": "public function getTaxIncluded ()\n {\n return $this->taxIncluded;\n }", "title": "" }, { "docid": "fdd62d71d3c98f64d29265e0b21a3621", "score": "0.5144788", "text": "public function getShowTaxString()\n {\n return false;\n }", "title": "" }, { "docid": "a0b3f4e207665c1e444d2953ce089464", "score": "0.5138032", "text": "public function getItems()\n {\n // if we find item with a quantity of 0, we remove it from the shopping cart\n $items = array();\n foreach ($this->items as $item)\n {\n if ($item->getQuantity() != 0)\n {\n $items[] = $item;\n }\n }\n\n return $items;\n }", "title": "" }, { "docid": "83ab5bd5d7d5c43b9fe27eaae1a3a8c3", "score": "0.51201665", "text": "function getUnknowns () {\r\n\t\t\treturn $this->_unknowns;\r\n\t\t}", "title": "" }, { "docid": "7f3473f91345d5035a5106c216d501dc", "score": "0.5115068", "text": "function no_items() {\n _e( 'No book found!', 'th' );\n }", "title": "" }, { "docid": "fc3eb425ded2d30f496514947f6856af", "score": "0.5113568", "text": "public static function excludes(): array;", "title": "" }, { "docid": "866079384271f66db0a0dfa3099c55d8", "score": "0.5112464", "text": "function sgwindow_get_curr_tax_names( $tax ) {\n $tax_names = array();\n $terms = get_the_terms( get_the_ID(), $tax );\n if ( $terms && ! is_wp_error( $terms ) ) : \n foreach ( $terms as $term ) {\n $tax_names[] = $term->name;\n }\n endif;\n return array_unique( $tax_names );\n}", "title": "" }, { "docid": "b6280fb877f28ea8b528521ed4381b1f", "score": "0.5111482", "text": "public function getAllVisibleItems()\n {\n $items = array();\n foreach ($this->getItemsCollection() as $item) {\n if (!$item->isDeleted() && !$item->getParentItemId()) {\n $items[] = $item;\n }\n }\n return $items;\n }", "title": "" }, { "docid": "148145a94633a72b7b16f8c5f0b93a05", "score": "0.5107825", "text": "public static function getIsNotDeletedCriteria();", "title": "" }, { "docid": "8b253c4bf3da8df9e606a9990864264a", "score": "0.5104874", "text": "public function unknown() {\n if(!is_null($this->unknown)) return $this->unknown;\n return $this->filterBy('type', 'unknown');\n }", "title": "" }, { "docid": "d77841383c99e1817c1c243590b0f9ce", "score": "0.51043326", "text": "public function getShippingInclTax();", "title": "" }, { "docid": "d77841383c99e1817c1c243590b0f9ce", "score": "0.51043326", "text": "public function getShippingInclTax();", "title": "" }, { "docid": "febfed7d07cbcea5e1bff55383400695", "score": "0.5103978", "text": "public function getNonces( $type ) {\n\t\treturn ! empty( $this->_nonces[ $type ] )\n\t\t\t? $this->_nonces[ $type ]\n\t\t\t: array();\n\t}", "title": "" }, { "docid": "99d171eed60d8cbe20c103b97e806b8b", "score": "0.5102909", "text": "public function getExcludes();", "title": "" }, { "docid": "76e4f65a22186d651c8ec16cc4f4d5c0", "score": "0.5102895", "text": "function get_lowest_taxonomy_terms( $terms ) {\n\t if ( ! is_array( $terms ) || empty( $terms ) ) {\n\t return false;\n }\n $filter = function($terms) use (&$filter) {\n $return_terms = array();\n $term_ids = array();\n\n foreach ($terms as $t){\n $term_ids[] = $t->term_id;\n }\n foreach ( $terms as $t ) {\n if( $t->parent == false || !in_array($t->parent,$term_ids) ) {\n //remove this term\n }\n else{\n $return_terms[] = $t;\n }\n }\n if( count($return_terms) ){\n return $filter($return_terms); \n }\n else {\n return $terms;\n }\n };\n return $filter($terms);\n}", "title": "" }, { "docid": "e8a1a70e7eddec637e75e0e76c0aa267", "score": "0.509858", "text": "public function test_disallowed_items_are_not_present()\n {\n foreach ($this->getDisallowedItems() as $key) {\n $this->assertArrayNotHasKey($key, $this->getRefinery()->bring($this->getAttachments())->refine($this->getModel()));\n }\n }", "title": "" }, { "docid": "d9bdf4524e936860359de009f251bbe9", "score": "0.50969094", "text": "public function get_nonstatus_users(){\r\n\t\tglobal $wpdb;\r\n\t\t$inner =\"SELECT email from \".$wpdb->prefix.\"fndry_bookusers\";\r\n\t\t$query = \"SELECT user_email, user_nicename FROM \".$wpdb->prefix.\"users WHERE user_email NOT IN (\".$inner.\") ;\";\r\n\t\t$res = $wpdb->get_results( $query);\r\n\t\tif( isset($res[0])){\r\n\t\t\treturn $res;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" } ]
a6faa2cb12377d59776a7ca093e17c21
Removes obsolete files and folders
[ { "docid": "e6b10624f4cc9a2a1019e106066702d7", "score": "0.0", "text": "private function _removeObsoleteFilesAndFolders($akeebaRemoveFiles)\n\t{\n\t\t// Remove files\n\t\tJLoader::import('joomla.filesystem.file');\n\t\tif (!empty($akeebaRemoveFiles['files']))\n\t\t{\n\t\t\tforeach ($akeebaRemoveFiles['files'] as $file)\n\t\t\t{\n\t\t\t\t$f = JPATH_ROOT . '/' . $file;\n\n\t\t\t\tif (!JFile::exists($f))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tJFile::delete($f);\n\t\t\t}\n\t\t}\n\n\t\t// Remove folders\n\t\tJLoader::import('joomla.filesystem.file');\n\t\tif (!empty($akeebaRemoveFiles['folders']))\n\t\t{\n\t\t\tforeach ($akeebaRemoveFiles['folders'] as $folder)\n\t\t\t{\n\t\t\t\t$f = JPATH_ROOT . '/' . $folder;\n\t\t\t\tif (!JFolder::exists($f))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tJFolder::delete($f);\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "6d7b5144c73e79f9675b8f0314cc27c5", "score": "0.81722486", "text": "private function _removeObsoleteFilesAndFolders()\n {\n // Remove files\n jimport('joomla.filesystem.file');\n if (!empty($this->AllEventsRemoveFiles['files'])) {\n foreach ($this->AllEventsRemoveFiles['files'] as $file) {\n $f = JPATH_ROOT . '/' . $file;\n if (!JFile::exists($f))\n continue;\n JFile::delete($f);\n }\n }\n\n // Remove folders\n jimport('joomla.filesystem.file');\n if (!empty($this->AllEventsRemoveFiles['folders'])) {\n foreach ($this->AllEventsRemoveFiles['folders'] as $folder) {\n $f = JPATH_ROOT . '/' . $folder;\n if (!JFolder::exists($f))\n continue;\n JFolder::delete($f);\n }\n }\n }", "title": "" }, { "docid": "433bf1c8bb82230ac5883a2bc4cf8da4", "score": "0.7557497", "text": "private function cleanup() {\n\n\t\t$dir = opendir(\".\");\n\t\twhile ($file = readdir($dir)) {\n\t\t\tif (fnmatch(\"*.*.*\", \"$file\") || fnmatch(\"*.json\", \"$file\") || fnmatch(\"curloutput.txt\", \"$file\")) @unlink(\"$file\");\n\t\t}\n\t\tclosedir();\n\t}", "title": "" }, { "docid": "96509bafef9ec8af20aa592fc0fd1115", "score": "0.7487492", "text": "protected function cleanUp()\n {\n // We first remove the legacy files\n $finder = new Finder();\n $files = $finder\n ->files()\n ->in(__DIR__ . '/../templates/mjml')\n ->name('*.html.twig');\n foreach ($files as $file) {\n unlink($file->getRealPath());\n }\n\n $filesystem = new Filesystem();\n if ($folder = realpath(__DIR__ . '/../var')) {\n $filesystem->remove($folder);\n }\n }", "title": "" }, { "docid": "f8f392723c0f0e735df5be87ba924767", "score": "0.74375224", "text": "protected function cleanUpFiles()\n {\n foreach ($this->filesToDelete as $filePath) {\n @unlink($filePath);\n }\n }", "title": "" }, { "docid": "56014e1390c02bf7abc7cad2dc26897e", "score": "0.73943835", "text": "protected function clean()\n {\n $files = glob(self::directory() . \"*.php\");\n if ($files) {\n foreach ($files as $file) {\n if (is_file($file)) {\n unlink($file);\n }\n }\n }\n }", "title": "" }, { "docid": "0e6fbe24967b19364e8700170d919faa", "score": "0.7383602", "text": "protected function cleanUpOldFiles() {\n\t\t$fileHandler = getPersistClass('UploadTmp');\n\t\t$files = $fileHandler->getOldFiles();\n\t\tif (!$files) {\n\t\t\treturn;\n\t\t}\n\t\tforeach($files as $file) {\n\t\t\tif (file_exists($file['filename'])) {\n\t\t\t\tunlink ($file['filename']);\n\t\t\t}\n\t\t\t$fileHandler->deleteFile($file['id']);\n\t\t}\n\t}", "title": "" }, { "docid": "00a59f206e2fb1825991f1a65d939c22", "score": "0.72084147", "text": "private function cleanup() {\n // Cache path\n $cache = app_path() . DIRECTORY_SEPARATOR . $this->option('cache') . DIRECTORY_SEPARATOR;\n\n // Get all files\n $views = File::allFiles($cache);\n\n // Loop through all the files and delete them:\n foreach($views as $view) {\n File::delete($view);\n }\n }", "title": "" }, { "docid": "e509012f1857bd2551c5d60cdb152e54", "score": "0.71766067", "text": "public function clean()\n {\n $jobFiles = glob($this->getLocation() . '*.js');\n foreach ($jobFiles as $file) {\n unlink($file);\n }\n }", "title": "" }, { "docid": "8c2dcc681c910c57b72e8e8c3543cada", "score": "0.7149149", "text": "public static function clearFiles()\n {\n foreach (self::$_files as $file) {\n if (is_file($file)) {\n unlink($file);\n }\n }\n\n // remove dir\n $directories = array_reverse(self::$_directories);\n foreach ($directories as $directory) {\n if (is_dir($directory)) {\n rmdir($directory);\n }\n }\n\n // reset\n self::$_files = array();\n self::$_directories = array();\n }", "title": "" }, { "docid": "65c5573d601146fbdbabb31fde260e43", "score": "0.70989436", "text": "function purge()\n\t {\n\t\t$dir = @opendir($this->cache_dir);\n\n\t\tif (!$dir)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\twhile (($entry = readdir($dir)) !== false)\n\t\t{\n\t\t\tif (strpos($entry, 'sql_') !== 0 && strpos($entry, 'cache_') !== 0 && strpos($entry, 'staff') !== 0 )\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$this->remove_file($this->cache_dir . $entry);\n\t\t}\n\t\tclosedir($dir);\n\t }", "title": "" }, { "docid": "240cb2f64ec73cd8ce50dbc0cf036ad0", "score": "0.70627373", "text": "public function clean() {\n\n\t\tunlink($this->config['wgetlog_file']);\r\n\t\t$this->log(\"Deleting file : \".$this->config['wgetlog_file'].\".\");\n\r\n\t\tunlink($this->config['sedlog_file']);\r\n\t\t$this->log(\"Deleting file : \".$this->config['sedlog_file'].\".\");\r\n\r\n\t\t$this->sureRemoveDir($this->config['working_path'].'sitemapCrawler', true);\n\t\t$this->log(\"Deleting folder : \".$this->config['working_path'] .'sitemapCrawler'.\".\");\n\n\t}", "title": "" }, { "docid": "00e1ed2a4db20fd659ad3c5ca0a637d4", "score": "0.70024884", "text": "public function cleanup()\n {\n foreach ($this->libs as $lib) {\n $temp = $lib->get_temp();\n \n // DirPacker removes temp-files\n if (file_exists($temp))\n unlink($temp);\n }\n \n foreach ($this->srcs as $src) {\n $temp = $src->get_temp();\n \n // DirPacker removes temp-files\n if (file_exists($temp))\n unlink($temp);\n }\n }", "title": "" }, { "docid": "d82a8426e077a48cd62e6df2b313184e", "score": "0.69659626", "text": "protected function cleanUp() {\n\t\t$files = array_merge($this->binaryFiles, $this->textFiles);\n\t\tforeach ($files as $fileInfo) {\n\t\t\t$fileNameAndPath = sprintf('%s/%s/%s.%s', $this->target, $fileInfo['filePath'], $fileInfo['fileName'], $fileInfo['fileExtension']);\n\t\t\tif (file_exists($fileNameAndPath)) {\n\t\t\t\tunlink($fileNameAndPath);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "428b30f91054937757edb6637b95a7e6", "score": "0.6925377", "text": "public function deleteAll()\n {\n $dir = opendir($this->root);\n while ($file = readdir($dir)) {\n if (pathinfo($file, PATHINFO_EXTENSION) != 'php') {\n continue;\n }\n\t\t\t@unlink($this->root.$file);\n }\n }", "title": "" }, { "docid": "aac2f5de6ec89e2f4adc93a259392d3d", "score": "0.68918383", "text": "public function removeAllCache()\n {\n $this->deleteDirectory($this->pubStatic);\n $this->deleteDirectory($this->varCache);\n $this->deleteDirectory($this->varPageCache);\n $this->deleteDirectory($this->varViewPreprocessed);\n $this->deleteDirectory($this->varGeneration);\n }", "title": "" }, { "docid": "8c1f06b786b9764770274d2f3d67ee6f", "score": "0.68650275", "text": "public static function removeUnusedFiles() {\n\n\t\t$sql = \"\n\t\t\tSELECT f.id\n\t\t\tFROM \". DB_PREFIX. \"files AS f\n\t\t\tLEFT JOIN \". DB_PREFIX. \"custom_dataset_files_link AS cdfl\n\t\t\t ON cdfl.file_id = f.id\n\t\t\tWHERE f.`usage` = 'dataset_file'\n\t\t\t AND cdfl.file_id IS NULL\n\t\t\tGROUP BY f.id\";\n\t\n\t\t$result = \\ze\\sql::select($sql);\n\t\twhile ($file = \\ze\\sql::fetchAssoc($result)) {\n\t\t\t\\ze\\file::delete($file['id']);\n\t\t}\n\t}", "title": "" }, { "docid": "d867d96d5b4c899d6a1eb144ced8f82f", "score": "0.68333113", "text": "public function cleanup() {\n $folder = PATH_TO_APP . 'app' . DS . 'Views' . DS;\n foreach ($this->Pages->getInstalledPages() as $page) {\n $path = $folder . strtolower($page) .DS;\n if (!is_dir($path)) {\n $this->Pages->delete(array('name'=>$page));\n }\n }\n }", "title": "" }, { "docid": "53c4a0cfdcab7c8d1d5cdf928c10e386", "score": "0.6825001", "text": "private function _purgeOldFiles() \n {\n $pdfs = glob(\n $this->tmpDir.'/'.$this->_temp_file_prefix.'*'.$this->_temp_file_prefix\n );\n foreach ($pdfs as $pdf)\n {\n if (round(time() - filemtime($pdf)) > $this->_temp_file_purge_seconds)\n unlink($pdf);\n }\n }", "title": "" }, { "docid": "1d029a10a51347f15b9c3705c29b905f", "score": "0.682277", "text": "protected function deleteFiles(): void\n {\n BaseFileHelper::removeDirectory($this->directoryForDelete);\n }", "title": "" }, { "docid": "88333b407d550793e1961e07acce39e6", "score": "0.6811043", "text": "public static function clean_files(){\n if (!include($GLOBALS['config_file'])){\n throw new Exception(\"Cannot include config file!\\n\");\n }\n\n $parent_folder= dirname($config->photos_dir);\n if (!file_exists($parent_folder)){\n return;\n }\n\n if (!preg_match('/.*tmp\\/?$/', $parent_folder)){\n echo (\"Folder is not named tmp, I am not taking the risk to delete it\");\n return;\n }\n self::rrmdir($parent_folder);\n }", "title": "" }, { "docid": "9245f1517a3825165226c75e8c170b3b", "score": "0.67759115", "text": "public function clear()\n {\n $dir = __DIR__.'\\\\..\\\\..\\\\tmp\\\\cache\\\\';\n $files = glob($dir.'*');\n foreach ($files as $file) {\n unlink($file);\n }\n }", "title": "" }, { "docid": "3ad1a40a199c67a1ca70c0abe7961c19", "score": "0.67614716", "text": "private function cleanupTempFiles()\n {\n if ($this->zipFile and !unlink($this->zipFile))\n error_log(\"FB2PDF WARN. Unable to remove temporary file $this->zipFile\"); \n if ($this->fbFile and !unlink($this->fbFile))\n error_log(\"FB2PDF WARN. Unable to remove temporary file $this->fbFile\"); \n }", "title": "" }, { "docid": "7211f6ea69ca91374e1875b9e23c4275", "score": "0.6743256", "text": "protected function removeTeamFiles()\n {\n $files_to_remove = [\n 'cache/modules/Teams/TeamSetMD5Cache.php',\n 'cache/modules/Teams/TeamSetCache.php'\n ];\n foreach ($files_to_remove as $file) {\n $file = \\SugarAutoloader::normalizeFilePath($file);\n if (\\SugarAutoloader::fileExists($file)) {\n \\SugarAutoloader::unlink($file);\n }\n }\n }", "title": "" }, { "docid": "27cbd434e50a0e52fdc37c3733afb0ab", "score": "0.6740841", "text": "public function clean()\n {\n unlink($this->outFile);\n }", "title": "" }, { "docid": "a4bfce1861631a909bd39717aefdf8db", "score": "0.67299014", "text": "final function removeRecursive() {\n if ($this->isDir() && !$this->isLink()) {\n foreach ($this->dirContents() as $file)\n $file->removeRecursive();\n\n $this->rmdir();\n } else {\n $this->unlink();\n }\n }", "title": "" }, { "docid": "7f33aac0613a052a2301e3898b1da6f9", "score": "0.66776246", "text": "static function delete_marked_files() {\n foreach (self::$files_marked_for_deletion as $filename) {\n // We want to suppress all errors, as it's possible that some of these\n // files may have been deleted/moved before we got here.\n @unlink($filename);\n }\n }", "title": "" }, { "docid": "7252e1e3b8bac668cdbb907010d972cc", "score": "0.6674701", "text": "public function clear()\n {\n $dir = opendir($this->root);\n while ($file = readdir($dir)) {\n if (pathinfo($file, PATHINFO_EXTENSION) != 'php') {\n continue;\n }\n list($time, $value) = @include $this->root.$file;\n if (time() > $time) {\n @unlink($this->root.$file);\n }\n }\n }", "title": "" }, { "docid": "719a20569002e6c387ba91bf2d24c7fa", "score": "0.6674403", "text": "protected function cleanup($files) {\n foreach ($files as $file) {\n if (file_exists($file)) {\n unlink($file);\n }\n }\n }", "title": "" }, { "docid": "a9add446464dca5e9bbb1beae6b5fd6f", "score": "0.6662029", "text": "function remove_old_files() {\n $p = PATH . '/';\n\n if(\n (MAX_EXEC === 0 || (time() - INIT_EXEC) < MAX_EXEC) && //prevents this function locks the process that was completed\n (file_exists($p) || is_dir($p))\n ) {\n $h = opendir($p);\n if(false !== $h) {\n while(false !== ($f = readdir($h))) {\n if(\n is_file($p . $f) && is_dir($p . $f) === false &&\n strpos($f, SECPREFIX) !== false &&\n (INIT_EXEC - filectime($p . $f)) > (CCACHE * 2)\n ) {\n unlink($p . $f);\n }\n }\n }\n }\n}", "title": "" }, { "docid": "5d13628a2bda30bae28898faae553f91", "score": "0.66568154", "text": "function deleteDeprecatedFiles()\n\t{\n\t\t// Check for request forgeries\n\t\tJSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));\n\n\t\t// Get deprecated files and folders that still exist\n\t\t$model = $this->getModel('flexicontent');\n\t\t$deprecated = null;\n\t\t$model->getDeprecatedFiles($deprecated);\n\n\t\tjimport('joomla.filesystem.file');\n\t\tjimport('joomla.filesystem.folder');\n\n\t\t// Delete deprecated files that were found\n\t\tforeach ($deprecated['files'] as $file)\n\t\t{\n\t\t\tif (!JFile::delete($file))\n\t\t\t{\n\t\t\t\techo 'Cannot delete legacy file: ' . $file . '<br />';\n\t\t\t}\n\t\t}\n\n\t\t// Delete deprecated folders that were found\n\t\tforeach ($deprecated['folders'] as $folder)\n\t\t{\n\t\t\tif (!JFolder::delete($folder))\n\t\t\t{\n\t\t\t\techo 'Cannot delete legacy folder: ' . $folder . '<br />';\n\t\t\t}\n\t\t}\n\n\t\t// Always set this to prevent task from blocking UI\n\t\t$model->getDeprecatedFiles($deprecated, $_done = true);\n\n\t\tif ($model->getDeprecatedFiles())\n\t\t{\n\t\t\techo '<span class=\"install-ok\"></span>';\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo '<span class=\"install-notok\"></span>';\n\t\t}\n\t}", "title": "" }, { "docid": "8e19d9a123c4a2664bb88b964be0f387", "score": "0.66537625", "text": "public function deleteAll()\n {\n foreach ($this->files as $file) {\n if (is_file($file)) {\n unlink($file);\n }\n }\n }", "title": "" }, { "docid": "8cf6e0f50056d9d6bac9b787db65f6bb", "score": "0.6641456", "text": "public function cleanAssetDirs()\n {\n foreach ($this->dirs as $asset_dir) {\n if (!is_dir($asset_dir)) {\n $this->echo_msg('Did not find '.$asset_dir.'/ .. skipping');\n continue;\n }\n $this->echo_msg('Checking '.$asset_dir.'/ to remove old caches .. ');\n\n $nbr_cleaned = self::cleanAssetDir($asset_dir);\n\n $this->echo_msg('Removed '.$nbr_cleaned.' '.$asset_dir.'/ cache'.($nbr_cleaned == 1 ? '' : 's'));\n }\n $this->echo_msg('Finished');\n }", "title": "" }, { "docid": "b4e76db8c07972e7e955ec5d655a90ab", "score": "0.66299206", "text": "public function tearDown(){\n\t\tforeach(new \\RecursiveIteratorIterator(\n\t\t\t\tnew \\RecursiveDirectoryIterator(__DIR__.'/_file/cache', \\RecursiveDirectoryIterator::SKIP_DOTS),\n\t\t\t\t\\RecursiveIteratorIterator::CHILD_FIRST\n\t\t) as $oFileinfo){\n\t\t\tif($oFileinfo->isDir())rmdir($oFileinfo->getRealPath());\n\t\t\telseif($oFileinfo->getBasename() !== '.gitignore')unlink($oFileinfo->getRealPath());\n\t\t}\n\t}", "title": "" }, { "docid": "107d6d87813bb1342b2378bc86a8c60e", "score": "0.6627497", "text": "protected function unlinkResourceFiles()\n {\n $this->logInfo(\"Removing resource files.\");\n\n foreach ($this->myResourceFilesInfo as $file_info)\n {\n if (isset($file_info['full_path_name_with_hash']) && isset($file_info['full_path_name']))\n {\n // Resource file has an optimized/minimized version. Remove the original file.\n $this->logInfo(\"Removing '%s'.\", $file_info['full_path_name']);\n if (file_exists($file_info['full_path_name'])) unlink($file_info['full_path_name']);\n }\n }\n }", "title": "" }, { "docid": "da37c5c16d6a565fcf96ee390bc25f45", "score": "0.6627183", "text": "public function clear()\n {\n @array_map('unlink', glob(WRITEPATH . 'cache' . DIRECTORY_SEPARATOR . '*.cache') ?? []);\n }", "title": "" }, { "docid": "4fe19807841b3cc58d9bded9c8fcedc5", "score": "0.66071224", "text": "function clean()\n\t{\n\t\tif($this->tmpDirName == \"\")\n\t\t\treturn;\n\t\t$tmpPath = POO_TMP_PATH.\"/\".$this->tmpDirName;\n\t\t$this->deldir($tmpPath);\n\t}", "title": "" }, { "docid": "59c1d824ac682c9f572e78f16969adbc", "score": "0.65852064", "text": "function Clean_Old_Graphs()\n{\n\t$files = glob(CACHE_DIR.'*.png');\n\tclearstatcache();\n\t$rem_files = array();\n\tforeach($files as $val)\n\t{\n \t\t$thirty_days_ago = time() - 2592000;\t\n \tif(filemtime($val) <= $thirty_days_ago)\n \t{\n \t\tunlink($val);\n \t}\n }\n}", "title": "" }, { "docid": "ef414c1bc9083e86f0e5bb445d8efff5", "score": "0.6582477", "text": "public function cleanup()\n {\n // Remove old parts without binaries \n $this->removePartsWithoutBinary();\n \n // Remove parts where the binary is missing\n $this->removePartsWithMissingBinary();\n }", "title": "" }, { "docid": "26034d0825648be47d3e26f3e36bb6b5", "score": "0.6582234", "text": "private function cleanUp()\n {\n Folder::disk('storage')->delete('assets');\n\n $this->console()->checkLine('Old asset meta files have been deleted.');\n }", "title": "" }, { "docid": "a50cf7350db6ac066f6087f113ed9878", "score": "0.6574484", "text": "public function clearSpreadsheetCache() {\r\n $files = glob(BASEPATH.'/tmp/'.'*'); \r\n if ($files) {\r\n foreach ($files as $file) {\r\n if (file_exists($file)) {\r\n @unlink($file);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "337e4f82491bd3cfaa6565fc3b62830f", "score": "0.65737844", "text": "public function freshclean() {\n unset($this->fileindex);\n $this->fileindex[] = '';\n }", "title": "" }, { "docid": "7fdccb8c1683c767a59a409206611afb", "score": "0.6557678", "text": "public function deleteAllFiles() {\n foreach($this->listFiles() as $file){\n unlink($this->getRootFolder().$this->getFileFolder().$file);\n }\n }", "title": "" }, { "docid": "5e4ef3a16dceb42939c63bd069e66fa6", "score": "0.65576345", "text": "public static function removeAllViews()\n {\n $dir = self::path();\n\n self::setPermissions();\n\n array_map('unlink', glob($dir.'/*.php'));\n }", "title": "" }, { "docid": "b0f05ec5f982cd0b91238a4ecf12964e", "score": "0.6550032", "text": "private function remove_unused_files($folder='') {\n\t\t\n\t\t$path = $this->webroot_path.$folder;\n\t\t\n\t\t// traverse httpdocs and remove files that don't have matching pages files\n\t\t$httpdocs = scandir($path);\n\t\t\n\t\t$httpdocs = $this->filter_hidden_files($httpdocs);\n\t\t\n\t\t// count the number of files to be removed\n\t\t$delete_count = 0;\n\t\t\n\t\tforeach($httpdocs as $file) {\n\t\t\t// is it a directory\n\t\t\tif(is_dir($folder.$file)) {\n\t\t\t\t\n\t\t\t\t// remove_unused_files only returns true if the directory will be empty after file deletion.\n\t\t\t\t// only remove directory if it is empty (returned true)\n\t\t\t\tif($this->remove_unused_files($folder.$file.'/')) {\n\t\t\t\t\t// should the directory be removed?\n\t\t\t\t\tif(!is_dir($this->source_path.$folder.$file)) {\n\t\t\t\t\t\t$this->log('delete', sprintf($this->language->delete_directory, $folder.$file.'/'));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!$this->dry_run) {\n\t\t\t\t\t\t\trmdir($this->webroot_path.$folder.$file);\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\telse {\n\t\t\t\t// only delete html files\n\t\t\t\tif(array_pop(explode('.', $file)) == 'html') {\n\t\t\t\t\t// remove the .html and replace with .txt\n\t\t\t\t\t$text_file = str_ireplace('.html', '.txt', $file);\n\t\t\t\t\t\n\t\t\t\t\tif(!file_exists($this->source_path.$folder.$text_file)) {\n\t\t\t\t\t\t$this->log('delete', sprintf($this->language->delete_file, $folder.$file));\n\t\t\t\t\t\t$delete_count++;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!$this->dry_run) {\n\t\t\t\t\t\t\tunlink($this->webroot_path.$folder.$file);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $delete_count == count($httpdocs);\n\t}", "title": "" }, { "docid": "ea6f63f9fa526a0595c549b8fe144843", "score": "0.65418345", "text": "public function deleteWordsFolder()\n {\n array_map('unlink', glob($this->staticWordOutputDir . '/*.*'));\n// rmdir($dirname);\n }", "title": "" }, { "docid": "eb86c295bdebfdeaa138726a67f8a205", "score": "0.6540519", "text": "function purgeAll() {\r\n if (is_writable($this->cacheDirectory)) {\r\n $this->recursiveDelete($this->cacheDirectory);\r\n }\r\n }", "title": "" }, { "docid": "ad3d63dc6b22f1ea06b61042c14cd314", "score": "0.6531917", "text": "public function my_reset() {\n\n\t\t$path = dirname(dirname(__DIR__)) .'/assets/img/uploads';\n\t\t$main = scandir($path);\n\t\tunset($main[0]);\n\t\tunset($main[1]);\n\t\t$counter = 0;\n\n\t\tforeach($main as $k => $v) {\n\t\t\t$child = scandir($path .\"/\".$v);\n\t\t\tforeach($child as $val) {\n\t\t\t\t\n\t\t\t\tif($val != '.' && $val != '..' && $val != '.keep') {\n\t\t\t\t\t$counter++;\n\t\t\t\t\tunlink($path . \"/{$v}/\".$val);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\techo \"files deleted : \" . $counter;\n\t\techo \"<br>\";\n\t\techo \"Table recipies truncated : \" . $this->recipies->truncate();\n\n\t}", "title": "" }, { "docid": "9d6dc673f40c3ce8658ce2677f70f0b7", "score": "0.6529103", "text": "public function clean()\r\n\t{\r\n\t\tFile::cleanDirectory($this->getConfigBasePath() );\r\n\t}", "title": "" }, { "docid": "d10f9deee6f3a4dfb116ad84e92f32eb", "score": "0.6526438", "text": "public function cleanup()\n {\n // Fetch all dumps folders\n $folders = $this->getAllFolders();\n $folders = Arrays::filter($folders, function($folder) {\n return is_dir($folder);\n });\n\n // Parse the date for each one\n foreach ($folders as $folder) {\n\n // Get date from folder name\n $date = $this->getDateFromFolder($folder);\n\n // If dump from last year, remove\n if ($date->format('Y') < date('Y')) {\n $this->app['files']->deleteDirectory($folder);\n continue;\n }\n\n // If dump from last months, just keep main checkpoints\n if ($date->format('m') < date('m') and !in_array($date->format('d'), array(1, 15))) {\n $this->app['files']->deleteDirectory($folder);\n continue;\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "c73d3f1a9b59cb641f7bbc424cf36d8a", "score": "0.65215033", "text": "function purgeCurrent() {\r\n if (is_writable($this->fullDirectory)) {\r\n $this->recursiveDelete($this->fullDirectory);\r\n }\r\n }", "title": "" }, { "docid": "ac2f4d166a34f578bf23ef94cb8aea23", "score": "0.6509731", "text": "function _clear_cache() {\n $leave_files = array('index.html', '.htaccess');\n\n $dir = APPPATH . 'cache/';\n\n foreach (glob(\"$dir/*\") as $file) {\n if (!in_array(basename($file), $leave_files))\n echo unlink($file);\n }\n }", "title": "" }, { "docid": "fd4f294fce023a2ce7ce9fc147d641b8", "score": "0.6502135", "text": "public function removeExpiredFiles()\n {\n $now = new \\DateTime();\n $queryBuilder = $this->createQueryBuilder('f')\n ->select('f.file as file')\n ->where('f.expiry < :now')\n ->setParameter('now', $now);\n\n $expiredFiles = $queryBuilder->getQuery()->execute();\n foreach ($expiredFiles as $next) {\n unlink($next['file']);\n }\n\n $queryBuilder = $this->createQueryBuilder('f')\n ->delete()\n ->where('f.expiry < :now')\n ->setParameter('now', $now);\n\n $queryBuilder->getQuery()->execute();\n }", "title": "" }, { "docid": "4b212867bfc9c8d9a3508f7f24e1938c", "score": "0.64913213", "text": "static public function cleanUp()\n {\n global $objDatabase;\n\n $arrToDelete = array();\n\n // get all files from database\n $objFiles = $objDatabase->Execute(\"SELECT `id`, `source`, `expiration_date` FROM \" . DBPREFIX . \"module_filesharing\");\n if ($objFiles !== false) {\n $cx = \\Cx\\Core\\Core\\Controller\\Cx::instanciate();\n while (!$objFiles->EOF) {\n // if the file is expired or does not exist\n if (($objFiles->fields[\"expiration_date\"] < date('Y-m-d H:i:s')\n && $objFiles->fields[\"expiration_date\"] != NULL)\n || !file_exists($cx->getWebsitePath() . $cx->getWebsiteOffsetPath() . $objFiles->fields[\"source\"])\n ) {\n $fileExists = file_exists($cx->getWebsitePath() . $cx->getWebsiteOffsetPath() . $objFiles->fields[\"source\"]);\n // if the file is only expired delete the file from directory\n if ($fileExists) {\n \\Cx\\Lib\\FileSystem\\FileSystem::delete_file($cx->getWebsitePath() . $cx->getWebsiteOffsetPath() . $objFiles->fields[\"source\"]);\n }\n $arrToDelete[] = $objFiles->fields[\"id\"];\n }\n $objFiles->moveNext();\n }\n }\n // delete all expired or not existing files\n if(!empty($arrToDelete)) {\n $objDatabase->Execute(\"DELETE FROM \" . DBPREFIX . \"module_filesharing WHERE `id` IN (\" . implode(',', $arrToDelete) . \")\");\n }\n }", "title": "" }, { "docid": "defeac5d1b0eda2b599be60674fb255f", "score": "0.6485495", "text": "protected function clearFileCache() : void\n {\n echo PHP_EOL . 'Clearing Cache folders' . PHP_EOL;\n\n $fileList = [];\n $whitelist = ['.', '..', '.gitignore'];\n $path = appPath('storage/cache');\n $dirIterator = new RecursiveDirectoryIterator($path);\n $iterator = new RecursiveIteratorIterator(\n $dirIterator,\n RecursiveIteratorIterator::CHILD_FIRST\n );\n\n /**\n * Get how many files we have there and where they are.\n */\n foreach ($iterator as $file) {\n if (true !== $file->isDir() && true !== in_array($file->getFilename(), $whitelist)) {\n $fileList[] = $file->getPathname();\n }\n }\n\n echo sprintf('Found %s files', count($fileList)) . PHP_EOL;\n foreach ($fileList as $file) {\n echo '.';\n unlink($file);\n }\n\n echo 'Cleared Cache folders' . PHP_EOL;\n }", "title": "" }, { "docid": "217340dee1e2479db4c9460fcfc3e53d", "score": "0.64779174", "text": "protected function cleanup()\n {\n recursive_rm( $this->get_tmp_dir() );\n }", "title": "" }, { "docid": "5ddc9a6617efee6a1ed92e9c22cfea63", "score": "0.647337", "text": "public function clearFileCache() {\n $dir = opendir(DB_CACHE_DIR);\n while(($file = readdir($dir))) {\n if ( is_file (DB_CACHE_DIR . $file)) {\n @unlink(DB_CACHE_DIR .$file);\n }\n }\n }", "title": "" }, { "docid": "cbe3435762e767cf0213440c907a1734", "score": "0.646689", "text": "public function collectGarbage() {\n\t\tforeach ($this->getCacheDirectory()->getFiles() as $file) {\n\t\t\tif ($file->getName() === '.htaccess') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!$this->cache->has($file->getName())) {\n\t\t\t\t$file->delete();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ee19fec8fdfc1b4a5e8b5f3d403d8c8d", "score": "0.6453903", "text": "function cleanTempDirectory() {\n $dir = Yii::app()->getConfig('tempdir') . DIRECTORY_SEPARATOR;\n $dp = opendir($dir);// or show_error('Could not open temporary directory');\n while ($file = readdir($dp)) {\n if (is_file($dir . $file) && (filemtime($dir . $file)) < (strtotime('-1 days')) && $file != 'index.html' && $file != '.gitignore' && $file != 'readme.txt') {\n @unlink($dir . $file);\n }\n }\n $dir = Yii::app()->getConfig('tempdir') . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR;\n $dp = opendir($dir);// or die('Could not open temporary upload directory');\n while ($file = readdir($dp)) {\n if (is_file($dir . $file) && (filemtime($dir . $file)) < (strtotime('-1 days')) && $file != 'index.html' && $file != '.gitignore' && $file != 'readme.txt') {\n @unlink($dir . $file);\n }\n }\n closedir($dp);\n}", "title": "" }, { "docid": "ff6833665d5b0d388dbb1a7e6737b0da", "score": "0.64441305", "text": "public function fileRemove()\n {\n unlink($this->file_path);\n rmdir(dirname($this->file_path));\n }", "title": "" }, { "docid": "b69925bc90fcc13a366b86ac8ac8161a", "score": "0.64410734", "text": "public function remove_backend_dir_files()\n {\n\t\tif (file_exists(THEPLUS_ASSET_PATH . '/theplus.min.css')) {\n\t\t\tunlink($this->secure_path_url(THEPLUS_ASSET_PATH . DIRECTORY_SEPARATOR . '/theplus.min.css'));\n\t\t}\n\t\tif(file_exists(THEPLUS_ASSET_PATH . '/theplus.min.js')){\n\t\t\tunlink($this->secure_path_url(THEPLUS_ASSET_PATH . DIRECTORY_SEPARATOR . '/theplus.min.js'));\n\t\t}\n }", "title": "" }, { "docid": "478638e96c32b084f35b3927809e0830", "score": "0.64380115", "text": "private function clean()\n {\n // Deletes the target directories.\n if (Storage::exists('kits/java/target'))\n {\n Storage::deleteDirectory('kits/java/target');\n }\n if (Storage::exists('kits/java/com.checkmate.kit.java.core/target'))\n {\n Storage::deleteDirectory('kits/java/com.checkmate.kit.java.core/target');\n }\n\n // Deletes all java src files.\n $src_files = Storage::allFiles('kits/java/com.checkmate.kit.java.core/src/main/java');\n foreach ($src_files as $src_file)\n {\n if (strpos(basename($src_file), '.java') !== false)\n {\n Storage::delete($src_file);\n }\n }\n\n // Deletes all java test files.\n $test_files = Storage::allFiles('kits/java/com.checkmate.kit.java.core/src/test/java');\n foreach ($test_files as $test_file)\n {\n if (strpos(basename($test_file), '.java') !== false)\n {\n Storage::delete($test_file);\n }\n }\n }", "title": "" }, { "docid": "17cd0145c2e2770b2dd937e1169dbb4d", "score": "0.6437235", "text": "public function clearViewCssFolder()\n {\n if (!is_dir($this->viewCssDir)) {\n return;\n }\n\n $files = glob($this->viewCssDir.DIRECTORY_SEPARATOR.'*');\n foreach ($files as $file) {\n if (is_file($file)) {\n unlink($file);\n }\n }\n }", "title": "" }, { "docid": "df2eb9b5bce94488452060f3061a39ac", "score": "0.64336926", "text": "public function cleanCacheMedia()\n {\n $dirjs = Mage::getBaseDir().'\\\\media\\\\mw_onestepcheckout\\\\js\\\\';\n $dircss = Mage::getBaseDir().'\\\\media\\\\mw_onestepcheckout\\\\css\\\\';\n \n //Delete all\n $this->unlinkRecursive($dirjs,true);\n $this->unlinkRecursive($dircss,true);\n $this->unlinkRecursive( Mage::getBaseDir().'\\\\media\\\\mw_onestepcheckout\\\\',true);\n }", "title": "" }, { "docid": "51a8cbd22f425a01ff1e8acf9ca47220", "score": "0.6414482", "text": "public function destroy()\n {\n if ($this->statue = true)\n {\n $this->file->cleanDirectory($this->path);\n }\n }", "title": "" }, { "docid": "0e14e1fcdda2902a64ab6e21155d31b9", "score": "0.64051574", "text": "public function destroyCache(){\n\t\t\n\t\t$files = glob( $this->cache_dir.'*' ); // get all file names\n\t\tforeach($files as $file){ // iterate files\n\t\t \tif(is_file($file))\n\t\t \tunlink($file); // delete file\n\t\t}\n\t}", "title": "" }, { "docid": "4d00f0a895c12683153d2d19d433993c", "score": "0.6392102", "text": "static function cleanApp()\n {\n $dirs[] = ROOT.DS.'application'.DS.'Controllers';\n $dirs[] = ROOT.DS.'application'.DS.'Data';\n $dirs[] = ROOT.DS.'application'.DS.'Libraries';\n $dirs[] = ROOT.DS.'application'.DS.'Models';\n $dirs[] = ROOT.DS.'application'.DS.'Views';\n $dirs[] = ROOT.DS.'public'.DS.'css';\n $dirs[] = ROOT.DS.'public'.DS.'files';\n $dirs[] = ROOT.DS.'public'.DS.'images';\n $dirs[] = ROOT.DS.'public'.DS.'img';\n $dirs[] = ROOT.DS.'public'.DS.'js';\n $dirs[] = ROOT.DS.'application';\n $dirs[] = ROOT.DS.'public';\n $dirs[] = ROOT.DS.'config';\n $dirs[] = ROOT.DS.'logs';\n $dirs[] = ROOT.DS.'rsphp';\n $dirs[] = ROOT.DS.'rsphp.bat';\n $dirs[] = ROOT.DS.'rsphp_help';\n\n foreach ($dirs as $dir ) {\n RS::printLine($dir);\n\n if (Directory::exists($dir) ) {\n RS::printLine(\"Directory exists\");\n $files = scandir($dir);\n foreach ($files as $file ) {\n if ($file == '.' || $file == '..' ) {\n continue;\n }\n\n $file = $dir.DS.$file;\n if (is_dir($file) ) {\n self::printLine('remove dir '.$file);\n Directory::delete($file, true);\n } else {\n self::printLine('remove file '.$file);\n File::delete($file);\n } // end if is dir\n } // end foreach $file\n Directory::delete($dir, true );\n } else {\n if (File::exists ($dir ) ) {\n File::delete($dir );\n } // end if file exists\n } // end if dir exists\n } // end foreach dir\n }", "title": "" }, { "docid": "21f318a197bf93b145035fb8caedb3ab", "score": "0.6382651", "text": "public function removeFromFileSystem()\n {\n if(file_exists($this->getPath()))\n {\n unlink($this->getPath());\n }\n }", "title": "" }, { "docid": "8efb154d66f8a3f75ac09963ab737281", "score": "0.637333", "text": "public function flush()\n {\n foreach ($this->files->directories($this->directory) as $directory)\n {\n $this->files->deleteDirectory($directory);\n }\n }", "title": "" }, { "docid": "ce85fb7ad1ec07c6a9c5e12c3f65bf96", "score": "0.6368129", "text": "protected function cleanup() {\n\t\tif ( $this->tmp_dir ) {\n\t\t\t$this->exec( sprintf( 'rm -rf %s', escapeshellarg( $this->tmp_dir ) ) );\n\t\t}\n\t}", "title": "" }, { "docid": "024100106a811edf8397ce5eae50773e", "score": "0.6348916", "text": "public static function cleanFile()\n {\n $fs = new Filesystem();\n $fs->remove(\"output.csv\");\n $fs->remove(\"out.csv\");\n }", "title": "" }, { "docid": "347e092f158a9869cc0ec4d13a4f9193", "score": "0.6341603", "text": "public function clearOutputFolder() {\r\n $outputDir = opendir($this->gmt_output_folder);\r\n if ($outputDir) {\r\n // keep it in the server for 8 hours\r\n $MAX_TIME = 8 * 60 * 60;\r\n $currentTime = time();\r\n $change = 0;\r\n $temp = 0;\r\n\r\n $subfolder = \"\";\r\n $subfolder_array = Array();\r\n while (false !== ($subfolder = readdir($outputDir)))\r\n array_push($subfolder_array, $subfolder);\r\n\r\n $files = Array();\r\n for ($i = 0; $i < sizeof($subfolder_array); $i++) {\r\n if ($subfolder_array[$i] != '.' && $subfolder_array[$i] != '..') {\r\n array_push($files, $subfolder_array[$i]); // Get all image folders without '.' & '..'\r\n }\r\n }\r\n $length = sizeof($files);\r\n for ($i = 0; $i < $length; $i++) {\r\n $temp = stat($this->gmt_output_folder . $files[$i]);\r\n $change = $currentTime - $temp['ctime'];\r\n if ($change <= $MAX_TIME)\r\n continue;\r\n\r\n if (substr($files[$i], 0, 7) != 'wovodat')\r\n continue;\r\n // Delete one array room per one time\r\n $imagefolder2 = $this->gmt_output_folder . $files[$i] . \"/\";\r\n // Delete all visible files\r\n foreach (glob($imagefolder2 . '*') as $file)\r\n unlink($file);\r\n // Delete all hidden/invisible files\r\n foreach (glob($imagefolder2 . '.' . 'gmt*') as $file) {\r\n // we ignore the file name '.' and '..' as they are the way that \r\n // Windows will use to go back to previous level\r\n unlink($file);\r\n }\r\n rmdir($imagefolder2);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2a13c0fbea4fab9f2e02b8139e9d1ef2", "score": "0.6331959", "text": "protected function _cachePurge() {\n\t\tforeach ($this->_getCacheFiles() as $file) {\n\t\t\tunlink($file);\n\t\t}\n\t}", "title": "" }, { "docid": "778a1bb94c2c366ff8e2ed05a27f80b9", "score": "0.6331316", "text": "private function removeFiles(File $file) {\n \n // remove original file\n is_file($file->getPath()) ? unlink($file->getPath()) : ''; \n \n \n // remove thumbs\n foreach ($file->getThumbPaths() as $path) {\n \n is_file($path) ? unlink($path) : '';\n } \n \n // remove previews\n foreach ($file->getPreviewPaths() as $path) {\n \n is_file($path) ? unlink($path) : '';\n }\n }", "title": "" }, { "docid": "df3a15c7e38f1238f0b37359fa6fa954", "score": "0.63235265", "text": "function clear()\n {\n foreach (glob($this->cache_path.\"*\") as $filename) {\n //echo \"$filename size \" . filesize($filename) . \"\\n\";\n unlink($filename);\n }\n\n touch($this->cache_path.\"index.html\");\n }", "title": "" }, { "docid": "71339fbd3fcab899e4e498cf353a8805", "score": "0.6322673", "text": "public function flush()\n {\n if (file_exists($this->directory)) {\n foreach (glob($this->directory.'/*') as $file) {\n unlink($file);\n }\n }\n }", "title": "" }, { "docid": "e0f1dea1c8bde730c48a28dbe05f8ce5", "score": "0.6319005", "text": "function delete_all()\n\t{\n\t\tdelete_files($this->db->cachedir, TRUE);\n\t}", "title": "" }, { "docid": "b8d9f59faec89117b0944711e0cd7505", "score": "0.6311204", "text": "public function purge()\n {\n $files = glob($this->options['directory'] . $this->options['globPattern']);\n $limit = time() - $this->options['archiveDays'] * 86400;\n\n foreach ($files as $file)\n {\n if (@filemtime($file) < $limit)\n {\n @unlink($file);\n }\n }\n }", "title": "" }, { "docid": "70e225fb5f33dd854f911a3f25b01f20", "score": "0.6304442", "text": "public function deleteAllCached()\n {\n $this->files->delete($this->files->files($this->getCachePath()));\n }", "title": "" }, { "docid": "8c9dd177bdda91a5a990afe509e6d07d", "score": "0.6301267", "text": "function clearCache(){\r\n deldir(TEMP_PATH);\r\n\r\n}", "title": "" }, { "docid": "2b0e7da11dda1522b0f6d6795cab99d1", "score": "0.62995696", "text": "public function tearDown()\n {\n foreach ($this->filesToDelete as $idx => $path) {\n if (file_exists($path) && is_writable($path)) {\n unlink($path);\n }\n unset($this->filesToDelete[$idx]);\n }\n }", "title": "" }, { "docid": "865ed06724ab44128fd2f9e1ebdb9255", "score": "0.62901336", "text": "static function sessionClean() {\n // try to delete tmp files\n if (isset($_SESSION['xml'])) foreach($_SESSION['xml'] as $file) {\n if (strpos(basename($file), 'xmlstats_')!==0); // not one of our temp file\n else if (!file_exists($file)); // file do not exists\n else unlink($file);\n }\n $_SESSION['xml']=array();\n }", "title": "" }, { "docid": "8299e614e6851bcb1b30b714ffe3c1c4", "score": "0.62775755", "text": "public function buildClean() {\n $this->_exec(\"$this->sudo_cmd chmod 775 $this->application_root/sites/default\");\n $this->_exec(\"$this->sudo_cmd rm -fR $this->application_root/core\");\n $this->_exec(\"$this->sudo_cmd rm -fR $this->application_root/modules/contrib\");\n $this->_exec(\"$this->sudo_cmd rm -fR $this->application_root/profiles/contrib\");\n $this->_exec(\"$this->sudo_cmd rm -fR $this->application_root/themes/contrib\");\n $this->_exec(\"$this->sudo_cmd rm -fR $this->application_root/sites/all\");\n $this->_exec(\"$this->sudo_cmd rm -fR bin\");\n $this->_exec(\"$this->sudo_cmd rm -fR vendor\");\n }", "title": "" }, { "docid": "106ecdc86763d0cef4da9109a545e8cf", "score": "0.6275832", "text": "public function clean() {\n // First pass: check files present on server and remove them if not registered\n $dir = PATH_TO_UPLOADS;\n $list = scandir($dir);\n\n foreach ($list as $file) {\n $data = $this->get(array('filename'=>$file));\n if (!in_array($file, array('.', '..')) && $data === false) {\n if (!unlink($dir . $file)) {\n echo \"Could not delete file {$file} from server\";\n }\n }\n }\n\n // Second pass: check files present in database and remove then if not present on the server\n foreach ($this->all() as $key=>$file) {\n if (!is_file(PATH_TO_UPLOADS.$file->filename)) {\n if (!$this->db->delete($this->tablename, array('fileid'=>$file->fileid))) {\n return False;\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "7daa633947f816e5c5917fde9a65a16a", "score": "0.6271554", "text": "private function clearFileImages () {\n // Otenir la liste de toutes les images\n $images = $this->_services->collectionProvider->getImages() ;\n\n // Obtenir la liste de tous les fichiers contenus dans le repertoire des images\n if ($folder = opendir(CollectionProvider::IMAGES_FOLDER)) {\n while (false !== ($file = readdir($folder))) {\n // Obtenir le chemin relatif vers ces fichiers\n $path_file = CollectionProvider::IMAGES_FOLDER . $file ;\n // Si ces fichiers ne sont pas enregistres dans la base de donnee\n if ($file != '.' && $file != '..' && !$this::isImageRegistered($images,$path_file)) {\n // Alors supprimer l'image\n unlink($path_file) ;\n }\n }\n }\n }", "title": "" }, { "docid": "24cf323040500a172e5abafacdc6e91f", "score": "0.62692505", "text": "public function cleanInstallation()\n {\n // Remove 'database.php' file: no need of prompt anything to the user\n if (file_exists(PMF_ROOT_DIR.'/config/database.php')) {\n @unlink(PMF_ROOT_DIR.'/config/database.php');\n }\n // Remove 'dap.php' file: no need of prompt anything to the user\n if (file_exists(PMF_ROOT_DIR.'/config/ldap.php')) {\n @unlink(PMF_ROOT_DIR.'/config/ldap.php');\n }\n }", "title": "" }, { "docid": "5df5e12080a48a2b9e615793f53c17e9", "score": "0.6264025", "text": "private static function deleteFiles()\n {\n try {\n \\humhub\\modules\\file\\libs\\FileHelper::removeDirectory(Yii::getAlias(Yii::$app->assetManager->basePath . DIRECTORY_SEPARATOR . 'logo'));\n } catch (ErrorException $e) {\n Yii::error($e, 'admin');\n }\n\n // Delete uploads folder if exists\n try {\n FileHelper::removeDirectory(Yii::getAlias('@webroot/uploads/logo_image/'));\n } catch (ErrorException $e) {\n Yii::error($e, 'admin');\n }\n }", "title": "" }, { "docid": "0058716f2ad1a8e3fa222bad4412140b", "score": "0.6261989", "text": "public function clean()\n {\n $this->verbose('attogram/file-cache-cleaner v' . self::VERSION);\n $this->setOptions();\n $this->examineCache();\n $this->examineCacheSubdirectories();\n $this->showReport();\n }", "title": "" }, { "docid": "9f851267ee16568a2eeb9fa0fc114b66", "score": "0.62605095", "text": "private function destroy_cache()\n {\n // delete cache once a day\n if ( file_exists($this->dir.date(\"dmY\")) )\n return; \n $dh = opendir($this->dir);\n while ( false !==($f = readdir($dh)) )\n {\n if($f != \".\" && $f != \"..\" && $f[0] != '.')\n @unlink($this->dir.$f);\n } \n file_put_contents($this->dir.date(\"dmY\"), \"This is just a checker\");\n }", "title": "" }, { "docid": "62b8faca93c1f99a4cf653fa8913a2a7", "score": "0.6259002", "text": "public function cleanFolder($path);", "title": "" }, { "docid": "85e473a94b43280456b58e005df7ca47", "score": "0.6244449", "text": "public function deleteFiles()\n {\n $path = 'app/' . $this->getDirName() . '/' . $this->getModelDir() . $this->model->id;\n\n Storage::delete(File::glob(storage_path($path)));\n }", "title": "" }, { "docid": "6f880d51dea7683a809ba656923bbf81", "score": "0.62365764", "text": "protected function cleanUp()\n {\n $this->fs->remove(dirname($this->downloadedFilePath));\n\n try {\n $licenseFile = array($this->projectDir.'/LICENSE');\n $upgradeFiles = glob($this->projectDir.'/UPGRADE*.md');\n $changelogFiles = glob($this->projectDir.'/CHANGELOG*.md');\n\n $filesToRemove = array_merge($licenseFile, $upgradeFiles, $changelogFiles);\n $this->fs->remove($filesToRemove);\n } catch (\\Exception $e) {\n // don't throw an exception in case any of the Symfony-related files cannot\n // be removed, because this is just an enhancement, not something mandatory\n // for the project\n }\n\n return $this;\n }", "title": "" }, { "docid": "511a9b34f111e254addde2f1b69f93f5", "score": "0.62132984", "text": "private function cleanUp()\n {\n //delete the original zip file\n Storage::delete($this->zipLocation);\n //delete the unzipped directory\n Storage::deleteDirectory($this->unzippedLocation);\n }", "title": "" }, { "docid": "b265862cd991b4cffdfcf229fe15195e", "score": "0.621009", "text": "public function cleanPid() {\n\n $path = PIDDIR;\n $handle = opendir($path);\n while (FALSE !== ($filename = readdir($handle))) {\n if (is_dir($filename)) {\n continue;\n }\n unlink($path . $filename);\n }\n closedir();\n }", "title": "" }, { "docid": "abac3b7634833ea65b2c2352e7c2713b", "score": "0.6207025", "text": "protected function removeObsoleteFiles() {\n\t\tglobal $messageStack;\n\n\t\t$success = true;\n\t\tforeach($this->getObsoleteFiles() as $file) {\n\t\t\t// Remove this file if it exists (should no longer be used)\n\t\t\tif(file_exists($file) && !unlink($file)) {\n\t\t\t\t$messageStack->add(\n\t\t\t\t\tsprintf(\n\t\t\t\t\t\tPLUGIN_INSTALL_ERROR_FILE_FOUND,\n\t\t\t\t\t\t$this->getUniqueName(),\n\t\t\t\t\t\t$file\n\t\t\t\t\t),\n\t\t\t\t\t'error'\n\t\t\t\t);\n\t\t\t\t$success = false;\n\t\t\t}\n\t\t}\n\t\treturn $success;\n\t}", "title": "" }, { "docid": "6d73083d3a034f8f8f61891fa48c7ccf", "score": "0.6194963", "text": "public function deleteFiles() {\n if(file_exists($this->getDeployPath())) {\n unlink($this->getDeployPath('/config.json'));\n }\n }", "title": "" }, { "docid": "e1fa2ea8f67ad24fea41fcab10a0f27a", "score": "0.6194384", "text": "private function cleanupTest() {\n $this->rrmdir($this->dir);\n }", "title": "" }, { "docid": "4c814b795916969abdd80acadc735979", "score": "0.61910164", "text": "function cleanFiles ( $HOME = false )\r\n{\r\n global $types;\r\n $slash = WIN ? \"\\\\\" : \"/\";\r\n $folder = dir( $HOME ? $HOME : ROOT );\r\n echo COLOR_CYAN . \" \" . ( $HOME ? $HOME : ROOT ) . \"\\n\";\r\n $foundfolders = array();\r\n $error = 0;\r\n while ( $file = $folder->read() ) {\r\n $thisfile = ( $HOME ? $HOME : ROOT ) . $slash . $file;\r\n if ( $file != \".\" && $file != \"..\" ) {\r\n if ( is_dir( $thisfile ) ) {\r\n array_push( $foundfolders, $thisfile );\r\n } else {\r\n if ( in_array( pathinfo( $thisfile, PATHINFO_EXTENSION ), $types ) ) {\r\n $content = file_get_contents( $thisfile );\r\n if ( hasBom( $content ) ) {\r\n $content = substr( $content, 3 );\r\n if ( !file_put_contents( $thisfile, $content ) ) {\r\n echo COLOR_RED_BLINK . \"< ERROR ! > {$thisfile}\";\r\n $error++;\r\n } else {\r\n echo COLOR_GREEN . \"< CLEANED > {$thisfile}\";\r\n }\r\n } else {\r\n echo COLOR_BLUE . \"< OK > {$thisfile}\";\r\n }\r\n echo \"\\n\";\r\n }\r\n }\r\n }\r\n }\r\n $folder->close();\r\n if ( count( $foundfolders ) > 0 ) {\r\n foreach ( $foundfolders as $folder ) {\r\n cleanFiles( $folder );\r\n }\r\n }\r\n if ( $error ) {\r\n echo COLOR_RED . \"There were {$error} files I could not read.\\n\";\r\n echo \"Check file permissions, make me readable for all files (0777 is good)\\n\";\r\n }\r\n}", "title": "" }, { "docid": "1b072989ef2540858f2540175c9b4845", "score": "0.6182712", "text": "function clear_old_uploads()\n{\n\t//get the unix timestamp corresonding to the two days ago condition\n\t$two_days_ago=strtotime('-2 days');\n\t//get the incoming uploads that are older than two days\n\t$rows=$GLOBALS['SITE_DB']->query('SELECT * FROM '.$GLOBALS['SITE_DB']->get_table_prefix().'incoming_uploads WHERE i_date_and_time<'.strval($two_days_ago));\n\n\t//if there are older uploads records found start processing them\n\tif(count($rows)>0)\n\t{\n\t\t//browse through files\n\t\tforeach($rows as $upload)\n\t\t{\n\t\t\tif(!empty($upload['i_save_url']))\n\t\t\t{\n\t\t\t\tif(file_exists($upload['i_save_url']))\n\t\t\t\t{\n\t\t\t\t\t//delete file if it exists\n\t\t\t\t\t@unlink($upload['i_save_url']);\n\t\t\t\t}\n\n\t\t\t\t//Note: it is possible some db records to be left without corresponding files. So we need to clean them too.\n\t\t\t\t$GLOBALS['SITE_DB']->query_delete('incoming_uploads',array('id'=>$upload['id']),'',1);\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "7b04edbbabf195109bcc5f40e3bf2141", "score": "0.6182534", "text": "public function __destruct() {\n\t\tforeach($this->tmpWsdlFiles as $file) {\n\t\t\tunlink($file);\n\t\t}\n\t}", "title": "" }, { "docid": "72d6281900a22891f9d4833a2ffe2b03", "score": "0.6170266", "text": "private static function cleanDirectory(){\r\n if(rand(0,100)==1){//not always\r\n $files=scandir(Nestor____stuff::$logsStorage);\r\n while(count($files)>self::$configMaximumFiles){\r\n $f=Nestor____stuff::$logsStorage.\"/\".array_shift($files);\r\n if(is_file($f)){\r\n unlink($f);\r\n }\r\n\r\n }\r\n }\r\n }", "title": "" }, { "docid": "70d7956b6d6c60d963e1571f00d9ed0a", "score": "0.6170048", "text": "protected function clearConfigFiles()\n {\n if (empty($this->activatedConfigFiles)) {\n return;\n }\n\n foreach ($this->activatedConfigFiles as $configFile) {\n if (file_exists($configFile ?? '')) {\n unlink($configFile ?? '');\n }\n }\n $this->activatedConfigFiles = [];\n }", "title": "" } ]
bf2b5f0c76386108cd93f0e0bc638cd5
Persists this object to the database. If the object is new, it inserts it; otherwise an update is performed. All modified related objects will also be persisted in the doSave() method. This method wraps all precipitate database operations in a single transaction.
[ { "docid": "f5cf8038bc54437eb728ce455d5b8b21", "score": "0.5652773", "text": "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(BookingTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n BookingTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "title": "" } ]
[ { "docid": "044f53336883ee5546515e5c63a02bd5", "score": "0.75490177", "text": "public function save()\n {\n if ($this->utx && !$this->utx->inTransaction()) {\n // do the operation in a short transaction\n $this->utx->begin();\n try {\n $this->objectManager->save();\n $this->utx->commit();\n } catch(\\Exception $e) {\n // if anything goes wrong, rollback this mess\n $this->utx->rollback();\n // but do not eat the exception\n throw $e;\n }\n } else {\n $this->objectManager->save();\n }\n }", "title": "" }, { "docid": "21c9c03d4e2ad1132caea9a64ca13cb2", "score": "0.7229163", "text": "public function save() {\n Zend_Registry::getInstance()->entitymanager->persist($this);\n Zend_Registry::getInstance()->entitymanager->flush();\n }", "title": "" }, { "docid": "0a2dcecef8071427bb4f3c22969d6817", "score": "0.6832957", "text": "public function store()\n {\n if (!$this->id) {\n $this->id = $this->insertObject();\n } else {\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "74462398b139eaf698f1a0ba6a80b131", "score": "0.6810367", "text": "public function saveTransaction()\n {\n //make sure we have an object first before saving it\n if (is_object($this->_transaction)) {\n $this->_transaction->save();\n }\n }", "title": "" }, { "docid": "55b375ea7c339e8f0e9c38919b53b1db", "score": "0.6809178", "text": "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "12cff0e6a794f317ed9784077af809e8", "score": "0.67950755", "text": "public function save()\n {\n if ($this->isNewEntity()) {\n $insertValues = $this->getInsertValues();\n $row = $this->getTable()->insert($insertValues);\n $this->loadFromRecord($row);\n } else {\n $changedValues = $this->getChangedValues();\n $this->row->update($changedValues);\n }\n }", "title": "" }, { "docid": "93cf1e70034dc6c9418704cdb8018aff", "score": "0.6744364", "text": "public function save()\n {\n $fields = Helpers::getObjectProperties($this);\n\n // update or insert ?\n if ($this->id != '')\n return $this->update($this->id, $fields);\n\n return $this->insert($fields);\n }", "title": "" }, { "docid": "8e31608f1a035a0cd22223b4b96c9ec1", "score": "0.6691668", "text": "public function save()\n\t{\n\t\t$this->saveObject();\n\t}", "title": "" }, { "docid": "ded0c371f780b1177f68682b8ddfec10", "score": "0.6672705", "text": "public static function commit()\n\t{\n\t\t// Set the manadatory properties of HydraEntity that get persisted\n\t\tif (is_subclass_of(self::$activeClassRaw, 'HydraVersionedEntity'))\n\t\t{\n\t\t\tself::setManyToOne('previousVersion', self::$activeClassRaw, self::$tempMap[self::$activeClass]['_']['alias'] . '_parent', true);\n\t\t}\n\t\t\n\t\tself::setBoolType('active', 'bool', 1);\n\t\tself::setDateType('created');\n\t\tself::setManyToOne('createdBy', 'UserAccount');\n\t\tself::setDateType('updated', 'timestamp', false, 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP');\n\t\tself::setManyToOne('updatedBy', 'UserAccount');\n\t\t\n\t\t// Copy the temp data into the live properties\n\t\tself::$map[self::$activeClass] = self::$tempMap[self::$activeClass];\n\t\t\n\t\t// Reset the temp variables\n\t\tself::$tempMap = array();\n\t\tself::$activeClass = null;\n\t}", "title": "" }, { "docid": "842c5e99e6fa342af4970fd685760b23", "score": "0.6492514", "text": "function save()\n {\n $this->_manager->save($this);\n }", "title": "" }, { "docid": "70c43264d762c4b1feec8e856e03ac97", "score": "0.64737564", "text": "public function save($object)\n {\n $this->persist($object);\n $this->flush();\n }", "title": "" }, { "docid": "d739bf0de1aa4ae5bd581ab837a0ae46", "score": "0.64429027", "text": "public function save()\n {\n $tId = $this->db->startTransaction();\n foreach ($this->table as $tbl) {\n foreach ($tbl as $rec) {\n $rec->save();\n }\n }\n parent::save();\n $this->db->commitTransaction($tId);\n }", "title": "" }, { "docid": "3da3d0179f7ed5eb5ca0d90307ec2ab0", "score": "0.6378471", "text": "public function save()\n\t{\n\t\tif(!empty($this->id)) {\n\t\t\t$this->update();\n\t\t}\n\t\telse {\n\t\t\t$this->insert();\n\t\t}\n\t}", "title": "" }, { "docid": "c99de48efddb87c6773fd834826f6360", "score": "0.63601017", "text": "public function save()\n {\n if($this->hasChanges())\n {\n $this->db->saveTable($this->tableName, $this);\n }\n if($this->hasNewRelatedTables())\n {\n foreach($this->newRelatedTables as $relTable)\n {\n $this->db->saveRelatedTable($relTable);\n }\n }\n }", "title": "" }, { "docid": "293c0778ab5e86971786e454d94ecb71", "score": "0.6274641", "text": "protected function saveObject($object)\n {\n $this->getObjectManager()->persist($object);\n $this->getObjectManager()->flush();\n }", "title": "" }, { "docid": "da49e081a4eb02a18bb832f373d94641", "score": "0.6264234", "text": "public function save()\n {\n if ($this->exists()) {\n $this->update(); // update the table\n } else {\n $this->create(); // create the table\n }\n }", "title": "" }, { "docid": "060b7b258757bb4eef4124a66e8a673e", "score": "0.6252471", "text": "public function save($object) {\n\t\t$em = $this->getEntityManager();\n\t\t$em->persist($object);\n\t\t$em->flush();\n\t}", "title": "" }, { "docid": "9441b7fc79696c92d51954e6822b4088", "score": "0.6237632", "text": "public function save(): void\n {\n // Si l'objet n'existe pas encore en base de données\n if (is_null($this->getId())) {\n // Crée un nouvel enregistrement en base de données correspondant à cet objet\n $this->insert();\n // Sinon\n } else {\n // Met à jour les propriétés de l'enregistrement existant correspondant à cet objet\n $this->update();\n }\n }", "title": "" }, { "docid": "bc69b951ef0bbb51f18199536d05d432", "score": "0.6209387", "text": "public function save()\n { if ($this->id != NULL) {\n $this->update();\n } else {\n $this->insert();\n }\n\n }", "title": "" }, { "docid": "eeeab0d731d28dd660f19b0944994dac", "score": "0.62059355", "text": "public function persist();", "title": "" }, { "docid": "eeeab0d731d28dd660f19b0944994dac", "score": "0.62059355", "text": "public function persist();", "title": "" }, { "docid": "eeeab0d731d28dd660f19b0944994dac", "score": "0.62059355", "text": "public function persist();", "title": "" }, { "docid": "0aa55a5ddd46f59006d7026d3f1a0849", "score": "0.6199785", "text": "function save()\n\t{\n\t\tif($this->_modified)\n\t\t\t$this->_update();\n\t}", "title": "" }, { "docid": "5db763d610be8279f71146838e1a4e20", "score": "0.6168862", "text": "public function persist(object $entity);", "title": "" }, { "docid": "15bca285632715d0380c80d03554363a", "score": "0.6161044", "text": "public function save()\n {\n // first saves the 'left join' tables\n foreach ($this->_leftJoins as $leftJoin) {\n $leftJoin->save();\n }\n \n $columns = $this->_getChangedColumns();\n if ($this->_primaryKey->hasChanged()) {\n // update\n if (count($columns) > 0) {\n $this->_db->exec($this->_getUpdateStatement($columns));\n }\n } else {\n // insert\n $this->_db->exec($this->_getInsertStatement($columns));\n $row = $this->_db->query(\"select last_insert_id() as id\");\n $this->_primaryKey->setValue($row[\"id\"]);\n }\n \n // resets columns\n foreach ($columns as $column) {\n $column->reset();\n }\n $this->_isUpdated = false;\n }", "title": "" }, { "docid": "f6b5f6c79cd7c57b6e57676cbd7b3a49", "score": "0.61190224", "text": "public function persist($entity)\n {\n $this->getObjectManager()->persist($entity);\n $this->flush();\n }", "title": "" }, { "docid": "e0dbd99df79d1a8f5a7f03264c63a5e3", "score": "0.61111283", "text": "public function save() {\n if(!$this->id) {\n $this->create();\n } else {\n $this->updateRow();\n }\n }", "title": "" }, { "docid": "7dbf5bf7615859ed58ffe89515d7accb", "score": "0.61032367", "text": "public function save()\n {\n if (isset($this->attributes)){\n \n if (isset($this->attributes['id'])){\n // Perform the proper action - if the `id` is set, this is an update, if not it is a insert\n $this->update();\n } else {\n $this->insert();\n }\n }\n }", "title": "" }, { "docid": "ae948acd32851e5fcfb6d7b31fe99207", "score": "0.6100338", "text": "public function save(PersistentObject $object): void;", "title": "" }, { "docid": "3f80b1fd780579d5dd3df8487acede66", "score": "0.60943645", "text": "public function persist($obj)\n {\n return $this->getEntityManager()\n ->persist($obj);\n }", "title": "" }, { "docid": "c8e39129eacec289fcee8ae63b5e31b1", "score": "0.60918856", "text": "public function save(){\n\t\t\tif(isset($this->id)){\n\t\t\t\t$this->update();\n\t\t\t}else{\n\t\t\t\t$this->create();\n\t\t\t}\n\t}", "title": "" }, { "docid": "c2ef2a85f0821ae8aa678f1f5f549808", "score": "0.60685647", "text": "public function flush()\n {\n try {\n $this->beginInternalTransaction();\n $this->unitOfWork->saveAll();\n $this->commit();\n } catch (Exception $e) {\n $this->rollback();\n throw $e;\n }\n }", "title": "" }, { "docid": "4e0b9915bd8f88741a9e99b2a0294a6a", "score": "0.60667694", "text": "public function save()\n\t{\n\t\t// Set timestamps\n\n\t\t$dateTime = new DateTime;\n\n\t\tif(!$this->exists)\n\t\t{\n\t\t\t$this->columns[$this->getCreatedAtColumn()] = $dateTime;\n\t\t}\n\n\t\tif(!$this->exists || $this->isModified())\n\t\t{\n\t\t\t$this->columns[$this->getUpdatedAtColumn()] = $dateTime;\n\t\t}\n\n\t\t// Save record\n\n\t\t$saved = parent::save();\n\n\t\t// Touch related records\n\n\t\tif($saved === true && !empty($this->touch))\n\t\t{\n\t\t\t$this->touchRelated($dateTime);\n\t\t}\n\n\t\t// Return save status\n\n\t\treturn $saved;\n\t}", "title": "" }, { "docid": "4d00c143b79f18f81ecb05aca2ef49b3", "score": "0.6062997", "text": "public function persistAll()\n {\n // hand in only aggregate roots, leaving handling of subobjects to\n // the underlying storage layer\n // reconstituted entities must be fetched from the session and checked\n // for changes by the underlying backend as well!\n $this->backend->setAggregateRootObjects($this->addedObjects);\n $this->backend->setChangedEntities($this->changedObjects);\n $this->backend->setDeletedEntities($this->removedObjects);\n $this->backend->commit();\n\n $this->addedObjects = new ObjectStorage();\n $this->removedObjects = new ObjectStorage();\n $this->changedObjects = new ObjectStorage();\n }", "title": "" }, { "docid": "187c03cb7ca08fbdd2b96fb443a5cd21", "score": "0.6055754", "text": "public function save()\n\t {\t if (!empty($this->id))\n\t {\n\t $this->update();\n\t }\n\t else\n\t { \n\t $this->insert();\n\t } \n\n\t }", "title": "" }, { "docid": "f0c72aabd4f4b9c196e86243b7409258", "score": "0.6048687", "text": "public function save()\n {\n if ($this->Id == 0) {\n // Empty classes are set with ID = 0\n $this->create();\n } elseif ($this->Id == -1) {\n // Unretrievable rows are set up as ID = -1\n // Do nothing\n } else {\n // Otherwise, it's an existing ID\n $this->update();\n }\n }", "title": "" }, { "docid": "f0c72aabd4f4b9c196e86243b7409258", "score": "0.6048687", "text": "public function save()\n {\n if ($this->Id == 0) {\n // Empty classes are set with ID = 0\n $this->create();\n } elseif ($this->Id == -1) {\n // Unretrievable rows are set up as ID = -1\n // Do nothing\n } else {\n // Otherwise, it's an existing ID\n $this->update();\n }\n }", "title": "" }, { "docid": "6e94e69420e8cfe6170fecc68653c39b", "score": "0.6042763", "text": "public function persist($obj)\r\n {\r\n }", "title": "" }, { "docid": "ec5a2d87daee7440f4bc401f6a831583", "score": "0.60226405", "text": "public function save() {\n\n if ($this->userID == 0) {\n return $this->dataStoreAdapter->createObject($this);\n } else {\n return $this->dataStoreAdapter->updateObject($this);\n }\n }", "title": "" }, { "docid": "dbebca8322007663b5b256f39a20837c", "score": "0.60079104", "text": "public function save() {\n\t // A new record wont have an id yet.\n\t return isset($this->id) ? $this->update() : $this->create();\n\t}", "title": "" }, { "docid": "1ef69f21211d5a5bc8c09be070e0620d", "score": "0.5987055", "text": "public function persist(object $obj): void;", "title": "" }, { "docid": "972459f7863c866e78349c35fb067b11", "score": "0.59715", "text": "public function store()\n {\n // store the object itself\n parent::store();\n \n // delete the related Contato objects\n $criteria = new TCriteria;\n $criteria->add(new TFilter('morador_id', '=', $this->id));\n $repository = new TRepository('Contato');\n $repository->delete($criteria);\n // store the related Contato objects\n if ($this->contatos)\n {\n foreach ($this->contatos as $contato)\n {\n unset($contato->id);\n $contato->morador_id = $this->id;\n $contato->store();\n }\n }\n }", "title": "" }, { "docid": "29f2f8d91ea6d14160512ac6b10c214e", "score": "0.5959925", "text": "public function persist(object $entity): void\n {\n self::$managerInstance->persist($entity);\n }", "title": "" }, { "docid": "d39c30fcea1eaa67dc335d4196a730e2", "score": "0.5958804", "text": "public function persist() {}", "title": "" }, { "docid": "e86a9bec2d42bb779f71f549436e9748", "score": "0.5952098", "text": "public function save()\n {\n if (\n $this->getSessionId() &&\n $this->getMovieId() &&\n is_null($this->getId()) &&\n $this->hasVoted() == FALSE\n ) {\n $this->insert();\n }\n }", "title": "" }, { "docid": "fc6e807a8e60cddb76806f52f966e31c", "score": "0.5947586", "text": "public function save()\n {\n $this->ageFlashData();\n\n $this->handler->write($this->getId(), $this->prepareForStorage(\n serialize($this->attributes)\n ));\n\n $this->started = false;\n }", "title": "" }, { "docid": "efc41144d5774962bc832594a3373db5", "score": "0.59159195", "text": "public function save() {\n try {\n if (!$this->inDb) {\n $this->id = App::$cur->db->insert(static::$tableName, $this->__params);\n $this->inDb = true;\n }\n } catch (PDOException $e) {\n if ($e->getCode() == '42S02') {\n static::createTable();\n $this->save();\n } else {\n throw $e;\n }\n }\n }", "title": "" }, { "docid": "d963828a498d3809502ea5d946dc7864", "score": "0.5911559", "text": "public function save(){\n \t\tif( isset($this->id) ){\n \t\t\t$this->update();\n \t\t}//if\n \t\telse{\n \t\t\t$this->insert();\n \t\t}//else\n \t}", "title": "" }, { "docid": "98d6af8026e0cf66b7d7260473565745", "score": "0.59095687", "text": "function save() {\n if (count($this->_updated) == 0)\n return;\n if ($this->ident() === false) {\n $this->insert();\n } else {\n $this->update();\n }\n return $this;\n }", "title": "" }, { "docid": "8dff0b89096e219f7eb009b27cbb6224", "score": "0.58947253", "text": "public function save()\n\t{\n\t\tparent::save();\n\t\tif (true || $this->getUpdateRoles())\n\t\t\t$this->saveRelation('roles');\n\n return;\n\t\t//if ($this->getUpdateOrderStates())\n\t\t//\t$this->saveRelation('orderstates');\n\n if ($this->getUpdateRelatedDefs())\n\t\t\t$this->saveRelationSymetric('relateddefs');\n\t}", "title": "" }, { "docid": "8fa580c346fda121d739bee3e8bb48ba", "score": "0.5892067", "text": "public function save() {\r\n if ($this->id === 0) return $this->insert();\r\n else return $this->update();\r\n }", "title": "" }, { "docid": "ce7e088866a9c5ce19a86e80bddde2c4", "score": "0.58725965", "text": "public function save()\n {\n // receive fields for insert into\n $fields = static::attributes();\n $table = static::getTableName();\n\n $values = [];\n foreach ($fields as $attribute) {\n $values[] = $this->$attribute;\n }\n\n // insert new data to database\n $this->storage->insert($table, $fields, $values);\n }", "title": "" }, { "docid": "e4cffbc7e4bcdf9b66201b7c8c084987", "score": "0.58707047", "text": "public function save(){\t\n $ret = false;\n\t\tif (method_exists($this, \"validate\") && !$this->validate()){\n return false;\n\t\t}\n\n\t\t$database=new Database();\n\t\tif ($this->id == NULL || $this->id == 0){\n\t\t\t// its a new object \n\t\t\t$ret = $database->insertObject( $this->_table_name, $this, \"id\");\n\t\t}\n\t\telse{\n\t\t\t$ret = $database->updateObject( $this->_table_name, $this, \"id\");\n\t\t}\n\t\t\n\t\tif(!$ret){\n\t\t\thandle_error('save failed: ' . $database->getErrorNum() . \":\" . $database->getErrorMsg(), E_USER_ERROR); \t\t\t\n\t\t\treturn false;\t\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "35497efe6d5abffb5b55f76291efcc67", "score": "0.5863355", "text": "public function save()\n {\n // if we have no id attempt to generate one.\n if (!strlen($this->id)) {\n $this->id = $this->makeId();\n }\n\n // attempt to fetch the currently stored version of this record if one exists.\n try {\n $stored = static::fetch($this->getId(), $this->getConnection());\n } catch (NotFoundException $e) {\n $stored = null;\n }\n\n // allow extending classes to implement upgrade logic\n $this->upgrade($stored);\n\n // get raw values to write to storage\n // if we started with a copy from storage, only overwrite fields that have been changed\n // this minimizes race conditions where other processes are updating the same record\n $values = $this->getRawValues();\n $original = $this->original;\n $stored = $stored ? $stored->getRawValues() : null;\n if ($original && $stored !== null) {\n $unset = array_diff_key($original, $values);\n foreach ($values as $key => $value) {\n if (array_key_exists($key, $original) && $original[$key] === $value) {\n unset($values[$key]);\n }\n }\n $values += $stored;\n $values = array_diff_key($values, $unset);\n }\n\n // exclude any 'unstored' fields\n $unstored = array();\n foreach ($this->fields as $field => $properties) {\n if (isset($properties['unstored']) && $properties['unstored'] && array_key_exists($field, $values)) {\n $unstored[$field] = $values[$field];\n unset($values[$field]);\n }\n }\n\n // take care of indexing\n $this->updateIndexedFields($values, $stored);\n\n // save the actual record data\n $key = new Key($this->getConnection());\n $key->setId($this->id);\n $key->set(\n // follow zend's json::encode approach to options for consistency\n json_encode($values, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP)\n );\n\n // update values to reflect the latest merged plus unstored values\n // update original so future saves correctly identify changed fields\n $this->values = $values + $unstored;\n $this->original = $values;\n\n return $this;\n }", "title": "" }, { "docid": "56d3382e95fa9ec0612e2179c246afd8", "score": "0.586063", "text": "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(MapTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n MapTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "title": "" }, { "docid": "eed3fc54b6a029134049bcadafdc939f", "score": "0.5859351", "text": "public function save () {\n $this->logger->debug('Saving object.', ['method' => __METHOD__, 'object' => static::TABLE_NAME]);\n\n // Make sure that all required object properties have a value.\n $required_property_names = array_keys($this->getRequiredProperties());\n\n foreach ($required_property_names as $required_property_name) {\n if (!isset($this->data[$required_property_name])) {\n throw new Exception\\LogicException('Cannot initialise object without all required properties.');\n }\n }\n\n $error_message = $this->validateSave();\n\n if ($error_message) {\n throw new Exception\\ValidationException($error_message);\n }\n\n // Object state backup to recover in case of an Exception in the \"after\" event.\n $data_before_save = $this->data;\n \n $is_insert = false;\n\n if (!isset($this->data[static::PRIMARY_KEY_NAME])) {\n $this->logger->debug('Preparing to insert new object.', ['method' => __METHOD__, 'object' => static::TABLE_NAME]);\n\n $data = $this->data;\n $data[static::PRIMARY_KEY_NAME] = null;\n\n $is_insert = true;\n } else {\n if ($this->updated_properties) {\n // Update only columns that were changed.\n $data = $this->updated_properties;\n } else {\n // @see https://github.com/gajus/moa/issues/1\n $this->afterUpdate();\n\n return $this;\n }\n }\n\n // Prepare placeholders for the PDOStatement.\n // \"datetime\" and \"timestamp\" object properties are in their integer (UNIX timestamp) representation.\n $placeholders = [];\n\n foreach (array_keys($data) as $property_name) {\n if (in_array(static::$columns[$property_name]['data_type'], ['datetime', 'timestamp'])) {\n $placeholders[] = '`' . $property_name . '` = FROM_UNIXTIME(:' . $property_name . ')';\n } else {\n $placeholders[] = '`' . $property_name . '` = :' . $property_name;\n }\n }\n\n $placeholders = implode(', ', $placeholders);\n\n try {\n $this->db->beginTransaction();\n\n if ($is_insert) {\n $sth = $this->db\n ->prepare(\"INSERT INTO `\" . static::TABLE_NAME . \"` SET \" . $placeholders);\n } else {\n $sth = $this->db\n ->prepare(\"UPDATE `\" . static::TABLE_NAME . \"` SET \" . $placeholders . \" WHERE `\" . static::PRIMARY_KEY_NAME . \"` = :\" . static::PRIMARY_KEY_NAME);\n\n $data[static::PRIMARY_KEY_NAME] = $this->data[static::PRIMARY_KEY_NAME];\n }\n \n foreach ($data as $k => $v) {\n $sth->bindValue($k, $v, isset(self::$parameter_type_map[static::$columns[$k]['data_type']]) ? self::$parameter_type_map[static::$columns[$k]['data_type']] : \\PDO::PARAM_STR);\n }\n \n $sth->execute();\n\n if ($is_insert) {\n $this->data[static::PRIMARY_KEY_NAME] = $this->db->lastInsertId();\n }\n } catch (\\PDOException $e) {\n if ($this->db->inTransaction()) {\n $this->db->rollBack();\n }\n\n if ($e->getCode() === '23000') {\n throw new Exception\\ConstraintViolationException($e->getMessage(), 0, $e);\n }\n\n throw $e;\n }\n\n $this->updated_properties = [];\n\n // Get fresh object state from the database.\n // This carries across properties that have default value in MySQL schema definition.\n $this->synchronise();\n \n try {\n if ($is_insert) {\n $this->afterInsert();\n } else { \n $this->afterUpdate();\n }\n } catch (\\Exception $e) {\n // An exception thrown in \"afterInsert\" or \"afterUpdate\" method will revert the change.\n // \"afterInsert\" and \"afterUpdate\" method must not close the save transaction.\n\n if (!$this->db->inTransaction()) {\n throw new Exception\\LogicException('Transaction was commited before the time.');\n }\n\n $this->db->rollBack();\n\n $this->data = $data_before_save;\n $this->synchronisation_count--;\n\n throw $e;\n }\n\n if (!$this->db->inTransaction()) {\n throw new Exception\\LogicException('Transaction was commited before the time.');\n }\n\n $this->db->commit();\n \n return $this;\n }", "title": "" }, { "docid": "12288163ad74d7dd07f4629ede84e861", "score": "0.5856522", "text": "public function commit()\n {\n if ($this->transactions == 1) {\n $this->getPdo()->commit();\n }\n\n $this->transactions = max(0, $this->transactions - 1);\n\n if ($this->transactions == 0) {\n optional($this->transactionsManager)->commit($this->getName());\n }\n\n $this->fireConnectionEvent('committed');\n }", "title": "" }, { "docid": "1a151d9774291e94e6d034d163a83c54", "score": "0.584185", "text": "protected function store()\n {\n // Update or insert object in database\n if (!$this->database->storeSysObject($this))\n {\n $this->lastErrorMsg = $this->getClass($this).\" ::store failed : \" . $this->database->getErrorMsg();\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "0636ff7662f2ce54ac93393c2f2a93dc", "score": "0.58382565", "text": "public function flush(): void\n {\n // by calling persist before flushing.\n if (!is_null($this->entityManager)) {\n $this->entityManager->flush();\n }\n }", "title": "" }, { "docid": "dc1c895f2c0c3dff141da2f01c917f4c", "score": "0.5827974", "text": "public function save() {\n\n if($this->persists) {\n return $this->update();\n }\n\n // Get arranger (for compatibility with 5.6 set into separated operation)\n $arranger = DBOModelTransformerManager::getArranger();\n\n // Do Save\n if($id = $arranger::save($this->_getStructure(), $this->currentData)) {\n\n $this->persists = true;\n\n // If index was defined — then newly created entity\n // should populate it with fresh DB id\n if($index = $this->__currentSchema->primary) {\n\n $this->set($index->parameterName, $id);\n\n }\n\n }\n\n return $this;\n\n }", "title": "" }, { "docid": "c69781c0f69f620d3031fa274b313c2d", "score": "0.582732", "text": "public function save() {\r\n\t\tif (empty($this->id)) {\r\n\t\t\treturn $this->saveNew();\r\n\t\t}else {\r\n\t\t\treturn $this->update();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f82467d96bda2197429e284d79e7fec1", "score": "0.5825642", "text": "public function save() {\n if (!$this->id) {\n return $this->create();\n }\n\n $this->update();\n\n return null;\n }", "title": "" }, { "docid": "729dd0f263d520c5718b4aef59039f34", "score": "0.58191997", "text": "public function commit()\n {\n foreach($this->trackedAggregates as $aggregate) {\n $this->persistAggregate($aggregate);\n }\n }", "title": "" }, { "docid": "342d854d1c8e3a1ac75d8a531cd17127", "score": "0.5814413", "text": "public function persist()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "cbb43f47458b047d3be643e22ed240aa", "score": "0.5793483", "text": "public function save() {\r\n\t\t\t$intRowsAffected = 0;\r\n\r\n\t\t\t$arrData = array(\r\n\t\t\t\t'name'\t\t => $this->getName(),\r\n 'description' => $this->getDescription(),\r\n\t\t\t\t'created_at' => $this->getCreatedAt(),\r\n\t\t\t);\r\n\r\n\t\t\tif($this->_isNew()) {\r\n\t\t\t\t// New instance. Insert data into TABLE_NAME table\r\n\t\t\t\t$intRowsAffected = $this->_objDb->insert(\r\n\t\t\t\t\tself::TABLE_NAME,\r\n\t\t\t\t\t$arrData\r\n\t\t\t\t);\r\n\r\n\t\t\t\t// Set instance id\r\n\t\t\t\t$this->setId($this->_objDb->lastInsertId());\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// Existing instance. Update data in TABLE_NAME table\r\n\t\t\t\t$intRowsAffected = $this->_objDb->update(\r\n\t\t\t\t\tself::TABLE_NAME,\r\n\t\t\t\t\t$arrData,\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'id = ?' => $this->getId(),\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// Check number of rows affected following query execution\r\n\t\t\t$blSaved = ($intRowsAffected > 0) ? true : false;\r\n\r\n\t\t\treturn $blSaved;\r\n\t\t}", "title": "" }, { "docid": "c6ac9b2845423782c54a97fb028d3e2b", "score": "0.5786946", "text": "public function save() {\n\t\t// data is saved. We want this to happen before be save the meta-data so we can use $this->id;\n\t\tparent::save();\n\t\t$this->saveMetaData();\n\t}", "title": "" }, { "docid": "2cbf7b9581bffbee3d51f142caa3480e", "score": "0.57461226", "text": "public function save()\n {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'id' => $this->id,\n 'uid' => $this->uid,\n 'volume' => $this->volume,\n 'symbol' => $this->symbol\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "title": "" }, { "docid": "e688040f602aff321ef4eb501e026c20", "score": "0.57440907", "text": "public function saveAll() {\n\t\tforeach ($this->_cachedEntities AS $entity) {\n\t\t\t$entity->save(); // seems awkward, but necessary to ensure foreign key values are always set, for example\n\t\t\t\n\t\t\t// after overriding save() in an entity, then coming here to ensure this method was called by saveAll()\n\t\t\t// this no longer seems awkward.\n\t\t}\n\t\tforeach ($this->_newEntities AS $entity) {\n\t\t\t$entity->save();\n\t\t\t$this->addToCache($entity);\n\t\t}\n\t\t$this->_newEntities = array();\n\t}", "title": "" }, { "docid": "281f79f67fd0b7e467f7c45cb736e970", "score": "0.5728402", "text": "public function save() {\n\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}", "title": "" }, { "docid": "0b3f556e40b21a192f3f225aa0b92752", "score": "0.5720534", "text": "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(TblproductosTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n TblproductosTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "title": "" }, { "docid": "3108584355495f5896b614298b9cd5c7", "score": "0.5708993", "text": "public function save($entity) {\n\t\t$this->_em->persist($entity);\n\t\t$this->_em->flush();\n\t}", "title": "" }, { "docid": "4b0fd0898cce260d238e0e375cac280c", "score": "0.5707008", "text": "public function save() {\n\t\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t\t}", "title": "" }, { "docid": "e317499d08cffa35390f2e6deb44a478", "score": "0.5695468", "text": "public function persist() {\n\n\t\tglobal $wpdb;\n\n\t\t$data = [\n\t\t\t'email_log_id' => intval( $this->get_email_log_id() ),\n\t\t\t'event_type' => sanitize_key( static::get_type() ),\n\t\t\t'date_created' => $this->get_date_created()->format( WP::datetime_mysql_format() ),\n\t\t\t'object_id' => $this->get_object_id() ? intval( $this->get_object_id() ) : null,\n\t\t];\n\n\t\t$result = $wpdb->insert( Tracking::get_events_table_name(), $data, [ '%d', '%s', '%s', '%d' ] );\n\n\t\tif ( $result !== false ) {\n\t\t\t$this->set_id( $wpdb->insert_id );\n\t\t}\n\n\t\treturn $this->get_id() > 0 ? $this->get_id() : false;\n\t}", "title": "" }, { "docid": "cd8ddd8c3326251f90c72892c495aa0d", "score": "0.5689795", "text": "public function save(PropelPDO $con = null)\n\t{\n\t\tif ($this->isDeleted()) {\n\t\t\tthrow new PropelException(\"You cannot save an object that has been deleted.\");\n\t\t}\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(PessoaPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);\n\t\t}\n\n\t\t$con->beginTransaction();\n\t\t$isInsert = $this->isNew();\n\t\ttry {\n\t\t\t$ret = $this->preSave($con);\n\t\t\tif ($isInsert) {\n\t\t\t\t$ret = $ret && $this->preInsert($con);\n\t\t\t} else {\n\t\t\t\t$ret = $ret && $this->preUpdate($con);\n\t\t\t}\n\t\t\tif ($ret) {\n\t\t\t\t$affectedRows = $this->doSave($con);\n\t\t\t\tif ($isInsert) {\n\t\t\t\t\t$this->postInsert($con);\n\t\t\t\t} else {\n\t\t\t\t\t$this->postUpdate($con);\n\t\t\t\t}\n\t\t\t\t$this->postSave($con);\n\t\t\t\tPessoaPeer::addInstanceToPool($this);\n\t\t\t} else {\n\t\t\t\t$affectedRows = 0;\n\t\t\t}\n\t\t\t$con->commit();\n\t\t\treturn $affectedRows;\n\t\t} catch (Exception $e) {\n\t\t\t$con->rollBack();\n\t\t\tthrow $e;\n\t\t}\n\t}", "title": "" }, { "docid": "aec2416c85904a7df3ccbdde0e9a9264", "score": "0.566281", "text": "public function save(){\n \n $table = self::table;\n $conn = new Conn();\n\n if($this->id == null){\n $conn->insert($table,$this->toArray());\n }else{\n $conn->updateById($table,$this->id,$this->toArray());\n } \n }", "title": "" }, { "docid": "ce8e0f6c95774a5516bca0ca3551751e", "score": "0.56618106", "text": "public function save()\n {\n $primaryKey = $this->primaryKey;\n\n if ($this->$primaryKey > 0) {\n return $this->_updateStatement($this->$primaryKey);\n }\n return $this->_insertStatement($this->$primaryKey);\n }", "title": "" }, { "docid": "2fb54099bc99aabbaa0f264e7a4ddbb3", "score": "0.5660081", "text": "public function saveEntity($entityObject)\n {\n $this->em->persist($entityObject);\n $this->em->flush();\n }", "title": "" }, { "docid": "105da989f58e736e33c4c1765e3603d9", "score": "0.56543094", "text": "public function save(PropelPDO $con = null)\n\t{\n\t\tif ($this->isDeleted()) {\n\t\t\tthrow new PropelException(\"You cannot save an object that has been deleted.\");\n\t\t}\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(EmployeePeer::DATABASE_NAME, Propel::CONNECTION_WRITE);\n\t\t}\n\t\t\n\t\t$con->beginTransaction();\n\t\t$isInsert = $this->isNew();\n\t\ttry {\n\t\t\t$ret = $this->preSave($con);\n\t\t\t// symfony_behaviors behavior\n\t\t\tforeach (sfMixer::getCallables('BaseEmployee:save:pre') as $callable)\n\t\t\t{\n\t\t\t if (is_integer($affectedRows = call_user_func($callable, $this, $con)))\n\t\t\t {\n\t\t\t $con->commit();\n\t\t\t\n\t\t\t return $affectedRows;\n\t\t\t }\n\t\t\t}\n\n\t\t\tif ($isInsert) {\n\t\t\t\t$ret = $ret && $this->preInsert($con);\n\t\t\t} else {\n\t\t\t\t$ret = $ret && $this->preUpdate($con);\n\t\t\t}\n\t\t\tif ($ret) {\n\t\t\t\t$affectedRows = $this->doSave($con);\n\t\t\t\tif ($isInsert) {\n\t\t\t\t\t$this->postInsert($con);\n\t\t\t\t} else {\n\t\t\t\t\t$this->postUpdate($con);\n\t\t\t\t}\n\t\t\t\t$this->postSave($con);\n\t\t\t\t// symfony_behaviors behavior\n\t\t\t\tforeach (sfMixer::getCallables('BaseEmployee:save:post') as $callable)\n\t\t\t\t{\n\t\t\t\t call_user_func($callable, $this, $con, $affectedRows);\n\t\t\t\t}\n\n\t\t\t\tEmployeePeer::addInstanceToPool($this);\n\t\t\t} else {\n\t\t\t\t$affectedRows = 0;\n\t\t\t}\n\t\t\t$con->commit();\n\t\t\treturn $affectedRows;\n\t\t} catch (PropelException $e) {\n\t\t\t$con->rollBack();\n\t\t\tthrow $e;\n\t\t}\n\t}", "title": "" }, { "docid": "727abd5db61179ec55b162461a53d4a9", "score": "0.565365", "text": "public function persist($obj)\n {\n $this->entityManager->persist($obj);\n $this->entityManager->flush();\n return $this;\n }", "title": "" }, { "docid": "6c6fc3c701ec676dbee3bc5a1d50eaa4", "score": "0.5652699", "text": "public function save() {\n $db = db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'ActionID' => $this->ActionID,\n 'User1' => $this->User1,\n 'User2' => $this->User2,\n 'BlogPost_1' => $this->BlogPost_1,\n 'Comment_1' => $this->Comment_1,\n 'Quote_1'=>$this->Quote_1,\n 'Quiz_1'=>$this->Quiz_1\n );\n $db->storeFollow($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "title": "" }, { "docid": "a1805641aae9528f35514e0882baac14", "score": "0.56526685", "text": "public function save(Entity $entity);", "title": "" }, { "docid": "9c5d1daa13ebf50f02f89a6dc1ef8e4e", "score": "0.565266", "text": "public function save() {\r\n $this->_lahaina->logger()->debug('Save model entity values (' . $this->_orm->id() . ')', $this);\r\n return $this->_orm->save();\r\n }", "title": "" }, { "docid": "9d1f02759f726c4d2cfcc241d85a3f42", "score": "0.56484145", "text": "public function persist($entity)\n {\n // TODO: Implement persist() method.\n }", "title": "" }, { "docid": "da9a8133cfdd34f812dfe78debf0a5a9", "score": "0.564733", "text": "public function save()\n {\n $rawDirtyData=$this->getDirtyData();\n $dirtyData=static::processData($rawDirtyData);\n\n if( empty($this->originalData) )\n {\n $ret=self::getBuilder()->insert()->values($dirtyData)->execute();\n return $ret;\n }\n else\n {\n $ret=self::getBuilder()->update()->set($dirtyData)->where($this->getIdQuery())->execute();\n return $ret;\n }\n }", "title": "" }, { "docid": "a9207f59c20a849edcb47c3936f0c534", "score": "0.56322193", "text": "public function save(){\n\n\t\t$columns = array_diff_key (\n\t\t\t\t\t\tget_object_vars($this),\n\t\t\t\t\t\tget_class_vars(get_class())\n\t\t\t\t\t);\n\n\t\t//INSERT OU UPDATE\n\t\t// $id == null -> INSERT SINON UPDATE\n\t\tif( is_null($this->getId()) ){\n\t\t\t//INSERT\n\t\t\t$query = $this->bdd->pdo->prepare(\"INSERT INTO \".$this->bdd->table.\" (\".\n\t\t\t\t\timplode(\",\", array_keys($columns))\n\t\t\t\t.\") \n\t\t\t\tVALUES ( :\".\n\t\t\t\t\timplode(\",:\", array_keys($columns))\n\t\t\t\t.\" );\");\n $query->execute($columns);\n\n\t\t}else{\n\t\t\t$sql = \"\";\n\t\t\tforeach ($columns as $col => $value) {\n\t\t\t if(isset($value))\n\t\t\t $sql.= $col .\" = '\". $value . \"' , \" ;\n }\n\n $query = $this->bdd->pdo->prepare(\"UPDATE \". $this->bdd->table . \" SET \" . rtrim($sql, \" , \").\"WHERE id =\" .$this->getId() . \";\");\n $query->execute();\n\t\t}\n\n\t}", "title": "" }, { "docid": "8ffd9109b6b891fe49dcb6ab69e8b93e", "score": "0.5627646", "text": "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(LineofbusinessTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n LineofbusinessTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "title": "" }, { "docid": "af7358a3ecebbd1ce0dab39b52417520", "score": "0.5621342", "text": "public function save()\n\t {\n\t\t$this->_saveAddress();\n\t\t$this->_saveName();\n\t\t$this->_saveAgency();\n\t }", "title": "" }, { "docid": "11b39197d937016fc6ee844498aed79b", "score": "0.5611443", "text": "public function persist()\n {\n }", "title": "" }, { "docid": "f127bac9c5861f0ffd355d91b4ed02ec", "score": "0.56025887", "text": "public function save(PropelPDO $con = null)\n\t{\n\t\tif ($this->isDeleted()) {\n\t\t\tthrow new PropelException(\"You cannot save an object that has been deleted.\");\n\t\t}\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_WRITE);\n\t\t}\n\n\t\t$con->beginTransaction();\n\t\t$isInsert = $this->isNew();\n\t\ttry {\n\t\t\t$ret = $this->preSave($con);\n\t\t\tif ($isInsert) {\n\t\t\t\t$ret = $ret && $this->preInsert($con);\n\t\t\t} else {\n\t\t\t\t$ret = $ret && $this->preUpdate($con);\n\t\t\t}\n\t\t\tif ($ret) {\n\t\t\t\t$affectedRows = $this->doSave($con);\n\t\t\t\tif ($isInsert) {\n\t\t\t\t\t$this->postInsert($con);\n\t\t\t\t} else {\n\t\t\t\t\t$this->postUpdate($con);\n\t\t\t\t}\n\t\t\t\t$this->postSave($con);\n\t\t\t\tUserPeer::addInstanceToPool($this);\n\t\t\t} else {\n\t\t\t\t$affectedRows = 0;\n\t\t\t}\n\t\t\t$con->commit();\n\t\t\treturn $affectedRows;\n\t\t} catch (Exception $e) {\n\t\t\t$con->rollBack();\n\t\t\tthrow $e;\n\t\t}\n\t}", "title": "" }, { "docid": "332ce7755dc5b9d4204efe695a206a72", "score": "0.5602179", "text": "public function commit() {\n\n\t\t\t// if the default implementation works...\n\t\t\tif(!parent::commit()) return FALSE;\n\n\t\t\t$id = $this->get('id');\n\n\t\t\t// exit if there is no id\n\t\t\tif($id == false) return FALSE;\n\n\t\t\t// declare an array contains the field's settings\n\t\t\t$settings = array();\n\n\t\t\t// the field id\n\t\t\t$settings['field_id'] = $id;\n\n\t\t\t// the related fields handles\n\t\t\t$settings['field-handles'] = $this->get('field-handles');\n\n\t\t\t// DB\n\t\t\t$tbl = self::FIELD_TBL_NAME;\n\n\t\t\tSymphony::Database()->query(\"DELETE FROM `$tbl` WHERE `field_id` = '$id' LIMIT 1\");\n\n\t\t\t// return if the SQL command was successful\n\t\t\treturn Symphony::Database()->insert($settings, $tbl);\n\n\t\t}", "title": "" }, { "docid": "e0979a77ff17dd948924d24d21a93132", "score": "0.5599882", "text": "public function saveEntity(Entity $entity);", "title": "" }, { "docid": "50d5ad60bbbc3e5fb83744497114d899", "score": "0.559609", "text": "function save() {\n $now = new DateTimeValue();\n if($this->isNew()) {\n $this->setLastUpdateOn($now);\n } // if\n \n db_begin_work();\n \n $save = parent::save();\n if($save && !is_error($save)) {\n $parent = $this->getParent();\n if(instance_of($parent, 'StatusUpdate')) {\n $parent->setLastUpdateOn($now);\n $parent->save();\n } // if\n \n db_commit();\n return true;\n } else {\n db_rollback();\n return $save;\n } // if\n }", "title": "" }, { "docid": "e7f9ea0b8088151a5f42b24a692178d3", "score": "0.55940425", "text": "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alreadyInSave) {\n return 0;\n }\n\n if ($con === null) {\n $con = Propel::getServiceContainer()->getWriteConnection(InstitucionTableMap::DATABASE_NAME);\n }\n\n return $con->transaction(function () use ($con) {\n $ret = $this->preSave($con);\n $isInsert = $this->isNew();\n if ($isInsert) {\n $ret = $ret && $this->preInsert($con);\n } else {\n $ret = $ret && $this->preUpdate($con);\n }\n if ($ret) {\n $affectedRows = $this->doSave($con);\n if ($isInsert) {\n $this->postInsert($con);\n } else {\n $this->postUpdate($con);\n }\n $this->postSave($con);\n InstitucionTableMap::addInstanceToPool($this);\n } else {\n $affectedRows = 0;\n }\n\n return $affectedRows;\n });\n }", "title": "" }, { "docid": "14caaabc8ba6eff9a51a6dda36224467", "score": "0.5587756", "text": "public function saveToDb()\n\t{\n\t\t// TODO: Implement saveToDb() method.\n\t}", "title": "" }, { "docid": "d20df3b315d6be59a6db94f031e368d0", "score": "0.5583082", "text": "public function save()\n {\n $meta = self::getMeta();\n\n if (!isset($meta->pk)) {\n throw new \\Exception(\"Model not writable because primary key is not defined in _meta.\");\n }\n\n // Check if all primary key columns are populated\n $pkSet = true;\n foreach ($meta->pk as $col) {\n if (empty($this->{$col})) {\n $pkSet = false;\n break;\n }\n }\n\n // If primary key is populated, check whether the record with given\n // primary key exists, and update it if it does. Otherwise insert.\n if ($pkSet) {\n $exists = static::exists($this->getPK());\n if ($exists) {\n $this->update();\n } else {\n $this->insert();\n }\n } else {\n $this->insert();\n }\n }", "title": "" }, { "docid": "aa13bdcd458488aef7230daf9d3c9b2c", "score": "0.5581728", "text": "function save()\n{\n\tif (!$this->testRight('save')) return false;\n\n\tif (!$this->modified) return true;\n\t$ok = $this->isInDb()? $this->update() : $this->insert();\n\tif ($ok) {\n\t\t$this->isInDb(true);\n\t}\n\treturn $ok;\n}", "title": "" }, { "docid": "e564eab4ee2bea91ad52ec2b181ce1ff", "score": "0.5580532", "text": "public function save($object);", "title": "" }, { "docid": "3157effaa0f38e8b2d970cf33f86d415", "score": "0.55805063", "text": "public function save() {\n\t\treturn isset($this->id) ? $this->update() : $this->create();\n\t}", "title": "" }, { "docid": "7e27e652636fb7bca0f2edf9a704235b", "score": "0.5572263", "text": "public function update()\n {\n $em = $this -> getEntityManager();\n $em -> flush();\n }", "title": "" }, { "docid": "f08464970315517688164d342e4145c9", "score": "0.5571046", "text": "public function save()\n {\n // The ultimate write call. We can try to recommit an then just proxy\n // the call.\n $this->commit();\n return $this->driver->save();\n }", "title": "" } ]
5c772964289f4be035ab02e5b48866b2
I set what view/php file to display.
[ { "docid": "2fc11cd34241fdc907c0ba311d86d01f", "score": "0.66520077", "text": "public function setView( $view ){\n\t\t\n\t\t$this->view = $view;\t\n\t}", "title": "" } ]
[ { "docid": "a95f3001c1724e452cc5faf6f2c59411", "score": "0.78364795", "text": "public function setView()\n\t{\n\t\t$args = func_get_args();\n\t\t$path = implode('/', array_slice($args, 0, -1));\n\t\t$path .= 'view.' . end($args) . '.php';\n\t\t$this->view = $path;\n\t}", "title": "" }, { "docid": "6b056c3554e27fb26cf9e0ab1295fd71", "score": "0.77365756", "text": "protected function setViewFile() {\n\t\treturn dirname( __FILE__ ) . '/view/social_menu.php';\n\t}", "title": "" }, { "docid": "1f03f71dedc5be8aff9fee9ffe8dbb44", "score": "0.72756505", "text": "abstract public function setViewFile($file);", "title": "" }, { "docid": "264ce9ed493737daec795c68aa593ddb", "score": "0.72345585", "text": "public function setView($file) {\n\t\t$this->_fileTemplate = strtolower ( $file );\n\t}", "title": "" }, { "docid": "f7291c56f50b518545b3e0e31600101f", "score": "0.71118146", "text": "public function display(){\r\n\t\t//导入app目录/view/控制器名/方法.PHP模版\r\n\t\t$file = APP_PATH . 'View/' . CTR . '/'.FUN.'.html';\r\n\t\t//echo $file;\r\n\t\tif (file_exists($file))\r\n\t\t{\r\n\t\t\t/**\r\n\t\t\t * trigger render to include file when this model is destroyed\r\n\t\t\t * if we render it now, we wouldn't be able to assign variables\r\n\t\t\t * to the view!\r\n\t\t\t */\r\n\t\t\t$this->render = $file;\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "d86617ea19e73f90bc99e1d50f2d6fc8", "score": "0.69623536", "text": "final private function view ($view,$type='HTML',$filename='')\n {\n if (isset($this->_View) && is_object($this->_View))\n {\n $this->_View->displayView($view,$type,$this,$filename);\n }\n }", "title": "" }, { "docid": "1b825d0fdbaeec1a9cdfb6d108f59135", "score": "0.69515425", "text": "protected function setView()\n\t{\n\t}", "title": "" }, { "docid": "d46e869453919d45fab5b4c2c82c044e", "score": "0.6924956", "text": "function DoView( ){\n\n\t\tprint \"<center>\";\n\t\tprint \"\\n<a href='\".$this->phpFile.\"?key=\".$this->Key.\"&mode=Edit'>Edit</a>\";\n\t\tprint \"<br/>\";\n\t\t$this->DoDetail( \"View\" );\n\n\t\n\t\n\t\tprint \"</center>\";\n}", "title": "" }, { "docid": "52c7ea35889c7ed51b56bfab8aed36aa", "score": "0.6900362", "text": "public function setView($view){\n $view = preg_replace('/\\.php/i', '', $view);\n $this->name = strtolower($view);\n }", "title": "" }, { "docid": "33a33315aa57693db2a3fdf34ceb03d2", "score": "0.68978333", "text": "public function showView(){\n\t\t\n\t\t$view=\"application/views/\".$this->_name.\"/\".$this->_action.\"View.phtml\";\n\t\t//var_dump($view);\n\t\t\n\t\tinclude $view;\n\t}", "title": "" }, { "docid": "71bfecb45deb72049d46f4daa90ec267", "score": "0.67781365", "text": "function index(){ \n include(VIEWS . \"/home/initial.view.php\"); \n }", "title": "" }, { "docid": "c2f1250320c0c6cf08f58d20439865b2", "score": "0.67154974", "text": "public function render(){\n //if file exists we will go to the view() method which was set in homeController()\n // we are creating the path inside the home inside the view so if file exists only thing we need to do is:\n //include the file\n if(file_exists(VIEW . $this->view_file .'.php')){\n include VIEW . $this->view_file .'.php';\n }\n }", "title": "" }, { "docid": "65a287c52532a8d206f618d88659e0bd", "score": "0.66612923", "text": "public function view($view, $data =[]) \n {\n if(file_exists(\"../app/view/\" . $view . \".php\"))\n {\n require_once \"../app/view/\" . $view .\".php\";\n }\n else \n {\n die(\"The page is not available \");\n }\n }", "title": "" }, { "docid": "bc17634a825cf12487d78ca59e6c6bb3", "score": "0.66524076", "text": "public static function Show(){\n $viewName = \"\";\n\n $useMasterTemplate = true;\n for($i = 0; $i < func_num_args(); $i++){\n $testArg = func_get_arg($i);\n if(is_string($testArg) && $i == 0){\n $viewName = $testArg;\n }else if(is_bool($testArg)){\n $useMasterTemplate = $testArg;\n }else{\n $_ViewData = $testArg;\n }\n }\n\n $callTrace = Trace::GetLastMethodCall();\n $viewPath = self::parseViewPath($viewName,$callTrace);\n if(self::verifyView($viewPath)){\n if($useMasterTemplate){\n\t\t\t\tinclude(\"view/_public/master.php\");\n\t\t\t} else {\n\t\t\t\tinclude($viewPath);\n\t\t\t}\n\t\t\t\t\n }else {\n Debug::Out(\"View <b>$viewPath</b> could not be found.\");\n Router::UnknownResource();\n }\n }", "title": "" }, { "docid": "99e59258aa4afc728528f00d30990719", "score": "0.66501844", "text": "public function altview()\n\t{\n\t\t$this->view_template = 'basics/different';\n\t}", "title": "" }, { "docid": "59b01538d91cd5ba1062c353d9e7859d", "score": "0.6612897", "text": "function view($viewName, $viewType = 'html', array $config = array());", "title": "" }, { "docid": "4345eba1ce5b4c988f516b16ff1a96e8", "score": "0.6599012", "text": "abstract public function view($file_template,$DATA);", "title": "" }, { "docid": "17c3fe619327740bf41b0e740e3eff87", "score": "0.65870845", "text": "public function loadView() {\n\t\t\tif (!isset($this->view)) {\n\t\t\t\t// ERROR HANDLING\n\t\t\t\tdie(\"Page not set\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// load the top part of the template html\n\t\t\t\t$this->safeEcho(Templates::TEMPLATE_TOP);\n\t\t\t\t// load the content html\n\t\t\t\t$this->safeEcho($this->view);;\n\t\t\t\t// load the bottom part of the template html\n\t\t\t\t$this->safeEcho(Templates::TEMPLATE_BOTTOM);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1a91d4aa2ecb73528eb895a2a6108710", "score": "0.6583528", "text": "public function view() {\n\t\t// set the title of the HTML page\n\t\t$this->set('title_for_layout', 'Voice Control');\n\t\t// we will need some RWT libraries\n\t\t$this->set('rwt', array('voicecontroljs' => 'current'));\n\t\t\n\t}", "title": "" }, { "docid": "026704677fb429c37f3d80166edda1b2", "score": "0.65599346", "text": "public function View($view,$data=Null){\n $fullpath=MVCPATH.\"views\".DS.ucwords($view).EXT;\n $this->Load($fullpath,$data);\n }", "title": "" }, { "docid": "be6ac635747cfa27b5697d0df7b8adc8", "score": "0.65467274", "text": "function printView($viewName,$title='提案议案处理系统'){\n include 'template/header.html.php';\n include 'view/'.$viewName.'.html.php';\n}", "title": "" }, { "docid": "fbfa399b048048056efddb546e986abc", "score": "0.6537757", "text": "public function setView($view);", "title": "" }, { "docid": "7a18a92d4ab0303b683e87bed95b3cf1", "score": "0.6521119", "text": "public function view(){\n\t\t//get setting\n \t\tif($this->layoutWidgetInfo){\n \t\t\t$setting = json_decode($this->layoutWidgetInfo->setting, true);\n \t\t}\n \t\t\n \t\t//add info\n $videoRandom = VideoExt::getVideoRandom('A');\n $setting['video'] = $videoRandom->url;\n\n\t\t//view\n include \"view.php\";\n \t}", "title": "" }, { "docid": "1e5ff4cd6dd4cbb0828847fc5f8916fe", "score": "0.65190655", "text": "public function viewRenderAutomation(){\n\t\tif(is_string(Doo::conf()->AUTO_VIEW_RENDER_PATH)){\n\t\t\t$path = Doo::conf()->AUTO_VIEW_RENDER_PATH;\n\t\t\t$path = str_replace(':', '@', substr($path, 1));\n\t\t\t$this->{$this->renderMethod}($path, $this->vdata);\n\t\t}else{\n if(isset(Doo::conf()->AUTO_VIEW_RENDER_PATH))\n $this->{$this->renderMethod}(strtolower(Doo::conf()->AUTO_VIEW_RENDER_PATH[0]) .'/'. strtolower(Doo::conf()->AUTO_VIEW_RENDER_PATH[1]), $this->vdata);\n else\n $this->{$this->renderMethod}('index', $this->vdata); \n\t\t}\n\t}", "title": "" }, { "docid": "2e7643cf11cec1740da86f6004690400", "score": "0.6497942", "text": "private function _runView()\n {\n\t define('DIR_MODULE_VIEWS',DIR_MODULE.'/views');\n\t define('NS_MODULE_VIEWS',NS_MODULE.'\\\\views');\n\t $page_view = new \\iow\\app\\classes\\page_view\\page_view();\n\t $page_view->outputHTML5();\n }", "title": "" }, { "docid": "c7722bae2b16f3f0db756975e7f68244", "score": "0.649207", "text": "public function set_view( $view ) {\n\t\t$this->view = $view;\n\t}", "title": "" }, { "docid": "a7d11b1fa02d8e827a2ac8671307c2b2", "score": "0.64794093", "text": "public function index() {\n $viewConfig = array('data'=>array( \n 'fileName'=> '/user/setting',\n 'pageName'=>'setting', \n 'pageTitle'=>'Setting'\n ));\n $this->load->library('viewTemplate',$viewConfig);\n $this->viewtemplate->render();\n }", "title": "" }, { "docid": "84d97a8b34b6c3f5fac8f8c36f6e9084", "score": "0.6475341", "text": "public function view() {\r\n $this->view->data['view'] = 'hehe';\r\n /*** load the index template ***/\r\n $this->view->show('index/view');\r\n }", "title": "" }, { "docid": "4047b4c630c31b4a9f3959afbed73a38", "score": "0.6450868", "text": "public function render(){\n foreach ($this->_viewData as $varName => $data) {\n $$varName = $data;\n }\n include_once $this->_pathLayout;\n }", "title": "" }, { "docid": "1283686fb7a1fdcaac41788a318a0cec", "score": "0.64408535", "text": "public function pathView()\n\t{\n\t\treturn FRAME_PATH.'/'.DIR_MODULES_NAME.'/'.ucfirst(self::getInstance()->moduleName).'/View/'.self::getInstance()->format.\"/\";\n\t\t//_pathView somente é manipulado setLayout\n\t\tif(!self::getInstance()->_pathView)\n\t\t \tself::getInstance()->_pathView = FRAME_PATH.'/'.DIR_MODULES_NAME.'/'.ucfirst($this->moduleName).'/View/'.$this->format.\"/\";\n\t\treturn self::getInstance()->_pathView;\n\t}", "title": "" }, { "docid": "bf07fb1ece9e5d836e34e9a130a4ef33", "score": "0.6423912", "text": "public function pagina(){\t\n\t\tinclude \"views/template.php\";\n\t}", "title": "" }, { "docid": "7141039dc87cbdf6055437d260fbb90d", "score": "0.6417877", "text": "public function RefreshView() {\n\n $this->\n view = $this->\n Request()->\n GetController() . ucfirst($this->\n Request()->\n GetAction());\n\n $this->\n altView = $this->\n Request()->\n GetController() . DS . $this->\n Request()->\n GetAction();\n }", "title": "" }, { "docid": "2239e15a16f1b34335b96474c96bc9b2", "score": "0.64148235", "text": "public function setView($view) {\n $this->template['view'] = $view;\n }", "title": "" }, { "docid": "b1d7f57da0425ad4928cf5f67dcc4950", "score": "0.6412008", "text": "public function preparefile() {\n\t\t$request = Zend_Controller_Front::getInstance ()->getRequest ();\n\t\tif ($this->_fileTemplate == NULL)\n\t\t\t$this->setView ( $request->getControllerName () . '/' . $request->getActionName () . '.tpl' );\n\t\telse if (! preg_match ( '/\\.tpl$/', $this->_fileTemplate ))\n\t\t\t$this->setView ( $request->getControllerName () . '/' . $this->_fileTemplate . '.tpl' );\n\n\t}", "title": "" }, { "docid": "429964760fde45b53ebc2bf7545550a2", "score": "0.6401201", "text": "abstract protected function view_loader();", "title": "" }, { "docid": "f16ed527e1d0e3443fde5ebc558c72ad", "score": "0.6399684", "text": "function onView () {\r\n \r\n switch (parent::getAction()) {\r\n default:\r\n $this->printMainView();\r\n }\r\n }", "title": "" }, { "docid": "19797f5acd154a652ac2c5c97a5fcf77", "score": "0.6399146", "text": "public function render(){ \n\t\trequire_once($this->_viewPath); \n\t}", "title": "" }, { "docid": "2c9d39e342e6e0ef5eab23a40d48fced", "score": "0.6397997", "text": "function showPage() \n\t{\n\t\t$this->xt->display($this->templatefile);\n\t}", "title": "" }, { "docid": "436a8b569a1e8e9d7d5c52a08cd07eb0", "score": "0.63961875", "text": "public function view(){\n\t\t\n\t\t$this->_template->render();\n\t}", "title": "" }, { "docid": "3c73029e29bc0fd82cecbfb0107fca9b", "score": "0.63936096", "text": "abstract public function display($view, $tpl);", "title": "" }, { "docid": "46e22f59f66e5cd3b3c1695fd700f95a", "score": "0.636633", "text": "function app_view($viewName){\n return PATH . '/app/view/' . $viewName . '.php';\n}", "title": "" }, { "docid": "d1de2612792a2db53021649478817acc", "score": "0.6362183", "text": "public function content()\n {\n $path = '../App/' . $this->viewsDir . $this->view . '.phtml';\n if (file_exists($path)) {\n require $path;\n\n } else {\n die('No view file ' . $this->view . ' present in view directory.');\n }\n }", "title": "" }, { "docid": "1ef784a72ca97fb1b346d7cbeb123841", "score": "0.63479984", "text": "protected function view($view ,$data = [])\n {\n if (file_exists( \"../app/views/\".$view.\".php\")) {\n //echo $view .\" in view <br>\";\n require_once \"../app/views/\".$view.\".php\" ;\n }else {\n echo \"NO view Found <br>\";\n }\n\n\n\n }", "title": "" }, { "docid": "3c789219e0679a437cee8c10c3487163", "score": "0.6336648", "text": "protected function loadView()\n {\n\n $this->viewId='f77b29f2-6ec2-419d-a219-4c676345de14';\n $this->viewName='default';\n $this->defaultView=true;\n\n }", "title": "" }, { "docid": "0d3fbb307c4ecb75c7dab05a1ff3a0a0", "score": "0.6329167", "text": "public function setView($template){\n $this->template = $template; //adiciona template (view)\n }", "title": "" }, { "docid": "6fbc11673c6e4a9d5159d78ec549b266", "score": "0.63131285", "text": "public function view($viewName,$data){\n if(file_exists(VIEW.$viewName.\".php\")){\n //echo VIEW.$viewName.\".php\"; die();\n include_once(VIEW.$viewName.\".php\");\n \n }else{\n echo \"No View Found.\";\n }\n }", "title": "" }, { "docid": "0bc586644a34807fa34a96d25c5f949d", "score": "0.6306399", "text": "function view($path, $p = null, $content = null) {\n include($path.'.php');\n }", "title": "" }, { "docid": "a05ab45251f88b961e773b5356c5e379", "score": "0.63059217", "text": "function disp_views(){\n\t#modified\n\treturn base_url().\"application/views/\";\n}", "title": "" }, { "docid": "e0ca75221230e07dc9ef9152adc82d26", "score": "0.63056535", "text": "public function display()\n\t{\n $template = 'views/admin.phtml';\n include 'views/layout_front.phtml';\n\t}", "title": "" }, { "docid": "4f64e0cd43daeb01b963f232f0d14583", "score": "0.6302709", "text": "public function view($view, $data = array())\n {\n if (file_exists('../app/views/' . $view . '.php')) {\n\n require_once '../app/views/' . $view . '.php';\n }\n }", "title": "" }, { "docid": "1c3e49668deab9e0210927e57f3f72a2", "score": "0.6302385", "text": "private function viewList ( ) {\r\n \r\n /** estableix la vista que s'ha de mostrar */\r\n $this->view = $_SESSION[\"viewPath\"] . 'visitdaysview.php'; \r\n\r\n }", "title": "" }, { "docid": "c8ab68c56261e4be346a88968e633476", "score": "0.62930775", "text": "public function view( $view, $dados = null ) {\n\t\trequire_once 'view/' . $view . '.php';\n\t}", "title": "" }, { "docid": "c7afd37b2d93ebf8501b98d705627e21", "score": "0.6261439", "text": "function get_view($name) {\n\tinclude(TEMPLATEPATH.'/views/'.$name.'.php');\n}", "title": "" }, { "docid": "99ee4c44324bd5b48c793ef929ccc0f1", "score": "0.62499803", "text": "protected function show() {\n //$this->setMenuActive();\n // $this->setMessage($msg);\n //dump(request());\n //Request::instance();\n //var_dump(APP_PATH);\n $this->assign('default_dir', RESOURCE_FOLDER);\n }", "title": "" }, { "docid": "49fc4d7add09841cc58d40d5f3376587", "score": "0.62442136", "text": "private function set_view($view) {\n $this->view = $view;\n }", "title": "" }, { "docid": "49fc4d7add09841cc58d40d5f3376587", "score": "0.62442136", "text": "private function set_view($view) {\n $this->view = $view;\n }", "title": "" }, { "docid": "f109b8d1826ff081cd6186c0b3321e86", "score": "0.6241525", "text": "public function viewAction()\n {\n parent::viewAction();//no permission yet\n Bootstrap::$pageTitle = 'Xem đơn hàng';\n }", "title": "" }, { "docid": "2d5621558c382ac1da0ff4fff02d9b0f", "score": "0.6239709", "text": "public function view($view,$data = null){\n\t\t$view_path = SITE_ROOT.'/application/views/'.$view.'.php';\n\t\t//Check if file is present\n\t\tif(file_exists($view_path)){\n\t\t\t//Check if the data is not null.\n\t\t\t//If its not null then extract the data to its own variables.\n\t\t\t//More info about extract: http://php.net/manual/en/function.extract.php\n\t\t\tif($data!=null){\n\t\t\t\textract($data);\n\t\t\t}\n\t\t\tinclude $view_path;\n\t\t}else{\n\t\t\t//Include 404 page inside.\n\t\t\tinclude SITE_ROOT.'/application/error/404.php';\n\t\t}\n\t\treturn '';\n\t}", "title": "" }, { "docid": "c29fd4192394e534060fd3afcfa1be2c", "score": "0.6233011", "text": "public function view ($view, $data = []){\n // check for view file\n if (file_exists('../app/views/' .$view . '.php')){\n require_once '../app/views/' .$view . '.php';\n }else{\n die('View does not exist');\n }\n }", "title": "" }, { "docid": "99b5b012e868989cd61e274a53029152", "score": "0.62328565", "text": "function display(){\r\n\t\t\r\n\t\r\n\t\t$app = JFactory::getApplication();\r\n\t\t\r\n\t\t// Set a default view if none exists\r\n\t\tif ( ! JRequest::getCmd( 'view' ) ) {\r\n\t\t\t\r\n\t\t\t$default = JRequest::getInt('id') ? 'location' : 'directory';\r\n\t\t\t\r\n\t\t\tJRequest::setVar('view', $default );\r\n\t\t\t\r\n\t\t}\t\t\r\n\t\t\r\n\r\n\t\t$params = &JComponentHelper::getParams( 'com_locator' );\r\n\t\t$menuitemid = JRequest::getInt( 'Itemid' );\r\n\t\t\r\n\t\tif ($menuitemid)\r\n\t\t{\r\n\t\t\t$menu = JSite::getMenu();\r\n\t\t\t$menuparams = $menu->getParams( $menuitemid );\r\n\t\t\t$params->merge( $menuparams );\r\n\t\t}\r\n\r\n\t\tif($app->isSite()){\r\n\t\t\tparent::display(true);\r\n\t\t}else{\r\n\t\t\tparent::display();\t\t\r\n\t\t}\r\n \r\n\t}", "title": "" }, { "docid": "db0ef027239e38c9c229bb7592848811", "score": "0.6231939", "text": "public function view() {\n\n if (isset($_GET['name'])) {\n $this->view->source = $this->model::getByName($_GET['name']);\n }\n\n $this->view->setData($this->model::getAll($_GET));\n $this->view->setTemplate(SRC_VIEW);\n $this->view->render();\n }", "title": "" }, { "docid": "2de0a9dfc58119f64f8481533b7bd600", "score": "0.6231242", "text": "function loadView($name) {\n\tglobal $loggedin;\n\tglobal $user;\n\tinclude(\"views/\".$name.\".php\");\n}", "title": "" }, { "docid": "d4710dbd9a08a46f55b31317b8abb4e1", "score": "0.62311566", "text": "public function display()\n {\n extract($this->properties);\n require './../templates/partial/header.php';\n require $this->viewfile;\n require './../templates/partial/footer.php';\n }", "title": "" }, { "docid": "ccec9eafb59947a4176086d24f360d36", "score": "0.62276196", "text": "public static function view($view_name,$data=array())\n\t{\n\t\tif (file_exists(\"../resources/Views/$view_name.php\")):\n\n\t\t\t$page = new self;\n\n\t\t\textract($data);\n\t\t\t\n\t\t\tinclude \"../resources/Views/$view_name.php\";\n\n\t\telse:\n\n\t\t\tself::error($view_name);\n\t\t\t\n\t\tendif;\n\t}", "title": "" }, { "docid": "b87f4e3c1b7eb61c9d7fea7ae17ecc9c", "score": "0.6227085", "text": "function view($view = null, $data = [])\n{\n extract($data);\n return require __DIR__ . \"/../resources/views/{$view}.view.php\";\n}", "title": "" }, { "docid": "5601a5fb72e51c0e75bfb38073489bfe", "score": "0.6219284", "text": "public function get_view()\n\t{\n $args = $this->get_arguments(func_get_args());\n\t\t/*if ( !isset($args['mode']) ){\n $v = $this->mvc->get_view($args['path'], 'html', $args['data']);\n if ( !$v ){\n $v = $this->mvc->get_view($args['path'], 'php', $args['data']);\n }\n\t\t}\n\t\telse{\n $v = $this->mvc->get_view($args['path'], $args['mode'], $args['data']);\n }*/\n\t\tif ( empty($args['mode']) ){\n $args['mode'] = 'html';\n }\n $v = $this->mvc->get_view($args['path'], $args['mode'], $args['data']);\n\t\t/*\n if ( !$v && $args['die'] ){\n die(\"Impossible to find the $args[mode] view $args[path] from $args[file]\");\n }\n\t\t*/\n return $v;\n\t}", "title": "" }, { "docid": "9e64ae0981799360d18632ae84dee70f", "score": "0.62160635", "text": "protected function setView($template) {\n $this->getView()->setTemplate('../views/' . $template . ($this->isCli() ? '.ptxt' : '.phtml'));\n }", "title": "" }, { "docid": "0e31d9791b8cd4c49c5fddb714802d6c", "score": "0.6212361", "text": "public function display() {\n // getModel(default) olettaa, että on olemassa tiedosto model/default.php \n\t// ja siellä luokka SomeModelDefault joka perii luokan SomeModel\n $model = $this->getModel('default');\n\t// mallin metodeita voidaan kutsua tässä. \n\t// Yksi muista vaihtoehdoista on, että malli rakentimessaan tekee toimintonsa. Ohjelmoija valitsee miten tämän hoitaa\n\t$model->prepare();\n\t// tämä olettaa, että on olemassa tiedosto view/default/default.php jossa luokka SomeViewDefault joka perii luokan SomeView\n\t$view = $this->getView('default');\n\t//asetetaan malli näkymälle, jotta se on sen display() metodissa haettavissa.\n\t$view->setModel($model);\n\t//ilman parametriä, tmpl on default, siis oletetaan että on olemassa tiedosto\n\t// view/default/tmpl/default.php\n\t$view->display();\n }", "title": "" }, { "docid": "ab0cd0d584962616d7b7774812e9781c", "score": "0.6211571", "text": "function display() {\r\n\t\tswitch ($this->getTask()) {\r\n\t\t\tcase 'checkdirs' :\r\n\t\t\t\tJRequest :: setVar('layout', 'checkdirs');\r\n\t\t\t\tJRequest :: setVar('view', 'utilities');\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'showce' :\r\n\t\t\tcase 'installce' :\r\n\t\t\tcase 'uninstallce' :\r\n\t\t\tcase 'togglece' :\r\n\t\t\t\tJRequest :: setVar('layout', 'contentelements');\r\n\t\t\t\tJRequest :: setVar('view', 'utilities');\r\n\t\t\t\tbreak;\r\n\t\t\tdefault :\r\n\t\t\t\tJRequest :: setVar('view', 'utilities');\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tparent :: display();\r\n\t}", "title": "" }, { "docid": "9a6d1f28e50eee8b1a659d17f7d7ec72", "score": "0.62068987", "text": "public function view($viewname);", "title": "" }, { "docid": "f2bac8177a02ae43afccf9755327381d", "score": "0.6204611", "text": "function view($name, $data=[])\n{\n\t// extracts the data if there is any - parameters passed to the view\n\textract($data);\n\n\t// return and require the path to the view\n\treturn require \"../App/views/{$name}.view.php\";\n}", "title": "" }, { "docid": "7ec918d7f9f46d3ed4161598b9aed625", "score": "0.6198917", "text": "function action_index() {\n $this->view->generate('../main_view.php', 'template_view.php');\n // echo $this->view();\n }", "title": "" }, { "docid": "435840b75fe5a952afd6abb611c8d350", "score": "0.61967474", "text": "protected function defaultViewHandler()\r\n {\r\n $viewname = $this->getActiveViewname();\r\n $sv = $this->getViewByName($viewname);\r\n if ($sv === null) {\r\n throw new Silva_Exception(\"show{$viewname} is undefined or view not registered.\");\r\n }\r\n\r\n $this->handleGrid($sv);\r\n \r\n if (! $sv->getOption('manualBreadcrumbs')) {\r\n $this->showBreadcrumbs();\r\n }\r\n \r\n $sv->render();\r\n }", "title": "" }, { "docid": "43a358eb3cac21706c4a057b5e4b59a1", "score": "0.61945", "text": "public function pagina(){\t\n\t\t\n\t\tinclude \"views/template.php\";\n\t\n\t}", "title": "" }, { "docid": "8bb04450d18ffcf0bd50163381d4da09", "score": "0.6192288", "text": "public function setViewProperties() {\n\t\t$this->view->controller = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();\n\t\t$this->view->action = Zend_Controller_Front::getInstance()->getRequest()->getActionName();\n\t\t$this->view->translator = $this->translator;\n\t\t$this->view->version = $this->config->app->version;\n\t}", "title": "" }, { "docid": "3426de9a7cae5d7f5d75a0449132b28e", "score": "0.6190744", "text": "function view_url()\n{\n return document_url.\"/App/Views/\";\n}", "title": "" }, { "docid": "b55c422e5aa3c240ad3b74ed3f9550a2", "score": "0.6182842", "text": "public function pagina(){\t\r\n\t\t\r\n\t\tinclude \"views/template.php\";\r\n\t\r\n\t}", "title": "" }, { "docid": "513854b7bc6d851e430de5c71eabfa65", "score": "0.61819226", "text": "public function view()\n\t{\n\t\tparent::view();\n\t}", "title": "" }, { "docid": "aab90f97f52025605661010ca3a627b4", "score": "0.617901", "text": "public function myview_default()\n\t{\n\t\t$this->load->MY_View('example');\n\t}", "title": "" }, { "docid": "409f4556479066e4d7be08599827ab58", "score": "0.6173413", "text": "private function _load_view() {\n require BASEDIR.'lib/lib_view.php';\n $this->view_object = new View($this->controller_object);\n\n $this->view_object->content_for('layout', $this->view_object->render(\"{$this->controller_object->router->module_path}{$this->controller_object->router->controller}/{$this->controller_object->router->action}.phtml\"));\n }", "title": "" }, { "docid": "fc84317e79b2586de1ae8ca13d0d7734", "score": "0.616852", "text": "public function content() {\n $manager = new aam_View_Manager();\n echo $manager->run();\n }", "title": "" }, { "docid": "19fcc0ce0950753175c0bf51138d509d", "score": "0.61626506", "text": "function acf_pro_get_view( $view_name = '', $args = array() ) {\n\t\n\t// vars\n\t$path = acf_get_path(\"pro/admin/views/{$view_name}.php\");\n\t\n\t\n\tif( file_exists($path) ) {\n\t\t\n\t\tinclude( $path );\n\t\t\n\t}\n\t\n}", "title": "" }, { "docid": "07f8168c051ddabfe57a93d431f1ac89", "score": "0.6158863", "text": "function displayProgMgmt() {\n require('./public/views/backend/programManagementView.php');\n}", "title": "" }, { "docid": "eedf97a2952fc9c1450874dc9798d4d4", "score": "0.61552906", "text": "public function includeContent()\r\n {\r\n if (isset($this->_viewPath)) {\r\n include(Bitsy_Config::getProjectClasses() . \"/views\". '/' .\r\n $this->_viewPath . '.phtml');\r\n }\r\n else {\r\n echo \"Die View wurde von keinem Controller mit Daten gefuettert!\";\r\n }\r\n }", "title": "" }, { "docid": "86be83f587658490359d6fc6f544154c", "score": "0.61535674", "text": "function aldem_cargar_view($name)\n{\n require(aldem_get_view_directory_helper() . \"$name.php\");\n}", "title": "" }, { "docid": "50cbaf229ee37a782e51fccfe5e8a6f3", "score": "0.61518663", "text": "public function index(){\n $data['module'] = 'tuts';\n $data['view_file'] = 'home';\n // echo Modules::run('templates/one_col', $data);\n echo Modules::run('templates/three_col', $data);// Change view here to change template loaded at render\n // $this->load->view('home');\n }", "title": "" }, { "docid": "bbbf68258c88d9d44de40af58bd1a8db", "score": "0.61501753", "text": "public function view(array $settings = array());", "title": "" }, { "docid": "6b5f93f0c70bb45d146a05148889ed16", "score": "0.6143902", "text": "public function display() {\n\t\t\textract($this->varsHolder) ;\n\t\t\tob_start() ;\n\t\t\tinclude $this->vName ;\n\t\t\t$content_for_layout = ob_get_clean() ;\n\t\t\tinclude $this->lName ;\n\t\t}", "title": "" }, { "docid": "6812c4aee4480e60c07b186eddba5cec", "score": "0.61342734", "text": "function view($view = 'site/index', $view_data = null)\n {\n $CI =& get_instance();\n\n $data['content'] = $CI->load->view($view, $view_data, TRUE);\n\n $CI->load->view('layout/'.$this->name, $data);\n }", "title": "" }, { "docid": "dbf9b1b4b234cf9f7a83b926962d7f06", "score": "0.613335", "text": "public function index()\n {\n //set file to null if not use view file\n //using array as first arg will need a view file\n\n $var1 = 'sample data1';\n $var2 = 'sample data2';\n\n\n //ex 1\n $this->set->addData(\n 'TITLE OF PAGE'/*OR NULL*/,\n array(\n 'data' => array('First element of array','second','last'),\n 'var1' => $var1,\n 'var2' => $var2\n ),\n 'primary', /*REGION TO ADD DATA TO*/\n __DIR__.'/views/dynamic.php' /*file*/\n );\n\n //ex 2\n $this->set->addData(null, 'Data in sidebar section', 'sidebar',null);\n\n\n }", "title": "" }, { "docid": "fd4e3948ca89829fcbd6335b22bb8163", "score": "0.61272657", "text": "function load()\n {\n echo $this->view();\n }", "title": "" }, { "docid": "309dac266e990be8fa1077d6cfa509ff", "score": "0.61238235", "text": "public function setLayout($file);", "title": "" }, { "docid": "a9260a5d007550accf4ff4cbef0c2429", "score": "0.61197966", "text": "public function pagina(){\n //Include se utiliza para invocar el arhivo que contiene el codigo HTML\n include \"views/template.php\";\n }", "title": "" }, { "docid": "14a98ea49798731e28c84e9a40b1c04f", "score": "0.61134887", "text": "abstract public function render($view_file, array $params = array());", "title": "" }, { "docid": "07c73f5e6c6014b4369376e305b19461", "score": "0.6111886", "text": "public function action_show() {\n switch ($_GET['id']) {\n case 'goodies':\n $this->page = 'goodies';\n require_once './app/views/help/goodies.php';\n break;\n case 'about':\n $this->page = 'about';\n require_once './app/views/help/about.php';\n break;\n case 'contact':\n $this->page = 'contact';\n require_once './app/views/help/contact.php';\n break;\n }\n }", "title": "" }, { "docid": "353c6460d41346431d498c22e03314ad", "score": "0.6104033", "text": "function getView($file_name){\n\t\tif($this->layout !== $this->defaultLayout){\n\t\t\t$prefix = Helper::addTailingSlashIfNeeded($this->layout);\n\t\t}else{\n\t\t\t$prefix = '';\n\t\t}\n\t\t$possibleMatches = array(\n\t\t\t#'views/mobile/api/foo'\n\t\t\t$this->viewPath.$prefix.$this->stack->get('controller').DIRECTORY_SEPARATOR.$file_name,\n\n\t\t\t#'/views/mobile/foo'\n\t\t\t$this->viewPath.$prefix.$file_name,\n\n\t\t\t#'/views/api/foo'\n\t\t\t$this->viewPath.$this->stack->get('controller').DIRECTORY_SEPARATOR.$file_name,\n\n\t\t\t#'/views/foo'\n\t\t\t$this->viewPath.$file_name\n\t\t);\n\t\tforeach($possibleMatches as $current){\n\t\t\t$current .= '.php';\n\t\t\tif(true === is_file($current)){\n\t\t\t\treturn $current;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5353ae0470161714c08f931382a520a6", "score": "0.60939", "text": "public function render($view = False){\n $template_dir = ROOT.DS.'app'.DS.'views';\n extract($this->data);\n if ($view) {\n include $template_dir.DS.$view.'.php';\n } else {\n include $template_dir.DS.$this->name.'.php';\n }\n }", "title": "" }, { "docid": "99019934e4ceb36c5f07ec97f5e8b3d2", "score": "0.60938114", "text": "public function view($view, $data)\n {\n require_once __ROOT__.'\\\\app\\\\views\\\\layout.php';\n }", "title": "" }, { "docid": "a167b12d2016190154c3f2b0ef186ae2", "score": "0.6092599", "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": "db5a19bf5e2911b51d20d01fcc3cdde8", "score": "0.60920006", "text": "function destination() {\n\t\t$this->viewPath = 'posts';\n\t\t$this->render('index');\n\t}", "title": "" } ]
091754b4763bbba12de59dd63b8f509a
getHeader returns a header record for a given key
[ { "docid": "89007f9f04f3d775018ee83059ba5c14", "score": "0.70678085", "text": "function getHeader($key)\n {\n if (isset($this->_headerTable[$key])) {\n return $this->_headerTable[$key];\n }\n return false;\n }", "title": "" } ]
[ { "docid": "5292a17b165b54dcb4b3c3f5c142cc5c", "score": "0.8110817", "text": "public function getHeader($key);", "title": "" }, { "docid": "5292a17b165b54dcb4b3c3f5c142cc5c", "score": "0.8110817", "text": "public function getHeader($key);", "title": "" }, { "docid": "5292a17b165b54dcb4b3c3f5c142cc5c", "score": "0.8110817", "text": "public function getHeader($key);", "title": "" }, { "docid": "dbbabfb15e5497966a476b135612b2b6", "score": "0.74028903", "text": "public function getHeader ($header) {}", "title": "" }, { "docid": "1ba6f85bdcc39d5867a4910860b5c266", "score": "0.7286122", "text": "function getHeader($key)\n {\n $key = strtolower($key);\n if(isset($this->headers[$key])) {\n return $this->headers[$key];\n } else {\n trigger_error(sprintf('Header \"%s\" not found', $key));\n return false;\n }\n }", "title": "" }, { "docid": "3b3ef9174dc4edeaed4f8adab65d295b", "score": "0.72507006", "text": "public function getHeader($key) {\n if( ! $this->headerIsSet( $key ) )\n return null;\n else\n return $this->headers[strtolower($key)];\n }", "title": "" }, { "docid": "6c1735a52cebf3851b979aae8069bfc4", "score": "0.7063686", "text": "public function get_header($header) {\n return $this->headers[$header];\n }", "title": "" }, { "docid": "8f45cfb96d9f4e02bdedda556fb33871", "score": "0.7062293", "text": "public function getHeader($key)\n {\n return $this->app->arrGet($key, $this->headers);\n }", "title": "" }, { "docid": "e7bfda3efaa5b200c1ef945ba86ea032", "score": "0.7056001", "text": "public function getHeader( $key ) {\n\t\treturn isset($this->headers[$key]) ? $this->headers[$key] : null;\n\t}", "title": "" }, { "docid": "1c494d91c59e5b23cd8ebe96c75dae67", "score": "0.70257556", "text": "function getHeader($key = null)\n {\n if (is_null($key)) return $this->headers;\n $key = strtolower($key);\n if (!isset($this->headers[$key])) return null;\n return $this->headers[$key];\n }", "title": "" }, { "docid": "b1effec39be583208bb402156953c948", "score": "0.7016573", "text": "public function getHeader();", "title": "" }, { "docid": "701c85d04bb8d0e5e258e5cf1139ae7d", "score": "0.69992065", "text": "public function getHeader($key)\n\t{\n\t\treturn !empty($this->headers[$key]) ? $this->headers[$key] : null;\n\t}", "title": "" }, { "docid": "ac478ca46d4f0d1b72f5327d2f67f29e", "score": "0.6982009", "text": "public function getHeader($key)\n {\n $headers = $this->getHeaders();\n $key = $this->headerLabel($key);\n if (isset($headers[$key])) {\n return $headers[$key];\n }\n }", "title": "" }, { "docid": "bf3f2ec22c4a1fdf65d4f04dd45b19ec", "score": "0.69793147", "text": "public function headers($key = NULL);", "title": "" }, { "docid": "762e00a0af9e848e4bb137834792fac0", "score": "0.6862813", "text": "public function getHeader($key)\n {\n $key = strtolower($key);\n\n return array_key_exists($key, $this->headers) ?\n $this->headers[$key] : null;\n }", "title": "" }, { "docid": "ef918a1b8ef8e357c0f8d1b8350b2985", "score": "0.684253", "text": "public function getHeader($headerName);", "title": "" }, { "docid": "8ba9751c797353e6b61eb3f37365270f", "score": "0.67988235", "text": "public function getHeader(string $key)\n {\n return ($this->getRequest())->getHeader($key);\n }", "title": "" }, { "docid": "4ad9e003e2c3cad99d0d7dc77477d29b", "score": "0.6760839", "text": "function getHeader($header, $default = null, $match = Collection::MATCH_EXACT);", "title": "" }, { "docid": "1547d0973da4a7436b25c798a69567dc", "score": "0.6716941", "text": "public function getRequestHeader($key)\n {\n if (!$this->_headers) {\n $this->getHeaders();\n }\n //PHP normalizes header keys\n $trimmedKey = HttpProcessUtility::headerToServerKey(trim($key));\n\n if (array_key_exists($trimmedKey, $this->_headers)) {\n return $this->_headers[$trimmedKey];\n }\n\n return null;\n }", "title": "" }, { "docid": "a58c8a78e5321a6e68c979c6a9a6ba33", "score": "0.67108166", "text": "public function getHeader($header)\n {\n return $this->headers[$header];\n }", "title": "" }, { "docid": "48e45a250095c867ca65d5a54cc70116", "score": "0.6651893", "text": "public function getHeaderVal($key)\n {\n $k = get_akey_nc($key, $this->header);\n if ($k == null) {\n return null;\n }\n return $this->header[$k];\n }", "title": "" }, { "docid": "56039e4a9eaac441c6952c1c719138df", "score": "0.66475886", "text": "protected function getHeader($header)\n {\n return $this->request->retrieveItem('headers', $header);\n }", "title": "" }, { "docid": "9a764dbe03c11deda84aac2d96ef680c", "score": "0.65926325", "text": "public function getHeader($key = null)\n {\n if (is_null($key)) {\n return $this->header;\n }\n\n return $this->header[$key] ?? null;\n }", "title": "" }, { "docid": "bc5ea99005d410a6e367381dd1eec532", "score": "0.6398191", "text": "function get_header( $name = null ) {}", "title": "" }, { "docid": "25c522ef1677ab1424adb621a797911b", "score": "0.63974065", "text": "public function getHeader(string $header)\n {\n return $this->headers[$header];\n }", "title": "" }, { "docid": "aec3bc71634f660cfecb6d1762989ea0", "score": "0.63848567", "text": "public function getHeader($_header) {\n\t\t$headers = $this->getHeaders();\n\t\t\n\t\t$val = false;\n\t\tforeach($headers as $h) {\n\t\t\t$title = explode(\":\", $h)[0];\n\t\t\tif ($title == $_header) {\n\t\t\t\tif(isset(explode(\":\", $h)[1])) {\n\t\t\t\t\t$val = explode(\":\", $h)[1];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$val = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $val;\n\t}", "title": "" }, { "docid": "d89080a54e0176df0ca941ee19a76208", "score": "0.63704544", "text": "function getHeader($fp,$header){\r\n\t\t$meta_data = stream_get_meta_data($fp);\r\n\t\tforeach($meta_data['wrapper_data'] as $response){\r\n\t\t\tif(strpos(strtolower($response),$header)!==false){\r\n\t\t\t\treturn substr($response,strpos($response,\":\")+1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f5590762c62c598f61268946c4192814", "score": "0.6350651", "text": "public function getHeader() \n {\n return $this->header;\n }", "title": "" }, { "docid": "222477c27b4fb08033eabd4411afe887", "score": "0.6342408", "text": "public function getHeader($name);", "title": "" }, { "docid": "222477c27b4fb08033eabd4411afe887", "score": "0.6342408", "text": "public function getHeader($name);", "title": "" }, { "docid": "7248d680d127f2005a0ad94b498d373b", "score": "0.63211447", "text": "function getHeaders();", "title": "" }, { "docid": "2a77a23ba3850d1d89a623cff0396597", "score": "0.63154954", "text": "public function getHeader ($field)\n {\n return $this->headers[$field];\n }", "title": "" }, { "docid": "562e52cd315a6d31caa318fd0d87057f", "score": "0.63067377", "text": "public function getHeader($name){\n return $this->headers[$name];\n }", "title": "" }, { "docid": "42cef91c06425f8912aa0f945f592161", "score": "0.6299078", "text": "public function getHeader($header)\n {\n if (!isset($this->headers[$header])) return null;\n return $this->headers[$header];\n }", "title": "" }, { "docid": "628df43b97eac0ff26d4cda91dce48b2", "score": "0.6296447", "text": "function get_header();", "title": "" }, { "docid": "8636f4673302cd76ca2c39199003651c", "score": "0.6291465", "text": "function getHeader() {\n return $this->_header;\n }", "title": "" }, { "docid": "247b2c7980e8475d2c0192a26962ba1d", "score": "0.62843984", "text": "public function getHeader()\n {\n return $this->header;\n }", "title": "" }, { "docid": "247b2c7980e8475d2c0192a26962ba1d", "score": "0.62843984", "text": "public function getHeader()\n {\n return $this->header;\n }", "title": "" }, { "docid": "247b2c7980e8475d2c0192a26962ba1d", "score": "0.62843984", "text": "public function getHeader()\n {\n return $this->header;\n }", "title": "" }, { "docid": "247b2c7980e8475d2c0192a26962ba1d", "score": "0.62843984", "text": "public function getHeader()\n {\n return $this->header;\n }", "title": "" }, { "docid": "247b2c7980e8475d2c0192a26962ba1d", "score": "0.62843984", "text": "public function getHeader()\n {\n return $this->header;\n }", "title": "" }, { "docid": "247b2c7980e8475d2c0192a26962ba1d", "score": "0.62843984", "text": "public function getHeader()\n {\n return $this->header;\n }", "title": "" }, { "docid": "247b2c7980e8475d2c0192a26962ba1d", "score": "0.62843984", "text": "public function getHeader()\n {\n return $this->header;\n }", "title": "" }, { "docid": "8a6ab340cb50d94d67ff39db0b17a273", "score": "0.6279966", "text": "public function getHeader(string $name) : string;", "title": "" }, { "docid": "b1d65dd072d18efc0c86c961e4b58c8c", "score": "0.626056", "text": "public function GetHeader()\n {\n return $this->HeaderName;\n }", "title": "" }, { "docid": "14aa39c6882a25d87cabb49087afde5a", "score": "0.62521905", "text": "public function getHeader() {\n return $this->header;\n }", "title": "" }, { "docid": "d13fd15bb3279c26cde12133b42255f8", "score": "0.6236988", "text": "public function getHeader($header)\n {\n if (array_key_exists($header, $this->responseHeaders)) {\n return $this->responseHeaders[$header];\n }\n // Do case-insensitive search\n foreach ($this->responseHeaders as $k => $v) {\n if (strtolower($k) == strtolower($header)) {\n return $v;\n }\n }\n }", "title": "" }, { "docid": "155d301c367b548537c6818f1c7613c8", "score": "0.62301093", "text": "public function getHeader() {\n\t\treturn $this->header;\n\t}", "title": "" }, { "docid": "e289825204e06151beda41a8aaf8b297", "score": "0.6226005", "text": "function getHeader($name){\n\t\tif(array_key_exists($name, $this->headers)){\n\t\t\treturn $this->headers[$name];\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.62251544", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.62251544", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.62251544", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.62251544", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.62251544", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.62251544", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.62251544", "text": "public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.62251544", "text": "public function getHeaders();", "title": "" }, { "docid": "27a18f83db9e389ae8ec74b95786f888", "score": "0.62090933", "text": "public function getHeaders () {}", "title": "" }, { "docid": "27a18f83db9e389ae8ec74b95786f888", "score": "0.62090933", "text": "public function getHeaders () {}", "title": "" }, { "docid": "a331a2c75d4699a0630e3381ded277e6", "score": "0.6162066", "text": "public function getHeaderField($name);", "title": "" }, { "docid": "930cacc625b502d2d583fd75c6351d98", "score": "0.61501086", "text": "public function getHeader()\n {\n if(isset($this->_header))\n return $this->_header;\n \n $customHeader=$this->getCustomHeader();\n if(!empty($customHeader))\n return $customHeader;\n else\n return CMap::mergeArray($this->getStandardHeader(),$this->_headers);\n }", "title": "" }, { "docid": "e15e5b0d73e6ec4ca08ef7e7667f82e5", "score": "0.6133398", "text": "public function header(string $key): ?string\n {\n return $this->headers[$key] ?? null;\n }", "title": "" }, { "docid": "160ef52fdc62ca3354975ebda1a435f5", "score": "0.61333483", "text": "function &getHeaderAt($id = 0)\n {\n return $this->_incomingHeaders[$id];\n }", "title": "" }, { "docid": "eccac7f6f6664d1baee21dd7ba878b30", "score": "0.6127604", "text": "public function getHeaders() {}", "title": "" }, { "docid": "a3a90428de518881fa6234b0f1b41446", "score": "0.6112047", "text": "public function getHeader($header, $default = null);", "title": "" }, { "docid": "03763dbac85a8a1904ac9603fe84a20c", "score": "0.61078584", "text": "function header_helper ( $key = null, $value = null ) {\n\tif ( function_exists(\"apache_request_headers\") ) {\n\t\t$headers = apache_request_headers();\n\t} else {\n\t\t$headers = _parseRequestHeaders();\n\t}\n\n\tif ( is_null($key) ) {\n\t\treturn $headers;\n\t}\n\n\tif ( is_null($value) ) {\n\t\treturn ( array_key_exists($key, $headers) ) ? $headers[$key] : false;\n\t}\n\n\theader($key.\": \".$value);\n}", "title": "" }, { "docid": "6daa2944afcf5b52edbf9bff93dd5f73", "score": "0.6107019", "text": "function getHeader()\n{\n\tif (!$this->_headerHasBeenMade) {\n\t\t$this->makeHeader();\n\t}\n\treturn $this->header;\n}", "title": "" }, { "docid": "0dc917af1811e4680e7ccc4e11b0df5a", "score": "0.61046207", "text": "function getHeader($ch, $header) {\n $i = strpos($header, ':');\n if (!empty($i)) {\n $key = str_replace('-', '_', strtolower(substr($header, 0, $i)));\n $value = trim(substr($header, $i + 2));\n $this->http_header[$key] = $value;\n }\n return strlen($header);\n }", "title": "" }, { "docid": "d6d0fa531d3b0f3d26378cce1d8fe50b", "score": "0.6066313", "text": "public function getHeader()\n {\n return $this->headers;\n }", "title": "" }, { "docid": "f8c83d8ab9a474fafd5c72c287466ddc", "score": "0.60437524", "text": "function request_headers($key = null) {\n\n static $headers = null;\n\n // if first call, pull headers\n if (!$headers) {\n // if we're not on apache\n $headers = array();\n foreach ($_SERVER as $k => $v)\n if (substr($k, 0, 5) == 'HTTP_')\n $headers[strtolower(str_replace('_', '-', substr($k, 5)))] = $v;\n }\n\n // header fetch\n if ($key !== null) {\n $key = strtolower($key);\n return isset($headers[$key]) ? $headers[$key] : null;\n }\n\n return $headers;\n}", "title": "" }, { "docid": "49687cb0fbe105eb689318b3b6c87f27", "score": "0.6040682", "text": "public function getHeader(string $name): string;", "title": "" }, { "docid": "d7dd0aa1b4c59111f510e86b3e15bfcc", "score": "0.6004302", "text": "public function getHeader() {\n return $this->whitelist ? : $this->header;\n }", "title": "" }, { "docid": "d7522231c2b96074300a2db64c86010a", "score": "0.5986328", "text": "public function getHeaderFields();", "title": "" }, { "docid": "aa2445cc2dc4f94da3447630ffc54e43", "score": "0.59603614", "text": "function getHeader($ch, $header) { \r\n $i = strpos($header, ':'); \r\n if (!empty($i)) { \r\n $key = str_replace('-', '_', strtolower(substr($header, 0, $i))); \r\n $value = trim(substr($header, $i + 2)); \r\n $this->http_header[$key] = $value; \r\n } \r\n return strlen($header); \r\n }", "title": "" }, { "docid": "2c819fd25375c1d275134c6012a767ec", "score": "0.59573334", "text": "public function getResponseHeader();", "title": "" }, { "docid": "a6d66344a4d05af8ba8d27d8db123d48", "score": "0.5951723", "text": "public function header($key = null, $default = null);", "title": "" }, { "docid": "fe9ae06d3752f0974c0b38bbdb605199", "score": "0.5948702", "text": "function getHeader($name)\n {\n return isset($this->headers[$name]) ? $this->headers[$name] : null;\n }", "title": "" }, { "docid": "5eab13d44bfd0c8815c693aa453e6e39", "score": "0.594698", "text": "function addHeader($header)\n\t{\n\t\tif(!preg_match('/^(.+):.+/', $header, $matches)) {\n\t\t\ttrigger_error(sprintf('Invalid header \"%s\"', $header), E_USER_WARNING);\n\t\t\treturn false;\n\t\t}\n $key = strtolower($matches[1]);\n\t\t$this->headers[$key] = $header;\n\t\treturn $key;\n\t}", "title": "" }, { "docid": "be4f1969b8061a44c4ec8bd4f5ff73b6", "score": "0.5931122", "text": "function getHeader($ch, $header) {\n\t\t$i = strpos($header, ':');\n\t\tif (!empty($i)) {\n\t\t\t$key = str_replace('-', '_', strtolower(substr($header, 0, $i)));\n\t\t\t$value = trim(substr($header, $i + 2));\n\t\t\t$this->http_header[$key] = $value;\n\t\t}\n\t\treturn strlen($header);\n\t}", "title": "" }, { "docid": "f0d387f8786eb2c292a97296767a9912", "score": "0.59306425", "text": "public function getHeader($name)\n {\n }", "title": "" }, { "docid": "38f6fe85ef463a82b4f2382e6b67039c", "score": "0.5920895", "text": "public function removeHeader($key);", "title": "" }, { "docid": "75d7af3c3f287f95cca404251b0d9b84", "score": "0.591513", "text": "function getTokenizedHeader($header, $token = ';', $match = Collection::MATCH_EXACT);", "title": "" }, { "docid": "444c5815cc0fd89463c3cb88f8477bf0", "score": "0.5909217", "text": "public function getHeader($name) {\n if (isset($this->headers[$name])) {\n return $this->headers[$name];\n }\n }", "title": "" }, { "docid": "e37ee7fda53e9ea5cbdfc884bf943231", "score": "0.5908735", "text": "public static function header($key = null, $default = null){\n\t\treturn Illuminate\\Http\\Request::header($key, $default);\n\t }", "title": "" }, { "docid": "e37ee7fda53e9ea5cbdfc884bf943231", "score": "0.5908735", "text": "public static function header($key = null, $default = null){\n\t\treturn Illuminate\\Http\\Request::header($key, $default);\n\t }", "title": "" }, { "docid": "de130b9b5c6bef2b8eddc6c95cebcfb0", "score": "0.5908114", "text": "public function getHeader($header)\n {\n return isset($this->headers[$header]) ? $this->headers[$header] : [];\n }", "title": "" }, { "docid": "e5590ae78b6b51c600f2c91ab44ffaf0", "score": "0.59068114", "text": "public function get(string $k)\n {\n return $this->headers[trim(strtolower($k))] ?? null;\n }", "title": "" }, { "docid": "07211ac66143fca1ccac61bddd0c6378", "score": "0.590148", "text": "public function getHeader($name, $format = null);", "title": "" }, { "docid": "060a958ce04ce366d2ec540738768324", "score": "0.58859223", "text": "public function getHeader($filename)\n {\n $csv = Reader::createFromPath($filename, 'r');\n $csv->setHeaderOffset(0);\n\n return $csv->getHeader(); //returns the CSV header record\n }", "title": "" }, { "docid": "007e4c2aaae021ebee5dc7378e02892d", "score": "0.58850914", "text": "function getHeader($name) {\r\n\r\n\t\t//....\r\n\r\n }", "title": "" }, { "docid": "62c2a205ee43da4ffec5724d33dcb578", "score": "0.58796597", "text": "private function getHeaderInformation($header = array()) {\n $result = array();\n foreach ($header as $key => $value) {\n $found = strpos($key, 'HTTP_');\n if ($found !== false) {\n $result[$key] = $value;\n }\n }\n return $result;\n }", "title": "" }, { "docid": "e42b3dea408fe67786270e4e25e42c4a", "score": "0.5878867", "text": "function getHeader()\n {\n return (string) $this->_sHeader;\n }", "title": "" }, { "docid": "953ecc5360bfa1c4f05fd16a98089812", "score": "0.5878064", "text": "function getHeader( $ch, $header )\n\t{\n\t\t$i = strpos( $header, \":\" );\n\t\tif( ! empty( $i ) ) :\n\t\t\t$key = str_replace( '-', '_', strtolower( substr( $header, 0, $i ) ) );\n\t\t\t$value = trim( substr( $header, $i + 2 ) );\n\t\t\t$this -> http_header[$key] = $value;\n\t\tendif;\n\t\treturn strlen( $header );\n\t}", "title": "" }, { "docid": "3d72b2f043596a31900d399093c00e0c", "score": "0.58676696", "text": "public function getHeader()\n {\n if (!$this->header instanceof Header) {\n $this->header = new Header;\n }\n return $this->header;\n }", "title": "" }, { "docid": "48b599dfb6ffa30fde8f2dff0624ab81", "score": "0.58658254", "text": "function getHeaders($name) {\r\n\r\n\t\t// ...\r\n\r\n }", "title": "" }, { "docid": "0f5fc05c98f1c2536334c43d426f2bf2", "score": "0.5854786", "text": "public function getHeader(string $key, string $default = ''): string\n {\n return (isset($this->swoole->header[$key])) ? $this->swoole->header[$key] : $default;\n }", "title": "" }, { "docid": "87fbb29672c1e1f34c4f955979cd785f", "score": "0.5853122", "text": "public function getHeader(): array;", "title": "" }, { "docid": "87fbb29672c1e1f34c4f955979cd785f", "score": "0.5853122", "text": "public function getHeader(): array;", "title": "" }, { "docid": "8df49b5d289b5bbe04bf7c7bf6a7699d", "score": "0.58485854", "text": "public function getHeader($header)\n {\n $headers = array_change_key_case($this->getHeaders());\n\n return \\Sledgehammer\\array_value($headers, strtolower($header));\n }", "title": "" }, { "docid": "3b73d4894afff31da3dba5ad6a276539", "score": "0.5846404", "text": "public function getHeaders()\n {\n }", "title": "" } ]
9bfcb1b9dcb392e9f5c870e64ebfc749
/End Client Data Insert Function /START CLIENT LISTING DATA FUNCTION
[ { "docid": "22454beea58c23c0a0687a231d07e81f", "score": "0.5029941", "text": "function clientGetValue($clientID=false)\r\n {\t\r\n\t\tif(isset($clientID) && !empty($clientID))\r\n \t\t{\r\n \t\t\t$retrieveList =$this->data['retrieveList']=$this->ClientModel->get(array('clientID'=>$clientID));\r\n \t\t}\r\n \t\t$clientLists = $this->data['clientLists']=$this->ClientModel->get(); \t\r\n\t\t?>\r\n\t\t\t<div class=\"panel panel-default\">\r\n \t\t\t<div class=\"panel-body\">\r\n\t\t\t\t\t<script type=\"text/javascript\">\r\n\t\t\t\t\t\tjQuery(document).ready(function($)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$(\"#example-1\").dataTable({\r\n\t\t\t\t\t\t\t\t\taLengthMenu: [\r\n\t\t\t\t\t\t\t\t\t[10, 25, 50, 100, -1], [10, 25, 50, 100, \"All\"]\r\n\t\t\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t</script>\r\n\t\t\t\t\t<div class=\"table-responsive\" data-pattern=\"priority-columns\" data-focus-btn-icon=\"fa-asterisk\" data-sticky-table-header=\"true\" data-add-display-all-btn=\"true\" data-add-focus-btn=\"true\">\r\n\t\t\t\t\t\t<table id=\"example-1\" cellspacing=\"0\" class=\"table table-small-font table-bordered table-striped\">\r\n\t\t\t\t\t\t\t<thead>\r\n\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t\t<th>S. no</th>\r\n\t\t\t\t\t\t\t\t\t<th>Client Name</th>\r\n\t\t\t\t\t\t\t\t\t<th>Contact Persone</th>\r\n\t\t\t\t\t\t\t\t\t<th>Contact Number</th>\r\n\t\t\t\t\t\t\t\t\t<th>Action</th>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t\t<tfoot>\r\n\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t\t<th>S. no</th>\r\n\t\t\t\t\t\t\t\t\t<th>Client Name</th>\r\n\t\t\t\t\t\t\t\t\t<th>Contact Persone</th>\r\n\t\t\t\t\t\t\t\t\t<th>Contact Number</th>\r\n\t\t\t\t\t\t\t\t\t<th>Action</th>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t\t\t<tbody>\r\n\t\t\t\t\t\t\t<?php if(isset($clientLists) && !empty($clientLists)){ $i=1; foreach($clientLists as $list){?>\r\n\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t\t<td><?=$i;?></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php if(isset($list->clientName)){ echo $list->clientName; } ?></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php if(isset($list->contactPerson)){ echo $list->contactPerson; } ?></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php if(isset($list->contactNumber)){ echo $list->contactNumber; } ?></td>\r\n\t\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t\t<a onclick=\"clientEditValue(<?=$list->clientID; ?>);\" class=\"btn btn-secondary btn-sm btn-icon icon-left\"><i class=\"fa-pencil-square-o\"></i> Edit </a>\r\n\t\t\t\t\t\t\t\t\t\t<a onclick=\"clientDelete(<?=$list->clientID; ?>);\"class=\"btn btn-danger btn-sm btn-icon icon-left\"><i class=\"fa fa-trash-o\"></i> Delete </a>\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<?php $i++;}}?>\r\n\t\t\t\t\t\t\t</tbody>\t\r\n\t\t\t\t\t\t</table>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t<?php \r\n }", "title": "" } ]
[ { "docid": "03462bb0759a44234e70efa2dd82586f", "score": "0.654255", "text": "function insertClients() {\n\t/*\n\t1|Active\n\t5|Retested Negative\n\t10|Relocated\n\t3|Transfer Out\n\t6|Exits over 18yrs\n\t4|Deceased\n\t2|Lost to follow-up\n\t7|Transfer to LTP Centre\n\t8|Declined\n\t9|VCT\n\t*/\n\tglobal $pureList,$AppUI,$clientStatusCount,$cleanList;\n\tif(!is_array($cleanList)){\n\t\t$cleanList = array();\n\t}\n\t$clientStatusCount = array(1=>0,9=>0,'rest'=>0);\n\t$q = new DBQuery ();\n\t\n\t$q->addTable ( \"clients_staging\", 'cs' );\n\t$q->addQuery ( \"DISTINCT cs.client_adm_no, c.client_id, cs.client_first_name, cs.client_last_name,\n\t\t\t\t\tcs.client_entry_date,cs.client_gender,cs.client_doa,cs.client_dob, \n\t\t\t\t\tcs.client_center,cs.client_status,cs.client_nhif,cs.client_immun,\n\t\t\t\t\tcs.client_nhif_n,cs.client_immun_n,cs.client_lvd,cs.client_lvd_form,cs.client_obsolete\" );\n\t$q->addJoin ('clients','c','c.client_adm_no = cs.client_adm_no','left');\n\t//$q->addWhere ('c.client_id is null');\t\n\t$q->addGroup ( \"client_adm_no\" );\n\t$sql = $q->prepare ();\t\n\t$new_clients = $q->loadArrayList ();\t\n\t$fields = array (\n\t\t\t\t\t\t\"client_adm_no\", \"client_first_name\", \"client_last_name\", \"client_entry_date\", \n\t\t\t\t\t\t'client_gender', 'client_doa', 'client_dob' ,'client_center','client_status',\n\t\t\t\t\t\t'client_nhif','client_immun','client_nhif_n','client_immun_n','client_lvd','client_lvd_form','client_obsolete'\n\t\t\t\t\t);\n\t//insert new clients\n\t$pureList=array();\n\tforeach ( $new_clients as $new_client ) {\n\t\t$q = new DBQuery ();\n\t\t$q->addTable ( \"clients\" );\n\t\t$clid=array_splice($new_client,1,1);\n\t\tfor($fieldcount = 0, $fecnt = count ( $new_client ); $fieldcount < $fecnt; $fieldcount ++) {\n\t\t\tif(!is_null($clid[0])){\n\t\t\t\t$q->addUpdate( $fields [$fieldcount], $new_client [$fieldcount] );\n\t\t\t}else{\t\t\t\t\n\t\t\t\tif (! empty ( $new_client [$fieldcount] )) {\n\t\t\t\t\t$q->addInsert ( $fields [$fieldcount], $new_client [$fieldcount] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!is_null($clid[0])){\n\t\t\t$q->addWhere('client_id=\"'.$clid[0].'\"');\n\t\t\t$cleanList[]=$clid[0];\n\t\t}\n\t\t$sql = $q->prepare ();\t\t\n\t\t$q->exec ();\n\t\t$pureList[]='\"'.$new_client[0].'\"';\n\t\tif($new_client[8] == '1'){\n\t\t\t++$clientStatusCount[1];\n\t\t}elseif ($new_client[8] == '9'){\n\t\t\t++$clientStatusCount[9];\n\t\t}else {\n\t\t\t++$clientStatusCount['rest'];\n\t\t}\n\t}\n\tif(count($pureList) > 0){\n\t\t/*$sql='delete from clients_staging where client_adm_no not in ('.implode(',',$pureList).')';\n\t\t$res=mysql_query($sql);*/\n\t}else{\n\t\t$AppUI->setMsg ( \"No new clients found in this file. Import process aborted.\" );\n\t\t//$obj->doImported();\n\t\tendMonitoring($monitorKey);\n\t\t$AppUI->redirect ( \"m=manager&part=importer\" );\n\t\t\n\t\treturn ;\n\t}\n}", "title": "" }, { "docid": "82866d5e30e38c7c229c53bc9b466da6", "score": "0.6218986", "text": "function loadData()\n\t{\n\t\tglobal $allClients, $pathToClientList;\n\t\t\n\t\t$fh = fopen($pathToClientList, 'r');\n \t$theData = fread($fh, filesize($pathToClientList));\n \tfclose($fh);\n \t\n \t// explode by newlines\n \t$entries = explode(\"\\n\",$theData);\n \tforeach($entries as $entry) // for each string\n \t{\n \t\t// explode by tabs\n \t\t$values = explode(\",\",$entry);\n \t\t\n \t\t// create the client object\n \t\t$client = array();\n \t\t$client['email'] = $values[0];\n \t\t$client['password'] = $values[1];\n \t\t$client['first'] = $values[2];\n \t\t$client['last'] = $values[3];\n \t\t$client['company'] = $values[4];\n \t\t$client['permissions'] = $values[5];\n\t\t\tif($values[6])\n\t\t\t{\n\t\t\t\t$client['expiration'] = $values[6];\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t$client['expiration'] = date(\"n/j/Y\"); \n\t\t\t}\n \t\t// into the hash table by their email\n \t\t$allClients[$client['email']] = $client; \n \t}\n\t}", "title": "" }, { "docid": "1fc0275fc045597287e3320f662f97d1", "score": "0.61725944", "text": "public function insertClient($data)\n\t{\n\t\t$this->insertQuery($data);\t\n\t}", "title": "" }, { "docid": "aa0d949d4b5735af8ac1f58a162a72b9", "score": "0.6099231", "text": "function processClientInsert($params)\n {\n if(!isset($params[\"clientId\"]) or $params[\"clientId\"] == \"\")\n\t{\n\t $output = array();\n\t $strdata = $params[\"clientName\"] . \" \" . strftime(\"%Y%m%d%H%M%S\");\n\t $tmpfile = \"/tmp/processClientInsert\";\n\t $fileHandle = fopen($tmpfile, \"w\");\n if($fileHandle)\n {\n\t fwrite($fileHandle, $strdata);\n\t fclose($fileHandle);\n }\n\t $cmd = \"md5sum \" . $tmpfile;\n\t exec($cmd, $output);\n\t unlink($tmpfile);\t \n\t $params[\"clientId\"] = substr($output[0], 0, 16);\t \n\t}\n\n $this->addVirtualClient($params);\n\n // add the link between the client and the host for the access to the data via the proxy\n exec(SCRIPTSPATH . \"/clientManageClientDest.sh \" . CLIENTHOSTFILE . \" add \" . $params[\"clientId\"] . \" \" . $params[\"server\"]);\n\n // create the client data using the remote BluePortailLang\n if(!file_get_contents($this->callRemoteFunc($params[\"server\"], \"processClientCreateData\", $params)))\n\t{\n\t syslog(LOG_ERR, \"BluePortailAdmin:processClientInsert cannot call processClientCreateData\");\n\t}\n\n return array( $params );\n }", "title": "" }, { "docid": "9dfe240a890df49e5250a81bec6f99b7", "score": "0.58871436", "text": "public function list_client(){\n $spathSQL= $this->GLOBALS_INI[\"PATH_HOME\"] . $this->GLOBALS_INI[\"PATH_MODEL\"] . \"list_client.sql\";\n $this->resultat[\"devis_list_client\"]= $this->oBdd->getSelectDatas($spathSQL);\n }", "title": "" }, { "docid": "cdb45ed743bdc2d2680523187e45277f", "score": "0.5801372", "text": "public function listClientInfo() {\n echo \"at the top of listClientInfo() of UpdateFbaReports class\";\n $pdo = $this->newConnection();\n $query = 'SELECT * FROM client_info ORDER BY id';\n $statement = $pdo->prepare($query);\n $statement->execute();\n\n $rows = [];\n $last_row = null;\n $new_cursor = null;\n\n while ($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n array_push($rows, $row);\n $last_row = $row;\n }\n\n return [\n 'clients' => $rows,\n 'lastRow' => $last_row\n ];\n }", "title": "" }, { "docid": "902c4795fa89716be3df1c2c72c085d2", "score": "0.579788", "text": "function storeServerList($data, $overwrite = false) {\n $data = htmlentities($data);\n if (htmlspecialchars($_GET['serverList'] == 1)) {\n global $returnData;\n if ($overwrite) {\n $returnData['serverList'] = $data;\n } else {\n $returnData['serverList'] .= $data;\n }\n }\n}", "title": "" }, { "docid": "2455cb672b406ca9354e79e60a4bd1bf", "score": "0.56477964", "text": "public function clientList ()\n {\n $clients_number = $this->Client->find('count');\n \n $current_page = 1;\n $max_per_page = 20;\n $total_pages = $this->getNumberOfPages($clients_number,$max_per_page);\n \n $clients = $this->getPaginatedList($max_per_page, $current_page);\n $this->set(array ('clients', 'total_pages', 'current_page', 'max_per_page'), array ($clients, $total_pages, $current_page, $max_per_page));\n \n }", "title": "" }, { "docid": "fe31dfca0b09b1ef684c05a33f893abf", "score": "0.55381316", "text": "public function ldev_connected_clients_import($p_value)\n {\n $l_dao_ldevclient = isys_cmdb_dao_category_g_ldevclient::instance($this->m_database);\n\n $l_data = $p_value[C__DATA__VALUE];\n\n if (is_array($l_data) && count($l_data))\n {\n foreach ($l_data as $l_key => $l_value)\n {\n if (is_array($l_value))\n {\n $l_data[$l_key][C__DATA__VALUE] = $this->m_object_ids[$l_value['id']];\n\n $l_found = false;\n\n if (is_array($this->m_category_data_ids[C__CMDB__CATEGORY__TYPE_GLOBAL][C__CATG__LDEV_CLIENT]))\n {\n if (array_key_exists($l_data[$l_key]['ref_id'], $this->m_category_data_ids[C__CMDB__CATEGORY__TYPE_GLOBAL][C__CATG__LDEV_CLIENT]))\n {\n $l_data[$l_key]['ref_id'] = $this->m_category_data_ids[C__CMDB__CATEGORY__TYPE_GLOBAL][C__CATG__LDEV_CLIENT][$l_data[$l_key]['ref_id']];\n $l_found = true;\n } // if\n } // if\n\n if (!$l_found)\n {\n $l_ldev_data = $l_dao_ldevclient->get_data(\n null,\n $l_data[$l_key][C__DATA__VALUE],\n \" AND isys_catg_ldevclient_list__title LIKE \" . $l_dao_ldevclient->convert_sql_text($l_data[$l_key]['ref_title']),\n null,\n C__RECORD_STATUS__NORMAL\n )\n ->get_row();\n\n if (!$l_ldev_data || $this->m_mode === isys_import_handler_cmdb::C__APPEND)\n {\n $l_data[$l_key]['ref_id'] = $l_dao_ldevclient->create(\n $l_data[$l_key][C__DATA__VALUE],\n C__RECORD_STATUS__NORMAL,\n $l_data[$l_key]['ref_title'],\n null,\n null,\n null,\n null,\n null\n );\n }\n else\n {\n $l_data[$l_key]['ref_id'] = $l_ldev_data['isys_catg_ldevclient_list__id'];\n } // if\n } // if\n }\n else\n {\n break;\n } // if\n } // foreach\n\n return $l_data;\n } // if\n\n return null;\n }", "title": "" }, { "docid": "1e228e072ad968804b83fc36efff66aa", "score": "0.5529255", "text": "public function add_client(){\n $spathSQL= $this->GLOBALS_INI[\"PATH_HOME\"] . $this->GLOBALS_INI[\"PATH_MODEL\"] . \"add_client.sql\";\n $this->resultat[\"devis_add_client\"]= $this->oBdd->treatDatas($spathSQL, array(\n \"id_ville\" => $this->VARS_HTML[\"id_ville\"], \n \"prenom_client\" => $this->VARS_HTML[\"prenom_client\"],\n \"nom_client\" => $this->VARS_HTML[\"nom_client\"], \n \"address_client\" => $this->VARS_HTML[\"address_client\"],\n \"tel_client\" => $this->VARS_HTML[\"tel_client\"],\n \"mail_client\" => $this->VARS_HTML[\"mail_client\"]\n ));\n }", "title": "" }, { "docid": "5f48493af8da6959119b958660293933", "score": "0.548537", "text": "public function loadClients()\n {\n }", "title": "" }, { "docid": "7bead983a900f6018fdea7a9a9bd291a", "score": "0.5436206", "text": "private function synDBandMailchimp()\n {\n\n echo '<br>syncing data <br>';\n\n $this->db_conn->dropTables();\n\n $mailChimpList = json_decode($this->getLists(),true);\n $newList = array();\n if(isset($mailChimpList['lists']))\n {\n foreach ($mailChimpList['lists'] as $item)\n {\n $newList[] = array('id'=>$item['id'], 'name'=>$item['name']);\n }\n }\n $this->setListCount(count($newList));\n return $this->db_conn->syncList($newList);\n }", "title": "" }, { "docid": "93b8333f4c3ac0c89e06bffbaa677c48", "score": "0.5422608", "text": "private function showClientList()\n\t{\n\t\t//Continous counter\n\t\t$nr = 1;\n\n\t\twhile ($clientInfo = $this->getClient())\n\t\t{\n\t\t\t$CClientO = new CClient($clientInfo);\n\t\t\t$i = 1;\n\n\t\t\t//Write the coloring for the row in the 0 entry of the array\n\t\t\t$lines[$nr] = array(0 => (($nr % 2) == 1));\n\n\t\t\tforeach ($this->outputColumns as $col)\n\t\t\t{\n\t\t\t\tswitch ($col)\n\t\t\t\t{\n\t\t\t\t\tcase CClientLister::COLUMN_STATUS: $lines[$nr][$i++] = $CClientO->generateHTMLStatusBar(); break;\n\t\t\t\t\tcase CClientLister::COLUMN_CLIENT: $lines[$nr][$i++] = $CClientO->generateHTMLClientNameBar(); break;\n\t\t\t\t\tcase CClientLister::COLUMN_GROUP: $lines[$nr][$i++] = $CClientO->generateHTMLGroupsBar(); break;\n\t\t\t\t\tcase CClientLister::COLUMN_PACKAGES: $lines[$nr][$i++] = $CClientO->generateHTMLPackagesBar(); break;\n\t\t\t\t\tcase CClientLister::COLUMN_JOBS: $lines[$nr][$i++] = $CClientO->generateHTMLWaitingAllJobsBar(); break;\n\t\t\t\t\tcase CClientLister::COLUMN_INSTALL_DATE: $lines[$nr][$i++] = $CClientO->getInstallDateHumanReadable(); break;\n\t\t\t\t\tcase CClientLister::COLUMN_LAST_CHANGE: $lines[$nr][$i++] = $CClientO->getModifyDateHumanReadable(); break;\n\t\t\t\t\tcase CClientLister::COLUMN_ACTION: $lines[$nr][$i++] = $CClientO->getActionString($this->getActionString()); break;\n\t\t\t\t\tcase CClientLister::COLUMN_IP: $lines[$nr][$i++] = $CClientO->getIP(); break;\n\t\t\t\t\tcase CClientLister::COLUMN_MAC: $lines[$nr][$i++] = $CClientO->getMAC(); break;\n\t\t\t\t\tcase CClientLister::COLUMN_CONTINUOUS_NUMBER: $lines[$nr][$i++] = $nr; break;\n\t\t\t\t\tcase CClientLister::COLUMN_CHECKBOX: $lines[$nr][$i++] = $this->generateHTMLClientNameIdCheckbox($clientInfo); break;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($i == 0)\n\t\t\t\tdie('showClientListHeader: No columns selected.');\n\n\t\t\t\n\t\t\t$nr++;\n\t\t}\n\n\t\t//Does extra sorting of special fields\n\t\t$this->sortLines($lines);\n\n\t\tif (count($lines) > 0)\n\t\t\t//Give out the lines\n\t\t\tforeach ($lines as $line)\n\t\t\t\tcall_user_func_array('HTML_showTableRow', $line);\n\n\t\t$this->showClientListExtraLine();\n\t}", "title": "" }, { "docid": "55cdf91ac187b8cb65d7c884df60dcc8", "score": "0.5413873", "text": "public function deleteList()\n {\n $db = Db::connect();\n\n $sql = \"DELETE FROM clients\";\n\n $query = $db->prepare($sql);\n\n $query->execute();\n }", "title": "" }, { "docid": "9c2b44d7133543329a9988fcfae3f128", "score": "0.54047394", "text": "public function addClient($data)\n\t{\n\n\t\t$options \t\t= $this->insert($data);\n\n\t\treturn $options;\n\n\t}", "title": "" }, { "docid": "c29e3dfa42b604985a99a7a4209c46f9", "score": "0.53980166", "text": "function insert_car_info($length = 2000)\r\n{\r\n global $mydb;\r\n global $mailto;\r\n \r\n delete_car_info();\r\n\r\n $start = 0;\r\n $reccount = 0;\r\n $start_time = time();\r\n do\r\n {\r\n $param = array();\r\n\r\n $param['start'] = $start;\r\n $param['length'] = $length;\r\n \r\n $start = $start + $length + 1;\r\n \r\n $recnum = 0;\r\n \r\n $cl = new soapclient(\"http://traindev.prsx.net/prs_ws/ws_server.php\");\r\n echo date(\"H:i:s\") . \"\\n\";\r\n $data = $cl->call('get_car_list', $param);\r\n echo \"get_car_list(\" .$param['start'] . \",\" . $param['length'] . \")<BR>\\n\";\r\n echo date(\"H:i:s\") . \"\\n\";\r\n if (!$cl->fault && $data)\r\n {\r\n $data = $data[0];\r\n foreach ($data as $row)\r\n {\r\n $recnum++;\r\n $car_type = $row['car_type'];\r\n $carinit = $row['carinit'];\r\n $f_carnum = $row['f_carnum'];\r\n $t_carnum = $row['t_carnum'];\r\n \r\n $sql = \"INSERT INTO car_data (\r\n car_type,\r\n carinit,\r\n f_carnum,\r\n t_carnum\r\n )\r\n VALUES (\r\n '$car_type',\r\n '$carinit',\r\n '$f_carnum',\r\n '$t_carnum'\r\n )\";\r\n echo \"inserting record number $recnum of $length\\n\";\r\n $qry = $mydb->query($sql);\r\n $err_msg = $qry->execute();\r\n if ($err_msg)\r\n {\r\n echo \"Error: $err_msg\\n\";\r\n $err = true;\r\n }\r\n else\r\n {\r\n $reccount++;\r\n }\r\n } \r\n\r\n }\r\n $cl = null;\r\n }while($data);\r\n \r\n if ($err)\r\n {\r\n $qry->rollback();\r\n echo \"There was an error inserting the records. There records have not been updated.\\n\";\r\n $msg = \"The update of the iCAR car_data table using the car registry web service has FAILED. \";\r\n $msg .= \"As a result, no records were updated in the iCAR car_data table.\\n\";\r\n $msg .= \"The last error message record was:\\n $err_msg\";\r\n echo $msg;\r\n if ($mailto)\r\n {\r\n $ret = mail($mailto, \"Update of iCAR Car Data from registry\", $msg);\r\n if ($ret) echo \"This notice was sent to $mailto\\n\";\r\n }\r\n }\r\n else\r\n {\r\n $qry->commit();\r\n set_syncdate();\r\n $end_time = time();\r\n $rtime = $end_time - $start_time;\r\n $rtime_m = round($rtime / 60,2);\r\n $msg = \"The update of the iCAR car_data table using the car registry web service was successful.\\n\";\r\n $msg .= \"$reccount records have been inserted.\\n\";\r\n $msg .= \"It took $rtime_m mins to run.\\n\";\r\n echo $msg;\r\n if ($mailto)\r\n {\r\n $ret = mail($mailto, \"Update of iCAR Car Data from registry\", $msg);\r\n if ($ret) echo \"Confirmation was sent to $mailto\\n\";\r\n }\r\n }\r\n}", "title": "" }, { "docid": "b40c58c99042196ded0ecbfbff900343", "score": "0.53876257", "text": "function clients_selectmenu_getData($ctlData,$clientID) {\t\n\t## db object\n\t$db_connection = new DB_Sql();\n\n\t$identifier = strtolower($ctlData['IDENTIFIER']);\n\t\n\t## in order to get the appropriate data- we need to join the connector, with the \n\t## clients and data tables\n\t$query = \"SELECT C.* FROM \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].\" AS A, \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].'2'.$identifier.\" AS B, \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].'_'.$identifier.\" AS C WHERE A.id=B.client_id AND B.item_id=C.id AND A.id='\".$clientID.\"'\";\n\t$result_pointer = $db_connection->query($query);\t\n\n\t$value = array();\n\twhile($db_connection->next_record()) {\n\t\t$value[] = $db_connection->Record['id'];\n\t}\t\n\treturn $value;\n}", "title": "" }, { "docid": "6568e5f23a6303a1452c7a9627159a38", "score": "0.53647524", "text": "function processClientCreateData($params)\n {\n exec(SCRIPTSPATH . \"/clientCreate.sh \" . $params[\"clientId\"]);\n return array( $params );\n }", "title": "" }, { "docid": "f0958605e4795e5b90b50547810f1eee", "score": "0.5331486", "text": "public function inserGuest($data){\n $data['cdate'] = time();\n $data['uip'] = CLIENT_IP_ADDR;\n $data['ubrowser'] = CLIENT_BROWSER;\n $sql = parent::createSqlText(array_keys($data), 'INSERT');\n $table = 'gmsg';\n $sql = str_replace('#table#', $table, $sql);\n $data_sql = parent::createDataSql($data);\n parent::sqlInsert($sql, $data_sql);\n return parent::getLastId();\n //return array('sql'=>$sql,'d'=>$data_sql);\n }", "title": "" }, { "docid": "a6fc0a7e7a66ef7b57a4fdd33058dc1e", "score": "0.53248686", "text": "public function run()\n {\n //\n Client::insert([\n ([\n \t'name'=>'Hanaqua',\n 'phone_number'=>'081234567',\n 'bank_name'=>'BCA',\n 'account_name'=>'Kimin',\n 'account_number'=>'12345678',\n 'address'=>'lippo karawaci'\n ]),\n ([\n \t'name'=>'Acek Bagan',\n 'phone_number'=>'081254321',\n 'bank_name'=>'Mandiri',\n 'account_name'=>'Acek',\n 'account_number'=>'87654321',\n 'address'=>'Poris Indah'\n ])\n ]);\n }", "title": "" }, { "docid": "144ae2c7cd80d84f557eecdfd8756438", "score": "0.5299128", "text": "private function chargeLesClients()\n\t{\n\t\t$resultat=$this->maBD->chargement('client');\n\t\t$nb=0;\n\t\twhile ($nb<sizeof($resultat))\n\t\t\t{\n\t\t\t//instanciation du client et ajout de celui-ci dans la collection\n\t\t\t$this->tousLesClients->ajouteUnClient($resultat[$nb][0],$resultat[$nb][1],$resultat[$nb][2],$resultat[$nb][3],$resultat[$nb][4],$resultat[$nb][5],$resultat[$nb][6]);\n\t\t\t$nb++;\n\n\t\t\t}\n\t}", "title": "" }, { "docid": "2f501c812999e12fd88747a93559e227", "score": "0.52839476", "text": "function afficherClients(){\n\t\t$sql=\"SElECT * From client\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "title": "" }, { "docid": "f9fad4958aad4ff6f2afa50cf9219162", "score": "0.5278441", "text": "function clients_selectmenu_deleteData($ctlData,$clientID) {\t\n\t## prepare the db object\n\t$db = new DB_Sql(); \n\t\n\t$identifier = strtolower($ctlData['IDENTIFIER']);\n\t\n\t## first we will delete any previously set entries\n\t$query = \"DELETE FROM \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].\"2\".$identifier.\" WHERE client_id='$clientID'\";\n\t$result_pointer = $db->query($query);\t\n}", "title": "" }, { "docid": "178ecf6862bb5f630e156522e92cba7b", "score": "0.52782196", "text": "function insertClient($mysqli,$value,$admin = false){\n\n\n\t$collumns = \"FirstName, LastName, DateofBirth, Nationality, Gender, Mobile, Email, Course, Uni, Uni_compl, CurrentAddress,HomeAddress, ConsultantID, CurrentStatus,Visa,Vexpiry,wechat,service,prevUni,prevStudy,prevComp,know,prevCountry,Ccountry\";\n\t$collumns .= $admin?\",Passport,Pexpiry,duedate\":\"\";\n\t// $collumns .= $admin?\"\":\",know\";\n\n\t$statusInsert = \"\";\n\n\tif(!$admin){\n\t\t$statusInsert = \"new client\";\n\n\n\t}\n\t$know = $value['know'];\n\t$fname = $value['fname'];\n\t$lname = $value['lname'];\n\t// $pname = $value['pname'];\n\t$gender = $value['gender'];\n\t$dob = $value['dob'];\n\t$nationality = $value['nationality'];\n\t$mobile = $value['mobile'];\n\t$email = $value['email'];\n\t$cam = $value['cam'];\n\t$uni = $value['uni'];\n\t$Ccountry = $value['Ccountry'];\n\t$comp = $value['comp'];\n\t$visa = $value['visa'];\n\t$vexpiry = $value['vexpiry'];\n\t$wechat = $value['wechat'];\n\t$prevStudy = $value['prevStudy'];\n\t$prevComp = $value['prevComp'];\n\t$prevUni = $value['prevStudy'];\n\t$service = $value['service'];\n\t$prevCountry = $value['prevCountry'];\n\tif($admin){\n\t\t$passport = $value['passport'];\n\t\t$pexpiry = $value['pexpiry'];\n\t\t$statusInsert = $value['status'];\n\t\t$duedate = $value['duedate'];\n\t}\n\t$caddress = $value['caddress'];\n\t$haddress = $value['haddress'];\n\n\n\n//if the user not logged in the consultant or the logged in user is a manager will be selected based on the dropdown otherwise it is taken from session\n\t$consultant = isset($_SESSION['userID']) && $_SESSION['userType'] == \"AGENT\"?$_SESSION['userID']:$value['consultant'];\n\n\n\n//getting all values and collumn\n\t$values = \"'$fname', '$lname', '$dob', '$nationality', '$gender', '$mobile', '$email', '$cam', '$uni', '$comp','$caddress','$haddress','$consultant','$statusInsert','$visa','$vexpiry','$wechat','$service','$prevUni','$prevStudy','$prevComp','$know','$prevCountry','$Ccountry'\";\n\t$values .= $admin?\",'$passport','$pexpiry','$duedate'\":\"\";\n\t// $values .= $admin?\"\":\",'$know'\";\n\n\n\t$query = \"INSERT INTO USER ($collumns)\n\tVALUES ($values)\";\n\n\tif($mysqli->query($query)){\n\t\t//redirect to the list page\n\n\n\t\tif(isset($_SESSION['userID'])){\n\n\t\t\t//header(\"Location: list.php?msg=Successfully Inserted the Client Data\");\n\t\t\t$last_id = $mysqli->insert_id;\n\t\t\theader(\"Location: PointTest.php?user=$last_id\");\n\t\t\texit;\n\t\t}else{\n\t\t\theader(\"Location: welcomeMessage.php\");\n\t\t\texit;\n\t\t}\n\n\n\t}else{\n\t\tif(isset($_SESSION['UserID'])){\n\t\t\theader(\"Location: list.php?msg=Failed Inserted the Client Data&flag=0\");\n\t\t\texit;\n\t\t}else{\n\t\t\theader(\"Location: editAppt.php?msg=Failed Inserted the Client Data&flag=0\");\n\t\t\texit;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "a433e49b7dca57e4da4c17e854e4fe33", "score": "0.5243535", "text": "function insertClientAction(){\r\n\t\tif($this->getRequest()->isPost()){\r\n\t\t\t$data = $this->getRequest()->getPost();\r\n\t\t\t$db=new Group_Model_DbTable_DbClient();\r\n\t\t\t$row=$db->addIndividaulClient($data);\r\n\t\t\tprint_r(Zend_Json::encode($row));\r\n\t\t\texit();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "bf2117a9b8576c9fd24d0ec5d19077e3", "score": "0.5218786", "text": "function processClientDelete($params)\n {\n $this->delVirtualClient($params);\n\n exec(SCRIPTSPATH . \"/clientManageClientDest.sh \" . CLIENTHOSTFILE . \" del \" . $params[\"clientId\"]);\n\n exec(SCRIPTSPATH . \"/clientManageKey.sh delClient 0 \" . $params[\"clientId\"]);\n\n // remove the client data using the remote BluePortailLang\n if(!file_get_contents($this->callRemoteFunc($params[\"server\"], \"processClientDeleteData\", $params)))\n\t{\n\t syslog(LOG_ERR, \"BluePortailAdmin:processClientInsert cannot call processClientDeleteData\");\n\t} \n\n return array( array( $params[\"clientId\"] ) );\n }", "title": "" }, { "docid": "2cda4cddd0625e00a6703b1748dbf8aa", "score": "0.52186865", "text": "public function insert_waiting_list ($data = array()) {\n\t\t/*\n\t\t\t$data['request_date']\t\t= ;\n\t\t\t$data['location']\t\t\t= ;\n\t\t\t$data['custommer_id']\t\t= ;\n\t\t\t$data['car_id']\t\t\t\t= ;\n\t\t*/\n\n\t\t$database = $this->db->insert('waiting_list', $data);\n\t\treturn $database;\n\t}", "title": "" }, { "docid": "34b12b0ec49b414eabf0d2cf7bdb068b", "score": "0.521492", "text": "function subscriber_list($parameters){\n\t\t$identifier\t= $this->check_parameters($parameters,\"identifier\");\n\t\t$sql=\"select *\t\t\t\t\n\t\t\t\tfrom newsletter_subscription inner join newsletter_data on newsletter_data.newsletter_identifier = newsletter_subscription.subscriber_newsletter\n\t\t\t\twhere subscriber_newsletter='$identifier' AND subscriber_client = $this->client_identifier order by newsletter_subscription.subscriber_email\";\n\t\t\n\t\tif ($this->module_debug){\n\t\t\t$this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,\"SQL Statement\",__LINE__,\"[$sql]\"));\n\t\t}\n\t\t$result = $this->call_command(\"DB_QUERY\",array($sql));\n\t\t$r = $this->call_command(\"DB_FETCH_ARRAY\",array($result));\n\t\t$result = $this->call_command(\"DB_QUERY\",array($sql));\n\t\t\t\t\n\t\t$variables = Array();\n//\t\t$variables[\"FILTER\"]\t\t\t= \"\";// $this->filter($parameters);\n\t\t//for paging by Muhammad Imran\n\t\t$variables[\"FILTER\"]\t\t\t= $this->filter_entries($parameters,$this->module_command.\"SUBSCRIBER_LIST\");\n\t\t$variables[\"NUMBER_OF_ROWS\"]\t= 0;\n\t\t$variables[\"START\"]\t\t\t\t= 0;\n\t\t$variables[\"as\"]\t\t\t\t= \"table\";\n\t\t$variables[\"FINISH\"]\t\t\t= 0;\n\t\t$variables[\"CURRENT_PAGE\"]\t\t= 0;\n\t\t$variables[\"NUMBER_OF_PAGES\"]\t= 0;\n\t\t\n\t\t$variables[\"HEADER\"]\t\t\t= MANAGE_SUBSCRIBERS .\" \".strip_tags(html_entity_decode($r['newsletter_label']));\n\t\t$variables[\"PAGE_BUTTONS\"] = Array(\n\t\t\tArray(\"NEWSLETTER_HOME\",$this->module_command.\"LIST\",LOCALE_NEWSLETTER_HOME),\n//\t\t\tArray(\"CANCEL\",$this->module_command.\"LIST\",LOCALE_CANCEL),\n\t\t\tArray(\"ADD\",$this->module_command.\"SUBSCRIBER_ADD\",ADD_NEW,\"subscriber_newsletter=$identifier\")\n\t\t);\n\t\tif ($this->call_command(\"DB_NUM_ROWS\",Array($result))==0){\n\t\t\tif ($this->module_debug){\n\t\t\t\t$this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,\"SQL Statement\",__LINE__,\"[Records not returned]\"));\n\t\t\t}\n\t\t}else{\n\t\t\tif ($this->module_debug){\n\t\t\t\t$this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,\"SQL Statement\",__LINE__,\"[Records returned]\"));\n\t\t\t}\n\t\t\t$page = $this->check_parameters($parameters,\"page\",\"1\");\n\t\t\t$number_of_records = $this->call_command(\"DB_NUM_ROWS\",array($result));\n\t\t\t$goto = ((--$page)*$this->page_size);\n\t\t\t\n\t\t\tif (($goto!=0)&&($number_of_records>$goto)){\n\t\t\t\t$pointer = $this->call_command(\"DB_SEEK\",array($result,$goto));\n\t\t\t}\n\t\t\tif ($goto+$this->page_size>$number_of_records){\n\t\t\t\t$finish = $number_of_records;\n\t\t\t}else{\n\t\t\t\t$finish = $goto+$this->page_size;\n\t\t\t}\n\t\t\t$goto++;\n\t\t\t$page++;\n\t\t\t\n\t\t\t$num_pages=floor($number_of_records / $this->page_size);\n\t\t\t$remainder = $number_of_records % $this->page_size;\n\t\t\tif ($remainder>0){\n\t\t\t\t$num_pages++;\n\t\t\t}\n\t\t\t\n\t\t\t$counter=0;\n\t\t\t$variables[\"PAGE_COMMAND\"] \t\t= $this->module_command.\"SUBSCRIBER_LIST\";\n\t\t\t$variables[\"NUMBER_OF_ROWS\"]\t= $number_of_records;\n\t\t\t$variables[\"START\"]\t\t\t\t= $goto;\n\t\t\t$variables[\"FINISH\"]\t\t\t= $finish;\n\t\t\t$variables[\"CURRENT_PAGE\"]\t\t= $page;\n\t\t\t$variables[\"NUMBER_OF_PAGES\"]\t= $num_pages;\n\t\t\t\n\t\t\t$start_page=intval($page/$this->page_size);\n\t\t\t$remainder = $page % $this->page_size;\n\t\t\tif ($remainder>0){\n\t\t\t\t$start_page++;\n\t\t\t}\n\t\t\t\n\t\t\t$variables[\"START_PAGE\"]\t\t= $start_page;\n\t\t\t\n\t\t\tif (($start_page+$this->page_size)>$num_pages)\n\t\t\t$end_page=$num_pages;\n\t\t\telse\n\t\t\t$end_page=$this->page_size;\n\t\t\t\n\t\t\t$variables[\"END_PAGE\"]\t\t\t= $end_page;\n\t\t\t\n\t\t\t$variables[\"RESULT_ENTRIES\"] =Array();\n\t\t\t$counter=0;\n\t\t\twhile (($r = $this->call_command(\"DB_FETCH_ARRAY\",array($result))) && ($counter<$this->page_size)){\n\t\t\t\t$counter++;\n\t\t\t\t$i = count($variables[\"RESULT_ENTRIES\"]);\n//\t\t\t\t$subscriber_group = $r[\"subscriber_group\"];\n\t\t\t\t$subscriber_group = explode(\"|\",$r[\"subscriber_group\"]);\n\t\t\t\t$subscriber_group_name = \"\";\n\t\t\t\tforeach($subscriber_group as $subscriber_group_id){\n\t\t\t\t\t$sql_group = \"select subscriber_group_name from newsletter_subscription_group where subscriber_group_identifier=\".$subscriber_group_id;\n\t\t\t\t\t$result_group = $this->call_command(\"DB_QUERY\",array($sql_group));\n\t\t\t\t\t$r_group = $this->call_command(\"DB_FETCH_ARRAY\",array($result_group));\n\t\t\t\t\t$subscriber_group_name .= $r_group[\"subscriber_group_name\"].\", \";\n\t\t\t\t}\n\t\t\t\t$subscriber_group_name = rtrim($subscriber_group_name,\", \");\n\t\t\t\t$variables[\"RESULT_ENTRIES\"][$i]=Array(\n\t\t\t\t\"identifier\"\t\t=> $r[\"subscriber_identifier\"],\n\t\t\t\t\"ENTRY_BUTTONS\" \t=> Array(),\n\t\t\t\t\"attributes\"\t\t=> Array(\n\t\t\t\t\t\tArray(LOCALE_SUBSCRIBER_LABEL,$r[\"subscriber_name\"],\"TITLE\",\"NO\"),\n\t\t\t\t\t\tArray(LOCALE_SUBSCRIBER_GROUP_LABEL,$subscriber_group_name,\"TITLE\",\"NO\"),\n\t\t\t\t\t\tArray(LOCALE_EMAIL_SUBSCRIBER,$r[\"subscriber_email\"],\"TITLE\",\"NO\")\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t$variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"][count($variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"])]\t=\tArray(\"EDIT\" , $this->module_command.\"SUBSCRIBER_EDIT&amp;subscriber_newsletter=\".$identifier,\tEDIT_EXISTING);\n\n\t\t\t\tif($r[\"subscriber_verified\"] == 1){\n\t\t\t\t\t$variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"][count($variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"])]\t=\tArray(\"UNSUBSCRIBE\" , $this->module_command.\"SUBSCRIBER_UNSUBSCRIBE\",\t\t\tUNSUBSCRIBE_EXISTING);\n\t\t\t\t}else{\n\t\t\t\t\t$variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"][count($variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"])]\t=\tArray(\"SUBSCRIBE\" , $this->module_command.\"SUBSCRIBER_SUBSCRIBE\",\t\t\tSUBSCRIBE_EXISTING);\n\t\t\t\t}\n\t\t\t\t$variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"][count($variables[\"RESULT_ENTRIES\"][$i][\"ENTRY_BUTTONS\"])]\t=\tArray(\"REMOVE\" , $this->module_command.\"SUBSCRIBER_REMOVE\",\tREMOVE_EXISTING);\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t$out = $this->generate_list($variables);\n\t\treturn $out;\n\n\t}", "title": "" }, { "docid": "dc5e068b6dd741586aefbf24845a361a", "score": "0.52056587", "text": "function add(){\n\t\tglobal $_CON;\n\t\tif(isset($_POST['btn_add'])){\n\t\t\t$inpTYPE = mysqli_real_escape_string($_CON, $_POST['inpTYPE']);\n\t\t\t$inpUSERNAME = mysqli_real_escape_string($_CON, $_POST['inpUNAME']);\n\t\t\t$inpFNAME = mysqli_real_escape_string($_CON, $_POST['inpFNAME']);\n\t\t\t$inpLNAME = mysqli_real_escape_string($_CON, $_POST['inpLNAME']);\n\t\t\t$inpADDRESS = mysqli_real_escape_string($_CON, $_POST['inpADDRESS']);\n\t\t\t$inpBIRTHDATE = mysqli_real_escape_string($_CON, $_POST['inpBIRTHDATE']);\n\t\t\t$inpBIRTHPLACE = mysqli_real_escape_string($_CON, $_POST['inpBIRTHPLACE']);\n\t\t\t$inpGENDER = mysqli_real_escape_string($_CON, $_POST['inpGENDER']);\n\t\t\t$inpCIVSTATS = mysqli_real_escape_string($_CON, $_POST['inpCIVSTATS']);\n\t\t\t$inpPWD = mysqli_real_escape_string($_CON, $_POST['inpPWD']);\n\t\t\t$inpCODE = mysqli_real_escape_string($_CON, $_POST['inpCODE']);\n\t\t\t$inpPWD = md5($inpPWD);\n\t\t\t//CHECK IF EIN EXIST\n\t\t\t$sqlSearch = mysqli_query($_CON, \"SELECT client_username FROM client_table WHERE client_username='$inpUSERNAME' \");\n\t\t\t$count = mysqli_num_rows($sqlSearch);\n\t\t\tif($count > 0){\n\t\t\t\tob_end_clean();\n\t\t\t\theader(\"location: clients.php?client=exist\");\n\t\t\t}else{\n\t\t\t\t$sqlInsert = mysqli_query($_CON, \"INSERT INTO client_table\n\t\t\t\t(client_username,\n\t\t\t\tfirst_name,\n\t\t\t\tlast_name,\n\t\t\t\tgender,\n\t\t\t\tcivil_stats,\n\t\t\t\taddress,\n\t\t\t\tbirthdate,\n\t\t\t\tbirthplace,\n\t\t\t\tpassword,\n\t\t\t\tmember_type,\n\t\t\t\taccount_code)\n\t\t\t\tVALUES(\n\t\t\t\t'$inpUSERNAME',\n\t\t\t\t'$inpFNAME',\n\t\t\t\t'$inpLNAME',\n\t\t\t\t'$inpGENDER',\n\t\t\t\t'$inpCIVSTATS',\n\t\t\t\t'$inpADDRESS',\n\t\t\t\t'$inpBIRTHDATE',\n\t\t\t\t'$inpBIRTHPLACE',\n\t\t\t\t'$inpPWD',\n\t\t\t\t'$inpTYPE',\n\t\t\t\t'$inpCODE')\");\n\t\t\t\tob_end_clean();\n\t\t\t\theader(\"location: clients.php?add=true\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0d1f6c3a557d33cea4ad99ef3a2dd4df", "score": "0.5195897", "text": "public function insertList(){\n global $vues;\n $list_name=Validation::nettoyer_string($_POST['list_name']);\n $l_manager=new ListManager();\n if(isset($_POST[checkPrivate]) && isset($_SESSION['user'])){\n $username=Validation::nettoyer_string($_SESSION['user']);\n $l_manager->insert($list_name,$username);\n }else{\n $l_manager->insert($list_name,null);\n }\n require_once($vues['homepage']);\n }", "title": "" }, { "docid": "1d0510501df000fdafea58d60878d14d", "score": "0.51858276", "text": "function clients_selectmenu_setup($identifier) {\n\t## let's check if we can find the field in the main client table\n\t## db class\n\n\t$db_connection = new DB_Sql(); \n\n\t## make the fields lowercase\n\t$identifier = strtolower($identifier);\n\t\n\t## lets'findout if the tables already exist\n\t$query = \"SHOW TABLES LIKE '\".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].\"%'\";\n\t$result_pointer = $db_connection->query($query);\n\t\n\t$exists = false;\n\twhile($db_connection->next_record()) {\n\t\tif($db_connection->Record[0] == (DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].'_'.$identifier) || $db_connection->Record[0] == strtolower(DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].'_'.$identifier)) {\n\t\t\t$exists = true;\n\t\t}\n\t}\n\n\tif(!$exists) {\n\t\t## the base\n\t\t$query = 'CREATE TABLE '.DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].'_'.$identifier.' (`id` int(10) NOT NULL auto_increment, `text` varchar(255) NOT NULL default \\'\\', PRIMARY KEY (`id`))';\n\t\t$result_pointer = $db_connection->query($query);\n\t\t\n\t\t## now the connector\n\t\t$query = 'CREATE TABLE '.DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].'2'.$identifier.' (`client_id` INT(10) NOT NULL ,`item_id` INT(10) NOT NULL)';\n\t\t$result_pointer = $db_connection->query($query);\n\t}\t\n\t\n}", "title": "" }, { "docid": "a6d817ae7ff6d73c79f62df3c6ceec0c", "score": "0.51817775", "text": "function clients_selectmenu_storeInput($ctlData,$clientID) {\n\tglobal $Auth,$gSession;\n\n\t## now we update the appropriate client\n\t$db_connection = new DB_Sql(); \n\t\n\t$identifier = strtolower($ctlData['IDENTIFIER']);\n\t\n\t##first check if the database was setup\n\tclients_selectmenu_setup($ctlData['IDENTIFIER']);\n\n\t## we need to prepare the input - needs to be done properly\n\t$data = $_POST[$identifier];\n\n\t## first we will delete any previously set entries\n\t$query = \"SELECT * FROM \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].\"2\".$identifier.\" WHERE client_id='$clientID'\";\n\t$result_pointer = $db_connection->query($query);\t\n\t\n\tif($db_connection->num_rows() > 0) {\n\t\t$query = \"UPDATE \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].\"2\".$identifier.\" SET item_id= '$data' WHERE client_id='$clientID'\";\n\t} else {\t\n\t\t$query = \"INSERT INTO \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].\"2\".$identifier.\" (client_id,item_id) values ('$clientID','$data')\";\n\t}\n\n\t$result_pointer = $db_connection->query($query);\t\n}", "title": "" }, { "docid": "d07e669be75472371d2b28e909c6fe9d", "score": "0.5173246", "text": "public function insertCollection($p_DATA)\n {\n }", "title": "" }, { "docid": "7b50f9f2ed610be840f52cf258d5a6a4", "score": "0.5165569", "text": "public function getClientsData() {\n $FC = $this->Charts();\n\n\n // specify the graph parameters\n $strParam = \"caption=NQCL CLIENTS AS OF\" . date('Y') . \";xAxisName=Type;yAxisName=Number of Clients;decimalPrecision=0;formatNumberScale=1\";\n $FC->setChartParams($strParam);\n $chartData = $this->Clients_Data();\n foreach ($chartData as $drilldown):\n $FC->addChartData($drilldown['Total'], \"name=\" . $drilldown['client_type']);\n endforeach;\n print $FC->getXML();\n }", "title": "" }, { "docid": "d318739b4c4f0372513f8eca1a8f3526", "score": "0.5158032", "text": "function insert_data() {\r\n insert_field_data();\r\n insert_record_data();\r\n insert_group_data();\r\n}", "title": "" }, { "docid": "e038a0cb3871fd805f86da0f129b02e8", "score": "0.51516294", "text": "function clients_selectmenu_getExportData($ctlData,$clientID) {\t\n\t## db object\n\t$db_connection = new DB_Sql();\n\t\n\t$identifier = strtolower($ctlData['IDENTIFIER']);\n\t\n\t## in order to get the appropriate data- we need to join the connector, with the \n\t## clients and data tables\n\t$query = \"SELECT C.* FROM \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].\" AS A, \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].'2'.$identifier.\" AS B, \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].'_'.$identifier.\" AS C WHERE A.id=B.client_id AND B.item_id=C.id AND A.id='\".$clientID.\"'\";\n\t$result_pointer = $db_connection->query($query);\t\n\n\t$value = '';\n\twhile($db_connection->next_record()) {\n\t\t$value = $db_connection->Record['text'];\n\t}\t\n\treturn $value;\n}", "title": "" }, { "docid": "698bc7f7851af7490573e59a13952f87", "score": "0.5151551", "text": "public static function clientList() : array {\n //Récupération de la connexion à la BDD par Singleton\n $dbi = Singleton::getInstance();\n $db=$dbi->getConnection();\n $result = $db->query(\"SELECT id_client, nom, prenom, adresse FROM client \");\n //$resultat sous forme de tableau avec le numéro de colonne\n $result = $result->fetchAll(PDO::FETCH_NUM);\n return $result;\n }", "title": "" }, { "docid": "fff1c68d1c1e3a85ee94908f46139519", "score": "0.5150616", "text": "public static function pxp_admin_clients()\n\t{\n\t\t$action = ( isset( $_REQUEST['action'] ) ) ? $_REQUEST['action'] : '';\n?>\n\t\t<div class=\"wrap\">\n<?php\n\t\tif( $action == \"add-new\" ):\n\t\t\tself::pxp_admin_add_client_display();\n\t\telse:\n\t\t\tself::pxp_admin_client_list();\n\t\tendif;\n?>\t\n\t\t</div>\n<?php\n\t}", "title": "" }, { "docid": "7192f1a8a620ec7a4b77bd5d16dcec73", "score": "0.5143676", "text": "public function processData($client, $data);", "title": "" }, { "docid": "820b00a5f0c90aa7298b0ccc69751986", "score": "0.51295274", "text": "public function addDataToList($receiverList)\n {\n\t\tglobal $registry;\n\n \tif(count($receiverList) > 0)\n\t\t{\n\t\t\t$this->datecreated = $this->datemodified = time();\n\t\t\t$insertCount = 0;\n\n\t\t\t//de dam bao query khong bi qua dai\n\t\t\t//do su dung cau truc INSERT ..VALUES(...), (...), (...)\n\t\t\t//nen segment receiver list theo 1 segment size nao do de lam ngan cau query\n\t\t\t$segmentSize = 20;\t//20 userids trong 1 segment\n\t\t\t$segments = array_chunk($receiverList, $segmentSize);\n\t\t\tfor($i = 0, $count = count($segments); $i < $count; $i++)\n\t\t\t{\n\t\t\t\t$sql = 'INSERT INTO ' . TABLE_PREFIX . 'message(\n\t\t\t\t\t\t\tmt_id,\n \t\t\t\t\tu_id_from,\n \t\t\t\t\tu_id_to,\n \t\t\t\t\tm_ipaddress,\n \t\t\t\t\tm_ismultirecipient,\n\t\t\t\t\t\t\tm_type,\n\t\t\t\t\t\t\tm_subject,\n \t\t\t\t\tm_summary,\n\t\t\t\t\t\t\tm_icon,\n\t\t\t\t\t\t\tm_countfile,\n\t\t\t\t\t\t\tm_fileidlist,\n \t\t\t\t\tm_datecreated,\n \t\t\t\t\tm_datemodified\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\tVALUES';\n\n\t\t\t\tfor($j = 0, $countj = count($segments[$i]); $j < $countj; $j++)\n\t\t\t\t{\n\t\t\t\t\tif($j > 0)\n\t\t\t\t\t\t$sql .= ', ';\n\t\t\t\t\t$sql .= '(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ';\n\t\t\t\t}\n\n\t\t\t\t$stmt = $this->db->prepare($sql);\n\n\t\t\t\t//bind data\n\t\t\t\tfor($j = 0, $countj = count($segments[$i]); $j < $countj; $j++)\n\t\t\t\t{\n\t\t\t\t\t$stmt->bindValue($j * 13 + 1, (int)$this->mtid);\n\t\t\t\t\t$stmt->bindValue($j * 13 + 2, (int)$this->uidfrom);\n\t\t\t\t\t$stmt->bindValue($j * 13 + 3, $segments[$i][$j]);\n\t\t\t\t\t$stmt->bindValue($j * 13 + 4, (int)Helper::getIpAddress(true));\n\t\t\t\t\t$stmt->bindValue($j * 13 + 5, (int)$this->ismultirecipient);\n\t\t\t\t\t$stmt->bindValue($j * 13 + 6, (int)$this->type);\n\t\t\t\t\t$stmt->bindValue($j * 13 + 7, (string)$this->subject);\n\t\t\t\t\t$stmt->bindValue($j * 13 + 8, (string)$this->summary);\n\t\t\t\t\t$stmt->bindValue($j * 13 + 9, (int)$this->icon);\n\t\t\t\t\t$stmt->bindValue($j * 13 + 10, (int)$this->countfile);\n\t\t\t\t\t$stmt->bindValue($j * 13 + 11, (string)$this->fileidlist);\n\t\t\t\t\t$stmt->bindValue($j * 13 + 12, (int)$this->datecreated);\n\t\t\t\t\t$stmt->bindValue($j * 13 + 13, (int)$this->datemodified);\n\n\n\t\t\t\t}\n\t\t\t\t//execute prepared query\n\t\t\t\t$stmt->execute();\n\t\t\t\t$insertCount += $stmt->rowCount();\n\n\n\t\t\t}\n\n\t\t\treturn $insertCount;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "b115b6c07b818f7f6dd1c1d8f5ef8a25", "score": "0.51110446", "text": "function location_list_data_of_client($client_id) {\n $this->access_only_allowed_members_or_client_contact($client_id);\n\n $options = array(\n \"client_id\" => $client_id,\n \"access_type\" => $this->access_type,\n );\n\n $list_data = $this->Location_model->get_details($options)->result();\n\n $result = array();\n foreach ($list_data as $data) {\n $result[] = $this->_make_row($data);\n }\n echo json_encode(array(\"data\" => $result));\n }", "title": "" }, { "docid": "23adf9569b34f1ddfa70ab6188fb2627", "score": "0.5106433", "text": "public function Insert_Into_List_Mgmt_Buffer(\n\t\t\t$application_id,\n\t\t\t$email, \n\t\t\t$first_name, \n\t\t\t$last_name,\n\t\t\t$ole_site_id, \n\t\t\t$ole_list_id, \n\t\t\t$group_id,\n\t\t\t$mode,\n\t\t\t$license_key,\n\t\t\t$address_1,\n\t\t\t$apartment,\n\t\t\t$city,\n\t\t\t$state,\n\t\t\t$zip,\n\t\t\t$url,\n\t\t\t$phone_home,\n\t\t\t$phone_cell,\n\t\t\t$date_of_birth,\n\t\t\t$promo_id,\n\t\t\t$bb_vendor_bypass,\n\t\t\t$tier\n\t\t)\t\n\t\t{\n\n\t\t\t$query = \"\n\t\t\t\tINSERT INTO \n\t\t\t\t\tlist_mgmt_buffer\n\t\t\t\t\t\t(application_id,\n\t\t\t\t\t\temail,\n\t\t\t\t\t\tfirst_name,\n\t\t\t\t\t\tlast_name,\n\t\t\t\t\t\tole_list_id,\n\t\t\t\t\t\tole_site_id,\n\t\t\t\t\t\tgroup_id,\n\t\t\t\t\t\tmode,\n\t\t\t\t\t\tlicense_key,\n\t\t\t\t\t\taddress_1,\n\t\t\t\t\t\tapartment,\n\t\t\t\t\t\tcity,\n\t\t\t\t\t\tstate,\n\t\t\t\t\t\tzip,\n\t\t\t\t\t\turl,\n\t\t\t\t\t\tphone_home,\n\t\t\t\t\t\tphone_cell,\n\t\t\t\t\t\tdate_of_birth,\n\t\t\t\t\t\tpromo_id,\n\t\t\t\t\t\tbb_vendor_bypass,\n\t\t\t\t\t\ttier)\n\t\t\t\t\tVALUES\n\t\t\t\t\t\t(\n\t\t\t\t\t\t'\".mysql_escape_string($application_id).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($email).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($first_name).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($last_name).\"',\n\t\t\t\t\t\t{$ole_site_id},\n\t\t\t\t\t\t{$ole_list_id},\n\t\t\t\t\t\t{$group_id},\n\t\t\t\t\t\t'\".mysql_escape_string($mode).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($license_key).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($address_1).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($apartment).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($city).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($state).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($zip).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($url).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($phone_home).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($phone_cell).\"',\n\t\t\t\t\t\t'\".mysql_escape_string($date_of_birth).\"',\n\t\t\t\t\t\t{$promo_id},\n\t\t\t\t\t\t{$bb_vendor_bypass},\n\t\t\t\t\t\t{$tier}\n\t\t\t\t\t\t)\n\t\t\t\";\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\t$this->sql->Query($this->database,$query);\n\t\t\t}\n\t\t\tcatch(Exception $e)\n\t\t\t{\n\t\t\t\tthrow($e);\n\t\t\t\t// Do Nothing For now\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d81c17e3eb2e286c1a5452e5ef46ba54", "score": "0.50989723", "text": "function AddDatalist($input,$cluster,$LastOrder=0,$position=\"Last\"){ \r\n $akamaru=new GoodBoi(\"list_list\");\r\n if(!$akamaru->GoCount(\"WHERE cluster='\". $cluster .\"' AND list_value='\". $input .\"'\")){\r\n switch ($position){\r\n case \"Before\":\r\n $Order=$LastOrder-1;\r\n break;\r\n case \"First\":\r\n $Order=1;\r\n break;\r\n default:\r\n $Order=$LastOrder+1;\r\n break;\r\n }\r\n $akamaru->GoBark(array(\"cluster\"=>$cluster,\"list_value\"=>$input,\"list_name\"=>$input, \"list_order\"=>$Order));\r\n }\r\n}", "title": "" }, { "docid": "c2f50859d5b14c389d4aef7ebb4b0109", "score": "0.50891286", "text": "public function transferBatchData()\r\n {\r\n $this->connectCourier();\r\n // Send the dataset\r\n }", "title": "" }, { "docid": "5c8c13592a09a8c0a0e47a63ee97eaf9", "score": "0.50876707", "text": "protected function setupListOperation()\n {\n $this->defaultListColumns();\n if (backpack_user()->hasPermissionTo('manifiestos_cliente')) {\n $customer=DB::table('customers')->where('user_id', backpack_user()->id )->first();\n CRUD::addClause('where', 'customer_id', '=', $customer->id);\n CRUD::removeColumn('Ruc');\n CRUD::removeColumn('ctasSor');\n CRUD::removeColumn('NameClient');\n }\n $this->addCustomCrudFilters();\n CRUD::enableExportButtons();\n }", "title": "" }, { "docid": "7a139b619dde3ff0905f8fbcf46bf30e", "score": "0.5062614", "text": "function insertClientTable($data){\n $this->db->insert('clients',$data);\n }", "title": "" }, { "docid": "953ca68bd1d4b0e944f0134d2cbb6835", "score": "0.50556266", "text": "function proposers_datalist(SQLDatabase $pb) : void\n\t{\n\t\t$proposers = new ProposerList;\n\t\t$proposers->get($pb, array(\"DISTINCT name\"));\n\t\t$proposers->print_datalist();\n\t}", "title": "" }, { "docid": "f27ddfb6add95130904ccdeacc105013", "score": "0.5054212", "text": "function Ajout_utilservice_client_uniq($doce_cli,$cod_serv,$date_debut,$date_fin,$duree,$observation){\n $requette=\"insert into utiliser values('$doce_cli','$cod_serv','$date_debut','$date_fin','$duree','$observation')\";\n\tExecuteRequette($requette);\t \n}", "title": "" }, { "docid": "14f48e68a12a14aaf31ff3c1300800c3", "score": "0.50529987", "text": "function addList(/*$new_lname*/) {\r\n\t\t\r\n\t\tif(empty(self::database)){\r\n\t\t\tself::connectDatabase();\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\tself::query = \"CREATE TABLE rfztd_{$_GET['list']} (\r\nid INT UNSIGNED NOT NULL AUTO_INCREMENT,\r\ndone TINYINT(1) NOT NULL DEFAULT 0,\r\nelement VARCHAR(10000) NOT NULL,\r\npriority VARCHAR(30) NOT NULL DEFAULT 'B',\r\ndate_modified TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id)\r\n) CHARACTER SET utf8\";\r\n\t\t\r\n\t\tif (mysqli_query(self::dbc, self::query)) {\r\n\t\t\tprint '<p>The table has been created!</p>';\r\n\t\t\t\r\n\t\t\t//insert new list name into the list of lists\r\n\t\t\t\tself::query = \"INSERT INTO rfztd_lists (list, \"\r\n\t\t\t\tif(isset($_POST['order']) {return ($_POST['order'] != NULL) ? \"order, \" : \"\"}.\r\n\t\t\t\t\"date_modified) VALUES ('{$_POST['name']}', \"\r\n\t\t\t\tif(isset($_POST['order']) {return ($_POST['order'] != NULL) ? \"'{$_POST['order']}', \" : \"\"}.\r\n\t\t\t\t\"NOW())\";\r\n\t\t\t\t\r\n\t\t\tif (mysqli_query(self::dbc, self::query)) {\r\n\t\t\t\tprint '<p>The entry has successfully been inserted into the list of lists!</p>';\r\n\t\t\t} else {\r\n\t\t\t\tprint '<p style=\"color: red;\">Could not insert the entry because:<br>' . mysqli_error(self::dbc) .\r\n\t\t\t\t'.</p><p>The query being run was: ' . self::query . '</p>';\t\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tprint '<p style=\"color: red;\">Could not create the table because:<br>' . mysqli_error(self::dbc) .\r\n\t\t\t'.</p><p>The query being run was: ' . self::query . '</p>';\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t* outputs every list element in custom order from a respective MySql Table and provides edit and delete link\r\n\t*\r\n\t* outputs edit and delete link created with NONCE functions\r\n\t*/\r\n\tfunction retrieveElements() {\r\n\t\tif(empty(self::database)){\r\n\t\t\tself::connectDatabase();\r\n\t\t}\r\n\t\r\n\t\t//save statically in which order to output the list elements by checking list of lists\r\n\t\tself::query = \"SELECT order FROM rfztd_lists WHERE list=rfztd_{$_GET['page']}\";\r\n\t\t\r\n\t\tif (self::r = mysqli_query(self::dbc, self::query)) {\r\n\t\t\tself::order(self::row = mysqli_fetch_array(self:r)) ? self::row['order'] : NULL;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tprint '<p style=\"color: red;\">Could not create the table because:<br>' . mysqli_error(self::dbc) .\r\n\t\t\t'.</p><p>The query being run was: ' . self::query . '</p>';\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//retrieve + output actual list elements in previously retrieved order\r\n\t\tself::query = \"SELECT id, done, element, priority, date_modified FROM rfztd_{$_GET['page']}\" .\r\n\t\t(return(self::order != NULL) ? \"ORDER BY self::order\" : \"\");\r\n\t\t\r\n\t\tif (self::r = mysqli_query(self::dbc, self::query)) {\r\n\t\t\twhile(self::row = mysqli_fetch_array(self::r)) {\r\n\t\t\t\t//creates edit link to revise elements content AND MAKES IT SECURE BY NONCE in URL\r\n\t\t\t\tself::q_array =[\r\n\t\t\t\t\t'action' => 'rfz_edit',\r\n\t\t\t\t\t'element_id' => NULL,\r\n\t\t\t\t\t'nonce' => wp_create_nonce('rfz_edit')\r\n\t\t\t\t];\r\n\t\t\t\tself::q_array['element_id'] = self::row['id'];\r\n\t\t\t\tself::url = add_query_arg(self::q_array, admin_url('admin.php?page=' . $_GET['page']));\r\n\t\t\t\t\r\n\t\t\t\t// POST is sending done, priority, element and id from row of the clicked submit button\r\n\t\t\t\tprint '<form action=\"' . esc_url(self::url) . '\" method=\"POST\" enctype=\"multipart/form-data\">\r\n\t\t\t\t<p><input type=\"checkbox\" name=\"done\" '.\r\n\t\t\t\t(return(self::row['done']==1) ?\r\n\t\t\t\t'\"checked\"' : '') . \r\n\t\t\t\t' onChange=\"this.form.submit()\"><select name=\"priority\">\r\n\t\t\t\t\t<option value=\"'. self::row['priority'] . '\">' . self::row['priority'] . '</option>\r\n\t\t\t\t\t<option value=\"A\">A</option>\r\n\t\t\t\t\t<option value=\"B\">B</option>\r\n\t\t\t\t\t<option value=\"C\">C</option>\r\n\t\t\t\t\t<option value=\"D\">D</option>\r\n\t\t\t\t\t<option value=\"E\">E</option>\r\n\t\t\t\t</select> <textarea name=\"element\" rows=\"2\" cols=\"35\">' . esc_html(self::row['element']) . '</textarea>\r\n\t\t\t\t<select name=\"order\">\r\n\t\t\t\t\t<option value=\"date modified\">date_modified DESC</option>\r\n\t\t\t\t\t<option value=\"alphabetical\">element ASC</option>\r\n\t\t\t\t\t<option value=\"priority\">priority ASC</option>\r\n\t\t\t\t</select>\r\n<!--<input type=\"hidden\" name=\"id\" value=\"' . self::row['id'] . '\">-->\r\n<!--<input type=\"hidden\" name=\"list\" value=\"' . $_GET['page'] . '\">-->\r\n\t\t\t\t<input type=\"submit\" name=\"edit\" value=\"save element\">';\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//create delete link to delete element\r\n\t\t\t\tself::content = 'delete';\r\n\r\n\t\t\t\tself::q_array =[\r\n\t\t\t\t\t'action' => 'rfz_delete',\r\n\t\t\t\t\t'element_id' => NULL,\r\n\t\t\t\t\t'nonce' => wp_create_nonce('rfz_delete')\r\n\t\t\t\t];\r\n\t\t\t\tself::q_array['element_id'] = self::row['id'];\r\n\t\t\t\tself::url = add_query_arg(self::q_array, admin_url('admin.php?page='. $_GET['page']));\r\n\t\t\t\techo ' <a href=\"' . esc_url(self::url) . '\">' . esc_html__(self::content) . '</a></p><hr></form>';\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tprint '<hr>';\r\n\t\t} else {\r\n\t\t\tprint '<p style=\"color: red;\">Could not retrieve the entry because:<br>' . mysqli_error(self::dbc) .\r\n\t\t\t'.</p><p>The query being run was: ' . self::query . '</p>';\t\r\n\t\t}\r\n\t\t\r\n\t\t// add a new element\r\n\t\t\t\tself::q_array =[\r\n\t\t\t\t\t'action' => 'rfz_add',\r\n\t\t\t\t\t'nonce' => wp_create_nonce('rfz_add')\r\n\t\t\t\t];\r\n\t\t\t\tself::url = add_query_arg(self::q_array, admin_url('admin.php?page=' . $_GET['page']));\r\n\t\t\r\n\t\tprint '<p><h3><b>Add a new element: </b><h3></p>\r\n\t\t\t<form action=\"' . esc_url(self::url) . '\" method=\"POST\" enctype=\"multipart/form-data\">\r\n\t\t\t\t<p><input type=\"checkbox\" name=\"done\"><select name=\"priority\">\r\n\t\t\t\t\t<option value=\"B\">B</option>\r\n\t\t\t\t\t<option value=\"A\">A</option>\r\n\t\t\t\t\t<option value=\"B\">B</option>\r\n\t\t\t\t\t<option value=\"C\">C</option>\r\n\t\t\t\t\t<option value=\"D\">D</option>\r\n\t\t\t\t\t<option value=\"E\">E</option>\r\n\t\t\t\t</select> <textarea name=\"element\" rows=\"2\" cols=\"35\"></textarea>\r\n\t\t\t\t<select name=\"order\">\r\n\t\t\t\t\t<option value=\"date modified\">date_modified DESC</option>\r\n\t\t\t\t\t<option value=\"alphabetical\">element ASC</option>\r\n\t\t\t\t\t<option value=\"priority\">priority ASC</option>\r\n\t\t\t\t</select>\r\n<!--<input type=\"hidden\" name=\"id\" value=\"' . self::row['id'] . '\">-->\r\n<!--<input type=\"hidden\" name=\"list\" value=\"' . $_GET['page'] . '\">-->\r\n\t\t\t\t<input type=\"submit\" name=\"submit\" value=\"save element\"></form>';\r\n\t}\r\n\t\r\n\t/**\r\n\t* adds new element (row) to specific list\r\n\t*/\r\n\tfunction addElement() {\r\n\t\tif(empty(self::database)){\r\n\t\t\tself::connectDatabase();\r\n\t\t}\r\n\t\t\r\n\t\tself::query = \"INSERT INTO rfztd_{$_GET['page']} (\" .\r\n\t\t\tif(isset($_POST['done'])) {($_POST['done']) ? return \"done, \" : return \"\"} .\r\n\t\t\t\"element, \" .\r\n\t\t\tif(isset($_POST['priority'])) {($_POST['priority']) ? return \"priority, \" : return \"\"} .\r\n\"date_modified\r\n) VALUES (\" .\r\n\t\t\tif(isset($_POST['done'])) {($_POST['done']) ? return \"1, \" : return \"\"} .\r\n\t\t\t\"'{$_POST['element']}', \" .\r\n\t\t\tif(isset($_POST['priority'])) {($_POST['priority']) ? return \"'{$_POST['priority']}', \" : return \"\"} .\r\n\t\t\t\"NOW())\";\r\n\t\t\r\n\t\tif (mysqli_query(self::dbc, self::query)) {\r\n\t\t\tprint '<p>The entry (element) has been successfully inserted!</p>';\r\n\t\t} else {\r\n\t\t\tprint '<p style=\"color: red;\">Could not create the table because:<br>' . mysqli_error(self::dbc) .\r\n\t\t\t'.</p><p>The query being run was: ' . self::query . '</p>';\t\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t* change existing List elements(entries)\r\n\t*/\r\n\tfunction updateList() {\r\n\t\tif(empty(self::database)){\r\n\t\t\tself::connectDatabase();\r\n\t\t}\r\n\t\t\r\n\t\t\tself::query = \"UPDATE rfztd_{$_GET['page']} SET \" .\r\n\t\t\tif(isset($_POST['done'])) {($_POST['done']) ? return \"done=1,\" : return \"\"} .\r\n\t\t\t\"priority='{$_POST['priority']},\r\nelement='{$_POST['element']}',\r\ndate_modified=NOW()\r\nWHERE id={$_GET['element_id']}\";\r\n\t\t\t\r\n\t\tself::r=mysqli_query(self::dbc, self::query);\r\n\t\tif(mysqli_affected_rows(self::dbc) == 1){\r\n\t\t\techo '<p style=\"color: green; font-weight: bold;\">You successfully updated the element: ' . $_POST['element'] . '</p>';\r\n\t\t}else {\r\n\t\t\tprint '<p style=\"color: red;\">Could not update the entry because:<br>' . mysqli_error(self::dbc) .\r\n\t\t\t'.</p><p>The query being run was: ' . self::query . '</p>';\t\r\n\t\t}\r\n\t}\r\n\t\r\n\t/**\r\n\t* rename List itself\r\n\t*/\r\n\tfunction renameList(){\r\n\t\tif(empty(self::database)){\r\n\t\t\tself::connectDatabase();\r\n\t\t}\r\n\t\t\r\n\t\tself::query = \"UPDATE rfztd_lists SET \" . if(isset($_GET['list'])) {($_GET['list']) ? return \"list=1,\" : return \"\"} .\r\n\t}", "title": "" }, { "docid": "149c78241d033b93a6bd2baa7be879dc", "score": "0.504306", "text": "public function ListClientsinfo()\n {\n $query=\"SELECT u.identifier,up.first_name,up.last_name,u.email,\n u.profile_type,u.created_at,u.last_visit, c.company_name\n FROM User u\n INNER JOIN UserPlus up ON u.identifier = up.user_id\n INNER JOIN Client c ON c.user_id = u.identifier\n WHERE u.type = 'client'\n AND u.status = 'Active'\n ORDER BY u.updated_at DESC\";\n \n /* Adding AO infos & date formatting */ \n foreach ( $this->getQuery($query,true) as $client ) :\n $aoInfo = $this->clientAoCount($client['identifier']) ;\n $client['ao_count'] = $aoInfo['ao_count'] ;\n $client['ao_id'] = $aoInfo['ao_id'] ;\n $client['created_at'] = date( \"d/m/Y\", strtotime( $client['created_at'] ) ) ;\n $client['last_visit'] = date( \"d/m/Y\" , strtotime( $client['last_visit'] ) ) ;\n $result[] = $client ;\n endforeach ;\n \n return $result;\n }", "title": "" }, { "docid": "f4caf4d4ae0f05257c521e863972fcad", "score": "0.5036119", "text": "function addOrSaveClick() {\r\n if (isset($_POST['addPersonBtn'])) {\r\n setClientIDs();\r\n switch($_POST['addPersonBtn']) {\r\n case \"Add\":\r\n $fullNameDd = $_POST['fullName'];\r\n $stuFName = $_POST['fname'];\r\n $stuLName = $_POST['lname'];\r\n $stuAge = $_POST['age'];\r\n $stuParent = $_POST['parent'];\r\n $stuPhoneNum = $_POST['phone'];\r\n $stuNotes = $_POST['notes'];\r\n global $addedClientID;\r\n resetClientID();\r\n setTotNumInLesson();\r\n\r\n $link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);\r\n\r\n $db_table = \"mydb.Client\";\r\n // checks to make sure the first name, last name, and phone number are\r\n // set to check if an instance already exists\r\n if ($fullNameDd == 0 && $stuFName != \"\" && $stuLName != \"\" && $stuPhoneNum != \"\") {\r\n $sql_result = mysqli_query($link, \"SELECT * FROM \".$db_table.\" WHERE first_name='\".$stuFName.\"' AND last_name='\".$stuLName.\"' AND phone_number='\".$stuPhoneNum.\"';\");\r\n\r\n if(mysqli_num_rows($sql_result) == 0) {\r\n // inserts into DB if an instance doesn't exist\r\n $sql = \"INSERT INTO \".$db_table.\" (first_name, last_name, age, parent, phone_number, notes) VALUES ('$stuFName', '$stuLName', '$stuAge', '$stuParent', '$stuPhoneNum', '$stuNotes');\";\r\n mysqli_query($link, $sql);\r\n\r\n //used to add new client in the front-end (addLesson.php)\r\n $addedClientID = $link->insert_id;\r\n $num = $_SESSION['totalNumOfClientsInThisLesson'] + 1;\r\n if ($num <= 3) {\r\n $clientIdHid = 'hidClient'.$num;\r\n $_SESSION[$clientIdHid] = $addedClientID;\r\n }\r\n\r\n }\r\n }\r\n mysqli_close($link);\r\n break;\r\n case \"Save\":\r\n $stuFName = $_POST['fname'];\r\n $stuLName = $_POST['lname'];\r\n $stuAge = $_POST['age'];\r\n $stuParent = $_POST['parent'];\r\n $stuPhoneNum = $_POST['phone'];\r\n $stuEmail = $_POST['email'];\r\n $stuNotes = $_POST['notes'];\r\n $currID = $_POST['currClientEditing'];\r\n resetClientID();\r\n setTotNumInLesson();\r\n\r\n $link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);\r\n\r\n $db_table = \"mydb.Client\";\r\n // checks to make sure the first name, last name, and phone number are\r\n // set to check if an instance already exists\r\n if ($stuFName != \"\" && $stuLName != \"\" && $stuPhoneNum != \"\") {\r\n $sql = \"UPDATE \".$db_table.\" SET first_name='$stuFName', last_name='$stuLName', age='$stuAge', parent='$stuParent', email='$stuEmail', phone_number='$stuPhoneNum', notes='$stuNotes' WHERE id='$currID';\";\r\n mysqli_query($link, $sql);\r\n }\r\n mysqli_close($link);\r\n break;\r\n default:\r\n // do nothing\r\n }\r\n }\r\n}", "title": "" }, { "docid": "68f1a1f2abd4c25c56f9e0b30ee21b6a", "score": "0.50298685", "text": "function Sync_DOL_Client_Import($name = \"\", $client_id_ISP = \"\")\n\t\t{\n\t\t\tglobal $conf;\n\t\t\t$soap_location = $this->fk_soap_location;\n\t\t\t$soap_uri = $this->fk_soap_uri;\n\t\t\t$username = $this->fk_username;\n\t\t\t$password = $this->fk_password; \n\n\t\t\t$context = stream_context_create([\n\t\t\t 'ssl' => [\n\t\t\t // set some SSL/TLS specific options\n\t\t\t 'verify_peer' => false,\n\t\t\t 'verify_peer_name' => false,\n\t\t\t 'allow_self_signed' => true\n\t\t\t ]\n\t\t\t]);\n\t\t\t$client = new SoapClient(null, array(\n\t\t\t\t'location' => $soap_location,\n\t\t\t\t'uri' => $soap_uri,\n\t\t\t\t'trace' => 1,\n\t\t\t\t'exceptions' => 1,\n\t\t\t\t'stream_context' => $context\n\t\t\t));\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif($session_id = $client->login($username, $password)) {\n\t\t\t\t\techo 'Logged successfull. Session ID:'.$session_id.'<br />';\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//* Set the function parameters.\n\t\t\t\t$username = $name;\n\t\t\t\tif($name){\n\t\t\t\t\t$record_record = $client->client_get_by_username($session_id, $username);\n\t\t\t\t}else{\n\t\t\t\t\t$record_record = $client->client_get($session_id, $client_id_ISP);\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t *\tFUNCTION echo echo eingelesenen DATEN in DOLIBAR intigriert / updatet\n\t\t\t\t *\n\t\t\t\t *\tID oder name\n\t\t\t\t */\n\t\t\t\n\t\t\t\tprint_r($record_record);\n\t\t\t\n\t\t\t\tif($client->logout($session_id)) {\n\t\t\t\t\techo 'Logged out.<br />';\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t} catch (SoapFault $e) {\n\t\t\t\techo $client->__getLastResponse();\n\t\t\t\techo('SOAP Error: '.$e->getMessage());\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "32608ee512630b22065828084b24ee8d", "score": "0.50249183", "text": "function loadServerData() {\n\t$ch = curl_init(DAPNET_URL . '/transmitters');\n\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array(\n\t\t'Authorization: ' . DAPNET_AUTH\n\t));\n\treturn curl_exec($ch);\n}", "title": "" }, { "docid": "6ddb1c9ea22f28930bd34f9640807599", "score": "0.50200313", "text": "public function execGetNewData()\r\n {\r\n foreach ($this->_arrayTable as $tableMain => $arrayForeigns) {\r\n if (is_numeric($tableMain)) {\r\n $tableMain = $arrayForeigns;\r\n }\r\n\r\n $query = \"select {$tableMain}.* from {$tableMain} \";\r\n $flag = null;\r\n $primaryKey = null;\r\n $tableFlag = $tableMain;\r\n if (count($arrayForeigns) > 0) {\r\n if (isset($arrayForeigns[$this->_changeFlag])) {\r\n $flag = $arrayForeigns[$this->_changeFlag];\r\n unset($arrayForeigns[$this->_changeFlag]);\r\n }\r\n if (isset($arrayForeigns[$this->_primaryKey])) {\r\n $primaryKey = $arrayForeigns[$this->_primaryKey];\r\n unset($arrayForeigns[$this->_primaryKey]);\r\n }\r\n if (count($arrayForeigns) > 1) {\r\n $query .= $this->joinTable($tableMain, $arrayForeigns, $tableFlag);\r\n }\r\n }\r\n $query .= ' where ' . $this->getQueryFlag($tableFlag, $flag);\r\n if ($primaryKey) {\r\n $query .= \" GROUP BY {$tableMain}.{$primaryKey} \";\r\n }\r\n\r\n $this->_queryResult .= $this->getQueryInsert($tableMain, $query);\r\n\r\n }\r\n }", "title": "" }, { "docid": "91677acdd8fa2af9b7425edac2d2e2a3", "score": "0.500403", "text": "function list_patient($info_list){\r\n\t\tif (isset($info_list['patientid'])){\r\n\t\t\t$patientid = array_pop($info_list);\r\n\t\t\t$info_list['order'] = count($this->rows)+1;\r\n\t\t\t$cols = \"(clinicid, patientid, patientname, birthdate, gender, \r\n\t\t\t\t\t medicalhistory, treatment, doctorname, waitlist.order)\";\r\n\t\t\t$query = \"insert into waitlist \".$cols.\" values (\".$this->clinicid.\", \".$patientid.\", '\";\r\n\t\t} else {\r\n\t\t\t$info_list['order'] = count($this->rows)+1;\r\n\t\t\t$cols = \"(clinicid, patientname, birthdate, gender, \r\n\t\t\t\t\t medicalhistory, treatment, doctorname, waitlist.order)\";\r\n\t\t\t$query = \"insert into waitlist \".$cols.\" values (\".$this->clinicid.\", '\";\r\n\t\t}\r\n\t\t$string = implode(\"', '\", $info_list);\r\n\t\t$query .= $string.\"')\";\r\n\t\t$result = mysqli_query($this->db, $query);\r\n\t\tif (!$result){\r\n\t\t\tthrow new Exception(\"patient could not be added to clinic's waitlist.\r\n\t\t\t\t\t\t\t\t Please try again later.\");\r\n\t\t}\r\n\t\t$this->query_wl();\r\n\t\t$this->wl_length++;\r\n\t\t$this->update_wl_length($this->clinicid, $this->wl_length);\r\n\t\tdoctor::update_num_patients($this->db, $info_list['doctor'], +1);\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "2fd5d0be6a4900b089328ae14fcb0f3d", "score": "0.5001134", "text": "public function recvData($clientID, $data, $serverID = NULL);", "title": "" }, { "docid": "20fb5378dc2e9ba8095beb838186f070", "score": "0.4994765", "text": "public function createList(){\n global $vues;\n require_once($vues['newList']);\n }", "title": "" }, { "docid": "3538d1d6ff4123ef3439c8f969413606", "score": "0.49931842", "text": "protected function setupListOperation()\n {\n CRUD::setFromDb();\n }", "title": "" }, { "docid": "571ba86bd964025aa978caed4dd2a674", "score": "0.49890336", "text": "public function getAllClients_post(){\n $isClient = $this->post('isClient');\n $result = $this->person_model->selectAllClient($isClient);\n\n if ($result === 0) {\n $this->response(\"Client information could not be saved. Try again.\", 404);\n } else {\n $this->response($result, 200);\n }\n\n }", "title": "" }, { "docid": "a5e05992f2a153af2ca2d35a792d1bbc", "score": "0.4974412", "text": "function processClientDeleteData($params)\n {\n exec(SCRIPTSPATH . \"/clientDelete.sh \" . $params[\"clientId\"]);\n return array( $params );\n }", "title": "" }, { "docid": "f7b351036bea4c588c5a7a30e2ba0678", "score": "0.49740875", "text": "public static function import($data){\n $isset_ids = self::loadAll('id');\n\n foreach ($data as $item){\n if (isset($item['id']) && in_array($item['id'],$isset_ids)){\n Client::load($item['id'])->fromArray($item)->save();\n }\n else{\n $client = new Client();\n $client->fromArray($item)->save();\n }\n }\n }", "title": "" }, { "docid": "12f8aaa39bb11a199c99f086667a68a5", "score": "0.4970527", "text": "public function CustomerList4Recieve()\n\t{\n\t\trequire(\"connect&create.php\");\n\n\t\t$list = $connection->prepare(\"select c.C_ID, c.name from customer as c inner join bargains as b on (c.C_ID = b.C_ID && `sell_or_buy` = 'فروش') group by c.name\");\n\t\t$list->execute();\n\t\t$list->store_result();\n\t\t$list->bind_result($customer_id, $customer_name);\n\t\twhile ($list->fetch()) {\n\t\t\t$this->SetCustomerName($customer_name);\n\t\t\t$this->SetCustomerID($customer_id);\n\t\t\t?>\n\t\t\t<option value= \"<?php echo $this->GetCustomerID(); ?>\"><?php echo $this->GetCustomerName(); ?></option>\n\t\t\t<?php\n\t\t}\n\n\t\t$list->free_result();\n\t}", "title": "" }, { "docid": "14cc1103778b55b2cf5dd4b02dc1cb42", "score": "0.4968644", "text": "function getUpdatedListServeTextFile() {\n\t\tglobal $DB_Username, $DB_Password, $DB_Name;\n\t\t$sql = new mysqli(\"localhost\", $DB_Username, $DB_Password, $DB_Name);\n\t\t$query = \"SELECT email FROM ListServe\";\n\t\t$result = $sql->query($query);\n\t\t$fh = fopen(\"listserve.txt\", 'w');\n\t\twhile ($row = $result->fetch_row()) {\n\t\t\tfwrite($fh, $row[0] . \", \");\n\t\t}\n\t\tfclose($fh);\n\t\t$sql->close();\n\t}", "title": "" }, { "docid": "c1747a840eed87045131f9285e33879e", "score": "0.4967114", "text": "function listaClientes()\n\t{\n\t\t$db = new database();\n\t\t$db->conectar();\n\t\t$result = $db->consulta(\"SELECT * FROM clientes\");\n\t\t$db->disconnect();\n\t\treturn $result;\t\n\t}", "title": "" }, { "docid": "7acd6c360c9d711175204d01cbacfc93", "score": "0.49622232", "text": "public function clientsListAddress()\n {\n AuthRequire::loginIsRequired();\n $clientId = intval(end($this->_request->uriSegments));\n $clientModel = new ClientModel();\n $clientRows = $clientModel->select(\"*\", \"client_id\", $clientId);\n if (count($clientRows) > 0) {\n $clientRows = current($clientRows);\n $address = new AddressModel();\n $list = $address->select(\"*\", \"client_id\", $clientId);\n $this->setMetatag('title', ' - Lista de Endereços', true);\n $this->showView('address/list', ['list' => $list, 'client' => $clientRows, 'client_id' => $clientId, 'count' => count($list), 'hasRecords' => count($list) > 0]);\n } else {\n $this->_redirect(\"/clients/list\");\n }\n }", "title": "" }, { "docid": "b4bed98fb5be3f096e69b44d57b5d193", "score": "0.49479407", "text": "public function addDevice($data){\n\t\t$collection = $this->db->DeviceMaster;\t\t\t\t\n\t\t$data['serverData']['_id']\t= $data['serverData']['id'];\n\t\tunset($data['serverData']['id']);\n\t\t$data['serverData']['Description']\t= $data['serverData']['desc'];\n\t\tunset($data['serverData']['desc']);\n\t\t$response = $collection->insert($data['serverData']);\n\t\tif($response['ok'] == 0){\n\t\t\t//if no data is appended\n\t\t\thttp_response_code(202);\n\t\t}\t\n\t\theader('Content-Type: application/json');\n\t\techo json_encode( $response, JSON_PRETTY_PRINT);\n\t}", "title": "" }, { "docid": "7bf36567415a73032ef9adc48541ec9a", "score": "0.49471024", "text": "function listarClientes(){\n $clienteLi = new Cliente();\n $clienteLi->buscarTodos(\"tabela\");\n }", "title": "" }, { "docid": "a8a37a8828e2d64b2c0aa13e465cdd3e", "score": "0.49414298", "text": "public function index()\n {\n \n\n $data['userRecords'] = $this->client_model->clientListing();\n\n foreach ($data['userRecords'] as $client ) \n {\n $client->reservations = $this->reservation_model->ReservationListing(0 , 0 , null , $client->userId );\n\n }\n $this->global['pageTitle'] = 'Clients';\n $this->loadViews(\"client/list\", $this->global, $data, NULL);\n }", "title": "" }, { "docid": "d23bf469c6ee3ed36b6f775b1cc4e756", "score": "0.4930117", "text": "public function new_get_client_batch()\n\t{\n\t\t$case_type = $this->input->post('case_type');\n\t\t$case_status = $this->input->post('case_status');\n\t\t$payment_by = $this->input->post('payment_by');\n\t\t$tgl_batch = $this->input->post('tgl_batch');\n\t\t$history_batch = $this->input->post('history_batch');\n\t\t$status_batch = $this->input->post('status_batch');\n\t\t$user = '';\n\n\t\techo $this->new_case->get_client_batch($case_type, $case_status, $payment_by, $tgl_batch, $history_batch, $status_batch, $user);\n\n\t}", "title": "" }, { "docid": "c1a325f8b2b0108147ee8b24d12c6570", "score": "0.49296573", "text": "public function setClientListExtraLine()\n\t{\n\t\tif ($this->outputColumns === null)\n\t\t\tdie('setClientListExtraLine: setOutputColumns must be called before');\n\n\t\t//Get the number of arguments of this function and the needed amount of arguments to match the columns of $this->outputColumns\n\t\t$argc = func_num_args();\n\t\t$colc = count($this->outputColumns);\n\n\t\tif ($argc != $colc)\n\t\t\tdie(\"setClientListExtraLine: $argc arguments got, $colc arguments expected.\");\n\n\t\t$this->extraLine = array();\n\t\tfor($i=0; $i < $argc; $i++)\n\t\t\t$this->extraLine[$i] = func_get_arg($i);\n\t}", "title": "" }, { "docid": "555bd9868e51f23409964c15650e8463", "score": "0.49293268", "text": "function add_data($line_data,$counter){\r\n /*$updated = 0;\r\n if(trim($line_data[2]) == 'Updated'){\r\n $updated = 1;\r\n }*/\r\n $vals = array(\"updated\"=>$line_data[2],\r\n \"code\"=>$line_data[3],\r\n \"color\"=>$line_data[4],\r\n \"scr\"=>$line_data[5],\r\n \"description\"=>$line_data[6],\r\n \"wty\"=>$line_data[7],\r\n \"cate_fk\"=>$counter);\r\n\r\n //echo '<!--' . print_r($vals, true) . '-->';\r\n \r\n $this->obj_con->insert('nec_panel_display',$vals);\r\n $this->product_size = $this->obj_con->getId('nec_panel_display');\r\n \r\n $this->add_price_list($this->product_size,0, $line_data);\r\n \r\n }", "title": "" }, { "docid": "f5a4d26ae1124a5231067fb552a40236", "score": "0.49276656", "text": "public function newList() : void\n {\n $name = $this->security->xss_clean($this->input->post('list-name'));\n $res = $this->StockLists_model->createEmptyList($this->user_id, $name);\n if ($res) {\n $data['notice'] = \"success\";\n $data['message'] = Msg::LIST_CREATE_SUCCESS;\n $data['id'] = $res;\n\n } else {\n $data['notice'] = \"error\";\n $data['message'] = Msg::LIST_CREATE_ERROR;\n }\n echo json_encode($data);\n }", "title": "" }, { "docid": "b93285f025ef44481b35ccb9cab5a235", "score": "0.49246833", "text": "function add_list($user, $name){\n\t//database\n\t$database = $GLOBALS['database'];\n\n\t//grabbing the latest it\n\t$id = $database->get_data(\"LIST_ID\", \"LISTS\", \"ORDER BY LIST_ID DESC LIMIT 1\");\n\t$id = $id[0][\"LIST_ID\"] + 1;\n\t\n\t//database function for inserting a list\n\t$database->insert(\"LISTS\", \"$id , $name , \\\"$user\\\"\");\n\n\theader(\"Refresh:0; url=lists.php?action=display&list=$id\");\n}", "title": "" }, { "docid": "363bee5ff659e74aeea62ee490a816ef", "score": "0.49237314", "text": "public function &getListaCLienti() {\n $clienti = array();\n $query = \"SELECT * FROM clienti \";\n $mysqli = Db::getInstance()->connectDb(); \n if (!isset($mysqli)) {\n error_log(\"[getListaClienti] impossibile inizializzare il database\");\n $mysqli->close();\n return $clienti;\n }\n $result = $mysqli->query($query);\n if ($mysqli->errno > 0) {\n error_log(\"[getListaClienti] impossibile eseguire la query\");\n $mysqli->close();\n return $clienti;\n }\n while ($row = $result->fetch_array()) {\n $clienti[] = self::creaClienteDaArray($row); \n }\n return $clienti;\n }", "title": "" }, { "docid": "5f47731bd8f9ea70e459bc64cfa8f064", "score": "0.49198234", "text": "function insertdata(){\n//mysql_select_db(\"stress-free\", $db);\n\nglobal $db;\n//既にログインしているデータは消える\n$dquery = sprintf(\"DELETE FROM loginuserlist WHERE id = '%s'\", $_SESSION['user_id']);\nmysql_query($dquery, $db) or die(mysql_error());\n\n$query = sprintf(\"INSERT INTO loginuserlist(id, username, latitude, longitude, altitude, accuracy, chatroom, status, accesstime ) VALUES (%s, '%s', %s, %s, %s, %s, 0 , '%s', '%s')\", \n mysql_real_escape_string($_SESSION['user_id']),\n mysql_real_escape_string($_POST['NAME']),\n mysql_real_escape_string($_POST['LATITUDE']),\n mysql_real_escape_string($_POST['LONGITUDE']),\n mysql_real_escape_string($_POST['ALTITUDE']),\n mysql_real_escape_string($_POST['ACCURACY']),\n mysql_real_escape_string($_POST['STATUS']),\n\tgetdatetime()\n\n);\n//print \",query#\" . $query;\n$res = mysql_query($query, $db) or die(mysql_error());\n\n//print \",errno#\" . mysql_errno($db). \",errorContent#\" .mysql_error($db); // \t\n}", "title": "" }, { "docid": "4fa6c4f6eeb1992b69f07a2a2cbe0aa9", "score": "0.49193975", "text": "public function setList(){\n$this->OpenConnect(); \n$sql = \"CALL sp_mostrar_ikasleak()\";\n$this->list = array();\n$result = $this->link->query($sql);\n while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {\n $new=new self();\n $new->setId($row['id']);\n $new->setNombre($row['nombre']);\n $new->setApellido1($row['apellido1']);\n $new->setApellido2($row['apellido2']);\n $new->setEdad($row['edad']);\n $new->setCurso($row['Curso']);\n $new->setEdad($row['ciclo']);\n $new->setEdad($row['id_ziklo']);\n array_push($this->list, $new); // array of objects\n array_push($this->JSONList,$row); //array of rows\n }\n mysqli_free_result($result); \n \n $this->CloseConnect();\n\n}", "title": "" }, { "docid": "4994e17f012a539c91f8d91db4078304", "score": "0.49191642", "text": "function statistics_server_form_add_client_submit($form, &$form_state) {\n $name = $form_state['values']['name'];\n $url = $form_state['values']['url'];\n $description = $form_state['values']['description'];\n $type = $form_state['values']['type'];\n $id = db_insert('statistics_server_clients')\n ->fields(array(\n 'name' => $name,\n 'url' => $url,\n 'description' => $description,\n 'type' => $type,\n ))\n ->execute();\n}", "title": "" }, { "docid": "7bd58db4282fc103b111b0e90bb3f18e", "score": "0.49188414", "text": "public function getClientList()\n {\n $db = Database::getInstance();\n $db->query(\"SELECT * FROM Client\");\n return $db->resultsToJson();\n\n }", "title": "" }, { "docid": "7f68dc1e737aa10f2b5f1e11184048df", "score": "0.49111122", "text": "function plugin_postinstall_nexlist($pi_name)\r\n{\r\n global $_DB_dbms, $_CONF, $_DB_table_prefix, $_TABLES ;\r\n require_once ($_CONF['path'] . 'plugins/nexlist/nexlist.php');\r\n $DEFVALUES = array();\r\n $DEFVALUES[] = \" INSERT INTO {$_TABLES['nexlist']} (id, plugin, category, name, description, listfields, edit_perms, view_perms, active) VALUES (1, 'all', 'Testing', 'Example List', 'This is an example list definition that has 2 fields. The one field is using a function to provide the dropdown list options. This function could be obtaining the list of options from a list maintained by this plugin - so it can build on itself.', 'User Name', 2, 2, 1);\";\r\n $DEFVALUES[] = \"INSERT INTO {$_TABLES['nexlistfields']} (id, lid, fieldname, value_by_function) VALUES (1, 1, 'Username', 'nexlistGetUsers');\";\r\n $DEFVALUES[] = \" INSERT INTO {$_TABLES['nexlistfields']} (id, lid, fieldname, value_by_function) VALUES (2, 1, 'Location', '');\";\r\n $DEFVALUES[] = \"INSERT INTO {$_TABLES['nexlistitems']} (id, lid, value, active, itemorder) VALUES (1, 1, '1', 1, 10);\";\r\n\r\n if ($_DB_dbms != 'mssql') {\r\n COM_errorLog ('Inserting default data', 1);\r\n foreach ($DEFVALUES as $sql) {\r\n DB_query ($sql, 1);\r\n if (DB_error ()) {\r\n PLG_uninstall($pi_name);\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n}", "title": "" }, { "docid": "fe2f4148710c201b729caf9903289319", "score": "0.49103892", "text": "function createClientBulk($schoolInfo) {\n\n //$sql = \"INSERT IGNORE INTO d_client(client_name,principal_name,email,principal_phone_no,addressLine2,city,city_id,state,state_id,country_id,create_date) VALUES \";\n \n // $values = $this->createQueryValues($schoolInfo);\n //$sql = $sql . $values;\n // return $this->db->query($sql);\n if($this->db->insert(\"d_client\",$schoolInfo)){\n return $this->db->get_last_insert_id();\n }else\n return false; \n }", "title": "" }, { "docid": "0f0f8982078e2832ad8355915b390ded", "score": "0.49087575", "text": "function add_entry($data)\n\t{\n\t\tglobal $log, $db;\n\t\t$log->add_to_log('Guestbook::add_entry()', 'add_entry() called', 'guestbook');\n\n\t\tif (count($data))\n\t\t{\n\t\t\t$sql = '\n\t\t\t\t\tinsert into\n\t\t\t\t\t\t' . TB_GUESTBOOK . '\n\t\t\t\t\t(\n\t\t\t\t\t\tname,\n\t\t\t\t\t\tdate,\n\t\t\t\t\t\tmessage,\n\t\t\t\t\t\temail,\n\t\t\t\t\t\thomepage,\n\t\t\t\t\t\tip\n\t\t\t\t\t)\n\t\t\t\t\tvalues\n\t\t\t\t\t(\n\t\t\t\t\t\t\"' . htmlentities(trim($data[name])) . '\",\n\t\t\t\t\t\t\"' . strftime('%Y-%m-%d %H:%M:%S') . '\",\n\t\t\t\t\t\t\"' . htmlentities(trim($data[message])) . '\",\n\t\t\t\t\t\t\"' . htmlentities(trim($data[email])) . '\",\n\t\t\t\t\t\t\"' . htmlentities(trim($data[homepage])) . '\",\n\t\t\t\t\t\t\"' . $GLOBALS[REMOTE_ADDR] . '\"\n\t\t\t\t\t)\n\t\t\t\t';\n\n\t\t\t$db->query($sql);\n\t\t\tif ($db->affected_rows() > 0)\n\t\t\t{\n\t\t\t\treturn(1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$log->add_to_log('Guestbook::add_entry()', 'ERROR: Problem with inserting entry, db::affected_rows returned 0! Aborting...', 'guestbook');\n\t\t\t\t$log->add_to_log('Guestbook::add_entry()', 'ERROR: Here\\'s the query i used:', 'guestbook');\n\t\t\t\t$log->add_to_log('Guestbook::add_entry()', $sql, 'guestbook');\n\t\t\t\treturn(0);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$log->add_to_log('Guestbook::add_entry()', 'ERROR: add_entry() called without any data! Aborting...', 'guestbook');\n\t\t\treturn(0);\n\t\t}\n\t}", "title": "" }, { "docid": "e049fd90efe15e15cc78e4cad1982133", "score": "0.4907547", "text": "public function dataListRefresh(DatabaseCodeGen $objCodeGen, SqlTable $objTable);", "title": "" }, { "docid": "548b07409197245d03a736b1e8604473", "score": "0.49054092", "text": "public function getLeaderBoardDataNewClients_bkp($data,$dayRangeType){\n\n $get_highest_new_clients_from_appts = $this->DB_ReadOnly->query(\"SELECT count(DISTINCT service.iclientid) as new_client_count,emp.name,emp.emp_iid,count(service.id) as service_count FROM \".MILL_SERVICE_SALES.\" service\n join \".MILL_CLIENTS_TABLE.\" client on service.iclientid=client.ClientId AND service.account_no=client.AccountNo\n join \".STAFF2_TABLE.\" emp on emp.emp_iid=service.iempid\n WHERE\n service.account_no = '\".$data['salonAccountNo'].\"' and\n emp.account_no = '\".$data['salonAccountNo'].\"' and\n service.tdatetime >= '\".$data['startDate'].\"' and\n service.tdatetime <= '\".$data['endDate'].\"' and\n service.lrefund = 'false' and\n date(client.clientFirstVistedDate) >= '\".$data['startDate'].\"' and\n date(client.clientFirstVistedDate) <= '\".$data['endDate'].\"' and\n emp.leader_board_status = \".self::LEADER_BOARD_STATUS.\"\n GROUP BY service.iempid HAVING service_count > \".self::MIN_NEW_CLIENT_COUNT.\"\")->result_array();\n pa($this->DB_ReadOnly->last_query());\n //print_r($get_highest_new_clients_from_appts);exit;\n if($get_highest_new_clients_from_appts===FALSE){\n $errors = $this->DB_ReadOnly->error();\n $errors['tablename'] = 'mill_past_appointments/mill_clients';\n send_mail_database_error($errors);\n }\n\n $highestNewClientsRow = array();\n\n if(!empty($get_highest_new_clients_from_appts)){\n\n foreach($get_highest_new_clients_from_appts as $result){\n $highestNewClientsRow['new_client_count'][] = $result['new_client_count'];\n $highestNewClientsRow['iempname'][] = trim($result['name']);\n $highestNewClientsRow['iid'][] = $result['emp_iid'];\n\n //$i++;\n }\n //print_r($highestNewClientsRow);exit;\n\n if(!empty($highestNewClientsRow['new_client_count']))\n {\n $high_key_value = array_search(max($highestNewClientsRow['new_client_count']), $highestNewClientsRow['new_client_count']);\n\n $returnResult[\"highest_new_client_value\"] = $highestNewClientsRow['new_client_count'][$high_key_value];\n $returnResult[\"highest_new_client_employee\"] = $highestNewClientsRow['iempname'][$high_key_value];\n $returnResult[\"highest_new_client_employee_iid\"] = $highestNewClientsRow['iid'][$high_key_value];\n }\n else\n {\n $returnResult[\"highest_new_client_value\"] = \"0\";\n $returnResult[\"highest_new_client_employee\"] = \"\";\n $returnResult[\"highest_new_client_employee_iid\"] = \"\";\n }\n return $returnResult;\n }\n }", "title": "" }, { "docid": "99b5272e06b274bf09373cb394b94b96", "score": "0.49031973", "text": "function clients_setupStoreGroup() {\n\tglobal $Auth;\n\n\t## multiclient\n\t$client_id = $Auth->auth[\"client_id\"];\n\t\n\t## we need to prepare the input - needs to be done properly\n\t$groupname \t= $_POST['groupname'];\n\t$controlfile= $_POST['controlfile'];\n\n\t## prepare the db-object\n\t$db_connectionStore = new DB_Sql();\n\n\t$lock_query = \"LOCK TABLE \".DB_PREFIX.\"clients_groups write\";\n\t$result_pointer = $db_connectionStore->query($lock_query);\t\n\t\n\t## if we are editing the current client- we need to update\n\tif(isset($_POST['group']) && intval($_POST['group']) !=0) {\n\t\t$query = \"UPDATE \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].\"groups SET groupname='$groupname', controlfile='$controlfile' WHERE id=\".intval($_POST['group']);\n\t\t$result_pointer = $db_connectionStore->query($query);\t\n\t\t$id = intval($_POST['client']);\n\t} else {\n\t\t$query = \"INSERT INTO \".DB_PREFIX.$GLOBALS['_MODULE_DATAOBJECTS_DBPREFIX'].\"groups (groupname,controlfile) values ('$groupname','$controlfile')\";\n\t\t$result_pointer = $db_connectionStore->query($query);\t\n\t\t$id = $db_connectionStore->db_insertid($result_pointer);\n\t}\n\t\n\t$lock_query = \"UNLOCK TABLE\";\n\t$result_pointer = $db_connectionStore->query($lock_query);\n\n\treturn $id;\n}", "title": "" }, { "docid": "8cc44334d7a836ddd51222a7ce18925d", "score": "0.48956522", "text": "public function setList_ikasle_ziklo(){\n$this->OpenConnect(); \n$sql = \"CALL sp_consulta_ikasle_ziklo()\";\n$this->list = array();\n$result = $this->link->query($sql);\n while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {\n \n array_push($this->List_ikasle_ziklo,$row); //array of rows\n }\n mysqli_free_result($result); \n \n $this->CloseConnect();\n\n}", "title": "" }, { "docid": "bce69cbd71ba23871e0b1b16cba78251", "score": "0.48920035", "text": "public function run()\n {\n //\n $clients = [\n \t[\"125000555\",\"PT Maju Terus\",\"0700151255\"],\n \t[\"125000666\",\"PT Cipta Terus\",\"0800112875\"]\n ];\n\n foreach($clients as $client){\n \t$new_client = new Customer();\n \t$new_client->client_code = $client[0];\n \t$new_client->name = $client[1];\n \t$new_client->npwp = $client[2];\n \t$new_client->save();\n }\n }", "title": "" }, { "docid": "e42c249064826bc2725852c9f8557a32", "score": "0.4891501", "text": "function addClientMdl()\r\n\t{\r\n\t\t// Inclusion du fichier contenant l'objet PDO pour éffectuer les requêtes\r\n\t\tinclude(\"../config/config.php\");\r\n\r\n\t\t// Ceci est une requête préparée via :nomVariable, permettant un peu plus de sécurité\r\n\t\t// En vérifiant le type de données avant son envoi en base de donnée\r\n\t\t$requete = \"INSERT INTO clients (code_ag, nom_cli, prenom_cli, mdp_cli, \r\n\t\t\t\t\t\t\t\tadresse_cli, cp_cli, email_cli, ville_cli, tel_cli) \r\n\t\t\t\t\tVALUES (:code_ag, :nom_cli, :prenom_cli, :mdp_cli, \r\n\t\t\t\t\t\t :adresse_cli, :cp_cli, :email_cli, :ville_cli, :tel_cli)\";\r\n\r\n\t\t// Préparation de la requête\r\n\t\t$inserer = $pdo -> prepare($requete);\r\n\t\t\r\n\t\t// Vérification du type de donnée envoyé en base et assignation à sa variable (valeur) correspondante\r\n\t\t$inserer -> bindParam (\":code_ag\", $code_ag, PDO::PARAM_INT);\r\n $inserer -> bindParam (\":nom_cli\", $nom_cli, PDO::PARAM_STR);\r\n $inserer -> bindParam (\":prenom_cli\", $prenom_cli, PDO::PARAM_STR);\r\n $inserer -> bindParam (\":mdp_cli\", $mdp_cli, PDO::PARAM_STR);\r\n $inserer -> bindParam (\":adresse_cli\", $adresse_cli, PDO::PARAM_STR);\r\n $inserer -> bindParam (\":cp_cli\", $cp_cli, PDO::PARAM_INT);\r\n $inserer -> bindParam (\":email_cli\", $email_cli, PDO::PARAM_STR);\r\n $inserer -> bindParam (\":ville_cli\", $ville_cli, PDO::PARAM_STR);\r\n $inserer -> bindParam (\":tel_cli\", $tel_cli, PDO::PARAM_INT);\r\n\r\n\t\techo \"Dans le model addClient\";\r\n\t\t/*\r\n if($inserer->execute())\r\n {\r\n $reussite = \"<script>alert('Insertion réussie !!')</script>\";\r\n }\r\n else\r\n {\r\n $erreur = \"<script>alert('Insertion échouée !!')</script>\";\r\n\t\t}\r\n\t\t*/\r\n\t}", "title": "" }, { "docid": "214cb21bc5ebdbaa12116666cd7e9d75", "score": "0.48871863", "text": "public function run()\n {\n\n\n\n // Add the client\n Client::create([\n \"name\"=>\"ABC & Sons\",\n \"email\"=>\"[email protected]\",\n \"client_type\"=>\"Prospect\",\n \"service_type_id\"=>1,\n \"sector_id\"=>1,\n \"vendor_status\"=>\"Pending\",\n \"contact_person\"=> \"Abiola\",\n \"mobile\"=> \"08025499721\",\n \"bdm_person_id\"=> 1,\n \"address\"=> \"Lagos\",\n \n\n ]);\n }", "title": "" }, { "docid": "00540b10e859dc9d48100f8241d8709a", "score": "0.4880048", "text": "public function clientsList() {\n // Le titre de la page\n $data['title'] = \"Liste des Clients\";\n // Récupération de tout les Clients\n $data['clients'] = $this->Client->getClients();\n //configuration de la pagination\n $this->load->config('pagination');\n $config = $this->config->item('pagination_config');\n $config['total_rows'] = $this->Client->countAll();\n $config['base_url'] = site_url('clientsList');\n $this->pagination->initialize($config);\n $data['pagination'] = $this->pagination->create_links();\n\n // Chargement des différentes vue, avec envoi du tableau data\n $this->load->view('common/header', $data);\n $this->load->view('client/clientsList', $data);\n $this->load->view('common/footer', $data);\n }", "title": "" }, { "docid": "fb930e625f1047832f370829aa5a43e6", "score": "0.48722768", "text": "function manageClinics(){\r\n $s = \"\";\r\n $clinic_key = SEEDInput_Int( 'clinic_key' );\r\n $ClinicsDB = new ClinicsDB($this->oApp->kfdb);\r\n $cmd = SEEDInput_Str('cmd');\r\n switch( $cmd ) {\r\n case \"update_clinic\":\r\n $kfr = $ClinicsDB->GetClinic( $clinic_key );\r\n foreach( $kfr->KFRel()->BaseTableFields() as $field ) {\r\n if($field['alias'] == 'email' && SEEDInput_Str('email') == 'default'){\r\n $kfr->SetValue( $field['alias'], strtolower(SEEDInput_Str('clinic_name')).\"@catherapyservices.ca\" );\r\n }else{\r\n $kfr->SetValue( $field['alias'], SEEDInput_Str($field['alias']) );\r\n }\r\n }\r\n $kfr->PutDBRow();\r\n break;\r\n case \"new_clinic\":\r\n $name = SEEDInput_Str(\"new_clinic_name\");\r\n $kfr = $ClinicsDB->KFRel()->CreateRecord();\r\n $kfr->SetValue(\"clinic_name\",$name);\r\n $kfr->PutDBRow();\r\n $clinic_key = $kfr->Key();\r\n break;\r\n }\r\n $raClinics = $ClinicsDB->KFRel()->GetRecordSetRA(\"\");\r\n\r\n $s .= \"<div class='container-fluid'><div class='row'>\"\r\n .\"<div class='col-md-6'>\"\r\n .\"<h3>Clinics</h3>\"\r\n .\"<button onclick='add_new();'>Add Clinic</button>\"\r\n .\"<script>function add_new(){var value = prompt(\\\"Enter Clinic's Name\\\");\r\n if(!value){return;}\r\n document.getElementById('new_clinic_name').value = value;\r\n document.getElementById('new_clinic').submit();\r\n }</script><form id='new_clinic'><input type='hidden' value='' name='new_clinic_name' id='new_clinic_name'><input type='hidden' name='cmd' value='new_clinic'/>\r\n </form>\"\r\n .SEEDCore_ArrayExpandRows( $raClinics, \"<div style='padding:5px;'><a href='?clinic_key=[[_key]]'>[[clinic_name]]</a></div>\" )\r\n .($clinic_key ? $this->drawClinicForm($raClinics, $clinic_key) : \"\")\r\n .\"</div>\";\r\n return($s);\r\n }", "title": "" }, { "docid": "91660d449425b843aa9ed2a258fd6f37", "score": "0.48704195", "text": "function clients_selectmenu_fetchData($ctlData,$clientID) {\t\n\treturn clients_selectmenu_getData($ctlData,$clientID);\n}", "title": "" }, { "docid": "a8db07268ed9956169791948d572f1cc", "score": "0.48660848", "text": "public function clientCreation($data){ //Funcion para crear un cliente, llamada en Page.php con la el ajax enviado en adminSLogic.js\n \n //Se usa el query largo, en lugar del simplificado, para poder hacer uso del array enviado en el ajax para guardar tambien los productos.\n $query = \"INSERT INTO client(client_name, client_direction, client_telph, client_email) \n VALUES ('\".$data['client_name'].\"', '\".$data['client_direction'].\"', '\".$data['client_telph'].\"', '\".$data['client_email'].\"');\";\n $this->db->query($query);\n \n //Luego, se obtiene el id del cliente que se acaba de crear.\n $this->db->select('client_id');\n $this->db->from('client');\n $this->db->where('client_name', $data['client_name']);\n $result = $this->db->get();\n $newClientID = $result->row();\n \n //Para finalmente guardar en la base de datos todos los productos seleccionados\n foreach ($data['client_product'] as $productID) {\n $queryProduct = \"INSERT INTO product_client(client_id, product_id) VALUES ('\".$newClientID->client_id.\"', '\".$productID.\"');\";\n $this->db->query($queryProduct);\n }\n\n }", "title": "" }, { "docid": "076454ee2bd099d4ec0545ed91b624ee", "score": "0.48620832", "text": "function funktion_station_getdata($IP,$PORT,$SENDCOMMAND,$RECEIVEFILTER,$RECIEVECOMMAND,$MAMS_objektid,$absolut_pfad,$link,$defaultoutput,$PARAMETER1,$PARAMETER2,$PARAMETER3) {\n if (!$SENDCOMMAND) {\n $SENDCOMMAND = \"!bh1750 lux\"; // Default Sendcommand if no other given\n };\n\n//#DEBUG CONFIG: ##############\n $debug = '0'; // Debug Ausgabe für den Fall, dass das Script nicht auf EOF Reagiert.\n $debugout = '0';\t\t\t\t\t\t\t// DebugAusgabe Neu\n $anzahlzeilen = '1';\t\t\t\t\t\t\t// Hier wird die Anzahl an Zeilen der Telnetübertragung angegeben die für den Debug erwartet wird.\n $debug_array = '0'; // Debug Ausgabe für Array.\n $debug_array2 = '0'; // Einzelne aus dem Preg_match_all herausgeholte Werte.\n $defaultoutput = '1'; // Standard Debug Ausgabe für Logfile\n $sqldebug = '0'; // Ausgabe des MySQL Strings, so wie er in an die Datenbank gegeben wird.\n //#############################\n\n include ($absolut_pfad . \"/daemon/telnetconnector_ethersex.php\"); // Weitere PHP Dateien Laden\n $timestampaktu = time();\n\n $objektid = $MAMS_objektid;\n $lux = request($IP,$PORT,$SENDCOMMAND,$defaultoutput,$debug,\"EGAL\",$anzahlzeilen); // Subprogramm für Telnetabfrage Aufrufen\n if ($lux) {\n debug($debugout, $timestampaktu, \"1\", \"bh1750 lux\", \"REQUEST START\", \"OK\");\n if ($debug_array == \"1\") { \t\t\t// Anfang der Debug Ausgabe\n echo \"### ARRAY DEBUG ###################################################\"; \t\t\t// Debug Ausgabe\n echo '<pre>'; \t\t\t// Debug Ausgabe\n print_r($lux); // Debug Ausgabe\n echo '</pre>'; \t\t\t// Debug Ausgabe\n echo \"#####################################################################\";\t\t \t// Debug Ausgabe\n echo \"<br>\";\n }; \t\t\t// Ende der Debug Ausgabe\n debug($debugout, $timestampaktu, \"0\", \"bh1750 lux\", \"DATA FROM REQUEST\", $lux[0]);\n \n if ($defaultoutput == \"1\") { \n echo \"objektid: <b>\" . $objektid . \"<br>\"; // Debug Ausgabe\n echo \"lux: <b>\" . $lux[0] . \"<br>\"; // Debug Ausgabe\n }; \n \n $sql_neu = \"INSERT INTO `data` (`wert1`, `objectid`,`timestamp`) VALUES ('$lux[0]', '$objektid', NOW())\"; //Syntax für Datenbank\n debug($sqldebug, $timestampaktu, \"1\", \"mySQL\", \"INSERT\", $sql_neu);\n if (mysql_query($sql_neu, $link)) { // MySQL Verbindung Aufbauen\n debug($sqldebug, $timestampaktu, \"1\", \"mySQL\", \"INSERT\", \"INSERT SUCCESSFULL\");\n } else { // Anfang mySQL Fehlermeldung Ausgeben (Wenn das Eintragen nicht erfolgreich war)\n echo \"<br>Daten nicht erfolgreich in die Datenbank gespeichert!!!<br>\"; // Fehlermeldung Ausgeben\n echo mysql_error($link); // Fehlerbeschreibung Ausgeben\n };\n } else { // Ende Responseprüfung\n debug($debugout, $timestampaktu, \"1\", \"bh1750 lux Request\", \"REQUEST START\", \"ERROR\");\n };\n}", "title": "" }, { "docid": "1e77cfe02b594ab323edfaa0c442e2fe", "score": "0.4859479", "text": "public function getClientList()\n {\n $db = Database::getInstance();\n $db->query(\"SELECT * FROM Client WHERE fkidSupplier = ?\", array($this->_id));\n\n return $db->resultsToJson();\n\n }", "title": "" }, { "docid": "2ca3004877840b09797ec3a19b104570", "score": "0.48587194", "text": "function retrieveData();", "title": "" }, { "docid": "56599b6202916cc8a26e51e31a18deeb", "score": "0.48568147", "text": "public function ldevclient_ldevserver_import($p_value)\n {\n $l_dao_sanpool = isys_cmdb_dao_category_g_sanpool::instance($this->m_database);\n\n if (array_key_exists($p_value['id'], $this->m_object_ids))\n {\n $p_value[C__DATA__VALUE] = $this->m_object_ids[$p_value['id']];\n $l_found = false;\n\n if (is_array($this->m_category_data_ids[C__CMDB__CATEGORY__TYPE_GLOBAL][C__CATG__LDEV_SERVER]))\n {\n if (array_key_exists($p_value['ref_id'], $this->m_category_data_ids[C__CMDB__CATEGORY__TYPE_GLOBAL][C__CATG__LDEV_SERVER]))\n {\n $p_value['ref_id'] = $this->m_category_data_ids[C__CMDB__CATEGORY__TYPE_GLOBAL][C__CATG__LDEV_SERVER][$p_value['ref_id']];\n $l_found = true;\n } // if\n } // if\n\n if ($this->m_mode !== isys_import_handler_cmdb::C__APPEND)\n {\n if (!$l_found)\n {\n $l_data = $l_dao_sanpool->get_data(\n null,\n $p_value[C__DATA__VALUE],\n \" AND isys_catg_sanpool_list__title LIKE \" . $l_dao_sanpool->convert_sql_text($p_value['ref_title']),\n null,\n C__RECORD_STATUS__NORMAL\n )\n ->get_row();\n if ($l_data)\n {\n $p_value['ref_id'] = $l_data['isys_catg_sanpool_list__id'];\n }\n else\n {\n $p_value['ref_id'] = $l_dao_sanpool->create(\n $p_value[C__DATA__VALUE],\n C__RECORD_STATUS__NORMAL,\n $p_value['ref_title'],\n null,\n null,\n null,\n null,\n null,\n null,\n null,\n null,\n null,\n null\n );\n } // if\n } // if\n\n return $p_value['ref_id'];\n } // if\n } // if\n return null;\n }", "title": "" }, { "docid": "e5dd808af01a173daeb79c0c14bfb7e9", "score": "0.48551837", "text": "function clientes(){\n \n }", "title": "" }, { "docid": "b33168b03ddf06a3e6dabc35930d33ef", "score": "0.48490205", "text": "private function _fillRandomData()\n\t{\n\t\t$count = self::clientCount;\n\n\t\t// lets go\n\t\twhile($count--)\n\t\t{\n\t\t\t// add new client\n\t\t\t$this->_addRandomClient();\n\n\t\t\t// get rand account count\n\t\t\t$accountCount = rand(self::accountMinCount, self::accountMaxCount);\n\n\t\t\t// processing accounta\n\t\t\twhile($accountCount--)\n\t\t\t{\n\t\t\t\t// create account with initial charging\n\t\t\t\t$this->_addRandomAccount( $this->client->getId() );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a94b697a930bb961b2143dd756c4cfb4", "score": "0.48486924", "text": "function create_new_list($user_id) {\n //1. Connect to dBase\n $db = Database::getDB();\n //2. Convert $items list to JSON file\n $list = json_encode(array());\n //3. Query the dBase\n $query = \"INSERT INTO lists\n (list, user_id, tag_id)\n VALUES\n (:list, :user_id, :tag_id)\";\n try {\n //4. Prepare the Query\n $stmnt = $db->prepare($query);\n //5. Bind the values being saved to dBase for security\n $stmnt->bindValue(':list', $list, PDO::PARAM_STR);\n $stmnt->bindValue(':user_id', $user_id, PDO::PARAM_INT);\n $stmnt->bindValue(':tag_id', $tag_id, PDO::PARAM_INT);\n //6. Execute the Query\n $stmnt->execute();\n //7. Close the Connection\n $stmnt->closeCursor();\n } catch (PDOException $e) {\n //8. Display an error if a connection could not be established\n $error_message($e->getMessage());\n display_db_error($error_message);\n exit();\n }\n}", "title": "" }, { "docid": "1ba7801ce53252e9c592f371733f345c", "score": "0.48448896", "text": "public function dataListInstantiate(DatabaseCodeGen $objCodeGen, SqlTable $objTable);", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "79e867182f03a5f00ea5b5e034cafbeb", "score": "0.0", "text": "public function show(Request $request, $id)\n {\n $user = $request->user();\n return $this->experienceRepository->findByIdAndUser($user->id, $id);\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": "03308cdf1f3eb0c47d8f3059a2a11231", "score": "0.7062654", "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.70187664", "text": "public function showResource()\n\t{\n\t\treturn view('resources.list')->with('resources', Resources::all());\n\t}", "title": "" }, { "docid": "426f9c78118dbbe009edc89fcf8571df", "score": "0.6748524", "text": "public function show(Resource $resource)\n {\n //\n\t\t\t\treturn response()->json($resource);\n }", "title": "" }, { "docid": "921410ad408e73391c76fba66fc4ab57", "score": "0.65274835", "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.64993453", "text": "public function get($resource);", "title": "" }, { "docid": "dd518b422828ccdfc7b932a34e62225d", "score": "0.6273607", "text": "public function show(Resource $resource)\n {\n return response()->json($resource);\n \n }", "title": "" }, { "docid": "51a1c3499847de81938cf22e3e336bf2", "score": "0.62220424", "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.6141969", "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.6119021", "text": "public function displayAction($id)\n { }", "title": "" }, { "docid": "0243c17e457a131b89a485445f1cee26", "score": "0.60701436", "text": "public function show()\n {\n $this->getView($this->view_name);\n }", "title": "" }, { "docid": "f0d6bc8f87110dac3699808a11a93b8f", "score": "0.6056663", "text": "public function render()\n {\n $this->bindResource($this->resource);\n return parent::render();\n }", "title": "" }, { "docid": "02d611037299aac573636734fd64f517", "score": "0.59945476", "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": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "7b8f897ba2297696b69f6d8202444107", "score": "0.59492433", "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": "89b549ed67b4702bbd94de618931239c", "score": "0.594717", "text": "public function show()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "d8bcb4a6a484fbd4595bf60c13751c5f", "score": "0.5916333", "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": "4e4b4802386aefba7de0e06d94dac1a8", "score": "0.5861693", "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.58511454", "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.5843188", "text": "function show()\n\t{\n\t\t$this->postObject->display();\n\t}", "title": "" }, { "docid": "c77fbba2f7b7f5018f4471f75871b57a", "score": "0.5841994", "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.5824328", "text": "public function show()\r\n\t{\r\n\t\techo $this->template;\r\n\t}", "title": "" }, { "docid": "7c5c6f9fff24e84ba0d3b00444a0acc7", "score": "0.58195084", "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": "58526873a63ddff4b306282ce5155a89", "score": "0.58138895", "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": "d6af1b1d4946c54112fc9b7ca038cb20", "score": "0.58112013", "text": "public function display()\n\t{\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "426c72f34858b1f8fc0c2377d1350691", "score": "0.58062166", "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.57953733", "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": "21604cc50e9ca2b999b8c59635c9346b", "score": "0.5777744", "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": "ecd6aa7074b9a655f317e213378a7ab9", "score": "0.57773685", "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": "e7bae91f4e998eac5e73657c932c48d7", "score": "0.5752467", "text": "public function show($id) {\r\n\t\t//\r\n\t}", "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": "91b553cd446c5431be6377bad7d6e9b7", "score": "0.57440376", "text": "public function show($id)\n\t{\n\t\t//\n\t\t\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": "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": "6c6591ff03468044c76e66dc3ecca033", "score": "0.57143193", "text": "public function display(): Response;", "title": "" }, { "docid": "6ad29c72212e149d40619613cbacfe13", "score": "0.5712024", "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.57057", "text": "public function show($id)\n\t{\n\t\t//No need for showing\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": "690a36be877c22d14829a018fd5e04e9", "score": "0.56947994", "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": "98910c6c774dc1299639c448306ea157", "score": "0.5694748", "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": "851cd390daf8f79de66a294538711bfd", "score": "0.5691463", "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.568851", "text": "public function show($id)\n\t{ \n \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": "" }, { "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": "" } ]
c11ec33ca5e423479ec5335f1fc14a4e
muestra todos los conceptos de la tabla novedades
[ { "docid": "39ac37473aca15b2695889ea3f6f8fa6", "score": "0.0", "text": "function catalogo_estudios(){\n\t global $conn,$odbc;\n\n\t $this->llenar_combo(\"select cod_est as COD_EST,nom_est as NOM_EST from estudios order by nom_est\",\"COD_EST\",\"NOM_EST\",true);\n\t }", "title": "" } ]
[ { "docid": "a42023d5a7873eb012c11d0d01275717", "score": "0.66093814", "text": "function get_lista_tablas_y_vistas()\n\t{\n\t\t$esquema = null;\n\t\tif (isset($this->schema)) {\n\t\t\t$esquema = $this->schema;\n\t\t}\t\t\n\t\treturn $this->get_lista_tablas_bd(true, $esquema);\t\n\t}", "title": "" }, { "docid": "3c24e34447e8d401880287f59c44b50e", "score": "0.65804136", "text": "function catalogo_conceptos(){\n\t global $conn,$odbc;\n\n\t $this->llenar_combo(\"SELECT a.cod_con AS COD_CON, nom_con AS NOM_CON FROM CONCEPTOS_AYU a, conceptos b WHERE a.TABLA='novedades' and a.cod_con = b.cod_con order by NOM_CON\",\"COD_CON\",\"NOM_CON\",true);\n\t \n }", "title": "" }, { "docid": "97ad3ab765793dd57b77da25f68e5455", "score": "0.65317446", "text": "public function conceptos()\n {\n return $this->belongsToMany('mmdi\\Concepto')->withTimestamps()->withPivot('precio');\n }", "title": "" }, { "docid": "e73bc93e7516a0a4ab16126f16ec4af4", "score": "0.61724186", "text": "function listarFacturaConcepto(){\n\t\t$this->procedimiento='vef.ft_repventa_sel';\n\t\t$this->transaccion='VF_REPFACTCON_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t//$this->setCount(false);\n\n\t\t$this->setParametro('id_punto_venta','id_punto_venta','integer');\n\t\t$this->setParametro('id_concepto','id_concepto','integer');\n\t\t$this->setParametro('desde','desde','varchar');\n\t\t$this->setParametro('hasta','hasta','varchar');\n\t\t$this->setParametro('id_usuario_cajero','id_usuario_cajero','integer');\n\t\t$this->setParametro('tipo_documento','tipo_documento','varchar');\n\t\t$this->setCount(false);\n\n\t\t$this->captura('concepto','varchar');\n\t\t//$this->captura('total_precio','numeric');\n\t\t$this->captura('total_precio_dolar','numeric');\n\t\t$this->captura('total_precio_local','numeric');\n\t\t$this->captura('nro_factura','varchar');\n\t\t$this->captura('nroaut','varchar');\n\t\t$this->captura('id_punto_venta','int4');\n\t\t$this->captura('fecha','varchar');\n\t\t$this->captura('nombre','varchar');\n\t\t$this->captura('id_venta','integer');\n\t\t$this->captura('desc_persona','varchar');\n\t\t$this->captura('codigo','varchar');\n\t\t$this->captura('tipo_factura','varchar');\n\t\t$this->captura('estado','varchar');\n\t\t//$this->captura('total_venta','numeric');\n\t\t$this->captura('moneda_emision','varchar');\n\t\t$this->captura('total_venta_dolar','numeric');\n\t\t$this->captura('total_venta_local','numeric');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n //var_dump($this->respuesta);\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "974a1df3fbf4c419f585d27605e89609", "score": "0.6004269", "text": "function catalogo_barrios(){//muestra todos los conceptos de la tabla novedades\n\t global $conn,$odbc;\n\n\t $this->llenar_combo(\"select cod_bar as COD_BAR,nom_bar as NOM_BAR from barrios order by nom_bar\",\"COD_BAR\",\"NOM_BAR\",true);\n\t }", "title": "" }, { "docid": "5cd9c705a2bcd4c0879dc18544e7ed34", "score": "0.5854818", "text": "function titulosTablaTendencias(){\n\t\t\tglobal $secciones;\n\t\t\techo \"<tr>\";\n\t\t echo \"<th></th>\";\n\t\t echo \"<th>Puntaje</th>\";\n\t\t for($i = 0; $i < count($secciones); $i++){\n\t\t \techo \"<th>\". $secciones[$i] .\"</th>\";\n\t\t }\n\t\t echo \"</tr>\";\n\t\t}", "title": "" }, { "docid": "6340c3ca536ba6de27786697aaae4635", "score": "0.58340335", "text": "function generateTable()\n {\n //OBTENGO TODAS LAS CIUDADES\n $ciudades = $this->modelCiudad->getCiudades();\n\n $list = []; //ESTA VA A SER LA LISTA QUE CONTENGA TODAS LAS CIUDADES CON SUS LOTES.\n\n //POR CADA CIUDAD OBTENGO SUS LOTES\n if (!empty($ciudades)) {\n foreach ($ciudades as $ciudad) {\n $lotelist = [];\n $lotes = $this->modelLote->getLotesById($ciudad->id); //Obtengo todos los lotes\n\n foreach ($lotes as $lote) {\n $data = new stdClass();\n $data->nrolote = $lote->nro_lote;\n $data->ciudad = $lote->nombre_ciudad;\n $data->pp = $lote->año_vencimiento;\n\n $json = json_encode($data); //Guardo el lote en formato JSON\n array_push($lotelist, $json); //PUSHEO EL JSON A LA LISTA DE LOTES\n }\n if (!empty($lotes)) {\n $cantidad = count($lotes);\n $nombreciudad = $ciudad->nombre;\n array_push($list, $nombreciudad); //nombre de la ciudad\n array_push($list, $cantidad); //cantidad de lotes de la ciudad\n array_push($list, $lotelist); // lista de lotes con sus detalles\n }\n }\n }else{\n $this->ciudadView->ShowMessage(\"No Hay ciudades\");\n }\n\n $this->ciudadView->ShowTable($list); //ENVIO LA LISTA A LA VISTA PARA GENERARLA CON SMARTY\n }", "title": "" }, { "docid": "a4f27c0253281596e8d7b4d1b22d2bf0", "score": "0.5758598", "text": "public function campos_precios_venta_orden()\n {\n //ingresar columna\n $sql = \"SHOW COLUMNS FROM detalle_orden_compra LIKE 'precio_venta_p'\";\n $existe = $this->connection->query($sql);\n if ($existe->num_rows == 0) {\n $sql = \"ALTER TABLE `detalle_orden_compra`\n ADD COLUMN `precio_venta_p` double NULL COMMENT 'precio de venta sin impuesto en orden de compra para cambiar',\n ADD COLUMN `precio_venta_actual` double NULL COMMENT 'precio de venta sin impuesto del producto actual';\";\n $this->connection->query($sql);\n }\n $sql = \"SHOW COLUMNS FROM movimiento_detalle LIKE 'precio_venta_p'\";\n $existe = $this->connection->query($sql);\n if ($existe->num_rows == 0) {\n $sql = \"ALTER TABLE `movimiento_detalle`\n ADD COLUMN `precio_venta_p` double NULL COMMENT 'precio de venta sin impuesto en orden de compra para cambiar',\n ADD COLUMN `precio_venta_actual` double NULL COMMENT 'precio de venta sin impuesto del producto actual';\";\n $this->connection->query($sql);\n }\n }", "title": "" }, { "docid": "3baa956fd01b2933ca00eeca2e1af1c4", "score": "0.5739061", "text": "public function getIdTablesWithoutExercises(){\n\t\t$stmt = $this->db->prepare(\"SELECT DISTINCT ID_TABLA FROM TABLA WHERE ID_TABLA NOT IN (SELECT DISTINCT ID_TABLA FROM `INCLUYE`) AND TIPO='ESTANDAR'\");\n\t\t$stmt->execute();\n\t\t$tables_db = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\t\t$tables = array();\n\t\t\n\t\tforeach ($tables_db as $table) {\n\t\t\tarray_push($tables, $table[\"ID_TABLA\"]);\n\t\t}\n\t\t\n\t\treturn $tables;\n\t}", "title": "" }, { "docid": "43f74bf730df0db53800d34278e72844", "score": "0.5704333", "text": "public static function getListaConceptos()\n {\n $opciones = Conceptos::find()->asArray()->all();\n return ArrayHelper::map($opciones, 'id', 'descripcion', 'tipo');\n }", "title": "" }, { "docid": "b5ced495508a33274d598f2b3b1f4fab", "score": "0.5677675", "text": "public static function conceptoPago()\n\t{\n\t\t$model = array(\n\t\t\tarray('id' => 'M', 'value' => 'Mensualidad'),\n\t\t\tarray('id' => 'L', 'value' => 'Listines'),\n\t\t\tarray('id' => 'U', 'value' => 'Uniformes'),\n\t\t\tarray('id' => 'C', 'value' => 'Carnet'),\n\t\t\tarray('id' => 'P', 'value' => 'Publicidad'),\n\t\t\tarray('id' => 'R', 'value' => 'Recolectas'),\n\t\t);\n\t\treturn CHtml::listData($model, 'id', 'value');\n\t}", "title": "" }, { "docid": "27f7b46f0bcb59ceef09f757a73c1e8a", "score": "0.56746566", "text": "function listarConceptosSucursal(){\n\t\t$this->procedimiento='vef.ft_repventa_sel';\n\t\t$this->transaccion='VF_CONSUC_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t$this->count =false;\n\n\t\t$this->setParametro('id_sucursal','id_sucursal','integer');\n\t\t$this->setParametro('id_punto_venta','id_punto_venta','integer');\n\t\t$this->setParametro('fecha_desde','fecha_desde','date');\n\t\t$this->setParametro('fecha_hasta','fecha_hasta','date');\n\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('nombre','varchar');\n\t\t$this->captura('tipo','varchar');\n\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\n\n\t\t$this->ejecutarConsulta();\n\t\t//var_dump(\"AQUI LLEGA\",$this->respuesta);exit;\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "27b4d0539aa97efb6b58d8c5a4e3031c", "score": "0.56561166", "text": "public function getEtablissements();", "title": "" }, { "docid": "b42597fe23fe56ebffe308ec10daa00d", "score": "0.56501085", "text": "function listarConceptoIngasMasPartida(){\n\t\t$this->procedimiento='param.f_concepto_ingas_sel';\n\t\t$this->transaccion='PM_CONIGPAR_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\n\t\t$this->setParametro('autorizacion','autorizacion','varchar');\n\t\t$this->setParametro('autorizacion_nulos','autorizacion_nulos','varchar');\n\n\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_concepto_ingas','int4');\n\t\t$this->captura('desc_ingas','varchar');\n\t\t$this->captura('tipo','varchar');\n\t\t$this->captura('movimiento','varchar');\n\t\t$this->captura('sw_tes','varchar');\n\t\t$this->captura('id_oec','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('activo_fijo','varchar');\n\t\t$this->captura('almacenable','varchar');\n\t\t$this->captura('desc_partida','text');\n\t\t$this->captura('id_grupo_ots','varchar');\n\t\t$this->captura('filtro_ot','varchar');\n\t\t$this->captura('requiere_ot','varchar');\n\t\t$this->captura('sw_autorizacion','varchar');\n\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "78b55e27c3e3b1ea9fcbaec165d615f4", "score": "0.56329644", "text": "public function niveles_acceso()\n {\n try\n {\n $this->db->schema = 'sistema';\n //pr($this->db->list_tables()); //Muestra el listado de tablas pertenecientes al esquema seleccionado\n\n $crud = $this->new_crud();\n $crud->set_table('roles');\n\n\n $crud->columns('nombre', 'descripcion', 'orden', 'activo');\n $crud->fields('nombre', 'descripcion', 'orden', 'activo');\n \n $crud->change_field_type('activo', 'true_false', array(0 => 'Inactivo', 1 => 'Activo')); \n\n $output = $crud->render();\n $main_content = $this->load->view('catalogo/gc_output', $output, true);\n $this->template->setMainContent($main_content);\n $this->template->getTemplate();\n } catch (Exception $e)\n {\n show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());\n }\n }", "title": "" }, { "docid": "49bd826092edc62a8db01a43923b42bb", "score": "0.56166536", "text": "public function tabla()\n {\n $proyecto = new Proyecto();\n $proyectos = $proyecto->tabla();\n require_once 'views/Proyecto/gestionProyecto.php';\n }", "title": "" }, { "docid": "c654e84a78d8b335f49baad1d3afe5d1", "score": "0.5611502", "text": "function armarTabla($horarios, $horarioActual) {\n\tforeach($horarios as $hora) { //Se recorre el array de horarios\n\t\techo \"<tr><td>\".$hora.\"</td>\";\n\t\t$vacio = true;\n\t\tif(isset($_POST['patologias']) && cupoPatologia($_POST['patologias'], $GLOBALS['FECHASEL'])== false) {\n\t\t\tif($_SESSION['perfil'] == 'Administrador') {\n\t\t\t\t$gCant = 0;\n\t\t\t} else {\n\t\t\t\t$gCant = \"No\";\n\t\t\t}\n\t\t\techo \"<td class='ocupado'>Ocupado</td>\", \"<td class='ocupado'>\".$gCant.\"</td>\", \"<td class='ocupado'>\".$gCant.\"</td>\",\n\t\t\t\"<td class='ocupado'>-</td>\";\n\t\t\tcontinue; }\n\t\tforeach ($horarioActual as $registro=>$estado) {\t//Se recorre el array de turnos del dia\n\t\t\t\n\t\t\tif (isset($_POST['patologias']) && $_POST['patologias'] != $estado['patologia']) { continue; }\n\t\t\t\n\t\t\tif ($hora == date(\"H:i\", strtotime($estado['HORA_TURNO']))) {\t//Si el turno coincide con el horario\n\t\t\t\t\n\t\t\t\t$vacio = false;\n\t\t\t\t$cupos = obtenerCuposTurno($estado['FECHA_TURNO'], $hora); //guardo cantidad de cupos por hora y fecha dadas\n\t\t\t\t$cantCamillas = 0;\n\t\t\t\t$cantGimnasio = 0;\n\t\t\t\tforeach($cupos as $reg=>$camp) {\t//en este for asigno las cantidades para cada categoria\n\t\t\t\t\tif($camp['sesion'] == \"Camilla\") {\n\t\t\t\t\t\t$cantCamillas += $camp['cantidad'];\n\t\t\t\t\t} elseif($camp['sesion'] ==\"Gimnasio\") {\n\t\t\t\t\t\t$cantGimnasio += $camp['cantidad'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$disponibilidad = estadoTurno($cantCamillas, $cantGimnasio);\n\n\n\t\t\t\tif ($disponibilidad == \"Disponible\") { //If que determina los colores de las casillas\n\t\t\t\t\t$colorCasilla = \"disponible\";\n\t\t\t\t} elseif($disponibilidad == \"Libre\") {\n\t\t\t\t\t$colorCasilla = \"libre\";\n\t\t\t\t} elseif($disponibilidad == \"Ocupado\") {\n\t\t\t\t\t$colorCasilla = \"ocupado\";\n\t\t\t\t}\n\n\t\t\t\techo \"<td class=\".$colorCasilla.\">\".$disponibilidad.\"</td>\";\t//Cargo la disponibilidad\n\n\t\t\t\t//Cargo los cupos disponibles\n\t\t\t\techo \"<td class=\".$colorCasilla.\">\".cantidadCupos($cantCamillas, $GLOBALS['MaximoCamillas']).\"</td>\",\n\t\t\t\t\"<td class=\".$colorCasilla.\">\".cantidadCupos($cantGimnasio, $GLOBALS['MaximoGimnasio']).\"</td>\";\n\t\t\t\t\n\t\t\t\t//Cargo el boton reservar si es que esta disponible\n\t\t\t\techo \"<td>\";\n\t\t\t\tif ($disponibilidad == \"Disponible\") { \n\t\t\t\t\techo \"<input type='button' value='Si' onclick='location=\\\"reservar.php?fecha=\".$GLOBALS['FECHASEL'].\"&hora=\".$hora.\"\\\";'/>\";\n\t\t\t\t} else {\n\t\t\t\t\techo \"-\";\n\t\t\t\t}\n\t\t\t\techo \"</td>\";\n\t\t\t}\n\t\t}\n\t\tif ($vacio == true) { //Si en el horario no cayo ningun turno entonces...\n\t\t\techo \"<td class='libre'>Libre</td>\"; \n\t\t\tif ($_SESSION['perfil'] == \"Administrador\") {\n\t\t\t\techo \"<td class='libre'>\".$GLOBALS['MaximoCamillas'].\"</td>\", \"<td class='libre'>\".$GLOBALS['MaximoGimnasio'].\"</td>\";\n\t\t\t} else {\n\t\t\t\techo \"<td class='libre'>Si</td>\", \"<td class='libre'>Si</td>\"; \n\t\t\t} \n\t\t\techo \"<td><input type='button' value='Si' onclick='location=\\\"reservar.php?fecha=\".$GLOBALS['FECHASEL'].\"&hora=\".$hora.\"\\\";'/></td>\";\n\t\t}\n\t\techo \"</tr>\";\n\t}\n}", "title": "" }, { "docid": "777b9505b4adb9e7d67a1bb3cd6cb6aa", "score": "0.5611133", "text": "function getAllTurmasForInscricao()\n {\n\n }", "title": "" }, { "docid": "40fc1642eadbf3a73f4dff3d72670f9f", "score": "0.5598823", "text": "public function run()\n {\n App\\Concepto::create(['nombre' => 'NULO', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'NULO', 'tipo_registro_contable_id' =>2]); \n App\\Concepto::create(['nombre' => 'Aporte Día del Trabajador', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Aporte Aniversario Sindicato', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Aporte Deportivo Clausula 65', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Aporte Desayuno ', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Aporte Negociación Colectiva', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Aporte Presente Navidad', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Aporte PUCV', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Cuota Sindical CFT', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Devolución Gastos Sobrantes', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Diferencia Gastos Conatuch', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Pagos Varios', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Préstamo Aniversario ', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Reliquidación', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Transferencia CFT', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Transferencia Cotizaciones Ed. Universitarias', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Transferencia Cotizaciones CFT', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Transferencia Cotizaciones PUCV', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Transferencia Cuota', 'tipo_registro_contable_id' =>2]);\n App\\Concepto::create(['nombre' => 'Abono desayuno Aniversario', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Aniversario Sindicato', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Anticipo Cuota Mortuoria', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Aporte de Estudios', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Asamblea Socios', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Ayuda Solidaria Socio', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Beneficio Nacimiento', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Bono Navidad', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Bono Vacaciones', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Celebración Día de la Mujer', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Celebración Día del Trabajador', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Conatuch', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Copia Llaves', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Cuota Mortuoria', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Devolución de Gastos', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Escuela de Básquetbol ', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Escuela de Futbol', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Gasto Reunión Dirigentes', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Gastos Elecciones', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Gastos Varios', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Gestión Sindical', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Gratificación Negociación', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Horas Extras', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Insumos de Aseo', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Insumos Oficina', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Lavado Mensual', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Mercadería Sindicato', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Movilización', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Negociación Colectiva', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Pago Asesor', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Pago Boleta', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Pago Club de Campo', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Pago Factura', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Pago Honorarios', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Pago Previsión', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Peaje', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Presentes Años de Servicio', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Presentes Navidad', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Préstamo', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Recarga Celular Dirigentes', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Remodelación Sindicato', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Remuneración', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Traslado Socios Asamblea', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Traspaso Fondo Social', 'tipo_registro_contable_id' =>1]);\n App\\Concepto::create(['nombre' => 'Viáticos', 'tipo_registro_contable_id' =>1]);\n }", "title": "" }, { "docid": "31855f700ad46ccadd58393da3e5d697", "score": "0.5587263", "text": "public function tablaorden(){\n\n $orden = DB::table('ordenes AS o')\n ->join('servicios AS s', 's.id', '=', 'o.servicios_id')\n ->select('o.id', 's.identificador', 'o.precio_total',\n 'o.fecha_orden', 'o.estado_7', 'o.estado_8')\n ->latest('o.id')\n ->take(100)\n ->get();\n\n foreach($orden as $o){\n $o->fecha_orden = date(\"h:i A d-m-Y\", strtotime($o->fecha_orden));\n\n // buscar motorista\n $motorista = \"Sin motorista\";\n if($m = MotoristaOrdenes::where('ordenes_id', $o->id)->first()){\n $motorista = Motoristas::where('id', $m->motoristas_id)->pluck('identificador')->first();\n }\n\n $o->motorista = $motorista;\n\n $cupon = \"\";\n if(OrdenesCupones::where('ordenes_id', $o->id)->first()){\n $cupon = \"Si\";\n }\n $o->cupon = $cupon;\n }\n\n return view('backend.paginas.ordenes.tablas.tablaorden', compact('orden'));\n }", "title": "" }, { "docid": "e4d7b5df01f39017c545003b7960c14d", "score": "0.55864847", "text": "public function reemplazar_tablas_asociadas() {\r\n\t\tforeach ( $this->data as $clave => $fila ) {\r\n\t\t\tif ( $fila['tabla_asociada'] != '' ) {\r\n\t\t\t\t$this->data[$clave]['respuesta_valor'] = $this->get_valor_tabla_asociada($fila);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a93a5d99192299f3615d91ca2dc582e7", "score": "0.557522", "text": "public function noconformidades()\n {\n return $this->belongsToMany(NoConformidad::class, 'noconformidad_certificado')->withTimestamps();\n }", "title": "" }, { "docid": "59b88c0ee8279f9ee9277df2329971fb", "score": "0.5521974", "text": "public function relatorioVistoria()\n {\n return $this->app[\"db\"]->fetchAll('SELECT * FROM vistorias WHERE STATUS != ?', array('cancelada'));\n }", "title": "" }, { "docid": "63ec54620a54aa036515fa21e5e5842f", "score": "0.5515706", "text": "protected function Pone_Datos_Fijos_No_Heredables()\n\t\t{\t\n\t\t\t//\n\t\t\t// Prefijo campo\n\t\t\t$this->prefijo_campo = 'm_ent_' ;\n\t\t\t//\n\t\t\t// Lista de Campos\n\t\t\t//\n\t\t\t// tipos: 'pk' 'fk' 'otro' 'date' 'datetime' 'time' 'number' 'email' 'url' 'password'\n\t\t\t//\t\t\t\t\t\t\t\tel tipo 'fk' espera que se defina una clase \n\t\t\t$this->lista_campos_lista=array();\n\t\t\t$this->lista_campos_lista[]=array( 'nombre'=>'id' \t\t\t, 'tipo'=>'pk' \t\t, 'descripcion'=>'Identificador' , 'clase'=>NULL ) ;\n\t\t\t$this->lista_campos_lista[]=array( 'nombre'=>'descrip' \t, 'tipo'=>'text' \t, 'descripcion'=>'Identificador' , 'clase'=>NULL ) ;\n\t\t\t//$this->lista_campos_lista[]=array( 'nombre'=>'descrip' \t, 'tipo'=>'text' \t, 'descripcion'=>'Identificador' , 'clase'=>new Entidadi() ) ;\n\t\t\t//\n\t\t\t//\n\t\t\t$this->lista_campos_lectura=array();\n\t\t\t$this->lista_campos_lectura[]=array( 'nombre'=>'id' \t\t\t, 'tipo'=>'pk' \t\t, 'descripcion'=>'Identificador' , 'clase'=>NULL ) ;\n\t\t\t$this->lista_campos_lectura[]=array( 'nombre'=>'descrip' \t, 'tipo'=>'text' \t, 'descripcion'=>'Identificador' , 'clase'=>NULL ) ;\n\t\t\t//$this->lista_campos_lectura[]=array( 'nombre'=>'descrip' \t, 'tipo'=>'text' \t, 'descripcion'=>'Identificador' , 'clase'=>new Entidadi() ) ;\n\t\t\t\t\t\t\n\t\t\t//\n\t\t\t// Nombre de la tabla\n\t\t\t$this->nombre_tabla = \"Nombre de la_tabla\" ;\n\t\t\t$this->nombre_fisico_tabla = \"nombre_de_la_tabla\" ;\n\t\t\t//\n\t\t\t// Nombre de la pagina\n\t\t\t$this->nombre_pagina = $_SERVER['PHP_SELF'] ;\n\t\t\t//\n\t\t\t// Paginacion\n\t\t\t$this->desde = 0 ;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// by DZ 2015-08-14 - agregado lista de datos\n\t\t\t$this->cuenta = 15 ;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// by DZ 2015-08-14 - agregado lista de datos\t\t\n\t\t\t//\n\t\t\t// Acciones Extra para texto_mostrar_abm\n\t\t\t//$this->acciones[] = array( 'nombre'=>'okAsignarDte' , 'texto'=>'AsignarDte' ) ;\n\t\t\t//\n\t\t\t// Botones extra edicion\n\t\t\t$this->botones_extra_edicion = array();\n\t\t\t$this->botones_extra_edicion[] = array( 'name'=> '_Rel1' ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'value'=>'Salir' ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'link'=>'salir.php' ) ; // '<input type=\"submit\" name=\"'.$this->prefijo_campo.'_Rel1\" value=\"Salir\" autofocus>\n\t\t\t//\n\t\t\t// Filtros\n\t\t\t$this->con_filtro_fecha = false;\n\t\t\t$this->con_filtro_general = false;\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "dbf61d18929fc2e26f28bd716354ffb4", "score": "0.55134016", "text": "public function tabla()\n\t\t{\t//condicion para la proteccion de las vistas\n\t\t\t$id_empleado = $_SESSION['id_empleado'];\n\t\t\tif ($id_empleado == null)\n\t\t\t{\n\t\t\t\tredirect(base_url() . 'index.php/header/controller_inicio/login');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->load->view(\"header/Header_ventas\");\n\t\t\t\t$this->load->view(\"ventas/Tabla_dinamica_producto\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "6a4d3b69e62a230b0010ca3c56cd0b63", "score": "0.5512097", "text": "private function generarTablaDeRemitosNuevo($remitos, $extra = '')\n {\n $tabla = array();\n $planilla = \"\";\n foreach ($remitos as $unRemito) {\n $fila = array();\n $planilla = Planilla::findFirst(\n array('planilla_id=:planilla_id:',\n 'bind' => array('planilla_id' => $unRemito->getRemitoPlanillaId())));\n /*================ Planilla ================*/\n\n $fila['planilla_nombreCliente'] = $planilla->getPlanillaNombreCliente();\n $fila['remito_planillaId'] = $unRemito->getRemitoPlanillaId();\n\n /*================ Remito ================*/\n $fila['ADMIN'] = $this->tag->linkTo(array('remito/edit/' . $unRemito->getRemitoId(), '<i class=\"fa fa-pencil\"></i>', 'class' => 'btn btn-flat bg-olive btn-block','target'=>'_blank'));\n $fila['ORDEN'] = $unRemito->getRemitoNroOrden();\n $fila['FECHA'] = date('d/m/Y', date(strtotime(date($unRemito->getRemitoFecha()))));\n $fila['REMITO'] = $unRemito->getRemitoNro();//remito Sya\n if ($unRemito->getRemitoPdf() == null)\n $fila['PDF'] = '<a href=\"#agregarRemitoEscaneado\" role=\"button\" class=\"enviar-dato btn btn-flat btn-block bg-green-gradient\"\n data-toggle=\"modal\" data-id=\"' . $unRemito->getRemitoId() . '\">AGREGAR REMITO</a>';\n else\n $fila['PDF'] = \"<a href='/sya/\" . $unRemito->getRemitoPdf() . \"' target='_blank' class='btn btn-flat btn-block bg-light-blue-gradient'>ABRIR REMITO</a>\";\n\n /*================ Transporte ================*/\n $fila['PATENTE'] = $unRemito->getTransporte()->getTransporteDominio();\n $fila['N° INTERNO'] = $unRemito->getTransporte()->getTransporteNroInterno();\n\n /*================ TipoEquipo ================*/\n $fila['TIPO EQUIPO'] = $unRemito->getTipoequipo()->getTipoEquipoNombre();\n\n /*================ TipoCarga ================*/\n $fila['TIPO CARGA'] = $unRemito->getTipocarga()->getTipoCargaNombre();\n\n /*================ Chofer ================*/\n $fila['DNI'] = $unRemito->getChofer()->getChoferDni();\n $fila['CHOFER'] = $unRemito->getChofer()->getChoferNombreCompleto();\n $fila['ES FLETERO'] = ($unRemito->getChofer()->getChoferEsFletero() == 1 ? 'SI' : 'NO');\n\n /*================ Cliente ================*/\n $fila['CLIENTE'] = $unRemito->getCliente()->getClienteNombre();\n\n /*================ Operadora ================*/\n //FIXME: NO puedo mostrar el nombre de la operadora!! Porque no tiene operadora cargada!\n if ($unRemito->getOperadora() != null)\n $fila['OPERADORA'] = $unRemito->getOperadora()->getOperadoraNombre();\n else\n $fila['OPERADORA'] = \"NO ESTA CARGADO\";\n\n /*================ EquipoPozo ================*/\n $fila['EQUIPO/POZO'] = $unRemito->getEquipopozo()->getEquipoPozoNombre();\n\n /*================ Yacimiento ================*/\n $yacimiento = Yacimiento::findFirstByYacimiento_id($unRemito->getEquipopozo()->getEquipopozoYacimientoid());\n $fila['DESTINO'] = $yacimiento->getYacimientoDestino();\n\n\n /*================ CentroCosto ================*/\n $fila['CENTRO COSTO'] = $unRemito->getCentrocosto()->getCentroCostoCodigo();\n\n /*================ Linea ================*/\n $linea = Linea::findFirstByLinea_id($unRemito->getCentrocosto()->getCentroCostoLineaId());\n $fila['LINEA-PSL'] = $linea->getLineaNombre();\n\n /*================ Viaje ================*/\n $fila['ORIGEN'] = $unRemito->getViaje()->getViajeOrigen();\n /*================ Concatenado ================*/\n $fila['CONCATENADO'] = $unRemito->getConcatenado()->getConcatenadoNombre();\n\n /*================ Tarifa ================*/\n $fila['HS TOTAL SERVICIO'] = $unRemito->getTarifa()->getTarifaHsServicio();\n $fila['KM'] = $unRemito->getTarifa()->getTarifaKm();\n $fila['HS HIDRO'] = $unRemito->getTarifa()->getTarifaHsHidro();\n $fila['HS MALACATE'] = $unRemito->getTarifa()->getTarifaHsMalacate();\n $fila['HS DE ESPERA'] = $unRemito->getTarifa()->getTarifaHsStand();\n\n /*================ Orden ================*/\n $fila['OBSERVACIONES'] = $unRemito->getRemitoObservacion();\n $fila['CONFORMIDAD RE'] = ($unRemito->getRemitoConformidad() == NULL ? \"SIN ESPECIFICAR\" : $unRemito->getRemitoConformidad());\n $fila['MOT NO CONFORM RE'] = ($unRemito->getRemitoNoConformidad() == NULL ? \"SIN ESPECIFICAR\" : $unRemito->getRemitoNoConformidad());\n /*================ Extra ================*/\n $columnas = Columna::find(array('columna_cabeceraId = :cabecera_id: AND columna_extra= 1 AND columna_habilitado=1',\n 'bind' => array('cabecera_id' => $planilla->getCabecera()->getCabeceraId())));\n if (!empty($columnas)) {\n foreach ($columnas as $col) {\n $contenidoExtra = Contenidoextra::findFirst(array('contenidoExtra_columnaId=:columna_id: AND contenidoExtra_habilitado=1',\n 'bind' => array('columna_id' => $col->getColumnaId())));\n if ($contenidoExtra)\n $descripcion = $contenidoExtra->getContenidoExtraDescripcion();\n else\n $descripcion = \"SIN ESPECIFICAR\";\n $fila[$col->getColumnaNombre()] = $descripcion;\n }\n\n }\n $tabla[] = $fila;\n }\n\n\n return $tabla;\n }", "title": "" }, { "docid": "19e12a71d20be41a2b0fe60fba2a5e01", "score": "0.5504235", "text": "private function crearTablaDatos()\n {\n //Se calcula la probabilidad\n $this->calcularProbabilidad();\n //Se calcula la entropia y entr del msj\n $this->calcularEntropia();\n //Se calculan los bits codigo de cada caracter y bits Msj\n $this->calcularBitsCod();\n }", "title": "" }, { "docid": "ed277d69a06eed919967474f175d4c1a", "score": "0.5480367", "text": "public function getIdTablesWithExercises(){\n\t\t$stmt = $this->db->prepare(\"SELECT DISTINCT T1.ID_TABLA FROM INCLUYE T1 JOIN TABLA T2 WHERE T1.ID_TABLA = T2.ID_TABLA AND T2.TIPO='ESTANDAR'\"); \n\t\t$stmt->execute();\n\t\t$tables_db = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\t\t$tables = array();\n\n\t\tforeach ($tables_db as $table) {\n\t\t\tarray_push($tables, $table[\"ID_TABLA\"]);\n\t\t}\n\n\t\treturn $tables;\n\t}", "title": "" }, { "docid": "dce24d649d9d704ead9d099716c3a1e8", "score": "0.5475253", "text": "private function crearTitulos() {\r\n\r\n $tieneOpciones = ($this->accionesFila) ? TRUE : FALSE;\r\n if ($tieneOpciones) {\r\n array_push($this->titulos, $this->configFilaOpciones['html']);\r\n }\r\n if ($this->controlFila == 3)\r\n array_unshift($this->titulos, \"\");\r\n\r\n $this->tabla->crearTHead($this->titulos);\r\n $columnasTitulos = $this->tabla->tHead()->Fila->columnas();\r\n $totalLinks = count($columnasTitulos);\r\n\r\n if ($tieneOpciones) {\r\n\r\n $this->tabla->tHead()->Fila\r\n ->columna($totalLinks - 1)\r\n ->attr($this->configFilaOpciones['attr']);\r\n }\r\n if ($this->controlFila == 3) {\r\n $this->tabla->tHead()->Fila->columna(0)->attr('style', 'display:none');\r\n }\r\n\r\n if ($this->ordenamientos) {\r\n\r\n if ($tieneOpciones) $columnasTitulos--;\r\n\r\n if ($tieneOpciones) $totalLinks--;\r\n $camposOrden = $this->obtParametrosOrden();\r\n\r\n for ($i = 0; $i < $totalLinks; $i++) {\r\n if ($i == 0 and $this->controlFila == 3) continue;\r\n\r\n $columnasTitulos[ $i ]->ejecutarFuncion(\r\n function (Selector $col, $indice, $titulos, $pagina, $jvista) {\r\n\r\n $indiceMenu = $indice;\r\n if (array_key_exists($indiceMenu, $titulos)) {\r\n $ordenamiento = $this->_tipoOrdenamiento;\r\n if ($titulos[ $indiceMenu ] == $jvista->_campoOrdenar) {\r\n $ordenamiento = ($this->_tipoOrdenamiento == 'asc') ? 'desc' : 'asc';\r\n }\r\n $params = ['href' => $this->procesarURL([\r\n 'ordenar' => $titulos[ $indiceMenu ],\r\n 'tipo_orden' => $ordenamiento,\r\n 'pagina' => $this->paginaActual\r\n ], 0)\r\n ];\r\n $col->envolver('a', $params);\r\n }\r\n\r\n }, $i, $camposOrden, $this->paginaConsulta, $this);\r\n }\r\n }//fin ordenamientos\r\n\r\n }", "title": "" }, { "docid": "6f9d9e2386b0dd02bead86dea2f90f8a", "score": "0.5452437", "text": "public function findSolicitudesNuevas() {\n return $this->getEntityManager()\n ->createQuery(\"SELECT s FROM SisGGFinalBundle:Solicitud s WHERE s.respuesta is NULL\")\n ->getResult();\n }", "title": "" }, { "docid": "003a823d0bc830a2a2f3dfc55ee46448", "score": "0.54449606", "text": "public function concepts() {\n return $this -> hasMany('App\\Models\\Concept');\n }", "title": "" }, { "docid": "14c323dce332aab30996de48089ab385", "score": "0.5440037", "text": "public function vehiculeSansConduteur()\n {\n $requete = \"SELECT * FROM vehicule \";\n try{\n \n $con = $this->connexion();\n $statment = $con->prepare($requete);\n $statment->execute();\n $nbAssociation = $statment->fetchAll();\n return $nbAssociation;\n }\n catch(PDOException $e) {\n echo $requete . \"<br>\" . $e->getMessage();\n }\n }", "title": "" }, { "docid": "d9802e7a42b103635b8a0fb9a4616c66", "score": "0.5436566", "text": "function listaCancelados() {\n $objControlConexion = new ControlConexion();\n //$objControlConexion->abrirBd(\"localhost\", \"id16682389_jdiez\", \"Juandiez123*\", \"id16682389_mesa_ayuda\");\n $objControlConexion->abrirBd(\"localhost\", \"root\", \"\", \"mesa_ayuda\");\n $resultado = $objControlConexion->ejecutarSelect(\"SELECT detallereq.FKREQ FROM detallereq WHERE detallereq.FKESTADO='5' or detallereq.FKESTADO='4';\");\n $matriz = array();\n $i = 0;\n if ($resultado) {\n while ($mostrar = $resultado->fetch_array()) {\n $fkreq = $mostrar['FKREQ'];\n $objDetalleRequerimientos = new DetalleRequerimientos('', '', '', $fkreq, '', '', '');\n $matriz[$i] = $objDetalleRequerimientos;\n $i++;\n }\n }\n return $matriz;\n }", "title": "" }, { "docid": "f7579331106df326bac2d2f4e5560906", "score": "0.5427597", "text": "public function deleteTables() {\r\n\t\t/*\r\n\t\t$result = pg_query($this -> dbConn, \"delete from \\\"skosxl:Label_sp\\\";\");\r\n\t\t$result = pg_query($this -> dbConn, \"delete from \\\"skosxl:hiddenLabel\\\";\");\r\n\t\t$result = pg_query($this -> dbConn, \"delete from \\\"skos:ConceptScheme\\\";\");\r\n\t\t$result = pg_query($this -> dbConn, \"delete from \\\"skos:inScheme\\\";\");\r\n\t\t$result = pg_query($this -> dbConn, \"delete from \\\"skos:hasTopConcept\\\";\");\r\n\t\t$result = pg_query($this -> dbConn, \"delete from \\\"skosxl:literalForm\\\";\");\r\n\t\t$result = pg_query($this -> dbConn, \"delete from \\\"skosxl:prefLabel\\\";\");\r\n\t\t*/\r\n\t\t$result = pg_query ( $this->dbConn, \"DELETE FROM \\\"pangea\\\" CASCADE;\" );\r\n\t\r\n\t}", "title": "" }, { "docid": "aed7d66f21e42c89d596eeaaaef12420", "score": "0.5418376", "text": "function validar_generacionordenesvarias($conceptos)\n\t{\n\t\treturn $this->ordenesdepago[0]->valida_ordenvarias($conceptos);\n\t}", "title": "" }, { "docid": "3f963badac0e80f0c84f1d8f999d6b8f", "score": "0.5416285", "text": "public function tablaCaducidad(){\n\t\t// Fecha actual\n\t\t$fecha = date('Y-m-d');\n\t\t// Restando 20 días a la fecha actual \n\t\t$nuevafecha = strtotime ('-20 day' , strtotime ( $fecha ));\n\t\t// Obteniendo huevos producidos entre las dos fechas anteriores\n\t\t$producidosReciente = $this->constructorSQL->select('inventarioproduccion', 'sum(cantidadProduccion) as suma, idTipoHuevo, fechaInventarioProduccion')->where('entrada', '=', 1)->where('fechaInventarioProduccion', '<=', $fecha)->where('fechaInventarioProduccion', '>=', date('Y-m-d',$nuevafecha))->groupBy('fechaInventarioProduccion, idTipoHuevo')->ejecutarSQL();\n\t\t// Todos los huevos despachados a lo largo del tiempo\n\t\t$this->constructorSQL = new ConstructorSQL();\n\t\t$despachados = $this->constructorSQL->select('inventarioproduccion', 'sum(cantidadProduccion) as suma, idTipoHuevo')->where('entrada', '=', 0)->groupBy('idTipoHuevo')->ejecutarSQL();\n\t\t// Los huevos producidosReciente antes de esa fecha \n\t\t// 15-20 Dias\n\t\t// 10-15 Dias\n\t\t// 5-10 Dias\n\t\t// 0-5 Dias\n\t\t$this->constructorSQL = new ConstructorSQL();\n\t\t$producido = $this->constructorSQL->select('inventarioproduccion', 'sum(cantidadProduccion) as suma, idTipoHuevo')->where('entrada', '=', 1)->where('fechaInventarioProduccion', '<', date(\"Y-m-d\", $nuevafecha))->groupBy('idTipoHuevo')->ejecutarSQL();\n\t\t$res = [];\n\t\t$caducidad = ['danger' => ['16-20 Dias',0,0,0], 'warning' => ['11-15 Dias',0,0,0], 'info' => ['6-10 Dias',0,0,0], 'success' => ['0-5 Dias',0,0,0]];\n\t\tfor ($i=0; $i < count($producidosReciente); $i++) { \n\t\t\tif ($this->fechaMayor($producidosReciente[$i]->fechaInventarioProduccion, $fecha, '-5 day', '0 day')) {\n\t\t\t\tswitch ($producidosReciente[$i]->idTipoHuevo) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t$caducidad['success'][1] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t$caducidad['success'][2] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3: \n\t\t\t\t\t\t$caducidad['success'][3] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\telse if ($this->fechaMayor($producidosReciente[$i]->fechaInventarioProduccion, $fecha, '-10 day', '6 day')) {\n\n\t\t\t\tswitch ($producidosReciente[$i]->idTipoHuevo) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t$caducidad['info'][1] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t$caducidad['info'][2] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3: \n\t\t\t\t\t\t$caducidad['info'][3] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if ($this->fechaMayor($producidosReciente[$i]->fechaInventarioProduccion, $fecha, '-15 day', '11 day')) {\n\n\t\t\t\tswitch ($producidosReciente[$i]->idTipoHuevo) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t$caducidad['warning'][1] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t$caducidad['warning'][2] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3: \n\t\t\t\t\t\t$caducidad['warning'][3] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else if ($this->fechaMayor($producidosReciente[$i]->fechaInventarioProduccion, $fecha, '-20 day', '16 day')) {\n\n\t\t\t\tswitch ($producidosReciente[$i]->idTipoHuevo) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\t$caducidad['danger'][1] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\t$caducidad['danger'][2] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3: \n\t\t\t\t\t\t$caducidad['danger'][3] += $producidosReciente[$i]->suma; \n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif ($despachados != null) {\n\t\t\t// Recorriendo despachos y producidos antes de fecha para calcular los huevos restantes por despachar\n\t\t\tfor ($i=0; $i < count($despachados); $i++) { \n\t\t\t\tfor ($e=0; $e < count($producido); $e++) { \n\t\t\t\t\tif ($despachados[$i]->idTipoHuevo == $producido[$e]->idTipoHuevo) {\n\t\t\t\t\t\tif ($despachados[$i]->suma > $producido[$e]->suma) {\n\t\t\t\t\t\t\t$despachados[$i]->suma = $producido[$e]->suma - $despachados[$i]->suma;\n\t\t\t\t\t\t}else $despachados[$i]->suma = 0;\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t}\n\t\t\t// $iterando = 1;\n\t\t\t// foreach ($caducidad as $iterador => $value) {\n\t\t\t// \tfor ($e=0; $e < count($despachados); $e++){\n\t\t\t// \t\tif ($despachados[$e]->idTipoHuevo == 1 && $despachados[$e]->suma > 0) {\n\t\t\t// \t\t\tif ($caducidad[$iterador][$iterando] >= $despachados[$e]->suma) {\n\t\t\t// \t\t\t\t$caducidad[$iterador][$iterando] -= $despachados[$e]->suma;\n\t\t\t// \t\t\t\t$despachados[$e]->suma = 0;\n\t\t\t// \t\t\t} else{\n\t\t\t// \t\t\t\t$despachados[$e]->suma -= $caducidad[$iterador][$iterando];\n\t\t\t// \t\t\t\t$caducidad[$iterador][$iterando] = 0;\n\t\t\t// \t\t\t}\n\t\t\t// \t\t}\n\t\t\t// \t}\n\t\t\t// \t$iterando++;\n\t\t\t// }\n\t\t}\n\t\techo json_encode($caducidad);\n\t}", "title": "" }, { "docid": "4494de5ba277439884b517ead0ee357d", "score": "0.54039985", "text": "function tablaDatos(){\n \n \n $eliminar = $this->Imagenes($this->PrimaryKey,1);\n $sql = 'SELECT\n \tp.descripcion AS planta,\n \ts.descripcion as Seccion,\n e.descripcion AS Equipo,\n\t\t\t\t\tim.file AS imagen,\n '.$eliminar.' \n FROM\n \tequipos_imagen im\n\t\t\t\tINNER JOIN equipos e on e.id_equipos=im.id_equipos\n INNER JOIN secciones s on s.id_secciones = e.id_secciones\n INNER JOIN plantas p ON p.id_planta = s.id_planta\t\t\t\t\n WHERE e.activo = 1';\n \n $datos = $this->Consulta($sql,1);\n if(count($datos)){\n $_array_formu = array();\n $_array_formu = $this->generateHead($datos);\n $this->CamposHead = ( isset($_array_formu[0]) && is_array($_array_formu[0]) )? $_array_formu[0]: array();\n $tablaHtml = '<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"panel panel-default\">\n <div class=\"panel-body recargaDatos\" style=\"page-break-after: always;\">\n <div class=\"table-responsive\">';\n $tablaHtml .='';\n \n $tablaHtml .= $this->print_table($_array_formu, 4, true, 'table table-striped table-bordered',\"id='tablaDatos'\");\n $tablaHtml .=' </div>\n </div>\n </div>\n </div>\n </div>\n ';\n }else{\n $tablaHtml = '<div class=\"col-md-8\">\n <div class=\"alert alert-info alert-dismissable\">\n <button class=\"close\" aria-hidden=\"true\" data-dismiss=\"alert\" type=\"button\">×</button>\n <strong>Atenci&oacute;n</strong>\n No se encontraron registros.\n </div>\n </div>';\n }\n \n if($this->_datos=='r') echo $tablaHtml;\n else return $tablaHtml;\n \n }", "title": "" }, { "docid": "8b922fff9a7fe2cd0903ab55d7c3b7b4", "score": "0.5378164", "text": "public function concepto()\n {\n return $this->belongsTo(Concepto::class, 'id_concepto', 'id_concepto');\n }", "title": "" }, { "docid": "ce4f82d727bdd49ba0805b59a20fcd30", "score": "0.5359923", "text": "function getTable(){\n\n $setencia = $this->db->prepare(\"SELECT r.id_recital as id_recital, r.nombre as recital, r.precio, e.nombre as estadio, e.capacidad, e.id_estadio as id_estadio FROM recital r, estadio e WHERE r.estadio_id = e.id_estadio\");\n $setencia->execute();\n return $setencia->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "be354cc8fee1efe911e08e5d6baf548e", "score": "0.53502065", "text": "function getListVehicules(){\n include $_SERVER[\"DOCUMENT_ROOT\"] . '/app/app/database_connect.php';\n\n $results = $conn->query('SELECT vehicule.odometre, vehicule.pk_vehicule, marque.nom_marque, modele.nom_modele, vehicule.annee, couleur.nom_couleur, statut_vehicule.nom_statut FROM `vehicule` LEFT JOIN marque ON vehicule.fk_marque = marque.pk_marque LEFT JOIN modele ON vehicule.fk_modele = modele.pk_modele LEFT JOIN statut_vehicule ON vehicule.fk_statut = statut_vehicule.pk_statut_vehicule LEFT JOIN couleur ON vehicule.fk_couleur = couleur.pk_couleur WHERE vehicule.date_mise_hors_service IS NULL');\n\n $allvehicules= array();\n while ($row = $results->fetch_assoc()) {\n $allvehicules[] = array(\n 'pk_vehicule' => $row['pk_vehicule'],\n 'nom_marque' => $row['nom_marque'],\n 'nom_modele' => $row['nom_modele'],\n 'odometre' => $row['odometre'],\n 'annee' => $row['annee'],\n 'nom_couleur' => $row['nom_couleur'],\n 'nom_statut' => $row['nom_statut']\n );\n }\n $size= sizeof($allvehicules);\n if($size != null){\n for($i=0;$i<$size;$i++){\n echo \"<tr class=''>\";\n echo \"<td>\";\n echo $allvehicules[$i]['pk_vehicule'] . \"</td>\";\n echo \"<td>\";\n echo $allvehicules[$i]['nom_marque'] . \" \".$allvehicules[$i]['nom_modele'].\"</td>\";\n echo \"<td>\";\n echo $allvehicules[$i]['annee'] . \"</td>\";\n echo \"<td>\";\n echo $allvehicules[$i]['nom_couleur'] . \"</td>\";\n echo \"<td>\";\n echo $allvehicules[$i]['odometre'] . \"</td>\";\n echo \"<td>\";\n echo $allvehicules[$i]['nom_statut'] . \"</td>\";\n echo \"</tr>\";\n }\n }\n\n // Frees the memory associated with a result\n $results->free();\n\n // close connection\n $conn->close();\n}", "title": "" }, { "docid": "df246d1c87f6bc12933567fb10b419de", "score": "0.5348303", "text": "function get_all_estudiantes_no_elabora_ni_toma()\n {\n\n $this->db->select('*');\n $this->db->from('estudiante t1');\n $this->db->where(\"NOT EXISTS (\n SELECT est_codigo FROM titulacion.examen_complexivo t2 WHERE t1.est_codigo = t2.est_codigo)\n AND \n NOT EXISTS (\n SELECT est_codigo FROM titulacion.elabora t2 WHERE t1.est_codigo = t2.est_codigo\n )\");\n $query=$this->db->get();\n return $query->result_array();\n\n }", "title": "" }, { "docid": "982cd95f0d6e9b51e597c82dc3f06824", "score": "0.5347448", "text": "public function listarConceptos(Request $request){\n $tipo = $request->get('tipo');\n $conceptos = DB::table('conceptos')\n ->where('tipo', $tipo)\n ->where('estado', true)\n ->get();\n \n return json_encode($conceptos);\n }", "title": "" }, { "docid": "962fef0b2a4931ed9718cea658fe44c6", "score": "0.53372234", "text": "public function getAllRubrique() {\n $qb = $this->createQueryBuilder('e')\n ->where('e.actifRubrique != ' . TypeEtat::SUPPRIME);\n // ->orderBy('e.typeRubrique', 'ASC');\n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "0634d653cb6fd800edeb3fee8d9a31e5", "score": "0.5322546", "text": "public function Tabla(){\n\n if(!\\Schema::hasTable($this->table))\n {\n \\Schema::create($this->table, function(Blueprint $table) \n {\n $table->integer('declaracion_id')->unsigned();\n $table->foreign('declaracion_id')->references('id')->on('declaraciones')->onDelete('cascade');\n $table->string('tipoOperacion')->default(\"AGREGAR\");\n $table->string('nombreEntePublico')->nullable()->default(null);\n $table->string('nivelOrdenGobierno')->nullable()->default(null);\n $table->string('ambitoPublico')->nullable()->default(null);\n $table->string('areaAdscripcion')->nullable()->default(null);\n $table->string('empleoCargoComision')->nullable()->default(null);\n $table->string('nivelEmpleoCargoComision')->nullable()->default(null);\n $table->string('funcionPrincipal')->nullable()->default(null);\n $table->string('fechaTomaPosesion')->nullable()->default(null);\n $table->string('contratadoPorHonorarios')->nullable()->default(null);\n $table->string('telefonoOficina_telefono',10)->nullable()->default(null);\n $table->string('telefonoOficina_extension',5)->nullable()->default(null);\n\n $table->string('pais',2)->nullable()->default(null);\n $table->string('entidadFederativa_clave',2)->nullable()->default(null);\n $table->string('entidadFederativa_valor')->nullable()->default(null);\n $table->string('municipioAlcaldia_clave',4)->nullable()->default(null);\n $table->string('municipioAlcaldia_valor')->nullable()->default(null);\n $table->string('coloniaLocalidad')->nullable()->default(null);\n $table->string('estadoProvincia')->nullable()->default(null);\n $table->string('ciudadLocalidad')->nullable()->default(null);\n $table->string('calle')->nullable()->default(null);\n $table->string('numeroExterior',6)->nullable()->default(null);\n $table->string('numeroInterior',6)->nullable()->default(null);\n $table->string('codigoPostal',6)->nullable()->default(null);\n\n $table->boolean('cuentaConOtroCargoPublico')->default(false);\n\n $table->engine = 'InnoDB';\n });\n }//if schema table usuarios exist\n }", "title": "" }, { "docid": "627d1a714ed5911c76100c059b8ad2c1", "score": "0.5321463", "text": "function reordenamiento(){\n\n\t$query = \"SELECT t.nombretabla,c.nombrecampo,c.nombrecampoformulario FROM campo c,tabla t,formulariotabla ft\n \tWHERE ft.idtabla=t.idtabla\n\t\tand t.idtabla=c.idtabla\n\t\tand ft.idformulario='\".$this->idformulario.\"'\n\t\torder by c.pesocampo\";\n\t$result = $this->objetobase->conexion->query($query);\n\twhile($row = $result->fetchRow()){\n\t\t/*$this->columnasnombres\n\t\t$this->columnas2\n\t\t$this->columnas*/\n\t}\n}", "title": "" }, { "docid": "28cab3b64d17a5f9a146f412a256149e", "score": "0.53192365", "text": "public function Tabla(){\n\n if(!\\Schema::hasTable($this->table))\n\t\t{\n \\Schema::create($this->table, function (Blueprint $table) {\n $table->id();\n\t\t\t\t$table->string('rfc',10)->unique();\n\t\t\t\t$table->string('homoclave',3);\n $table->string('nombre',25);\n $table->string('apellido_paterno',25)->nullable();\n\t\t\t\t$table->string('apellido_materno',25)->nullable();\n $table->enum('rol',['administrador','declarante'])->default('declarante');\n $table->timestamp('email_verified_at')->nullable();\n $table->string('password');\n $table->rememberToken();\n $table->timestamps();\n });\n\n \\Schema::create('password_resets', function (Blueprint $table) {\n $table->string('email')->index();\n $table->string('token');\n $table->timestamp('created_at')->nullable();\n });\n\t\t}//if schema table usuarios exist\n }", "title": "" }, { "docid": "8e86a1a52a524cf351dca8af579ec657", "score": "0.5316503", "text": "public function portafolioriesgo()//tabla10 preseleccion\n {\n //Preseleccion=la tabla de relacion entre PortafolioRiesgo y planificacion\n //portafolioriesgo_id= nombre del campo que relaciona el PortafolioRiesgo con Preseleccion\n //planificacion_id=nombre del campo que relaciona el planificacion con Preseleccion\n //belongstoMany= de muchos a muchos\n return $this->belongsToMany('App\\PortafolioRiesgo','Preseleccion', \n \t'portafolioriesgo_id', 'planificacion_id');\n \n }", "title": "" }, { "docid": "3f0739942786646a16e1cde603f05645", "score": "0.5305495", "text": "public function tablas_contruidas(){\n\t\treturn $this->tablas_contruidas;\n\t}", "title": "" }, { "docid": "90cc8f92c6286c7b46baa11f06e83319", "score": "0.53030366", "text": "public function tabla()\n {\n $data['page_tag'] = \"Usuarios - Inversiones Picky\";\n $data['page_title'] = \"Usuarios\";\n $data['page_name'] = \"Tabla de Usuarios\";\n $data['page_funtions_js'] = \"funtions_usuarios2.js\";\n $this->views->getView($this, \"lista_usuarios\", $data);\n }", "title": "" }, { "docid": "a6f2cc809997d1d5b4581c5749bea219", "score": "0.530123", "text": "function defaultConcepts(){\n //build the url to query the ABS api with based on the requested $dataSetId\n $conceptURL = \"http://stat.abs.gov.au/itt/query.jsp?method=GetDatasetConcepts&datasetid=\" . $this->dataSetId;\n\n //grab the data\n $conceptData = file_get_contents($conceptURL);\n\n //decode it to prepare to build the array\n $conceptJSON = json_decode($conceptData, TRUE);\n \n //discard the information we don't care about\n $conceptsSelect = $conceptJSON[\"concepts\"];\n\n //set the array\n $conceptBuilder = array();\n\n //build the array\n foreach($conceptsSelect as $concept)\n {\n array_push($conceptBuilder, $concept);\n }\n\n //set $concepts\n $this->concepts = $conceptBuilder;\n\n }", "title": "" }, { "docid": "75bb57087a0acddcf74dad0b5649ab7d", "score": "0.5284872", "text": "public function index()\n {\n /*dd(Ot::whereHas('otestado', function ($query) {\n $query->where('nombre', '=', 'EN COTIZACION');\n })->get()->toArray());*/\n return view('adminuser.ots.tablaOts',['filas' => Ot::orderBy('fecha', 'desc')->limit(100)->get(),'titulo_tabla' => 'Ordenes de Trabajo', 'descripcion_tabla' => 'Descripcion de la tabla...']);\n }", "title": "" }, { "docid": "e5615425088b9d471522bc57b1687e67", "score": "0.52836704", "text": "public static function vistaPartidasFinalizarUsariosTablaModel(){\r\n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT id_u_p_os, id_unidad_servicio,\r\n CONCAT(nombre_u,' ',ape_pat_u,' ',ape_mat_u)as nombreCompleto, fecha_asignacion, descripcion_serv\r\n FROM usuario_partida_os\r\n LEFT JOIN usuarios ON usuarios.id_usuario = usuario_partida_os.id_partida_os\r\n LEFT JOIN partidas_os ON partidas_os.id_partida_os = usuario_partida_os.id_partida_os\r\n LEFT JOIN servicios_atr ON servicios_atr.codigo_atr_serv = partidas_os.codigo_partida_os\r\n LEFT JOIN ordenServicio ON ordenServicio.num_orden = partidas_os.num_orden_partida_os\r\n WHERE fecha_termino IS NULL\");\r\n\t\t$stmt->execute();\r\n\t\t#fetchAll(): Obtiene todas las filas de un conjunto de resultados asociado al objeto PDOStatement. \r\n\t\treturn $stmt->fetchAll();\r\n\t\t$stmt->close();\r\n\t}", "title": "" }, { "docid": "9ea45cc2f99098f893bfdba4717d1d44", "score": "0.5282968", "text": "public function table($modules){\n\n $ids=$this->mySql->selectDistinct(\"Informe_Mensual\",\"Id\",\" 1 \",\"1\");\n $reports=[];\n\n foreach ($ids as $id) {\n\n //linea para valores de salida\n $line=[];\n\n //creamosm linea editable y agregamos valores de primer nivel\n $generated = $this->mySql->selectRow(\"Informe_Mensual\",[\"Id\",\"Cuenta\",\"Super_Concepto\",\"Concepto\"],\"Id = \".$id,\" Id \");\n\n //creamos segundo nivel vacio\n $generated['Montos']=[];\n\n //iteramos valores por cada modulo para llenar segundo nivel de anidacion\n for ($i=0;$i<count($modules); $i++) {\n\n //obtenemos montos por modulo y monto\n $ammounts = $this->mySql->selectRow(\"Informe_Mensual\",[\"Monto\",\"Modulo\"],\"Id = \".$id.\" AND Modulo = '\".$modules[$i].\"'\",\" Id \");\n $generated['Montos'][]=$ammounts;\n\n }\n\n //\n $reports[]=$generated;\n \n }\n\n //\n return $reports;\n\n }", "title": "" }, { "docid": "914635256d1a8b71c3e2bcdc63d37c18", "score": "0.52781427", "text": "function getDataPedidos($tipoLista) {\n\t\t\t/*\n\t\t\ttipoLista\n\t\t\tE -> pedidos que entraron\n\t\t\tS -> pedidos de Salida\n\t\t\tH -> historico de pedidos\n\n\t\t\t*/\n\n\t\t\t$model=new Pedido();\n\t\t\t$tabla=\"pedidos_vista\";\n\t\t\t//Columnas que voy a mostrar\n\n\t\t\t$aColumns = array( 'id' ,'Numero', 'Fecha' ,'proyecto', 'estado' );\n\t\t\t//Columnas por las que se va a filtrar\n\t\t\t$aColumnsFilter = array( 'Numero' ,'proyecto', 'estado' );\n\t\t\t//Columna por la cual se va ordenar\n\t\t\t$orderByfield = 'Fecha desc, proyecto,estado ';\n\n\t\t\t//CREATE TABLE\n\t\t\t//Consigue el query que se va ejecutar\n\t\t\t$query=$this->getDataDefaultPedidoQuery($tabla,$aColumns,$aColumnsFilter,$orderByfield,$tipoLista,NULL);\n\t\t\t//Ejecuta el query, obtengo las filas\n\t\t\t$rows =$model->query(\"\".$query['select'].\";\");\n\t\t\t//Obtengo los totales\n\t\t\t$totales = $this->getTotales($model,$query);\n\t\t\t//Proceso los campos para llenar la tabla\n\t\t\t$arrayData=$this->getArrayDataPedido($tabla,$rows,$aColumns,$query['select'],$tipoLista,NULL);\n\t\t\t//Obtengo la tabla\n\t\t\t$output = $this->createConfigTable($arrayData,$totales[\"total\"],$totales[\"tDisplay\"]);\n\n\t\t\treturn $output;\n\t\t}", "title": "" }, { "docid": "ec712369358ee17d421b85edcacd9925", "score": "0.52751577", "text": "function MTD_DB_LISTAR_TONOSMAS_RANKEADOS() //los mas descargados. asi figura en la web\n {\n global $vg_db_conexion,$vg_conf_filtro_web;\n $vlf_sql = \"SELECT t.id, t.nombre,a.nombre,t.autor\n FROM tonos as t, autores as a\n where\n t.autor = a.id\n AND t.categoria <> 207\n order by rand()\n limit 10 \";\n \n $vlf_arreglo_datos = FN_RUN_QUERY($vlf_sql, 4,$vg_db_conexion);\n \n return $vlf_arreglo_datos;\n }", "title": "" }, { "docid": "0067a11907de770c21144028911a6c1b", "score": "0.5272139", "text": "function afficherVehicules(){\n\t\t$sql=\"SElECT * From vehicule\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "title": "" }, { "docid": "a720aab03c6560f2e90362a606991c19", "score": "0.5263025", "text": "public function getTableNulls(){\r\n // La valeur 1 => Oui peut etre vide , 0 => Non ne peut etre vide\r\n //Ce tableau a une taille equialent a celle retourner par $this -> getAttribasarray();\r\n $t = array(0,1,0,1,1);;\r\n return $t ;\r\n }", "title": "" }, { "docid": "339669703f10132928315381940a1c85", "score": "0.52571", "text": "public function notasnivel($id,$perId=0){\n $nivel=NivelesHasAnios::with([\n 'anios',\n 'niveles', \n 'alumnos.users',\n 'materias_has_niveles.empleados.users',\n 'materias_has_niveles.materias_has_periodos.periodos',\n 'materias_has_niveles.materias_has_periodos.indicadores.alumnos_has_indicadores'\n ])->findOrFail($id);\n $alumnos=$nivel->alumnos;\n $resultado=[\n 'anio'=>$nivel->anios->anio,\n 'curso'=>$nivel->niveles->nombre,\n 'titulos'=>[],\n 'alumnos'=>[],\n ];\n $resultado['titulos'][]='Estudiantes';\n foreach ($nivel->alumnos as $alm) { // Creación de alumnos en el acumulador\n $resultado['alumnos'][]=[\n 'id'=>$alm->id,\n 'name'=>$alm->users->name,\n 'lastname'=>$alm->users->lastname,\n 'materias'=>[]\n ];\n }\n foreach ($nivel->materias_has_niveles as $materia) {\n $resultado['titulos'][]=$materia->materias->nombre;\n }\n foreach ($resultado['alumnos'] as $k1 => $alm) { // Para jugar con cada alumno y buscarlo en la gran tabla.\n foreach ($nivel->materias_has_niveles as $materia) {\n $profe='Sin profesor.';\n if ($materia->empleados_id>0) {\n $profe= $materia->empleados->users->name.' '.$materia->empleados->users->lastname;\n }\n $arrPeriodo=[];\n $promMat=0;\n foreach ($materia->materias_has_periodos as $periodo) {\n $promPer=0;\n $arregloIndic=[];\n foreach ($periodo->indicadores as $indicador) {\n $promIndic=0;\n foreach ($indicador->alumnos_has_indicadores as $aHi) {\n if ($resultado['alumnos'][$k1]['id']==$aHi->alumnos_id) {\n $promIndic=$aHi->prom;// Linea donde se captura el indicador\n }\n }\n $arregloIndic[]=[\n 'id'=>$indicador->id,\n 'porc'=>$indicador->porcentaje,\n 'nombre'=>$indicador->nombre,\n 'desc'=>$indicador->descripcion,\n 'prom'=>$promIndic\n ];\n $promPer+=$promIndic*$indicador->porcentaje/100;\n }\n $arrPeriodo[]=[\n 'nombre'=>$periodo->periodos->nombre,\n 'prom'=>$promPer,\n 'indicadores'=>$arregloIndic\n ];\n $promMat += $promPer;\n }\n if (count($arrPeriodo)>0) {\n $promMat /= count($arrPeriodo);\n }\n $resultado['alumnos'][$k1]['materias'][]=[\n 'nombre'=>$materia->materias->nombre,\n 'profesor'=>$profe,\n 'periodo'=>$arrPeriodo,\n 'prom'=>$promMat\n ];\n\n }\n }\n foreach ($resultado['alumnos'] as &$alumnos) {\n foreach ($alumnos['materias'] as &$materia) {\n usort($materia['periodo'], function($a, $b){\n if ($a['nombre'] == $b['nombre']) {\n return 0;\n }\n return ($a['nombre'] < $b['nombre']) ? -1 : 1;\n });\n }\n }\n $nivel=collect($resultado);\n return $nivel->toJson();\n }", "title": "" }, { "docid": "5ec67b023a8e63d01b33599cf89edb5d", "score": "0.5251747", "text": "function genDataIni(){\n $this->datos['sucursales'] = Sucursal::where('estado',1)->orderBy('nombre')->get()->lists('nombre','id');\n }", "title": "" }, { "docid": "806faf807e6fd7cfe4d444f4b0e7c862", "score": "0.5250009", "text": "function lotes_materiales($Inicio,$Id_inventario_material)\r\n\t{\r\n\t\t\r\n\t\t$Datos = array();\r\n\t\t$Requisicion = array();\r\n\t\t//Consultamos la base de datos para obtener la informacion de los clientes.\r\n\t\t$Consulta = 'select * from inventario_lote\r\n\t\t\t\t\t\t\twhere id_inventario_material = \"'.$Id_inventario_material.'\"\r\n\t\t\t\t\t\t\torder by id_inventario_lote desc limit '.$Inicio.', 10\r\n\t\t';\r\n\t\t\r\n\t\t//Ejecuto la consulta\r\n\t\t$Resultado = $this->db->query($Consulta);\r\n\t\t\r\n\t\t$Resultado2 = $Resultado->result_array();\r\n\t\t\r\n\t\t\r\n\t\tforeach($Resultado2 as $Datos_lotes)\r\n\t\t{\r\n\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['id_inventario_lote'] = $Datos_lotes['id_inventario_lote'];\r\n\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['id_inventario_material'] = $Datos_lotes['id_inventario_material'];\r\n\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['pedido'] = $Datos_lotes['pedido'];\r\n\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['fecha_ingreso'] = $Datos_lotes['fecha_ingreso'];\r\n\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['fecha_fin'] = $Datos_lotes['fecha_fin'];\r\n\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['unidades'] = $Datos_lotes['unidades'];\r\n\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['estado'] = $Datos_lotes['estado'];\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Asignamos el valor de cada id del lote a una variable.\r\n\t\t\t$Id_lote = $Datos_lotes['id_inventario_lote'];\r\n\t\t\t//Verificamos cual es el estado de cada lote.\r\n\t\t\t$estado = $Datos_lotes[\"estado\"];\r\n\t\t\t\r\n\t\t\t//Establecemos la consulta para determinar la cantidad que hay por cada lote.\r\n\t\t\t$Consulta_cantidad = 'select sum(cantidad) as cantidad\r\n\t\t\t\t\t\t\t\t\tfrom inventario_requisicion\r\n\t\t\t\t\t\t\t\t\twhere id_inventario_lote = \"'.$Id_lote.'\"';\r\n\t\t\t//Ejecuto la consulta\r\n\t\t\t$Resultado_cant = $this->db->query($Consulta_cantidad);\r\n\t\t\t//Asignamos el array a una variable.\r\n\t\t\t$Resultado_cantidad = $Resultado_cant->result_array();\r\n\t\t\t//Exploramos el array para obtener la cantidad total.\r\n\t\t\tforeach($Resultado_cantidad as $Datos_cantidad)\r\n\t\t\t{\r\n\t\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['cantidad'] = $Datos_cantidad['cantidad'];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Establecemos la consulta para seleccionar el ultimo movimiento para este lote.\r\n\t\t\t$Consulta_ultima_salida = 'select fecha_salida\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfrom inventario_requisicion\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twhere id_inventario_lote = \"'.$Id_lote.'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torder by id_inventario_requisicion desc limit 0,1';\r\n\t\t\t//Ejecuto la consulta\r\n\t\t\t$Resultado_salida = $this->db->query($Consulta_ultima_salida);\r\n\t\t\t$Resultado_ultima_salida = $Resultado_salida->result_array();\r\n\t\t\t\r\n\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['fecha_salida'] = '';\r\n\t\t\tif($Resultado_ultima_salida > 0)\r\n\t\t\t{\r\n\t\t\t\tforeach($Resultado_ultima_salida as $Datos_salida)\r\n\t\t\t\t{\r\n\t\t\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['fecha_salida'] = $Datos_salida['fecha_salida'];\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t\t//Establecemos la consulta para obtener la informacion del usuario\r\n\t\t\t//que realizo la requisicion y la cantidad requisada.\r\n\t\t\t$Consulta_usuarios = 'SELECT numero_requ, nombre, fecha_salida,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsum(cantidad) as cantidad\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM inventario_requisicion requi, usuario usu\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE requi.id_usuario = usu.id_usuario\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND id_inventario_lote = \"'.$Id_lote.'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroup by numero_requ\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\torder by id_inventario_requisicion desc';\r\n\r\n\t\t\t//Ejecuto la consulta\r\n\t\t\t$Resultado_usu = $this->db->query($Consulta_usuarios);\r\n\t\t\t//Asignamos el array a una variable\r\n\t\t\t$Resultado_usuarios = $Resultado_usu->result_array();\r\n\t\t\t\r\n\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['req'] = '';\r\n\t\t\t\r\n\t\t\tforeach($Resultado_usuarios as $Datos_usuario)\r\n\t\t\t{\r\n\t\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['req'][$Datos_usuario['numero_requ']]['numero_requ'] = $Datos_usuario['numero_requ'];\r\n\t\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['req'][$Datos_usuario['numero_requ']]['nombre'] = $Datos_usuario['nombre'];\r\n\t\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['req'][$Datos_usuario['numero_requ']]['fecha_salida'] = $Datos_usuario['fecha_salida'];\r\n\t\t\t\t$Datos[$Datos_lotes['id_inventario_lote']]['req'][$Datos_usuario['numero_requ']]['cantidad'] = $Datos_usuario['cantidad'];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $Datos;\r\n\t}", "title": "" }, { "docid": "d53d28ea6b05712c4097d8a801af9427", "score": "0.5246766", "text": "public function getSolucionesCarritos()\n {\n return $this->hasMany(SolucionesCarrito::className(), ['soluciones_id' => 'id']);\n }", "title": "" }, { "docid": "dfecb84b0da6cc895b6dc1182e2d0f5a", "score": "0.5235533", "text": "function clase_detalle($parametros)\n {\n $datos = array();\n if ($this->tiene_cargadas_asistencias($parametros)) \n {\n $datos = $this->recuperar_generar_asistencias($parametros);\n }\n else\n {\n $datos = $this->get_inscriptos($parametros);\n }\n \n $nuevo = array();\n foreach($datos as $id => $dato) \n {\n $nuevo[$id][catalogo::id] = catalogo::generar_id($dato[15].$dato[16].$dato[4]);\n $nuevo[$id]['CARRERA'] = $dato[15];\n $nuevo[$id]['LEGAJO'] = $dato[16];\n $nuevo[$id]['COMISION'] = $dato[4];\n $nuevo[$id]['COMISION_NOMBRE'] = $dato[5];\n $calidad_insc = $this->get_calidad_inscripcion(array('legajo'=>$nuevo[$id]['LEGAJO'], 'comision'=>$nuevo[$id]['COMISION']));\n $nuevo[$id]['CALIDAD_INSC'] = $calidad_insc['CALIDAD_INSC'];\n $nuevo[$id]['CLASE'] = $dato[10];\n $nuevo[$id]['NOMBRE'] = \"{$dato[17]}, {$dato[18]}\"; \n $nuevo[$id]['CANT_INASIST'] = $dato[19]; \n //$nuevo[$id]['MOTIVO_JUSTIFIC'] = $dato[20]; \n $motivo_justific = $this->get_justificacion_inasist(array('legajo'=>$nuevo[$id]['LEGAJO'], 'clase'=>$nuevo[$id]['CLASE']));\n $motivo_justific = (isset($motivo_justific['MOTIVO_JUSTIFIC']))? $motivo_justific['MOTIVO_JUSTIFIC'] : null;\n $nuevo[$id]['MOTIVO_JUSTIFIC'] = $motivo_justific;\n// kernel::log()->add_debug('clase_detalle $motivo_justific', $motivo_justific);\n \n $nuevo[$id]['ID_IMAGEN'] = $dato[21]; \n if (!empty($nuevo[$id]['ID_IMAGEN'])) {\n $nuevo[$id]['URL_IMAGEN'] = alumno_foto::url_imagen($nuevo[$id]['ID_IMAGEN']);\n $nuevo[$id]['URL_IMAGEN_MEDIANA'] = alumno_foto::url_imagen($nuevo[$id]['ID_IMAGEN'], alumno_foto::TAMANIO_MEDIANA);\n $nuevo[$id]['URL_IMAGEN_GRANDE'] = alumno_foto::url_imagen($nuevo[$id]['ID_IMAGEN'], alumno_foto::TAMANIO_GRANDE);\n } else {\n $nuevo[$id]['URL_IMAGEN'] = kernel::vinculador()->vinculo_recurso('img/iconos/mm.png');\n $nuevo[$id]['URL_IMAGEN_MEDIANA'] = kernel::vinculador()->vinculo_recurso('img/iconos/mm_grande.png');\n $nuevo[$id]['URL_IMAGEN_GRANDE'] = kernel::vinculador()->vinculo_recurso('img/iconos/mm_grande.png');\n }\t\t\t\n }\n //kernel::log()->add_debug('clase_detalle $nuevo', $nuevo);\n return $nuevo;\n }", "title": "" }, { "docid": "ae203bc29ff364117d05a6b81879be5d", "score": "0.52265877", "text": "function dibujarTablaresumennuevovendedor($fechainicio,$fechafin,$sql, $idempleado,$idalmacen,$titulo,$saldoant,$ventacaja,$ventapar,$ventasus,$rebaja,$pago,$pagoactual,$paresdev,$susdev)\n{\n\n \n\n $sqlw = \"SELECT ma.nombre AS marca,ma.talla,ma.opcionb,ma.pedido\nFROM `marcas` ma\nWHERE ma.idmarca = '$idmarca'\";\n $idalmacenA2 = findBySqlReturnCampoUnique($sqlw, true, true, 'marca');\n $marcas = $idalmacenA2['resultado'];\n\n $sql211 = getTablaToArrayOfSQL($sql21);\n $sql3 = $sql211['resultado'];\n if($link=new BD)\n {\n if($link->conectar())\n {\n if($re = $link->consulta($sql))\n {\n //echo mysql_num_rows($re);\n if($fi = mysql_fetch_array($re))\n {\n //tamano $html .= \"<tr><td colspan='4' align='center' font-family='Arial'>\n\n\n $devS .= \"<table cellpadding='0' cellspacing='0' border='0' style='width:1250px;border:1px solid #000000;font-size:13px;font-family:Arial;'>\";\n $devS .= \"<tr><td style='border-bottom:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'></td>\";\n $devS .= \"<td style='display:none;'>\".mysql_field_name($re, $zz).\"</td>\";\n // $devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Modelo</td>\";\n $devS .= \"<td style='width:120px;border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:13px;text-align:center;'>$titulo</td>\";\n $devS .= \"<td colspan='3' align='center' style='border:1px solid #000000' >VENTAS</td>\";\n $devS .= \"<td colspan='3' align='center' style='border:1px solid #000000' >DEVOLUCION</td>\";\n $devS .= \"<td colspan='3' align='center' style='border:1px solid #000000' >Stock Actual</td>\";\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;'>Cobros</td>\";\n $devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;'>Cuentas</td>\";\n\n $devS .= \"</tr>\";\n $devS .= \"<tr><td style='border-bottom:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>#</td>\";\n $devS .= \"<td style='display:none;'>\".mysql_field_name($re, $zz).\"</td>\";\n$devS .= \"<td style='width:120px;border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:13px;text-align:center;background-color:silver;'></td>\";\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Cjs</td>\";\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Prs</td>\";\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Sus.</td>\";\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Cjs</td>\";\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Prs</td>\";\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Sus.</td>\";\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Cjs</td>\";\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Prs</td>\";\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Sus.</td>\";\n\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Sus</td>\";\n$devS .= \"<td style='border-bottom:1px solid #000000;border-left:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>P/C</td>\";\n\n $devS .= \"</tr>\";\n $ii = 0;\n //$totalCount = mysql_num_rows($re);\n $z = 1;\n $tcajasstant =0;\n $tparesstant =0;\n $ttotalbsstant =0;\n $ttotalcajasrecibido =0;\n $ttotalparesrecibido =0;\n $ttotalbsrecibido =0;\n $tcajastrasrec =0;\n $tparestrasrec =0;\n $ttotalbstrasrec =0;\n $tcajastraspdesp =0;\n $tparestraspdesp =0;\n $ttotalbstraspdesp =0;\n $ttotalcajasventa =0;\n $ttotalparesventa =0;\n $ttotalbsventa =0;\n $ttotalcajasdev =0;\n $ttotalparesdev =0;\n $ttotalbsdev =0;\n $tcobros =0;\n $tcuentas =0;\n $tcajasstact =0;\n $tparesstact =0;\n $ttotalbsstact =0;\n $ttotalbs =0;\n $trebaja =0;\n $tporcentaje =0;\n do{\n $devS .= \"<tr><td style='text-align:left'>\".$z.\"</td>\";\n for($i = 0; $i< mysql_num_fields($re); $i++)\n {$dato = $fi[$i];\n $iddetalleingreso = $fi[$i]['idmarca'];\n $idmarca =$dato;\n $sql = \"SELECT ma.nombre AS marca FROM `marcas` ma WHERE ma.idmarca = '$idmarca'\";\n\n\n $idalmacenA2 = findBySqlReturnCampoUnique($sql, true, true, 'marca');\n $marcalista = $idalmacenA2['resultado'];\n $devS .= \"<td style='display:none;'>\".$dato.\"</td>\";\n\n $devS .= \"<td style='width:120px;text-align:left;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>\".$marcalista.\"</td>\";\n if($cajasstant==NULL || $cajasstant =='' || $cajasstant == \"\"){ $cajasstant=\"0\"; }\n if($paresstant==NULL || $paresstant =='' || $paresstant == \"\"){ $paresstant=\"0\"; }\n if($totalbsstant==NULL || $totalbsstant =='' || $totalbsstant == \"\"){ $totalbsstant=\"0\"; }\n\n \n//ojo invertir almacenes\n//ini recibidos\n\n\n$select = \"SUM(vi.cantidad) AS Pares\";\n $from = \"ventas v,modelo mo,ventaitem vi\";\n $where = \" v.idventa=vi.idventa AND vi.idmodelo=mo.idmodelo and mo.idmarca = '$idmarca'\nand v.fecha >= '$fechainicio'\n AND v.fecha <= '$fechafin' and v.idalmacen='$idalmacen' and v.idvendedor='$idempleado'\";\n $sql2p = \"SELECT \".$select.\" FROM \".$from. \" WHERE \".$where;\n $almacenA1 = findBySqlReturnCampoUnique($sql2p, true, true, 'Pares');\n//echo $sql2p;\n$totalparesventa = $almacenA1['resultado'];\n$totalcajasventa = $totalparesventa/12;\n$totalcajasventa = round($totalcajasventa,2);\n $select = \"sUM(vi.precioventa) AS Pares\";\n $from = \"ventas v,modelo mo,ventaitem vi\";\n $where = \"v.idventa=vi.idventa AND vi.idmodelo=mo.idmodelo and mo.idmarca = '$idmarca'\nand v.fecha >= '$fechainicio'\n AND v.fecha <= '$fechafin' and v.idalmacen='$idalmacen' and v.idvendedor='$idempleado' \";\n $sql2p = \"SELECT \".$select.\" FROM \".$from. \" WHERE \".$where;\n $almacenA1 = findBySqlReturnCampoUnique($sql2p, true, true, 'Pares');\n $totalbsventa = $almacenA1['resultado'];\n\n $select = \"COUNT(v.iddetalledevolucion) AS Pares\";\n $from = \"detalledevolucion v,devolucion d,kardexdetallepar k\";\n $where = \" v.idkardexunico=k.idkardexunico and v.iddevolucion=d.iddevolucion\nAND d.idmarca = '$idmarca' and d.idvendedor='$idempleado' and d.fecha >= '$fechainicio' AND d.fecha <= '$fechafin' and d.idalmacen='$idalmacen'\";\n $sql2p = \"SELECT \".$select.\" FROM \".$from. \" WHERE \".$where;\n\n $almacenA1 = findBySqlReturnCampoUnique($sql2p, true, true, 'Pares');\n $totalparesdev = $almacenA1['resultado'];\n $totalcajasdev = $totalparesdev/12;\n $totalcajasdev= round($totalcajasdev,2);\n $select = \"SUM(v.valorcalzado) AS Pares\";\n $from = \"detalledevolucion v,devolucion d,kardexdetallepar k\";\n $where = \"v.idkardexunico=k.idkardexunico and v.iddevolucion=d.iddevolucion\nAND d.idmarca = '$idmarca' and d.idvendedor='$idempleado' and d.fecha >= '$fechainicio' AND d.fecha <= '$fechafin' and d.idalmacen='$idalmacen'\";\n $sql2p1 = \"SELECT \".$select.\" FROM \".$from. \" WHERE \".$where;\n $almacenA1 = findBySqlReturnCampoUnique($sql2p1, true, true, 'Pares');\n $totalbsdev = $almacenA1['resultado'];\n\n $sqlEgreso =\"SELECT estado FROM periodo WHERE idperiodo= '$idperiodo' \";\n $almacenA1 = findBySqlReturnCampoUnique($sqlEgreso, true, true, 'estado');\n $estadoperiodo = $almacenA1['resultado'];\n\n $select = \"SUM(vi.precioventa) AS Pares\";\n $from = \"ventas v,modelo mo,ventaitem vi\";\n $where = \"v.idventa=vi.idventa AND vi.idmodelo=mo.idmodelo and mo.idmarca = '$idmarca'\nand v.fecha >= '$fechainicio'\n AND v.fecha <= '$fechafin' and v.idalmacen='$idalmacen' and v.idvendedor='$idempleado' \";\n $sql2p = \"SELECT \".$select.\" FROM \".$from. \" WHERE \".$where;\n $almacenA1 = findBySqlReturnCampoUnique($sql2p, true, true, 'Pares');\n $totalbsventa = $almacenA1['resultado'];\n\n $select2 = \"sum(cp.monto) as monto\";\n $from = \"creditopago cp,empleados e\";\n $where = \"cp.idvendedor=e.idempleado and e.idalmacen='$idalmacen' and cp.idvendedor='$idempleado' and cp.idmarca='$idmarca' AND cp.fechapago >= '$fechainicio' AND cp.fechapago <= '$fechafin'\";\n $sql251 = \"SELECT \".$select2.\" FROM \".$from.\" WHERE \".$where.\" \";\n $idalmacenA = findBySqlReturnCampoUnique($sql251, true, true, 'monto');\n $cobros = $idalmacenA['resultado'];\n$select = \"sum(cl.porpagar) as monto\";\n $from = \"creditocliente cl,clientes c,empleados e\";\n $where = \"cl.idvendedor=e.idempleado and e.idalmacen='$idalmacen' and cl.idcliente=c.idcliente and cl.estado='pendiente' and cl.idmarca='$idmarca' and cl.idvendedor='$idempleado'\";\n\n $sql251 = \"SELECT \".$select.\" FROM \".$from.\" WHERE \".$where.\" \";\n $idalmacenA = findBySqlReturnCampoUnique($sql251, true, true, 'monto');\n $cuentas = $idalmacenA['resultado'];\n\n$select1 = \"SUM(k.saldocantidad) AS pares\";\n $from = \"kardexdetallepar k,modelo m\";\n $where = \"k.idmodelo=m.idmodelo and m.estado='Activo' and k.idalmacen='$idalmacen' and m.idvendedor='$idempleado'\";\n\n if($idmarca != null && $idmarca != \"\")\n { $where .= \" AND m.idmarca ='$idmarca' \";}\n $select2 = \" SUM(k.saldocantidad*k.preciounitario) AS sus\";\n\n $sql4112 = \"SELECT \".$select1.\" FROM \".$from. \" WHERE \".$where.\" \";\n $creditoA111 = findBySqlReturnCampoUnique($sql4112, true, true, \"pares\");\n $paresstact = $creditoA111['resultado'];\n $cajasstact = $paresstact/12;\n$cajasstact = round($cajasstact);\n $sql12 = \"SELECT \".$select2.\" FROM \".$from. \" WHERE \".$where.\" \";\n $creditoA111 = findBySqlReturnCampoUnique($sql12, true, true, \"sus\");\n $totalbsstact = $creditoA111['resultado'];\n$totalbsstact = round($totalbsstact);\n\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$totalcajasventa.\"&nbsp;</td>\";\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$totalparesventa.\"&nbsp;</td>\";\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$totalbsventa.\"&nbsp;</td>\";\n\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$totalcajasdev.\"&nbsp;</td>\";\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$totalparesdev.\"&nbsp;</td>\";\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$totalbsdev.\"&nbsp;</td>\";\n\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$cajasstact.\"&nbsp;</td>\";\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$paresstact.\"&nbsp;</td>\";\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$totalbsstact.\"&nbsp;</td>\";\n\n$devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$cobros.\"&nbsp;</td>\";\n$devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$cuentas.\"&nbsp;</td>\";\n$cajasstact =round($cajasstact,2);\n $tcajasstant =$tcajasstant+$cajasstant;\n\n $tparesstant =$tparesstant+$paresstant;\n $ttotalbsstant =$ttotalbsstant+$totalbsstant;\n $ttotalcajasrecibido =$ttotalcajasrecibido+$totalcajasrecibido;\n $ttotalparesrecibido =$ttotalparesrecibido+$totalparesrecibido;\n $ttotalbsrecibido =$ttotalbsrecibido+$totalbsrecibido;\n $tcajastrasrec =$tcajastrasrec+$cajastrasrec;\n $tparestrasrec =$tparestrasrec+$parestrasrec;\n $ttotalbstrasrec =$ttotalbstrasrec+$totalbstrasrec;\n $tcajastraspdesp =$tcajastraspdesp+$cajastraspdesp;\n $tparestraspdesp =$tparestraspdesp+$parestraspdesp;\n $ttotalbstraspdesp =$ttotalbstraspdesp+$totalbstraspdesp;\n $ttotalcajasventa =$ttotalcajasventa+$totalcajasventa;\n $ttotalparesventa =$ttotalparesventa+$totalparesventa;\n $ttotalbsventa =$ttotalbsventa+$totalbsventa;\n $ttotalcajasdev =$ttotalcajasdev+$totalcajasdev;\n $ttotalparesdev =$ttotalparesdev+$totalparesdev;\n $ttotalbsdev =$ttotalbsdev+$totalbsdev;\n $tcobros =$tcobros+$cobros;\n $tcuentas =$tcuentas+$cuentas;\n $tcajasstact =$tcajasstact+$cajasstact;\n $tparesstact =$tparesstact+$paresstact;\n $ttotalbsstact =$ttotalbsstact+$totalbsstact;\n $ttotalbs =$ttotalbs+$totalbs;\n $trebaja =$trebaja+$rebaja;\n $tporcentaje =$tporcentaje+$porcentaje;\n }\n $devS .= \"</tr>\";\n $ii++;\n $z ++;\n }while($fi = mysql_fetch_array($re));\n//$devS .= \"<tr><td style='border:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>Total</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td style='border:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>$totalparesestilo</td><td style='border:1px solid #000000;font-weight:bold;font-size:11px;text-align:center;background-color:silver;'>$totalbsestilo</td>\";\n$devS .= \"<tr style='background-color:silver;'><td style='border: 1px solid #000000;font-weight:bold;font-size:12px;text-align:center;background-color:silver;font-family:Arial;'></td>\";\n $devS .= \"<td style='display:none;'></td>\";\n\n $fechatoday = Date(\"d-m-Y\");\n //font-weight:bold;font-size:12px;\n $devS .= \"<td style='width:120px;text-align:center;border-bottom: 1px solid #000000;font-weight:bold;font-size:12px;'>TOTAL -\".$titulo.\"</td>\";\n //totalesagru\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border: 1px solid #000000;'>&nbsp;\".$ttotalcajasventa.\"&nbsp;</td>\";\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border: 1px solid #000000;'>&nbsp;\".$ttotalparesventa.\"&nbsp;</td>\";\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border: 1px solid #000000;'>&nbsp;\".$ttotalbsventa.\"&nbsp;</td>\";\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border: 1px solid #000000;'>&nbsp;\".$ttotalcajasdev.\"&nbsp;</td>\";\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border: 1px solid #000000;'>&nbsp;\".$ttotalparesdev.\"&nbsp;</td>\";\n $devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border: 1px solid #000000;'>&nbsp;\".$ttotalbsdev.\"&nbsp;</td>\";\n\n$devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$tcajasstact.\"&nbsp;</td>\";\n$devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$tparesstact.\"&nbsp;</td>\";\n$devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border-bottom: 1px solid #000000;'>&nbsp;\".$ttotalbsstact.\"&nbsp;</td>\";\n\n$devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border: 1px solid #000000;'>&nbsp;\".$tcobros.\"&nbsp;</td>\";\n$devS .= \"<td style='text-align:center;border-left: 1px solid #000000;border: 1px solid #000000;'>&nbsp;\".$tcuentas.\"&nbsp;</td>\";\n\n\n $devS .= \"</tr>\";\n\n $devS .= \"</tr>\";\n\n \n $devS .= \"</table>\";\n\n $dev['mensaje'] = \"Existen resultados\";\n $dev['error'] = \"true\";\n $dev['resultado'] = $devS;\n\n }\n else\n {\n $dev['mensaje'] = \"No se encontro datos en la consulta2\".mysql_error();\n $dev['error'] = \"false\";\n $dev['resultado'] = \"\";\n }\n }\n else\n {\n $dev['mensaje'] = \"Error en la consulta\";\n $dev['error'] = \"false\";\n $dev['resultado'] = \"\";\n }\n }\n else\n {\n $dev['mensaje'] = \"No se pudo conectar a la BD\";\n $dev['error'] = \"false\";\n $dev['resultado'] = \"\";\n }\n }\n else\n {\n $dev['mensaje'] = \"No se pudo crear la conexion a la BD\";\n $dev['error'] = \"false\";\n $dev['resultado'] = \"\";\n }\n return $dev;\n}", "title": "" }, { "docid": "9a2bc4d3b716abfb7602748804fa9f9c", "score": "0.52262974", "text": "private function __cleanConceptData() {\n\t\t//debug($this->request->data);\n\t\t$count_concepts = count($this->request->data['Concept']);\n\t\tif (empty($this->request->data['Concept'][$count_concepts-1]['valor'])) {\n\t\t\tunset($this->request->data['Concept'][$count_concepts-1]);\n\t\t//\tdebug($this->request->data);\n\t\t\tif (empty($this->request->data['Concept'])) {\n\t\t\t\tunset($this->request->data['Concept']);\n\t\t\t}\n\t\t}\n\t\t//debug($this->request->data);\n\t}", "title": "" }, { "docid": "e6c63d7e7ef14f1a614f6d3d306eb92c", "score": "0.52256644", "text": "private function limpiar_datos_reciclable()\r\n\t{\r\n\t\tif(isset($this->celda_memoria_actual['reciclables'])){\r\n\t\t\tforeach($this->celda_memoria_actual['reciclables'] as $reciclable => $tipo){\r\n\t\t\t\t$this->eliminar_dato_operacion($reciclable);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Esto no deberia ser necesario.\r\n\t\tunset($this->celda_memoria_actual['reciclables']);\r\n\t\tunset($this->celda_memoria_actual['reciclables_activos']);\r\n\t}", "title": "" }, { "docid": "c1e8a7961efa9e239352481cb34109b8", "score": "0.52246356", "text": "public function index()\n {\n $clientes = Clientes::all();//optener todos los clientes\n $carpetas = ControlTramites::all();//optener todo de la tabla control tramites\n $puesto = Auth::user()->puesto_id;//optener el puesto_id del usuario logueado\n \n \n $conceptos = DB::table('menu_concepto')\n ->where('menu_concepto.puesto_id', '=', $puesto)//optiene las categorias de menu\n ->select('menu_concepto.*')\n ->get();\n \n $funciones = DB::table('menu')\n ->where('menu.puesto_id', '=', $puesto)\n ->select('menu.*')\n ->get();\n return view('asignacion_folio', compact('citas','clientes','carpetas','funciones','conceptos'));\n }", "title": "" }, { "docid": "58a5c1148074adedfb78743f0e589842", "score": "0.5223734", "text": "public function lista_requerimientos($cite_id,$proy_id,$tp_ins){\n $proyecto = $this->model_proyecto->get_id_proyecto($proy_id); /// Datos del Proyecto\n $fase = $this->model_faseetapa->get_id_fase($proy_id); /// Fase Activa\n if($this->gestion!=2020){ /// 2019\n $lista_insumos=$this->model_modificacion->mis_requerimientos($proyecto[0]['proy_act'],$fase[0]['pfec_ejecucion'],$tp_ins);\n }\n else{ /// 2020\n if($proyecto[0]['tp_id']==1){ /// Proy de Inversion\n $lista_insumos = $this->minsumos->lista_insumos_act($tp_ins);\n }\n else{ /// Gasto Corriente\n $lista_insumos = $this->minsumos->lista_insumos_prod($tp_ins);\n }\n }\n\n \n $tabla='';\n $total=0;\n $tabla.='<table id=\"dt_basic\" class=\"table table table-bordered\" width=\"100%\">\n <thead>\n <tr class=\"modo1\">\n <th style=\"width:2%;\">#</th>\n <th style=\"width:5%;\">PARTIDA</th>\n <th style=\"width:15%;\">DETALLE REQUERIMIENTO</th>\n <th style=\"width:10%;\">UNIDAD</th>\n <th style=\"width:5%;\">CANTIDAD</th>\n <th style=\"width:5%;\">UNITARIO</th>\n <th style=\"width:5%;\">TOTAL</th>\n <th style=\"width:5%;\">TOTAL PROG.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">ENE.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">FEB.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">MAR.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">ABR.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">MAY.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">JUN.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">JUL.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">AGO.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">SEPT.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">OCT.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">NOV.</th>\n <th style=\"width:5%;\" style=\"background-color: #0AA699;color: #FFFFFF\">DIC.</th>\n <th style=\"width:8%;\">OBSERVACIONES</th>\n </tr>\n </thead>\n <tbody>';\n $cont = 0;\n foreach ($lista_insumos as $row) {\n $color_tr=''; $dis=''; $title='title=\"REQUERIMIENTO\"';\n\n if($this->gestion!=2020){ /// 2019\n $prog = $this->minsumos->get_list_insumo_financiamiento($row['insg_id']);\n /*-------------------- 2019 ---------------------*/\n $cert=$this->model_ejecucion->get_ins_certificado($row['ins_id'],$row['ifin_id']);\n if(count($cert)!=0){\n if($cert[0]['certificado']==$row['programado_total']){\n $color_tr=\"#f1b5c6\"; $dis='disabled'; $title='title=\"REQUERIMIENTO CERTIFICADO\"';\n }\n }\n \n $cont++;\n $tabla .= '<tr class=\"modo1\" bgcolor=\"'.$color_tr.'\" '.$title.'>';\n $tabla .= '<td align=\"center\" style=\"width:2%;\" title='.$row['ins_id'].'>';\n if(count($cert)!=0){\n if($cert[0]['certificado']<$row['programado_total']){\n $tabla.='<a href=\"#\" data-toggle=\"modal\" data-target=\"#modal_mod_ff\" class=\"btn-default mod_ff\" name=\"'.$row['ins_id'].'\" id=\"btn_m\" title=\"MODIFICAR REQUERIMIENTO - '.$row['ins_id'].'\" disabled=\"true\"><img src=\"'.base_url().'assets/ifinal/modificar.png\" WIDTH=\"35\" HEIGHT=\"35\"/></a><br>';\n }\n }\n else{\n $tabla.='<a href=\"#\" data-toggle=\"modal\" data-target=\"#modal_mod_ff\" class=\"btn-default mod_ff\" name=\"'.$row['ins_id'].'\" id=\"btn_m\" title=\"MODIFICAR REQUERIMIENTO - '.$row['ins_id'].'\" disabled=\"true\"><img src=\"'.base_url().'assets/ifinal/modificar.png\" WIDTH=\"35\" HEIGHT=\"35\"/></a><br>';\n }\n\n if(count($cert)==0){\n $tabla.='<a href=\"#\" data-toggle=\"modal\" data-target=\"#modal_del_ff\" class=\"btn btn-xs del_ff\" title=\"ELIMINAR REQUERIMIENTO\" name=\"'.$row['ins_id'].'\" id=\"'.$proy_id.'\">\n <img src=\"'.base_url().'assets/img/delete.png\" width=\"35\" height=\"35\"/>\n </a>';\n }\n /*-----------------------------------------*/\n }\n else{ //// 2020\n $prog = $this->model_insumo->list_temporalidad_insumo($row['ins_id']);\n\n $tabla .='<tr>';\n $tabla .='<td align=center>';\n $tabla.=' <a href=\"#\" data-toggle=\"modal\" data-target=\"#modal_mod_ff\" class=\"btn-default mod_ff\" name=\"'.$row['ins_id'].'\" id=\"btn_m\" title=\"MODIFICAR REQUERIMIENTO - '.$row['ins_id'].'\" disabled=\"true\"><img src=\"'.base_url().'assets/ifinal/modificar.png\" WIDTH=\"35\" HEIGHT=\"35\"/></a><br>\n <a href=\"#\" data-toggle=\"modal\" data-target=\"#modal_del_ff\" class=\"btn btn-xs del_ff\" title=\"ELIMINAR REQUERIMIENTO\" name=\"'.$row['ins_id'].'\" id=\"'.$proy_id.'\">\n <img src=\"'.base_url().'assets/img/delete.png\" width=\"35\" height=\"35\"/>\n </a>';\n }\n\n $cont++;\n $tabla .='</td>';\n $tabla .='<td style=\"width:5%;\">'.$row['par_codigo'].'</td>'; /// partida\n $tabla .= '<td style=\"width:15%;\">'.$row['ins_detalle'].'</td>'; /// detalle requerimiento\n $tabla .= '<td style=\"width:10%;\">'.$row['ins_unidad_medida'].'</td>'; /// Unidad\n $tabla .= '<td style=\"width:5%;\">'.$row['ins_cant_requerida'].'</td>'; /// cantidad\n $tabla .= '<td style=\"width:5%;\">'.number_format($row['ins_costo_unitario'], 2, ',', '.').'</td>';\n $tabla .= '<td style=\"width:5%;\">'.number_format($row['ins_costo_total'], 2, ',', '.').'</td>';\n\n if(count($prog)!=0){\n $tabla.='\n <td style=\"width:5%;\">'.number_format($prog[0]['programado_total'], 2, ',', '.').'</td> \n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes1'], 2, ',', '.').'</td>\n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes2'], 2, ',', '.').'</td>\n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes3'], 2, ',', '.').'</td>\n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes4'], 2, ',', '.').'</td>\n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes5'], 2, ',', '.').'</td>\n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes6'], 2, ',', '.').'</td>\n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes7'], 2, ',', '.').'</td>\n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes8'], 2, ',', '.').'</td>\n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes9'], 2, ',', '.').'</td>\n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes10'], 2, ',', '.').'</td>\n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes11'], 2, ',', '.').'</td>\n <td style=\"width:5%;\" bgcolor=\"#dcfbf8\">'.number_format($prog[0]['mes12'], 2, ',', '.').'</td>';\n }\n else{\n $tabla.='\n <td style=\"width:5%;\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>\n <td style=\"width:5%;\" bgcolor=\"#f9d4ce\">0</td>';\n }\n \n $tabla .= '<td style=\"width:8%;\">'.$row['ins_observacion'].'</td>';\n $tabla .= '</tr>';\n $total=$total+$row['ins_costo_total'];\n }\n $tabla.='\n </tbody>\n <tr class=\"modo1\">\n <td colspan=\"6\"> TOTAL </td>\n <td><font color=\"blue\" size=1>'.number_format($total, 2, ',', '.') .'</font></td>\n <td colspan=\"14\"></td>\n </tr>\n </table>';\n\n return $tabla;\n }", "title": "" }, { "docid": "9d9f3876d1281bde9fb9e1fa2553117d", "score": "0.52220094", "text": "public function datosRechazadosTabla() {\n\n\t\t$results = Administracion::select('id', 'periodo', 'provincia', 'usuario_accion', DB::raw('\\'RECHAZADO\\' as estado'), DB::raw('tablero.administracion.updated_at::date as fecha'))\n\t\t\t->with(['provincias', 'usuario'])\n\t\t\t->where('estado', '4');\n\n\t\tif (Auth::user()->id_entidad != 1) {\n\t\t\t$results->where('provincia', Auth::user()->id_provincia);\n\t\t}\n\n\t\t$results->orderBy('updated_at', 'desc');\n\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "dc0687c330f99093b8d45d8120f88c3d", "score": "0.5217544", "text": "public function getTableNulls(){\r\n // La valeur 1 => Oui peut etre vide , 0 => Non ne peut etre vide\r\n //Ce tableau a une taille equialent a celle retourner par $this -> getAttribasarray();\r\n $t = array(0,0,1,1,1,1,0,1,1,1,1);\r\n return $t ;\r\n }", "title": "" }, { "docid": "e9572fce8700c991435b50994339d775", "score": "0.52150875", "text": "function listarDetalleSolSolictudCompra(){\r\n\t\t$this->procedimiento='mat.ft_detalle_sol_sel';\r\n\t\t$this->transaccion='MAT_DETCS_SEL';\r\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\t\t$this->setParametro('id_solicitud','id_solicitud','int4');\r\n\r\n\t\t$this->capturaCount('venta_total','numeric');\r\n\t\t//Definicion de la lista del resultado del query\r\n\t\t$this->captura('id_detalle','int4');\r\n\t\t$this->captura('id_solicitud','int4');\r\n\t\t$this->captura('descripcion','varchar');\r\n\t\t$this->captura('estado_reg','varchar');\r\n\t\t$this->captura('id_unidad_medida','int4');\r\n\t\t$this->captura('nro_parte','varchar');\r\n\t\t$this->captura('referencia','varchar');\r\n\t\t$this->captura('nro_parte_alterno','varchar');\r\n\t\t$this->captura('id_moneda','int4');\r\n\t\t/*Cambiando el campo precio por precio unitario*/\r\n\t\t//$this->captura('precio','numeric');\r\n\t\t$this->captura('precio_unitario','numeric');\r\n\t\t$this->captura('cantidad_sol','numeric');\r\n\t\t$this->captura('id_usuario_reg','int4');\r\n\t\t$this->captura('usuario_ai','varchar');\r\n\t\t$this->captura('fecha_reg','timestamp');\r\n\t\t$this->captura('id_usuario_ai','int4');\r\n\t\t$this->captura('id_usuario_mod','int4');\r\n\t\t$this->captura('fecha_mod','timestamp');\r\n\t\t$this->captura('usr_reg','varchar');\r\n\t\t$this->captura('usr_mod','varchar');\r\n $this->captura('codigo','varchar');\r\n $this->captura('desc_descripcion','varchar');\r\n $this->captura('revisado','varchar');\r\n $this->captura('tipo','varchar');\r\n $this->captura('estado','varchar');\r\n $this->captura('explicacion_detallada_part','varchar');\r\n\t\t/*Aumentando los siguientes campos (Ismael Valdivia 31/01/2020)*/\r\n\t\t$this->captura('id_centro_costo','int4');\r\n\t\t$this->captura('id_concepto_ingas','int4');\r\n\t\t$this->captura('id_orden_trabajo','int4');\r\n\r\n\r\n\t\t$this->captura('desc_centro_costo','text');\r\n\t\t$this->captura('desc_concepto_ingas','varchar');\r\n\t\t$this->captura('desc_orden_trabajo','varchar');\r\n\t\t$this->captura('precio_total','numeric');\r\n\t\t$this->captura('condicion_det','varchar');\r\n\t\t$this->captura('codigo_categoria','varchar');\r\n\t\t$this->captura('codigo_partida','varchar');\r\n\t\t$this->captura('nombre_partida','varchar');\r\n\t\t$this->captura('id_presupuesto','integer');\r\n\t\t$this->captura('id_partida','integer');\r\n\t\t$this->captura('total_hazmat','numeric');\r\n\t\t/***************************************************************/\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\t\t//var_dump($this->respuesta); exit;\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "b5bd6d1df9311cd5aa5bf1ee5ec64f62", "score": "0.5214239", "text": "public function EspacioAcademicoModelo()\n\t\t{\n\t\t\t$id = \"\";\n\t\t\t$nombre = \"\";\n\t\t\t$semestre = \"\";\n\t\t}", "title": "" }, { "docid": "ffbcc4814f4583ce4c4c19bb50a7a66b", "score": "0.52123255", "text": "public function mis_ogestion($acc_id){\n $ogestion = $this->model_objetivogestion->list_objetivosgestion($acc_id); /// OBJETIVOS DE GESTION\n $acciones = $this->model_mestrategico->get_acciones_estrategicas($acc_id); // ACCIONES ESTRATEGICAS\n $objetivos =$this->model_mestrategico->get_objetivos_estrategicos($acciones[0]['obj_id']); /// OBJETIVOS ESTRATEGICOS\n\n $tabla ='';\n $tabla .='<article class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\n <div class=\"jarviswidget jarviswidget-color-darken\" >\n <header>\n <span class=\"widget-icon\"> <i class=\"fa fa-arrows-v\"></i> </span>\n <h2 class=\"font-md\"><strong>OBJETIVOS DE GESTI&Oacute;N - '.$this->gestion.'</strong></h2> \n </header>\n <div>\n <a role=\"menuitem\" tabindex=\"-1\" href=\"#\" data-toggle=\"modal\" data-target=\"#modal_nuevo_ff\" class=\"btn btn-success\" style=\"width:14%;\" title=\"NUEVO REGISTRO - RESULTADO INTERMEDIO\">NUEVO OBJETIVO DE GESTI&Oacute;N</a><br><br>\n <div class=\"widget-body no-padding\">\n <table id=\"dt_basic\" class=\"table table table-bordered\" width=\"100%\">\n <thead>\n <tr>\n <th style=\"width:1%;\">NRO</th>\n <th style=\"width:1%;\">M/E</th>\n <th style=\"width:2%;\">OBJETIVOS REGIONALES</th>\n <th style=\"width:10%;\">OBJETIVO DE GESTI&Oacute;N</th>\n <th style=\"width:10%;\">PRODUCTO</th>\n <th style=\"width:10%;\">RESULTADO</th>\n <th style=\"width:5%;\">TP. INDI.</th>\n <th style=\"width:7%;\">INDICADOR</th>\n <th style=\"width:4%;\">LINEA BASE</th>\n <th style=\"width:4%;\">META</th>\n <th style=\"width:4%;\" title=\"CHUQUISACA\">CH.</th>\n <th style=\"width:4%;\" title=\"LA PAZ\">LPZ.</th>\n <th style=\"width:4%;\" title=\"COCHABAMBA\">CBBA.</th>\n <th style=\"width:4%;\" title=\"ORURO\">OR.</th>\n <th style=\"width:4%;\" title=\"POTOSI\">POT.</th>\n <th style=\"width:4%;\" title=\"TARIJA\">TJA.</th>\n <th style=\"width:4%;\" title=\"SANTA CRUZ\">SCZ.</th>\n <th style=\"width:4%;\" title=\"BENI\">BE.</th>\n <th style=\"width:4%;\" title=\"PANDO\">PN</th>\n <th style=\"width:4%;\" title=\"OFICINA NACIONAL\">OFN</th>\n <th style=\"width:10%;\">MEDIO VERIFICACI&Oacute;N</th>\n </tr>\n </thead>\n <tbody>';\n $nro=0;\n foreach($ogestion as $row){\n $nro++;\n $tabla .='<tr>';\n $tabla .='<td>'.$nro.'</td>';\n $tabla .='<td align=\"center\">';\n $tabla .='<a href=\"#\" data-toggle=\"modal\" data-target=\"#modal_mod_ff\" class=\"btn btn-xs mod_ff\" title=\"MODIFICAR DATOS - OBJETIVOS DE GESTIÓN\" name=\"'.$row['og_id'].'\"><img src=\"' . base_url() . 'assets/ifinal/modificar.png\" WIDTH=\"35\" HEIGHT=\"35\"/></a><br>';\n $tabla .='<a href=\"#\" data-toggle=\"modal\" data-target=\"#modal_del_ff\" class=\"btn btn-xs del_ff\" title=\"ELIMINAR OBJETIVO DE GESTIÓN\" name=\"'.$row['og_id'].'\"><img src=\"'.base_url().'assets/ifinal/eliminar.png\" WIDTH=\"35\" HEIGHT=\"35\"/></a><br>';\n $tabla .='</td>';\n $tabla .='<td bgcolor=\"#cef3ee\"><a href=\"'.site_url(\"\").'/me/objetivos_regionales/'.$row['og_id'].'\" class=\"btn btn-default\" title=\"OBJETIVOS REGIONALES\"><img src=\"'.base_url().'assets/img/folder.png\" WIDTH=\"35\" HEIGHT=\"35\"/></a></td>';\n $tabla .='<td>'.$row['og_objetivo'].'</td>';\n $tabla .='<td>'.$row['og_producto'].'</td>';\n $tabla .='<td>'.$row['og_resultado'].'</td>';\n $tabla .='<td>'.strtoupper($row['indi_descripcion']).'</td>';\n $tabla .='<td>'.$row['og_indicador'].'</td>';\n $tabla .='<td>'.$row['og_linea_base'].'</td>';\n $tabla .='<td>'.$row['og_meta'].'</td>';\n \n for ($i=1; $i <=10 ; $i++) { \n $dep=$this->model_objetivogestion->get_ogestion_regional($row['og_id'],$i);\n if(count($dep)!=0){\n $tabla.='<td bgcolor=\"#e6f5e0\"><b>'.$dep[0]['prog_fis'].'</b></td>';\n }\n else{\n $tabla.='<td bgcolor=\"#e6f5e0\"><b>0</b></td>';\n }\n }\n $tabla.='<td>'.$row['og_verificacion'].'</td>';\n $tabla.='</tr>';\n }\n $tabla .='\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </article>';\n\n return $tabla;\n }", "title": "" }, { "docid": "6b8a3922a686653a47e4e14764030009", "score": "0.52081764", "text": "public static function CrearTablaEstacionados()//\n\t{\n\t\tif(file_exists(\"archivos/estacionados.txt\"))\n\t\t\t{\n\t\t\t\t$cadena=\" <table border=1><th> patente </th><th> Importe </th><th> Foto </th>\";\n\n\t\t\t\t$archivo=fopen(\"archivos/estacionados.txt\", \"r\");\n\n\t\t\t while(!feof($archivo))\n\t\t\t {\n\t\t\t\t $renglon=fgets($archivo);\n\t\t\t\t \n\t\t\t\t $arrayAuto=explode(\"=>\", $renglon);\n\t\t\t\t //trim devuelve una cadena con los espacios en blanco eliminados del inicio y final\n\t\t\t\t $arrayAuto[0]=trim($arrayAuto[0]);\n\t\t\t\t if($arrayAuto[0]!=\"\")\n\t\t\t\t $cadena =$cadena.\"<tr> <td> \".$arrayAuto[0].\"</td> <td> \".$arrayAuto[1] .\"</td><td><img src=\".$arrayAuto[2].\" height=50px width=70px/></td> </tr>\" ; \n\t\t\t\t}\n\t\t \t\t$cadena =$cadena.\" </table>\";\n\t\t \tfclose($archivo);\n\n\t\t \t//Abre el archivo sólo para escritura,comienza al inicio y elimina el contenido previo. Si el archivo no existe lo crea\n\t\t\t\t$archivo=fopen(\"archivos/tablaestacionados.php\", \"w\"); \n\t\t\t\tfwrite($archivo, $cadena);\n\t\t\t\tfclose($archivo);\n\t\t\t}\t\n\t\telse\n\t\t\t{\n\t\t\t\t$cadena= \"no hay facturación\";\n\n\t\t\t\t$archivo=fopen(\"archivos/tablaestacionados.php\", \"w\");\n\t\t\t\tfwrite($archivo, $cadena);\n\t\t\t\tfclose($archivo);\n\t\t\t}\n\t}", "title": "" }, { "docid": "f84c2618b14c0eb6ac26fb02ef2fcb89", "score": "0.520468", "text": "public function getRechazosTabla($lote){\n\t\t$rechazos = Rechazo::where('lote' , $lote)->get();\n\t\treturn Datatables::of($rechazos)\n\t\t\t->make(true);\n\t}", "title": "" }, { "docid": "3bc5c91e4425af53c4d40d8581c09b05", "score": "0.5203346", "text": "function laboratorio_listar($fecha)\n\t{\n\t\techo \"Fecha: $fecha<br>\";\n\t\techo \"<table><tr><th>Centro</th></tr>\";\n\t\t$centros=\"\";\n\t\tif(isset($_GET['cen'])){\n\t\t\t$centros = $_GET['cen'];// str_replace('/',',',$_GET['cen']);\n\t\t\t$lista = explode(',',$centros);\n\t\t\tforeach($lista as $indice => $codigo)\n\t\t\t{\n\t\t\t\t$nombre=$this->datos->centro_recuperar($codigo);\n\t\t\t\techo \"<tr><td>$codigo</td><td>$nombre</td></tr>\\n\";\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\techo \"</table>\\n\";\n\n\t\techo \"<table><tr><th>Laboratorio</th></tr>\";\n\t\t$laboratorios=\"\";\n\t\tif(isset($_GET['lab'])){\n\t\t\t$laboratorios= $_GET['lab'];// str_replace('/',',',$_GET['lab']);\t\n\t\t\t$lista = explode(',',$laboratorios);\n\t foreach($lista as $indice => $codigo)\n \t {\n \t $nombre=$this->datos->laboratorio_recuperar($codigo);\n \techo \"<tr><td>$codigo</td><td>$nombre</td></tr>\\n\";\n\n\t }\n\t\t}\n echo \"</table>\\n\";\t\n\n\t\t// recuperar tablas\n\t\t$servicio_lista = $this->datos->servicio_lista();\n\t\t$examen_lista = $this->datos->examen_lista();\n\n\n\t\t// recuperar lista de medicos en caso de que\n\t\t// un medico tenga dos especialidades se ignorara la otra\n\t\t// por transitividad se aplica a servicios\n\t\t// y no todos los centros dan receta\n\t\t$lista = $this->datos->medicos_listar($centros);\n\t\t\n\n\t\t// mostrar examenes dentro un servicio \n\t\techo \"<table>\\n\";\n\t\techo \"<tr><th>Especialidad</th><th>Mañana 06:30 a 12:30</th><th>Tarde 12:30 a 19:00</th><th>Noche 19:00 a 06:30</th></tr>\\n\";\n\t\tforeach($lista as $servicio => $medicos)\n\t\t{\n\t\t\tfor($i=0;$i<3;$i++)\n\t\t\t\tforeach($examen_lista as $indice => $examen)\n\t\t\t\t\t$suma[$i][$indice]=0;\n\t\t\t\t\n\t\t\tforeach($medicos as $indice => $medico)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t$grupo[0]=$this->datos->laboratorios_contar($laboratorios,$fecha,$medico,'06:30:00','12:30:00');\n\t\t\t\t$grupo[1]=$this->datos->laboratorios_contar($laboratorios,$fecha,$medico,'12:30:00','19:00:00');\n\t\t\t\t$grupo[2]=$this->datos->laboratorios_contar($laboratorios,$fecha,$medico,'19:00:00','06:30:00');\n\n\t\t\t\tfor($i=0;$i<3;$i++)\n\t\t\t\t\tforeach($grupo[$i] as $examen => $cantidad)\n\t\t\t\t\t\t$suma[$i][$examen]+=$cantidad;\n\n\t\t\t}\n\t\t\techo \"<tr><th>{$servicio_lista[$servicio]} TOTAL</th><td></td><td></td><td></td></tr>\\n\";\n\t\t\tforeach($examen_lista as $indice => $examen)\n\t\t\t{\n\t\t\t\techo \"<tr><td>$examen</td>\";\n\t\t\t\tfor($i=0;$i<3;$i++)\n\t\t\t\t{\t\n\t\t\t\t\techo \"<td>{$suma[$i][$indice]}</td>\";\n\t\t\t\t}\t\n\t\t\t\techo \"</tr>\\n\";\n\t\t\t}\n\t\t\techo \"<tr><td>&nbsp;</td></tr>\\n\";\n\t\t}\n\t\techo \"</table>\\n\";\n\t}", "title": "" }, { "docid": "3ccf42860f7890846aa979463eeab13c", "score": "0.52009135", "text": "public function table_list();", "title": "" }, { "docid": "34b63b64d38b03871b9a4488b88af1dd", "score": "0.51996577", "text": "public function informacionTabla(){\r\n $sql=\"SELECT * FROM cat_preguntas ORDER BY idPregunta ASC\";\r\n\t\treturn ejecutarConsulta($sql); \r\n }", "title": "" }, { "docid": "a3d1f04465c19efd7472efbf0fc3c31b", "score": "0.519451", "text": "function carregarLivros(){\n\t\t\t$queryCarregar = mysql_query(\"select * from livros\");\n\t\t\t\t/* Enquanto houver dados na tabela, escrever... */\n\t\t\t\twhile ($resultado=mysql_fetch_array($queryCarregar)){\n\t\t\t\t\t$codigo = $resultado[\"codigo\"];\n\t\t\t\t\techo \"<tr><td>\" . $resultado[\"codigo\"] . \"</td>\n\t\t\t\t\t\t\t\t<td>\" . $resultado[\"livro\"] . \"</td>\n\t\t\t\t\t\t\t\t<td>\" . $resultado[\"autor\"] . \"</td>\n\t\t\t\t\t\t\t\t<td>\" . $resultado[\"categoria\"] . \"</td>\n\t\t\t\t\t\t\t\t<td><a href=\\\"editarlivro.php?id=$codigo\\\">Editar</a></td>\n\t\t\t\t\t\t\t\t<td><a href=\\\"deletarlivro.php?id=$codigo\\\" onclick=\\\"return deletarLivro()\\\">Excluir</td>\";\n\t\t\t\t}\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "82db38cc287c19fa318bd689ba3d302e", "score": "0.5190513", "text": "public function getTiemposVerbales(){\n $tiempos = tiempoVerbal::all();\n $arrayTiempos = Array();\n foreach ($tiempos as $tiempo)\n $arrayTiempos[$tiempo->id] = $tiempo->nombre;\n return $arrayTiempos;\n }", "title": "" }, { "docid": "86dca5920f34b9e60ecc8ff428e0e811", "score": "0.51889455", "text": "function traduz_sujeito_objeto($lista_de_sujeito_e_objeto, $concepts, $relations, $axioms) {\n\n for (; $_SESSION[\"index1\"] < count($lista_de_sujeito_e_objeto); ++$_SESSION[\"index1\"]) {\n\n $sujeito = $lista_de_sujeito_e_objeto[$_SESSION[\"index1\"]];\n\n if (!isset($_SESSION[\"conceito\"])) {\n $_SESSION[\"salvar\"] = \"TRUE\";\n $_SESSION[\"conceito\"] = new concept($sujeito->nome, $sujeito->nocao);\n $_SESSION[\"conceito\"]->namespace = \"proprio\";\n }\n else {\n $_SESSION[\"salvar\"] = \"FALSE\";\n }\n\n for (; $_SESSION[\"index2\"] < count($sujeito->impacto); ++$_SESSION[\"index2\"]) {\n\n $imp = $sujeito->impacto[$_SESSION[\"index2\"]];\n\n if (trim($imp) == \"\"){\n continue;\n }\n else {\n //Nothing should be done\n }\n if (!isset($_SESSION[\"verbos_selecionados\"])){\n $_SESSION[\"verbos_selecionados\"] = array();\n }\n else {\n //Nothing should be done\n }\n\n if (!isset($_SESSION[\"impact\"])) {\n $_SESSION[\"impact\"] = array();\n $_SESSION[\"finish_insert\"] = FALSE;\n }\n else {\n //Nothing should be done\n }\n while (!$_SESSION[\"finish_insert\"]) {\n \n if (!isset($_SESSION[\"exist\"])) {\n asort($relations);\n $_SESSION[\"lista\"] = $relations;\n $_SESSION[\"nome1\"] = $imp;\n $_SESSION[\"nome2\"] = $sujeito;\n $_SESSION[\"job\"] = \"exist\";\n ?>\n <SCRIPT language='javascript'>\n document.location = \"auxiliar_interface.php\";\n </SCRIPT>\n\n\n\n <?php\n exit();\n }\n else {\n //Nothing should be done\n }\n\n\n\n if ($_POST[\"existe\"] == \"FALSE\") {\n\n $name = strtolower($_POST[\"nome\"]);\n session_unregister(\"exist\");\n if ((count($_SESSION[\"verbos_selecionados\"]) != 0) && (array_search($name, $_SESSION[\"verbos_selecionados\"]) !== null)) {\n continue;\n }\n else {\n //Nothing should be done\n }\n $_SESSION[\"verbos_selecionados\"][] = $name;\n $i = array_search($name, $relations);\n if ($i === false) {\n $_SESSION[\"impact\"][] = (array_push($relations, $name) - 1);\n } \n else {\n $_SESSION[\"impact\"][] = $i;\n }\n } \n else if ($_POST[\"indice\"] != -1) {\n session_unregister(\"exist\");\n if ((count($_SESSION[\"verbos_selecionados\"]) != 0) && array_search($relations[$_POST[\"indice\"]], $_SESSION[\"verbos_selecionados\"]) !== false) {\n continue;\n }\n else {\n //Nothing should be done\n }\n $_SESSION[\"verbos_selecionados\"][] = $relations[$_POST[\"indice\"]];\n $_SESSION[\"impact\"][] = $_POST[\"indice\"];\n } \n else {\n $_SESSION[\"finish_insert\"] = TRUE;\n }\n }\n\n if (!isset($_SESSION[\"ind\"])) {\n $_SESSION[\"ind\"] = 0;\n }\n else {\n //Nothing should be done\n }\n\n $_SESSION[\"verbos_selecionados\"] = array();\n\n for (; $_SESSION[\"ind\"] < count($_SESSION[\"impact\"]); ++$_SESSION[\"ind\"]) {\n\n if (!isset($_SESSION[\"predicados_selecionados\"])){\n $_SESSION[\"predicados_selecionados\"] = array();\n }\n else {\n //Nothing should be done\n }\n\n $indice = $_SESSION[\"impact\"][$_SESSION[\"ind\"]];\n $_SESSION[\"finish_relation\"] = FALSE;\n \n while (!$_SESSION[\"finish_relation\"]) {\n \n if (!isset($_SESSION[\"insert_relation\"])) {\n \n asort($concepts);\n $_SESSION[\"lista\"] = $concepts;\n $_SESSION[\"nome1\"] = $relations[$indice];\n $_SESSION[\"nome2\"] = $sujeito->nome;\n $_SESSION[\"nome3\"] = $imp;\n $_SESSION[\"job\"] = \"insert_relation\";\n \n ?>\n <SCRIPT language='javascript'>\n document.location = \"auxiliar_interface.php\";\n </SCRIPT>\n <?php\n \n exit();\n } \n else if (isset($_SESSION[\"nome2\"])) {\n\n session_unregister(\"nome2\");\n session_unregister(\"nome3\");\n session_unregister(\"insert_relation\");\n\n\n if ($_POST[\"existe\"] == \"FALSE\") {\n \n $conceito = strtolower($_POST[\"nome\"]);\n\n if ((count($_SESSION[\"predicados_selecionados\"]) != 0) && (array_search($conceito, $_SESSION[\"predicados_selecionados\"]) !== null)) {\n continue;\n }\n else {\n //Nothing should be done\n }\n $_SESSION[\"predicados_selecionados\"][] = $conceito;\n\n if (existe_conceito($conceito, $_SESSION['lista_de_conceitos']) == -1) {\n \n if (existe_conceito($conceito, $lista_de_sujeito_e_objeto) == -1) {\n $nconc = new concept($conceito, \"\");\n $nconc->namespace = $_POST['namespace'];\n $_SESSION['lista_de_conceitos'][] = $nconc;\n }\n else {\n //Nothing should be done\n }\n }\n else {\n //Nothing should be done\n }\n\n $indiceRelacao = existe_relacao($_SESSION['nome1'], $_SESSION['conceito']->relacoes);\n \n if ($indiceRelacao != -1) {\n if (array_search($conceito, $_SESSION[\"conceito\"]->relacoes[$indiceRelacao]->predicados) === false){\n $_SESSION[\"conceito\"]->relacoes[$indiceRelacao]->predicados[] = $conceito;\n }\n else {\n //Nothing should be done\n }\n }\n else {\n $_SESSION[\"conceito\"]->relacoes[] = new relationshipBetweenConcepts($conceito, $_SESSION[\"nome1\"]);\n }\n } \n else if ($_POST[\"indice\"] != \"-1\") {\n \n $conceito = $concepts[$_POST[\"indice\"]]->nome;\n if ((count($_SESSION[\"predicados_selecionados\"]) != 0) && (array_search($conceito, $_SESSION[\"predicados_selecionados\"]) !== null)) {\n continue;\n }\n else {\n //Nothing should be done\n }\n\n $_SESSION[\"predicados_selecionados\"][] = $conceito;\n\n $indiceRelacao = existe_relacao($_SESSION['nome1'], $_SESSION['conceito']->relacoes);\n \n if ($indiceRelacao != -1) {\n \n if (array_search($conceito, $_SESSION[\"conceito\"]->relacoes[$indiceRelacao]->predicados) === false){\n $_SESSION[\"conceito\"]->relacoes[$indiceRelacao]->predicados[] = $conceito;\n }\n else {\n //Nothing should be done\n }\n }\n else {\n $_SESSION[\"conceito\"]->relacoes[] = new relationshipBetweenConcepts($conceito, $_SESSION[\"nome1\"]);\n }\n \n } \n else {\n $_SESSION[\"finish_relation\"] = TRUE;\n }\n }\n else {\n //Nothing should be done\n }\n }\n $_SESSION[\"predicados_selecionados\"] = array();\n }\n\n\n /* Unregister a global variable from the current session */\n session_unregister(\"exist\");\n session_unregister(\"impact\");\n session_unregister(\"ind\");\n session_unregister(\"insert_relation\");\n session_unregister(\"insert\");\n session_unregister(\"verbos_selecionados\");\n session_unregister(\"predicados_selecionados\");\n }\n\n $finish_disjoint = FALSE;\n \n while (!$finish_disjoint) {\n \n if (!isset($_SESSION[\"axiomas_selecionados\"])){\n $_SESSION[\"axiomas_selecionados\"] = array();\n }\n else {\n //Nothing should be done\n }\n\n if (!isset($_SESSION[\"disjoint\"])) {\n $_SESSION[\"lista\"] = $concepts;\n $_SESSION[\"nome1\"] = $_SESSION[\"conceito\"]->nome;\n $_SESSION[\"job\"] = \"disjoint\";\n ?>\n <SCRIPT language='javascript'>\n document.location = \"auxiliar_interface.php\";\n </SCRIPT>\n <?php\n exit();\n }\n else {\n //Nothing should be done\n }\n \n if ($_POST[\"existe\"] == \"TRUE\") {\n $axiom = $_SESSION[\"conceito\"]->nome . \" disjoint \" . strtolower($_POST[\"nome\"]);\n \n if (array_search($axiom, $axioms) === false) {\n $axioms[] = $axiom;\n $_SESSION[\"axiomas_selecionados\"][] = $axiom;\n }\n else {\n //Nothing should be done\n }\n \n session_unregister(\"disjoint\");\n } \n else {\n $finish_disjoint = TRUE;\n }\n }\n \n $_SESSION[\"axiomas_selecionados\"] = array(); \n $concepts[] = $_SESSION[\"conceito\"];\n asort($concepts);\n\n if (!verifica_consistencia()) {\n exit();\n }\n else {\n //Nothing should be done\n }\n\n session_unregister(\"insert\");\n session_unregister(\"disjoint\");\n session_unregister(\"exist\");\n session_unregister(\"insert_relation\");\n session_unregister(\"conceito\");\n $_SESSION[\"index2\"] = 0;\n }\n \n $_SESSION[\"index1\"] = 0;\n session_unregister(\"finish_insert\");\n session_unregister(\"finish_relation\");\n }", "title": "" }, { "docid": "86e014254a3980793bf33e7431e5351a", "score": "0.5183107", "text": "function crear_formulario($nombre_tabla,$registro){\r\n$base=\"colegio\";\r\n$tabla=$nombre_tabla;\r\n\r\n$conexion=mysql_connect (\"localhost\",\"root\",\"\");\r\n\r\nmysql_select_db ($base, $conexion);\r\n\r\n$resultado=mysql_query( \"SHOW FIELDS from $tabla\",$conexion);\r\n\r\n//$Z=mysql_num_cols($resultado);\r\n\r\n$contador = 0;\r\n\r\nwhile($v=mysql_fetch_array ($resultado)){\r\n\r\n$primaria = 0;\r\n\r\nforeach($v as $clave=>$valor) {\r\n\tif(!is_int($clave)){\r\n\t\t//echo $clave.\" - \".$valor.\"<br>\";\r\n\t\tif($clave == \"Key\" && $valor ==\"PRI\")\r\n\t\t\t$primaria = 1;\r\n\r\n\t\tif($clave == \"Field\")\r\n \t\t\t$nombre_campo = $valor;\r\n\r\n\t\tif($clave == \"Type\"){\r\n\t\t\tif(ereg(\"enum\", $valor)) {$tipo = \"enum\";$temp=$valor;}\r\n\t\t\tif(ereg(\"tinyint\", $valor)) $tipo = \"tinyint\";\r\n\t\t\tif(ereg(\"char\", $valor)) $tipo = \"char\";\r\n\t\t\tif(ereg(\"int\", $valor)) $tipo = \"int\";\r\n\t\t\tif(ereg(\"date\", $valor)) $tipo = \"date\";\r\n\t\t\t\r\n\t\t\tpreg_match_all(\"/\\((.*?)\\)/\",$valor, $salida, PREG_SET_ORDER);\r\n\r\n\t\t\t$tamano = $salida[0][1];\r\n\t\t}\r\n\t\t\r\n\t\tif($clave == \"Default\")\r\n\t\t\t$valor_defecto = $valor;\r\n\r\n\t\tif($clave == \"Null\"){\r\n\t\t\tif($valor != \"YES\")\r\n\t\t\t\t$nulo = \"(*)\";\r\n\t\t\telse\r\n\t\t\t\t$nulo = \"\";\r\n\t\t}\r\n\t\t\t\t\r\n \t}\r\n}\r\n\r\necho \"<tr>\";\r\n$lectura = \"\";\r\nif($tipo == \"enum\"){\r\n\techo \"<td id=\\\"listado2\\\" style=\\\"text-align:left;\\\">\".$nombre_campo.\"</td>\";\r\n\techo \"<td id=\\\"listado3\\\" style=\\\"text-align:left;\\\">\";valores_enum($temp,$registro[$contador],$nombre_campo);echo\"</td>\";\r\n}else{\r\n\techo \"<td id=\\\"listado2\\\" style=\\\"text-align:left;\\\">\".$nombre_campo.\"</td>\";\r\n\r\n \t$ventana_ancho = \"500px\";\r\n\r\n\t//Si el campo es clave primaria bloqueo el input\r\n\tif($primaria==1)\r\n\t\t$lectura = \"readonly\";\r\n\telse\r\n\t\t$lectura = \"\";\r\n\r\n\t//Averiguar la tabla a la que tengo que llamar si es una clave externa\r\n\tswitch($nombre_campo){\r\n\t\tcase \"id_curso\":$ntabla = \"cursos\";break;\r\n\t\tcase \"id_modulo\":$ntabla = \"modulos\";break;\r\n\t\tcase \"id_especialidad\":$ntabla = \"especialidades\";break;\r\n\t\tcase \"id_profesor\":$ntabla = \"profesores\";break;\r\n\t\tdefault: $ntabla = \"no_tabla\";\r\n\t}\r\n\r\n\t//Si el campo es clave externa de otra tabla llamamos a esa tabla\r\n\tif((substr($nombre_campo, 0, 3)==\"id_\") && $primaria==0){\r\n\t\t$llamar = \"onclick=\\\"window.open('datos.php?tabla=\".$ntabla.\"','_blank','scrollbars=1,width=\".$ventana_ancho.\",height=150px,top=100px,left=100px')\\\"> \".\"Haga clic en el campo para seleccionar los datos.\";\r\n\r\n\t\t$lectura = \"readonly\";\r\n\t}else{\r\n\t\t$llamar = \">\";\r\n\t}\r\n\r\n\t$caja = \"<input \".$lectura.\" type=\\\"text\\\" name=\\\"\".$nombre_campo.\"\\\" value=\\\"\".$registro[$contador].\"\\\" size=\\\"\".$tamano.\"\\\" maxlength=\\\"\".$tamano.\"\\\" \".$llamar.$nulo;\r\n\r\n\techo \"<td id=\\\"listado3\\\" style=\\\"text-align:left;\\\">\".$caja.\"</td>\";\r\n\r\n}\r\n\t$contador++;\r\n}\r\necho \"</tr>\";\r\n\r\necho \"<tr>\";\r\necho \"<td id=\\\"listado2\\\" colspan=\\\"2\\\" rowspan=\\\"1\\\">* El campo no se puede dejar vac&#237;o.</td>\";\r\necho \"</tr>\";\r\n\r\nmysql_close($conexion);\r\n\r\n}", "title": "" }, { "docid": "73c46fa1b91ff698b46b51ac281fb68c", "score": "0.51720375", "text": "function MTD_DB_LISTAR_TONOSMAS_DESCARGADOS()\n {\n global $vg_db_conexion,$vg_conf_filtro_web;\n $vlf_sql = \"SELECT t.id, t.nombre,a.nombre, t.autor, avg(wr.calificacion),count(wr.msisdn)\n FROM tonos as t, autores as a,web_tonos_ranking as wr\n where\n t.autor = a.id\n AND t.id = wr.tonos_id\n $vg_conf_filtro_web \n group by t.id, t.nombre,a.nombre\n order by avg(wr.calificacion) desc, count(wr.msisdn) desc\n limit 10 \";\n // FN_NET_LOGGER(\"Los mas Rankeados> SQL: $vlf_sql \");\n $vlf_arreglo_datos = FN_RUN_QUERY($vlf_sql, 6,$vg_db_conexion);\n return $vlf_arreglo_datos;\n }", "title": "" }, { "docid": "a3f815e4eca6ce644498064c331c6d53", "score": "0.51709586", "text": "function MTD_DB_LISTAR_TONOSMAS_COMPRADOS()\n {\n global $vg_db_conexion,$vg_conf_filtro_web;\n $vlf_sql = \"SELECT t.id, t.nombre,a.nombre,t.autor\n FROM tonos as t, autores as a, top10 as top\n where\n t.autor = a.id\n AND t.id = top.id\n $vg_conf_filtro_web \n limit 10 \";\n $vlf_arreglo_datos = FN_RUN_QUERY($vlf_sql, 4,$vg_db_conexion);\n return $vlf_arreglo_datos;\n }", "title": "" }, { "docid": "639f9d71fdb5591dae5d36f6d452d0db", "score": "0.517063", "text": "function descuentos()\n {\n $plazas = $this->financiamiento_model->all_plazas();\n require('views/financiamiento/descuento-promotor.php');\n }", "title": "" }, { "docid": "c96a02bf87df3a9a15c7c2386e4918ab", "score": "0.51676226", "text": "public function indexLibroNoValAction() {\n $em = $this->getDoctrine()->getManager();\n $query = 'SELECT l.*,a.nombre AS autor_nom,a.apellido ,c.* '\n . 'FROM libro l JOIN autor a ON a.id_autor=l.autor '\n . 'JOIN categoria c ON c.id_categoria=l.categoria '\n . 'WHERE validacion = 0 ORDER BY l.fech_public';\n $statement = $em->getConnection()->prepare($query);\n $statement->execute();\n $libros = $statement->fetchAll();\n\n return $this->render(\"BcBundle:Libro:indexNoValLibro.html.twig\", array(\n \"libros\" => $libros\n ));\n }", "title": "" }, { "docid": "8efc27d37c7f97949bc1a7f9563f4c17", "score": "0.51663995", "text": "protected function setupListOperation()\n {\n // dd('aq var'); \n $this->crud->setFromDb();\n $this->crud->addColumn([\n 'name' => 'competitiontype.name', // name of relationship method in the model\n 'type' => 'relationship_count', \n 'label' => 'Competition type name', // Table column heading\n // 'suffix' => ' competitionType', // to show \"123 tags\" instead of \"123\"\n ]);\n \n \n\n $this->crud->removeColumn('competition_type_id');\n\n }", "title": "" }, { "docid": "7fa4f5ff23bbbe4091c517754b5a21a7", "score": "0.5165134", "text": "function añadir_concepto_array($indice,$concepto,$fecha,$importe)\n{\n\t$datos= array(\"indice\"=>$indice,\"concepto\"=>$concepto,\"fecha\"=>$fecha,\"importe\"=>$importe);\n\t//El array que contiene los datos lo almacenamos en el array que contiene los conceptos\n\tarray_push($this->conceptos,$datos);\n\n}", "title": "" }, { "docid": "412167dd9c91c24b18a982557c1ed4ad", "score": "0.5164322", "text": "public function get_dependant_tables() {\n return ['staffStatus','salutation','staffRole'];\n }", "title": "" }, { "docid": "f573df779207d3f7864e42025c5021e1", "score": "0.51552063", "text": "function genera_tabla_comp_ins($proy_id){\n $proyecto = $this->model_proyecto->get_id_proyecto($proy_id); /// Datos del Proyecto\n $fase = $this->model_faseetapa->get_id_fase($proy_id); //// recupera datos de la tabla fase activa\n $componentes=$this->model_componente->componentes_id($fase[0]['id'],$proyecto[0]['tp_id']); /// Componentes\n $tabla = '';\n \n $cont = 0;\n foreach ($componentes AS $row){\n $monto=$this->model_modificacion->suma_monto_requerimientos_componente($row['com_id']);\n $cont++;\n $tabla .= '<tr>';\n $tabla .= '<td>' . $cont . '</td>';\n $tabla .= '<td align=center>\n <a href=\"#\" data-toggle=\"modal\" data-target=\"#modal_nuevo_ff\" class=\"btn btn-xs nuevo_ff\" title=\"NUEVO DE REQUERIMIENTO\" name=\"'.$row['com_id'].'\">\n <img src=\"'.base_url().'assets/ifinal/mod_money.png\" width=\"35\" height=\"35\"/>\n </a>\n </td>';\n $tabla .= '<td>' . $row['com_componente'] . '</td>';\n $tabla .= '<td>' . $row['com_ponderacion'] . '</td>';\n $tabla .= '<td>' .$monto[0]['monto_programado']. ' Bs.</td>';\n $tabla .= '</tr>';\n }\n return $tabla;\n }", "title": "" }, { "docid": "60eff29fd7739f38eb7bf44065ecabba", "score": "0.5152793", "text": "function getConcepto(){ return $this->concepto; }", "title": "" }, { "docid": "bba65fa229d9b72f31836902d6913965", "score": "0.5152118", "text": "public function vistaAlumnosController(){\n\t\t//TRAE TODOS LOS ALUMNOS\n\t\t$respuesta = Datos::vistaAlumnosModel(\"alumnos\");\n\n\t\t#El constructor foreach proporciona un modo sencillo de iterar sobre arrays. foreach funciona sólo sobre arrays y objetos, y emitirá un error al intentar usarlo con una variable de un tipo diferente de datos o una variable no inicializada.\n\n\t\t//CICLO PARA MOSTRAR E ITERAR TODOS LOS VALORES EN FILAS DE UNA TABLA\n\t\tforeach($respuesta as $row => $item){\n\t\techo'<tr>\n\t\t\t\t<td>'.$item[\"nombre\"].'</td>\n\t\t\t\t<td>'.$item[\"matricula\"].'</td>\n\t\t\t\t<td>'.$item[\"fecha\"].'</td>\n\t\t\t\t<td align=\"center\" ><a href=\"index.php?action=editar&id='.$item[\"id_alumno\"].'\"><button type=\"button\" class=\"btn btn-info\">Editar</button></a></td>\n\t\t\t\t<td align=\"center\" ><a href=\"index.php?action=usuarios&idBorrar='.$item[\"id_alumno\"].'\"><button type=\"button\" class=\"btn btn-danger\">Borrar</button></a></td>\n\t\t\t</tr>';\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "52970b5786f0ddd259e22d06b49a8150", "score": "0.5151949", "text": "function nivelarCasosEnTabla( $idterreno, $idcaso ) {\n\n\t$result = mysql_query(\"SELECT * FROM ce_costodeconsumo_\" . $idterreno . \"t\" );\n\t$fields_num = mysql_num_fields($result);\n\t$c = 'N' ;\n\n\tfor($i=0; $i<$fields_num; $i++)\n\t{\n\t\t$field = mysql_fetch_field($result);\n\n\n\t\tif( $field->name == (\"consumo\". $idcaso) ) {\n\n\t\t\t$c = 'S';\n\t\t\tbreak;\n\t\t}\n\t}\n\nif( $c == 'N' ) {\n\t\t$sql = \"ALTER TABLE ce_costodeconsumo_\" . $idterreno . \"t ADD consumo\" . $idcaso . \" FLOAT(14,3) NOT NULL\";\n\n\t\tmysql_query($sql);\n\t}\n\n}", "title": "" }, { "docid": "77560f20e4c904421463397ee5776ec8", "score": "0.5151164", "text": "function tablaDatos(){ \n\n $editar = $this->Imagenes($this->PrimaryKey,2,'vistaImprimir.php'); \n \n $seccion= $this->Imagenes($this->PrimaryKey,3);\n $equipos= $this->Imagenes($this->PrimaryKey,5);\n $sql = \"SELECT\n \tae.idautorcandidato AS ID,\n \ta.clientetercerizado AS TERCERO,\n \te.clientefinal,\n \tC.DOCUMENTO AS CEDULA,\n \tC.NOMBRES AS EVALUADO,\n \tCASE\n \tWHEN ae.estado='P' THEN 'PENDIENTE'\n \tWHEN ae.estado='A' THEN 'AUTORIZO'\n \tEND AS ESTADO,\n ae.FECHA AS FECHA, \n \".$editar.\"\n FROM\n \tautorizaciones a\n INNER JOIN autorizacion_evaluado ae ON ae.idautorizacion = a.idautorizacion\n INNER JOIN evaluado e ON e.id_candidato = ae.idcandidato\n INNER JOIN candidatos C ON C.id_candidatos = e.id_candidato\n INNER JOIN tipo_prueba t ON t.ID_PRUEBA = e.id_tipo_prueba \";\n \n // echo $sql;\n \n $datos = $this->Consulta($sql,1); \n if(count($datos)){\n //var_dump($datos);\n $_array_formu = array();\n $y=0;\n foreach($datos as $value){\n \n $datos[$y]['CEDULA']=$datos[$y]['CEDULA'].'<input type=\"hidden\" name=\"cedula'.$datos[$y]['ID'].'\" value=\"'.$datos[$y]['CEDULA'].'\" id=\"cedula'.$datos[$y]['ID'].'\"> ';\n $datos[$y]['ESTADO']=$datos[$y]['ESTADO'].'<input type=\"hidden\" name=\"estado'.$datos[$y]['ID'].'\" value=\"'.$datos[$y]['ESTADO'].'\" id=\"estado'.$datos[$y]['ID'].'\"> ';\n // $this->crearSelect('id_secciones'.$datos[$y]['ID'],'id_secciones'.$datos[$y]['ID'],$arrSecciones,false,false,false,'class=\"form-control\", onchange=\"traerCombo_equipo(this.value,'.$datos[$y]['ID'].',\\'combo_id_secciones'.$datos[$y]['ID'].'\\',\\'comboSeccion\\')\"');\n $y++;\n \n }\n \n //var_dump($datos); \n $_array_formu = $this->generateHead($datos);\t\t \n \n\t\t\t\n $this->CamposHead = ( isset($_array_formu[0]) && is_array($_array_formu[0]) )? $_array_formu[0]: array();\n \n $tablaHtml = '<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"panel panel-default\">\n <div class=\"panel-body recargaDatos\" style=\"page-break-after: always;\">\n <div class=\"table-responsive\">';\n $tablaHtml .='';\n \t\t$tablaHtml .= $this->print_table($_array_formu, 8, true, 'table table-striped table-bordered',\"id='tablaDatos'\");\n \t\t$tablaHtml .=' </div>\n </div>\n </div>\n </div>\n </div>\n ';\n }else{\n $tablaHtml = '<div class=\"col-md-8\">\n <div class=\"alert alert-info alert-dismissable\">\n <button class=\"close\" aria-hidden=\"true\" data-dismiss=\"alert\" type=\"button\">×</button>\n <strong>Atenci&oacute;n</strong>\n No se encontraron registros.\n </div>\n </div>';\n }\n \n if($this->_datos=='r') echo $tablaHtml;\n else return $tablaHtml;\n \n }", "title": "" }, { "docid": "9416e8c0f70def45c72b899cccacd7d6", "score": "0.5147424", "text": "public function definition()\n {\n $richiede_sanitario = $this->faker->boolean;\n if($richiede_sanitario == true){\n $numero_sanitari = $this->faker->randomNumber(1);\n } else {\n $numero_sanitari = 0;\n }\n\n $fornitori = Fornitore::select('soprannome')->get();\n $array_fornitori = array();\n foreach($fornitori as $fornitore){\n $array_fornitori[] = $fornitore->soprannome.' ';\n }\n\n $valute = Valuta::select('iso')->get();\n $array_valute = array();\n foreach($valute as $valuta){\n $array_valute[] = $valuta->iso.' ';\n }\n\n $rese = ResaFattura::select('iso')->get();\n $array_rese = array();\n foreach($rese as $resa){\n $array_rese[] = $resa->iso.' ';\n }\n\n $compagnie = Compagnia::select('nome')->get();\n $array_compagnie = array();\n foreach($compagnie as $compagnia){\n $array_compagnie[] = $compagnia->nome.' ';\n }\n\n $destinatari = Destinatario::select('soprannome')->get();\n $array_destinatari = array();\n foreach($destinatari as $destinatario){\n $array_destinatari[] = $destinatario->soprannome.' ';\n }\n\n $trasportatori = Trasportatore::select('soprannome')->get();\n $array_trasportatori = array();\n foreach($trasportatori as $trasportatore){\n $array_trasportatori[] = $trasportatore->soprannome.' ';\n }\n\n $consegne = Consegna::select('soprannome')->get();\n $array_consegne = array();\n foreach($consegne as $consegna){\n $array_consegne[] = $consegna->soprannome.' ';\n }\n\n $dogane = Dogana::select('soprannome')->get();\n $array_dogane = array();\n foreach($dogane as $dogana){\n $array_dogane[] = $dogana->soprannome.' ';\n }\n\n $tipicontainer = TipoContainer::select('tipo')->get();\n $array_containers = array();\n foreach($tipicontainer as $tipocontainer){\n $array_containers[] = $tipocontainer->tipo.' ' ;\n }\n $conse = $this->faker->randomElement($array_consegne);\n $tipo_container = $this->faker->randomElement($array_containers);\n $cubatura;\n $max_lordo;\n switch($tipo_container){\n case \"STANDARD 20′ navale \":\n $cubatura = '32';\n $max_lordo = 18270;\n break;\n case \"STANDARD 40′ navale \":\n $cubatura = '65';\n $max_lordo = 26740;\n break;\n case \"HIGH CUBE 40′ navale \":\n $cubatura = '76';\n $max_lordo = 26580;\n break;\n case \"OPEN TOP 20′ navale \":\n $cubatura = '31';\n $max_lordo = 18170;\n break;\n case \"OPEN TOP 40′ navale \":\n $cubatura = '64';\n $max_lordo = 26680;\n break;\n case \"REEFER 20′ navale \":\n $cubatura = '26';\n $max_lordo = 17090;\n break;\n case \"REEFER 40′ navale \":\n $cubatura = '54';\n $max_lordo = 25080;\n break;\n case \"FLAT RACK 20′ navale \":\n $cubatura = '32';\n $max_lordo = 17850;\n break;\n case \"FLAT RACK 40′ navale \":\n $cubatura = '65';\n $max_lordo = 21300;\n break;\n case \"FLAT RACK COLLAPSIBLE 20′ navale\":\n $cubatura = '0';\n $max_lordo = 17850;\n break;\n case \"FLAT RACK COLLAPSIBLE 40′ navale\":\n $cubatura = '0';\n $max_lordo = 21300;\n break;\n case \"Demi aereo \":\n $cubatura = '5';\n $max_lordo = 3000;\n break;\n case \"HMA stall aereo \":\n $cubatura = '18';\n $max_lordo = 3500;\n break;\n case \"LD-1 aereo \":\n $cubatura = '5';\n $max_lordo = 1588;\n break;\n case \"LD-11 aereo \":\n $cubatura = '7';\n $max_lordo = 3176;\n break;\n case \"LD-2 aereo \":\n $cubatura = '3';\n $max_lordo = 1225;\n break;\n case \"LD-26 aereo \":\n $cubatura = '13';\n $max_lordo = 6033;\n break;\n case \"LD-29 aereo \":\n $cubatura = '14';\n $max_lordo = 6033;\n break;\n case \"LD-3 aereo \":\n $cubatura = '4';\n $max_lordo = 3500;\n break;\n case \"LD-3 Reefer aereo \":\n $cubatura = '4';\n $max_lordo = 1588;\n break;\n case \"LD-39 aereo \":\n $cubatura = '16';\n $max_lordo = 5033;\n break;\n case \"LD-4 aereo \":\n $cubatura = '5';\n $max_lordo = 2449;\n break;\n case \"LD-6 aereo \":\n $cubatura = '9';\n $max_lordo = 3175;\n break;\n case \"LD-7 aereo \":\n $cubatura = '10';\n $max_lordo = 4626;\n break;\n case \"LD-7 with Angled Wings aereo \":\n $cubatura = '14';\n $max_lordo = 5000;\n break;\n case \"LD-7 with Folding Wings aereo \":\n $cubatura = '14';\n $max_lordo = 5000;\n break;\n case \"LD-8 aereo \":\n $cubatura = '7';\n $max_lordo = 2450;\n break;\n case \"LD-9 aereo \":\n $cubatura = '11';\n $max_lordo = 4600;\n break;\n case \"LD-9 Reefer aereo \":\n $cubatura = '10';\n $max_lordo = 4626;\n break;\n case \"M-1 aereo \":\n $cubatura = '18';\n $max_lordo = 6800;\n break;\n case \"M-1H aereo \":\n $cubatura = '21';\n $max_lordo = 6800;\n break;\n case \"M-2 aereo \":\n $cubatura = '34';\n $max_lordo = 11340;\n break;\n case \"M-6 aereo \":\n $cubatura = '34';\n $max_lordo = 11340;\n break;\n case 'M-6 (118\"H) aereo ':\n $cubatura = '40';\n $max_lordo = 11340;\n break;\n case \"M-6 Twin Car Rack aereo \":\n $cubatura = '0';\n $max_lordo = 8900;\n break;\n case \"MDP aereo \":\n $cubatura = '27';\n $max_lordo = 11300;\n break;\n case \"PLA Half Pallet aereo \":\n $cubatura = '7';\n $max_lordo = 3175;\n break;\n case \"PMC/P6P Pallet aereo \":\n $cubatura = '21';\n $max_lordo = 11300;\n break;\n case \"PNA Half Pallet aereo \":\n $cubatura = '5';\n $max_lordo = 3175;\n break;\n case \"Type A Pen aereo \":\n $cubatura = '16';\n $max_lordo = 3175;\n break;\n default :\n $cubatura = '0';\n $max_lordo = 100;\n break;\n }\n return [\n 'nr_fattura' => $this->faker->unique()->bothify('??########'),\n 'data_fattura' => $this->faker->date($format = 'Y-m-d', $max = '2021-12-31'),\n 'nome_fornitore' => $this->faker->randomElement($array_fornitori),\n 'valuta' => $this->faker->randomElement($array_valute),\n 'resa' => $this->faker->randomElement($array_rese),\n 'numero_pratica'=> $this->faker->unique()->bothify('I########'),\n 'compagnia_aeronavale' => $this->faker->randomElement($array_compagnie),\n 'data_arrivo_nave' => $this->faker->date($format = 'Y-m-d', $max = '2021-12-31'),\n 'nome_nave' => $this->faker->sentence(3),\n 'numero_obl' => $this->faker->unique()->bothify('???########'),\n 'container_nr' => $this->faker->unique()->bothify('???#####'),\n 'cartoni' => $this->faker->randomNumber(4),\n 'lordo_obl' => $this->faker->randomFloat($nbMaxDecimals = NULL, $min = 100, $max = $max_lordo),\n 'cubatura' => $cubatura,\n 'data_carico' => $this->faker->date($format = 'Y-m-d', $max = 'now'),\n 'destinatario_obl' => $this->faker->randomElement($array_destinatari),\n 'trasportatore' => $this->faker->randomElement($array_trasportatori),\n 'consegna' => $conse,\n 'data_pratica' => $this->faker->date($format = 'Y-m-d', $max = '2032-12-31'),\n 'totale_diritti' => $this->faker->randomFloat($nbMaxDecimals = NULL, $min = 100, $max = 28000),\n 'totale_iva' => $this->faker->randomFloat($nbMaxDecimals = NULL, $min = 100, $max = 28000),\n 'richiede_sanitari' => $richiede_sanitario,\n 'numero_sanitari' => $numero_sanitari,\n 'richiede_ce' => $this->faker->boolean,\n 'richiede_conformita' => $this->faker->boolean,\n 'richiede_cites' => $this->faker->boolean,\n 'dogana_t1' => $this->faker->randomElement($array_dogane),\n 'dogana_sdoganamento' => $this->faker->randomElement($array_dogane),\n 'magazzino' => $conse,\n 'tipo_container' => $tipo_container,\n 'sigillo' => $this->faker->unique()->bothify('???#####'),\n 'allegati' => 'B/L Fattura Distinta PKL Documento conformita Elenco sanitari'\n ];\n }", "title": "" }, { "docid": "ce4e0848ffead20b99f48b6ab43be48d", "score": "0.51472", "text": "function catalogo_titulos(){\n\t global $conn,$odbc;\n\n\t $this->llenar_combo(\"select cod_ttp as COD_TTP,desc_ttp as DESC_TTP from titulos order by desc_ttp\",\"COD_TTP\",\"DESC_TTP\",true);\n\t }", "title": "" }, { "docid": "f161caa782306811077723a69cdb9ea3", "score": "0.51398635", "text": "public function listadoRechazadosTabla() {\n\n\t\t$results = $this->datosRechazadosTabla();\n\n\t\treturn Datatables::of($results)\n\t\t\t->make(true);\n\t}", "title": "" }, { "docid": "8db8d1ac737b5c31dc5ce2cccc3fc70d", "score": "0.5134775", "text": "public function advogados() \n {\n /**\n * lembre-se a tabela que faz pivô com as duas tabelas deve estar na ordem alfabetica,\n * caso contrario deve ser especificada no return abaixo.\n */\n return $this->belongsToMany(Advogado::class/*, 'processo_advogado'*/);\n }", "title": "" }, { "docid": "5a29c9f34972765eb3c3d6e578d8aaf9", "score": "0.5133125", "text": "public static function vistaOSAtrTablaModel($tabla){\r\n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT num_orden, id_unidad_servicio, operador, captura, fecha_orden, kilometraje, \r\n\t\tservicio, tipo_servicio, servicio_tiempo, fecha_creacion, u.nombre_u, estado, avance_porcentaje, impreso\r\n\t\tFROM $tabla\r\n\t\tLEFT JOIN usuarios u ON id_usuario_creacion = u.id_usuario\r\n\t\tWHERE estado = 'TERMINADO' AND cast(fecha_termino as date) = DATE_FORMAT(now(),'Y-m-d')\r\n\tUNION ALL\r\n\t\tSELECT num_orden, id_unidad_servicio, operador, captura, fecha_orden, kilometraje, servicio, tipo_servicio,\r\n\t\tservicio_tiempo, fecha_creacion, u.nombre_u, estado, avance_porcentaje, impreso\r\n\t\tFROM $tabla\r\n\t\tLEFT JOIN usuarios u ON id_usuario_creacion = u.id_usuario\r\n\t\tWHERE estado <> 'TERMINADO'\r\n\t\tORDER BY estado, num_orden ASC\");\r\n\t\t$stmt->execute();\r\n\t\t#fetchAll(): Obtiene todas las filas de un conjunto de resultados asociado al objeto PDOStatement. \r\n\t\treturn $stmt->fetchAll();\r\n\t\t$stmt->close();\r\n\t}", "title": "" }, { "docid": "69e07547167ca30dc9cd93140497e505", "score": "0.51327914", "text": "public function herramientas() {\n /* Carga todos los datos del modelo herramientas */\n $h = Load::model(\"herramientas\")->find_all_by_sql(\"select * from herramientas\");\n /* Pasa los datos a la vista */\n $this->herramienta = $h;\n }", "title": "" }, { "docid": "94fb6939ec58887ea67a5c4d0b0686ef", "score": "0.5131698", "text": "public function verListaActivosTabla(){\n \n $encargos = DB::table('encargos')\n ->where('activo', 1)\n ->orderBy('id', 'DESC')\n ->get();\n \n foreach($encargos as $e){\n $e->fecha_inicia = date(\"d-m-Y\", strtotime($e->fecha_inicia));\n $e->fecha_finaliza = date(\"d-m-Y h:i A\", strtotime($e->fecha_finaliza));\n\n // buscar servicio asignado a este encargo\n $tengo = 0;\n $servicio = \"\";\n\n if($aa = EncargoAsignadoServicio::where('encargos_id', $e->id)->first()){\n $tengo = 1;\n $servicio = Servicios::where('id', $aa->servicios_id)->pluck('identificador')->first();\n }\n\n $e->tengo = $tengo;\n $e->servicio = $servicio;\n }\n \n return view('backend.paginas.encargos.tablas.tablaencargos', compact('encargos'));\n }", "title": "" }, { "docid": "840c11995225dccab0ee61394e360f8a", "score": "0.5129786", "text": "private function getQuirofanos() {\n $quirofanos = $this->Quirofano_m->consulta();\n if (!empty($quirofanos)) {\n $quirofanos = html_purify($quirofanos);\n $quirofanos = $this->tables->addCellValue($quirofanos,'accion','<i data-id-accion=\"modificar\" data-toggle=\"tooltip\" title=\"Modificar\" class=\"tip acciones fa fa-edit pointer fa-2x\"></i><i data-id-accion=\"eliminar\" data-toggle=\"tooltip\" title=\"Eliminar\" class=\"tip acciones fa fa-trash pointer fa-2x\"></i>');\n $quirofanos = $this->tables->setAttr($quirofanos,[\n 'tr' => ['data-id-quirofano'=>'idquirofano'],\n 'nombre' => ['class'=>'text-center'],\n 'accion' => ['class'=>'iconos-acciones iconos-2']\n ]); \n $this->tables->noAttr = ['idquirofano'];\n return $this->tables->generate($quirofanos,'tbodyTr');\n // $tr = '';\n // foreach ($quirofanos as $value) {\n // $tr .= \n // '<tr data-id-quirofano=\"'.$value['idquirofano'].'\">\n // <td class=\"text-center\">'.$value['nombre'].'</td>\n // <td class=\"iconos-acciones iconos-2\">\n // <i data-id-accion=\"modificar\" data-toggle=\"tooltip\" title=\"Modificar\" class=\"tip acciones fa fa-edit pointer fa-2x\"></i> \n // <i data-id-accion=\"eliminar\" data-toggle=\"tooltip\" title=\"Eliminar\" class=\"tip acciones fa fa-trash pointer fa-2x\"></i> \n // </td>\n // </tr>';\n // }\n // return $tr;\n } \n else {\n return '';\n }\n }", "title": "" } ]
8f8f61b361f8c291e65838ac47515dab
Create a new password controller instance.
[ { "docid": "163fa9fc91dcab000220466fa78e6207", "score": "0.0", "text": "public function __construct (\n ResetPassword $reset_password_instance\n ) {\n $this->reset_password_instance = $reset_password_instance;\n $this->user_config = config('packages.SidneyDobber.User.user');\n $this->emails_config = config('packages.SidneyDobber.User.emails');\n }", "title": "" } ]
[ { "docid": "be3d8722f7ac78feae40073320d025b9", "score": "0.6859762", "text": "protected function createForgotPasswordController()\r\n {\r\n file_put_contents(\r\n path('app/Controllers/Auth/ForgotPasswordController.php'),\r\n $this->compileForgotPasswordControllerTemp()\r\n );\r\n }", "title": "" }, { "docid": "1dfe8f8d8240419da7a36444c488ff5c", "score": "0.6632168", "text": "protected function createResetPasswordController()\r\n {\r\n file_put_contents(\r\n path('app/Controllers/Auth/ResetPasswordController.php'),\r\n $this->compileResetPasswordControllerTemp()\r\n );\r\n }", "title": "" }, { "docid": "0b66faaecec66cfdcab2e8144eedde9c", "score": "0.6097158", "text": "public function create()\n {\n // See register controller\n }", "title": "" }, { "docid": "ece691d92559c8f2397b402a34c03523", "score": "0.60861534", "text": "protected function createRegisterController()\r\n {\r\n file_put_contents(\r\n path('app/Controllers/Auth/RegisterController.php'),\r\n $this->compileRegisterControllerTemp()\r\n );\r\n }", "title": "" }, { "docid": "65f06a766e741e9a93e49ba87213630d", "score": "0.6033562", "text": "public function create()\n {\n return view('auth.change-password-user');\n }", "title": "" }, { "docid": "4ac88a3c0e8b29f3146504b74ff2955d", "score": "0.60218936", "text": "protected function txtPassword_Create() {\n\t\t\t$this->txtPassword = new QTextBox($this);\n\t\t\t$this->txtPassword->Name = QApplication::Translate('Password');\n\t\t\t$this->txtPassword->Text = $this->objPerson->Password;\n\t\t}", "title": "" }, { "docid": "ba7f119de8d773d85a1c6538bab37b89", "score": "0.59795916", "text": "public function create()\n {\n return view('credentials.create');\n }", "title": "" }, { "docid": "e764e6e99310cc69470cb81487b06f38", "score": "0.5974302", "text": "protected function createLoginController()\r\n {\r\n file_put_contents(\r\n path('app/Controllers/Auth/LoginController.php'),\r\n $this->compileLoginControllerTemp()\r\n );\r\n }", "title": "" }, { "docid": "e35e50c768a7bf01ccc60763be5e39d6", "score": "0.58777326", "text": "public function txtPassword_Create($strControlId = null) {\n\t\t\t$this->txtPassword = new QTextBox($this->objParentObject, $strControlId);\n\t\t\t$this->txtPassword->Name = QApplication::Translate('Password');\n\t\t\t$this->txtPassword->Text = $this->objUser->Password;\n\t\t\t$this->txtPassword->Required = true;\n\t\t\t$this->txtPassword->MaxLength = User::PasswordMaxLength;\n\t\t\treturn $this->txtPassword;\n\t\t}", "title": "" }, { "docid": "0e60dda384c2a0d94d38450410cd3eaa", "score": "0.5868604", "text": "public function create_new_password(){\r\n $reqs = new \\Required_Parameters(array(),array(\"user_id\"=>\\Types::Int,\"reset_pw_code\"=>\\Types::String,\"user_password\"=>\\Types::String,\"confirm_password\"=>\\Types::String));\r\n return $this->validate_output($reqs,false,null,array($this,\"create_new_password_callback\"),false);\r\n }", "title": "" }, { "docid": "519c31fb92d48cd56139b083a82741e7", "score": "0.58505285", "text": "public function testCreateNewAccountPasswordToShort()\n {\n $faker = Faker::create();\n $password = $faker->password;\n\n $this->visit('/register')\n ->type($faker->firstName, 'contact_firstname')\n ->type($faker->lastName, 'contact_name')\n ->type($faker->company, 'company_name')\n ->type('testsecuser', 'username')\n ->type($faker->email, 'email')\n ->type('q', 'secret')\n ->type('q', 'secret_confirmation')\n ->check('tos')\n ->press('Aanmelden')\n ->see('wachtwoord moet minimaal');\n }", "title": "" }, { "docid": "991a944358b2367b21e42695dfb74b0c", "score": "0.58342797", "text": "public function create()\n {\n $model = $_POST;\n\n if (isset($model)) {\n if (isset($model['password'])) {\n $model['password'] = password_hash($model['password'], PASSWORD_DEFAULT);\n }\n\n try {\n $this->repository->create($model);\n } catch (PDOException $e) {\n Logger::getInstance()->log($e->getMessage(), Logger::ERROR, $e);\n\n $this->redirectTo('problem');\n }\n\n $this->data(\"template\", \"successOperation\");\n $this->returnView(\"index\");\n }\n }", "title": "" }, { "docid": "9823449505a1837a014619cfb01bf05d", "score": "0.5778745", "text": "public static function getPasswordVO()\n {\n return new Password(self::PASSWORD_HASH, self::PASSWORD_SALT);\n }", "title": "" }, { "docid": "1b948deba08e9179a0f958a7b9e1ad9b", "score": "0.5763892", "text": "public function new_password_form() {\n $form_elements = array();\n $form_elements[] = $this->form_elements->set_attributes(\"password\");\n $form_elements[] = $this->form_elements->set_attributes(\"password\", [\"name\" => \"confirm\", \"id\" => \"confirm\", \"placeholder\" => \"Please confirm Your password\"]);\n $form_elements[] = $this->form_elements->set_attributes(\"submit\");\n $form = new Form($form_elements, './user-reset', \"newPassword-form\", array(\"password\", \"password\"));\n return $form->form_maker();\n }", "title": "" }, { "docid": "25f47250967c30d3105b1b4509b1f66e", "score": "0.5726581", "text": "public function create()\n {\n return view('admin.site-credentials.create');\n }", "title": "" }, { "docid": "4402fe35f38a99c00ca9d8c78bab1a07", "score": "0.5689682", "text": "public function Create()\r\n\t\t{\r\n\t\t\tparent::Create();\r\n\t\t\t\r\n\t\t\t$this->RegisterPropertyString(\"usr\", \"\");\r\n\t\t\t$this->RegisterPropertyString(\"pwd\", \"\");\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "8f9b8d76117793135749434cc2611acd", "score": "0.5688941", "text": "public function setPassword($password) {\n $this->controller_config['password']= $password;\n $this->invalidateControllers();\n return $this;\n }", "title": "" }, { "docid": "aed6d51587537b53137d47f8db719f17", "score": "0.5680323", "text": "public function createnewpasswordAction()\n {\n if ($this->_request->getParam('email') != '' && $this->_request->getParam('key') != '') \n {\n $form = new Application_Form_Createnewpassword();\n if($this->_request->isPost() && $form->isValid($_POST))\n {\n $users = new Application_Model_DbTable_Users();\n $result = $users->resetPasswordAddNew(\n $form->getValue('email'), \n $form->getValue('key'), \n $form->getValue('password')\n );\n if ($result)\n {\n $this->_helper->redirector('login','user');\n }\n else\n {\n $this->_helper->redirector('index','index');\n }\n }\n \n // set hidden values\n $form->getElement('key') ->setValue($this->_request->getParam('key'));\n $form->getElement('email')->setValue($this->_request->getParam('email'));\n $this->view->form = $form;\n }\n else\n {\n $this->_helper->redirector('index','index');\n }\n }", "title": "" }, { "docid": "d3a8455bf52c8ba4cb4b8fb498f6e8d6", "score": "0.5674593", "text": "public function create()\n {\n return $this->response->setMetaTitle('Forgot Password')\n ->layout('auth')\n ->view('password.email')\n ->output();\n }", "title": "" }, { "docid": "05594a769eaca919bb3d9ab5ed713a32", "score": "0.5662313", "text": "public function lblPassword_Create($strControlId = null) {\n\t\t\t$this->lblPassword = new QLabel($this->objParentObject, $strControlId);\n\t\t\t$this->lblPassword->Name = QApplication::Translate('Password');\n\t\t\t$this->lblPassword->Text = $this->objUser->Password;\n\t\t\t$this->lblPassword->Required = true;\n\t\t\treturn $this->lblPassword;\n\t\t}", "title": "" }, { "docid": "2d7d0764212f7abacdc86eceaa875eb3", "score": "0.56439596", "text": "public function password($label = null, Array $args = array())\n {\n return $this->Factory->make($label, 'Password', $args);\n }", "title": "" }, { "docid": "a2501f2d6f0a789e864a8347972099bd", "score": "0.5635374", "text": "public function createPdoInstance() {\n $this->password = mydecrypt($this->password);\n return parent::createPdoInstance();\n }", "title": "" }, { "docid": "0daf57d9730fee1cacc7bf1469772ab2", "score": "0.56337285", "text": "public static function make(string $name, string $dynamic, string $password, string $text = null): self;", "title": "" }, { "docid": "df2b1451b2b1ef06f53058a2f86658c1", "score": "0.56102115", "text": "public function initializeChangePasswordAction() : void {}", "title": "" }, { "docid": "529befe5b2f71aa1babebf719271e7a2", "score": "0.559508", "text": "public function createUserLoginAction()\n {\n $session = new Container('create_user');\n\n $form = new NewUserPassword();\n $form->get('name')->setValue($session->email);\n\n if ($this->getRequest()->isPost()) {\n $form->setData($this->getRequest()->getPost());\n if ($form->isValid()) {\n $session->password = $form->get('password')->getValue();\n return $this->redirect()->toRoute('access/confirm');\n } else {\n return new ViewModel(\n [\n 'data' => (object)$session->getArrayCopy(),\n 'form' => $form\n ]\n );\n }\n } else {\n return new ViewModel(\n [\n 'data' => (object)$session->getArrayCopy(),\n 'form' => $form\n ]\n );\n }\n }", "title": "" }, { "docid": "0b676ef75484f3fe2f478e78c8633b04", "score": "0.5577777", "text": "public function create(array $attributes)\n\t{\n\t\tif ( isset( $attributes[ 'password' ] ) && $this->hasher->needsRehash($attributes[ 'password' ]) )\n\t\t{\n\t\t\t$attributes[ 'password' ] = $this->hasher->make($attributes[ 'password' ]);\n\t\t}\n\n\t\t$attributes[ 'secret' ] = md5(uniqid('', true));\n\n\t\treturn parent::create($attributes);\n\t}", "title": "" }, { "docid": "8d3f2cab643163b2a7acfd1375bdc5df", "score": "0.554329", "text": "public function createPassword($name = null, $value = null, $attributes = null)\n\t{\n\t\t$attributes['type'] = 'password';\n\t\t$elem = $this->createInput($name, $value, $attributes);\n\t\treturn $elem;\n\t}", "title": "" }, { "docid": "8c2933a86d8e944ec926f84c97df9b4f", "score": "0.5542449", "text": "public function newPasswordAction(){\n $this->title = 'Create New Password';\n \n // use the withoutlogin layout\n $this->_helper->layout()->setLayout('withoutlogin');\n $form = new NewPasswordForm();\n $opsModel = new OperationUser();\n \n \n if($this->getRequest()->isPost()){\n if($form->isValid($this->getRequest()->getPost())){\n if (isset($this->session->username)){\n \n if($opsModel->newPassword($form->getValue('password'),$this->session->ops_id)) {\n // Send new password email\n $resArr = $opsModel->findById($this->session->ops_id);\n \n $detailArr = array(\n 'firstname'=>$resArr->firstname,\n 'lastname'=>$resArr->lastname,\n 'email'=>$resArr->email,\n 'password'=>$form->getValue('password'),\n 'username'=> $user->username,\n );\n \n $alert = new Alerts();\n $alert->sendUpdatePasswordmail($detailArr,CURRENT_MODULE); \n $this->_helper->FlashMessenger(\n array(\n 'msg-success' => 'Your password was successfully changed',\n )\n );\n unset($this->session->agent_id);\n unset($this->session->conf_code);\n unset($this->session->agent_code);\n// $this->_redirect('/profile/login');\n $this->_redirect($this->formatURL('/profile/login/'));\n }\n }\n $this->_helper->FlashMessenger(\n array(\n 'msg-error' => 'You are not authenticated to create new password',\n )\n );\n }\n }\n \n \n $this->view->form = $form;\n \n }", "title": "" }, { "docid": "b0300ee7def4ecfab2a9762fd775a4b1", "score": "0.5541971", "text": "function generatePassword()\n {\n $min_length = max($this->getDi()->config->get('pass_min_length', 8), 8);\n $max_length = min($this->getDi()->config->get('pass_max_length', 12), 14);\n $all_g = \"aeiyo\";\n $all_gn = $all_g . \"1234567890\";\n $all_s = \"bcdfghjkmnpqrstwxz\";\n /// let's go\n $pass = \"\";\n $length = rand($min_length, $max_length);\n for ($i = 0; $i < $length; $i++) {\n if ($i % 2)\n if ($i < $min_length)\n $pass .= $all_g[rand(0, strlen($all_g) - 1)];\n else\n $pass .= $all_gn[rand(0, strlen($all_gn) - 1)];\n else\n $pass .= $all_s[rand(0, strlen($all_s) - 1)];\n }\n $this->_passwordGenerated = true;\n $this->setPass($pass);\n return $this;\n }", "title": "" }, { "docid": "0d90c030b98b4c4a1329fb9030e18ea5", "score": "0.5512222", "text": "public function create()\n {\n URL::to('login');\n return view('register');\n }", "title": "" }, { "docid": "4c9dbd1f6a88a59dc07adda4656034c1", "score": "0.5496636", "text": "public function create()\n {\n $view = new View('gameCharacter/create');\n $view->title = 'Create character';\n $view->heading = 'Create character';\n $view->display();\n }", "title": "" }, { "docid": "7ff9aaa6e6d67b7a730bcedf8ebc45dd", "score": "0.54711396", "text": "public function create()\n {\n //return \"Hola LoginA\";\n }", "title": "" }, { "docid": "48be68f2d9bd5c305c8873ab5aff62d3", "score": "0.5469858", "text": "public function create()\n\t{\n\t\t//\n\n return view ('control.create');\n\t}", "title": "" }, { "docid": "995227932b289ec099febb15387a6bdb", "score": "0.5461849", "text": "public function actionCreate()\n {\n $model = new Logins();\n\n if ($model->load(Yii::$app->request->post())) {\n $model->password = sha1($model->password);\n $model->save();\n return $this->redirect(['view', 'idLogin' => $model->idLogin]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "f1570a2c4be62f2206d41543ae7fbff3", "score": "0.54494375", "text": "public function newPasswordAction(){\n $this->title = 'Create New Password';\n $m = new App\\Messaging\\MVC\\Axis\\Agent();\n \n $form = new NewPasswordForm();\n $agentModel = new AgentUser();\n // use the withoutlogin layout\n $this->_helper->layout()->setLayout('withoutlogin');\n \n if($this->getRequest()->isPost()){\n if($form->isValid($this->getRequest()->getPost())){\n if (isset($this->session->agent_id)){\n \n if($agentModel->newPassword($form->getValue('password'),$this->session->agent_id)) {\n // Send new password email\n $resArr = $agentModel->findById($this->session->agent_id);\n \n $detailArr = array(\n 'first_name'=>$resArr->first_name,\n 'last_name'=>$resArr->last_name,\n 'email'=>$resArr->email,\n 'password'=>$form->getValue('password'),\n //'agent_code'=> $this->session->agent_code,\n );\n \n $m->updatePasswordEmail($detailArr);\n \n $this->_helper->FlashMessenger(\n array(\n 'msg-success' => 'Your password was successfully changed',\n )\n );\n unset($this->session->agent_id);\n unset($this->session->conf_code);\n unset($this->session->email);\n// $this->_redirect('/profile/login');\n $this->_redirect($this->formatURL('/profile/login'));\n }\n }\n $this->_helper->FlashMessenger(\n array(\n 'msg-error' => 'You are not authenticated to create new password',\n )\n );\n }\n }\n \n \n $this->view->form = $form;\n \n }", "title": "" }, { "docid": "75bb4820d6ae125f5cd7618d92785e4d", "score": "0.54410994", "text": "public function index()\n {\n return view('password');\n }", "title": "" }, { "docid": "6fc237b08447cbc21e447ecff2b773b8", "score": "0.5435055", "text": "public function create()\n {\n $data = $this->request->getJson();\n\n // Validate before password is encrypted\n if($this->model->cleanRules()->validate($data)){\n // To avoid validation at the model save step\n $this->model->skipValidation(true);\n // convert stdClass to array\n $data = json_decode(json_encode($data), true);\n $user = new User();\n $user->fill($data);\n\n // Return primaryKey\n $insertID = $this->model->insert($user, true);\n if (! $insertID)\n {\n return $this->fail($this->model->errors());\n }\n else\n {\n $user->id = $insertID;\n }\n }else{\n return $this->fail($this->model->errors());\n }\n return $this->respondCreated($user, 'user created');\n }", "title": "" }, { "docid": "f0a21032c4138a62c99b2bba4ae58520", "score": "0.5429503", "text": "public function create()\n {\n\t return view('proyectos.create');\n }", "title": "" }, { "docid": "b152a3f26b0e612772c7d92b1e11fb93", "score": "0.5428664", "text": "public function create()\n {\n $this->cpAuthorize();\n }", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.54234445", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.54234445", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.54234445", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.54234445", "text": "public function create(){}", "title": "" }, { "docid": "d47af81874a84e089c89aeb7e5de76b4", "score": "0.54175687", "text": "public function create()\n {\n return view('auth.create');\n }", "title": "" }, { "docid": "351a763fb0f7fce2687235b46f7e7cff", "score": "0.5412309", "text": "public function create()\n {\n $this->authorize('create', RoleCredential::class);\n\n return view('role_credentials.create');\n }", "title": "" }, { "docid": "a93fa0924e99f7ca5a17de19bc61ef2c", "score": "0.540942", "text": "public function password_created() {\n\n $title = 'New Password Successfully Created - AfriHow';\n \n return view('pages.publisher.confirm-password-change')->with(['title'=> $title]);\n\n }", "title": "" }, { "docid": "2473a68f2259155daa1fff6cd726981f", "score": "0.54039705", "text": "public function run()\n {\n switch ($this->action) {\n case 'add':\n if ( !isset($_GET['password']) || empty($_GET['password']) ) {\n $this->_view->errors[] = \"I need a password to enter.\";\n }\n\n if ( !$this->_model->add($_GET['password'])) {\n $this->_view->errors[] = \"I already have that password.\";\n }\n\n if ( empty($this->_view->errors) ) {\n header('Location: ' . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));\n }\n\n print Views::header()\n . $this->_view->frmPassword()\n # Do we really want to render the list here?\n #. '<pre>' . htmlEntities($this->_view->render(), ENT_QUOTES, 'utf-8') . '</pre>' . PHP_EOL\n . Views::footer();\n return $this; // break; intentionally ommited. We don't need it if we're breaking from the function entirely...\n\n case 'raw':\n $this->_view->password_list = $this->_model->fetchDb();\n print $this->_view->render() . PHP_EOL;\n break;\n\n case 'list':\n default:\n # Only render the first 100 until we get pagination in place.\n $this->_view->password_list = array_slice($this->_model->fetchDb(), 0, 100);\n print Views::header()\n . $this->_view->frmPassword()\n . '<pre>' . htmlEntities($this->_view->render(), ENT_QUOTES, 'utf-8') . '</pre>' . PHP_EOL\n . Views::footer();\n }\n\n return $this;\n }", "title": "" }, { "docid": "8f180fe5638bfc14b899f6ab4b93dec2", "score": "0.5398935", "text": "public function create()\n\t{\n return View::make('pitches.create');\n\t}", "title": "" }, { "docid": "89d925edef45d461446d7de08413bdcc", "score": "0.5397583", "text": "public function create() {}", "title": "" }, { "docid": "89d925edef45d461446d7de08413bdcc", "score": "0.5397583", "text": "public function create() {}", "title": "" }, { "docid": "8a6d8fbe4b1dabd5acc23be2a94bed1b", "score": "0.5394104", "text": "public function actionCreate()\n {\n $name = $this->prompt('Name:', ['required' => true, 'validator' => function($input, &$error)\n {\n $length = strlen($input);\n \n if ($length < 3 || $length > 64)\n {\n $error = 'Name must be between 3 and 64 characters.';\n\n return false;\n }\n\n return true;\n }]);\n\n $email = $this->prompt('Email address:', ['required' => true, 'validator' => function($input, &$error)\n {\n $validator = new EmailValidator;\n\n if (!$validator->validate($input))\n {\n $error = 'Invalid email';\n\n return false;\n }\n\n if (($this->modelClass)::find()->where(['email' => $input])->exists())\n {\n $error = 'Email address already taken.';\n\n return false;\n }\n\n return true;\n }]);\n\n $password = $this->prompt('Password:', ['required' => true, 'validator' => function($input, &$error)\n {\n $length = strlen($input);\n\n if ($length < 6 || $length > 32)\n {\n $error = 'Password must be between 6 and 32 characters.';\n\n return false;\n }\n\n return true;\n }]);\n\n $admin = $this->confirm('Set as admin?');\n\n if (!$this->confirm('Are you sure you want to create this user?'))\n {\n Console::clearScreen();\n echo 'Aborted';\n\n return;\n }\n\n $user = new $this->modelClass;\n $user->name = $name;\n $user->email = $email;\n $user->password = $password;\n // $user->admin = $admin;\n\n Console::clearScreen();\n\n if ($user->save())\n echo 'User created.';\n else\n echo 'Validation errors.';\n }", "title": "" }, { "docid": "691b28381e37061b992bc5dc1ef6a36d", "score": "0.53886765", "text": "public function actionSetNewPass() {\n Yii::app()->user->SiteSessions;\n //Yii::app()->controller->layout = '//layouts/main';\n\n if (isset($_GET['key']) && $_GET['id']) {\n $model = new NewPassword();\n\n if (isset($_POST['NewPassword'])) {\n $model->attributes = $_POST['NewPassword'];\n if ($model->validate()) {\n if ($model->updatePassword($_GET['id'])) {\n /*\n * here we will add sending email module to inform user for password change..\n */\n $this->redirect($this->createUrl('/site/login'));\n }\n }\n }\n\n $this->render('//user/new_password', array('model' => $model));\n }\n }", "title": "" }, { "docid": "085b8b4d9a80ab9f0f60fbb87442c274", "score": "0.5381607", "text": "function createPassword(Request $request)\n\t{\t\t\n\t\t// Apply validator\n\t\t$validator = Validator::make($request->all(), [\n 'new_password' => 'required',\n 'confirm_password' => 'required|same:new_password'\n ]);\n\t\t\n\t\t// check if validator passes\n\t\tif($validator->passes())\n\t\t{\n\t\t\t#Set all values\n\t\t\t$password \t= isset($request->new_password) ? $request->new_password : \"\";\n\t\t\t$encId \t\t= explode('~', base64_decode(urldecode($request->encId)));\n\t\t\t$user_id \t= $encId[0]; // Defined as User ID\n\t\t\t\n\t\t\t$user = User::where('id', '=', $user_id)->count();\n\t\t\t\n\t\t\tif($user)\n\t\t\t{\n\t\t\t\t$result = User::changePassword($user_id, $password);\n\t\t\t\t\n\t\t\t\tif($result)\n\t\t\t\t{\n\t\t\t\t\t$response['success']= true; \t\t\t\t\n\t\t\t\t\treturn response()->json($response,200);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$response['success']= false;\n\t\t\t\t\t$response['msg'] \t= 'Password could not be created.'; \n\t\t\t\t\treturn response()->json($response,200);\n\t\t\t\t}\n\n\t\t\t}else{\n\t\t\t\t$response['success']= false;\n\t\t\t\t$response['msg'] \t= 'Authentication failed!'; \n\t\t\t\treturn response()->json($response,200);\t\t\t\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$response['success']= false;\n\t\t\t$response['msg'] \t= 'New password and confirm are not same.'; \n\t\t\treturn response()->json($response,200);\t\n\t\t}\n\t}", "title": "" }, { "docid": "a1f68c56bfbb711c33af5f3464d9fdd7", "score": "0.5379657", "text": "public function cngpassword()\n {\n return view('doctor.CngPassword');\n }", "title": "" }, { "docid": "c0c517ef5bcb5856fd2a2deeb4b02326", "score": "0.5370189", "text": "public function createController(): void\n {\n $this->checkDsToken();\n // Call the worker method\n $args = $this->getTemplateArgs();\n $results = $this->addActiveUser($args[\"envelope_args\"]);\n\n if ($results) {\n $this->clientService->showDoneTemplate(\n \"Create a new active eSignature user\",\n \"Create a new active eSignature user\",\n \"Results from eSignUserManagement:createUser method:\",\n json_encode(($results->__toString()))\n );\n }\n }", "title": "" }, { "docid": "26235318000cac5f8391ebfa2006c73e", "score": "0.53671974", "text": "public function __construct($password) {\n $this->password = $password;\n }", "title": "" }, { "docid": "a04bfe283f4b8cbaa2f8cd11d62ae478", "score": "0.53638774", "text": "public function actionCreate() {\n $model = new User;\n if (isset($_POST['User'])) {\n $model->attributes = $_POST['User'];\n $oldPassword = $model->password;\n if ($model->validate()) {\n $model->password = CPasswordHelper::hashPassword($model->password);\n if ($model->save(false)) {\n $login = new LoginForm();\n $login->username = $model->email;\n $login->password = $oldPassword;\n if ($login->login())\n $this->redirect(array('/list/index'));\n throw new CHttpException(500, \"Er ging iets mis :(\");\n }\n }\n $model->password = $oldPassword;\n }\n $this->render('create', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "4502744a7dae77c6dac5db1d5599df52", "score": "0.53624856", "text": "public function create()\n {\n return view('admin.' . self::$controlName . '.create', [\n 'guard_name_list' => Role::$guard_name_list,\n 'control_name' => self::$controlName,\n ]);\n }", "title": "" }, { "docid": "2ed47b14f99e51afda4aa22c79ebee51", "score": "0.53503513", "text": "public function newAction()\r\n\t{\r\n\t\t$form = new Model_Account();\r\n\t\t$this->view->form=$form;\r\n\t\t/*if($this->getRequest()->isPost()){\r\n\t\t\tif($form->isValid($_POST)){\r\n\t\t\t\t$data = $form->getValues();\r\n\t\t\t\tif($data['password'] != $data['confirmPassword']){\r\n\t\t\t\t\t$this->view->errorMessage = \"Password and confirm password don’t match.\";\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tunset($data['confirmPassword']);\r\n\t\t\t\t//$users->insert($data);\r\n\t\t\t\t$this->_redirect('account/new');\r\n\t\t\t}\r\n\t\t}*/\r\n\t}", "title": "" }, { "docid": "334ff5192fe45375d5f6db8bfc39d566", "score": "0.534925", "text": "public function create()\n {\n View::share('controller', 'sign-up');\n return view('users.create');\n }", "title": "" }, { "docid": "9b4817faa34d1d972771b8bc00d653f8", "score": "0.53420526", "text": "private function createUser()\n\t{\n\t\treturn Factory(User::class)->create([\n\t\t\t'password' => 'password'\n\t\t]);\n\t}", "title": "" }, { "docid": "e221633d04fc2f4f5f4d8a2362428823", "score": "0.53360766", "text": "abstract protected function controllerConstruct();", "title": "" }, { "docid": "318dfe0cae5ced32104e8f94ea68a266", "score": "0.5333416", "text": "public function index()\n {\n return view('account.password');\n }", "title": "" }, { "docid": "2320059dd95d7f46177863361cbd2d66", "score": "0.5331587", "text": "public function create()\r\n {\r\n $arr_columns = [];\r\n $arr_type = [];\r\n $arr_param = [];\r\n $placeholder = [];\r\n\r\n //create password\r\n $readable_password = randomString(10);\r\n $this->password = password_hash($readable_password, PASSWORD_DEFAULT);\r\n\r\n // create token\r\n $hashed_password = str_replace(' ', '-', $this->password); // Replaces all spaces with hyphens.\r\n $hashed_password = preg_replace('/[^A-Za-z0-9\\-]/', '', $hashed_password); // Removes special chars.\r\n $this->tokenhash = $hashed_password;\r\n\r\n //create a screen name\r\n $this->screen_name = 'user-'.randomString(7);\r\n $this->active = 1;\r\n\r\n if(isset($this->partner_id)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 'i',$this->partner_id, 'partner_id'); }\r\n if(isset($this->name)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->name, 'name'); }\r\n if(isset($this->email)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->email, 'email'); }\r\n if(isset($this->phone)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->phone, 'phone'); }\r\n if(isset($this->ext)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->ext, 'ext'); }\r\n if(isset($this->cell)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->cell, 'cell'); }\r\n \r\n if(isset($this->address)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->address, 'address'); }\r\n if(isset($this->address_2)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->address2, 'address2'); }\r\n if(isset($this->city)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->city, 'city'); }\r\n if(isset($this->state)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->state, 'state'); }\r\n if(isset($this->zip)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->zip, 'zip'); }\r\n if(isset($this->link)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->link, 'link'); }\r\n\r\n if(isset($this->active)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 'i',$this->active, 'active'); }\r\n if(isset($this->logo)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->logo, 'logo'); }\r\n if(isset($this->white_label)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->white_label, 'white_label'); }\r\n if(isset($this->account_type)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->account_type, 'account_type'); }\r\n if(isset($this->dont_send_email)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 'i',$this->dont_send_email, 'dont_send_email'); }\r\n if(isset($this->employee_count)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',$this->employee_count, 'employee_count'); }\r\n\r\n if(isset($this->created)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',date( \"Y-m-d H:i:s\"),'created' ); }\r\n if(isset($this->modified)) { $this->prepareForCreate($placeholder, $arr_columns, $arr_type, $arr_param, 's',date( \"Y-m-d H:i:s\"),'modified' ); }\r\n\r\n $sql_statement = \"INSERT INTO \".CLIENTS_TABLE.\" ( \".implode(',',$arr_columns).\") VALUES ( \".implode(',',$placeholder).\")\";\r\n\r\n $this->executeQuery( $sql_statement,implode('',$arr_type), $arr_param, true );\r\n \r\n $arrId = array('id' => $this->last_inserted_id);\r\n \r\n return $this->select($arrId);\r\n \r\n }", "title": "" }, { "docid": "586d07833162bcc0f3d9ef3beb9597eb", "score": "0.53181463", "text": "private function makeController()\r\n {\r\n\r\n new MakeController($this, $this->files);\r\n\r\n }", "title": "" }, { "docid": "7490a4ce1fc1e981e9b06662cb858dad", "score": "0.5313446", "text": "public function initializeShowChangePasswordAction() : void {}", "title": "" }, { "docid": "7f130572e81826ef017cfcdabf262248", "score": "0.5306091", "text": "protected function createComponentChangePasswordForm() {\n $form=new Form();\n $form->setTranslator($this->getTranslator());\n $userInput=$form->addHidden('user');\n $form->addPassword('oldPassword','Old password:')\n ->addRule(function(TextInput $oldPasswordInput)use($userInput){\n $user=$this->usersFacade->findUser($userInput->value);\n return (($user->password=='')||Passwords::verify($oldPasswordInput->value,$user->password));\n },'Invalid old password!');\n $newPassword=$form->addPassword('newPassword','New password:');\n $newPassword\n ->addRule(Form::MIN_LENGTH,'minimum password length is %d characters',5)\n ->setRequired('Input new password!');\n $form->addPassword('newPassword2','New password:')\n ->setRequired('Input new password!')\n ->addRule(Form::EQUAL,'New passwords do not match!',$newPassword);\n $form->addSubmit('save','Save new password')->onClick[]=function(SubmitButton $button){\n //password change\n $values=$button->getForm(true)->getValues();\n $user=$this->usersFacade->findUser($values->user);\n $user->password=Passwords::hash($values->newPassword);\n if ($this->usersFacade->saveUser($user)){\n $this->flashMessage('New password saved...');\n }\n //final redirect\n $values=$button->getForm(true)->getValues();\n $redirectParams=[];\n if ($this->user->id!=$values->user){\n $redirectParams['user']=$values->user;\n $this->redirect('details',$redirectParams);\n }else{\n $this->redirect('logout');\n }\n };\n $form->addSubmit('storno','storno')\n ->setValidationScope([])\n ->onClick[]=function(){\n $this->redirect('login');\n };\n return $form;\n }", "title": "" }, { "docid": "732049a3f2f48b25cae47715e7bcaa5f", "score": "0.52964693", "text": "public function actionCreate()\n {\n $model = new TailorUsers();\n\n if ($model->load(Yii::$app->request->post() )) {\n \t//echo \"<pre>\";print_r($model);exit;\n $model->status = 10;\n $model->user_type = 1;\n $model->password = 123456;\n $model->save(false);\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "fde296ef99a59aa2dae6c62d5da7d297", "score": "0.52923745", "text": "public function create()\n {\n return view('proyectos/create');\n }", "title": "" }, { "docid": "397efcb3c08ff3d5c03fe8697ec1b805", "score": "0.52917254", "text": "public function getPassword()\n {\n return $this->newInput('password', 'password')\n ->isRequired(true)\n ->setValidation('string:min', 6)\n ->setValidation('string:max', 20);\n ;\n }", "title": "" }, { "docid": "5b7b79112beaea1023887d918e2e5466", "score": "0.5288801", "text": "public function __construct()\n\t{\n\t\t$this->protect = new AuthController();\n\t}", "title": "" }, { "docid": "0488478c09cfa84a7ec14557da49c183", "score": "0.52875984", "text": "public function create()\n {}", "title": "" }, { "docid": "84659519886fa4e28d3a7d45d051b286", "score": "0.52843034", "text": "public function setPassword_post()\n {\n $this->response([\n \"status\" => true,\n \"message\" => \"new password set successfully.\"\n ]);\n }", "title": "" }, { "docid": "fc9c9115cba804e7db3b3d49bf5e7a27", "score": "0.52797", "text": "public function create(){\n\t\t//non-cli request\n\t}", "title": "" }, { "docid": "34fc470d9aea0bb8f7adb7574356793e", "score": "0.52703804", "text": "public function Create()\n {\n parent::Create();\n \n\t\t$this->RegisterPropertyString(\"Username\", \"\");\n $this->RegisterPropertyString(\"Password\", \"\");\n\t\t$this->RegisterPropertyString(\"APIKey\", \"\"); \t\t\n $this->RegisterPropertyInteger(\"Update\", 600);\n\t\t\n\t\tIPS_SetInfo($this->InstanceID, 'Request an API key at http://api.foobot.io/apidoc/index.html');\n\t\t\n\t\t// Create Update Script\n\t\t$ID = $this->RegisterScript(\"FoobotUpdate\", \"Foobot Update\", $this->CreateUpdateScript(), -8);\n\t\tIPS_SetScriptTimer($ID, $this->ReadPropertyString('Update'));\n\t\tIPS_SetHidden($ID, true);\n }", "title": "" }, { "docid": "b074f4299237a48e2fadcc1654c060b5", "score": "0.5270116", "text": "public function createAction()\r\n {\r\n $entity = new Usuarios();\r\n $request = $this->getRequest();\r\n $form = $this->createForm(new UsuarioRegistroNoCaptchaType(), $entity);\r\n\r\n $form->handleRequest($request);\r\n\r\n if ($form->isValid()) {\r\n\r\n $plaintextpassword = $form->getData()->getPassword();\r\n $quota_limit = $form->get('quota_limit')->getData();\r\n\r\n $webRegister = $this->get(\"WebUserService\");\r\n $storageServiceRegister = $this->get(\"StorageUserService\");\r\n//\r\n $webRegister->register($entity, $plaintextpassword);\r\n $storageServiceRegister->add($entity->getEmail(), $plaintextpassword, $quota_limit );\r\n\r\n return $this->render('CloudCloudspacesBundle::messageCompletePath.html.twig',array('message' => 'User created', 'path' => $this->generateUrl('admin_list_users')));\r\n }\r\n\r\n return $this->render('CloudAdminBundle:Default:register.html.twig', array(\r\n 'entity' => $entity,\r\n 'form' => $form->createView()\r\n ));\r\n }", "title": "" }, { "docid": "c8c8119198f307f0e176ec3f1575f75f", "score": "0.52646774", "text": "public function getPassword()\n {\n return new PasswordStrategy(\n Yii::$app->getRequest(),\n AccessTokenResource::find(),\n User::find()\n );\n }", "title": "" }, { "docid": "75c958a8c75f62c770362aaaefa9f24d", "score": "0.5262935", "text": "public function Create()\n {\n parent::Create();\n\n $this->RegisterPropertyString('Host', '');\n $this->RegisterPropertyString('Username', '');\n $this->RegisterPropertyString('Password', '');\n $this->RegisterPropertyString('Database', 'IPS');\n $this->RegisterPropertyString('Variables', json_encode(array()));\n\n $this->Vars = array();\n }", "title": "" }, { "docid": "a35c8ca9385929760980bdf7ca6c0608", "score": "0.5260434", "text": "public function create(): View\n {\n return view('Cocoa::devices.create');\n }", "title": "" }, { "docid": "3b7fef60084da96b1a06db5af2378827", "score": "0.5253187", "text": "public function create() {}", "title": "" }, { "docid": "b80b1831f1bc6bfdda60c48d3a15ed68", "score": "0.52510375", "text": "protected function getSecurity_Command_UserPasswordEncoderService()\n {\n include_once \\dirname(__DIR__, 4).'\\\\vendor\\\\symfony\\\\console\\\\Command\\\\Command.php';\n include_once \\dirname(__DIR__, 4).'\\\\vendor\\\\symfony\\\\security-bundle\\\\Command\\\\UserPasswordEncoderCommand.php';\n\n $this->privates['security.command.user_password_encoder'] = $instance = new \\Symfony\\Bundle\\SecurityBundle\\Command\\UserPasswordEncoderCommand(($this->privates['security.encoder_factory.generic'] ?? $this->getSecurity_EncoderFactory_GenericService()), [0 => 'App\\\\Entity\\\\Users']);\n\n $instance->setName('security:encode-password');\n\n return $instance;\n }", "title": "" }, { "docid": "065947b3cf5de815848bbcd627dbaf79", "score": "0.5248875", "text": "public function createAction() {\n if (!$this->request->isPost()) {\n $this->dispatcher->forward([\n 'controller' => \"usuario\",\n 'action' => 'index'\n ]);\n\n return;\n }\n\n $usuario = new Usuario();\n $usuario->Username = $this->request->getPost(\"userName\");\n \n $usuario->Estadoregistro = $this->request->getPost(\"estadoRegistro\");\n\n $clave = base64_encode('Vamos_por_mas_tfc');\n $pasword = password_hash($this->request->getPost(\"password\"),PASSWORD_BCRYPT, array(\"cost\" => 12, \"salt\" => $clave));\n\n $usuario->Password = $pasword;\n\n if (!$usuario->save()) {\n foreach ($usuario->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n $this->dispatcher->forward([\n 'controller' => \"usuario\",\n 'action' => 'new'\n ]);\n\n return;\n }\n\n $this->flash->success(\"usuario was created successfully\");\n\n $this->dispatcher->forward([\n 'controller' => \"usuario\",\n 'action' => 'index'\n ]);\n }", "title": "" }, { "docid": "a7af95812586e8fe7f606fe4fb7e9d78", "score": "0.5248323", "text": "public function create() {\n }", "title": "" }, { "docid": "a7af95812586e8fe7f606fe4fb7e9d78", "score": "0.5248323", "text": "public function create() {\n }", "title": "" }, { "docid": "762f1bd1ac133ca8e0065686640894f2", "score": "0.5246932", "text": "public static function password( array $attrs = null )\n {\n return new Input( self::TYPE_PASSWORD, $attrs );\n }", "title": "" }, { "docid": "7a3768dd7d8bbdb59d29e8dd6ec14033", "score": "0.5246524", "text": "public function password()\n {\n return 'password';\n }", "title": "" }, { "docid": "39e347b4b3126ddafabdba8d90a0b4af", "score": "0.52423036", "text": "public function __construct(array $config = array())\n {\n $this->password = $this->getPassword($config);\n }", "title": "" }, { "docid": "9290b83ff0849bba94aaecb845e70e9b", "score": "0.524181", "text": "public function create()\n {\n if (!$this->auth->guest()) {\n redirect(base_url('dashboard'));\n }\n\n $this->load->view('auth/register');\n }", "title": "" }, { "docid": "f50de35ffe96a3e15331ae276aa4cb0c", "score": "0.52416736", "text": "function create_password($name, $label, $attributes = array())\r\n {\r\n if (! array_key_exists('size', $attributes))\r\n {\r\n $attributes['size'] = 50;\r\n }\r\n $element = $this->createElement('password', $name, $label, $attributes);\r\n return $element;\r\n }", "title": "" }, { "docid": "71844a1d3cfc2cb134441ce2e0e5c888", "score": "0.52409005", "text": "public function create() {\n \n }", "title": "" }, { "docid": "bb2b9cdf16e578c97ace68038bc02047", "score": "0.52396476", "text": "public function create($params)\n {\n $this->isAdmin()->doAbort();\n\n if (!isset($params['password']))\n $params['password'] = bcrypt('password');\n else\n $params['password'] = bcrypt($params['password']);\n\n $item = $this->model->create($params);\n return $item;\n }", "title": "" }, { "docid": "9078992e89b7bb474dff25ce94989df2", "score": "0.52298015", "text": "public static function create () {}", "title": "" }, { "docid": "1c96ec4fe3aa6f6b749f42201c1ce965", "score": "0.5229149", "text": "protected function broker(): PasswordBroker\n {\n return Password::broker(config('fortify.passwords'));\n }", "title": "" }, { "docid": "dfd7bf24d4efb1bd49afd02774f25865", "score": "0.522564", "text": "public function create()\n {\n\t\treturn view('createuser');\n }", "title": "" }, { "docid": "8fc472ca59d683f1b71ce35c8d9cd840", "score": "0.52189577", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $this->option('resource') ? $modelName : null,\n ]);\n }", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.52118075", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.52118075", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.52118075", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.52118075", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.52118075", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.52118075", "text": "public function create();", "title": "" } ]
2ac94c9624dbb9db9926d2212152feba
Decides on the subject line. If template is a string then it is easy to match it. Failure emails use an array of templates, so we do it based on whether we have a bus reg entity
[ { "docid": "03203a10f63cd64138693c96d798abc2", "score": "0.6327496", "text": "private function getSubject()\n {\n $subject = 'email.ebsr-failed-no-bus-reg.subject';\n\n if (!is_array($this->template)) {\n $subject = 'email.' . $this->template . '.subject';\n } elseif ($this->regNo) {\n $subject = 'email.ebsr-failed.subject';\n }\n\n return $subject;\n }", "title": "" } ]
[ { "docid": "6228304adc45ea11c9782fec231b50ca", "score": "0.6244902", "text": "protected function buildEmailFromTemplate($fields,$template,$subject)\r\n {\r\n \r\n $body =file_get_contents(\"http://vps112595.ovh.net\".$template);\r\n foreach ($fields as $name => $content) {\r\n $body = preg_replace(\"~{\".$name.\"}~i\", $content, $body);\r\n }\r\n \r\n /*foreach ($fields as $name => $content) {\r\n $lines[] = $name . ' : ' . $content;\r\n }*/\r\n return $body;\r\n }", "title": "" }, { "docid": "f3aa1d772d240b697b2d36de93ce2941", "score": "0.55391866", "text": "public function email_template_setting() {\r\n\t\t\t$email_template = get_option( 'cp_failure_email_template' );\r\n\t\t\t$email_template_sbj = get_option( 'cp_failure_email_subject' );\r\n\r\n\t\t\tif ( isset( $email_template_sbj ) && '' !== $email_template_sbj ) {\r\n\t\t\t\t$subject = $email_template_sbj;\r\n\t\t\t} else {\r\n\t\t\t\t/* translators: %s Product name */\r\n\t\t\t\t$subject = sprintf( __( 'Important Notification! - [SITE_NAME] - %s [MAILER_SERVICE_NAME] configuration error', 'convertpro-addon' ), CPRO_BRANDING_NAME );\r\n\t\t\t}\r\n\r\n\t\t\tif ( isset( $email_template ) && '' !== $email_template ) {\r\n\t\t\t\t$template = $email_template;\r\n\t\t\t} else {\r\n\t\t\t\t$template = 'The design <strong>[DESIGN_NAME]</strong> integrated with <strong>[MAILER_SERVICE_NAME]</strong> is not working! The following error occured when a user tried to subscribe - \\n\\n[ERROR_MESSAGE]\\n\\nPlease check <a href=\"[DESIGN_LINK]\" target=\"_blank\" rel=\"noopener\">configuration</a> settings ASAP.\\n\\n ----- \\n\\n The details of the subscriber are given below.\\n\\n [FORM_SUBMISSION_DATA] \\n\\n ----- \\n\\n [ [SITE_NAME] - [SITE_URL] ]';\r\n\t\t\t\t$template = str_replace( '\\n', \"\\n\", $template );\r\n\t\t\t}\r\n\r\n\t\t\tob_start();\r\n\t\t\t?>\r\n\t\t\t<h3 class=\"cp-gen-set-title cp-error-services-title\"><?php esc_html_e( 'Error Notification', 'convertpro-addon' ); ?></h3>\r\n\t\t\t<p>\r\n\t\t\t<?php\r\n\t\t\tesc_html_e( 'This is an email that will be sent to you every time a user subscribes through a form and some error is encountered. You can customize the email subject and body in the fields below. ', 'convertpro-addon' );\r\n\t\t\t?>\r\n\t\t\t<strong>Note:</strong>\r\n\t\t\t<?php\r\n\t\t\tesc_html_e( 'This is applicable when you integrate with some mailer service.', 'convertpro-addon' );\r\n\t\t\t?>\r\n\t\t\t</p>\r\n\t\t\t<table class=\"cp-postbox-table form-table\">\r\n\t\t\t\t<tbody>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<th scope=\"row\">\r\n\t\t\t\t\t\t\t<label for=\"option-admin-menu-subject-page\"><?php esc_html_e( 'Template Subject', 'convertpro-addon' ); ?></label>\r\n\t\t\t\t\t\t</th>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<input type=\"text\" id=\"cp_failure_email_subject\" name=\"cp_failure_email_subject\" value=\"<?php echo esc_html( stripslashes( $subject ) ); ?>\" />\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<th scope=\"row\">\r\n\t\t\t\t\t\t\t<label for=\"option-admin-menu-template-page\"><?php esc_html_e( 'Template', 'convertpro-addon' ); ?></label>\r\n\t\t\t\t\t\t</th>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<textarea id=\"cp_failure_email_template\" name=\"cp_failure_email_template\" rows=\"10\" cols=\"50\" ><?php echo esc_textarea( ( stripslashes( $template ) ) ); ?></textarea>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</tbody>\r\n\t\t\t</table>\r\n\t\t\t<?php\r\n\t\t\techo ob_get_clean(); //PHPCS:ignore WordPress.Security.EscapeOutput.OutputNotEscaped\r\n\t\t}", "title": "" }, { "docid": "421d8e691703953d361155f8a55877c5", "score": "0.55126804", "text": "function xMailTxt($_Email, $_Subject, $_TemplateName, $_AssignArray = array(), $html = false){\r\n\t\r\n\tif(!$_Email)return 0;\r\n\t$mailSmarty = new ViewSC();\r\n\tforeach ($_AssignArray as $_var=>$_val){\r\n\t\t\r\n\t\t$mailSmarty->assign($_var, $_val);\r\n\t}\r\n\t$_t = $mailSmarty->fetch('email/'.$_TemplateName);\r\n\tss_mail($_Email, $_Subject, $_t, true);\r\n}", "title": "" }, { "docid": "2be0a24a2d8e65f647831f2843d5a7b6", "score": "0.5473359", "text": "function send_email_pre($to_email, $template_code, $search_text = array(), $replace_text = array(), $subject = '', $name = '', $email = '', $cc = '', $bcc = '') {\n $sql = \"SELECT from_name, from_email, subject, email_body FROM \" . EMAIL_TEMPLATE_SETTING . \" WHERE template_code = '\" . $template_code . \"'\"; //echo $sql;\n\n $recordSet = $this->obj->db->query($sql);\n $rs = false;\n if ($recordSet->num_rows() > 0) {\n $rs = array();\n $isEscapeArr = array('email_body');\n foreach ($recordSet->result_array() as $row) {\n foreach ($row as $key => $val) {\n if (!in_array($key, $isEscapeArr)) {\n $recordSet->fields[$key] = outputEscapeString($val);\n } else {\n $recordSet->fields[$key] = outputEscapeString($val, \"TEXTAREA\");\n }\n }\n $rs = $recordSet->fields;\n }\n if (count($search_text) > 0) {\n $message = str_replace($search_text, $replace_text, $rs['email_body']);\n } else {\n $message = $rs['email_body'];\n }\n $from_email = $rs['from_email'];\n $from_name = $rs['from_name'];\n $this->obj->email->from($from_email, $from_name);\n $this->obj->email->to($to_email);\n if ($cc) {\n $this->obj->email->cc($cc);\n }\n if ($bcc) {\n $this->obj->email->bcc($bcc);\n }\n $this->obj->email->set_mailtype('html');\n if ($subject != '')\n $rs['subject'] = $subject;\n $this->obj->email->subject($rs['subject']);\n $path = front_base_url();\n $footer = nl2br(GLOBAL_EMAIL_SIGNATURE);\n $emailBody = $this->emailTemplate($message, $footer, $path);\n $this->obj->email->message($emailBody);\n $var = $this->obj->email->send();\n \n \n \n return true;\n }\n else {\n return false;\n }\n exit;\n }", "title": "" }, { "docid": "45447289b4f79a07710fd28743ae03f7", "score": "0.54408115", "text": "public function testMessageSubjectFormatting()\n {\n $messageTemplate = new \\Swift_Message();\n $messageTemplate->setSubject('Alert: %level_name% %message%');\n $receivedMessage = null;\n\n $this->mailer->expects($this->once())\n ->method('send')\n ->with($this->callback(function ($value) use (&$receivedMessage) {\n $receivedMessage = $value;\n return true;\n }));\n\n $handler = new SwiftMailerHandler($this->mailer, $messageTemplate);\n\n $records = array(\n $this->getRecord(Logger::EMERGENCY),\n );\n $handler->handleBatch($records);\n\n $this->assertEquals('Alert: EMERGENCY test', $receivedMessage->getSubject());\n }", "title": "" }, { "docid": "c80c7cf877a5330115058ae98d835f06", "score": "0.5409609", "text": "function tpl_email($email, $subject = null) {\n\treturn preg_replace_callback(\n\t\t'/[\\w\\-\\+\\._]+@[\\w\\-\\.]+/', \n\t\tarray(new EmailReplaceFunctor($subject), 'replace'), \n\t\tsynd_htmlspecialchars($email));\n}", "title": "" }, { "docid": "183c62c33cd5ee099695d93ee9f46bc7", "score": "0.5407046", "text": "function _getTemplateEmail( $emailTemplate )\r\n\t{\r\n\t\t$message \t= file_get_contents( $emailTemplate );\r\n\t\treturn $message;\r\n\t}", "title": "" }, { "docid": "590896727065192e54b846038516180f", "score": "0.538477", "text": "public function setSubject()\n {\n if($this->template != false)\n {\n $this->subject = $this->template['subject'];\n }\n else\n {\n $this->subject = $this->getDefaultSubject();\n }\n }", "title": "" }, { "docid": "c1f43dba1cd49d761a34625c3d4b92b0", "score": "0.53770196", "text": "function send_template_mail ($template_slug, $to, $args = array()) {\n\n $template = get_page_by_path($template_slug, OBJECT, 'post');\n $template_id = get_the_subtitle($template);\n\n if (!$template || !$template_id) {\n error_log('Email template not found: ' . $template_slug);\n return false;\n }\n\n\t$headers = new SendGrid\\Email();\n $headers->setTemplateId($template_id);\n\n\tforeach ($args as $key => $value) {\n\t\t$headers->addSubstitution('[%' . $key . '%]', array($value));\n }\n\n $result = wp_mail($to, '', '', $headers);\n\n\tif ($result) {\n\t\terror_log('[Bingo] Template email \"' . $template_slug . '\" sent to ' . $to . ' ' . json_encode($args));\n\t} else {\n\t\terror_log('Email sent fail, to: ' . $to . ', header was: ' . json_encode($headers, JSON_UNESCAPED_UNICODE));\n }\n\n\treturn $result;\n}", "title": "" }, { "docid": "17c5d76002e997ef8451983fd27d4e48", "score": "0.53533155", "text": "function send_email($to_email,$template_code,$search_text=array(),$replace_text=array(),$subject='',$name='',$email='')\n {\n \t$sql = \"SELECT from_name, from_email, subject, email_body FROM \".EMAIL_TEMPLATE_SETTING.\" WHERE template_code = '\".$template_code.\"'\" ; //echo $sql;\n \n \t$recordSet = $this->obj->db->query($sql);\n \n \t$rs = false;\n \tif ($recordSet->num_rows() > 0)\n \t{\n \t\t$rs = array();\n \t\t$isEscapeArr = array('email_body');\n \t\tforeach ($recordSet->result_array() as $row)\n \t\t{\n \t\t\tforeach($row as $key=>$val){\n \t\t\t\tif(!in_array($key,$isEscapeArr)){\n \t\t\t\t\t$recordSet->fields[$key] = outputEscapeString($val);\n \t\t\t\t}else{\n \t\t\t\t\t$recordSet->fields[$key] = outputEscapeString($val,\"TEXTAREA\");\n \t\t\t\t}\n \t\t\t}\n \t\t\t$rs = $recordSet->fields;\n \t\t}\n \t\tif(count($search_text)>0){\n \t\t\t$message = str_replace($search_text,$replace_text,$rs['email_body']);\n \t\t}else{\n \t\t\t$message = $rs['email_body'];\n \t\t}\n \n \t\t$from_email\t=$rs['from_email'];\n \t\t$from_name\t=$rs['from_name'];\n \t\t\n \t\t$path \t\t= front_base_url();\n \t\t$footer\t \t= nl2br(GLOBAL_EMAIL_SIGNATURE);\n \t\t$emailBody = $this->emailTemplate($message,$footer,$path);\n \t\t\n \t\t/*$this->obj->email->from($from_email,$from_name);\n \t\t$this->obj->email->to($to_email);\n \t\t$this->obj->email->set_mailtype('html');\n \t\t$this->obj->email->subject($rs['subject']);\n \t\t$this->obj->email->message($emailBody);\n \t\t$this->obj->email->send();*/\n\t\t\t\n\t\t\t$header = \"MIME-Version: 1.0 \\r\\n\"; \n\t\t\t$header .= \"From: rocket < [email protected] >\".\"\\r\\n\";\n\t\t\t$header .= \"Reply-To: rocket < [email protected] >\".\"\\r\\n\";\n\t\t\t$header .= \"Return-Path: rocket < [email protected] >\".\"\\r\\n\";\n\t\t\t$header .= \"Content-type: text/html;charset=utf-8 \\r\\n\";\n\t\t\t$header .= \"X-Priority: 3\\r\\n\";\n\t\t\t$header .= \"X-Mailer: smail-PHP \".phpversion().\"\\r\\n\";\n \t\t$sendmail = mail($to_email,$rs['subject'],$emailBody,$header,'[email protected]');\n \t\t$this->addEmailLog($to_email,$rs['subject'],$emailBody);\n \t\t\n \t\treturn true;\n \t}\n \telse\n \t{\n \t\treturn false;\n \t}\n \t\n }", "title": "" }, { "docid": "a44cfed0800989529e1d44905a8df77a", "score": "0.5345508", "text": "public function sendEmail($template, array $params = []);", "title": "" }, { "docid": "1195c5fc310491b2e326d6755e0d14e9", "score": "0.5343658", "text": "private function parse_subject() {\n\t foreach($this->graph->resourcesMatching(NS::expand(\"rr:subject\")) as $key => $TripleMap)\n\t {\n \t\t//echo \"rr:subject \".$TripleMap.\"\\n\";\n\t $tmp = array_search($TripleMap, $this->mapping);\n\t if(!$tmp)\n\t {\n\t $this->mapping[] = $TripleMap;\n\t }\n\t }\n\t}", "title": "" }, { "docid": "4a7119384bb4b483dbec12f456b6eb14", "score": "0.53087777", "text": "public function mailTemplates() {\n $t = array(\n 'completed' => 'order-completed.txt',\n 'completed-wm' => 'order-completed-webmaster.txt',\n 'completed-dl' => 'order-completed-dl.txt',\n 'completed-wm-dl' => 'order-completed-dl-webmaster.txt',\n 'pending' => 'order-pending.txt',\n 'pending-wm' => 'order-pending-webmaster.txt',\n 'refunded' => 'order-refunded.txt',\n 'cancelled' => 'order-cancelled.txt',\n 'completed-wish' => 'order-completed-wish.txt',\n 'completed-wish-dl' => 'order-completed-wish-dl.txt',\n 'completed-wish-recipient' => 'order-completed-wish-recipient.txt',\n 'completed-wish-recipient-dl' => 'order-completed-wish-recipient-dl.txt'\n );\n return $t;\n }", "title": "" }, { "docid": "4a7119384bb4b483dbec12f456b6eb14", "score": "0.53087777", "text": "public function mailTemplates() {\n $t = array(\n 'completed' => 'order-completed.txt',\n 'completed-wm' => 'order-completed-webmaster.txt',\n 'completed-dl' => 'order-completed-dl.txt',\n 'completed-wm-dl' => 'order-completed-dl-webmaster.txt',\n 'pending' => 'order-pending.txt',\n 'pending-wm' => 'order-pending-webmaster.txt',\n 'refunded' => 'order-refunded.txt',\n 'cancelled' => 'order-cancelled.txt',\n 'completed-wish' => 'order-completed-wish.txt',\n 'completed-wish-dl' => 'order-completed-wish-dl.txt',\n 'completed-wish-recipient' => 'order-completed-wish-recipient.txt',\n 'completed-wish-recipient-dl' => 'order-completed-wish-recipient-dl.txt'\n );\n return $t;\n }", "title": "" }, { "docid": "947f8322fcf9ca3368fe6023ac6ec733", "score": "0.5291113", "text": "function handler_email_template($handler, $email)\n\t\t{\n\t\t\treturn handler_templates_dir($handler).\"email/$email.txt\";\n\t\t}", "title": "" }, { "docid": "91a1cb60407b748e6ffaf8f8f03e4273", "score": "0.52718675", "text": "public function getMailRestrictSubject();", "title": "" }, { "docid": "9c53e810adf36830a5f48c6422131e6f", "score": "0.5266976", "text": "function email_template($data=array()){\n\t\n\t$type=$data['type'];\n\tif($type == 'FP'){\n\t\tforgot_pass_template($data);\n\t}\n}", "title": "" }, { "docid": "a0ae901667a312976e04e44db7ca45f3", "score": "0.5266882", "text": "private function GenerateMail($subject, $templatename, $bodyvars){\r\n $this->From = ($this->myoptions['sender_mail']) ? $this->myoptions['sender_mail'] : $this->adminmail;\r\n $this->FromName = $this->dkpname;\r\n $this->Subject = $subject;\r\n $tmp_body\t\t\t\t= $this->Template($templatename, $bodyvars, $this->eqmpath);\n \r\n if($this->myoptions['mail_type'] == 'text'){\r\n \t// Text Mail\r\n \t$this->Body\t= $tmp_body;\r\n }else{\n \t// HTML Mail\r\n\t $this->MsgHTML($tmp_body);\r\n\t $this->AltBody = $this->nohtmlmssg;\r\n \t\r\n }\r\n }", "title": "" }, { "docid": "b94715b887352d960ef96c3234b51155", "score": "0.5227582", "text": "function verify_subject()\r\n\t{\r\n\t\tglobal $db;\r\n\t\t$post = &$this->data;\r\n\t\t$subject = &$post['subject'];\r\n\r\n\t\t$subject = trim($subject);\r\n\r\n\t\tif(!$post['tid'])\r\n\t\t{\r\n\t\t\t$query = $db->simple_select(\"posts\", \"tid\", \"pid='\".intval($post['pid']).\"'\");\r\n\t\t\t$post['tid'] = $db->fetch_field($query, \"tid\");\r\n\t\t}\r\n\t\t// Here we determine if we're editing the first post of a thread or not.\r\n\t\t$options = array(\r\n\t\t\t\"limit\" => 1,\r\n\t\t\t\"limit_start\" => 0,\r\n\t\t\t\"order_by\" => \"dateline\",\r\n\t\t\t\"order_dir\" => \"asc\"\r\n\t\t);\r\n\t\t$query = $db->simple_select(\"posts\", \"pid\", \"tid='\".$post['tid'].\"'\", $options);\r\n\t\t$first_check = $db->fetch_array($query);\r\n\t\tif($first_check['pid'] == $post['pid'])\r\n\t\t{\r\n\t\t\t$first_post = true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$first_post = false;\r\n\t\t}\r\n\t\t\t// If this is the first post there needs to be a subject, else make it the default one.\r\n\t\tif(my_strlen(trim_blank_chrs($subject)) == 0 && $first_post)\r\n\t\t{\r\n\t\t\t$this->set_error(\"firstpost_no_subject\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telseif(my_strlen($subject) == 0)\r\n\t\t{\r\n\t\t\t$thread = get_thread($post['tid']);\r\n\t\t\t$subject = \"RE: \".$thread['subject'];\r\n\t\t}\r\n\r\n\treturn true;\r\n\t}", "title": "" }, { "docid": "48fd39333c6442530567ffe9df6525a1", "score": "0.51575863", "text": "public function send_email_from_template($email, $params, $template) {\r\n \r\n $message = $this->CI->load->view(EMAIL_TEMPLATE_FOLDER.'/'.$template, $params, TRUE);\r\n \r\n $email_params = array(\r\n 'to' => $email,\r\n 'subject' => 'Password reset on TAMS'\r\n );\r\n \r\n return $this->email->send($params, $message);\r\n \r\n }", "title": "" }, { "docid": "b8228a90bc4be38951fb6ab58608dbc7", "score": "0.5152194", "text": "public function newTemplateMsg($template,$additionalHooks)\n {\n global $mail_templates_dir,$debug_mode;\n\n $this->contents = file_get_contents($mail_templates_dir.$template);\n\n //Check to see we can access the file / it has some contents\n if(!$this->contents || empty($this->contents))\n {\n if($debug_mode)\n {\n if(!$this->contents)\n {\n echo lang(\"MAIL_TEMPLATE_DIRECTORY_ERROR\",array(getenv(\"DOCUMENT_ROOT\")));\n\n die();\n }\n else if(empty($this->contents))\n {\n echo lang(\"MAIL_TEMPLATE_FILE_EMPTY\");\n\n die();\n }\n }\n\n return false;\n }\n else\n {\n //Replace default hooks\n $this->contents = replaceDefaultHook($this->contents);\n\n //Replace defined / custom hooks\n $this->contents = str_replace($additionalHooks[\"searchStrs\"],$additionalHooks[\"subjectStrs\"],$this->contents);\n\n //Do we need to include an email footer?\n //Try and find the #INC-FOOTER hook\n if(strpos($this->contents,\"#INC-FOOTER#\") !== FALSE)\n {\n $footer = file_get_contents($mail_templates_dir.\"email-footer.txt\");\n if($footer && !empty($footer)) $this->contents .= replaceDefaultHook($footer);\n $this->contents = str_replace(\"#INC-FOOTER#\",\"\",$this->contents);\n }\n\n return true;\n }\n }", "title": "" }, { "docid": "46e77732c2c78c36804674e45061cb95", "score": "0.5150801", "text": "function mail_message($n, $e, $subject,$template_file) {\n\n\t/*Extracts the message content from $template_file.\n\t*/\n\n\t#get template contents, and replace variables with data\n\t$email_message = file_get_contents($template_file);\n\t$email_message = str_replace(\"#NAME#\", $n, $email_message);\n\t$email_message = str_replace(\"#SUBJECT#\", $subject, $email_message);\n\t\t\n\t#construct the email headers\n\t$to = $e; \n\t$from = \"[email protected]\";\n\t$email_subject = \"CONTACT #\".time().\": \".\"Party Invitation\";\n\n\t$headers = \"From: \" . $from . \"\\r\\n\";\n\t$headers .= 'MIME-Version: 1.0' . \"\\n\"; //these headers will allow our HTML tags to be displayed in the email\n\t$headers .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\"; \n\n\t#now mail\n\tmail($to, $email_subject, $email_message, $headers);\n}", "title": "" }, { "docid": "5dcefd7370f3bb99d55c9f859a9f01fe", "score": "0.51416934", "text": "public function beforeSet()\n {\n\n $template = $this->getProperty('template');\n $field = trim($this->getProperty('field'));\n\n $match = false;\n\n if (!empty($template) && !empty($field)) {\n if ($collection = $this->modx->getCollection($this->classKey, array('field' => $field))) {\n foreach($collection as $item) {\n\n //$this->modx->log(1, print_r($item->get('template') ,true));\n\n if (count(array_intersect($item->get('template'), $template)) > 0) {\n $match = true;\n }\n }\n }\n }\n\n if (empty($template)) {\n $this->modx->error->addField('template[]', $this->modx->lexicon('seotemplates_item_err_template'));\n } else if (empty($field)) {\n $this->modx->error->addField('field', $this->modx->lexicon('seotemplates_item_err_field'));\n } else if (\n $match\n ) {\n $this->modx->error->addField('template[]', $this->modx->lexicon('seotemplates_item_err_ae'));\n $this->modx->error->addField('field', $this->modx->lexicon('seotemplates_field_err_ae'));\n }\n\n return parent::beforeSet();\n }", "title": "" }, { "docid": "b87a4ff36f495c120cc08881f372a26e", "score": "0.5110148", "text": "function ecse_get_email_subject() {\n\tglobal $ecse_email_subject;\n\tif(!is_string($ecse_email_subject)) $ecse_email_subject=''; //just to make sure it's a string\n\treturn $ecse_email_subject;\n}", "title": "" }, { "docid": "418d8557a30aa79f4fb0891ac04d2232", "score": "0.5098892", "text": "function format_email($email_info){\n\t\t\t\n\t\t\t\t//grab correct template content\n\t\t\t\tif ($email_info['type'] == \"contributor\"){\n\t\t\t\t\t$template = file_get_contents('php/emails/contributor_template.html');\n\t\t\t\t} else {\n\t\t\t\t\t$template = file_get_contents('php/emails/project_template.html');\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t//replace all the tags\n\t\t\t\t$template = preg_replace('/{FNAME}/', $email_info['fname'], $template);\n\n\t\t\t\t//return the html of the template\n\t\t\t\treturn $template;\n\t\t\n\t\t\t}", "title": "" }, { "docid": "97881f3c62c117d55d9a1ed9aba833bc", "score": "0.5075", "text": "public function __construct($emails, $dynamicData, $template , $local = \"he_IL\n\"){\n //en_US\n $this->local = $local;\n\t\t$this->emails = $emails;\n\t\t$this->pid = $this->set_mail_type($template);\n if($this->pid != false){\n $this->title = get_the_title($this->pid);\n\t\t$this->dynamicData = $dynamicData;\n\t\t$this->prepareTemplate();\n\t\t$this->send();\n }\n\t}", "title": "" }, { "docid": "23499150077b176220fdcdbdeaa493c9", "score": "0.5068764", "text": "function certrt_email_others($course, $certrt, $certrecord, $cm) {\n global $USER, $CFG;\n\n if ($certrt->emailothers) {\n $others = explode(',', $certrt->emailothers);\n if ($others) {\n $strawarded = get_string('awarded', 'certrt');\n foreach ($others as $other) {\n $other = trim($other);\n if (validate_email($other)) {\n $destination = new stdClass;\n $destination->id = 1;\n $destination->email = $other;\n $info = new stdClass;\n $info->student = fullname($USER);\n $info->course = format_string($course->fullname, true);\n $info->certrt = format_string($certrt->name, true);\n $info->url = $CFG->wwwroot.'/mod/certrt/report.php?id='.$cm->id;\n $from = $USER;\n $postsubject = $strawarded . ': ' . $info->student . ' -> ' . $certrt->name;\n $posttext = certrt_email_teachers_text($info);\n $posthtml = certrt_email_teachers_html($info);\n\n @email_to_user($destination, $from, $postsubject, $posttext, $posthtml); // If it fails, oh well, too bad.\n }\n }\n }\n }\n}", "title": "" }, { "docid": "d709c5232b0c242b6adda2ad8ee16e7f", "score": "0.5062573", "text": "public function getMailSubject();", "title": "" }, { "docid": "a6569c3f3ae65fd0feef7cb601857ba5", "score": "0.50324535", "text": "public function __construct($subject = \"\", $data = [], $template = \"\")\n { \n $this->subject = $subject;\n $this->data = $data; \n $this->template = $template; \n }", "title": "" }, { "docid": "9c195008e32260666d63bcb16a6d8815", "score": "0.5022427", "text": "public function template(string $template)\n {\n $this->template = Env::get('base.template') .$template;\n if (!file_exists($this->template)) {\n Log::error('Mailer: template not found: ' .$template);\n }\n }", "title": "" }, { "docid": "0d4bc16d4b087cf1c5b79a4cc69abc29", "score": "0.49906763", "text": "function generateMail($orderUid, $orderData,$templateCode)\n\t{\n\t\t$content='';\n\t\t$markeArray=array();\n\t\t#$ordertable = $this->generateOrderlist($orderUid);\n\t\t#debug($ordertable);\n\t\t$markerArray['###ORDERID###']=$orderUid;\n\n\t\t/**\n\t\t * Since The first line of the mail is the Subject, trim the template\n\t\t */\n\t\t$content = ltrim($this->cObj->getSubpart($templateCode, '###MAILCONTENT###'));\n\n\t\t// Get The addresses\n\t\t$deliveryAdress='';\n\t\tif ($orderData['cust_deliveryaddress'])\n\t\t{\n\t\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tt_address', 'uid='.intval($orderData['cust_deliveryaddress']));\n\t\t\tif ($data= $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))\n\t\t\t{\n\t\t\t\t$deliveryAdress = $this->makeAdressView($data,'###DELIVERY_ADDRESS###');\n\t\t\t}\n\n\t\t}\n\t\t$content = $this->cObj->substituteSubpart($content,'###DELIVERY_ADDRESS###',$deliveryAdress);\n\n\t\t$billingAdress='';\n\t\tif ($orderData['cust_invoice'])\n\t\t{\n\t\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tt_address', 'uid='.intval($orderData['cust_invoice']));\n\t\t\tif ($data= $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))\n\t\t\t{\n\t\t\t\t$billingAdress = $this->makeAdressView($data,'###BILLING_ADDRESS###');\n\t\t\t\t#$markerArray['###CUST_NAME###']=$data['NAME'];\n\t\t\t\t$this->customermailadress=$data['email'];\n\t\t\t}\n\n\t\t}\n\t\t$content = $this->cObj->substituteSubpart($content,'###BILLING_ADDRESS###',$billingAdress);\n\t\t\n\t\t$invoicelist='';\n\t\t\n\t\t$content = $this->cObj->substituteSubpart($content,'###INVOICE_VIEW###',$invoicelist);\n\n\t\t/**\n\t\t * Hook for processing Marker Array\n\t\t * Inspired by tt_news\n\t\t * @since 21.01.2006\n\t\t *\n\t\t */\n\t\t$hookObjectsArr = array();\n\t\tif (is_array ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce_ordermails/mod1/class.tx_commerce_moveordermail.php']['generateMail'])) {\n\t\t\tforeach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce_ordermails/mod1/class.tx_commerce_moveordermail.php']['generateMail'] as $classRef) {\n\t\t\t\t\t$hookObjectsArr[] = &t3lib_div::getUserObj($classRef);\n\t\t\t}\n\t\t}\n\t\tforeach($hookObjectsArr as $hookObj)\t{\n\t\t\tif (method_exists($hookObj, 'ProcessMarker')) {\n\t\t\t\t$markerArray=$hookObj->ProcessMarker($markerArray,$this);\n\t\t\t}\n\t\t}\n\t \t$content = $this->cObj->substituteMarkerArray($content, $markerArray);\n\n\t\treturn ltrim($content);\n\t}", "title": "" }, { "docid": "f10b6ee86bcdb1232117cc50e4c30b22", "score": "0.49481395", "text": "public function sendMail($template, $aData) {\n // Make sure we don't load a cached filed\n $this->smarty->clearCache(BASEPATH . 'templates/mail/' . $template . '.tpl');\n $this->smarty->clearCache(BASEPATH . 'templates/mail/subject.tpl');\n $this->smarty->assign('WEBSITENAME', $this->setting->getValue('website_name'));\n $this->smarty->assign('SUBJECT', $aData['subject']);\n $this->smarty->assign('DATA', $aData);\n $headers = 'From: ' . $this->setting->getValue('website_name') . '<' . $this->setting->getValue('website_email') . \">\\n\";\n $headers .= \"MIME-Version: 1.0\\n\";\n $headers .= \"Content-Type: text/html; charset=ISO-8859-1\\r\\n\";\n if (strlen(@$aData['senderName']) > 0 && @strlen($aData['senderEmail']) > 0 )\n $headers .= 'Reply-To: ' . $aData['senderName'] . ' <' . $aData['senderEmail'] . \">\\n\";\n if (mail($aData['email'], $this->smarty->fetch(BASEPATH . 'templates/mail/subject.tpl'), $this->smarty->fetch(BASEPATH . 'templates/mail/' . $template . '.tpl'), $headers))\n return true;\n $this->setErrorMessage($this->sqlError('E0031'));\n return false;\n }", "title": "" }, { "docid": "cf0d5332f9cac358fdce6e0dd38acee8", "score": "0.4939658", "text": "public function getMailPostPubliSubject();", "title": "" }, { "docid": "2558218c9b9cdd0004b1abc76061fbd5", "score": "0.49268824", "text": "public function sendMail($template,$emailList){\n \t$emails = array();\n \t$emails = explode(',', $emailList);\n \t$emails = array_unique($emails);\n \t$template_name = EmailReporting::on('rds1')->where('sparkpost_key',$template)->first();\n \t$template_name = $template_name->template_name;\n \t\n \tforeach($emails as $email){\n \t\t\t\n\t\t $reply_email = '[email protected]';\n\t\t $email_arr = [\n\t\t 'email' => $email,\n\t\t 'name' => '',\n\t\t 'type' =>'to',\n\t\t ];\n\n\t\t $params = [\n\t\t 'SUBJECT' => 'Testing Email',\n\t\t ];\n\t\t $mac = new MandrillAutomationController;\n\n\t\t\t\t$response = $mac->sendMandrillEmail($template_name, $email_arr, $params, $reply_email);\n \t}\n \treturn $response;\n }", "title": "" }, { "docid": "59a69ba3c596cab80d0d2f8bcecb0861", "score": "0.49253434", "text": "public function get_email_template($condition = FALSE) {\n $this->db->select('*');\n $this->db->from('tbl_email_templates');\n if ($condition) {\n $this->db->where($condition);\n }\n $this->db->order_by('id', 'DESC');\n $query = $this->db->get();\n $data = $query->result_array();\n if ($query->num_rows) {\n return $data;\n }return FALSE;\n }", "title": "" }, { "docid": "4423b1f6dbb4b9f69b4cfd04424e9bee", "score": "0.49253157", "text": "public function getContent($params = array())\n {\n $template = gv($params, 'template');\n $user = gv($params, 'user');\n $password = gv($params, 'password');\n\n $body = $template->body;\n $subject = $template->subject;\n\n $company_logo = $this->config->getCompanyLogo();\n $company_address = $this->config->getCompanyAddress();\n\n $body = str_replace('[COMPANY_LOGO]', $company_logo, $body);\n \n $body = str_replace('[COMPANY_NAME]', config('config.company_name'), $body);\n $subject = str_replace('[COMPANY_NAME]', config('config.company_name'), $subject);\n \n $body = str_replace('[COMPANY_EMAIL]', config('config.email'), $body);\n $subject = str_replace('[COMPANY_EMAIL]', config('config.email'), $subject);\n \n $body = str_replace('[COMPANY_PHONE]', config('config.phone'), $body);\n $subject = str_replace('[COMPANY_PHONE]', config('config.phone'), $subject);\n \n $body = str_replace('[COMPANY_WEBSITE]', config('config.website'), $body);\n $subject = str_replace('[COMPANY_WEBSITE]', config('config.website'), $subject);\n \n $body = str_replace('[COMPANY_ADDRESS]', $company_address, $body);\n $subject = str_replace('[COMPANY_ADDRESS]', $company_address, $subject);\n \n $body = str_replace('[CURRENT_DATE]', showDate(date('Y-m-d')), $body);\n $subject = str_replace('[CURRENT_DATE]', showDate(date('Y-m-d')), $subject);\n \n $body = str_replace('[CURRENT_DATE_TIME]', showDateTime(date('Y-m-d H:i:s')), $body);\n $subject = str_replace('[CURRENT_DATE_TIME]', showDateTime(date('Y-m-d H:i:s')), $subject);\n\n if ($template->category === 'user' && $user) {\n $body = str_replace('[NAME]', ($user->name) ? : '-', $body);\n $subject = str_replace('[NAME]', ($user->name) ? : '-', $subject);\n\n $body = str_replace('[PASSWORD]', $password, $body);\n $subject = str_replace('[PASSWORD]', $password, $subject);\n\n $body = str_replace('[EMAIL]', $user->email, $body);\n $subject = str_replace('[EMAIL]', $user->email, $subject);\n }\n\n $mail_data['body'] = $body;\n $mail_data['subject'] = $subject;\n\n return $mail_data;\n }", "title": "" }, { "docid": "ba4777037538b507ef9eea37aeeafcd1", "score": "0.4911147", "text": "static function should_modify_mail($subject,$to) {\n\t\t\n\t\t$returner = false;\n\t\t\n\t\tif(!self::is_excempt($subject)) {\n\t\t\n\t\t\tif(get_option('ecse_is_active')) {\n\t\t\t\t$user_can_receive = true;\n\t\t\t} else {\n\t\t\t\t$user_can_receive = false;\n\t\t\t\t//but wait, admin recipients CAN be styled!\n\t\t\t\trequire_once(ABSPATH . WPINC . '/registration.php');\n\t\t\t\t$to_user_ID = email_exists($to);\n\t\t\t\tif( $to_user_ID && user_can($to_user_ID,'activate_plugins') ) $user_can_receive = true;\n\t\t\t}\n\t\t\n\t\t\tswitch($subject) {\n\t\t\t\tcase __( 'Purchase Report', 'wpsc' ):\n\t\t\t\tcase __( 'Transaction Report', 'wpsc' ):\n\t\t\t\tcase __( 'Purchase Receipt', 'wpsc' ):\n\t\t\t\tcase __( 'Order Pending', 'wpsc' ):\n\t\t\t\tcase __( 'Order Pending: Payment Required', 'wpsc' ):\n\t\t\t\tcase get_option( 'wpsc_trackingid_subject' ):\n\t\t\t\tcase __( 'The administrator has unlocked your file', 'wpsc' ):\n\t\t\n\t\t\t\t\tif($user_can_receive) $returner=true;\n\t\t\t\t\tbreak;\n\t\t\n\t\t\t\tcase 'ECSE test email':\n\t\t\n\t\t\t\t\t//even with styling turned off, test emails can be sent to anyone, not just admins\n\t\t\t\t\t$returner=true;\n\t\t\t\t\tbreak;\n\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tif($user_can_receive && get_option('ecse_is_other_active') ) $returner=true;\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\treturn $returner;\n\t}", "title": "" }, { "docid": "c516511ac2a20c4b9e0d4f8ea47d6d2c", "score": "0.4897827", "text": "abstract protected function generateEmail();", "title": "" }, { "docid": "b863e9eb6b84ee4cf3b4bf7c21044baa", "score": "0.48941022", "text": "function sendTemplatedEmail($template, $recipients, $queueing = true) {\n\tif ($recipients instanceof EmailRecipient) {\n\t\t$recipients = array($recipients);\n\t\t$class = 'SingleRecipient';\n\t} else {\n\t\t$class = get_class($recipients);\n\t}\n\n\t$mergeToks = getEtMergeToks($template -> etsubj . ' ' . $template -> ethtml . ' ' . $template -> ettext);\n\t$theSubs = array();\n\t$theRecips = array();\n\n\t// populate recipient and merges possible for each recipient\n\tforeach ($recipients as $rec) {\n\t\t$theRecips[] = ($rec -> toName() ? $rec -> toName() . \"<\" . $rec -> toAddress() . \">\" : $rec -> toAddress());\n\n\t\t$mergeTerms = $rec -> mergeTermArray();\n\t\t$subKeys = array_intersect(array_keys($mergeTerms), $mergeToks);\n\t\tforeach ($subKeys as $sk) {\n\t\t\t$theSubs[\"[:$sk:]\"][] = $mergeTerms[$sk];\n\t\t}\n\t}\n\n\t// the merge must be available for all messages or we'll die here\n\t$nRecip = count($theRecips);\n\tforeach ($theSubs as $subKey => $subValArray) {\n\t\tif (count($subValArray) !== $nRecip) {\n\t\t\tdie('invalid subs given... killing mail process. None sent.');\n\t\t}\n\t}\n\n\t// chunk the messages & send them!\n\t$nChunks = floor($nRecip / MESSAGE_CHUNKING_SIZE);\n\t$sendgrid = getSendGrid();\n\tfor ($i = $nRecip; $i > 0; $i -= MESSAGE_CHUNKING_SIZE) {\n\n\t\t$sliceOffset = max($i - MESSAGE_CHUNKING_SIZE, 0);\n\t\t$sliceLength = MESSAGE_CHUNKING_SIZE + min($i - MESSAGE_CHUNKING_SIZE, 0);\n\t\t$theMail = new SendGrid\\Mail();\n\n\t\t// array quantities...\n\t\t$theMail -> setTos(array_slice($theRecips, $sliceOffset, $sliceLength));\n\t\tforeach ($theSubs as $subKey => $subValArray) {\n\t\t\t$theMail -> addSubstitution($subKey, array_slice($subValArray, $sliceOffset, $sliceLength));\n\t\t}\n\n\t\t// static quantities\n\t\t$theMail -> setFrom($template -> SenderAddress);\n\t\t$theMail -> setFromName($template -> SenderName);\n\t\t$theMail -> setSubject($template -> etsubj);\n\t\t$theMail -> setText($template -> ettext);\n\t\t$theMail -> setHtml($template -> ethtml);\n\t\t$theMail -> setCategories(array(MESSAGE_SERVER_CAT, $template -> etname, $template -> etname . '_ch_' . $nChunks));\n\n\t\tprintf(\"<pre>CHUNK IDX : %d\\nsliceOffset=%d\\nsliceLength=%d\\ni=%d\\n\\n\", $nChunks, $sliceOffset, $sliceLength, $i);\n\t\t//print_r($theMail);\n\t\techo \"</pre>\";\n\t\t$sendgrid -> smtp -> send($theMail);\n\n\t\t$nChunks--;\n\t}\n\n}", "title": "" }, { "docid": "753b58575d8a2fdf32508f6bd20a0ac8", "score": "0.489401", "text": "function Subject( $subject )\n {\n \t$this->xheaders['Subject'] = strtr( $subject, \"\\r\\n\" , \" \" );\n }", "title": "" }, { "docid": "178f92627b3d35e2cdff3730bc992dc1", "score": "0.4890658", "text": "function SupressPaymentReminders($vars) {\n \n $email_template_name = $vars['messagename']; # Email template name being sent\n\n if ($email_template_name=='Credit Card Payment Failed' ||\n $email_template_name=='Invoice Payment Reminder' ||\n $email_template_name=='First Invoice Overdue Notice' || \n $email_template_name=='Second Invoice Overdue Notice' || \n $email_template_name=='Third Invoice Overdue Notice')\n {\n\n\t $invoiceid = $vars['relid'];\n\n\t $result = select_query(\"mod_gocardless\",\"payment_failed\",array(\"invoiceid\"=>$invoiceid));\n\t $data = mysql_fetch_array($result);\n\n if (empty($data)) {\n\t $merge_fields = array();\n\t $merge_fields['abortsend'] = false;\n }\n else\n {\n \t if ($data['payment_failed']==0) \n\t {\n\t $merge_fields = array();\n\t $merge_fields['abortsend'] = true; # You can use this return to stop email sending\n\t return $merge_fields;\n\t } \n }\n }\n\n}", "title": "" }, { "docid": "97a72bbb8195861b3350a371301746bb", "score": "0.4890407", "text": "function getEmailTemplateContent($message=NULL,$tag=NULL,$subject=NULL, $filename=NULL, $logo_type=NULL, $logo_name=NULL)\n\t{ \n\t\t$f_message = $message;\n\t\tif($tag!=\"\")\n\t\t{\n\t\t\tforeach($tag as $k=>$v)\n\t\t\t{\n\t\t\t\t@$f_message = str_replace(trim($k),trim($v),trim($f_message));\n\t\t\t} \n\t\t}\n\n\t\tif($filename == \"\")\n\t\t{\n\t\t\t$filename = \"index.html\";\n\t\t}\n\t\t\n\t\t$path = \"template/\".$filename;\t\n\t\tif (!file_exists($path)) \n\t\t{\n\t\t\t$path = \"../template/\".$filename;\n\t\t\tif (!file_exists($path)) {\n\t\t\t\t$path = \"../../template/\".$filename;\n\t\t\t\tif(!file_exists($path))\n\t\t\t\t{\n \t\t\treturn \"Error loading template file $path .<br />\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t } \n\t $output = file_get_contents($path); \n\t\t$search = array('{tag:title}','{tag:details}');\n\t\t$replace = array($subject,$f_message);\n\t\t$output = str_replace($search, $replace, $output); \n\t\treturn $output;\n\t}", "title": "" }, { "docid": "cd09a227fe930ced9ed489ca9e5606d4", "score": "0.48812968", "text": "private function prepareMail() {\n\t\t// adjust subject & body\n\t\tif(isset($_POST[\"rehearsal\"])) {\n\t\t\t// adjust subject\n\t\t\t$reh = $this->getData()->getRehearsal($_POST[\"rehearsal\"]);\n\t\t\t$text = \"Probe am \" . Data::getWeekdayFromDbDate($reh[\"begin\"]);\n\t\t\t$text .= \", \" . Data::convertDateFromDb($reh[\"begin\"]) . \" Uhr\";\n\t\t\t$_POST[\"subject\"] = $text;\n\t\t\t\n\t\t\t// adjust body: append songs to practise\n\t\t\t$songs = $this->getData()->getSongsForRehearsal($_POST[\"rehearsal\"]);\n\t\t\tif(count($songs) > 1) {\n\t\t\t\t$ext = \"<p>Bitte probt folgende St&uuml;cke:</p><ul>\\n\";\n\t\t\t\tfor($i = 1; $i < count($songs); $i++) {\n\t\t\t\t\t$ext .= \"<li>\" . $songs[$i][\"title\"] . \" (\" . $songs[$i][\"notes\"] . \")</li>\\n\";\n\t\t\t\t}\n\t\t\t\t$ext .= \"</ul>\\n\";\n\t\t\t\t$_POST[\"message\"] .= \"\\n$ext\";\n\t\t\t}\n\t\t}\n\t\telse if($_POST[\"subject\"] == \"\") {\n\t\t\tglobal $system_data;\n\t\t\t$_POST[\"subject\"] = $system_data->getCompany(); // band name\n\t\t}\n\t}", "title": "" }, { "docid": "b3061fdb046baf68a55882ab58a378d0", "score": "0.4868225", "text": "private function sendEmailTemplate($emailTo, $subject, $template, $parameters, $error, $transConfigSubject)\n {\n $message = \\Swift_Message::newInstance();\n if ($error && $this->notificateErrorsToAdmin) {\n if (is_array($this->adminEmail)) {\n foreach ($this->adminEmail as $admin) {\n $message->addBcc($admin);\n }\n } else {\n $message->addBcc($this->adminEmail);\n }\n }\n\n if (is_array($emailTo)) {\n $aux = 0;\n foreach ($emailTo as $email) {\n $parameters['person_name'] = $this->getPersonNameFromEmail($email);\n $message = $this->getMessageToSend($message, $email, $subject, $template, $parameters, $error, $transConfigSubject);\n $aux += $this->mailer->send($message);\n }\n\n return $aux;\n } else {\n $parameters['person_name'] = $this->getPersonNameFromEmail($emailTo);\n $message = $this->getMessageToSend($message, $emailTo, $subject, $template, $parameters, $error, $transConfigSubject);\n }\n\n return $this->mailer->send($message);\n }", "title": "" }, { "docid": "a03e97a46f7a2c7653ce079683470d6c", "score": "0.4867632", "text": "public function testSubject()\n {\n $settingsDir = TEST_ROOT .'/settings/';\n include $settingsDir.'settings1.php';\n\n $settings = new OneLogin_Saml2_Settings($settingsInfo);\n $authnRequest = new OneLogin_Saml2_AuthnRequest($settings);\n $encodedRequest = $authnRequest->getRequest();\n $decoded = base64_decode($encodedRequest);\n $request = gzinflate($decoded);\n $this->assertNotContains('<saml:Subject', $request);\n\n $authnRequest2 = new OneLogin_Saml2_AuthnRequest($settings, false, false, true, \"[email protected]\");\n $encodedRequest2 = $authnRequest2->getRequest();\n $decoded2 = base64_decode($encodedRequest2);\n $request2 = gzinflate($decoded2);\n $this->assertContains('<saml:Subject', $request2);\n $this->assertContains('Format=\"urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified\">[email protected]</saml:NameID>', $request2);\n $this->assertContains('<saml:SubjectConfirmation Method=\"urn:oasis:names:tc:SAML:2.0:cm:bearer\">', $request2);\n\n $settingsInfo['sp']['NameIDFormat'] = \"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress\";\n $settings = new OneLogin_Saml2_Settings($settingsInfo);\n $authnRequest3 = new OneLogin_Saml2_AuthnRequest($settings, false, false, true, \"[email protected]\");\n $encodedRequest3 = $authnRequest3->getRequest();\n $decoded3 = base64_decode($encodedRequest3);\n $request3 = gzinflate($decoded3);\n $this->assertContains('<saml:Subject', $request3);\n $this->assertContains('Format=\"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress\">[email protected]</saml:NameID>', $request3);\n $this->assertContains('<saml:SubjectConfirmation Method=\"urn:oasis:names:tc:SAML:2.0:cm:bearer\">', $request3);\n }", "title": "" }, { "docid": "2c2cf0ccdf9e865a51444e3d73e4e8a8", "score": "0.4864451", "text": "public function get_subject() { return false; }", "title": "" }, { "docid": "5c65739871acf969c325d40c0272320d", "score": "0.4863867", "text": "protected function sendLink($uid, $email, $template, $subject, $verificationCode) {\n $data = array( 'email' =>$email,'from' => '[email protected]','subject'=>$subject);\n Mail::send(['html' => $template], ['verify_code'=>$verificationCode],function ($message) use ($data) {\n $message->to( $data['email'] )->from( $data['from'])->subject( $data['subject']);\n });\n\n return true;\n }", "title": "" }, { "docid": "19d1e0900f6b3c6339e654569dfd3b2a", "score": "0.4859601", "text": "public function sendMail($template_id, $to_email, $varKeywordContent, $varKeywordValueContent, $varCC = \"\", $varBCC = \"\", $varSenderName = \"\", $varSenderEmail = \"\",$varAttachement = \"\",$mailSubject = \"\")\n {\n\t\t$result_set = self::getMailContent($template_id);\n\t\t//echo '<pre>';print_r($result_set);exit();\n $message = '';\n $message .= '<style type=\"text/css\">\n\t\ta { color: #006567;}\n\t\ta:hover { color: #F93; }\n\t\t</style>';\n $message .= '<table style=\"padding-left:15px;\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n\t\t<tr>\n\t\t<td style=\"border-bottom:1px solid #35d3ed; margin-top:30px; padding-bottom:30px; float:left;\" width=\"100%\">';\n $result_set = self::getMailContent($template_id);\n if($mailSubject!=''){\n $subject = $mailSubject;\n }else {\n $subject = $result_set['emailSubject'];\n }\n\t \n //echo '<pre>';print_r($result_set);exit();\n $message .= $result_set['emailContent'];\n $from = isset($varSenderName) && $varSenderName != '' ? $varSenderName : $result_set['emailFromName'];\n $fromEmail = isset($varSenderEmail) && $varSenderEmail != '' ? $varSenderEmail : $result_set['emailFromEmail'];\n $message = str_replace($varKeywordContent, $varKeywordValueContent, $message);\n $message .= '</td></tr></table>';\n $varMailTo = trim($to_email);\n //$file_path=Yii::app()->getBaseUrl(true).'/img/delivery-order1.pdf';\n //mailing\n //echo '<pre>';print_r($message);exit();\n $params = array('myMail' => $message);\n Yii::$app->mailer->compose()\n ->setFrom($fromEmail)\n ->setTo($varMailTo)\n ->setSubject($subject)\n ->setHtmlBody($message)\n ->send();\n return true;\n }", "title": "" }, { "docid": "577d4796965a5ec55cddae4b0536a82c", "score": "0.4853649", "text": "function SendMailTemplate($fromAddress, $fromName, $toAddress, $toName, $subject, $templateId)\n{\n\t\n $env = parse_ini_file('config.ini',true)['env'];\n if($env == \"development\"){\n error_log(\"Development stage so not sending any email\");\n return 1;\n }\n\t\n\telse { //if($env == \"production\"){ \n\t\trequire_once(\"./sendgrid-php/sendgrid-php.php\");\n\t\t$apiKey = parse_ini_file('config.ini',true)['emailApiKey'];\n\t\t\n\t\t$sendgrid = new SendGrid($apiKey); //New API\n\t\t\n\t\t$email = new SendGrid\\Email();\n\t\t$email\n\t\t\t->setFrom($fromAddress)\n\t\t\t->setFromName($fromName)\n\t\t\t->addTo($toAddress, $toName)\n\t\t\t->setSubject($subject)\n\t\t\t->setText(' ')\n\t\t\t->setHtml(' ')\n\t\t\t->setTemplateid($templateId)\n\t\t;\n\n\t\ttry\n\t\t{\n\t\t\t$sendgrid->send($email);\n\t\t\tunset($sendgrid);\n\t\t\tunset($email);\n\t\t\treturn 1;\n\t\t} \n\t\tcatch(\\SendGrid\\Exception $e) \n\t\t{\n\t\t\tunset($sendgrid);\n\t\t\tunset($email);\n\t\t\treturn 0;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "f968dce52231024f31882065427b088f", "score": "0.48492277", "text": "public function templateSend($id, $toEmail, $substituteWith = array()) {\n $subject = null;\n $body = null;\n $cc = null;\n $bcc = null;\n $format = MessageFormatEnum::Plaintext;\n\n $args = array();\n $args['conditions']['CoMessageTemplate.id'] = $id;\n $args['contain'] = false;\n\n $tmpl = $this->find('first', $args);\n list($body, $subject, $format, $cc, $bcc) = $this->getMessageTemplateFields($tmpl['CoMessageTemplate']);\n\n\n $co_id = $tmpl['CoMessageTemplate']['co_id'];\n $this->Co->id = $co_id;\n $co_name = $this->Co->field('name');\n\n // Set up and send the invitation via email\n $email = new CakeEmail('default');\n\n $substitutions = array(\n 'CO_NAME' => $co_name,\n 'ACTOR_NAME' => $substituteWith['ACTOR_NAME'] ?? 'template_test',\n 'NOTIFICATION_URL' => $substituteWith['NOTIFICATION_URL'] ?? '#',\n 'SOURCE_URL' => $substituteWith['SOURCE_URL'] ?? '#',\n 'INVITE_URL' => $substituteWith['INVITE_URL'] ?? '#',\n 'ORIG_AFFIL' => $substituteWith['ORIG_AFFIL'] ?? \"member\",\n 'NEW_AFFIL' => $substituteWith['NEW_AFFIL'] ?? \"faculty\",\n 'CO_PERSON' => $substituteWith['CO_PERSON'] ?? \"John Doe\",\n 'ORIG_COU' => $substituteWith['ORIG_COU'] ?? \"\",\n 'NEW_COU' => $substituteWith['NEW_COU'] ?? \"\",\n 'ORIG_STATUS' => $substituteWith['ORIG_STATUS'] ?? \"Active\",\n 'NEW_STATUS' => $substituteWith['NEW_STATUS'] ?? \"Grace Period\",\n 'DAYS_TO_EXPIRY' => $substituteWith['DAYS_TO_EXPIRY'] ?? \"5\",\n 'POLICY_DESC' => $substituteWith['POLICY_DESC'] ?? \"Expiration Policy Description\",\n 'SPONSOR' => $substituteWith['SPONSOR'] ?? \"Bob Builder\",\n 'TITLE' => $substituteWith['TITLE'] ?? \"Mr\",\n 'VALID_FROM' => $substituteWith['VALID_FROM'] ?? \"YYYY/MM/DD\",\n 'VALID_THROUGH' => $substituteWith['VALID_THROUGH'] ?? \"YYYY/MM/DD\",\n 'TOKEN' => $substituteWith['TOKEN'] ?? \"123456\",\n 'ENROLLMENT_NAME' => $substituteWith['ENROLLMENT_NAME'] ?? \"Join vo.example.org COU\",\n 'ORIG_PETITION_STATUS' => $substituteWith['ORIG_PETITION_STATUS'] ?? \"Created\",\n 'NEW_PETITION_STATUS' => $substituteWith['NEW_PETITION_STATUS'] ?? \"Pending Approval\",\n 'ENROLLEE_NAME' => $substituteWith['ENROLLEE_NAME'] ?? \"John Doe\",\n 'SOURCE_URL' => $substituteWith['SOURCE_URL'] ?? \"http://example.org/registry/petition/view/1\",\n 'NOTIFICATION_URL' => $substituteWith['NOTIFICATION_URL'] ?? \"http://example.org/registry/co_notifications/view/1\",\n );\n\n try {\n $msgSubject = processTemplate($subject, $substitutions);\n $msgBody = processTemplate($body, $substitutions);\n\n if($format === MessageFormatEnum::PlaintextAndHTML) {\n $viewVariables = array(\n MessageFormatEnum::Plaintext => $msgBody[MessageFormatEnum::Plaintext],\n MessageFormatEnum::HTML => $msgBody[MessageFormatEnum::HTML],\n );\n } elseif($format === MessageFormatEnum::HTML) {\n $viewVariables = array(\n MessageFormatEnum::HTML => $msgBody[MessageFormatEnum::HTML],\n );\n } else {\n if(is_array($msgBody)) {\n $viewVariables = array(\n MessageFormatEnum::Plaintext => $msgBody[MessageFormatEnum::Plaintext],\n );\n } else {\n $viewVariables = array(\n MessageFormatEnum::Plaintext => $msgBody,\n );\n }\n }\n $email->template('custom', 'basic')\n ->emailFormat($format)\n ->to($toEmail)\n ->viewVars($viewVariables)\n ->subject($msgSubject);\n $email->send();\n } catch(Exception $e) {\n throw new RuntimeException($e->getMessage());\n }\n }", "title": "" }, { "docid": "37be51f4316fa2daf1966d411813c79e", "score": "0.4836223", "text": "function setTextTemplate($main='default.txt',$sub='default_sub.txt') {\r\n\t\t\t$this->error='';\r\n\t\t\t// assure that we have an array of subs\r\n\t\t\tif ( !is_array($sub) ) {\r\n\t\t\t\t$sub = XOX_APP_BASE.'/'.$GLOBALS['xox_language_id'].'/templates/newsletter/'.$sub;\r\n\t\t\t} else {\r\n\t\t\t\tforeach($sub as $key=>$tmp)\r\n\t\t\t\t\t$sub[$key] = XOX_APP_BASE.'/'.$GLOBALS['xox_language_id'].'/templates/newsletter/'.$sub[$key];\r\n\t\t\t}\r\n\t\t\t// create text template\r\n\t\t\t$this->text_template = new xoxCompoundTemplate( XOX_APP_BASE.'/'.$GLOBALS['xox_language_id'].'/templates/newsletter/'.$main, $sub );\r\n\t\t\t// reset mail template\r\n\t\t\t$this->mail_template = 0;\r\n\t\t}", "title": "" }, { "docid": "aebb3a1d109348820ae4ff252c245a15", "score": "0.4834124", "text": "private function template( $subpart )\n {\n $cObj = $this->pObj->cObj;\n $conf = $this->pObj->conf;\n $template = $cObj->fileResource( $conf[ 'api.' ][ 'e-payment.' ][ 'powermail.' ][ 'files.' ][ 'html.' ][ 'transactionPrompts' ] );\n\n // Die if there isn't any HTML template\n if ( empty( $template ) )\n {\n $prompt = '\n <div style=\"border:1em solid red;color:red;padding:1em;text-align:center\">\n <h1>\n ERROR: No HTML Template\n </h1>\n <p>\n There isn\\'t any HTML template.\n </p>\n <p>\n Please check your template configuration. See\n </p>\n <ul>\n <li>\n TypoScript Constant Editor: [CADDY - E-PAYMENT - POWERMAIL FILES]\n </li>\n <li>\n TypoScript Object Browser: plugin.tx_caddy_pi1.api.e-payment.powermail.files.html.transactionPrompts\n </li>\n </ul>\n <p>\n ' . __METHOD__ . ' (' . __LINE__ . ')\n </p>\n <p>\n Sorry for the trouble.<br 7>\n Caddy - the TYPO3 Shopping Cart\n </p>\n </div>\n ';\n die( $prompt );\n }\n\n $template = $cObj->getSubpart( $template, $subpart );\n\n // Die if there isn't any HTML template\n if ( empty( $template ) )\n {\n $prompt = '\n <div style=\"border:1em solid red;color:red;padding:1em;text-align:center\">\n <h1>\n ERROR: HTML Template without subpart ' . $subpart . '\n </h1>\n <p>\n HTML template doesn\\'t contain the subpart ' . $subpart . '\n </p>\n <p>\n Please check your template configuration. See\n </p>\n <ul>\n <li>\n TypoScript Constant Editor: [CADDY - E-PAYMENT - POWERMAIL FILES]\n </li>\n <li>\n TypoScript Object Browser: plugin.tx_caddy_pi1.api.e-payment.powermail.files.html.transactionPrompts\n </li>\n </ul>\n <p>\n ' . __METHOD__ . ' (' . __LINE__ . ')\n </p>\n <p>\n Sorry for the trouble.<br 7>\n Caddy - the TYPO3 Shopping Cart\n </p>\n </div>\n ';\n die( $prompt );\n }\n\n return $template;\n }", "title": "" }, { "docid": "e4cacf7897e00553b9fe7fe469715a90", "score": "0.4832709", "text": "private function prepareSubject(EmailComposer $composer): void\n {\n $composer->getEmail()->fill([\n 'subject' => $composer->getData('subject'),\n ]);\n }", "title": "" }, { "docid": "a4e5d943c50c2babeb476c0c153f539f", "score": "0.48309934", "text": "function formMailFilter($item)\n{\n global $aLang;\n $bad = 0;\n\n // remove the ending \\n\n $item=ereg_replace(\"[\\r\\n]\",\"\",$item);\n\n // Check if there is the bcc: included in the string\n $bad = eregi('bcc:', $item)?1:0 ;\n $bad = eregi('cc:', $item)?1:0 ;\n\n // Check if there is Content-Type included in the string\n $bad = eregi('Content-Type', $item)?1:0 ;\n\n if ($bad) {\n print_error(\"<b>\" . $aLang[\"Spam mail detected.\"] . $aLang[\"Your message never be sent.\"] . $aLang[\"If you accidentally get this error, please contact us for the resolution.\"] .\"</b>\");\n }\n return $item;\n}", "title": "" }, { "docid": "4f7212b01412b8e9c07222366472d2e4", "score": "0.4830452", "text": "function responsive_schedule_template( $template ) {\n\t$template = <<<TPL\n<tr class=\"cf-section-item\">\n\t<td class=\"cf-section-instructor\">{{section_instructor}}</td>\n\t<td class=\"cf-section-type\">{{class_type_text}}</td>\n\t<td class=\"cf-section-day\">{{days}}</td>\n\t<td class=\"cf-section-start\">{{time_start}}&ndash;{{time_end}}</td>\n\t<td class=\"cf-section-location\"><a href=\"http://www.bu.edu/maps/?search={{{building}}}\">{{building}} {{room}}</a></td>\n</tr>\nTPL;\n\n\treturn $template;\n}", "title": "" }, { "docid": "ea91c1eb0d7fe4fda8ad4bd6163937d8", "score": "0.48296943", "text": "function setTemplate($file) {\n\t\t\t$tpl = dirname(__FILE__).\"/../../templ/\".$file;\n\n\t\t\tif (!file_exists($tpl)) {\n\t\t\t\tthrow new RuntimeException(\"Mail template \".$file.\" was not found.\");\n\t\t\t}\n\n\t\t\t$f = file_get_contents($tpl);\n\n\t\t\t// Extract subject from the template\n\t\t\tif (preg_match('#^@subject\\s+(.*)(\\r\\n|\\n|$)#', $f, $match, PREG_OFFSET_CAPTURE)) {\n\t\t\t\t$this->subject = $match[1][0];\n\t\t\t\t$f = substr($f, 0, $match[0][1]).substr($f, $match[0][1] + strlen($match[0][0]));\n\t\t\t}\n\n\t\t\t// Extract rest of the message\n\t\t\t$this->body = $f;\n\t\t}", "title": "" }, { "docid": "9b06be398df0a3714cac30c9ae16bc8b", "score": "0.4823228", "text": "public static function getReminderText($model)\n\t\t{\n\t\t\t\n\t\t\t$centreDetails = self::getDelinqCentreDetails();\n\t\t\t$noncompliance = self::getNonComplianceMonths();\n\t\t\t$zeroCompliance = $noncompliance['zerocompliance'];\n\t\t\t$partCompliance = $noncompliance['partcompliance'];\n\t\t\t$startDate = date_format(date_create($noncompliance['startDate'],timezone_open('Asia/Kolkata')),'M-Y');\n\t\t\t$endDate = date_format(date_create($noncompliance['endDate'],timezone_open('Asia/Kolkata')),'M-Y');\n\n\t\t\tforeach ($centreDetails as $key=>$value)\n\t\t\t{\n\t\t\t \t$centre = \\common\\models\\Centres::findOne(['wpLocCode'=>$key]);\n\t\t\t \t$centrename= $centre->name;\n\t\t\t\t\n\n\t\t\t \t$textArray[$key]['emails'] = $value['emails'];\n\t\t\t \t$months = $value['months'];\n\t\t\t \t$res = in_array($months,$zeroCompliance);\n\t\t\t \t$montharr = [];\n\n\t\t\t \tif ($res==false):\n\t\t\t\t \t$montharr = explode(', ',$months);\n\t\t\t\t\tforeach($montharr as &$month)\n\t\t\t\t\t{\n\t\t\t\t\t\t$month= date_format(\n\t\t\t\t\t\t\t\t\t\t\tdate_create(\n\t\t\t\t\t\t\t\t\t\t\t'01-'.$month, \n\t\t\t\t\t\t\t\t\t\t\ttimezone_open('Asia/Kolkata')),\n\t\t\t\t\t\t\t\t\t\t\t'M-Y'\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\t$months=implode(', ',$montharr);\n\t\t\t\telse:\n\t\t\t\t\t$months = $startDate.' to '.$endDate;\n\t\t\t\tendif;\n\t\t\t\t\n\t\t\t\t$textArray[$key]['months']=$months;\n\n\t\t\t\t$message = '<div style=\"margin: 10px; width:90%;\">';\n\t\t\t\t$message = $message. '<div align=\"center\"><h3><strong>Sub:&nbsp;&nbsp;<u>';\n\t\t\t\t$message = $message.$model->subjectField ;\n\t\t\t\t$message = $message. \" for <p>\".ucwords(strtolower($centrename));\n\t\t\t\t$message = $message. \"</p></u></h3></strong>\";\n\t\t\t\t$message = $message. \"</div>\";\n\n\t\t\t\t$message = $message. \"<br/><br/>\";\n\n \t$message = $message. '<div align=\"left\">'.$model->salutation.\"</div><br/>\";\n $message = $message. '<div align=\"left\">'.$model->topText.\"</div><br/>\";\n $message = $message. '<br/><div align=\"centre\">';\n $message = $message. $textArray[$key]['months'].\"</div><br/>\"; \n $message = $message. '<div align=\"left\">'.$model->bottomText.\"</div><br/><br/>\";\n $message = $message.'<div align=\"left\">'.$model->closingNote.\"</div>\";\n\t\t\t $message = $message.\"</div>\";\n\n\t\t\t\t$textArray[$key]['message']=$message;\n\t\t\t}\n\n\t\t\treturn $textArray;\n\t\t}", "title": "" }, { "docid": "0083875a7f67d8d6b04ace82da41be63", "score": "0.4821627", "text": "function email_verify($first_name, $alias, $email) {\n $body = \"$first_name,\\r\\n\\r\\n\" .\n \"Thank you for completing your Godiva's Quest registration! Your Quest ID is $alias. Use this ID to submit your answers to puzzles.\\r\\n\" .\n \"You can check your progress at \" . $GLOBALS['leaderboard_url'] . \"\\r\\n\" .\n \"If you're having trouble, you can email \" . $GLOBALS[\"qm_email\"] . \" and I'll see if I can help you.\\r\\n\\r\\n\" .\n \"Good luck!\\r\\n\" .\n \"Andrew Nestico,\\r\\n\" .\n \"Questmaster 1T5\\r\\n\\r\\n\";\n\n mail($email, \"[Quest] Thank You For Verifying Your Email Address!\", $body, $GLOBALS[\"headers\"]);\n}", "title": "" }, { "docid": "21be9137717c10a344ece5d80bab8a3b", "score": "0.48188", "text": "abstract protected function getSubject();", "title": "" }, { "docid": "d744b982836116ae2b3856c1ed856ee3", "score": "0.48178652", "text": "protected function getEmailSubject()\r\n {\r\n return sprintf('Ride terms accepted by %s!', \r\n $this->otherUser->getProfiles()->getFullName());\r\n }", "title": "" }, { "docid": "c678e4ac178c127e2f89b8593e18971e", "score": "0.48092893", "text": "public function get_email_template($email_type) {\n\t\t$query = $this->db->select ( 'email_template.*' )->where ( 'email_template.email_type', $email_type )->get ( 'email_template' );\n\t\treturn $query->row_array ();\n\t}", "title": "" }, { "docid": "1b141f228e285a79fc8c688e81333b5d", "score": "0.47991586", "text": "function send_email($type, $params) {\n\t\t$params = apply_filters('goget_send_email', $params, $type);\n\n\t\textract($params);\n\n\t\t$headers[] = \"Content-Type: text/html\";\n\t\t$headers[] = \"charset=UTF-8\";\n\n\t\tif(empty($tokens))\n\t\t\t$tokens = [];\n\n\t\t$body = str_replace(array_keys($tokens), array_values($tokens), $template);\n\n\t\treturn wp_mail( $to, $subject, $body, $headers );\n\t}", "title": "" }, { "docid": "14306b825dd4f3368fd0c3ff5b90b37c", "score": "0.47985", "text": "protected function getEmailTextPartialName() \r\n {\r\n return seatAcceptNotification::EMAIL_TEXT_PARTIAL;\r\n }", "title": "" }, { "docid": "b2cd6f67d2f6ae3f9fd77958f10c14f6", "score": "0.47929013", "text": "private function getTemplateVariables($command)\n {\n $submissionErrors = isset($this->submissionResult['errors']) ? $this->submissionResult['errors'] : [];\n\n //if the submission failed, we won't have a bus reg, so use any data the pack processor was able to extract\n if (!$this->busReg instanceof BusRegEntity) {\n $emailData = $this->submissionResult['extra_bus_data'];\n $emailData['submissionErrors'] = $submissionErrors;\n\n return $emailData;\n }\n\n $emailData = [\n 'submissionDate' => $this->formatDate($this->ebsr->getSubmittedDate()),\n 'registrationNumber' => $this->busReg->getRegNo(),\n 'origin' => $this->busReg->getStartPoint(),\n 'destination' => $this->busReg->getFinishPoint(),\n 'lineName' => $this->busReg->getFormattedServiceNumbers(),\n 'startDate' => $this->formatDate($this->busReg->getEffectiveDate()),\n 'localAuthoritys' => $this->getLocalAuthString($this->busReg->getLocalAuthoritys()),\n 'submissionErrors' => $submissionErrors,\n 'hasBusData' => true,\n 'publicationId' => null,\n 'pdfType' => null\n ];\n\n //when ebsr bus reg is registered or cancelled, we send additional publication data\n if (($command instanceof RegCmd || $command instanceof CancelCmd)) {\n $pubSection = $this->busReg->getPublicationSectionForGrantEmail();\n\n if ($pubSection) {\n $pubSectionEntity = $this->getRepo()->getReference(PublicationSectionEntity::class, $pubSection);\n $emailData['publicationId'] = $this->busReg->getPublicationLinksForGrantEmail($pubSectionEntity);\n }\n }\n\n //if command is a request map command, we need to know which one we are generating.\n if ($command instanceof RequestMapCmd) {\n $emailData['pdfType'] = $command->getPdfType();\n }\n\n return $emailData;\n }", "title": "" }, { "docid": "713be36d645f5d8fdcf05ce8fa23d683", "score": "0.4782443", "text": "public function buildFromTemplate() {\n\t\t//html\n\t\ttry {\n\t\t\t$template = new Template('tenant_portal', 'mail/'.$this->template);\n\t\t\tif ($this->params && !empty($this->params)) {\n\t\t\t\tforeach ($this->params as $key => $value) {\n\t\t\t\t\t$template->assign($key, $value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$html = $template->fetchPage();\n\t\t} catch (\\Exception $e) {\n\t\t\t$html = null;\n\t\t}\n\t\t// plain text\n\t\ttry {\n\t\t\t$template = new Template('tenant_portal', 'mail/'.$this->template.'.plain');\n\t\t\tif ($this->params && !empty($this->params)) {\n\t\t\t\tforeach ($this->params as $key => $value) {\n\t\t\t\t\t$template->assign($key, $value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$text = $template->fetchPage();\n\t\t} catch (\\Exception $e) {\n\t\t\t$text = null;\n\t\t}\n\t\treturn Array($html,$text);\n\t}", "title": "" }, { "docid": "42947136323b3ec4d439f6a520e3e5df", "score": "0.47819954", "text": "public function set_subject(string $subject): mail_interface;", "title": "" }, { "docid": "ed1824e64de8b92bfe48b44cf9351986", "score": "0.47750804", "text": "public function get_external_subject() { return false; }", "title": "" }, { "docid": "62db6196c5355ddcaf1fb8cd3aecb2b5", "score": "0.4765787", "text": "static function is_excempt($subject) {\n\t\t$my_list = get_option('ecse_subjects_to_ignore');\n\t\t$returner = false;\n\t\tif(!empty($my_list)) {\n\t\t\t$my_list = unserialize($my_list);\n\t\t\t$my_list[] = 'ECSE plugin wish'; //never style plugin wishes.\n\t\t\tforeach($my_list as $row) {\n\t\t\t\tif( trim($subject) == trim($row) ) $returner=true;\n\t\t\t}\n\t\t}\n\t\treturn $returner;\n\t}", "title": "" }, { "docid": "601857d995cbc7f3433fb4972d39c1bd", "score": "0.47649354", "text": "static function getEmailTemplate($tpl_code)\r\n\t{\r\n\t\tglobal $db;\r\n\t\t$srch = new SearchBase('tbl_email_templates', 'et');\r\n\t\t$srch->addCondition('tpl_code', '=', $tpl_code );\r\n\t\t$rs=$srch->getResultSet();\r\n\t\tif($row = $db->fetch($rs)) return $row;\r\n\t}", "title": "" }, { "docid": "ffbd3fd2c827dea6bdd2d4046df7de16", "score": "0.4762852", "text": "function email_not_registered($first_name, $email) {\n $body = \"$first_name,\\r\\n\\r\\n\" .\n \"You have signed up for Godiva's Quest with a non-U of T email address. Unfortunately, this is no longer allowed.\\r\\n\" .\n \"If you've made progress with this email address and wish to transfer that progress to a U of T email address, please send me an email with [EMAIL TRANSFER] in the title and your U of T email address in the body.\\r\\n\" .\n \"Alternatively, you can just sign up again at http://quest.skule.ca/1T5/registration/.\\r\\n\\r\\n\" .\n \"Thanks for your understanding,\\r\\n\" .\n \"Andrew Nestico,\\r\\n\" .\n \"Questmaster 1T5\\r\\n\\r\\n\";\n\n mail($email, \"[Quest] Sorry For The Inconvenience\", $body, $GLOBALS[\"headers\"]);\n}", "title": "" }, { "docid": "6fbaa55e8be2077f1b2c8da4e9c87c25", "score": "0.47567174", "text": "protected function sendEmails($recipients, $template, $tokens)\n\t{\n\t}", "title": "" }, { "docid": "d91e987b80670ff2904857cc413187de", "score": "0.47553378", "text": "abstract public function getSubject();", "title": "" }, { "docid": "a1abed125394faf4eb4fd8d0d6e6eea0", "score": "0.4753208", "text": "function get_email_subject() {\n\t$config = parse_ini_file ( GASE_CONFIG_FILE_PATH, true );\n\treturn $config [\"EMAIL\"] [\"subject\"];\n }", "title": "" }, { "docid": "575e03abecbc7fdcea0994aad92c4d03", "score": "0.47518596", "text": "abstract protected function prepareMail();", "title": "" }, { "docid": "5be0aca2c9951fccd653675377c1bf9e", "score": "0.47486246", "text": "private function _sendEmailList($dataTemplates, $listEmail)\n\t\t{\n\t\t\t\t$regex = '/^[_a-zA-Z0-9-]+(\\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*(\\.[a-zA-Z]{2,6})$/';\n\n\t\t\t\tif (!empty($listEmail) && is_array($listEmail) && count($listEmail))\n\t\t\t\t{\n\n\t\t\t\t\t\t$app = JFactory::getApplication();\n\t\t\t\t\t\t$mailfrom = $app->getCfg('mailfrom');\n\t\t\t\t\t\t$fromname = empty($dataTemplates->template_from) ? $app->getCfg('fromname') : $dataTemplates->template_from;\n\t\t\t\t\t\t$subject = $dataTemplates->template_subject;\n\t\t\t\t\t\t$body = $dataTemplates->template_message;\n\t\t\t\t\t\t$sent = \"\";\n\n\t\t\t\t\t\t// Prepare email body\n\t\t\t\t\t\t$body = stripslashes($body);\n\t\t\t\t\t\tforeach ($listEmail as $email)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (preg_match($regex, $email->email_address))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$mail = JFactory::getMailer();\n\t\t\t\t\t\t\t\t\t\t$mail->addRecipient($email->email_address);\n\t\t\t\t\t\t\t\t\t\tif (!empty($dataTemplates->template_reply_to) && preg_match($regex, $dataTemplates->template_reply_to))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$mail->addReplyTo(array($dataTemplates->template_reply_to, ''));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t$mail->setSender(array($mailfrom, $fromname));\n\t\t\t\t\t\t\t\t\t\t$mail->setSubject($subject);\n\t\t\t\t\t\t\t\t\t\t$mail->isHTML(true);\n\t\t\t\t\t\t\t\t\t\t$mail->setBody($body);\n\t\t\t\t\t\t\t\t\t\t$sent = $mail->Send();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn $sent;\n\t\t\t\t}\n\t\t}", "title": "" }, { "docid": "9c1079832248be7a70a73f528baf422c", "score": "0.47467524", "text": "function mandrill_template_email($template_name, $template_content, $to, $subject, $from_email = FALSE, $from_name = FALSE)\n {\n try {\n if(!is_array($to)) {\n $to = array(array(\"email\" => $to, \"name\" => \"User\"));\n }\n\n $template_name = $template_name;\n $template_content = $template_content;\n // array(\n // array(\n // 'name' => 'example name',\n // 'content' => 'example content'\n // )\n // );\n $message = array(\n 'html' => '',\n 'text' => '',\n 'subject' => $subject,\n 'from_email' => (!$from_email) ? $this->default_from_email : $from_email,\n 'from_name' => (!$from_name) ? $this->default_from_name : $from_name,\n 'to' => $to,\n 'headers' => array('Reply-To' => $this->reply_to),\n 'auto_text' => true,\n );\n $async = false;\n $ip_pool = ''; // 'Main Pool';\n $send_at = ''; // 'example send_at';\n $result = $this->inst_mandrill->messages->sendTemplate($template_name, $template_content, $message, $async);\n return $result;\n /* Sample Return\n Array\n (\n [0] => Array\n (\n [email] => [email protected]\n [status] => sent\n [reject_reason] => hard-bounce\n [_id] => abc123abc123abc123abc123abc123\n )\n \n ) */\n } catch(Mandrill_Error $e) {\n return $e->getMessage();\n return 'A mandrill error occurred: ' . get_class($e) . ' - ' . $e->getMessage();\n throw $e;\n }\n }", "title": "" }, { "docid": "78f007504596c8a80d55d76c9f245ce0", "score": "0.4745406", "text": "function _getPHPTemplateEmail( $tmpl )\r\n\t{\r\n\t\t// start capturing output into a buffer\r\n\t\tob_start();\r\n\t\trequire( $tmpl );\r\n\t\t$message = ob_get_contents();\r\n\t\tob_end_clean();\r\n\t\treturn $message;\r\n\t}", "title": "" }, { "docid": "59cb6ddd15e36cd204ad3cc2a74e7174", "score": "0.4736551", "text": "public function setMailRestrictSubject($mail_restrict_subject);", "title": "" }, { "docid": "5ec4921a1d816aeac9cd6936e407358d", "score": "0.47358367", "text": "abstract protected function getSubjectName(): string;", "title": "" }, { "docid": "84abe061478ed822dde45a664ba4899b", "score": "0.47353846", "text": "public function sendmailwithtemplateAction() {\r\n $Emaillist = $this->getEmailappTable()->searchBy($_REQUEST); \r\n $iddata = $_POST['maillist']; \r\n $idlist = explode(',', $iddata); \r\n foreach ($idlist as $id) {\r\n $iddatum = $this->getEmailappTable()->getMailContent($id); \r\n $to_name = $iddatum['name'];\r\n $to_email = $iddatum['email'];\r\n $email_template = $_POST['body'];\r\n $email_template = str_replace('{user}', $iddatum['name'], $email_template);\r\n $email_template = str_replace('{table_content}', $iddatum['content'], $email_template);\r\n $triggerMail = new EmailAlert(array());\r\n $mail_send = $triggerMail->sendBulkEmail($to_email,$to_name,$email_template);\r\n $updateDate = $this->getEmailappTable()->UpdateEmailapp($iddatum['id']); \r\n }\r\n $this->flashMessenger()->addSuccessMessage('Mail Sent successfully');\r\n return $this->redirect()->toRoute('emailapp');\r\n }", "title": "" }, { "docid": "2e4932f94b3152b82040201530640bfa", "score": "0.47352266", "text": "public function emailTemplate()\n\t{\n\t\t$result = $this->db->query(\"SELECT * FROM `emails` WHERE \n\t\t\t\t\t\t\t\t\teCode = 'reset-password'\");\n\t\tif($result->num_rows == 1)\n\t { \n\t \treturn $result->fetch_object();\n\t }\n\t else\n\t {\n\t return false;\n\t } \n\n\t}", "title": "" }, { "docid": "f66752edf43ee661f118043a324d85bd", "score": "0.47298127", "text": "function sendEmailWithTemplate($data) {\n $email_tpl_raw = App\\Models\\EmailTemplateModuleTemplate::with(['emailTemplate'])->where('email_template_module_id', $data['email_template_module_id'])->first();\n if(is_null($email_tpl_raw))\n return false;//jika tidak memiliki email template pada module tersebut\n \n $email_tpl = $email_tpl_raw->emailTemplate;\n $data['subject'] = $email_tpl->subject;\n $data['cc'] = explode(',', trim($email_tpl_raw->cc));\n if(isset($data['init_bcc']))\n $data['cc'] = array_merge($data['init_bcc'], $data['cc']);\n \n $data['reply_to'] = [];\n\n $message = $email_tpl->body;\n $send_message = nl2br($message); \n foreach($data['replace_vars'] as $key => $val){\n $send_message = str_replace($key, $val, $send_message);\n }\n\n Mail::send(['html' => 'emails.blank'], ['message_text' => $send_message], function($message) use ($data) {\n $message->to($data['to'])->subject($data['subject']);\n if(count($data['reply_to']))\n $message->setReplyTo($data['reply_to']);\n if(count($data['cc']))\n $message->setBcc($data['cc']);\n });\n\n if( count(Mail::failures()) > 0 ) {\n return false;\n } else {\n return true;\n }\n}", "title": "" }, { "docid": "ff806e45e3d35d94275886f40e4c27ef", "score": "0.47253942", "text": "function invite_anyone_set_email_type( $email_type, $term_check = true ) {\n\t$switched = false;\n\n\tif ( false === bp_is_root_blog() ) {\n\t\t$switched = true;\n\t\tswitch_to_blog( bp_get_root_blog_id() );\n\t}\n\n\tif ( true === $term_check ) {\n\t\t$term = term_exists( $email_type, bp_get_email_tax_type() );\n\t} else {\n\t\t$term = 0;\n\t}\n\n\t// Term already exists so don't do anything.\n\tif ( true === $term_check && $term !== 0 && $term !== null ) {\n\t\tif ( true === $switched ) {\n\t\t\trestore_current_blog();\n\t\t}\n\n\t\treturn;\n\n\t// Create our email situation.\n\t} else {\n\t\t// Set up default email content depending on the email type.\n\t\tswitch ( $email_type ) {\n\t\t\t// Site invitations.\n\t\t\tcase 'invite-anyone-invitation' :\n\t\t\t\t/* translators: do not remove {} brackets or translate its contents. */\n\t\t\t\t$post_title = __( '[{{{site.name}}}] {{{ia.subject}}}', 'invite-anyone' );\n\n\t\t\t\t/* translators: do not remove {} brackets or translate its contents. */\n\t\t\t\t$html_content = __( \"{{{ia.content}}}<br /><hr><a href=\\\"{{{ia.accept_url}}}\\\">Accept or reject this invitation</a> &middot; <a href=\\\"{{{ia.opt_out_url}}}\\\">Opt out of future invitations</a>\", 'invite-anyone' );\n\n\t\t\t\t/* translators: do not remove {} brackets or translate its contents. */\n\t\t\t\t$plaintext_content = __( \"{{{ia.content_plaintext}}}\", 'invite-anyone' );\n\n\t\t\t\t$situation_desc = __( 'A user is invited to join the site by email. Used by the Invite Anyone plugin.', 'invite-anyone' );\n\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Sanity check!\n\t\tif ( false === isset( $post_title ) ) {\n\t\t\tif ( true === $switched ) {\n\t\t\t\trestore_current_blog();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t$id = $email_type;\n\n\t\t$defaults = array(\n\t\t\t'post_status' => 'publish',\n\t\t\t'post_type' => bp_get_email_post_type(),\n\t\t);\n\n\t\t$email = array(\n\t\t\t'post_title' => $post_title,\n\t\t\t'post_content' => $html_content,\n\t\t\t'post_excerpt' => $plaintext_content,\n\t\t);\n\n\t\t// Email post content.\n\t\t$post_id = wp_insert_post( bp_parse_args( $email, $defaults, 'install_email_' . $id ) );\n\n\t\t// Save the situation.\n\t\tif ( ! is_wp_error( $post_id ) ) {\n\t\t\t$tt_ids = wp_set_object_terms( $post_id, $id, bp_get_email_tax_type() );\n\n\t\t\t// Situation description.\n\t\t\tif ( ! is_wp_error( $tt_ids ) ) {\n\t\t\t\t$term = get_term_by( 'term_taxonomy_id', (int) $tt_ids[0], bp_get_email_tax_type() );\n\t\t\t\twp_update_term( (int) $term->term_id, bp_get_email_tax_type(), array(\n\t\t\t\t\t'description' => $situation_desc,\n\t\t\t\t) );\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( true === $switched ) {\n\t\trestore_current_blog();\n\t}\n}", "title": "" }, { "docid": "2f6c8cfabd67f16c21c8a1d19b52518b", "score": "0.47140154", "text": "function certrt_email_student($course, $certrt, $certrecord, $context, $filecontents, $filename) {\n global $USER;\n\n // Get teachers\n if ($users = get_users_by_capability($context, 'moodle/course:update', 'u.*', 'u.id ASC',\n '', '', '', '', false, true)) {\n $users = sort_by_roleassignment_authority($users, $context);\n $teacher = array_shift($users);\n }\n\n // If we haven't found a teacher yet, look for a non-editing teacher in this course.\n if (empty($teacher) && $users = get_users_by_capability($context, 'moodle/course:update', 'u.*', 'u.id ASC',\n '', '', '', '', false, true)) {\n $users = sort_by_roleassignment_authority($users, $context);\n $teacher = array_shift($users);\n }\n\n // Ok, no teachers, use administrator name\n if (empty($teacher)) {\n $teacher = fullname(get_admin());\n }\n\n $info = new stdClass;\n $info->username = fullname($USER);\n $info->certrt = format_string($certrt->name, true);\n $info->course = format_string($course->fullname, true);\n $from = fullname($teacher);\n $subject = $info->course . ': ' . $info->certrt;\n $message = get_string('emailstudenttext', 'certrt', $info) . \"\\n\";\n\n // Make the HTML version more XHTML happy (&amp;)\n $messagehtml = text_to_html(get_string('emailstudenttext', 'certrt', $info));\n\n $tempdir = make_temp_directory('certrt/attachment');\n if (!$tempdir) {\n return false;\n }\n\n $tempfile = $tempdir.'/'.md5(sesskey().microtime().$USER->id.'.pdf');\n $fp = fopen($tempfile, 'w+');\n fputs($fp, $filecontents);\n fclose($fp);\n\n $prevabort = ignore_user_abort(true);\n $result = email_to_user($USER, $from, $subject, $message, $messagehtml, $tempfile, $filename);\n @unlink($tempfile);\n ignore_user_abort($prevabort);\n\n return $result;\n}", "title": "" }, { "docid": "fcab265cd37150529d6bbbe1da67b0ba", "score": "0.4712661", "text": "function emailTemplate($content) {\n\t\treturn $email = '\n\t\t<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\t\t<html xmlns=\"http://www.w3.org/1999/xhtml\">\n\t\t<head>\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n\t\t<title><?php echo $title_for_layout;?></title>\n\t\t<style type=\"text/css\">\n\t\t#outlook a {\n\t\t\tpadding:0;\n\t\t}\n\t\tbody, html {\n\t\t\twidth:100% !important;\n\t\t\t-webkit-text-size-adjust:none;\n\t\t\t margin: 0;\n\t\t\tpadding: 0;\n\t\t}\n\t\ttable td {\n\t\t\tborder-collapse:collapse;\n\t\t}\n\t\t</style>\n\t\t</head>\n\t\t<body>\n\t\t<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n\t\t\t <!-- Body -->\n\t\t\t <tr>\n\t\t\t <td width=\"100%\" bgcolor=\"#fefcef\" align=\"center\">\n\t\t\t\t<table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t <td width=\"600\" align=\"center\" valign=\"top\" bgcolor=\"#fefcef\">\n\t\t\t\t\t\t\t\t<table width=\"600\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td width=\"60\" height=\"100%\" align=\"center\" valign=\"middle\" bgcolor=\"#fefcef\" style=\"line-height:0;\">\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td width=\"478\" height=\"100%\" align=\"center\" valign=\"middle\" bgcolor=\"#fefcef\" style=\"color:#28313d;font-family:Arial, Helvetica, sans-serif;font-size:18px;text-align:left;line-height:18px;padding-top:40px;padding-bottom:40px;\">\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t' . $content .\n\t\t\t\t\t\t\t\t\t\t'\t\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t <td width=\"60\" height=\"100%\" valign=\"middle\" style=\"line-height:0;\" bgcolor=\"#fefcef\">\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t </td>\n\t\t\t\t</tr>\n\t\t\t\t <!-- End Body -->\n\t\t\t\t <!-- Footer 1 -->\n\t\t\t<tr>\n\t\t\t <td width=\"100%\" bgcolor=\"#232629\" align=\"center\">\n\t\t\t\t<table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n\t\t\t\t <tr>\n\t\t\t\t\t\t <td width=\"600\" align=\"center\" valign=\"top\" bgcolor=\"#232629\">\n\t\t\t\t\t\t\t\t<table width=\"600\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td width=\"169\" height=\"100%\" align=\"center\" valign=\"middle\" bgcolor=\"#232629\" style=\"line-height:0;padding-top:60px;padding-bottom:50px;\">\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td width=\"65\" height=\"100%\" align=\"center\" valign=\"middle\" bgcolor=\"#232629\" style=\"line-height:0;padding-left:5px; padding-right:5px;padding-top:60px;padding-bottom:50px;\">\n\t\t\t\t\t\t\t\t\t\t <a href=\"https://www.facebook.com/amplifydvoices\" target=\"_blank\" title=\"Join us on Facebook\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;color:#ffffff;text-decoration:none;line-height:0;\">\n\t\t\t\t\t\t\t\t\t\t\t<img alt=\"Facebook\" style=\"border:none;display:block;line-height:0;\" src=\"https://dl.dropboxusercontent.com/u/2022467/Amplifyd/icon-facebook.png\" />\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t <td width=\"65\" height=\"100%\" align=\"center\" valign=\"middle\" bgcolor=\"#232629\" style=\"line-height:0;padding-left:5px; padding-right:5px;padding-top:60px;padding-bottom:50px;\">\n\t\t\t\t\t\t\t\t\t\t<a href=\"https://twitter.com/amplifyddotcom\" target=\"_blank\" title=\"Join us on Twitter\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;color:#ffffff;text-decoration:none;line-height:0;\">\n\t\t\t\t\t\t\t\t\t\t\t<img alt=\"Twitter\" style=\"border:none;display:block;line-height:0;\" src=\"https://dl.dropboxusercontent.com/u/2022467/Amplifyd/icon-twitter.png\" />\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t <td width=\"65\" height=\"100%\" align=\"center\" valign=\"middle\" bgcolor=\"#232629\" style=\"line-height:0;padding-left:5px; padding-right:5px;padding-top:60px;padding-bottom:50px;\">\n\t\t\t\t\t\t\t\t\t\t\t <a href=\"https://plus.google.com/u/0/113217282161693429638\" target=\"_blank\" title=\"Join us on Google\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;color:#ffffff;text-decoration:none;line-height:0;\">\n\t\t\t\t\t\t\t\t\t\t\t<img alt=\"Google\" style=\"border:none;display:block;line-height:0;\" src=\"https://dl.dropboxusercontent.com/u/2022467/Amplifyd/icon-google.png\" />\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t <td width=\"65\" height=\"100%\" align=\"center\" valign=\"middle\" bgcolor=\"#232629\" style=\"line-height:0;padding-left:5px; padding-right:5px;padding-top:60px;padding-bottom:50px;\">\n\t\t\t\t\t\t\t\t\t\t\t <a href=\"http://amplifyd.com/blog\" target=\"_blank\" title=\"Read our Blog\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;color:#ffffff;text-decoration:none;line-height:0;\">\n\t\t\t\t\t\t\t\t\t\t\t<img alt=\"Blog\" style=\"border:none;display:block;line-height:0;\" src=\"https://dl.dropboxusercontent.com/u/2022467/Amplifyd/icon-blog.png\" />\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t <td width=\"169\" height=\"100%\" valign=\"middle\" style=\"line-height:0;\" bgcolor=\"#232629\">\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t </table>\n\t\t\t\t </td>\n\t\t\t\t</tr>\n\t\t\t\t <!-- End Footer 1 -->\n\t\t\t\t <!-- Footer 2 -->\n\t\t <tr>\n\t\t\t <td width=\"100%\" bgcolor=\"#232629\" align=\"center\">\n\t\t\t\t<table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t <td width=\"600\" align=\"center\" valign=\"top\" bgcolor=\"#232629\">\n\t\t\t\t\t\t\t\t<table width=\"600\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td width=\"100%\" height=\"100%\" align=\"center\" valign=\"middle\" bgcolor=\"#232629\" style=\"line-height:0;padding-top:0px;padding-bottom:50px;\">\n\t\t\t\t\t\t\t\t\t\t <a href=\"http://amplifyd.com/\" target=\"_blank\" title=\"Visit Website\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:14px;font-weight:bold;color:#ffffff;text-decoration:none;line-height:0;\">\n\t\t\t\t\t\t\t\t\t\t\t<img alt=\"Amplifyd\" style=\"border:none;display:block;line-height:0;\" src=\"https://dl.dropboxusercontent.com/u/2022467/Amplifyd/logo-grey.png\" />\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t </td>\n\t\t\t</tr>\n\t\t\t\t <!-- End Footer 2 -->\n\t\t\t\t<!-- Footer 3 -->\n\t\t\t<tr>\n\t\t\t <td width=\"100%\" bgcolor=\"#1f2225\" align=\"center\">\n\t\t\t\t<table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n\t\t\t\t <tr>\n\t\t\t\t\t\t <td width=\"600\" align=\"center\" valign=\"top\" bgcolor=\"#1f2225\">\n\t\t\t\t\t\t\t\t<table width=\"600\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td width=\"100%\" height=\"35px\" align=\"center\" valign=\"middle\" bgcolor=\"#1f2225\" style=\"line-height:0;padding-top:5px;padding-bottom:0px;color:#8e959c;\">\n\t\t\t\t\t\t\t\t\t\t <a href=\"http://amplifyd.com/users/login\" target=\"_blank\" title=\"Login\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:12px;color:#8e959c;text-decoration:none;line-height:0;\">\n\t\t\t\t\t\t\t\t\t\t\t\tLogin\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t|\n\t\t\t\t\t\t\t\t\t\t<a href=\"http://amplifyd.com/becoming-a-caller\" target=\"_blank\" title=\"Become a Caller\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:12px;color:#8e959c;text-decoration:none;line-height:0;\">\n\t\t\t\t\t\t\t\t\t\t\t\tBecome a Caller \n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t|\n\t\t\t\t\t\t\t\t\t\t<a href=\"http://amplifyd.com/becoming-a-campaigner\" target=\"_blank\" title=\"Start a Campaign\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:12px;color:#8e959c;text-decoration:none;line-height:0;\">\n\t\t\t\t\t\t\t\t\t\t\t\tStart a Campaign\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t|\n\t\t\t\t\t\t\t\t\t\t <a href=\"http://amplifyd.com/campaigns\" target=\"_blank\" title=\"All Campaigns\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:12px;color:#8e959c;text-decoration:none;line-height:0;\">\n\t\t\t\t\t\t\t\t\t\t\t\tAll Campaigns\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t|\n\t\t\t\t\t\t\t\t\t\t <a href=\"http://amplifyd.com/contact\" target=\"_blank\" title=\"Contact\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:12px;color:#8e959c;text-decoration:none;line-height:0;\">\n\t\t\t\t\t\t\t\t\t\t\t\tContact \n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t\t <!-- End Footer 3 -->\n\t\t\t </table> \n\t\t\t</td>\n\t\t </tr>\n\t\t</table>\n\t\t</body>\n\t\t</html>';\n\t}", "title": "" }, { "docid": "a11c351ac1d79b23c5ce46277237998d", "score": "0.47056574", "text": "public function plagStuckToPersonalEmail($errortype, $details)\n { // echo $errortype; print_r($details); exit;\n $object = \"File stuck in the Plagiarism stage\";\n $ccmailid ='[email protected]';\n if($errortype == 'php'){\n $mailid = '[email protected]';\n $touser = 'Chandu';\n }\n if($errortype == 'ruby'){\n $mailid = '[email protected]';\n $touser = 'Manohar';\n }\n if($errortype == 'writer'){\n $mailid = $details['aocreateduseremail'];\n $touser = $details['aocreateduser'];\n }\n if($errortype == 'php&ruby'){\n $mailid = '[email protected]';\n $bccmailid = '[email protected]';\n $touser = 'Chandu';\n }\n $text_mail=\"<p>Hi \".$touser.\",<br><br>\n The details for the file stuck in the plagiarism stage !<br><br>\n link to palgiarism stage : <a href=\\\"http://admin-test.edit-place.co.uk/proofread/stage-articles?submenuId=ML3-SL11&aoId=\".$details['aoId'].\"\\\">Stage Plagiarism</a><br><br>\n link to palgiarism stage : <a href=\\\"http://admin-test.edit-place.co.uk/proofread/plag-stuck-arts?submenuId=ML3-SL13\\\">List of stuck up files</a><br><br>\n Comments : \".$details['comments'].\"<br><br>\n Ao title : \".$details['aotitle'].\"<br>\n Article title : \".$details['arttitle'].\"<br><br>\n Cordialement,<br>\n <br>\n Toute l'&eacute;quipe d&rsquo;Edit-place<br><br> </p>\";\n if($this->getConfiguration('mail_from') == '')\n $mail_from = \"[email protected]\";\n else\n $mail_from = $this->getConfiguration('mail_from');\n if($this->getConfiguration('critsend') == 'yes')\n {\n critsendMail($mail_from, $mailid, $object, $text_mail);\n return true;\n }\n else\n {\n $mail = new Zend_Mail();\n $mail->addHeader('Reply-To',$mail_from);\n $mail->setBodyHtml($text_mail)\n ->setFrom($mail_from)\n ->addTo($mailid)\n ->addCc($ccmailid)\n //->addCc('[email protected]')\n ->addCc('[email protected]')\n ->addBcc($ccmailid)\n ->setSubject($object);\n if($mail->send())\n return true;\n }\n }", "title": "" }, { "docid": "caeff5557cc95ee3951fd977ff3ae0c5", "score": "0.46909344", "text": "public function setSubjectType($subjectType);", "title": "" }, { "docid": "3cd495ac81448f580161a0830cdde49d", "score": "0.46817496", "text": "function sendEmails($template, $emailArray, $sender, $data=null) {\r\n\t\t$emailFrom = $sender['email'];\r\n\t\t$emailFromName = $sender['name'];\r\n\t\tif (!$data) {\r\n\t\t\t$data = array();\r\n\t\t}\r\n\t\t//if (isset($_REQUEST['send']) || !isset($_SERVER[\"SERVER_NAME\"])) {\r\n\t\t$debug=true;\r\n\t\tif ($debug) {\r\n\t\t\tforeach($emailArray as $emailData) {\r\n\t\t\t\t$emailTo = $emailData['email'];\r\n\t\t\t\t$emailToName = $emailData['name'];\r\n\t\t\t\t// Add this information to whatever else is in $data\r\n\t\t\t\t$data[\"toName\"]=$emailToName;\r\n\t\t\t\t$data[\"fromName\"] = $emailFromName;\r\n\t\t\t\t$data[\"fromEmail\"] = $emailFrom;\r\n\t\t\t\techo \"<b>Email: \".$emailTo.\"</b><br/><br/>\".$this->emailOps->fetchEmail($template, $data).\"<hr/>\";\r\n\t\t\t\t//echo \"<b>Email: $emailTo</b> to $emailToName from $emailFromName, $emailFrom<br/><br/><hr/>\";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tforeach($emailArray as $emailData) {\r\n\t\t\t\t$emailTo = $emailData['email'];\r\n\t\t\t\t$emailToName = $emailData['name'];\r\n\t\t\t\t// Add this information to whatever else is in $data\r\n\t\t\t\t$data[\"toName\"] = $emailToName;\r\n\t\t\t\t$data[\"fromName\"] = $emailFromName;\r\n\t\t\t\t$data[\"fromEmail\"] = $emailFrom;\r\n\t\t\t\t$dataArray[] = array(\"to\" => $emailTo\r\n\t\t\t\t\t\t\t\t\t,\"data\" => $data\r\n\t\t\t\t\t\t\t\t\t,\"cc\" => array($emailFrom)\r\n\t\t\t\t\t\t\t\t\t,\"bcc\" => array($adminEmail)\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t}\r\n\t\t\t// Note that sendEmails ignores the first parameter which is supposed to be $from. It picks up $from in the template header.\r\n\t\t\t// I should send back any errors generated - or should I handle them here?\r\n\t\t\treturn $this->emailOps->sendEmails('', $template, $dataArray);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "15ebcc9cd29ce8230c4cdb600a68c4ab", "score": "0.4680788", "text": "public function setMailSubject($mail_subject);", "title": "" }, { "docid": "a0691bc1de787cc74430165a391dff43", "score": "0.46648705", "text": "public function setTemplate($template)\n {\n $tempPath = $this->_config->email->templatesPath;\n $this->_template = $template;\n $myView = new Zend_View;\n $myView->setScriptPath($tempPath);\n $hasContent = false;\n\n // compile html template if available\n $fileName = 'html.'.$template;\n $filePath = $tempPath.'/'.$fileName;\n\n if ( is_file($filePath) ) {\n $this->_logger->info('Custom_Email::setTemplate(): Rendering HTML \"' . $template . '\" template.');\n $viewHtml = clone $myView;\n $this->_body_html = $this->applyTokens($viewHtml, $fileName);\n $hasContent = true;\n }\n\n // compile plain text template if available\n $fileName = 'plain.'.$template;\n $filePath = $tempPath.'/'.$fileName;\n\n if ( is_file($filePath) ) {\n $this->_logger->info('Custom_Email::setTemplate(): Rendering plain text \"' . $template . '\" template.');\n $viewPlain = clone $myView;\n $this->_body_plain = $this->applyTokens($viewPlain,$fileName);\n $hasContent = true;\n }\n \n if ( !$hasContent ) {\n $this->_logger->err('Custom_Email::setTemplate(' . $template . '): Unable to find e-mail template.');\n }\n }", "title": "" }, { "docid": "4a997e042714efc16fed8db968a8d71c", "score": "0.4655288", "text": "private function parse_subjectMap() {\n\t foreach($this->graph->resourcesMatching(NS::expand(\"rr:subjectMap\")) as $key => $TripleMap)\n\t {\n \t\t//echo \"rr:subjectMap \".$TripleMap.\"\\n\";\n\t $tmp = array_search($TripleMap, $this->mapping);\n\t if(!$tmp)\n\t {\n\t $this->mapping[] = $TripleMap;\n\t }\n\t }\n\t}", "title": "" }, { "docid": "89037f3afd625dabe13d8d643d6eb8f4", "score": "0.4653487", "text": "function Send($vType,$vSection,$ToEmail,$bodyArr,$postArr)\n\t{\n\t\tglobal $obj,$MAIL_FOOTER,$SITE_URL,$SITE_TITLE,$ADMIN_EMAIL, $site_image_url;\n\t\t$sql=\"SELECT iFormatId ,vSub ,tBody FROM email_template WHERE vType='$vType' AND eSection = '$vSection' \";\n\t\t$db_email=$obj->MySQLSelect($sql);\n\t\t\n\t\t//headers information\n\t\t$headers = \"MIME-Version: 1.0\\r\\n\";\n\t\t$headers .= \"Content-type: text/html; charset=iso-8859-1\\r\\n\";\n\t\t$headers .= 'From: '.$SITE_TITLE.' <'.trim($ADMIN_EMAIL).'>' . \"\\r\\n\".\n\t\t\t\t\t'Reply-To: '.$SITE_TITLE.' <'.trim($ADMIN_EMAIL).'>'. \"\\r\\n\".\n\t\t\t\t\t'Return-Path: '.$SITE_TITLE.' <'.trim($ADMIN_EMAIL).'>' . \"\\r\\n\".\n\t\t\t\t\t'X-Mailer: PHP/' . phpversion();\n\n\t\t$Subject = strtr( $db_email[0][\"vSub\"], \"\\r\\n\" , \" \" );\n\t\t$this->body = $db_email[0]['tBody'];\n\n\t\t$this->body = nl2br(str_replace($bodyArr,$postArr, $this->body));\n\t\t//print_r($this->body);exit;\n\t\t$To \t\t= $ToEmail;\n\t\t\n\t\t$htmlMail = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\">\n\t\t\t\t\t<head>\n\t\t\t\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n\t\t\t\t\t<title>'.$this->xheaders['Subject'].'</title>\n\t\t\t\t\t<style>\n\t\t\t\t\tbody{color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:12px;}\n\t\t\t\t\t</style>\n\t\t\t\t\t</head>\n\t\t\t\t\t<body>\n\t\t\t\t\t<table width=\"610\" border=\"0\" bgcolor=\"#F7FFED\" cellspacing=\"0\" cellpadding=\"0\" style=\"border:3px solid #E1693F;\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><img src=\"'.$site_image_url.'logo.gif\" alt=\"\"/></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<table width=\"90%\" border=\"0\" align=\"center\" cellspacing=\"0\" cellpadding=\"0\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>'.$this->body.'</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t\t</body>\n\t\t\t\t\t</html>';\n\t\t $this->body=$htmlMail; \n\t\t #print_r($htmlMail);exit;\n\t\t //echo \"<pre>\";\n\t\t //echo $this->body;\n\t\t //exit;\n //echo $To.\"<hr>\".$Subject.\"<hr>\".$this->body.\"<hr>\".$headers.\"<hr>\";exit;\n\t\t\treturn $res = @mail($To,$Subject,$this->body,$headers);\n\t}", "title": "" }, { "docid": "b8987c4c09a16ba12450ceb85a640808", "score": "0.46525097", "text": "function da_single_templates( $template = '' ) {\n\tglobal $post;\n\t$meta = get_post_meta( $post->ID, 'campaigns', true );\n\tif ( 1 === $meta ) {\n\t\t$template = locate_template(\n\t\t\tarray( 'single-campaigns.php', $template ),\n\t\t\tfalse\n\t\t);\n\t}\n\treturn $template;\n}", "title": "" }, { "docid": "6deea2ff40860abc68357b08e6c1fc8f", "score": "0.4651379", "text": "public function guessEmailSubject()\n {\n $subjects = $this->subjects()->get();\n if ($subjects->isEmpty()) {\n return null;\n }\n\n $priorities = $subjects->pluck('key');\n $count = count($priorities);\n $num = mt_rand(0, array_sum($priorities));\n\n $i = $n = 0;\n while ($i < $count) {\n $n += $priorities[$i];\n if ($n >= $num) break;\n $i++;\n }\n\n return $subjects[$i] ? $subjects[$i] : null;\n }", "title": "" }, { "docid": "c87155b45b72d8189c7bcae3b8aaf59e", "score": "0.46437365", "text": "function get_email_template( $template_name ) {\n\t$query_args = array(\n\t\t'post_type' => EMAIL_POST_TYPE,\n\t\t'orderby' => 'date',\n\t\t'order' => 'DESC',\n\t\t'numberposts' => 1,\n\t\t'meta_key' => 'wpf-stripe_email-template-name',\n\t\t'meta_value' => $template_name,\n\t);\n\n\t$result = get_posts( $query_args );\n\n\tif ( empty( $result ) ) {\n\t\treturn false;\n\t}\n\n\t$current_template = array_shift( $result );\n\n\treturn $current_template;\n}", "title": "" }, { "docid": "86c92dce5e07d0fe0fe8cefbf151be79", "score": "0.4640935", "text": "function certrt_email_teachers($course, $certrt, $certrecord, $cm) {\n global $USER, $CFG, $DB;\n\n if ($certrt->emailteachers == 0) { // No need to do anything\n return;\n }\n\n $user = $DB->get_record('user', array('id' => $certrecord->userid));\n\n if ($teachers = certrt_get_teachers($certrt, $user, $course, $cm)) {\n $strawarded = get_string('awarded', 'certrt');\n foreach ($teachers as $teacher) {\n $info = new stdClass;\n $info->student = fullname($USER);\n $info->course = format_string($course->fullname,true);\n $info->certrt = format_string($certrt->name,true);\n $info->url = $CFG->wwwroot.'/mod/certrt/report.php?id='.$cm->id;\n $from = $USER;\n $postsubject = $strawarded . ': ' . $info->student . ' -> ' . $certrt->name;\n $posttext = certrt_email_teachers_text($info);\n $posthtml = ($teacher->mailformat == 1) ? certrt_email_teachers_html($info) : '';\n\n @email_to_user($teacher, $from, $postsubject, $posttext, $posthtml); // If it fails, oh well, too bad.\n }\n }\n}", "title": "" }, { "docid": "6d3fe21cd955a83b48a633c33d80f33f", "score": "0.46401292", "text": "public function getEmailTemplate()\n {\n return $this->emailTemplate;\n }", "title": "" }, { "docid": "432155f867eea75280e6894984136dca", "score": "0.46371743", "text": "public function getHTMLSimplePageSubjectTest() {\n\n\t\t$html = '<h4>' . _t('SEO.SEOSubjectCheckIntro', 'Your page subject was found in:'). '</h4>';\n\t\t$html .= '<ul id=\"simple_pagesubject_test\">';\n\t\t$html .= '<li>' . _t('SEO.SEOSubjectCheckFirstParagraph', 'First paragraph:'). ' ';\n\t\t$html .= ($this->checkPageSubjectInFirstParagraph()) ? '<span class=\"simple_pagesubject_yes\">' . _t('SEO.SEOYes', 'Yes') . '</span>' : '<span class=\"simple_pagesubject_no\">' . _t('SEO.SEONo', 'No') . '</span>';\n\t\t$html .= '</li>';\n\t\t$html .= '<li>' . _t('SEO.SEOSubjectCheckPageTitle', 'Page title:'). ' ';\n\t\t$html .= ($this->checkPageSubjectInTitle()) ? '<span class=\"simple_pagesubject_yes\">' . _t('SEO.SEOYes', 'Yes') . '</span>' : '<span class=\"simple_pagesubject_no\">' . _t('SEO.SEONo', 'No') . '</span>';\n\t\t$html .= '</li>';\n\t\t$html .= '<li>' . _t('SEO.SEOSubjectCheckPageContent', 'Page content:'). ' ';\n\t\t$html .= ($this->checkPageSubjectInContent()) ? '<span class=\"simple_pagesubject_yes\">' . _t('SEO.SEOYes', 'Yes') . '</span>' : '<span class=\"simple_pagesubject_no\">' . _t('SEO.SEONo', 'No') . '</span>';\n\t\t$html .= '</li>'; \n\t\t$html .= '<li>' . _t('SEO.SEOSubjectCheckPageURL', 'Page URL:'). ' ';\n\t\t$html .= ($this->checkPageSubjectInUrl()) ? '<span class=\"simple_pagesubject_yes\">' . _t('SEO.SEOYes', 'Yes') . '</span>' : '<span class=\"simple_pagesubject_no\">' . _t('SEO.SEONo', 'No') . '</span>';\n\t\t$html .= '</li>'; \n\t\t$html .= '<li>' . _t('SEO.SEOSubjectCheckPageMetaDescription', 'Page meta description:'). ' ';\n\t\t$html .= ($this->checkPageSubjectInMetaDescription()) ? '<span class=\"simple_pagesubject_yes\">' . _t('SEO.SEOYes', 'Yes') . '</span>' : '<span class=\"simple_pagesubject_no\">' . _t('SEO.SEONo', 'No') . '</span>';\n\t\t$html .= '</li>'; \n\n\t\t$html .= '</ul>';\n\t\treturn $html;\n\n\t}", "title": "" }, { "docid": "cc7835361a03626d97fef3c0f4aa62bf", "score": "0.46287784", "text": "public function __construct($type, $template, $email_params = array())\n {\n $this->type = $type;\n $this->template = $template;\n $this->email_params = $email_params;\n }", "title": "" }, { "docid": "a03712d364ed74a496387d7b18c9527f", "score": "0.46254185", "text": "protected function makeEmails()\n {\n }", "title": "" } ]
69f2d557e5a87957f7fdaf7a71e1cfe8
Some values must be encoded.
[ { "docid": "dbd64c7eb1bda8e681750d78a052cdf9", "score": "0.0", "text": "private function log(string $type, string $message, string $file = null, int $line = null, int $col = null): void\n {\n $message = strtr($message, self::ESCAPED_DATA);\n\n if (!$file) {\n // No file provided, output the message solely:\n $this->output->writeln(sprintf('::%s::%s', $type, $message));\n\n return;\n }\n\n $this->output->writeln(sprintf('::%s file=%s,line=%s,col=%s::%s', $type, strtr($file, self::ESCAPED_PROPERTIES), strtr($line ?? 1, self::ESCAPED_PROPERTIES), strtr($col ?? 0, self::ESCAPED_PROPERTIES), $message));\n }", "title": "" } ]
[ { "docid": "8b32aac104939a480e1a41f05fa834df", "score": "0.7597058", "text": "public function shouldEncode();", "title": "" }, { "docid": "5bfce763b677624a81808432dfe0f145", "score": "0.65162116", "text": "public function encodeEncodesCorrectlyDataProvider() {}", "title": "" }, { "docid": "e4cdcaebf6be93d8871f6ac1ff0fba8b", "score": "0.6472516", "text": "public function getValueNeedsEncoding()\n\t{\n\t\treturn $this->valueNeedsEncoding;\n\t}", "title": "" }, { "docid": "40dd6038ac18d51700b7e6c15a40d1a0", "score": "0.6073958", "text": "public function stdWrap_encodeForJavaScriptValueDataProvider() {}", "title": "" }, { "docid": "a910d4ad7e7f360efdc16d1684cb49e1", "score": "0.5943684", "text": "public abstract function encode($data);", "title": "" }, { "docid": "a910d4ad7e7f360efdc16d1684cb49e1", "score": "0.5943684", "text": "public abstract function encode($data);", "title": "" }, { "docid": "d7cbb2f832998d163dd395dc56c28621", "score": "0.5897711", "text": "public function testEncodeDoesNotDoubleEncodeExistingEncodings(): void\n {\n $encodedHttpUrl = \"http%3A%2F%2Fdummy-website.com%2Fusers%2F1%3Ffirst_name%3DJohn%26last_name%3DDoe%23profile\";\n $this->assertEquals($encodedHttpUrl, Rfc3986::encode($encodedHttpUrl));\n }", "title": "" }, { "docid": "dea068a6e949e401f9a94503832d14c3", "score": "0.5882014", "text": "public function testIsEncoded()\n {\n $array = $this->getDummyHmacData();\n\n $this->assertFalse($this->entity->isEncoded());\n\n $this->entity->setHmac($array['hmac']);\n\n $this->assertTrue($this->entity->isEncoded());\n }", "title": "" }, { "docid": "25d598e614f637d0cd921dca450a5ae6", "score": "0.58484", "text": "public function testEncodeWithNoExclusions(): void\n {\n $testCases = [\n // Spaces\n \"A B C\" => \"A%20B%20C\",\n // Path like strings\n \"A/B/C\" => \"A%2FB%2FC\",\n \"A/B/C/\" => \"A%2FB%2FC%2F\",\n \"/A/B/C\" => \"%2FA%2FB%2FC\",\n \"/A/B/C/\" => \"%2FA%2FB%2FC%2F\",\n // A boolean expression\n \"5 * (2 + 3) != 16\" => \"5%20%2A%20%282%20%2B%203%29%20%21%3D%2016\",\n // An email address\n \"[email protected]\" => \"John.Doe%40gmail.com\",\n // A HTTP URI\n \"http://dummy-website.com/users/1?first_name=John&last_name=Doe#profile\"\n => \"http%3A%2F%2Fdummy-website.com%2Fusers%2F1%3Ffirst_name%3DJohn%26last_name%3DDoe%23profile\"\n ];\n\n foreach ($testCases as $testCase => $expected) {\n $this->assertEquals($expected, Rfc3986::encode($testCase));\n }\n }", "title": "" }, { "docid": "9656d66ce3a27871c9a49aa0cf5cf5fc", "score": "0.58463526", "text": "public function validDataTypes();", "title": "" }, { "docid": "38064f531996499a6a6b23f529e57e49", "score": "0.5830806", "text": "public static function canBeEncoded($value)\n {\n if (is_string($value) || $value instanceof StringCollection) {\n return true;\n }\n // We need to check that the array contains only scalar values or other arrays\n if (is_array($value)) {\n foreach ($value as $item) {\n if (!self::canBeEncoded($item)) {\n return false;\n }\n }\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0d7500a65640e5375f1e4f5cbfcefa34", "score": "0.58161193", "text": "public function testEncodeForIndividualReservedCharacters(): void\n {\n foreach (array_merge(Rfc3986::GEN_DELIMS, Rfc3986::SUB_DELIMS) as $reservedChar) {\n $expected = \"%\" . strtoupper(bin2hex($reservedChar));\n $this->assertEquals($expected, Rfc3986::encode($reservedChar));\n }\n }", "title": "" }, { "docid": "49e298ec3b266cef4bc8434181c81a0b", "score": "0.5791389", "text": "public function encode($data);", "title": "" }, { "docid": "78e978cf03c166189d952ce8961f2d04", "score": "0.57283604", "text": "public function testEncodeForAllReservedCharactersAppended(): void\n {\n\n $reservedSet = array_merge(Rfc3986::GEN_DELIMS, Rfc3986::SUB_DELIMS);\n\n $expected = implode(\n \"\",\n array_map(\n function (string $reservedChar) {\n return \"%\" . strtoupper(bin2hex($reservedChar));\n },\n $reservedSet\n )\n );\n\n $this->assertEquals($expected, Rfc3986::encode(implode(\"\", $reservedSet)));\n }", "title": "" }, { "docid": "663667b6b752a46cd8b34716bc0a8109", "score": "0.56693596", "text": "public function testEncodeWithExclusions(): void\n {\n $testCases = [\n // Spaces\n \"A B C\" => [\" \"],\n // Path like strings\n \"A/B/C\" => [\"/\"],\n \"A/B/C/\" => [\"/\"],\n \"/A/B/C\" => [\"/\"],\n \"/A/B/C/\" => [\"/\"],\n // A boolean expression\n \"5 * (2 + 3) != 16\" => [\" \", \"*\", \"+\", \"=\", \"!\", \"(\", \")\"],\n // An email address\n \"[email protected]\" => [\"@\"],\n // A HTTP URI\n \"http://dummy-website.com/users/1?first_name=John&last_name=Doe#profile\" => [\":\", \"/\", \"?\", \"=\", \"&\", \"#\"]\n ];\n\n foreach ($testCases as $testCase => $exclusions) {\n $this->assertEquals($testCase, Rfc3986::encode($testCase, $exclusions));\n }\n }", "title": "" }, { "docid": "32e5f33935581efb74b5c513839601a0", "score": "0.56293", "text": "abstract function encodeData(): array;", "title": "" }, { "docid": "ffe9a130f3f3240802edc8c0b37e1dda", "score": "0.56130284", "text": "abstract protected function allowedValuesDescription();", "title": "" }, { "docid": "790372f8ca039f70844255326785597f", "score": "0.56017566", "text": "public function encode(): array;", "title": "" }, { "docid": "2d5734d92bd4fc45ae4d8afafd017bf1", "score": "0.55924135", "text": "public function testRegistrationValuesContainSpecialCharacters(): void { }", "title": "" }, { "docid": "716f7ddeb6e60d8cc4d0490b89feacc1", "score": "0.5540908", "text": "public function testSetValuesSafeCanAcceptAnything()\n {\n $article = new Article($this->conn);\n $values = [\n 'id' => 12,\n 'title' => 'Foo',\n 'slug' => 'foo',\n 'created_at' => new \\DateTime(),\n 'updated_at' => new \\DateTime(),\n ];\n $article->setValuesSafe($values);\n $this->assertSame($values, $article->getValues());\n }", "title": "" }, { "docid": "9d25732d28244ddba1d1e3d4715b6c3e", "score": "0.5532093", "text": "private function safe_encode($data) {\r\n if (is_array($data)) {\r\n return array_map(array($this, 'safe_encode'), $data);\r\n } else if (is_scalar($data)) {\r\n return str_ireplace(\r\n array('+', '%7E'),\r\n array(' ', '~'),\r\n rawurlencode($data)\r\n );\r\n } else {\r\n return '';\r\n }\r\n }", "title": "" }, { "docid": "32a76880215ad1f33b4ad8993ed84fbc", "score": "0.5492378", "text": "static public function encode($data);", "title": "" }, { "docid": "860693d1924762709da5da89b36421e6", "score": "0.54632455", "text": "public function encodeData($data) {\n\t\treturn parent::encode($data);\n\t}", "title": "" }, { "docid": "a1d2d436ecb0e74dafbf9380778ec6a5", "score": "0.5450003", "text": "abstract function encode($s);", "title": "" }, { "docid": "b7e8182bc69e24047a9a3565092ad817", "score": "0.5442832", "text": "abstract protected function encode($map);", "title": "" }, { "docid": "c2398342326f92524ce8bf90c2219e70", "score": "0.5437063", "text": "function encode($mixed)\r\n {\r\n switch (gettype($mixed)) {\r\n case is_null($mixed):\r\n return $this->encode_string('');\r\n case 'string':\r\n return $this->encode_string($mixed);\r\n case 'integer':\r\n case 'double':\r\n return $this->encode_int(round($mixed));\r\n case 'array':\r\n return $this->encode_array($mixed);\r\n default:\r\n\t\t\tthrow new File_Bittorrent2_Exception('Unsupported type. Variable must be one of \\'string\\', \\'integer\\', \\'double\\' or \\'array\\'', File_Bittorrent2_Exception::encode);\r\n }\r\n }", "title": "" }, { "docid": "29fad52cbf18b993d273569efc0159ae", "score": "0.54176253", "text": "public function testIsEncodable()\n {\n $array = $this->getDummyHmacData();\n\n $this->assertFalse($this->entity->isEncodable());\n\n $this->entity->setData($array['data']);\n $this->entity->setKey($array['key']);\n $this->entity->setTime($array['time']);\n\n $this->assertTrue($this->entity->isEncodable());\n }", "title": "" }, { "docid": "0727948ecc09c2d893c901c622a8a6df", "score": "0.5378757", "text": "public function encode () {\r\n $data = call_user_func('get_object_vars', $this);\r\n\r\n foreach ($data as $key => $value) {\r\n // If any of the values are null, remove them.\r\n if ($value === null && !in_array($key, static::$_mandatory)) {\r\n unset($data[$key]);\r\n continue;\r\n }\r\n\r\n // If these are lists, handle differently.\r\n if (!in_array($key, static::$_lists)) continue;\r\n\r\n // If the list is empty and not mandatory, remove it.\r\n if (empty($value) && !in_array($key, static::$_mandatory)) {\r\n unset($data[$key]);\r\n continue;\r\n }\r\n\r\n // Convert any special objects into associative arrays.\r\n foreach ($value as $field_key => $field) {\r\n $data[$key][$field_key] = method_exists($field, 'encode') ? $field->encode() : $field;\r\n }\r\n\r\n // Encode the list.\r\n $data[$key] = json_encode($value);\r\n }\r\n\r\n return $data;\r\n }", "title": "" }, { "docid": "94ceda4adee0cd1f0292127ec3b35d60", "score": "0.53602576", "text": "public static function invalidEncodedPolylineValue()\n {\n return new static('The encoded polyline value must be a string value.');\n }", "title": "" }, { "docid": "aec07ddfe22d9b58d1d9078c127f72e8", "score": "0.53455144", "text": "public function testEncodeImmuneCharsForXML()\n {\n $immune = array();\n $this->assertEquals(\n 'testTEST0123&#x2c;&#x2e;&#x2d;&#x5f;&#x20;',\n $this->_xmlEntityCodec->encode(\n $immune,\n 'testTEST0123,.-_ '\n )\n );\n }", "title": "" }, { "docid": "0a8526d5a9fc17936b598976e381dcab", "score": "0.53431845", "text": "function encode(String $data)\n\t{\n\n\t\treturn base64_encode($data) ?? false;\n\n\t}", "title": "" }, { "docid": "aeb31b51f270fbf3cbf7dbe8edc86a25", "score": "0.5340882", "text": "public function getAllowedValues();", "title": "" }, { "docid": "78e1064ac8974a7ce691f8428621ed17", "score": "0.5338855", "text": "public function testEncodeTypeException()\n {\n $this->expectException(\\InvalidArgumentException::class);\n\n TypifiedValue::encode(new \\stdClass());\n }", "title": "" }, { "docid": "7c11293f7e4cab5cc43bdfd6a02023d3", "score": "0.5323936", "text": "public static function content_encoding()\n {\n }", "title": "" }, { "docid": "12e6eb518af6fcb048a52ebb2fbe147c", "score": "0.52731025", "text": "function _encoding($val)\n{\n\tif ( is_string($val) )\n\t\t$val = iconv('cp1251', 'utf-8', $val);\n\t\n\tif ( is_array($val) )\n\t\tforeach ($val as $k => $v)\n\t\t\t\t$val[$k] = _encoding($v);\n\t\t\t\t\n\treturn $val;\n}", "title": "" }, { "docid": "3cd5a3cf061492baaf4aa869fe2c8671", "score": "0.5263927", "text": "public function getAllowEncoding()\n {\n return $this->allowEncoding;\n }", "title": "" }, { "docid": "3cd5a3cf061492baaf4aa869fe2c8671", "score": "0.5263927", "text": "public function getAllowEncoding()\n {\n return $this->allowEncoding;\n }", "title": "" }, { "docid": "8f3a29fe5628a3396bef9e6fc2cb0439", "score": "0.52612334", "text": "public function testUpdateValuesContainSpecialCharacters(): void { }", "title": "" }, { "docid": "26f8b851bcee7b149466d6f4d9b7a887", "score": "0.525705", "text": "public function testEqualsAndQuestionAndUnderscoreAreEncoded()\n {\n $encoder = new QpMimeHeaderEncoder();\n $this->assertEquals('=3D=3F=5F', $encoder->encodeString('=?_'), 'Chars =, ? and _ (underscore) may not appear as per RFC 2047.');\n }", "title": "" }, { "docid": "7f80117a653f2483074b6cc6766c4d37", "score": "0.52428573", "text": "public function testNoEncodeImmuneCharsForXML()\n {\n $this->assertEquals(\n 'testTEST0123,.-_ ',\n $this->_xmlEntityCodec->encode(\n $this->_immune_xml,\n 'testTEST0123,.-_ '\n )\n );\n }", "title": "" }, { "docid": "a2245086a7239afe06a584fc546a23b4", "score": "0.5237233", "text": "abstract public function encode(array $options = array());", "title": "" }, { "docid": "31f7720bcd0cf66c267c77d512f785a5", "score": "0.52353376", "text": "public function validateISO() {\n return $this->_valid['mti'] && $this->_valid['bitmap'] && $this->_valid['data'];\n }", "title": "" }, { "docid": "5ad7cfe13d30248e8c5297e7180e30aa", "score": "0.52200526", "text": "public function testEncodeQuery(): void\n {\n $this->assertEquals(\"aAzZ09!$&'()*+,;=:/?%23%5B%5D@\", Rfc3986::encodeQuery(\"aAzZ09!$&'()*+,;=:/?#[]@\"));\n }", "title": "" }, { "docid": "098177005905ec02ca052b6e9ff730d9", "score": "0.5195303", "text": "public function encode(): string;", "title": "" }, { "docid": "f64ede0109686d7275c1beaa5b8fcd38", "score": "0.519131", "text": "public function double_encode($value = NULL)\n\t{\n\t\tif (func_num_args() === 0)\n\t\t{\n\t\t\treturn $this->meta('double_encode');\n\t\t}\n\t\treturn $this->meta('double_encode', $value);\n\t}", "title": "" }, { "docid": "570bc62642f79af6c2c77ad4b5bbd340", "score": "0.5189995", "text": "public function testParensAndQuotesAreEncoded()\n {\n\n $encoder = new QpMimeHeaderEncoder();\n $this->assertEquals('=28=22=29', $encoder->encodeString('(\")'), 'Chars (, \" (DQUOTE) and ) may not appear as per RFC 2047.');\n }", "title": "" }, { "docid": "eb074a217b7348525d8204dd59a280d7", "score": "0.5181827", "text": "function encode($mixed)\r\n {\r\n switch (gettype($mixed)) {\r\n case is_null($mixed):\r\n return $this->encode_string('');\r\n case 'string':\r\n return $this->encode_string($mixed);\r\n case 'integer':\r\n case 'double':\r\n return $this->encode_int(round($mixed));\r\n case 'array':\r\n return $this->encode_array($mixed);\r\n default:\r\n\t\t\tprint ('Unsupported type. Variable must be one of \\'string\\', \\'integer\\', \\'double\\' or \\'array\\''.\"\\n\");\r\n }\r\n }", "title": "" }, { "docid": "050725020be6c045b4040a818e2a2c06", "score": "0.51758856", "text": "public function testInsertEncodesOxValue()\n {\n $oUpay = oxNew('oxuserpayment');\n $oUpay->setId('_testOxId2');\n $oUpay->oxuserpayments__oxvalue = new oxField('123456789', oxField::T_RAW);\n $oUpay->save();\n\n $this->assertEquals(\"\\xbc\\x69\\x65\\xb9\\x3a\\x13\\x29\\xa1\\xeb\", oxDb::getDb()->getOne(\"SELECT oxvalue FROM oxuserpayments WHERE oxid='_testOxId2'\"));\n }", "title": "" }, { "docid": "2a21115dcb77fbc0d9546022d38d919a", "score": "0.51685107", "text": "protected function isEncodedArrayFieldValue($value)\n {\n if (!is_array($value)) {\n return false;\n }\n unset($value['__empty']);\n foreach ($value as $row) {\n if (!is_array($row)\n || !array_key_exists('worldpay_klarna_subscription', $row)\n || !array_key_exists('subscription_days', $row)\n ) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "b4dab9cb03dfe1b6ce1695743cb07bce", "score": "0.516226", "text": "protected function getInvalidFieldValues()\n {\n return [\n 'companyNumber' => [\"AAAA\",\"1234\",\"x\"]\n ];\n }", "title": "" }, { "docid": "2577ddaef8886ed526024bb8ad16270e", "score": "0.5159791", "text": "function getInvalidTealiumValues() {\n return array(\n // No empty string accepted.\n array(''),\n\n // Not int or string, so fail.\n array(NULL),\n array(FALSE),\n array(TRUE),\n array(array()),\n array(array('foo' => 'bar')),\n array(array('foo' => 'bar', 'foo2' => 'bar2')),\n array(new \\stdClass()),\n array(new \\Exception()),\n array(new \\Exception('Mou')),\n );\n }", "title": "" }, { "docid": "0fafe1fabb6cbd7eff8ba075a27f3c02", "score": "0.51378536", "text": "public function validData()\n {\n return [\n ['PUB_K1_6XqRHVR7Nz6zGke9R6ex1UpPDZDzgVWNdbq2jLDQEvE3GfAdSx', '02d87ea2ee94e07548283acb65dde1dffe2cd5db7dd711c3d11d25e04c74121087'],\n ['PUB_K1_4zMpSxYZQRPA5sLm6Acuctsprz4QNZvwztKUTG4U3xWdpH94W9', '020d54297e7754ed3509645e9f4b201d152ae27b2128f164a4d912989bcbc3ae6f'],\n ['PUB_K1_5vCbTgkUj7WgoZW7D4Ev4mafLS4MncUU3iQVvHDzXcSW3o1ztT', '028794cd73c7966334a1f4fe2c6c1a4a195fa3828a363dd7ea559383607afbfa02']\n ];\n }", "title": "" }, { "docid": "cc1f3b57b2842106caa971910d5fe9a1", "score": "0.51333046", "text": "public function encodeData()\n\t{\n\t\tswitch ($this->encoding) {\n\t\t\tcase static::ENCODING_JSON:\n\t\t\t\treturn json_encode($this->data);\n\t\t\tcase static::ENCODING_QUERY:\n\t\t\t\treturn http_build_query($this->data);\n\t\t\tcase static::ENCODING_RAW:\n\t\t\t\treturn $this->data;\n\t\t\tdefault:\n\t\t\t\tthrow new \\Exception(\"Encoding [$encoding] not a known CurlResource::ENCODING_* constant\");\n\t\t}\n\t}", "title": "" }, { "docid": "d8f3360a31278d747ccf843366b8733f", "score": "0.5126634", "text": "public function validData()\n {\n return [\n [ '5KHNKXpx9iWPoSiWbpy4j8Gt4ugMp1xd6kmBe2iPXzScUtw1TMs', 'EOS7oSFV59mVkwteccV5B37oaaVN9xZpGaWiYKtZ8p6kGjai3HSbv' ],\n [ '5JRtLCcagMXehySzykpiwjRtVxEzQF1GugFbrJvQwu4UPNuY6A5', 'EOS63ynjeUrV1fY46UJHfJMHpqw7tfaZiJQZrsEC2TwoHDW59iTqZ' ],\n [ '5KShCz2aPp4gcqpZ5nXpp99ZzbL7iih9yNbwUjUHQXQZMajgZPN', 'EOS6rfA1HUVeqwgTVj62rhxZmWu7NgEX66CM2Kje4nrKfkasNY7FP' ],\n ];\n }", "title": "" }, { "docid": "da6f78e219f784441f3c02a3a77d352c", "score": "0.51263446", "text": "public static function encode($array);", "title": "" }, { "docid": "4c6e2645e8a0a3807a0bed0469d8ee45", "score": "0.51240015", "text": "private function encodeParameter(string $name, $value): string\n {\n $query = '&' . rawurlencode($name);\n\n if (true === $value) {\n $query .= '=true';\n } elseif (false === $value) {\n $query .= '=false';\n } elseif (is_scalar($value)) {\n $query .= '=' . rawurlencode($value);\n } elseif (null !== $value) {\n $message = \"Value for parameter '{$name}' cannot be encoded, a scalar value is expected.\";\n throw new EncoderException($message);\n }\n\n return $query;\n }", "title": "" }, { "docid": "8823f7bd9f0a74701696e6bc2db3da36", "score": "0.5114012", "text": "private function encode_objet() {\r\n\t\t\t$this -> sujet = $this->encode_string($this -> sujet);\r\n\t\t}", "title": "" }, { "docid": "bd355f6b4281a22f00a8c760fdd3b6a2", "score": "0.5100798", "text": "public function testEncodeInvalidCharsReplacedBySpace()\n {\n $this->assertEquals(\n 'a b c d e f&#x9;g',\n $this->_xmlEntityCodec->encode(\n $this->_immune_xml,\n 'a' . chr(0) . 'b' . chr(4) . 'c' . chr(128) . 'd' .\n chr(150) . 'e' . chr(159) . 'f' . chr(9) . 'g'\n )\n );\n }", "title": "" }, { "docid": "ce2b6b2cf30a44f46866c59e83d96fe8", "score": "0.5098885", "text": "private function checkValues()\n {\n if (!$this->insertVals) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "99a52e5d65cf1821eba89087e844b73a", "score": "0.5097085", "text": "private function serialize($vals)\n\t{\n\t\tglobal $PREFS;\n\t\tif ($PREFS->ini('auto_convert_high_ascii') == 'y')\n\t\t\t$vals = $this->array_ascii_to_entities($vals);\n\t \treturn addslashes(serialize($vals));\n\t}", "title": "" }, { "docid": "6fdf6414b0b5f5e4448cd6e6dbaa4aa3", "score": "0.50906265", "text": "public function encode($value){\n\t\treturn utf8_encode($value);\n\t}", "title": "" }, { "docid": "d79eb762d0626db9fc9986533f7df48e", "score": "0.50789815", "text": "function checkRealEscapeString($value);", "title": "" }, { "docid": "d780d9870bb9dd16fc98f0003c636c44", "score": "0.5072852", "text": "public function testEncodeForXML()\n {\n $this->assertEquals(\n '&quot;&gt;&lt;script&gt;alert&#x28;&apos;XSS&apos;&#x29;&lt;&#x2f;script&gt;&lt;foo attr&#x3d;&quot;',\n $this->_xmlEntityCodec->encode(\n $this->_immune_xml,\n '\"><script>alert(\\'XSS\\')</script><foo attr=\"'\n )\n );\n }", "title": "" }, { "docid": "269e0eee4abc765466636a756dbd6d19", "score": "0.5061395", "text": "public function testEncode()\n {\n $expected = '{\"name\":\"This is a name\",\"settings\":{\"destination\":{\"uri\":\"http://localhost\",\"auth\":{\"type\":\"basic\"}}}}';\n\n $json = $this->instance->encode($this->data);\n\n $this->assertJson($json);\n $this->assertEquals($expected, $json);\n }", "title": "" }, { "docid": "ea18c70d95dc837fe1389ce6f0d3fb5d", "score": "0.50600535", "text": "protected function encode($value)\n {\n return $value;\n }", "title": "" }, { "docid": "0f81a0505d6ba8ba7b04ca6f5d4e8947", "score": "0.50543153", "text": "function _encode($data)\n {\n return rawurlencode(json_encode($data));\n }", "title": "" }, { "docid": "11275a297ddedeb5b0d51252a3e3301c", "score": "0.5045343", "text": "public function isJsonEncoded()\n {\n if ($this->annotations->exists(JsonBody::NAME)) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "59ca4e103f3524245adeb9d612f0c60b", "score": "0.50368667", "text": "public function sanitizeValueOnSave(): bool\n {\n return true;\n }", "title": "" }, { "docid": "bc82e343439906e113c61916629face0", "score": "0.50330055", "text": "public function encode($key, $data);", "title": "" }, { "docid": "c8dd969f2fb100578d328b6aad0f0ebb", "score": "0.502643", "text": "public function encode($value, $params = false) {\r\n\t\t// We need \r\n\t\tif (empty($params)) {\r\n\t\t\t$params = GyroLocale::get_charset();\r\n\t\t}\r\n\t\t$value = GyroString::convert($value, $params, 'UTF-16');\r\n\t\t$value = $this->unidecode($value);\r\n\t\t\t\r\n\t\treturn $value;\r\n\t}", "title": "" }, { "docid": "b35fba04b25ff7d8e364e74aa2fe070d", "score": "0.5015158", "text": "protected function handlesMultipleValues() {\n return TRUE;\n }", "title": "" }, { "docid": "e6bf1d00068c3f2cbe09274ab4b0f4c4", "score": "0.50150645", "text": "protected function _beforeSave()\n {\n $value = $this->getValue();\n $test = 1;\n unset($value['__empty']);\n $value = serialize($value);\n $this->setValue($value);\n }", "title": "" }, { "docid": "c2adc2c78b2ad7acd3c5b4fad16425c2", "score": "0.50117207", "text": "public function testEncodeEmptyError(): void\n {\n $error = new Error();\n $encoder = Encoder::instance();\n $actual = $encoder->encodeError($error);\n\n $expected = <<<EOL\n {\n \"errors\":[\n {}\n ]\n }\nEOL;\n self::assertJsonStringEqualsJsonString($expected, $actual);\n }", "title": "" }, { "docid": "d8e0bdbdf309a069c2022827437ba4f4", "score": "0.5010565", "text": "public function testEncodeEmptyErrorArray(): void\n {\n $actual = Encoder::instance()->encodeErrors([]);\n\n $expected = <<<EOL\n {\n \"errors\" : []\n }\nEOL;\n self::assertJsonStringEqualsJsonString($expected, $actual);\n }", "title": "" }, { "docid": "7fae1d9b4455ba5265c82fb36fcf951a", "score": "0.49960473", "text": "public function encode($data) {\n $tmp = base64_encode((string) $data);\n if (empty($tmp)) {\n return false;\n }\n return str_replace('=', '', strtr($tmp, '+/', '-_'));\n }", "title": "" }, { "docid": "8c6ed844513546c6e67444884db7e654", "score": "0.4995286", "text": "public function setUTF()\n {\n return false;\n }", "title": "" }, { "docid": "a49277cd0fc07ce1082ad64abc072974", "score": "0.49882644", "text": "public function test_can_be_encoded_to_json() : void\n {\n $value = 'Valid name';\n $name = Name::fromString($value);\n \n self::assertSame($value, $name->jsonSerialize());\n }", "title": "" }, { "docid": "3cffbc62fa797de8c320f3cfe0bcf61f", "score": "0.4984557", "text": "public function valuesMustBeUnique()\n {\n return false;\n }", "title": "" }, { "docid": "e95020ea3080d90465c75683fd5cf2f9", "score": "0.4984155", "text": "public function getEncodeExceptionsData()\n {\n return [\n // #0\n [\n JSON_ERROR_DEPTH,\n Exceptions\\Encode\\EncodeDepthException::class,\n 0,\n ['depth' => 321],\n 'The maximum stack depth of 321 was exceeded.',\n ],\n // #1\n [\n JSON_ERROR_RECURSION,\n Exceptions\\Encode\\RecursionException::class,\n 0,\n [],\n 'A recursive object was found and partial output is not enabled.',\n ],\n // #2\n [\n JSON_ERROR_INF_OR_NAN,\n Exceptions\\Encode\\InfiniteOrNotANumberException::class,\n 0,\n [],\n 'An INF or NAN value was found an partial output is not enabled.',\n ],\n // #3\n [\n JSON_ERROR_UNSUPPORTED_TYPE,\n Exceptions\\Encode\\UnsupportedTypeException::class,\n 0,\n [],\n 'An unsupported value type was found an partial output is not enabled.',\n ],\n // #4\n [\n JSON_ERROR_INVALID_PROPERTY_NAME,\n Exceptions\\Encode\\InvalidPropertyNameException::class,\n 0,\n [],\n 'The value contained a property with an invalid JSON key name.',\n ],\n // #5\n [\n 999,\n Exceptions\\Encode\\EncodeException::class,\n 0,\n ['last_error_msg' => 'Unexpected json encode error.'],\n 'An unrecognized encoding error was encountered: Unexpected json encode error.',\n ],\n ];\n }", "title": "" }, { "docid": "db248b67b0172c1c1eee3b6af8771cd6", "score": "0.49760675", "text": "public function canRequireSQLConversion()\n {\n return true;\n }", "title": "" }, { "docid": "4826e419411fd5cb7194cda4d1cbaa2f", "score": "0.49754944", "text": "protected function getValidFieldValues()\n {\n return [\n 'companyNumber'=>[\n '00001234',\n 'SC123456'\n ]\n ];\n }", "title": "" }, { "docid": "877b6ebfb675f80f4bed591d891b3529", "score": "0.49709374", "text": "public function encode(array $rawContent);", "title": "" }, { "docid": "7535c7ea7e43edb6fa9b887641666776", "score": "0.49649125", "text": "public static function encode($input);", "title": "" }, { "docid": "673679648b70ae7a710e3503202290da", "score": "0.49613997", "text": "public function getContentEncoding()\n {\n }", "title": "" }, { "docid": "436a92600dd8f01f045f757f83243533", "score": "0.4959367", "text": "public function testRegistrationValuesTooShort(): void { }", "title": "" }, { "docid": "0f9ec7fff5bf8e8c59c8d58eed44440d", "score": "0.4958255", "text": "public static function check_encoding($data)\n {\n if (!is_array($data)) {\n return;\n }\n\n foreach ($data as $key => $value) {\n if (!is_array($value)) {\n // check if the multibyte library function is installed and use it.\n if (function_exists('mb_detect_encoding')) {\n // check with mb library\n if (is_string($key) && mb_detect_encoding($key, 'UTF-8', true) === false) {\n throw new ClientException('Only UTF-8 encoded keys allowed. Wrong encoding in key string: ' . $key);\n }\n if (is_string($value) && mb_detect_encoding($value, 'UTF-8', true) === false) {\n throw new ClientException('Only UTF-8 encoded values allowed. Wrong encoding in value string: ' . $value);\n }\n } else {\n // fallback to preg_match checking\n if (is_string($key) && self::detect_utf($key) === false) {\n throw new ClientException('Only UTF-8 encoded keys allowed. Wrong encoding in key string: ' . $key);\n }\n if (is_string($value) && self::detect_utf($value) === false) {\n throw new ClientException('Only UTF-8 encoded values allowed. Wrong encoding in value string: ' . $value);\n }\n }\n } else {\n self::check_encoding($value);\n }\n }\n }", "title": "" }, { "docid": "8ee262b4a9c5ce8c5156dfe57b8b1341", "score": "0.49519655", "text": "public function testEscapingLikeValueWithCharset()\n {\n $this->db->expects($this->once())\n ->method('escape_string')\n ->will($this->returnValue('value'));\n\n $this->assertEquals('ascii \\'%value%\\'', $this->builder->likevalue('value', 'both', '', 'ascii'));\n }", "title": "" }, { "docid": "8ee262b4a9c5ce8c5156dfe57b8b1341", "score": "0.49519655", "text": "public function testEscapingLikeValueWithCharset()\n {\n $this->db->expects($this->once())\n ->method('escape_string')\n ->will($this->returnValue('value'));\n\n $this->assertEquals('ascii \\'%value%\\'', $this->builder->likevalue('value', 'both', '', 'ascii'));\n }", "title": "" }, { "docid": "c83b8838b07760971a5e81ddfa17df23", "score": "0.49491367", "text": "private function validateData(): void\n {\n if (is_null($this->location) || is_null($this->date)) {\n throw new InvalidArgumentException(\"All object variables must have a value\");\n }\n }", "title": "" }, { "docid": "92e240102dfeaf2356b63f7c6db8975b", "score": "0.49387425", "text": "public function processEnclosedValue()\n {\n $this->mockAnnotationParser->expects($this->once())\n ->method('setAnnotationParamValue')\n ->with($this->equalTo(\"a'b\"), $this->equalTo(true));\n $this->mockAnnotationParser->expects($this->once())\n ->method('changeState')\n ->with($this->equalTo(stubAnnotationState::PARAMS));\n $this->paramValueState->process('\"');\n $this->paramValueState->process('a');\n $this->paramValueState->process(\"'\");\n $this->paramValueState->process('b');\n $this->paramValueState->process('\"');\n }", "title": "" }, { "docid": "411cdbc176ae2a522385cef1cdd35b7d", "score": "0.49304965", "text": "protected function value_char()\n {\n }", "title": "" }, { "docid": "cf9378c08fd8eb96008d31b72939f2c2", "score": "0.49268845", "text": "protected function _encode()\n {\n $barcode[] = self::$GUARD['start'];\n for($i=1;$i<=strlen($this->number)-1;$i++)\n {\n if($i < 7)\n $barcode[] = self::$LEFT_PARITY[$this->_key[$i-1]][substr($this->number, $i, 1)];\n else\n $barcode[] = self::$RIGHT_PARITY[substr($this->number, $i, 1)];\n if($i == 6)\n $barcode[] = self::$GUARD['middle'];\n }\n $barcode[] = self::$GUARD['end'];\n return $barcode;\n }", "title": "" }, { "docid": "cf4d3d16813d97becebfcaa7c3ff9ce2", "score": "0.49266", "text": "public static function encodeValue($value) : string\n {\n return \\var_export($value, true);\n }", "title": "" }, { "docid": "c3edb0d4f380e015cabe961e25cae8b1", "score": "0.4925215", "text": "public function testEncodeNullForXML()\n {\n $this->assertEquals(\n null,\n $this->_xmlEntityCodec->encode($this->_immune_xml, null)\n );\n }", "title": "" }, { "docid": "1374066e17bf2a96f9609cec15f148df", "score": "0.49218827", "text": "function _postEncode($data){\n foreach($data as $key => $val){\n if($url) $url .= '&';\n $url .= urlencode($key).'='.urlencode($val);\n }\n return $url;\n }", "title": "" }, { "docid": "2d27626546c4888adb1961debf33fac9", "score": "0.49179327", "text": "function utf8_encode($data)\n{\n}", "title": "" }, { "docid": "222c7a596ac6e10e3b8adfd101d03533", "score": "0.4912341", "text": "function validate() {\n\t\t\t$this->field['msg'] = ( isset( $this->field['msg'] ) ) ? $this->field['msg'] : esc_html__( 'Javascript has been successfully escaped.', 'redux-framework' );\n\n\t\t\t$js = esc_js( $this->value );\n\n\t\t\tif ( $js != $this->value ) {\n\t\t\t\t$this->field['current'] = $js;\n\t\t\t\t$this->warning = $this->field;\n\t\t\t}\n\n\t\t\t$this->value = $js;\n\t\t}", "title": "" }, { "docid": "470568ebde34b34e482f64025917751b", "score": "0.4907979", "text": "function custom_field_prepare_possible_values( $p_possible_values ) {\n\tif( !is_blank( $p_possible_values ) && ( $p_possible_values[0] == '=' ) ) {\n\t\treturn helper_call_custom_function( 'enum_' . utf8_substr( $p_possible_values, 1 ), array() );\n\t}\n\n\treturn $p_possible_values;\n}", "title": "" }, { "docid": "b92034081688a89b688b7da9b8d45ce5", "score": "0.49037132", "text": "public function get_encoding()\n {\n }", "title": "" }, { "docid": "a66e4a65c268c2322773772a443133b2", "score": "0.4897936", "text": "public function testEncodeUserInfo(): void\n {\n $this->assertEquals(\"aAzZ09!$&'()*+,;=:%2F%3F%23%5B%5D%40\", Rfc3986::encodeUserInfo(\"aAzZ09!$&'()*+,;=:/?#[]@\"));\n }", "title": "" }, { "docid": "46e5273960c1412898028d8c4b39d701", "score": "0.48867202", "text": "public function provideInvalidDocumentValuesForChecks(): array\n {\n return $this->wrapValuesForDataProvider([123, 3.14, 'foo', true]);\n }", "title": "" } ]
86b3c3606e65d8d6adeea60222214ba0
Generate a pie chart time of reservation per resource
[ { "docid": "b03febf8ff569f94c711893c477b697b", "score": "0.5321121", "text": "public function getCamembertTimeContent($month_start, $year_start, $month_end, $year_end, $numTotal) {\n $sql = 'SELECT DISTINCT resource_id FROM bk_calendar_entry WHERE start_time >=' . mktime(0, 0, 0, $month_start, 1, $year_start) . ' AND end_time <=' . mktime(0, 0, 0, $month_end + 1, 0, $year_end) . ' ORDER by resource_id';\n $req = $this->runRequest($sql);\n $numMachinesFormesTotal = $req->rowCount();\n $machinesFormesListe = $req->fetchAll();\n\n // get the night and we periods\n $pricingInfo = $this->getFirstPricing();\n $night_start = $pricingInfo['night_start'];\n $night_end = $pricingInfo['night_end'];\n $we_array1 = explode(\",\", $pricingInfo['choice_we']);\n $we_array = array();\n for ($s = 0; $s < count($we_array1); $s++) {\n if ($we_array1[$s] > 0) {\n $we_array[] = $s + 1;\n }\n }\n\n $i = 0;\n $numMachinesFormes = array();\n $angle = 0;\n $departX = 300 + 250 * cos(0);\n $departY = 300 - 250 * sin(0);\n\n $test = '<g fill=\"rgb(97, 115, 169)\">';\n $test .= '<title>Réservations</title>';\n $test .= '<desc>287</desc>';\n $test .= '<rect x=\"0\" y=\"0\" width=\"1500\" height=\"600\" fill=\"white\" stroke=\"black\" stroke-width=\"0\"/>';\n $couleur = array(\"#FC441D\", \"#FE8D11\", \"#FCC212\", \"#FFFD32\", \"#D0E92B\", \"#53D745\", \"#6AC720\", \"#156947\", \"#291D81\", \"#804DA4\", \"#E4AADF\", \"#A7194B\", \"#FE0000\",\n \"#FC441D\", \"#FE8D11\", \"#FCC212\", \"#FFFD32\", \"#D0E92B\", \"#53D745\", \"#6AC720\", \"#156947\", \"#291D81\", \"#804DA4\", \"#E4AADF\", \"#A7194B\", \"#FE0000\"\n );\n\n foreach ($machinesFormesListe as $mFL) {\n\n $sql = 'SELECT name FROM re_info WHERE id =\"' . $mFL[0] . '\"';\n $req = $this->runRequest($sql);\n $res = $req->fetchAll();\n $nomMachine = \"-\";\n if (count($res) > 0) {\n $nomMachine = $res[0][0];\n }\n\n if ($nomMachine != \"-\") {\n // get the resource type\n\n $sql = 'SELECT * FROM bk_calendar_entry WHERE start_time >=' . mktime(0, 0, 0, $month_start, 1, $year_start) . ' AND end_time <=' . mktime(0, 0, 0, $month_end + 1, 1, $year_end) . ' AND resource_id =\"' . $mFL[0] . '\"';\n $req = $this->runRequest($sql);\n $numMachinesFormes[$i][0] = $mFL[0];\n\n $resas = $req->fetchAll();\n $timeResa = 0.0;\n $timeResaNight = 0.0;\n $timeResaWe = 0.0;\n foreach ($resas as $resa) {\n $timeResaArray = $this->calculateReservationTime($resa[\"start_time\"], $resa[\"end_time\"], $night_start, $night_end, $we_array);\n $timeResa += $timeResaArray[0];\n $timeResaNight += $timeResaArray[1];\n $timeResaWe += $timeResaArray[2];\n }\n //echo \"timeResa = \" . $timeResa . \"<br/>\";\n $numMachinesFormes[$i][1] = round($timeResa, 1);\n $numMachinesFormes[$i][2] = round($timeResaNight, 1);\n $numMachinesFormes[$i][3] = round($timeResaWe, 1);\n\n $curentAngle = 2 * pi() * ($numMachinesFormes[$i][1] + $numMachinesFormes[$i][2] + $numMachinesFormes[$i][3]) / $numTotal;\n\n if ($curentAngle > pi()) {\n\n $angle += $curentAngle / 2;\n\n $arriveeX = 300 + 250 * cos($angle);\n $arriveeY = 300 - 250 * sin($angle);\n\n $test .= '<path d=\"M ' . $departX . ' ' . $departY . ' A 250 250 0 0 0 ' . $arriveeX . ' ' . $arriveeY . ' L 300 300\" fill=\"' . $couleur[$i] . '\" stroke=\"black\" stroke-width=\"0\" />';\n $test .= '<g>';\n\n $departX = $arriveeX;\n $departY = $arriveeY;\n $angle += $curentAngle / 2;\n } else {\n $angle += $curentAngle;\n }\n\n $arriveeX = 300 + 250 * cos($angle);\n $arriveeY = 300 - 250 * sin($angle);\n\n $test .= '<path d=\"M ' . $departX . ' ' . $departY . ' A 250 250 0 0 0 ' . $arriveeX . ' ' . $arriveeY . ' L 300 300\" fill=\"' . $couleur[$i] . '\"/>';\n $test .= '<g>';\n $test .= '<rect x=\"580\" y=\"' . (83 + 40 * $i) . '\" width=\"30\" height=\"20\" rx=\"5\" ry=\"5\" fill=\"' . $couleur[$i] . '\" stroke=\"' . $couleur[$i] . '\" stroke-width=\"0\"/>';\n\n if ($numMachinesFormes[$i][2] == 0 && $numMachinesFormes[$i][3] == 0) {\n $test .= '<text x=\"615\" y=\"' . (90 + 40 * $i) . '\" font-size=\"20\" fill=\"black\" stroke=\"none\" text-anchor=\"start\" baseline-shift=\"-11px\">' . $nomMachine . ' : ' . $numMachinesFormes[$i][1] . \"\" . '</text>';\n } else {\n $test .= '<text x=\"615\" y=\"' . (90 + 40 * $i) . '\" font-size=\"20\" fill=\"black\" stroke=\"none\" text-anchor=\"start\" baseline-shift=\"-11px\">' . $nomMachine . ' : ' . $numMachinesFormes[$i][1] . \"|\" . $numMachinesFormes[$i][2] . \"|\" . $numMachinesFormes[$i][3] . \"\" . '</text>';\n }\n $test .= '</g>';\n\n $departX = $arriveeX;\n $departY = $arriveeY;\n $i++;\n }\n }\n\n $test .= '</g>';\n return $test;\n }", "title": "" } ]
[ { "docid": "1923b059659dffb3edbc532d7e35991a", "score": "0.63012826", "text": "static function draw_pie_chart($year){\n \n // Draw pie chart (selected year)\n $pie_chart_query = \"SELECT metadata.Seg_Name AS segname, COUNT(*) AS head_count FROM google_chart_dev.sample_data\n INNER JOIN google_chart_dev.metadata ON sample_data.Ttl_Spt_Amt >= metadata.Low_Range\n AND sample_data.Ttl_Spt_Amt < metadata.High_Range\n WHERE sample_data.Year= '$year' \n GROUP BY metadata.Seg_Name\n ORDER BY head_count DESC\n \"; \n \n $pie_chart_result = mysqli_query(db_connect::connect(), $pie_chart_query); \n \n while($result = mysqli_fetch_array($pie_chart_result))\n {\n $rows[]=array(\"c\"=>array(\"0\"=>array(\"v\"=>$result['segname'],\"f\"=>NULL),\n \"1\"=>array(\"v\"=>(int)$result['head_count'],\"f\" =>NULL)));\n }\n\n echo $format = '{\n \"cols\":\n [\n {\"id\":\"\",\"label\":\"Segment Name\",\"pattern\":\"\",\"type\":\"string\"},\n {\"id\":\"\",\"label\":\"Head Count\",\"pattern\":\"\",\"type\":\"number\"}\n ],\n \"rows\":'.json_encode($rows).'}';\n }", "title": "" }, { "docid": "6d28ebc67955cd5316958f7f5be8e5ca", "score": "0.6222925", "text": "public function piechart(Request $request)\n {\n\n $inactive = Registration::where('status',0)\n ->count();\n $active = Registration::where('status',1)\n ->count();\n $countactive = intval($active);\n $countintactive = intval($inactive);\n $inactive = [100,100];\n $rows[]=array(\"c\"=>array(\"0\"=>array(\"v\"=>\"Active\"),\"1\"=>array(\"v\"=>$countintactive)));\n $rows[]=array(\"c\"=>array(\"0\"=>array(\"v\"=>\"Inactive\"),\"1\"=>array(\"v\"=>$countactive)));\n \n echo $format = '{\n\t\"cols\":\n\t[\n\t{\"label\":\"Active\",\"type\":\"string\"},\n\t{\"label\":\"Inactive\",\"type\":\"number\"}\n\t],\n\t\"rows\":'.json_encode($rows).'}';\n\n \n }", "title": "" }, { "docid": "513d1dc7c683f840fee4e8d400ab17ef", "score": "0.6095921", "text": "function task_gantt_chart()\n {\n\n $task = $this->Task->getlisttask();\n foreach ($task as $key => $value) {\n $task[$key]['progress'] = $task[$key]['progress'] / 100;\n $task[$key]['start_date'] = date('d-m-Y', strtotime($task[$key]['start_date']));\n $task[$key]['date_end'] = date('d-m-Y', strtotime($task[$key]['date_end']));\n\n }\n\n $data['task'] = json_encode($task);\n $this->load->view('tasks/task_grantt_chart', $data);\n }", "title": "" }, { "docid": "285e05aadb8b843a5e7c2ecf8221368d", "score": "0.5960398", "text": "public function chartFacilitationPieAction() {\n $nbrFacilitationDGSNMois = $this->getDoctrine()\n ->getEntityManager()\n ->getRepository('GestionPassBundle:Facilitation')\n ->FacilitationPieParSce('DGSN');\n $nbrFacilitationExplMois = $this->getDoctrine()\n ->getEntityManager()\n ->getRepository('GestionPassBundle:Facilitation')\n ->FacilitationPieParSce('exploitation');\n $total = $nbrFacilitationDGSNMois[1] + $nbrFacilitationExplMois[1] ;\n $prcDGSN = AppRegistre::Pourcentage($nbrFacilitationDGSNMois[1], $total);\n $prcExpl = AppRegistre::Pourcentage($nbrFacilitationExplMois[1], $total);\n\n $nbrFacilitationDGSNMois[1] = $prcDGSN;\n $nbrFacilitationExplMois[1] = $prcExpl;\n\n $resultat = array();\n array_push($resultat, $nbrFacilitationExplMois);\n array_push($resultat, $nbrFacilitationDGSNMois);\n \n $response = new Response(json_encode($resultat, JSON_NUMERIC_CHECK));\n $response->headers->set('Content-Type', 'application/json');\n\n return $response;\n }", "title": "" }, { "docid": "2e645f25a8e1eb1d1ca33fef45ce501c", "score": "0.59021026", "text": "public function VRHourWiseChart(){\n $months = array(1 => 'Jan', 2 => 'Feb', 3 => 'Mar', 4 => 'Apr', 5 => 'May', 6 => 'Jun', 7 => 'Jul', 8 => 'Aug', 9 => 'Sep', 10 => 'Oct', 11 => 'Nov', 12 => 'Dec');\n\n $query = \"SELECT DISTINCT(transdate) as transdate , month(transdate) as month, day(transdate) as day FROM VRData ORDER BY transdate DESC LIMIT 3\";\n DB::enableQueryLog();\n $result=DB::select($query);\n $lvl= array();\n foreach($result as $r){\n $lvl[]= array('d' => $r->{'day'}, 'm' => $r->{'month'} );\n }\n\n $rows = array();\n $table = array();\n $table['cols'] = array(\n array('label' => 'hour', 'type' => 'string'),\n array('label' => $lvl[2]['d'].\"-\".$months[$lvl[2]['m']], 'type' => 'number'),\n array('label' => $lvl[1]['d'].\"-\".$months[$lvl[1]['m']], 'type' => 'number'),\n array('label' => $lvl[0]['d'].\"-\".$months[$lvl[0]['m']], 'type' => 'number'),\n array('label' => 'Average', 'type' => 'number'),\n );\n\n $query = \"SELECT month(transdate) as m, day(transdate) as d, SUM(Amount) as amount FROM VRData WHERE transdate BETWEEN ((SELECT MAX(transdate) FROM VRData) - INTERVAL 2 day) and (SELECT MAX(transdate) FROM VRData) GROUP BY Hrs, transdate\";\n $result=DB::select($query);\n $query = \"SELECT SUM(Amount) as amount FROM VRData WHERE transdate BETWEEN ((SELECT MAX(transdate) FROM VRData) - INTERVAL 29 day) and (SELECT MAX(transdate) FROM VRData) GROUP BY Hrs\";\n $result1=DB::select($query);\n// dd($result1[0]->{'amount'});\n\n $i=0;\n for($j=1;$j<=24;$j++){\n $temp = array();\n $temp[] = array('v' => $j);\n //\" day1\";\n $n = ((int) $result[$i++]->{'amount'});\n $temp[] = array('v' => $n);\n //\" day2\";\n $n = ((int) $result[$i++]->{'amount'});\n $temp[] = array('v' => $n);\n //\" day3\";\n $n = ((int) $result[$i++]->{'amount'});\n $temp[] = array('v' => $n);\n //\" avareg\";\n $n = ((int) ((int) $result1[$j-1]->{'amount'}));\n $average= ((int) ($n/30));\n $temp[] = array('v' => $average);\n $rows[] = array('c' => $temp);\n\n\n }\n\n\n $table['rows'] = $rows;\n\n $jsonTable = json_encode($table);\n\n return $jsonTable;\n }", "title": "" }, { "docid": "404b7538f755342dbd3c85cfd3282184", "score": "0.5804918", "text": "private function _getChartMembersStateDuePie()\n {\n global $zdb;\n\n $chart = array();\n $select = new \\Zend_Db_Select($zdb->db);\n $select->from(\n array('a' => PREFIX_DB . Adherent::TABLE),\n array(\n 'cnt' => 'count(a.' . Adherent::PK . ')'\n )\n )->where('bool_exempt_adh = ?', true);\n\n $res = $select->query()->fetchColumn();\n $chart[] = array(\n _T(\"Due free\"),\n (int)$res\n );\n\n $select = new \\Zend_Db_Select($zdb->db);\n $select->from(\n array('a' => PREFIX_DB . Adherent::TABLE),\n array(\n 'cnt' => 'count(a.' . Adherent::PK . ')'\n )\n )->where('date_echeance ?', new \\Zend_Db_Expr('IS NULL'));\n\n $res = $select->query()->fetchColumn();\n $chart[] = array(\n _T(\"Never contribute\"),\n (int)$res\n );\n\n $soon_date = new \\DateTime();\n $soon_date->modify('+30 day');\n\n $select = new \\Zend_Db_Select($zdb->db);\n $select->from(\n array('a' => PREFIX_DB . Adherent::TABLE),\n array(\n 'cnt' => 'count(a.' . Adherent::PK . ')'\n )\n )\n ->where('date_echeance < ?', $soon_date->format('Y-m-d'))\n ->where('date_echeance >= ?', new \\Zend_Db_Expr('NOW()'));\n\n $res = $select->query()->fetchColumn();\n $chart[] = array(\n _T(\"Impending due dates\"),\n (int)$res\n );\n\n $select = new \\Zend_Db_Select($zdb->db);\n $select->from(\n array('a' => PREFIX_DB . Adherent::TABLE),\n array(\n 'cnt' => 'count(a.' . Adherent::PK . ')'\n )\n )->where('date_echeance > ?', new \\Zend_Db_Expr('NOW()'));\n\n $res = $select->query()->fetchColumn();\n $chart[] = array(\n _T(\"Up to date\"),\n (int)$res\n );\n\n $select = new \\Zend_Db_Select($zdb->db);\n $select->from(\n array('a' => PREFIX_DB . Adherent::TABLE),\n array(\n 'cnt' => 'count(a.' . Adherent::PK . ')'\n )\n )->where('date_echeance < ?', new \\Zend_Db_Expr('NOW()'));\n\n $res = $select->query()->fetchColumn();\n $chart[] = array(\n _T(\"Late\"),\n (int)$res\n );\n\n $this->_charts[self::MEMBERS_STATEDUE_PIE] = json_encode($chart);\n }", "title": "" }, { "docid": "f1845c669d20afa27c253111d13e66e0", "score": "0.5761361", "text": "public function reservation_chart() {\n\n\t\t$this->db->select('MONTHNAME(date_of_event) MONTH, COUNT(*) COUNT, YEAR(date_of_event) AS YEAR');\n\t\t$this->db->from('reservation');\n\t\t // $this->db->where(\"YEAR(date_of_event) = '2019' GROUP BY MONTH(date_of_event)\");\n\t\t$this->db->group_by('MONTH(date_of_event) DESC');\n\n\t\t$query = $this->db->get();\n\t\treturn $query->result_array();\n\t}", "title": "" }, { "docid": "3849ae936850c7ad277c3869e12a4691", "score": "0.5655837", "text": "public function VROpearatorChart(){\n try{\n $query = \"SELECT SUM(AK_VR_Daily.Amount), operator.operator_name FROM AK_VR_Daily JOIN operator where year(AK_VR_Daily.transdate)= year(CURDATE() - INTERVAL 1 day) and month(AK_VR_Daily.transdate)= month(CURDATE() - INTERVAL 1 day) and operator.operator_id=AK_VR_Daily.operator_id group by operator.operator_name\";\n DB::enableQueryLog();\n $result=DB::select($query);\n $rows = array();\n $table = array();\n $table['cols'] = array(\n array('label' => 'Operator Name', 'type' => 'string'),\n array('label' => 'Total Amount', 'type' => 'number')\n );\n /* Extract the information from $result */\n foreach($result as $r)\n $rows[] = array('c' => array(array('v' => (string) $r->{'operator_name'}),array('v' => (int) $r->{'SUM(AK_VR_Daily.Amount)'})));\n\n $table['rows'] = $rows;\n\n $jsonTable = json_encode($table);\n\n return $jsonTable;\n }catch(Exception $e){\n \\LOG::error($e->getMessage());\n }\n }", "title": "" }, { "docid": "ec95884bb59426a4fecb48b3633b5ce0", "score": "0.564491", "text": "public function patientStatistics()\n {\n $random_array = $this->generateRandomValuesSumHundred(3);\n\n\n $labels = [trans('default.male'), trans('default.female'), trans('default.others')];\n\n /* pie chart value */\n $data_set = [\n [\n\n 'borderWidth' => 0,\n 'backgroundColor' => [\n '#713bdb',\n '#348cd4',\n '#f75320'\n ],\n 'data' => $random_array\n ]\n ];\n\n /* doughnut chart details section with respect to doughnut chart values */\n $chart_element = [];\n\n foreach ($random_array as $index => $item) {\n\n $test = [\n 'key' => $labels[$index],\n 'value' => $item,\n 'background_color' => 'background-color: ' . $data_set[0]['backgroundColor'][$index] . ';',\n 'color' => 'color: ' . $data_set[0]['backgroundColor'][$index] . ';'\n ];\n\n array_push($chart_element, $test);\n }\n\n return ['labels' => $labels, 'dataSet' => $data_set, 'chartElement' => $chart_element];\n\n }", "title": "" }, { "docid": "328fada4a3afa55a9c6a6f35bf2693c3", "score": "0.56184703", "text": "private function _getChartMembersStatusPie()\n {\n global $zdb;\n\n\n $select = new \\Zend_Db_Select($zdb->db);\n $select->from(\n array('a' => PREFIX_DB . Status::TABLE),\n array(\n 'cnt' => 'count(a.' . Status::PK . ')',\n 'status' => 'a.libelle_statut',\n 'priority' => 'a.priorite_statut'\n )\n )->join(\n array('b' => PREFIX_DB . Adherent::TABLE),\n 'a.' . Status::PK . '=b.' . Status::PK,\n array()\n )\n ->order('a.priorite_statut')\n ->group('a.' . Status::PK);\n\n Analog::log(\n $select->__toString(),\n Analog::DEBUG\n );\n $res = $select->query()->fetchAll();\n\n $chart = array();\n $staff = array(_T(\"Staff members\"), 0);\n foreach ( $res as $r ) {\n if ( $r->priority >= Members::NON_STAFF_MEMBERS ) {\n $chart[] = array(\n _T($r->status),\n (int)$r->cnt\n );\n } else {\n $staff[1] += $r->cnt;\n }\n }\n $chart[] = $staff;\n $this->_charts[self::MEMBERS_STATUS_PIE] = json_encode($chart);\n }", "title": "" }, { "docid": "9370e5c049cfdf7d56a16c02a2ea6de0", "score": "0.56040865", "text": "static function default_pie_chart_table(){\n $default_pie_table_query = \"SELECT sample_data.Firtname, \n sample_data.Lastname, \n sample_data.PCode,\n sample_data.custype,\n sample_data.Min_Spt_Gap , \n sample_data.Max_Spt_Gap , \n sample_data.Avg_Spt_Gap , \n sample_data.Ttl_Spt_Amt , \n sample_data.Ave_Spt_AmtBuy_Cat , \n sample_data.Year\n FROM google_chart_dev.sample_data\n INNER JOIN google_chart_dev.metadata \n ON sample_data.Ttl_Spt_Amt >= metadata.Low_Range \n AND sample_data.Ttl_Spt_Amt < metadata.High_Range \n WHERE Seg_Name = (\n SELECT segname \n FROM (\n SELECT metadata.Seg_Name AS segname, COUNT(*) AS head_count \n FROM google_chart_dev.sample_data\n INNER JOIN google_chart_dev.metadata \n ON sample_data.Ttl_Spt_Amt >= metadata.Low_Range\n AND sample_data.Ttl_Spt_Amt < metadata.High_Range\n WHERE sample_data.Year= (\n SELECT MAX(sample_data.Year) AS year FROM google_chart_dev.sample_data)\n GROUP BY metadata.Seg_Name\n ORDER BY head_count DESC LIMIT 1) AS x) \n AND sample_data.Year=(\n SELECT MAX(sample_data.Year) AS year FROM google_chart_dev.sample_data)\n \";\n $default_pie_table_result = mysqli_query(db_connect::connect(), $default_pie_table_query); \n \n while($row = mysqli_fetch_array($default_pie_table_result)){ \n // echo \"['\".$row[\"segname\"].\"', \".$row[\"head_count\"].\"],\"; \n echo \"[`\".$row[\"Firtname\"].\"`, `\".$row[\"Lastname\"].\"`, `\".$row[\"PCode\"].\"`, `\".$row[\"custype\"].\"`, \".$row[\"Min_Spt_Gap\"].\", \".$row[\"Max_Spt_Gap\"].\", \".$row[\"Avg_Spt_Gap\"].\", \".$row[\"Ttl_Spt_Amt\"].\", \".$row[\"Ave_Spt_AmtBuy_Cat\"].\", `\".$row[\"Year\"].\"`],\"; \n } \n }", "title": "" }, { "docid": "5d00302d9a60999d0ccc854735d427dc", "score": "0.5593241", "text": "public function index()\n {\n $data['users_count'] = User::get()->count();\n $data['reservations_count'] = Reservation::get()->count();\n $data['rooms_count'] = Rooms::get()->count();\n $data['today_users_count'] = User::whereDate('created_at', '=', date('Y-m-d'))->count();\n $data['today_reservations_count'] = Reservation::whereDate('created_at', '=', date('Y-m-d'))->count();\n $data['today_rooms_count'] = Rooms::whereDate('created_at', '=', date('Y-m-d'))->count();\n\n $chart = Reservation::whereYear('created_at', '<=', date('Y'))->whereYear('created_at', '>=', date('Y')-3)->where('status', 'Accepted')->get();\n\n $quarter1 = [01, 02, 03];\n $quarter2 = [04, 05, 06];\n $quarter3 = [07, 08, 09];\n $quarter4 = [10, 11, 12];\n\n $chart_array = [];\n\n foreach($chart as $row)\n {\n $month = date('m', strtotime($row->created_at));\n $year = date('Y', strtotime($row->created_at));\n\n if(in_array($month, $quarter1))\n $quarter = 1;\n if(in_array($month, $quarter2))\n $quarter = 2;\n if(in_array($month, $quarter3))\n $quarter = 3;\n if(in_array($month, $quarter4))\n $quarter = 4;\n\n $array['y'] = $year.' Q'.$quarter;\n $array['amount'] = $row->total;\n\n $chart_array[] = $array;\n }\n\n $data['line_chart_data'] = json_encode($chart_array);\n \n return view('admin.index', $data);\n }", "title": "" }, { "docid": "df96ea7e3cb1c5c882ab0e9dca1dc9ab", "score": "0.55881464", "text": "public function actionChart()\n {\n // (new \\DateTime($date, new \\DateTimeZone(getenv('TIMEZONE'))))->getOffset()\n\n $models = Duration::find()\n ->select([new Expression('FROM_UNIXTIME(`time` + 3600*3, \\'%Y-%m-%d\\') as day'), 'round(sum(duration)) as duration', 'project'])\n\n// ->byDateRange('2016-8-15', '2016-08-23')\n// ->byProject(['app', 'merge'])\n\n ->groupBy(['day', 'project'])\n ->orderBy([\n 'time' => SORT_ASC,\n 'project' => SORT_ASC,\n ])\n ->asArray()\n ->all();\n\n\n $projects_list = array_unique(ArrayHelper::getColumn($models, 'project'));\n\n $raw_dates = ArrayHelper::getColumn($models, 'day');\n\n $dates_array = DateHelper::getDatesListWithoutSpaces($raw_dates);\n\n $duration_by_date_by_project = ArrayHelper::map($models, 'day', 'duration', 'project');\n $duration_by_project_by_date = ArrayHelper::map($models, 'project', 'duration', 'day');\n\n\n {\n $projects_array = [];\n\n $projects_durations = array_map(function ($value) {\n return array_sum($value);\n }, $duration_by_date_by_project);\n\n\n foreach ($projects_list as $project) {\n $projects_array[$project] = [\n 'id' => null,\n 'name' => $project,\n 'total' => $projects_durations[$project],\n ];\n }\n }\n\n {\n\n $logged_time_data = [];\n\n foreach ($dates_array as $day) {\n\n $array = [\n 'date' => $day,\n 'name' => Yii::$app->formatter->asDate($day),\n 'xAxis' => Yii::$app->formatter->asDate($day, 'd-MM'),\n ];\n\n\n $sum = isset($duration_by_project_by_date[$day]) ? array_sum($duration_by_project_by_date[$day]) : 0;\n\n $array['formatted'] = DateHelper::formatHoursSpent($sum);\n $array['total_seconds'] = $sum;\n $array['value'] = round($sum / 3600, 2);\n\n $logged_time_data[] = $array;\n }\n }\n\n {\n $time_by_project = [];\n\n foreach ($projects_list as $project) {\n $array = [];\n\n foreach ($dates_array as $date) {\n\n $seconds = isset($duration_by_date_by_project[$project][$date]) ? $duration_by_date_by_project[$project][$date] : 0;\n\n array_push($array, [\n 'date' => $date,\n 'formatted' => DateHelper::formatHoursSpent($seconds),\n 'name' => \\Yii::$app->formatter->asDate($date),\n 'project' => $project,\n 'total_seconds' => $seconds,\n 'value' => round($seconds / 3600, 2),\n ]);\n }\n\n $time_by_project[$project] = $array;\n }\n\n\n }\n\n return $this->render('chart', compact('projects_list', 'logged_time_data', 'time_by_project', 'projects_array'));\n }", "title": "" }, { "docid": "b04904a6ec3ea9e7c93297c930999a6b", "score": "0.55437964", "text": "private function makeTimeTable(){\n\t\t\n\t\t$a=array();\n\t\t\n\t\tfor( (float)$i=7; $i<=17; $i+0.5 ){\n\t\t\t\n\t\t\tif( $i === (float)12 ){\n\t\t\t\tarray_push( $a, array( 'time'=>'Noon','reservation'=>'') );\n\t\t\t} \n\t\t\telse {\n\t\t\t\t$hr = (string)floor($i);\n\t\t\t\t( ($i - floor($i) > 0 ) ) ? $min = ':30' : $min = ':00';\n\n\t\t\t\tarray_push( $a, array( 'time' => $hr.$min, 'reservation' => '' ) );\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\treturn $a;\n\t\t\n\t}", "title": "" }, { "docid": "eb0c3a14ab75656a816e0acfb77c7d7f", "score": "0.5508843", "text": "public function orgTripsChart()\n {\n $carbon = Trip::where('organization_id', '=', auth()->guard('organization')->user()->id)->orderBy('flight_date', 'asc')->orderBy('created_at', 'asc')->pluck('carbon_amount');\n $offset = Trip::where('organization_id', '=', auth()->guard('organization')->user()->id)->orderBy('flight_date', 'asc')->orderBy('created_at', 'asc')->pluck('offset_amount');\n\n $datelabel = Trip::where('organization_id', '=', auth()->guard('organization')->user()->id)->orderBy('flight_date', 'asc')->orderBy('created_at', 'asc')->pluck('flight_date')->toArray();\n $airportlabel = Trip::where('organization_id', '=', auth()->guard('organization')->user()->id)->orderBy('flight_date', 'asc')->orderBy('created_at', 'asc')->pluck('airport_to')->toArray();\n $chartLabels = array_map(function ($a, $b) {return $a . ', ' . $b;}, $airportlabel, $datelabel);\n\n $orgChart = new OrganizationTripsChart;\n $orgChart->labels($chartLabels);\n $orgChart->dataset('CO2 (t) emitted', 'bar', $carbon->values())->backgroundColor('grey')->options([\n 'scales' => [\n 'yAxes' => [\n 'ticks' => [\n 'scaleBeginAtZero' => true,\n ],\n ],\n ],\n ]);\n $orgChart->dataset('CO2 (t) offset', 'bar', $offset->values())->backgroundColor('#62684d')->options([\n 'scales' => [\n 'yAxes' => [\n 'ticks' => [\n 'scaleBeginAtZero' => true,\n ],\n ],\n ],\n ]);\n\n return view('organization', compact('orgChart'));\n }", "title": "" }, { "docid": "ebe363d811c154ba1f4908d75553be64", "score": "0.54886174", "text": "public function userTripsChart()\n {\n $carbon = Trip::where('user_id', '=', auth()->user()->id)->orderBy('flight_date')->pluck('carbon_amount');\n $offset = Trip::where('user_id', '=', auth()->user()->id)->orderBy('flight_date')->pluck('offset_amount');\n\n $datelabel = Trip::where('user_id', '=', auth()->user()->id)->orderBy('flight_date')->pluck('flight_date')->toArray();\n $airportlabel = Trip::where('user_id', '=', auth()->user()->id)->orderBy('flight_date')->pluck('airport_to')->toArray();\n $chartLabels = array_map(function ($a, $b) {return $a . ', ' . $b;}, $airportlabel, $datelabel);\n\n $userChart = new UserTripsChart;\n $userChart->labels($chartLabels);\n $userChart->dataset('CO2 (t) emitted', 'bar', $carbon->values())->backgroundColor('grey');\n $userChart->dataset('CO2 (t) offset', 'bar', $offset->values())->backgroundColor('#62684d');\n\n return view('home', compact('userChart'));\n }", "title": "" }, { "docid": "11e0c58ae2a62a3f27fd05d0ec8b77df", "score": "0.5481416", "text": "public function getYearNumHoursResGraph($month_start, $year_start, $month_end, $year_end) {\n\n $timeResa = 0.0;\n $timeTotal = 0.0;\n $graph = array();\n $monthIds = array();\n $i = 0;\n for ($y = $year_start; $y <= $year_end; $y++) {\n // start month\n $start_month = 1;\n if ($y == $year_start) {\n $start_month = $month_start;\n }\n // end month\n $stop_month = 12;\n if ($y == $year_end) {\n $stop_month = $month_end;\n }\n for ($m = $start_month; $m <= $stop_month; $m++) {\n $dstart = mktime(0, 0, 0, $m, 1, $y); // Le premier jour du mois en cours\n $dend = mktime(0, 0, 0, $m + 1, 1, $y); // Le 0eme jour du mois suivant == le dernier jour du mois en cour\n\n $sql = 'SELECT DISTINCT resource_id FROM bk_calendar_entry WHERE start_time >=' . $dstart . ' AND end_time <=' . $dend . ' ORDER by resource_id';\n $req = $this->runRequest($sql);\n $numMachinesFormesTotal = $req->rowCount();\n $machinesFormesListe = $req->fetchAll();\n\n $timeResa = 0;\n foreach ($machinesFormesListe as $machine) {\n // test if the resource still exists\n $sql = 'SELECT name FROM re_info WHERE id =\"' . $machine[0] . '\"';\n $req = $this->runRequest($sql);\n $res = $req->fetchAll();\n if (count($res) > 0) {\n $sql = 'SELECT * FROM bk_calendar_entry WHERE start_time >=' . $dstart . ' AND end_time <=' . $dend . ' AND resource_id =\"' . $machine[0] . '\"';\n $req = $this->runRequest($sql);\n $datas = $req->fetchAll();\n\n\n foreach ($datas as $data) {\n if ($data[\"end_time\"] - $data[\"start_time\"] >= 0) {\n $timeResa += (float) ($data[\"end_time\"] - $data[\"start_time\"]) / (float) 3600;\n } else {\n echo \"WARNING: error in reservation : <br/>\";\n print_r($data);\n }\n }\n }\n }\n $i++;\n $timeTotal += $timeResa;\n $graph[$i] = $timeResa;\n $monthIds[$i] = $m;\n }\n }\n $timeTotal = round($timeTotal);\n $graphData = array('timeTotal' => $timeTotal, 'graph' => $graph, 'monthIds' => $monthIds);\n return $graphData;\n }", "title": "" }, { "docid": "d34cb937b6f723592dae0b18fc889e3f", "score": "0.5417087", "text": "static function largest_segment_pie_chart(){ \n // Generate the results of segment with the largest area\n $default_seg_query = \"SELECT segname FROM (SELECT metadata.Seg_Name AS segname, COUNT(*) AS head_count \n FROM google_chart_dev.sample_data\n INNER JOIN google_chart_dev.metadata \n ON sample_data.Ttl_Spt_Amt >= metadata.Low_Range\n AND sample_data.Ttl_Spt_Amt < metadata.High_Range\n WHERE sample_data.Year= (\n SELECT MAX(sample_data.Year) AS year FROM google_chart_dev.sample_data)\n GROUP BY metadata.Seg_Name\n ORDER BY head_count DESC LIMIT 1) AS x\n \";\n $default_seg_result = mysqli_query(db_connect::connect(), $default_seg_query); \n \n while($rows = mysqli_fetch_array($default_seg_result))\n {\n echo \"value = '\".$rows['segname'].\"'\";\n } \n }", "title": "" }, { "docid": "edfe3c6b85ddbc2a6352bf2db8352a27", "score": "0.5401505", "text": "public static function pie(array $params = []): string {\n $default = [\n 'data' => [],\n 'label' => '',\n 'alt' => '',\n 'color' => '',\n 'icon' => '',\n 'donut' => false,\n 'half' => false,\n 'use_gradient' => false,\n 'limit' => 99999,\n 'rand' => mt_rand(),\n ];\n $p = array_merge($default, $params);\n $default_entry = [\n 'url' => '',\n 'icon' => '',\n 'label' => '',\n 'number' => '',\n ];\n\n $nb_slices = min($p['limit'], count($p['data']));\n array_splice($p['data'], $nb_slices);\n\n $nodata = isset($p['data']['nodata']) && $p['data']['nodata'];\n $fg_color = \\Toolbox::getFgColor($p['color']);\n\n $class = \"pie\";\n $class.= $p['half'] ? \" half\": \"\";\n $class.= $p['donut'] ? \" donut\": \"\";\n\n $no_data_html = \"\";\n if ($nodata) {\n $no_data_html = \"<span class='empty-card no-data'>\n <div>\".__('No data found').\"</div>\n <span>\";\n }\n\n $nb_series = min($p['limit'], count($p['data']));\n\n $palette_style = \"\";\n if ($p['use_gradient']) {\n $palette_style = self::getCssGradientPalette(\n $p['color'],\n $nb_series,\n \".dashboard #chart-{$p['rand']}\",\n false\n );\n }\n\n $html = <<<HTML\n <style>\n #chart-{$p['rand']} .ct-label {\n fill: {$fg_color};\n color: {$fg_color};\n }\n {$palette_style}\n </style>\n <div class=\"card g-chart {$class}\"\n id=\"chart-{$p['rand']}\"\n style=\"background-color: {$p['color']}; color: {$fg_color}\">\n <div class=\"chart ct-chart\">{$no_data_html}</div>\n <span class=\"main-label\">{$p['label']}</span>\n <i class=\"main-icon {$p['icon']}\"></i>\n </div>\nHTML;\n\n if ($nodata) {\n return $html;\n }\n\n $labels = [];\n $series = [];\n $total = 0;\n foreach ($p['data'] as $entry) {\n $entry = array_merge($default_entry, $entry);\n $total+= $entry['number'];\n\n $labels[] = $entry['label'];\n $series[] = [\n 'meta' => $entry['label'],\n 'value' => $entry['number'],\n 'url' => $entry['url'],\n ];\n }\n $total_txt = \\Toolbox::shortenNumber($total, 1, false);\n\n $labels = json_encode($labels);\n $series = json_encode($series);\n\n $chartPadding = 4;\n $height_divider = 1;\n $half_opts = \"\";\n if ($p['half']) {\n $half_opts = \"\n startAngle: 270,\n total: \".($total*2).\",\n \";\n $chartPadding = 9;\n $height_divider = 2;\n }\n\n $donut_opts = \"\n showLabel: false,\n \";\n if ($p['donut']) {\n $donut_opts = \"\n donutSolid: true,\n showLabel: true,\n labelInterpolationFnc: function(value) {\n return '{$total_txt}';\n },\n \";\n }\n\n $donut = $p['donut'] ? 'true' : 'false';\n $height = $p['half'] ? '180%' : '100%';\n $animation_duration = self::$animation_duration;\n\n $js = <<<JAVASCRIPT\n $(function () {\n var chart = new Chartist.Pie('#chart-{$p['rand']} .chart', {\n labels: {$labels},\n series: {$series},\n }, {\n width: 'calc(100% - 5px)',\n height: 'calc({$height} - 5px)',\n chartPadding: {$chartPadding},\n donut: {$donut},\n $donut_opts\n $half_opts\n donutWidth: '50%',\n plugins: [\n Chartist.plugins.tooltip({\n appendToBody: true,\n class: 'dashboard-tooltip'\n })\n ]\n });\n\n\n chart.on('draw', function(data) {\n // animate\n if (data.type === 'slice') {\n // set url redirecting on slice\n var url = _.get(data, 'series.url') || \"\";\n if (url.length > 0) {\n data.element.attr({\n 'data-clickable': true\n });\n data.element._node.onclick = function() {\n if (!Dashboard.edit_mode) {\n window.location = url;\n }\n }\n }\n\n // Get the total path length in order to use for dash array animation\n var pathLength = data.element._node.getTotalLength();\n\n // Set a dasharray that matches the path length as prerequisite to animate dashoffset\n data.element.attr({\n 'stroke-dasharray': pathLength + 'px ' + pathLength + 'px'\n });\n\n // Create animation definition while also assigning an ID to the animation for later sync usage\n var animationDefinition = {\n 'stroke-dashoffset': {\n id: 'anim' + data.index,\n dur: {$animation_duration},\n from: -pathLength + 'px',\n to: '0px',\n easing: Chartist.Svg.Easing.easeOutQuint,\n // We need to use `fill: 'freeze'` otherwise our animation will fall back to initial (not visible)\n fill: 'freeze'\n }\n };\n\n // We need to set an initial value before the animation starts as we are not in guided mode which would do that for us\n data.element.attr({\n 'stroke-dashoffset': -pathLength + 'px'\n });\n\n // We can't use guided mode as the animations need to rely on setting begin manually\n // See http://gionkunz.github.io/chartist-js/api-documentation.html#chartistsvg-function-animate\n data.element.animate(animationDefinition, false);\n }\n\n // donut center label\n if (data.type === 'label') {\n if (data.index === 0) {\n var width = data.element.root().width() / 2;\n var height = data.element.root().height() / 2;\n var fontsize = ((height / {$height_divider}) / (1.3 * \"{$total_txt}\".length));\n data.element.attr({\n dx: width,\n dy: height - ($chartPadding / 2),\n 'style': 'font-size: '+fontsize,\n });\n\n // apend real total\n var text = new Chartist.Svg('title');\n text.text(\"{$total}\");\n data.element.append(text);\n } else {\n data.element.remove();\n }\n }\n\n // fade others bars on one mouseouver\n chart.on('created', function(bar) {\n $('#chart-{$p['rand']} .ct-series')\n .mouseover(function() {\n $(this).parent().children().addClass('disable-animation');\n $(this).addClass('mouseover');\n $(this).siblings()\n .addClass('notmouseover');\n\n $('#chart-{$p['rand']} .ct-label')\n .addClass('fade');\n })\n .mouseout(function() {\n $(this).removeClass('mouseover');\n $(this).siblings()\n .removeClass('notmouseover');\n\n $('#chart-{$p['rand']} .ct-label')\n .removeClass('fade');\n });\n });\n });\n });\nJAVASCRIPT;\n $js = \\Html::scriptBlock($js);\n\n return $html.$js;\n }", "title": "" }, { "docid": "a3b08bafe5bef58324f4075c8cea0731", "score": "0.536825", "text": "public function index()\n {\n $label = \"\";\n $entradas = array();\n if(request()->input('anyo_inicio')){\n $begin = new DateTime(request()->input('anyo_inicio') . \"-\" . request()->input('mes_inicio') . \"-01\");\n $beginm = new DateTime(request()->input('anyo_inicio') . \"-\" . request()->input('mes_inicio') . \"-01\");;\n $beginm->add(DateInterval::createFromDateString('1 month'));\n $end = new DateTime(request()->input('anyo_fin') . \"-\" . request()->input('mes_fin') . \"-01\");\n $end = $end->modify('+1 month');\n $interval = DateInterval::createFromDateString('1 month');\n $intervalm = DateInterval::createFromDateString('1 day');\n $period = new DatePeriod($begin, $interval, $end);\n $periodm = new DatePeriod($begin, $intervalm, $beginm);\n if(request()->input('tipo') == \"RESERVAS\"){\n foreach ($period as $dt) {\n $label = \"Euros\";\n $dtend = date('Y-m-d 00:00:00', strtotime(\"+1 month\", strtotime($dt->format('Y-m-d'))));\n $entradas[$dt->format('M Y')] = Reserva::where('fecha_inicio', '>=', $dt)->where('fecha_inicio', '<=', $dtend)->sum('precio_total');\n }\n return view('informes.chart', ['entradas' => $entradas, 'label' => $label]);\n }\n else if(request()->input('tipo') == \"OCUPACION\"){\n foreach ($periodm as $dt) {\n $label = \"% de ocupación\";\n $numReservasHoy = Reserva::where('fecha_inicio', '<=', $dt)\n ->where('fecha_fin', '>=', $dt)\n ->count();\n $porcentajeOcupadoDiaActual = $numReservasHoy / Estancia::all()->count() * 100;\n $entradas[$dt->format('d M Y')] = $porcentajeOcupadoDiaActual;\n }\n return view('informes.chart', ['entradas' => $entradas, 'label' => $label]);\n \n }else if(request()->input('tipo') == \"REGISTROS\"){\n foreach ($period as $dt) {\n $label = \"Usuarios registrados\";\n $dtend = date('Y-m-d 00:00:00', strtotime(\"+1 month\", strtotime($dt->format('Y-m-d'))));\n $entradas[$dt->format('M Y')] = User::where('created_at', '>=', $dt)->where('created_at', '<=', $dtend)->count();\n }\n return view('informes.chart', ['entradas' => $entradas, 'label' => $label]);\n }\n }\n return view('informes.chart', ['entradas' => $entradas, 'label' => $label]);\n }", "title": "" }, { "docid": "1f53236c15fb29d7c1a7e4b13168f8f5", "score": "0.5353715", "text": "public function generoChartDataPagados()\n {\n $vivientes = Viviente::where('campamento_id',$this->campamentoId)->where('pagado','>','0')->get();\n $generoArray = array();\n $generoArray['hombres'] = 0;\n $generoArray['mujeres'] = 0;\n foreach ($vivientes as $viviente) {\n if($viviente->genero == 'M'){\n $generoArray['hombres']++;\n }\n if($viviente->genero == 'F'){\n $generoArray['mujeres']++;\n }\n }\n return json_encode($generoArray);\n }", "title": "" }, { "docid": "698e8f00fd53c63c3a129a64492c4292", "score": "0.5335366", "text": "public function actionIndexpie()\n {\n\t\t$provider = new SqlDataProvider([\n 'db' => Yii::$app->db4,\n \t\t\t'sql' => 'SELECT count(*) as conteo,type FROM clientes GROUP BY type',\n\t\t\t'sort' => [\n\t\t\t\t'attributes' => [\n\t\t\t\t\t'conteo',\n\t\t\t\t\t'type',\n\t\t\t\t],\n\t\t\t],\n\t\t]);\n\n\n\t\treturn $this->render('/wiki/graph/graphpie', [\n 'dataProvider' => $provider,\n ]);\n }", "title": "" }, { "docid": "2c2c688cb7976d5944d4fd3ab614118b", "score": "0.5322982", "text": "public function pieChart(){\n\n $sub1 =Student::selectRaw('count(subject1) as count,subject1')->groupBy('subject1')->get();\n $sub2 =Student::selectRaw('count(subject2) as count,subject2')->groupBy('subject2')->get();\n $sub3 =Student::selectRaw('count(subject3) as count,subject3')->groupBy('subject3')->get();\n\n $user =array();\n\n foreach ($sub1 as $result)\n {\n $user[$result->subject1] =(int)$result->count;\n }\n\n $a = $user['1'];\n $b = $user['2'];\n $c = $user['3'];\n $d = $user['4'];\n $e = $user['5'];\n $f = $user['6'];\n $g = $user['7'];\n $h = $user['8'];\n $i = $user['9'];\n\n $user1 =array();\n foreach ($sub2 as $result1)\n {\n $user1[$result1->subject2] =(int)$result1->count;\n }\n\n\n $j=$user1['1'];\n $k=$user1['2'];\n $l=$user1['3'];\n $m=$user1['4'];\n $n=$user1['5'];\n $o=$user1['6'];\n $p=$user1['7'];\n $q=$user1['8'];\n $r=$user1['9'];\n\n\n\n// return $b1;\n\n $user2 =array();\n foreach ($sub3 as $result2)\n {\n $user2[$result2->subject3] =(int)$result2->count;\n }\n\n $s=$user2['1'];\n $t=$user2['2'];\n $u=$user2['3'];\n $v=$user2['4'];\n $w=$user2['5'];\n $x=$user2['6'];\n $y=$user2['7'];\n $z=$user2['8'];\n $z1=$user2['9'];\n\n $a1=$a+$j+$s;\n $b1=$b+$k+$t;\n $c1=$c+$l+$u;\n $d1=$d+$m+$v;\n $e1=$e+$n+$w;\n $f1=$f+$o+$x;\n $g1=$g+$p+$y;\n $h1=$h+$q+$z;\n $i1=$i+$r+$z1;\n\n\n $all = array (\"Sociology\"=>$a1,\"Sinhala\"=>$b1,\"Political Science\"=>$c1,\"Buddhist Culture\"=>$d1, \"Economics\"=>$e1, \"Geography\"=>$f1, \"Statistics\"=>$g1, \"Pali\"=>$h1, \"History\"=>$i1);\n\n\n return view('admin.charts.piechart',compact('all'));\n\n\n\n\n }", "title": "" }, { "docid": "5dc3e1187a8adbe0eeee4085c380f7e7", "score": "0.525806", "text": "public function VREasyChart(){\n try{\n $query = \"SELECT SUM(AK_VR_Daily.Amount) as Amount, client.easy_client as id FROM AK_VR_Daily JOIN client where year(AK_VR_Daily.transdate)= year(CURDATE() - INTERVAL 1 day) and month(AK_VR_Daily.transdate)= month(CURDATE() - INTERVAL 1 day) and client.client_id=AK_VR_Daily.client_id group by client.easy_client\";\n DB::enableQueryLog();\n $result=DB::select($query);\n $easy=0;\n $nonEasy=0;\n foreach($result as $r) {\n $id=$r->{'id'}+0;\n if($id<=0){\n $easy+=$r->{'Amount'};\n }\n else {\n $nonEasy+=$r->{'Amount'};\n }\n }\n $rows = array();\n $table = array();\n $table['cols'] = array(\n\n array('label' => 'Easy Non Easy', 'type' => 'string'),\n array('label' => 'Total Amount', 'type' => 'number')\n\n );\n $rows[] = array('c' => array(array('v' => \"Others\"),array('v' => (int)$easy)));\n $rows[] = array('c' => array(array('v' => \"Easy\"),array('v' => (int)$nonEasy)));\n\n $table['rows'] = $rows;\n\n $jsonTable = json_encode($table);\n\n return $jsonTable;\n }catch(Exception $e){\n \\LOG::error($e-getMessage());\n }\n }", "title": "" }, { "docid": "7aec61df8791181d56c13966923955f7", "score": "0.522308", "text": "private function makePieChart()\n {\n $this->log->info('Attempting to create pie chart.');\n\n $series_data = $this->stored_message_data;\n\n $chart = new \\PieChart(1400, 600);\n\n $chart->getPlot()->getPalette()->setPieColor(array(\n new \\Color(239, 52, 160),\n new \\Color(239, 56, 62),\n new \\Color(239, 151, 59),\n new \\Color(230, 239, 62),\n new \\Color(137, 239, 66),\n new \\Color(69, 239, 92),\n new \\Color(72, 239, 185),\n new \\Color(76, 204, 239),\n new \\Color(79, 118, 239),\n new \\Color(130, 82, 240)\n ));\n\n $series1 = new \\XYDataSet();\n $keypad_inputs = [];\n\n foreach ($series_data as $data_row) {\n array_push($keypad_inputs, $data_row['keypad']);\n }\n\n foreach (array_count_values($keypad_inputs) as $keypad => $keypad_value) {\n $this->log->info('Attempting add point to pie chart: ' . $keypad . ' ' . $keypad_value);\n $series1->addPoint(new \\Point($keypad, $keypad_value));\n }\n\n $chart->setDataSet($series1);\n\n $chart->setTitle('');\n $chart->getPlot()->setGraphCaptionRatio(0.75);\n\n $chart->render($this->output_chart_path_and_name);\n }", "title": "" }, { "docid": "58e570db406a46b2aa66b9f74af2b973", "score": "0.522113", "text": "public function VRDepartmentChart(){\n try{\n $query = \"SELECT SUM(AK_VR_Daily.Amount) as Amount, client.Department as id FROM AK_VR_Daily JOIN client where year(AK_VR_Daily.transdate)= year(CURDATE() - INTERVAL 1 day) and month(AK_VR_Daily.transdate)= month(CURDATE() - INTERVAL 1 day) and client.client_id=AK_VR_Daily.client_id group by client.Department\";\n DB::enableQueryLog();\n $result=DB::select($query);\n $rows = array();\n $table = array();\n $table['cols'] = array(\n\n array('label' => 'Department', 'type' => 'string'),\n array('label' => 'Total Amount', 'type' => 'number')\n\n );\n /* Extract the information from $result */\n foreach($result as $r) {\n $rows[] = array('c' => array(array('v' => (string)$r->{'id'}), array('v' => (int)$r->{'Amount'})));\n }\n\n $table['rows'] = $rows;\n $jsonTable = json_encode($table);\n\n return $jsonTable;\n }catch(Exception $e){\n \\LOG::error($e-getMessage());\n }\n }", "title": "" }, { "docid": "ea5f29674cbbdaae212e0fc91d043f7c", "score": "0.52080476", "text": "public function index()\n {\n \n\n\n if (Auth::user()->id == 1) {\n $totalConsultas = Inquirie::count(); \n $totalMedicos = User::where('type_id', '=' , 3)->count();\n $totalPacientes = Patient::count();\n\n $consultP = [];\n $consultC = [];\n $consultPer = [];\n $consulta = Inquirie::where(DB::raw(\"(DATE_FORMAT(created_at,'%Y'))\"),date('Y'))\n ->where('inquiries.estado', '=', 'Pendente')\n ->get();\n $consultasPendentes = Charts::database($consulta, 'bar', 'highcharts')\n ->title(\"Dados da consultas marcadas\")\n ->elementLabel(\"Total das consultas\")\n ->dimensions(500, 400)\n ->responsive(false)\n ->groupByMonth(date('Y'), true);\n\n $consulta = Inquirie::where(DB::raw(\"(DATE_FORMAT(created_at,'%Y'))\"),date('Y'))\n ->where('inquiries.estado', '=', 'Cancelado')\n ->get();\n $consultasCanceladas = Charts::database($consulta, 'bar', 'highcharts')\n ->title(\"Dados da consultas canceladas\")\n ->elementLabel(\"Total das consultas canceladas\")\n ->dimensions(500, 400)\n ->responsive(false)\n ->groupByMonth(date('Y'), true);\n\n $consulta = Inquirie::where(DB::raw(\"(DATE_FORMAT(created_at,'%Y'))\"),date('Y'))\n ->where('inquiries.estado', '=', 'Pendente')\n ->get();\n $consultasPer = Charts::database($consulta, 'Donut', 'highcharts')\n ->title(\"Dados da consultas em percentagem\")\n ->elementLabel(\"Total das consultas\")\n ->dimensions(600, 500)\n ->responsive(true)\n ->groupByMonth(date('Y'), true);\n\n $consultPer['consultasPer'] = $consultasPer;\n $consultP['consultasPendentes'] = $consultasPendentes;\n $consultC['consultasCanceladas'] = $consultasCanceladas;\n\n return view('Admin.index', compact('totalMedicos', 'consultasPendentes',\n 'consultasCanceladas', 'totalConsultas', 'totalPacientes', 'consultasPer'));\n\n }elseif(Auth::user()->id == 2){\n\n return view('Utilizador.index');\n\n }else{\n $id = Auth::user()->id; \n $medico = User::find($id);\n $detalhesSegunda = Schedules::where('user_id', '=', $id)\n ->where('diaSemana','=','Monday')->first();\n $detalhesTerca = Schedules::where('user_id', '=', $id)\n ->where('diaSemana','=','Tuesday')->first();\n $detalhesQuarta = Schedules::where('user_id', '=', $id)\n ->where('diaSemana','=','Wednesday')->first();\n $detalhesQuinta = Schedules::where('user_id', '=', $id)\n ->where('diaSemana','=','Thursday')->first();\n $detalhesSexta = Schedules::where('user_id', '=', $id)\n ->where('diaSemana','=','Friday')->first();\n $consultasPendente = Inquirie::where('user_id', '=', $id)\n ->where('estado', '=', 'Pendente')->get();\n $consultasRealizadas = Inquirie::where('user_id', '=', $id)\n ->where('estado', '<>', 'Pendente')->get();\n return view('Medico.index', compact('detalhesSegunda','detalhesTerca','detalhesQuarta','detalhesQuinta','detalhesSexta', 'medico', 'consultasPendente', 'consultasRealizadas'));\n\n }\n \n }", "title": "" }, { "docid": "154ceb6ec53af7ecd761b7d423112b99", "score": "0.5201653", "text": "public function VRTransactionCountChart(Request $request){\n try{\n $year=$request->input('year');\n $month=$request->input('month');\n $quarter=$request->input('quarter');\n $operator=$request->input('operatorName');\n $year=str_replace(',', '', $year);\n $query=\"\";\n $pdoparameter=[];\n\n if($year==null && $quarter==null && $month==null){\n $query=\"SELECT YEAR(transdate) as id, sum(totalcnt) as Amount FROM AK_VR_Daily GROUP by id\";\n }\n elseif ($year!=null && $quarter!=null && $month==null) {\n $query = \"SELECT QUARTER(transdate) as id, sum(totalcnt) as Amount FROM AK_VR_Daily WHERE YEAR(transdate)=:year GROUP by id\";\n $pdoparameter=['year'=>$year];\n }\n elseif ($year!=null && $quarter==null && $month==null) {\n $query = \"SELECT MONTH(transdate) as id, sum(totalcnt) as Amount FROM AK_VR_Daily WHERE YEAR(transdate)=:year GROUP by id\";\n $pdoparameter=['year'=>$year];\n }\n elseif ($year!=null && $quarter==null && $month!=null) {\n $query = \"SELECT DAY(transdate) as id, sum(totalcnt) as Amount FROM AK_VR_Daily WHERE YEAR(transdate)= :year and MONTH(transdate)= :month GROUP by id\";\n $pdoparameter=['year'=>$year, 'month'=>$month];\n }\n\n DB::enableQueryLog();\n $result=DB::select($query,$pdoparameter);\n\n $rows = array();\n $table = array();\n\n $table['cols'] = array(\n array('label' => 'id', 'type' => 'string'),\n array('label' => 'Count', 'type' => 'number'),\n array('label' => 'Count', 'type' => 'number'),\n array('role' => 'style', 'type' => 'string'),\n );\n\n foreach($result as $r)\n $rows[] = array('c' => array(\n array('v' => (string) $r->{'id'}),\n array('v' => (int) $r->{'Amount'}),\n array('v' => (int) $r->{'Amount'}/1000),\n array('v' => \"#6EDDF9\")\n ));\n if( $year != null && $month != null){\n $query3 = \"SELECT COUNT(transdate) cnt FROM `AK_VR_Daily` WHERE (SELECT year(max(transdate)) FROM AK_VR_Daily) = :year and (SELECT month(max(transdate)) FROM AK_VR_Daily) = :month\";\n $result3=DB::select($query3, ['year'=>$year, 'month'=>$month]);\n if($result3[0]->{'cnt'}){\n $query4 = \"SELECT transdate a, weekday(transdate) weekday, sum(totalcnt) amount, (SELECT sum(totalcnt) FROM AK_VR_Daily WHERE transdate = (a - INTERVAL 1 day)) priviousday , (100 + ( 100 * ((SELECT sum(totalcnt) FROM AK_VR_Daily WHERE transdate = (a - INTERVAL 7 day)) - (SELECT sum(totalcnt) FROM AK_VR_Daily WHERE transdate = (a - INTERVAL 8 day))) / (SELECT sum(totalcnt) FROM AK_VR_Daily WHERE transdate = (a - INTERVAL 8 day)) ) ) per FROM AK_VR_Daily WHERE transdate > (SELECT max(transdate) - INTERVAL 7 day FROM AK_VR_Daily) GROUP by transdate\";\n DB::enableQueryLog();\n $result4 = DB::select($query4);\n $weekdayper = [];\n $lastDate = \"\";\n $lastAmount = 0;\n $lastweekday = \"\";\n foreach($result4 as $r4){\n $weekdayper[$r4->{'weekday'}] = $r4->{'per'};\n $lastDate = $r4->{'a'};\n $lastAmount = $r4->{'amount'};\n $lastweekday = $r4->{'weekday'};\n }\n\n $date = date_create($lastDate);\n $cday = date_format($date,\"d\");\n $month = date_format($date,\"m\") - 1;\n $year = date_format($date,\"Y\");\n $lday=cal_days_in_month(CAL_GREGORIAN,$month,$year);\n\n $j = 0; $lastAmountStore = $lastAmount;\n for($i=$cday+1;$i<=$lday;$i++){\n if($j%7==0) $lastAmount = $lastAmountStore;\n $j++;\n $lastweekday++;\n $lastweekday%=7;\n $lastAmount = ($lastAmount/100)*$weekdayper[$lastweekday];\n $rows[] = array('c' => array(\n array('v' => (string) $i),\n array('v' => (int) $lastAmount),\n array('v' => ((int) $lastAmount)/1000),\n array('v' => \"#D7F7FE\")\n ));\n }\n }\n }\n\n $table['rows'] = $rows;\n\n // convert data into JSON format\n $jsonTable = json_encode($table);\n return $jsonTable;\n }catch(Exception $e){\n \\LOG::error($e-getMessage());\n }\n }", "title": "" }, { "docid": "0d0194010d35513663be35d014c86d45", "score": "0.5177487", "text": "private function _getChartContribsAllTime()\n {\n global $zdb;\n\n $select = new \\Zend_Db_Select($zdb->db);\n\n $cols = array(\n 'date' => null,\n 'amount' => new \\Zend_Db_Expr('SUM(montant_cotis)')\n );\n $groupby = null;\n\n if ( TYPE_DB === 'pgsql' ) {\n $cols['date'] = new \\Zend_Db_Expr('date_trunc(\\'month\\', date_enreg)');\n $groupby = new \\Zend_Db_Expr('date_trunc(\\'month\\', date_enreg)');\n } else if ( TYPE_DB === 'mysql' ) {\n $cols['date'] = new \\Zend_Db_Expr('date_format(date_enreg, \\'%Y-%m\\')');\n $groupby = new \\Zend_Db_Expr('EXTRACT(YEAR_MONTH FROM date_enreg)');\n } else if ( TYPE_DB === 'sqlite') {\n $cols['date'] = new \\Zend_Db_Expr('STRFTIME(\"%Y-%m-%d\", date_enreg)');\n $groupby = 'date';\n }\n\n $select->from(\n PREFIX_DB . Contribution::TABLE,\n $cols\n )->group($groupby)->order('date ASC');\n\n $res = $select->query()->fetchAll();\n\n $chart = array();\n foreach ( $res as $r ) {\n $d = new \\DateTime($r->date);\n $chart[] = array(\n $d->format('Y-m'),\n (float)$r->amount\n );\n }\n $this->_charts[self::CONTRIBS_ALLTIME] = json_encode($chart);\n }", "title": "" }, { "docid": "89d6e05b36d7de79304a436c13b0ec3f", "score": "0.5166684", "text": "public static function calcularPeriodo(){\n $fechainicioo = Periodo::pluck('fechainicio')->toArray();\n $fechafinn = Periodo::pluck('fechafin')->toArray();\n\n \n\n $fechahoy = Carbon::now();\n \n\n foreach($fechainicioo as $fechainicio){\n\n if($fechahoy >= ($fechainicio[0]) && $fechahoy <= ($fechafinn[0]) )\n return '1';\n\n \n \n if($fechahoy >= ($fechainicio[1]) && $fechahoy <= ($fechafinn[1]) )\n return '2';\n\n \n \n if($fechahoy >= ($fechainicio[2]) && $fechahoy <= ($fechafinn[2]) )\n return '3';\n\n \n \n if($fechahoy >= ($fechainicio[3]) && $fechahoy <= ($fechafinn[3]) )\n return '4';\n\n \n\n }\n\n\n\n\n\n }", "title": "" }, { "docid": "9e141323c6a70a7f12c5f6f5dbc342a9", "score": "0.5164982", "text": "public function get_calendar_reservations() {\n\n\t\t$this->db->select('*, COUNT(*) AS count_date FROM `reservation` GROUP BY date_of_event');\n\t\t$query = $this->db->get();\n\t\treturn $query->result_array();\n\n\t}", "title": "" }, { "docid": "aac2bcf6582d1ec1ae9e418cbf447348", "score": "0.51416874", "text": "function query_chart(){\n\t\t$startdate = Request::GetFormString( \"startdate\");\n\t\t$enddate = Request::GetFormString ( \"enddate\" );\n\t\n\t\tif ($startdate == null) {\n\t\t\t$starttime = @date ( \"Y-m-d\" );\n\t\t}\n\t\tif ($enddate == null) {\n\t\t\t$endtime = @date ( \"Y-m-d\" );\n\t\t}\n\t\n\t\t// get the data\n\t\t$sql = \"select request_date, count(*) from user_request group by request_date having request_date>='$startdate' and request_date<='$enddate' order by request_date\";\n\t\t\n\t\t$query = $this->db->query($sql);\n\t\t$result =$query->result_array();\n\t\n\t\t// response the json data\n\t\tresponse($result,200);\n\t\n\t}", "title": "" }, { "docid": "6eea9f9cedecbfcd6260f974dc882e81", "score": "0.5138375", "text": "function pie_graph($data, $p_o=90, $put_pieces=true, $degree_start=0, $put_l=true, $threed_thickness=Array()){\n\t\t//Get center of pie\n\t\t$pie_center_x = ($this->right_border + $this->left_border)/2;\n\t\t$pie_center_y = ($this->top_border + $this->bottom_border)/2;\n\t\t$pie_width = ($this->right_border - $this->left_border)*$p_o/100;\n\t\t$pie_height = ($this->bottom_border - $this->top_border)*$p_o/100;\n\n\t\t//Draw lines, fill with color and label each pie slice\n\t\t$specs = $this->_get_specs($data,\"pie\");\n\t\t$data_total_elements = count($data);\n\t\t\n\t\t$max_threed_thickness = 0;\n\t\tif (count($threed_thickness) > 0){\n\t\t\t$max_threed_thickness = max($threed_thickness)+0;\n\t\t}\n\t\t\n\t\tfor ($i = 0; $i <= $max_threed_thickness; $i++){\n\t\t\t$total_degree_width = 0;\n\t\t\t$curr_ele = 1;\n\t\t\tforeach($data as $prod => $subarray){\n\t\t\t\t//Getting degree width of slice\n\t\t\t\tif ($curr_ele == $data_total_elements){\n\t\t\t\t\t$degree_width = 360 - $total_degree_width;\n\t\n\t\t\t\t\t//Thanks for Nam Phando for this next three lines.\n\t\t\t\t\t//The last value of the array can have a negative value\n\t\t\t\t\t//because of rounding errors, so these takes care of it.\n\t\t\t\t\tif ($degree_width < 0){\n\t\t\t\t\t\t$degree_width = 0;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t//Usage of round, recommended by Nam Phando.\n\t\t\t\t\t$degree_width = round((($subarray[0]+0) / $specs['total'])*360);\n\t\t\t\t}\n\n\t\t\t\t$curr_ele++;\n\t\t\t\t\t\t\t\t\n\t\t\t\tif ($i == $threed_thickness[$prod]+0){\t\t\n\t\t\t\t\t//Obtaining the color of this slice\n\t\t\t\t\t$curr_color = imagecolorallocate($this->image,$subarray[1]+0,$subarray[2]+0,$subarray[3]+0);\n\n\t\t\t\t\t//Drawing slice with its color\n\t\t\t\t\timagefilledarc($this->image, $pie_center_x, $pie_center_y-$threed_thickness[$prod], $pie_width, $pie_height, $degree_start+$total_degree_width, $degree_start+$total_degree_width+$degree_width, $curr_color,IMG_ARC_PIE);\n\t\t\n\t\t\t\t\t//Drawing top outline and side outline\n\t\t\t\t\tif($put_l){\n\t\t\t\t\t\timagefilledarc($this->image, $pie_center_x, $pie_center_y-$threed_thickness[$prod], $pie_width, $pie_height, $degree_start+$total_degree_width, $degree_start+$total_degree_width+$degree_width, $this->line_color,IMG_ARC_NOFILL | IMG_ARC_EDGED);\n\t\t\t\t\t\tif ((floor(($degree_start+$total_degree_width)/180)%2) == 0){\n\t\t\t\t\t\t\t$ver_line_pos = $this->_ellipse_pos($degree_start+$total_degree_width, $pie_height, $pie_width, \"\");\n\t\t\t\t\t\t\timageline($this->image, $pie_center_x+$ver_line_pos['x'], $pie_center_y+$ver_line_pos['y'], $pie_center_x+$ver_line_pos['x'], $pie_center_y+$ver_line_pos['y']-$threed_thickness[$prod], $this->line_color);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ((floor(($degree_start+$total_degree_width+$degree_width)/180)%2) == 0){\n\t\t\t\t\t\t\t$ver_line_pos = $this->_ellipse_pos($degree_start+$total_degree_width+$degree_width, $pie_height, $pie_width, \"\");\n\t\t\t\t\t\t\timageline($this->image, $pie_center_x+$ver_line_pos['x'], $pie_center_y+$ver_line_pos['y'], $pie_center_x+$ver_line_pos['x'], $pie_center_y+$ver_line_pos['y']-$threed_thickness[$prod], $this->line_color);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//Printing label\n\t\t\t\t\tif($put_pieces){\n\t\t\t\t\t\t$label_pos = $this->_ellipse_pos($degree_start+$total_degree_width+($degree_width/2), $pie_height, $pie_width, $prod.\"\");\n\t\t\t\t\t\timagestring($this->image, 2, $pie_center_x+$label_pos['x'], $pie_center_y+$label_pos['y']-$threed_thickness[$prod], $prod.\"\", $this->font_color);\n\t\t\t\t\t}\n\t\t\t\t}else if ($i < $threed_thickness[$prod]+0){\n\t\t\t\t\t//Obtaining the color of the 3D side of this slice\n\t\t\t\t\t$curr_3dcolor = imagecolorallocate($this->image, ($subarray[1]-50 < 0) ? 0 : $subarray[1]-50, ($subarray[2]-50 < 0) ? 0 : $subarray[2]-50, ($subarray[3]-50 < 0) ? 0 : $subarray[3]-50);\n\n\t\t\t\t\t//Drawing bottom outline of pie in 3d\n\t\t\t\t\tif($put_l and $i == 0)\n\t\t\t\t\t\timagefilledarc($this->image, $pie_center_x, $pie_center_y, $pie_width+1, $pie_height+1, $degree_start+$total_degree_width, $degree_start+$total_degree_width+$degree_width, $this->line_color,IMG_ARC_NOFILL | IMG_ARC_EDGED);\n\t\t\t\t\t//Creating 3D effect\n\t\t\t\t\timagefilledarc($this->image, $pie_center_x, $pie_center_y-$i, $pie_width, $pie_height, $degree_start+$total_degree_width, $degree_start+$total_degree_width+$degree_width, $curr_3dcolor,IMG_ARC_PIE);\n\t\t\t\t}\n\n\t\t\t\t//Getting starting point of next slice\n\t\t\t\t$total_degree_width+=$degree_width;\n\t\t\t}\n\t\t}\n\n\t\t//Printing title\n\t\t$font_left_space = (strlen($this->title)*7)/2;\n\t\timagestring($this->image, 3, ($this->width/2)-($font_left_space), 0, $this->title, $this->font_color);\n\n\t\t//Printing legend\n\t\tif($this->legend){\n\t\t\t$legend_data = Array();\n\t\t\tforeach($data as $prod => $sub_data){\n\t\t\t\t$legend_data[$prod] = Array($sub_data[1],$sub_data[2],$sub_data[3]);\n\t\t\t}\n\t\t\t$this->_do_legend($legend_data);\n\t\t}\n\t\t\n\t\t//Return image\n\t\theader('Content-type: image/png');\n\t\timagepng($this->image);\n\t\timagedestroy($this->image);\n\t}", "title": "" }, { "docid": "cfa29caf26448368f1bca69af56e6841", "score": "0.5094211", "text": "function getPieCharts($data, $option) {\n return '\n <script type=\"text/javascript\">\n google.charts.load(\\'current\\', {\\'packages\\':[\\'corechart\\']});\n google.charts.setOnLoadCallback(drawChart);\n\n function drawChart() {\n '. $data .' \n \n '. $option .' \n\n var chart = new google.visualization.PieChart(document.getElementById(\\'donut_single\\'));\n chart.draw(data, options);\n }\n </script>\n\n <div id=\"donut_single\" style=\"width: 100px; height: 100px;\"></div>\n ';\n}", "title": "" }, { "docid": "edf396746ad28a574bc8e14ef1f23e56", "score": "0.5086684", "text": "public function calculateTools( $time, $interval, $array )\n {\n $obj1 = new stdClass();\n $obj2 = new stdClass();\n $obj3 = new stdClass();\n\n $obj1->label = \"Praca sprezarki\";\n $obj2->label = \"Praca pomp obiegowych\";\n\n $obj1->backgroundColor = [\"rgba( 135, 64, 52, 0.2)\"];\n $obj2->backgroundColor = [\"rgba( 235, 214, 52, 0.2)\"];\n\n $obj1->borderColor = [\"rgba( 135, 64, 52, 1)\"];\n $obj2->borderColor = [\"rgba( 235, 214, 52, 1)\"];\n\n $obj1->data = [];\n $obj2->data = [];\n\n $t1 = 0;\n $t2 = 0;\n\n if( count($array) > $interval) {\n for ($i = 1; $i <= $time; $i++) {\n $t1 += $array[$i - 1]['SPREZARKA'] ?? 0;\n $t2 += $array[$i - 1]['POMPY'] ?? 0;\n if( $i%$interval === 0 )\n {\n $obj1->data[] = $t1 / 360;//to get hours\n $obj2->data[] = $t2 / 360;\n $t1 = 0;\n $t2 = 0;\n }\n }\n }\n else{\n for ($i = 1; $i <= count($array); $i++) {\n $t1 += $array[$i - 1]['SPREZARKA'] ?? 0;\n $t2 += $array[$i - 1]['POMPY'] ?? 0;\n }\n $obj1->data[] = $t1/360;\n $obj2->data[] = $t2/360;\n }\n\n return [$obj1, $obj2];\n }", "title": "" }, { "docid": "11cd9cb6b731c6c43034c537174aa89b", "score": "0.5064594", "text": "public function calendariosespeciesInfo(Request $request)\n {\n\n\n\n\n $buscar_anio= $request->input('buscar_anio');\n $categorias=$this->nota->getCalendarioEspeciesInfo()->distinct(\"descrip_fenofase\")->select(\"descrip_fenofase\")->pluck(\"descrip_fenofase\");\n $especies=$this->nota->getCalendarioEspeciesInfo()->select(\"especies.descripcion\")->distinct(\"especies.descripcion\")->orderby(\"especies.descripcion\")->pluck(\"especies.descripcion\");\n $anos=$this->nota->selectRaw('year(fecha) as anio')\n ->distinct('year(fecha)')\n ->orderBy('anio', 'DESC')->get();\n\n $data=array();\n foreach ($especies as $index=>$especie)\n {\n $aux=array();\n\n foreach ($categorias as $index2=>$categoria)\n {\n for($i=1;$i<=12;$i++)\n {\n\n $valor=$this->nota->getDateFenofase($i, $buscar_anio,$especie,$categoria)->where(\"observaciones\",\"!=\",0);\n\n if($valor->count()>0) {\n // $date = strtotime($valor[0]->primera_fecha);\n //return $valor;\n //return $date;\n array_push($aux, [\"x\" => \"Date.parse('{$buscar_anio}-{$i}-1')\",\n \"x2\" =>\"Date.parse('{$buscar_anio}-{$i}-28')\",\n \"y\"=>\"$index2\",\n \"partialFill\"=> \"{$valor[0]->observaciones}\",\n \"description\"=>\"'{$valor[0]->primer_fecha} / {$valor[0]->ultima_fecha}'\",\n\n\n ]);\n // return $aux;\n }\n }\n }\n array_push($data,[\"name\"=>\"'\".$especie.\"'\",\"data\"=>$aux,\"dataLabels\"=>[\"format\"=>\"'{point.partialFill}'\"]]);\n //break;\n }\n //return $data;\n return view('Graficas.grafica5', compact('categorias',\"data\",\"buscar_anio\",\"anos\"));\n\n }", "title": "" }, { "docid": "b1d209c804ad8aaa5d9f8e0a1e56f9e9", "score": "0.50395066", "text": "public function getReservationsNow()\n {\n $niz=ReservationResource::getReservationsCurrent(); \n return view('rezervacijeInfo.trenutne',['niz'=>$niz]);\n }", "title": "" }, { "docid": "107c3f35c81f4eaf039594a8099e71e8", "score": "0.5036737", "text": "public function viewDash(){\n\n\t\t$user = Auth::user();\n\t\t$user_id = $user->user_id;\n\t\t$rmr = $user->rmr;\n\n\t\t$plan = new Plan($user_id);\n\t\t$plan_id = $plan->plan_id;\n\t\t$start_date = $plan->start_date;\n\t\t$num_days = $plan->num_days;\n\n\t\t//Gets plan's start date through Laravel's Carbon\n\t\t$c_start_date= new Carbon($start_date);\n\n\t\t//Calls to check if Plan adjustment exists\n\t\t$plan_adjustment = $plan->getAdjustment();\n\n\t\t//If plan adjust exists rename the below two variables//\n\t\tif($plan_adjustment) {\n\t\t\t$adjust_date = new Carbon($plan_adjustment->adjustment_date);\n\t\t\t$num_days = $plan_adjustment->num_days;\n\t\t\t$adjust_day = $this->convertDateToDay($adjust_date, $c_start_date);\n\t\t} \n\n\t\t$checkin_array = $this->getCheckin($plan_id, $rmr);\n\n\t\t//Creating new variables\n\t\t$daily_array=[];\n\t\t$Cummulitive = [];\n\t\t$cumGoalPounds = 0;\n\t\t$cumActualPounds = 0;\n\t\t$day='';\n\n\t\t\n\t\t/*Looping through information and creating two associative arrays to place in the\n\t\tindex array to access for the graph.*/\n\t\tfor($day = 1; $day <= $num_days; $day++) {\n\t\t\t\n\t\t\t$this_date = $this->convertDayToDate($day, $start_date);\n\n\t\t\tif($plan_adjustment) {\n \t\t\t\t \n\t\t\t\tif($day <= $adjust_day) {\n\t\t\t\t\t$goal_pounds = $plan->lose_weight / $plan->num_days;\n\n\t\t\t\t} else {\n\t\t\t\t\t//Grabs information to create the goal pounds variable\n\t\t\t\t\t$dr = $plan_adjustment->num_days - $adjust_day;\n\t\t\t\t\t$pi = $adjust_day * ($plan->lose_weight/ $plan->num_days);\n\t\t\t \t\t$pr = $plan_adjustment->end_weight - $pi;\n\t\t\t\t\t$goal_pounds = $pr/$dr;\n\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\t$goal_pounds = $plan->lose_weight / $plan->num_days;\n\t\t\t}\n\n\t\t\t// Create a new entry for daily\n\t\t\t$day_item = [\n\t\t\t\t\t\t'day' => $day,\n\t\t\t\t\t\t'goal_pounds' => $goal_pounds,\n\t\t\t\t\t\t'actual_pounds' => $this->getActualPounds($this_date, $checkin_array)\n\t\t\t];\n\n\t\t\t//Add goal pounds to eachother to add them together through each loop\n\t\t\t$cumGoalPounds = $cumGoalPounds + $goal_pounds;\n\t\t\t$cumActualPounds = $cumActualPounds + $this->getActualPounds($this_date, $checkin_array);\n\n\t\t\t$Cummulitive_day = [\n\t\t\t\t\t\t'day' => $day,\n\t\t\t\t\t\t'goal_pounds' => $cumGoalPounds,\n\t\t\t\t\t\t'actual_pounds' => $cumActualPounds\n\t\t\t];\n\n\t\t\t//pushes these arrays to the last index of the above array\n\t\t\tarray_push($daily_array, $day_item);\n\t\t\tarray_push($Cummulitive, $Cummulitive_day);\n\n\t\t}\n\n\t\treturn view('dashboard', [\n\t\t\t'Cummulitive' => $Cummulitive, \n\t\t\t'plan' => $plan, \n\t\t\t'plan_adjustment' => $plan_adjustment\n\t\t]);\n\t}", "title": "" }, { "docid": "429b2a2ef5753f71c73011e406e90f41", "score": "0.5011373", "text": "public function time() {\n $data = array();\n\n // Handle our reporting options\n $options = $this->input->post('options');\n if(!isset($options['start_date'])) {\n $options['start_date'] = date('Y-01-01');\n }\n if(!isset($options['end_date'])) {\n $options['end_date'] = date('Y-m-d');\n }\n \n $selected_client = isset($options['filter']['client_id']) ? $options['filter']['client_id'] : 0;\n if(isset($options['filter']['client_id']) && $options['filter']['client_id'] <= 0) {\n unset($options['filter']['client_id']);\n $selected_client = 0;\n }\n $data['options'] = $options;\n\n // Get a list of months between our two dates\n $months = array();\n $start = (new DateTime($options['start_date']))->modify('first day of this month');\n $end = (new DateTime($options['end_date']))->modify('first day of this month');\n $interval = DateInterval::createFromDateString('1 month');\n $period = new DatePeriod($start, $interval, $end);\n\n foreach ($period as $dt) {\n $temp = $dt->format(\"Y-m\");\n $months[$temp] = $temp;\n }\n\n // Get our client options\n $data['client_options'] = $this->getOptions($this->financials_model->getClients(), $selected_client);\n\n // Get the report data\n $report = $this->financials_model->getTimeReport($options);\n $data['report'] = $report;\n\n // Build our graph/report data\n $graph = array();\n $chart_cats = array();\n foreach($report as $month => $month_data) {\n unset($months[$month]);\n $group = array('month' => $month);\n foreach($month_data as $client => $client_data) {\n $chart_cats[$client] = $client;\n $group[$client] = $client_data['total'];\n }\n $graph[] = $group;\n }\n\n // Add entries for any months we didn't have in the data\n foreach($months as $month) {\n $graph[] = array('month' => $month);\n }\n\n // Make sure we have all clients we found in all groups\n foreach($chart_cats as $cat) {\n foreach($graph as $key => $row) {\n if(!isset($row[$cat])) {\n $graph[$key][$cat] = 0;\n }\n }\n }\n\n // Sort them so they are pretty\n ksort($chart_cats);\n foreach($graph as $key => $row) {\n ksort($graph[$key]);\n }\n\n // Configure our graph data for the page\n if(!empty($graph)) {\n $data['graph']['json'] = json_encode($graph);\n $data['graph']['cats'] = \"'\" . implode(\"','\", $chart_cats) . \"'\";\n }\n\n $this->templateDisplay('reporting/time.tpl', $data);\n\t}", "title": "" }, { "docid": "e3a45e2d022924c577e6ee4a9fd2f2f1", "score": "0.49977487", "text": "public function vegetarianosVeganosChart()\n {\n $vivientes = Viviente::where('campamento_id',$this->campamentoId)->where('pagado','>','0')->get();\n $vegetarianosVeganosArray = array();\n $vegetarianosVeganosArray['vegetarianos'] = 0;\n $vegetarianosVeganosArray['veganos'] = 0;\n foreach ($vivientes as $viviente) {\n if($viviente->restriccionesAlimentarias == 'Vegetariano'){\n $vegetarianosVeganosArray['vegetarianos']++;\n }\n if($viviente->restriccionesAlimentarias == 'Vegano'){\n $vegetarianosVeganosArray['veganos']++;\n }\n }\n return json_encode($vegetarianosVeganosArray);\n }", "title": "" }, { "docid": "ab3bfbcafaf357b94948ade4fa88bde6", "score": "0.49940944", "text": "public function getAuditRoundWiseDataChart($params)\n {\n $db = $this->sm->get('SpiFormVer3Table');\n $result = $db->getAuditRoundWiseData($params);\n $MyData = new Data();\n /* Create and populate the pData object */\n $filename = '';\n if (count($result) > 0) {\n foreach ($result as $auditNo => $adata) {\n //$MyData->addPoints(array(round($adata['PERSONAL_SCORE'],2),round($adata['PHYSICAL_SCORE'],2),round($adata['SAFETY_SCORE'],2),round($adata['PRETEST_SCORE'],2),round($adata['TEST_SCORE'],2),round($adata['POST_SCORE'],2),round($adata['EQA_SCORE'],2)),\"Score\".$auditNo);\n $MyData->addPoints(array(round($adata['PERSONAL_SCORE'], 2), round($adata['PHYSICAL_SCORE'], 2), round($adata['SAFETY_SCORE'], 2), round($adata['PRETEST_SCORE'], 2), round($adata['TEST_SCORE'], 2), round($adata['POST_SCORE'], 2), round($adata['EQA_SCORE'], 2)), \"Audit Performance\");\n $MyData->setSerieDescription(\"Audit Performance\" . $auditNo, $auditNo);\n $rgbColor = array();\n //Create a loop.\n foreach (array('r', 'g', 'b') as $color) {\n //Generate a random number between 0 and 255.\n $rgbColor[$color] = mt_rand(0, 255);\n }\n $MyData->setPalette(\"Audit Performance\" . $auditNo, array(\"R\" => $rgbColor['r'], \"G\" => $rgbColor['g'], \"B\" => $rgbColor['b']));\n }\n }\n /* Define the absissa serie */\n $MyData->addPoints(array(\"Personnel Training & Certification\", \"Physical\", \"Safety\", \"Pre-Testing\", \"Testing\", \"Post Testing Phase\", \"External Quality Audit\"), \"Label\");\n $MyData->setAbscissa(\"Label\");\n\n /* Create the pChart object */\n $myPicture = new Image(600, 690, $MyData);\n //$myPicture->drawGradientArea(0,0,450,50,DIRECTION_VERTICAL,array(\"StartR\"=>400,\"StartG\"=>400,\"StartB\"=>400,\"EndR\"=>480,\"EndG\"=>480,\"EndB\"=>480,\"Alpha\"=>0));\n //$myPicture->drawGradientArea(0,0,450,25,DIRECTION_HORIZONTAL,array(\"StartR\"=>60,\"StartG\"=>60,\"StartB\"=>60,\"EndR\"=>200,\"EndG\"=>200,\"EndB\"=>200,\"Alpha\"=>0));\n //$myPicture->drawLine(0,25,450,25,array(\"R\"=>255,\"G\"=>255,\"B\"=>255));\n //$RectangleSettings = array(\"R\"=>180,\"G\"=>180,\"B\"=>180,\"Alpha\"=>50);\n\n /* Add a border to the picture */\n $myPicture->drawRectangle(0, 0, 599, 678, array(\"R\" => 0, \"G\" => 0, \"B\" => 0));\n\n $path = FONT_PATH . DIRECTORY_SEPARATOR;\n /* Write the picture title */\n //$myPicture->setFontProperties(array(\"FontName\"=>$path.\"/Silkscreen.ttf\",\"FontSize\"=>6));\n //$myPicture->drawText(10,13,\"pRadar - Draw radar charts\",array(\"R\"=>255,\"G\"=>255,\"B\"=>255));\n\n /* Set the default font properties */\n $myPicture->setFontProperties(array(\"FontName\" => $path . \"/Forgotte.ttf\", \"FontSize\" => 15, \"R\" => 80, \"G\" => 80, \"B\" => 80));\n\n /* Enable shadow computing */\n $myPicture->setShadow(true, array(\"X\" => 1, \"Y\" => 1, \"R\" => 0, \"G\" => 0, \"B\" => 0, \"Alpha\" => 10));\n\n /* Create the pRadar object */\n $SplitChart = new Radar();\n /* Draw a radar chart */\n $myPicture->setGraphArea(15, 15, 590, 590);\n $Options = array(\"Layout\" => RADAR_LAYOUT_STAR, \"BackgroundGradient\" => array(\"StartR\" => 510, \"StartG\" => 510, \"StartB\" => 510, \"StartAlpha\" => 10, \"EndR\" => 414, \"EndG\" => 454, \"EndB\" => 250, \"EndAlpha\" => 10), \"FontName\" => $path . \"/pf_arma_five.ttf\", \"FontSize\" => 15);\n $SplitChart->drawRadar($myPicture, $MyData, $Options);\n\n /* Write the chart legend */\n $myPicture->setFontProperties(array(\"FontName\" => $path . \"/pf_arma_five.ttf\", \"FontSize\" => 7));\n $myPicture->drawLegend(330, 620, array(\"Style\" => LEGEND_BOX, \"Mode\" => LEGEND_VERTICAL));\n\n /* Render the picture (choose the best way) */\n $fileName = 'radar.png';\n $result = $myPicture->autoOutput(TEMP_UPLOAD_PATH . DIRECTORY_SEPARATOR . \"radar.png\");\n return $fileName;\n }", "title": "" }, { "docid": "857b01a6bc7ec071d7ab8d04b3d5de8c", "score": "0.49681768", "text": "public function getIncidentsPieData(){\n $c = new CDbCriteria;\n $c->select = \"count(id) as id\"; \n $c->condition = \"date(created_timestamp) >= '$start' AND date(created_timestamp) <= '$end'\";\n }", "title": "" }, { "docid": "9a1033b7d6fd17b1acd223f7187f1c9e", "score": "0.4966518", "text": "public static function getReservationByHour($request)\n\t\t{\n\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\t$are = Capsule::select('select count(*) as total, to_char(h_d_reservation.reservation_time, \\'HH24\\') as hour_day from h_d_reservation\n\t\t\tgroup by to_char(h_d_reservation.reservation_time, \\'HH24\\') \n\t\t\torder by to_char(h_d_reservation.reservation_time, \\'HH24\\') asc;\n\t\t\t');\n\t\t\t\t\t\n\n\t\t\tprint(json_encode($are, JSON_UNESCAPED_UNICODE));\t\n\n\n\t\t\t//echo $HistorialReservation->toJson();\n\t\t}", "title": "" }, { "docid": "e0ebf33328fcbbc12f7bc87277244191", "score": "0.49560264", "text": "public function showGeneralChart(){\n //$subs = 'Select count(*) From clients_sms_registration';\n $subscribersCount = DB::table('clients_sms_registration') \n ->count();\n \n // gender data\n $sqlmale = ' client_gender = \"m\" ';\n $sqlfemale = ' client_gender = \"f\" ';\n \n //Male Subscribers \n $subscribersMale = DB::table('clients_sms_registration')\n ->whereRaw($sqlmale)\n ->count();\n \n //Female Subscribers \n $subscribersFemale = DB::table('clients_sms_registration')\n ->whereRaw($sqlfemale)\n ->count();\n \n // Number of not-assigned subscribers\n $subscribersNotAssignedGender = DB::table('clients_sms_registration')\n ->whereRaw('client_gender NOT IN (\"M\",\"F\") ')\n ->count();\n \n $subscribersByGender[\"chart\"] = array(\"plotBackgroundColor\" => null,\"plotBorderWidth\"=>1,\"plotShadow\"=>false);\n $subscribersByGender[\"title\"] = array(\"text\" => \" \");\n //$chartArray[\"tooltip\"] = array(\"pointFormat\" => \"{series.name}: <b>{point.percentage:.1f}%</b>\");\n $subscribersByGender[\"legend\"] = array(\"enabled\" => true);\n $subscribersByGender[\"credits\"] = array(\"enabled\" => false);\n $subscribersByGender[\"plotOptions\"] = array(\"pie\" => array(\"allowPointSelect\" => true, \"cursor\"=>\"pointer\",\"dataLabels\" => array(\"enabled\" => true,\"format\"=>\"<b>{point.name}</b>: {point.percentage:.1f} % ({y})\")));\n $subscribersByGender[\"series\"][] = array(\"type\" => \"pie\", 'name' => \"Registrants By Gender\", \"data\" => [array(\"name\" => \"Males\", \"y\" => $subscribersMale), array(\"name\" => \"Females\", \"y\" => $subscribersFemale), array(\"name\" => \"Not Assigned\", \"y\" => $subscribersNotAssignedGender) ]);\n \n \n // educational level data\n $sqljhs = ' client_education_level=\"jhs\" ';\n $sqlshs = ' client_education_level=\"shs\" ';\n $sqlter = ' client_education_level=\"ter\" ';\n $sqlna = ' client_education_level=\"na\" ';\n \n //Jhs Level Subscribers \n $subscribersJhs = DB::table('clients_sms_registration')\n ->whereRaw($sqljhs)\n ->count();\n \n //Shs Level Subscribers \n $subscribersShs = DB::table('clients_sms_registration')\n ->whereRaw($sqlshs)\n ->count();\n \n //Tertiary Level Subscribers \n $subscribersTer = DB::table('clients_sms_registration')\n ->whereRaw($sqlter)\n ->count();\n \n //Not In School Subscribers \n $subscribersNa = DB::table('clients_sms_registration')\n ->whereRaw($sqlna)\n ->count();\n \n //Other educational level subscribers\n $subscribersOtherLevel = DB::table('clients_sms_registration')\n ->whereRaw('client_education_level NOT IN (\"Jhs\",\"Shs\",\"Ter\",\"Na\") ')\n ->count();\n \n $subscribersByEduLevel[\"chart\"] = array(\"plotBackgroundColor\" => null,\"plotBorderWidth\"=>1,\"plotShadow\"=>false);\n $subscribersByEduLevel[\"title\"] = array(\"text\" => \" \");\n //$chartArray[\"tooltip\"] = array(\"pointFormat\" => \"{series.name}: <b>{point.percentage:.1f}%</b>\");\n $subscribersByEduLevel[\"legend\"] = array(\"enabled\" => true);\n $subscribersByEduLevel[\"credits\"] = array(\"enabled\" => false);\n $subscribersByEduLevel[\"plotOptions\"] = array(\"pie\" => array(\"allowPointSelect\" => true, \"cursor\"=>\"pointer\",\"dataLabels\" => array(\"enabled\" => true,\"format\"=>\"<b>{point.name}</b>: {point.percentage:.1f} % ({y})\")));\n $subscribersByEduLevel[\"series\"][] = array(\"type\" => \"pie\", 'name' => \"Registrants By Education Level\", \"data\" => [array(\"name\" => \"JHS\", \"y\" => $subscribersJhs), array(\"name\" => \"SHS\", \"y\" => $subscribersShs), array(\"name\" => \"Tertiary\", \"y\" => $subscribersTer) , array(\"name\" => \"Not In School\", \"y\" => $subscribersNa) , array(\"name\" => \"Others\", \"y\" => $subscribersOtherLevel) ]);\n \n \n //voice languages data\n $sqlenglish = ' And client_language=\"English\"';\n $sqltwi = ' And client_language=\"Twi\"';\n $sqlewe = ' And client_language=\"Ewe\"';\n $sqlhausa = ' And client_language=\"Hausa\"';\n $sqldangme = ' And client_language=\"Dangme\"';\n $sqldagbani = ' And client_language=\"Dagbani\"';\n $sqldagaare = ' And client_language=\"Dagaare\"';\n $sqlkassem = ' And client_language=\"Kassem\"';\n $sqlgonja = ' And client_language=\"Gonja\"';\n \n $sqlnotassigned = ' And client_language NOT IN (\"English\",\"Gonja\",\"Twi\",\"Ewe\",\"Hausa\",\"Dangme\",\"Dagbani\",\"Dagaare\",\"Kassem\") ';\n $sqlnulllanguage = ' And client_language IS NULL ';\n \n $sqlvoice = ' channel=\"Voice\" And status IN (\"Completed\",\"LongCode\") ';\n \n //English Voice\n $subscribersEnglish = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice. ' ' .$sqlenglish)\n ->count();\n \n //Twi Voice \n $subscribersTwi = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice. ' ' .$sqltwi)\n ->count();\n \n //Ewe Voice \n $subscribersEwe = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice. ' ' .$sqlewe)\n ->count();\n \n //Hausa \n $subscribersHausa = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice. ' ' .$sqlhausa)\n ->count();\n \n //Dangwe \n $subscribersDangwe = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice. ' ' .$sqldangme)\n ->count();\n \n //Dagbani \n $subscribersDagbani = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice. ' ' .$sqldagbani)\n ->count();\n \n //Dagaare \n $subscribersDagaare = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice. ' ' .$sqldagaare)\n ->count();\n \n //Kaseem \n $subscribersKassem = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice. ' ' .$sqlkassem)\n ->count();\n \n //Gonja \n $subscribersGonja = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice. ' ' .$sqlgonja)\n ->count();\n \n //Not Assigned \n $subscribersNotAssignedVoice = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice. ' ' .$sqlnotassigned)\n ->count();\n \n //Null language \n $subscribersNullLanguage = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice. ' ' .$sqlnulllanguage)\n ->count();\n \n //Voice Subscribers\n $subscribersVoice = DB::table('clients_sms_registration')\n ->whereRaw($sqlvoice)\n ->count();\n \n $subscribersByVoice[\"chart\"] = array(\"plotBackgroundColor\" => null,\"plotBorderWidth\"=>1,\"plotShadow\"=>false);\n $subscribersByVoice[\"title\"] = array(\"text\" => \" \");\n //$chartArray[\"tooltip\"] = array(\"pointFormat\" => \"{series.name}: <b>{point.percentage:.1f}%</b>\");\n $subscribersByVoice[\"legend\"] = array(\"enabled\" => true);\n $subscribersByVoice[\"credits\"] = array(\"enabled\" => false);\n $subscribersByVoice[\"plotOptions\"] = array(\"pie\" => array(\"allowPointSelect\" => true, \"cursor\"=>\"pointer\",\"dataLabels\" => array(\"enabled\" => true,\"format\"=>\"<b>{point.name}</b>: {point.percentage:.1f} % ({y})\")));\n $subscribersByVoice[\"series\"][] = array(\"type\" => \"pie\", 'name' => \"Registrants By Voice Languages\", \"data\" => [array(\"name\" => \"English\", \"y\" => $subscribersEnglish), array(\"name\" => \"Twi\", \"y\" => $subscribersTwi), \n array(\"name\" => \"Ewe\", \"y\" => $subscribersEwe) , array(\"name\" => \"Hausa\", \"y\" => $subscribersHausa) , array(\"name\" => \"Dangme\", \"y\" => $subscribersDangwe) , \n array(\"name\" => \"Dagbani\", \"y\" => $subscribersDagbani), array(\"name\" => \"Dagaare\", \"y\" => $subscribersDagaare) , array(\"name\" => \"Kassem\", \"y\" => $subscribersKassem), array(\"name\" => \"Gonja\", \"y\" => $subscribersGonja) , array(\"name\" => \"Not Assigned\", \"y\" => ($subscribersNotAssignedVoice + $subscribersNullLanguage) ) ]);\n \n\n \n // campaign data\n $sqlroland = ' And UPPER(campaignid)=\"RONALD\" ';\n $sqlrita = ' And UPPER(campaignid)=\"RITA\" ';\n $sqlkiki = ' And UPPER(campaignid)=\"KIKI\" ';\n \n $sqlcompleted = ' status IN (\"Completed\",\"LongCode\") ';\n \n //Ronald Subscribers \n $subscribersRonald = DB::table('clients_sms_registration')\n ->whereRaw($sqlcompleted .\" \". $sqlroland)\n ->count();\n \n //Rita Subscribers \n $subscribersRita = DB::table('clients_sms_registration')\n ->whereRaw($sqlcompleted .\" \". $sqlrita)\n ->count();\n \n //Kiki Subscribers \n $subscribersKiki = DB::table('clients_sms_registration')\n ->whereRaw($sqlcompleted .\" \". $sqlkiki)\n ->count();\n \n \n \n $subscribersByCampaign[\"chart\"] = array(\"plotBackgroundColor\" => null,\"plotBorderWidth\"=>1,\"plotShadow\"=>false);\n $subscribersByCampaign[\"title\"] = array(\"text\" => \" \");\n //$chartArray[\"tooltip\"] = array(\"pointFormat\" => \"{series.name}: <b>{point.percentage:.1f}%</b>\");\n $subscribersByCampaign[\"legend\"] = array(\"enabled\" => true);\n $subscribersByCampaign[\"credits\"] = array(\"enabled\" => false);\n $subscribersByCampaign[\"plotOptions\"] = array(\"pie\" => array(\"allowPointSelect\" => true, \"cursor\"=>\"pointer\",\"dataLabels\" => array(\"enabled\" => true,\"format\"=>\"<b>{point.name}</b>: {point.percentage:.1f} % ({y})\")));\n $subscribersByCampaign[\"series\"][] = array(\"type\" => \"pie\", 'name' => \"Registrants By Campaign\", \"data\" => [array(\"name\" => \"15-19 yrs (In School) \", \"y\" => $subscribersRonald), array(\"name\" => \"20-24 yrs\", \"y\" => $subscribersRita), array(\"name\" => \"15-19 yrs (Not In School)\", \"y\" => $subscribersKiki) ]);\n \n \n\n $data = array(\"subscribersCount\"=>$subscribersCount,\"subscribersByGender\"=>$subscribersByGender,'subscribersMale'=>$subscribersMale,'subscribersFemale'=>$subscribersFemale,'subscribersNotAssignedGender'=>$subscribersNotAssignedGender,\n 'subscribersByEduLevel'=>$subscribersByEduLevel,'subscribersJhs'=>$subscribersJhs,'subscribersShs'=>$subscribersShs,'subscribersTer'=>$subscribersTer,'subscribersNa'=>$subscribersNa,'subscribersOtherLevel'=>$subscribersOtherLevel,\n 'subscribersByVoice'=>$subscribersByVoice,'subscribersVoice'=>$subscribersVoice,'subscribersEnglish'=>$subscribersEnglish,'subscribersTwi'=>$subscribersTwi,'subscribersEwe'=>$subscribersEwe,'subscribersHausa'=>$subscribersHausa,'subscribersDangwe'=>$subscribersDangwe,\n 'subscribersDagbani'=>$subscribersDagbani,'subscribersDagaare'=>$subscribersDagaare,'subscribersKassem'=>$subscribersKassem, 'subscribersGonja'=>$subscribersGonja,'subscribersNotAssignedVoice'=>($subscribersNotAssignedVoice + $subscribersNullLanguage),\n 'subscribersByCampaign'=>$subscribersByCampaign,'subscribersRonald'=>$subscribersRonald,'subscribersRita'=>$subscribersRita,'subscribersKiki'=>$subscribersKiki);\n \n \n return View::make('stats/generalcharts')->with($data);\n }", "title": "" }, { "docid": "111ab3252edfad78232c758c14864491", "score": "0.49541834", "text": "public function edadesChartDataPagados()\n {\n $vivientes = Viviente::where('campamento_id',$this->campamentoId)->where('pagado','>','0')->get();\n $edadesArray = array();\n $edadesArray['sinEdad']=0;\n $edadesArray['intervalo1']=0;\n $edadesArray['intervalo2']=0;\n $edadesArray['intervalo3']=0;\n $edadesArray['intervalo4']=0;\n $edadesArray['intervalo5']=0;\n $edadesArray['mayores']=0;\n\n foreach ($vivientes as $viviente) {\n $edad = Carbon::parse($viviente->fechaNacimiento);\n if($edad->age < 18){\n if($edad->age==0){\n $edadesArray['sinEdad']++;\n }else{\n $edadesArray['intervalo1']++;\n }\n\n }\n if($edad->age == 18 || $edad->age == 19){\n $edadesArray['intervalo2']++;\n }\n if($edad->age == 20 || $edad->age == 21){\n $edadesArray['intervalo3']++;\n }\n if($edad->age == 22 || $edad->age == 23){\n $edadesArray['intervalo4']++;\n }\n if($edad->age == 24 || $edad->age == 25){\n $edadesArray['intervalo5']++;\n }\n if($edad->age > 25){\n $edadesArray['mayores']++;\n }\n }\n return json_encode($edadesArray);\n }", "title": "" }, { "docid": "94eef1c1804436135aee0142c7bfd0ec", "score": "0.49479747", "text": "public function chartUsuarios() : string\n {\n $iduser = Auth::user()->ID;\n $allUser = $this->getChidrens2($iduser, [], 1, 'referred_id', 1);\n $Ano_Actual = Carbon::now()->format('Y');\n $totalMeses = [];\n for ($i=1; $i < 13; $i++) {\n $totalmes = 0;\n foreach ($allUser as $user) {\n $fecha_register = new Carbon($user->created_at);\n if ($Ano_Actual == $fecha_register->format('Y')) {\n if ($fecha_register->format('m') == $i) {\n $totalmes++;\n }\n\n }\n }\n $totalMeses [] = $totalmes;\n }\n return json_encode($totalMeses);\n }", "title": "" }, { "docid": "924a1076d8bf0b9d4515e575dea3f9a3", "score": "0.49384066", "text": "public function getChartData(){\r\n\t\t\r\n\t\t/*$tasks = Task::find()\r\n\t\t\t->select([\r\n\t\t\t\t'id',\r\n\t\t\t\t'from_device_id',\r\n\t\t\t\t'to_device_id',\r\n\t\t\t\t'action_id',\r\n\t\t\t\t'data',\r\n\t\t\t\t'created_at',\r\n\t\t\t\t\"SUBSTRING_INDEX(data, ';', 1) AS temp\",\r\n\t\t\t\t\"SUBSTRING_INDEX(SUBSTRING_INDEX(data, ';', 2), ';', -1) AS hum\",\r\n\t\t\t\t\"AVG(SUBSTRING_INDEX(data, ';', 1)) AS avgTemp\",\r\n\t\t\t\t\"AVG(SUBSTRING_INDEX(SUBSTRING_INDEX(data, ';', 2), ';', -1)) AS avgHum\",\r\n\t\t\t])\r\n\t\t\t->where([\r\n\t\t\t\t'from_device_id' => '1',\r\n\t\t\t\t'to_device_id' => $this->device_id,\r\n\t\t\t\t'action_id' => $this->action_id,\r\n\t\t\t])\r\n\t\t\t->andwhere(['between', 'created_at', $this->getChartDateFromTo()['from'], $this->getChartDateFromTo()['to']])\r\n\t\t\t->groupBy($this->getChartIntervalGroupBy())\r\n\t\t\t->orderBy('created_at')\r\n\t\t\t->asArray()\r\n\t\t\t->all();*/\t\t\r\n\t\t$taskmodel = new Task();\r\n\t\t$devicemodel = new Device();\r\n\t\t\r\n\t\t$tasks = $taskmodel->getTaskBetweenDate($this->getChartDateFromTo(), $devicemodel->getDeviceMaster()[0]['id'], $this->device_id, $this->action_id);\r\n\t\t\r\n\t\t\r\n\t\t/*echo('$tasks: <pre>');\r\n\t\tprint_r($tasks);\r\n\t\techo('</pre>');*/\r\n\t\t\r\n\t\t//echo('date(Y-m-d 00:00:00);: ' . date('Y-m-d')) . '<br/>' . PHP_EOL;\r\n\t\t\r\n\t\t/*echo('$this->getChartDateFromTo():<pre>');\r\n\t\tprint_r($this->getChartDateFromTo());\r\n\t\techo('</pre>');*/\r\n\t\t\r\n\t\t//SUBSTRING_INDEX(`data`, `;`, 1) as temp)\r\n\t\t/*echo('$tasks<pre>');\r\n\t\tprint_r($tasks);\r\n\t\techo('</pre>');*/\r\n\t\t\r\n\t\t/*\r\n\t\t * chart: {\r\n type: 'line'\r\n },\r\n title: {\r\n text: 'Fruit Consumption'\r\n },\r\n xAxis: {\r\n categories: ['Apples', 'Bananas', 'Oranges']\r\n },\r\n yAxis: {\r\n title: {\r\n text: 'Fruit eaten'\r\n }\r\n },\r\n series: [{\r\n name: 'Jane',\r\n data: [1, 0, 4]\r\n }, {\r\n name: 'John',\r\n data: [5, 7, 3]\r\n }]\r\n\t\t */\r\n\t\t$chart = [\r\n\t\t\t'chart' => ['type' => $this->chart_type],\r\n\t\t\t'title' => ['text' => 'Temperature / Humidity ' . $this->getChartDate()[$this->chart_date]],\r\n\t\t];\r\n\t\t\r\n\t\t$xAxis = [];\r\n\t\t$yAxis = [\r\n\t\t\t[ // Primary yAxis\r\n\t\t\t\t'title' => ['text' => 'Temperature'],\r\n\t\t\t\t'labels' => ['format' => '{value}'],\r\n\t\t\t],[ // Secondary yAxis\r\n\t\t\t\t'title' => ['text' => 'Humidity'],\r\n\t\t\t\t'labels' => ['format' => '{value}'],\r\n\t\t\t\t'opposite' => true,\r\n\t\t\t],\r\n\t\t];\r\n\t\t\r\n\t\t/*echo('$yAxis<pre>');\r\n\t\tprint_r($yAxis);\r\n\t\techo('</pre>');*/\r\n\t\t\r\n\t\t$series = [];\r\n\t\t//$series[] = ['name' => 'Temperature', 'data' => []];\r\n\t\t//$series[] = ['name' => 'Humidity', 'data' => []];\r\n\t\t$series = [\r\n\t\t\t[ // Primary yAxis\r\n\t\t\t\t'yAxis' => 0,\r\n\t\t\t\t'name' => 'Temperature',\r\n\t\t\t\t'data' => array()\r\n\t\t\t],[ // Secondary yAxis\r\n\t\t\t\t'yAxis' => 1,\r\n\t\t\t\t'name' => 'Humidity',\r\n\t\t\t\t'data' => array()\r\n\t\t\t],\r\n\t\t];\r\n\t\t\r\n\t\tforeach($tasks as $key => $task){\r\n\t\t\t$xAxis['categories'][] = date('H', strtotime($task['created_at']));\r\n\t\t\t//$series[0]['data'][] = $task['avgTemp'];\r\n\t\t\t$series[0]['data'][] = number_format((float)$task['data']['t'], 2, '.', '');\r\n\t\t\t//$series[1]['data'][] = $task['avgHum'];\r\n\t\t\t$series[1]['data'][] = number_format((float)$task['data']['h'], 2, '.', '');\r\n\t\t}\r\n\t\t\r\n\t\t// create from the data a string (for highcharts to read the values good, its a javascript thing)\r\n\t\t//$series[0]['data'] = '[' . implode(',', $series[0]['data']) . ']';\r\n\t\t//$series[1]['data'] = '[' . implode(',', $series[1]['data']) . ']';\r\n\t\t\r\n\t\t/*echo('$xAxis<pre>');\r\n\t\tprint_r($xAxis);\r\n\t\techo('</pre>');*/\r\n\t\t\r\n\t\t/*echo('$series<pre>');\r\n\t\tprint_r($series);\r\n\t\techo('</pre>');*/\r\n\t\t\r\n\t\t/*$options = array_merge($chart, array('xAxis' => $xAxis), array('yAxis' => $yAxis), array('series' => $series));\r\n\t\techo('$options<pre>');\r\n\t\tprint_r($options);\r\n\t\techo('</pre>');*/\r\n\t\t\r\n\t\treturn [$chart, $xAxis, $yAxis, $series];\r\n\t}", "title": "" }, { "docid": "6bf832c1d6e062f44923ccc0adae8720", "score": "0.49346712", "text": "public function getEntriesForPeriodeAndResource($dateBegin, $dateEnd, $resource_id) {\n //$dateArray = explode(\"-\", $date);\n //$dateBegin = mktime(0,0,0,$dateArray[1],$dateArray[2],$dateArray[0]);\n //$dateEnd = mktime(23,59,59,$dateArray[1],$dateArray[2],$dateArray[0]);\n\n $q = array('start' => $dateBegin, 'end' => $dateEnd, 'res' => $resource_id);\n\n $sql = 'SELECT * FROM bk_calendar_entry WHERE\n\t\t\t\t(start_time <=:end AND end_time >= :start) AND resource_id = :res\n AND deleted=0\n\t\t\t\tORDER BY start_time';\n\n $req = $this->runRequest($sql, $q);\n $data = $req->fetchAll(); // Liste des bénéficiaire dans la période séléctionée\n\n\n $modelUser = new CoreUser();\n $modelColor = new BkColorCode();\n for ($i = 0; $i < count($data); $i++) {\n //echo \"color id = \" . $data[$i][\"color_type_id\"] . \"</br>\";\n $rid = $data[$i][\"recipient_id\"];\n if ($rid > 0) {\n $userInfo = $modelUser->userAllInfo($rid);\n $data[$i][\"recipient_fullname\"] = $userInfo[\"name\"] . \" \" . $userInfo[\"firstname\"];\n $data[$i][\"phone\"] = \"\";\n if (isset($userInfo[\"phone\"])) {\n $data[$i][\"phone\"] = $userInfo[\"phone\"];\n }\n $data[$i][\"color_bg\"] = $modelColor->getColorCodeValue($data[$i][\"color_type_id\"]);\n $data[$i][\"color_text\"] = $modelColor->getColorCodeText($data[$i][\"color_type_id\"]);\n } else {\n $data[$i][\"recipient_fullname\"] = \"\";\n $data[$i][\"phone\"] = \"\";\n $data[$i][\"color_bg\"] = $modelColor->getColorCodeValue($data[$i][\"color_type_id\"]);\n $data[$i][\"color_text\"] = $modelColor->getColorCodeText($data[$i][\"color_type_id\"]);\n }\n }\n return $data;\n }", "title": "" }, { "docid": "00469cd89fa42b8b1cad2eb702329fe4", "score": "0.4932665", "text": "function drawCalendar($room,$month,$year) {\n $days = array(\n 'domenica',\n 'lunedi',\n 'martedi',\n 'mercoledi',\n 'giovedi',\n 'venerdi',\n 'sabato'\n );\n \n $running_day = date('w',mktime(0,0,0,$month,1,$year));\n $days_in_month = date('t',mktime(0,0,0,$month,1,$year));\n $days_in_this_week = 1;\n $day_counter = 0;\n $dates_array = array();\n $calendar = '<div class=\"calendar-nav a-center\">'\n . '<div class=\"cnav-right pull-right\"><a href=\"javascript:void(0);\" onclick=\"nextMonth('.\"'cal_\".$room->id.\"'\".', '.$room->id.')\"><i class=\"icon-adjust\"></i></a></div>';\n \n if ( date('m') == $month )\n $calendar .= '<div class=\"cnav-left pull-left\"><a class=\"disabled\" href=\"javascript:void(0);\"><i class=\"icon-adjust\"></i></a></div>';\n else\n $calendar .= '<div class=\"cnav-left pull-left\"><a class=\"\" href=\"javascript:void(0);\" onclick=\"lastMonth('.\"'cal_\".$room->id.\"'\".', '.$room->id.')\"><i class=\"icon-adjust\"></i></a></div>';\n \n \n $calendar .= '<span class=\"month\">'.date('F', mktime(0,0,0,$month,1,$year)).'</span>'\n .'<span class=\"year\">'.$year. '</span>'\n . '</div>';\n $calendar .= '<div class=\"main-calendar\" id=\"cal_'.$room->id. '\" data-year=\"'.$year.'\" data-month=\"'.$month. '\">';\n $calendar.= '<div class=\"mc-head c-days\">';\n foreach ($days as $day) {\n $calendar .= sprintf('<div class=\"cell\">%s</div>', $day);\n }\n $calendar .= '</div>';\n \n $calendar .= '<div class=\"mc-body c-dates\">';\n // Empty Day padding.\n for($x = 0; $x < $running_day; $x++):\n $calendar.= '<div class=\"cell blank\">&nbsp;</div>';\n $days_in_this_week++;\n endfor;\n \n for($list_day = 1; $list_day <= $days_in_month; $list_day++):\n $calendar.= '<div class=\"cell available\">';\n /* add in the day number */\n $calendar.= '<div class=\"date\">'.$list_day.'</div>';\n $calendar .= '<div class=\"input-box\">\n <input type=\"hidden\" name=\"Availability['.$room->id. ']['.$list_day. '][is_available]\" value=\"0\" />\n <input type=\"text\" maxlength=\"3\" readonly class=\"input-field small _offer_' .$room->id.'_'.$list_day. '\" name=\"Availability['.$room->id. ']['.$list_day. '][price]\" value=\"'.$room->price. '\" />\n </div>\n <div class=\"input-box\">\n <input type=\"checkbox\" class=\"checkbox\" onclick=\"enableOffer('.$room->id.', '.$list_day.');\">\n <label>Offerta</label>';\n /** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! **/\n //$calendar.= str_repeat('<p> </p>',2);\n $calendar.= '</div>';\n $calendar.= '</div>';\n if($running_day == 6):\n $running_day = -1;\n $days_in_this_week = 0;\n endif;\n $days_in_this_week++; $running_day++; $day_counter++;\n endfor;\n //echo $day_counter; exit;\n if($days_in_this_week < 8):\n for($x = 1; $x <= (8 - $days_in_this_week); $x++):\n $calendar.= '<div class=\"cell blank\">&nbsp;</div>';\n endfor;\n endif;\n $calendar .= '</div>';\n $calendar .= '</div>';\n \n return $calendar;\n }", "title": "" }, { "docid": "7b147a6330f6442b6c9108f840d27418", "score": "0.4902156", "text": "public function calendar(){\n\t\tlog_message('debug', print_r($this->db->get('category')->result(), true));\n\t\t$data = $this->quotation_model->getCalendarData();\n\t\t$total = 0;\n\t\tforeach ($data as $value) {\n\t\t\t$date = Date('Y-m-d');\n\t\t\tif($date == $value->date){\n\t\t\t\t$total += $value->total;\n\t\t\t}\n\t\t\t$temp = array(\n\t\t\t\t\t\"title\" => $total,\n\t\t\t\t\t\"start\" => \"2017-04-05T00:01:00+05:30\"\n\t\t\t\t);\n\t\t}\n\t\t echo json_encode($temp);\n\t}", "title": "" }, { "docid": "b5588ce66c6b3ca0b79d1fa3d5eb7ae2", "score": "0.48975623", "text": "function plancha_grafico($anho, $cod_plancha)\r\n\t{\r\n\t\t$valores = '';\r\n\t\tfor($i = 1; $i <= 12; $i++)\r\n\t\t{\r\n\t\t\t$mes = $i;\r\n\t\t\tif($mes < 10)\r\n\t\t\t{\r\n\t\t\t\t$mes = \"0$mes\";\r\n\t\t\t}\r\n\t\t\t$cantidad = 0;\r\n\t\t\t\r\n\t\t\tif($cod_plancha == \"todo\")\r\n\t\t\t{\r\n\t\t\t\t$Consulta = \"\r\n\t\t\t\t\tselect sum(cantidad) as cantidad\r\n\t\t\t\t\tfrom plancha_mensual mens, planchas plan\r\n\t\t\t\t\twhere plan.cod_plancha = mens.cod_plancha\r\n\t\t\t\t\tand fecha = '$anho-$mes-01'\r\n\t\t\t\t\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$Consulta = \"select cantidad\r\n\t\t\t\t\t\t\t\t\t\tfrom plancha_mensual\r\n\t\t\t\t\t\t\t\t\t\twhere cod_plancha = '$cod_plancha'\r\n\t\t\t\t\t\t\t\t\t\tand fecha = '$anho-$mes-01'\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Ejecutamos la consulta.\r\n\t\t\t$Resultado = $this->db->query($Consulta);\r\n\t\t\t//Exploramos el array\r\n\t\t\tforeach($Resultado->result_array() as $Datos)\r\n\t\t\t{\r\n\t\t\t\t$cantidad = $Datos[\"cantidad\"];\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif($mes == date('m') && $anho == date('Y'))\r\n\t\t\t{//Si estoy en el mes y anho actual\r\n\t\t\t\t//Pasa algo importante, los meses anteriores ya estan cerrados,\r\n\t\t\t\t//se debe capturar el saldo del mes anterior a los movimientos actuales\r\n\t\t\t\t\r\n\t\t\t\tif($cod_plancha == \"todo\")\r\n\t\t\t\t{\r\n\t\t\t\t\t$Consulta2 = \"\r\n\t\t\t\t\t\tselect sum(placa.total) as cantidad\r\n\t\t\t\t\t\tfrom plancha_cantidad placa, planchas, plancha_tipo tipo\r\n\t\t\t\t\t\twhere placa.cod_plancha = planchas.cod_plancha\r\n\t\t\t\t\t\tand tipo.cod_tipo = placa.cod_tipo\r\n\t\t\t\t\t\";\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$Consulta2 = \"select sum(total) as cantidad\r\n\t\t\t\t\t\t\t\t\t\t\t\tfrom plancha_cantidad\r\n\t\t\t\t\t\t\t\t\t\t\t\twhere cod_plancha = '$cod_plancha'\";\r\n\t\t\t\t}\r\n\t\t\t\t//echo $Consulta2;\r\n\t\t\t\t$Resultado2 = $this->db->query($Consulta2);\r\n\t\t\t\tforeach($Resultado2->result_array() as $Datos)\r\n\t\t\t\t{\r\n\t\t\t\t\t$cantidad = $Datos[\"cantidad\"];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif($i > 1)\r\n\t\t\t{\r\n\t\t\t\t$valores .= \",\";\r\n\t\t\t}\r\n\t\t\tif($cantidad != 0)\r\n\t\t\t{\r\n\t\t\t\t$valores .= number_format($cantidad, 0, ',', '');\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$valores .= 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $valores;\r\n\t}", "title": "" }, { "docid": "f988d1ac5bbbc74ac06fe7608fdc15f3", "score": "0.48909178", "text": "public function alumno_pie()\n \t\t{\n \t\t\treturn $this->belongsTo(AlumnoPie::class);\n \t\t}", "title": "" }, { "docid": "7099d268042e2edf1942ed0947c19a8e", "score": "0.4890453", "text": "public function index()\n {\n \n $usersChart1 = new UserChart;\n\n $billmonth = DB::table('bills')->where('bill_month', 'SEPT 2019')->get();\n $usersChart1->labels(['SEPT 2019', 'OCT 2019', 'DEC 2019', 'MARCH 2020']); \n\n $billsept = DB::table('bills')->where('bill_month', 'SEPT 2019')->get();\n $billoct = DB::table('bills')->where('bill_month', 'OCT 2019')->get();\n $billdec = DB::table('bills')->where('bill_month', 'DEC 2019')->get();\n $billmarch = DB::table('bills')->where('bill_month', 'MARCH 2020')->get();\n\n // list($xsept, $y) = split('[ ]', $energysept);\n // list($xoct, $y) = split('[ ]', $energyoct);\n // list($xdec, $y) = split('[ ]', $energydec);\n // list($xmarch, $y) = split('[ ]', $energymarch);\n\n $array=[];\n\n foreach($billsept as $bill){\n $energy=$bill->energy;\n list($xsept, $y) = preg_split('[ ]', $energy);\n $z=intval($xsept);\n $array[]=$z; \n }\n $sumsept=array_sum($array);\n $avesept=$sumsept/4;\n\n foreach($billoct as $bill){\n $energy=$bill->energy;\n list($xoct, $y) = preg_split('[ ]', $energy);\n $z=intval($xoct);\n $array[]=$z; \n }\n $sumoct=array_sum($array);\n $aveoct=$sumoct/4;\n\n foreach($billdec as $bill){\n $energy=$bill->energy;\n list($xdec, $y) = preg_split('[ ]', $energy);\n $z=intval($xdec);\n $array[]=$z; \n }\n $sumdec=array_sum($array);\n $avedec=$sumdec/4;\n\n foreach($billmarch as $bill){\n $energy=$bill->energy;\n list($xmarch, $y) = preg_split('[ ]', $energy);\n $z=intval($xmarch);\n $array[]=$z; \n }\n $summarch=array_sum($array);\n $avemarch=$summarch/4;\n \n\n\n\n $usersChart1->dataset('Average Energy Consumed', 'line', [$avesept, $aveoct, $avedec, $avemarch])\n ->backgroundcolor(\"#EB984E\")\n ->color(\"white\"); \n\n\n $borderColors = [\n \"rgba(255, 99, 132, 1.0)\",\n \"rgba(22,160,133, 1.0)\",\n \"rgba(255, 205, 86, 1.0)\",\n \"rgba(51,105,232, 1.0)\",\n \"rgba(244,67,54, 1.0)\",\n \"rgba(34,198,246, 1.0)\",\n \"rgba(153, 102, 255, 1.0)\",\n \"rgba(255, 159, 64, 1.0)\",\n \"rgba(233,30,99, 1.0)\",\n \"rgba(205,220,57, 1.0)\"\n ];\n $fillColors = [\n \"rgba(255, 99, 132, 0.2)\",\n \"rgba(22,160,133, 0.2)\",\n \"rgba(255, 205, 86, 0.2)\",\n \"rgba(51,105,232, 0.2)\",\n \"rgba(244,67,54, 0.2)\",\n \"rgba(34,198,246, 0.2)\",\n \"rgba(153, 102, 255, 0.2)\",\n \"rgba(255, 159, 64, 0.2)\",\n \"rgba(233,30,99, 0.2)\",\n \"rgba(205,220,57, 0.2)\"\n \n ];\n\n $usersChart2=new Userchart;\n \n $accounts=DB::table('accounts')->get();\n $accountsdis=DB::table('accounts')->where('status',0)->get();\n\n $usersChart2->labels([count($accounts), count($accountsdis)]); \n $usersChart2->dataset('Disconnected Account Rate', 'doughnut', [count($accounts), count($accountsdis)]) \n ->color($borderColors)\n ->backgroundcolor($fillColors);\n \n\n\n $usersChart3=new Userchart;\n \n $transactions=DB::table('transactions')->get();\n $usersChart3->labels(['morning', 'afternoon']);\n $half1=[];\n $half2=[];\n\n foreach($transactions as $transaction){\n $currentTime = date(\"Y-m-d H:i:s\", strtotime(\"now\")); //current time\n $messageTime = date(\"Y-m-d H:i:s\", strtotime($transaction->date_time));\n\n $currentyear = date('Y', strtotime($currentTime));\n $currentmonth = date('m', strtotime($currentTime));\n $currentday = date('d', strtotime($currentTime));\n $currenthours = date('G', strtotime($currentTime));\n\n $messageyear = date('Y', strtotime($messageTime));\n $messagemonth = date('m', strtotime($messageTime));\n $messageday = date('d', strtotime($messageTime));\n $messagehours = date('G', strtotime($messageTime));\n\n if ($messageyear == $currentyear && $messagemonth == $currentmonth && $messageday == $currentday && ($messagehours>='8' || $messagehours<='12')){\n $half1[]=$transaction;\n }\n\n else if ($messageyear == $currentyear && $messagemonth == $currentmonth && $messageday == $currentday && ($messagehours>='12' || $messagehours<='16')){\n $half2[]=$transaction;\n }\n }\n\n $usersChart3->dataset('Transaction Rate', 'bar', [count($half1), count($half2)]) \n ->color($borderColors)\n ->backgroundcolor($fillColors);\n \n\n \n\n\n return view('pages.userschart', [ 'usersChart1' => $usersChart1, 'usersChart2' => $usersChart2, 'usersChart3' => $usersChart3] );\n\n }", "title": "" }, { "docid": "ad4050ab555fc570bf2148a184131721", "score": "0.4885395", "text": "public function getCamembertTimeContentResourceType($id_space, $month_start, $year_start, $month_end, $year_end, $numTotal) {\n\n $sql = 'SELECT DISTINCT resource_id FROM bk_calendar_entry WHERE start_time >=' . mktime(0, 0, 0, $month_start, 1, $year_start) . ' AND end_time <=' . mktime(0, 0, 0, $month_end + 1, 0, $year_end) . ' ORDER by resource_id';\n $req = $this->runRequest($sql);\n $numMachinesFormesTotal = $req->rowCount();\n $machinesFormesListe = $req->fetchAll();\n\n // get the night and we periods\n $pricingInfo = $this->getFirstPricing($id_space);\n $night_start = $pricingInfo['night_start'];\n $night_end = $pricingInfo['night_end'];\n $we_array1 = explode(\",\", $pricingInfo['choice_we']);\n $we_array = array();\n for ($s = 0; $s < count($we_array1); $s++) {\n if ($we_array1[$s] > 0) {\n $we_array[] = $s + 1;\n }\n }\n\n for ($m = 0; $m < count($machinesFormesListe); $m++) {\n $sql = 'SELECT category_id from re_info WHERE id=?';\n $req = $this->runRequest($sql, array($machinesFormesListe[$m][\"resource_id\"]));\n $val = $req->fetch();\n $machinesFormesListe[$m][\"category_id\"] = $val[0];\n }\n\n $sql = 'SELECT * from re_infocategory ORDER BY name ASC;';\n $req = $this->runRequest($sql);\n $resourceTypeList = $req->fetchAll();\n\n $i = 0;\n $numMachinesFormes = array();\n $angle = 0;\n $departX = 300 + 250 * cos(0);\n $departY = 300 - 250 * sin(0);\n\n $test = '<g fill=\"rgb(97, 115, 169)\">';\n $test .= '<title>Réservations</title>';\n $test .= '<desc>287</desc>';\n $test .= '<rect x=\"0\" y=\"0\" width=\"1000\" height=\"600\" fill=\"white\" stroke=\"black\" stroke-width=\"0\"/>';\n $couleur = array(\"#FC441D\", \"#FE8D11\", \"#FCC212\", \"#FFFD32\", \"#D0E92B\", \"#53D745\", \"#6AC720\", \"#156947\", \"#291D81\", \"#804DA4\", \"#E4AADF\", \"#A7194B\", \"#FE0000\",\n \"#FC441D\", \"#FE8D11\", \"#FCC212\", \"#FFFD32\", \"#D0E92B\", \"#53D745\", \"#6AC720\", \"#156947\", \"#291D81\", \"#804DA4\", \"#E4AADF\", \"#A7194B\", \"#FE0000\"\n );\n\n $resourceType = 1; // forced to count night and we prices (to be modified if needed)\n\n for ($i = 0; $i < count($resourceTypeList); $i++) {\n\n\n $resTypID = $resourceTypeList[$i][\"id\"];\n $timeResa = 0;\n $timeResaNight = 0;\n $timeResaWe = 0;\n foreach ($machinesFormesListe as $mFL) {\n\n if ($mFL[\"category_id\"] == $resTypID) {\n $sql = 'SELECT * FROM bk_calendar_entry WHERE start_time >=' . mktime(0, 0, 0, $month_start, 1, $year_start) . ' AND end_time <=' . mktime(0, 0, 0, $month_end + 1, 1, $year_end) . ' AND resource_id =\"' . $mFL[0] . '\"';\n $req = $this->runRequest($sql);\n $numMachinesFormes[$i][0] = $mFL[0];\n\n $resas = $req->fetchAll();\n foreach ($resas as $resa) {\n if ($resourceType == 1) {\n $timeResaArray = $this->calculateReservationTime($resa[\"start_time\"], $resa[\"end_time\"], $night_start, $night_end, $we_array);\n $timeResa += $timeResaArray[0];\n $timeResaNight += $timeResaArray[1];\n $timeResaWe += $timeResaArray[2];\n } else {\n $timeResa += (float) ($resa[\"end_time\"] - $resa[\"start_time\"]) / (float) 3600;\n }\n }\n }\n }\n\n $curentAngle = 2 * pi() * ($timeResa + $timeResaNight + $timeResaWe) / $numTotal;\n\n if ($curentAngle > pi()) {\n\n $angle += $curentAngle / 2;\n\n $arriveeX = 300 + 250 * cos($angle);\n $arriveeY = 300 - 250 * sin($angle);\n\n $test .= '<path d=\"M ' . $departX . ' ' . $departY . ' A 250 250 0 0 0 ' . $arriveeX . ' ' . $arriveeY . ' L 300 300\" fill=\"' . $couleur[$i] . '\" stroke=\"black\" stroke-width=\"0\" />';\n $test .= '<g>';\n\n $departX = $arriveeX;\n $departY = $arriveeY;\n $angle += $curentAngle / 2;\n } else {\n $angle += $curentAngle;\n }\n\n $arriveeX = 300 + 250 * cos($angle);\n $arriveeY = 300 - 250 * sin($angle);\n\n $test .= '<path d=\"M ' . $departX . ' ' . $departY . ' A 250 250 0 0 0 ' . $arriveeX . ' ' . $arriveeY . ' L 300 300\" fill=\"' . $couleur[$i] . '\"/>';\n $test .= '<g>';\n $test .= '<rect x=\"580\" y=\"' . (83 + 40 * $i) . '\" width=\"30\" height=\"20\" rx=\"5\" ry=\"5\" fill=\"' . $couleur[$i] . '\" stroke=\"' . $couleur[$i] . '\" stroke-width=\"0\"/>';\n\n $sql = 'SELECT name FROM re_info WHERE id =\"' . $mFL[0] . '\"';\n $req = $this->runRequest($sql);\n $res = $req->fetchAll();\n $nomMachine = $resourceTypeList[$i][\"name\"];\n\n if ($timeResaNight != 0 || $timeResaWe != 0) {\n $test .= '<text x=\"615\" y=\"' . (90 + 40 * $i) . '\" font-size=\"20\" fill=\"black\" stroke=\"none\" text-anchor=\"start\" baseline-shift=\"-11px\">' . $nomMachine . ' : ' . $timeResa . \"|\" . $timeResaNight . \"|\" . $timeResaWe . '</text>';\n } else {\n $test .= '<text x=\"615\" y=\"' . (90 + 40 * $i) . '\" font-size=\"20\" fill=\"black\" stroke=\"none\" text-anchor=\"start\" baseline-shift=\"-11px\">' . $nomMachine . ' : ' . $timeResa . '</text>';\n }\n $test .= '</g>';\n\n $departX = $arriveeX;\n $departY = $arriveeY;\n }\n\n\n $test .= '</g>';\n return $test;\n }", "title": "" }, { "docid": "cf04cf6c0f0109399fd0a65c449650d4", "score": "0.4876331", "text": "function display_required_modules_student_overview_graph($data)\n{\n echo '<noscript>Requires JavaScript.</noscript>';\n\n echo '<script type=\"text/javascript\" src=\"https://www.google.com/jsapi\"></script>';\n echo '\n <script type=\"text/javascript\">\n google.load(\\'visualization\\', \\'1.0\\', {\\'packages\\':[\\'corechart\\']});\n ';\n echo '\n google.setOnLoadCallback(drawRequiredModulesStudentOverviewGraph);\n ';\n echo '\n function drawRequiredModulesStudentOverviewGraph() {\n ';\n\n echo \"\n var data = google.visualization.arrayToDataTable([\n ['Activities', 'Number'],\n ['Completed required activities', \" . $data['completeds'] . \"],\n ['Non-completed required activities', \" . $data['requireds'] . \"]\n ]);\n \";\n\n echo '\n // Set chart options\n var options = {\\'title\\':\\'Completion of required activities\\',\n \\'width\\':\\'100%\\',\n \\'height\\':\\'auto\\',\n };\n ';\n\n echo '\n // Instantiate and draw our chart, passing in some options.\n var chart = new google.visualization.PieChart(document.getElementById(\\'required_modules_student_overview_graph_div\\'));\n chart.draw(data, options);\n ';\n\n echo '\n }\n </script>\n ';\n\n echo '\n <!--Div that will hold the pie chart-->\n <div id=\"required_modules_student_overview_graph_div\" class=\"chart\"></div>\n ';\n}", "title": "" }, { "docid": "9295e5b7120ce375755e400812ec18dc", "score": "0.48705855", "text": "public function fnLoadtechchart(Request $req)\n {\n // waitrepair month count\n $jan_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of January')), date('Y-m-d', strtotime('Last day of January'))])->get());\n $feb_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of February')), date('Y-m-d', strtotime('Last day of February'))])->get());\n $mar_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of March')), date('Y-m-d', strtotime('Last day of March'))])->get());\n $apr_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of April')), date('Y-m-d', strtotime('Last day of April'))])->get());\n $may_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of May')), date('Y-m-d', strtotime('Last day of May'))])->get());\n $jun_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of June')), date('Y-m-d', strtotime('Last day of June'))])->get());\n $jul_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of July')), date('Y-m-d', strtotime('Last day of July'))])->get());\n $aug_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of August')), date('Y-m-d', strtotime('Last day of August'))])->get());\n $sep_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of September')), date('Y-m-d', strtotime('Last day of September'))])->get());\n $oct_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of October')), date('Y-m-d', strtotime('Last day of October'))])->get());\n $nov_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of November')), date('Y-m-d', strtotime('Last day of November'))])->get());\n $dec_waitrepair = count(DB::table('techcarstatus')->where('status', 1)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of December')), date('Y-m-d', strtotime('Last day of December'))])->get());\n $waitrepair = array($jan_waitrepair,$feb_waitrepair,$mar_waitrepair,$apr_waitrepair,$may_waitrepair,$jun_waitrepair,$jul_waitrepair,$aug_waitrepair,$sep_waitrepair,$oct_waitrepair,$nov_waitrepair,$dec_waitrepair);\n\n // waitspare month count\n $jan_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of January')), date('Y-m-d', strtotime('Last day of January'))])->get());\n $feb_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of February')), date('Y-m-d', strtotime('Last day of February'))])->get());\n $mar_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of March')), date('Y-m-d', strtotime('Last day of March'))])->get());\n $apr_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of April')), date('Y-m-d', strtotime('Last day of April'))])->get());\n $may_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of May')), date('Y-m-d', strtotime('Last day of May'))])->get());\n $jun_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of June')), date('Y-m-d', strtotime('Last day of June'))])->get());\n $jul_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of July')), date('Y-m-d', strtotime('Last day of July'))])->get());\n $aug_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of August')), date('Y-m-d', strtotime('Last day of August'))])->get());\n $sep_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of September')), date('Y-m-d', strtotime('Last day of September'))])->get());\n $oct_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of October')), date('Y-m-d', strtotime('Last day of October'))])->get());\n $nov_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of November')), date('Y-m-d', strtotime('Last day of November'))])->get());\n $dec_waitspare = count(DB::table('techcarstatus')->where('status', 2)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of December')), date('Y-m-d', strtotime('Last day of December'))])->get());\n $waitspare = array($jan_waitspare,$feb_waitspare,$mar_waitspare,$apr_waitspare,$may_waitspare,$jun_waitspare,$jul_waitspare,$aug_waitspare,$sep_waitspare,$oct_waitspare,$nov_waitspare,$dec_waitspare);\n\n // repairing month count\n $jan_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of January')), date('Y-m-d', strtotime('Last day of January'))])->get());\n $feb_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of February')), date('Y-m-d', strtotime('Last day of February'))])->get());\n $mar_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of March')), date('Y-m-d', strtotime('Last day of March'))])->get());\n $apr_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of April')), date('Y-m-d', strtotime('Last day of April'))])->get());\n $may_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of May')), date('Y-m-d', strtotime('Last day of May'))])->get());\n $jun_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of June')), date('Y-m-d', strtotime('Last day of June'))])->get());\n $jul_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of July')), date('Y-m-d', strtotime('Last day of July'))])->get());\n $aug_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of August')), date('Y-m-d', strtotime('Last day of August'))])->get());\n $sep_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of September')), date('Y-m-d', strtotime('Last day of September'))])->get());\n $oct_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of October')), date('Y-m-d', strtotime('Last day of October'))])->get());\n $nov_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of November')), date('Y-m-d', strtotime('Last day of November'))])->get());\n $dec_repairing = count(DB::table('techcarstatus')->where('status', 3)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of December')), date('Y-m-d', strtotime('Last day of December'))])->get());\n $repairing = array($jan_repairing,$feb_repairing,$mar_repairing,$apr_repairing,$may_repairing,$jun_repairing,$jul_repairing,$aug_repairing,$sep_repairing,$oct_repairing,$nov_repairing,$dec_repairing);\n\n // success month count\n $jan_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of January')), date('Y-m-d', strtotime('Last day of January'))])->get());\n $feb_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of February')), date('Y-m-d', strtotime('Last day of February'))])->get());\n $mar_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of March')), date('Y-m-d', strtotime('Last day of March'))])->get());\n $apr_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of April')), date('Y-m-d', strtotime('Last day of April'))])->get());\n $may_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of May')), date('Y-m-d', strtotime('Last day of May'))])->get());\n $jun_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of June')), date('Y-m-d', strtotime('Last day of June'))])->get());\n $jul_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of July')), date('Y-m-d', strtotime('Last day of July'))])->get());\n $aug_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of August')), date('Y-m-d', strtotime('Last day of August'))])->get());\n $sep_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of September')), date('Y-m-d', strtotime('Last day of September'))])->get());\n $oct_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of October')), date('Y-m-d', strtotime('Last day of October'))])->get());\n $nov_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of November')), date('Y-m-d', strtotime('Last day of November'))])->get());\n $dec_success = count(DB::table('techcarstatus')->where('status', 4)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of December')), date('Y-m-d', strtotime('Last day of December'))])->get());\n $success = array($jan_success,$feb_success,$mar_success,$apr_success,$may_success,$jun_success,$jul_success,$aug_success,$sep_success,$oct_success,$nov_success,$dec_success);\n\n // send month count\n $jan_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of January')), date('Y-m-d', strtotime('Last day of January'))])->get());\n $feb_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of February')), date('Y-m-d', strtotime('Last day of February'))])->get());\n $mar_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of March')), date('Y-m-d', strtotime('Last day of March'))])->get());\n $apr_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of April')), date('Y-m-d', strtotime('Last day of April'))])->get());\n $may_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of May')), date('Y-m-d', strtotime('Last day of May'))])->get());\n $jun_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of June')), date('Y-m-d', strtotime('Last day of June'))])->get());\n $jul_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of July')), date('Y-m-d', strtotime('Last day of July'))])->get());\n $aug_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of August')), date('Y-m-d', strtotime('Last day of August'))])->get());\n $sep_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of September')), date('Y-m-d', strtotime('Last day of September'))])->get());\n $oct_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of October')), date('Y-m-d', strtotime('Last day of October'))])->get());\n $nov_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of November')), date('Y-m-d', strtotime('Last day of November'))])->get());\n $dec_send = count(DB::table('techcarstatus')->where('status', 5)->whereBetween('date_in', [date('Y-m-d', strtotime('First day of December')), date('Y-m-d', strtotime('Last day of December'))])->get());\n $send = array($jan_send,$feb_send,$mar_send,$apr_send,$may_send,$jun_send,$jul_send,$aug_send,$sep_send,$oct_send,$nov_send,$dec_send);\n\n $data = array('waitrepair'=>$waitrepair,'waitspare'=>$waitspare,'repairing'=>$repairing,'success'=>$success,'send'=>$send);\n\n echo json_encode($data);\n }", "title": "" }, { "docid": "3583ee7e5c4b211e10c1d5eca84a11c0", "score": "0.4867162", "text": "public function index()\n {\n $duties=Duty::all();\n// $restant_chart = new DutyChart();\n// $entrant_chart = new DutyChart();\n// $summary_chart= new DutyChart();\n//\n $rt_payant=array();\n $rt_nfss=array();\n $rt_credit=array();\n $rt_gratuit=array();\n $rt_hef=array();\n $rt_indigent=array();\n\n $entrant=array();\n $sortant=array();\n $restant=array();\n $dispo=array();\n $sida=array();\n $hiv=array();\n\n $et_payant=array();\n $et_nfss=array();\n $et_credit=array();\n $et_gratuit=array();\n $et_hef=array();\n $et_indigent=array();\n\n\n foreach ($duties as $duty){\n $rt_payant[]=$duty->statistic()->sum('rt_payant');\n $rt_nfss[]=$duty->statistic()->sum('rt_bss');\n $rt_credit[]=$duty->statistic()->sum('rt_credit');\n $rt_gratuit[]=$duty->statistic()->sum('rt_gratuit');\n $rt_hef[]=$duty->statistic()->sum('rt_hef');\n $rt_indigent[]=$duty->statistic()->sum('rt_indigent');\n\n $dispo[]=$duty->statistic()->sum('dispo');\n $sida[]=$duty->statistic()->sum('sida');\n $hiv[]=$duty->statistic()->sum('hiv');\n $sortant[]=$duty->statistic()->sum('sortant');\n $entrant[]=$duty->statistic()->sum('et_payant') + $duty->statistic()->sum('et_bss') + $duty->statistic()->sum('et_credit') + $duty->statistic()->sum('et_gratuit') + $duty->statistic()->sum('et_hef') + $duty->statistic()->sum('et_indigent');\n $restant[]=$duty->statistic()->sum('rt_payant') + $duty->statistic()->sum('rt_bss') + $duty->statistic()->sum('rt_credit') + $duty->statistic()->sum('rt_gratuit') + $duty->statistic()->sum('rt_hef') + $duty->statistic()->sum('rt_indigent');\n\n $et_payant[]=$duty->statistic()->sum('et_payant');\n $et_nfss[]=$duty->statistic()->sum('et_bss');\n $et_credit[]=$duty->statistic()->sum('et_credit');\n $et_gratuit[]=$duty->statistic()->sum('et_gratuit');\n $et_hef[]=$duty->statistic()->sum('et_hef');\n $et_indigent[]=$duty->statistic()->sum('et_indigent');\n\n }\n\n $summary_chart= app()->chartjs\n ->name('Summary')\n ->type('line')\n ->size(['width' => 400, 'height' => 200])\n ->labels($duties->pluck('date')->toArray())\n ->datasets([\n [\n \"label\" => \"Entrants\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"blue\",\n \"pointBorderColor\" => \"blue\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $entrant,\n ],\n [\n \"label\" => \"Sortant\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"Orange\",\n \"pointBorderColor\" => \"Orange\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $sortant,\n ],\n [\n \"label\" => \"Restant\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"#00b2fc\",\n \"pointBorderColor\" => \"#00b2fc\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $restant,\n ],\n [\n \"label\" => \"Dispo\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"green\",\n \"pointBorderColor\" => \"green\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $dispo,\n ],\n [\n \"label\" => \"SIDA\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"pink\",\n \"pointBorderColor\" => \"pink\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $sida,\n ],\n [\n \"label\" => \"HIV\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"yellow\",\n \"pointBorderColor\" => \"yellow\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $hiv,\n ]\n ])\n ->options([]);\n\n /* Entrant Charts */\n $entrant_chart= app()->chartjs\n ->name('Entrant')\n ->type('line')\n ->size(['width' => 400, 'height' => 200])\n ->labels($duties->pluck('date')->toArray())\n ->datasets([\n [\n \"label\" => \"Payant\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"blue\",\n \"pointBorderColor\" => \"blue\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $et_payant,\n ],\n [\n \"label\" => \"NFSS\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"Orange\",\n \"pointBorderColor\" => \"Orange\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $et_nfss,\n ],\n [\n \"label\" => \"Forfait\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"#00b2fc\",\n \"pointBorderColor\" => \"#00b2fc\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $et_credit,\n ],\n [\n \"label\" => \"Gratuit\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"green\",\n \"pointBorderColor\" => \"green\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $et_gratuit,\n ],\n [\n \"label\" => \"HEF\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"pink\",\n \"pointBorderColor\" => \"pink\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $et_hef,\n ],\n [\n \"label\" => \"Indigent\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"yellow\",\n \"pointBorderColor\" => \"yellow\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $et_indigent,\n ]\n ])\n ->options([]);\n\n /* Entrant Charts */\n $restant_chart= app()->chartjs\n ->name('Restant')\n ->type('line')\n ->size(['width' => 400, 'height' => 200])\n ->labels($duties->pluck('date')->toArray())\n ->datasets([\n [\n \"label\" => \"Payant\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"blue\",\n \"pointBorderColor\" => \"blue\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $rt_payant,\n ],\n [\n \"label\" => \"NFSS\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"Orange\",\n \"pointBorderColor\" => \"Orange\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $rt_nfss,\n ],\n [\n \"label\" => \"Forfait\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"#00b2fc\",\n \"pointBorderColor\" => \"#00b2fc\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $rt_credit,\n ],\n [\n \"label\" => \"Gratuit\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"green\",\n \"pointBorderColor\" => \"green\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $rt_gratuit,\n ],\n [\n \"label\" => \"HEF\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"pink\",\n \"pointBorderColor\" => \"pink\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $rt_hef,\n ],\n [\n \"label\" => \"Indigent\",\n 'backgroundColor' => \"rgba(0,0,0,0)\",\n 'borderColor' => \"yellow\",\n \"pointBorderColor\" => \"yellow\",\n \"pointBackgroundColor\" => \"white\",\n \"pointHoverBackgroundColor\" => \"#fff\",\n \"pointHoverBorderColor\" => \"rgba(220,220,220,1)\",\n 'data' => $rt_indigent,\n ]\n ])\n ->options([]);\n\n\n return view('admin.charts.index', compact('entrant_chart','restant_chart','summary_chart'));\n\n\n }", "title": "" }, { "docid": "99d77408e74e4d48258cb694cfef6cf1", "score": "0.48401186", "text": "public function cost_recipe_day()\n {\n $car = Car::all();\n $client = Client::all();\n\n $currentDay = date(\"Y-m-d\");\n $movements = Movement::where('created_at', 'like', '%'.$currentDay.'%')->paginate(10);\n\n $costDay = Movement::where('created_at', 'like', '%'.$currentDay.'%')->sum('cost');\n $recipeDay = Movement::where('created_at', 'like', '%'.$currentDay.'%')->sum('recipe');\n $dailyBalance = $recipeDay - $costDay;\n //dd($currentDay, $movements, $costDay, $recipeDay);\n return view('reports.cost_recipe_day', compact('movements', 'costDay', 'recipeDay', 'dailyBalance', 'car', 'client'));\n }", "title": "" }, { "docid": "99d01816b77e50591fcbf9a6eb67aed2", "score": "0.48352078", "text": "function _displayServiceTimes() {\r\n $st = $this->servicetimes;\r\n $thismonth = (int)gmdate(\"m\", time());\r\n $str = '<div id=\"stchart\">\r\n'.$this->trans(\"Each month is divided in half:<br/> 1st to 15th &amp; 16th to end of month.\").'\r\n<table id=\"servicetimes\" cellspacing=\"0\" cellpadding=\"0\">\r\n<tbody>\r\n<tr>\r\n <th>'.$this->trans(\"Month\").'</th>\r\n <th>'.$this->trans(\"Morning\").'</th>\r\n <th>'.$this->trans(\"Evening\").'</th>\r\n</tr>';\r\n for($i = 1;$i<=12;$i++):\r\n $month = $st[$i][\"month\"];\r\n $morningA = $st[$i][\"morningA\"];\r\n $eveningA = $st[$i][\"eveningA\"];\r\n $morningB = $st[$i][\"morningB\"];\r\n $eveningB = $st[$i][\"eveningB\"];\r\n $str .='\r\n <tr class=\"'. ($i == $thismonth ? 'thismonth' : '') . '\">\r\n <td rowspan=\"2\">'.$this->trans($month).\"</td>\r\n <td \".($morningA == $morningB ? 'rowspan=\"2\"' : '').'>'.$morningA.\"</td>\r\n <td \".($eveningA == $eveningB ? 'rowspan=\"2\"' : '').'>'.$eveningA.\"</td>\r\n </tr>\r\n <tr class=\\\"alt\". ($i == $thismonth ? ' thismonth' : '') . \"\\\">\r\n \" . ($morningA != $morningB ? \"<td>\".$morningB.\"</td>\" : \"\").\"\r\n \" . ($eveningA != $eveningB ? \"<td>\".$eveningB.\"</td>\" : \"\").\"\r\n </tr>\\n\";\r\n endfor;\r\n $str .= '\r\n</tbody>\r\n</table>\r\n<p align=\"right\">See the <a href=\"http://www.tenrikyo.or.jp/eng/?page_id=77\" target=\"_blank\">official chart</a>.</p>\r\n</div>\r\n';\r\n return $str;\r\n }", "title": "" }, { "docid": "06da7923b21147f75f49773792f9b26e", "score": "0.48325384", "text": "public function viewAttendance() {\n $active_enrollment = $this->Crud_model->fetch(\"enrollment\", array(\"enrollment_is_active\" => 1));\n $active_enrollment = $active_enrollment[0];\n /* ===== End of FETCH ACTIVE SEASON/TERM - ENROLLMENT ====== */\n\n // necessary initialization\n $sum = 0;\n $total_hours = 0;\n $lec_id = $this->uri->segment(3); //lec id\n $lec_data = $this->Crud_model->fetch(\"lecturer\", array(\"lecturer_id\" => $lec_id));\n $lec_data = $lec_data[0];\n $interval = \"\";\n $test = array();\n $total_time = array();\n $x = 0;\n // create new object\n $attendance_data = array();\n\n // create array of object\n $attendance = array();\n // fetch active\n // fetch course\n $course = $this->Crud_model->fetch(\"course\", array(\"enrollment_id\" => $active_enrollment->enrollment_id));\n if ($course) {\n foreach ($course as $key => $value) {\n // fetch offering with course id that is active\n $offering = $this->Crud_model->fetch(\"offering\", array(\"course_id\" => $value->course_id));\n if ($offering) {\n foreach ($offering as $key => $inner_value) {\n\n // fetch lecturer\n $lec_attendance = $this->Crud_model->fetch(\"lecturer_attendance\", array(\"lecturer_id\" => $lec_id, \"offering_id\" => $inner_value->offering_id));\n if ($lec_attendance) {\n foreach ($lec_attendance as $key => $lec) {\n // echo $x++;\n // fetch here then enclose the insertion data to foreach of schedule\n // fetch schedule\n $schedule = $this->Crud_model->fetch(\"schedule\", array(\"schedule_id\" => $lec->schedule_id));\n $schedule = $schedule[0];\n\n // Schedule start and time_in difference\n $s_t_start = date_create(date(\"h:i a\", $schedule->schedule_start_time));\n $s_t_end = date_create(date(\"h:i a\", $schedule->schedule_end_time));\n\n $l_a_s = $this->Crud_model->fetch(\"attendance_in\", array(\"lecturer_attendance_id\" => $lec->lecturer_attendance_id));\n foreach ($l_a_s as $key => $value) {\n $l_a_in = date_create(date(\"h:i a\", $value->attendance_in_time));\n $d_in = date_diff($s_t_start, $l_a_in);\n $l_a_e = $this->db->select('*')->where(array(\"lecturer_attendance_id\" => $value->lecturer_attendance_id))->order_by('attendance_out_id', \"desc\")->limit(1)->get('attendance_out')->row();\n $l_a_out = date_create(date(\"h:i a\", $l_a_e->attendance_out_time));\n $d_out = date_diff($s_t_end, $l_a_out);\n\n // Remarks Section\n $padding_start = 20;\n $padding_start_late = 20;\n $padding_end_late = 20;\n $remarks_s = \"\";\n $remarks_e = \"\";\n // remove all % to compare\n $lain = str_replace(\"%\", \"\", $l_a_in->format(\"%h%i\"));\n $sain = str_replace(\"%\", \"\", $s_t_start->format(\"%h%i\"));\n if ($sain > $lain) {\n $d_in_f = $d_in->format('%h%i') * -1;\n } else {\n $d_in_f = $d_in->format('%h%i') * 1;\n }\n\n\n if ($d_in_f == 0) {\n $remarks_s = \"Exact Time In\";\n } elseif ($d_in_f < 0 && $d_in_f > ($padding_start * -1)) {\n $remarks_s = \"Early Time In\";\n } elseif ($d_in_f > 0 && $d_in_f < $padding_start_late) {\n $remarks_s = \"Late Time In\";\n } else {\n $remarks_s = \"-\";\n }\n\n $laout = str_replace(\"%\", \"\", $l_a_out->format(\"%h%i\"));\n $saout = str_replace(\"%\", \"\", $s_t_end->format(\"%h%i\"));\n if ($saout > $laout) {\n $d_out_f = $d_out->format('%h%i') * -1;\n } else {\n $d_out_f = $d_out->format('%h%i') * 1;\n }\n if ($d_out_f == 0) {\n $remarks_e = \"Exact Time Out\";\n } elseif ($d_out_f < 0) {\n $remarks_e = \"Early Dismissal\";\n } elseif ($d_out_f > 0 && $d_out_f < $padding_end_late) {\n $remarks_e = \"Late Dismissal\";\n } else {\n $remarks_e = \"Overtime\";\n }\n\n if ($remarks_s == \"-\") {\n $remarks_e = \"\";\n }\n $attendance_data['lecturer_attendance_id'] = $lec->lecturer_attendance_id;\n $attendance_data['lecturer_attendance_date'] = $lec->lecturer_attendance_date;\n $attendance_data['lecturer_attendance_in'] = $value->attendance_in_time;\n $attendance_data['lecturer_attendance_out'] = $l_a_e->attendance_out_time;\n $attendance_data['sched_start'] = $schedule->schedule_start_time;\n $attendance_data['sched_end'] = $schedule->schedule_end_time;\n $attendance_data['remarks_s'] = $remarks_s;\n $attendance_data['remarks_e'] = $remarks_e;\n // echo \"<pre>\";\n // print_r($attendance);\n\n $lec_in = date(\"h:i\", $value->attendance_in_time);\n $lec_out = date(\"h:i\", $l_a_e->attendance_out_time);\n $stend = date(\"h:i\", $schedule->schedule_end_time);\n $interval = $this->diff($lec_in, $lec_out);\n if ($remarks_e == \"Overtime\" && $remarks_s != \"-\") {\n $interval = $this->diff($lec_in, $stend);\n // echo $lec_in.\"---\".$stend.\"<br>\";\n }\n $sum = $interval['h'] . \":\" . $interval['i'];\n $attendance_data['hours_rendered'] = $sum;\n\n if ($remarks_s == \"-\") {\n $attendance_data['hours_rendered'] = 0;\n $sum = \"0:0\";\n }\n $attendance[] = $attendance_data;\n array_push($total_time, $sum);\n }\n // echo $d_out->format('%r%i');\n // echo \"<br>\";\n }\n }\n }\n }\n }\n }\n\n // echo \"<pre>\";\n // print_r($attendance);\n if (empty($attendance[0])) {\n $attendance = false;\n }\n // end fetch active\n\n $data = array(\n \"title\" => \"Administrator - Learning Management System | FEU - Institute of Techonology\",\n \"lecturer\" => $lec_data,\n \"attendance\" => $attendance,\n \"hours_rendered\" => $this->totalRenderedHours($total_time),\n \"total_time_array\" => $total_time,\n );\n $this->load->view('includes/header', $data);\n $this->load->view('admin-attendance');\n $this->load->view('includes/footer');\n }", "title": "" }, { "docid": "dde4d1040703faee4fa686004f92da6b", "score": "0.48288727", "text": "public function VRTopTenClientChart(){\n try{\n $query = \"SELECT client.client_name, SUM(AK_VR_Daily.Amount) as Amount FROM AK_VR_Daily JOIN client where client.client_id=AK_VR_Daily.client_id and AK_VR_Daily.client_id != 109 and year(AK_VR_Daily.transdate)=year(CURDATE()-interval 1 day) and month(AK_VR_Daily.transdate)=month(CURDATE()-interval 1 day) GROUP by client.client_name ORDER by Amount DESC LIMIT 10\";\n DB::enableQueryLog();\n $result=DB::select($query);\n $rows = array();\n $table = array();\n $table['cols'] = array(\n\n array('label' => 'Client Id', 'type' => 'string'),\n array('label' => 'Total Amount', 'type' => 'number'),\n array('label' => 'Total Amount', 'type' => 'number')\n\n );\n /* Extract the information from $result */\n foreach($result as $r)\n $rows[] = array('c' => array(\n array('v' => (string) $r->{'client_name'}),\n array('v' => (int) $r->{'Amount'}),\n array('v' => ((int) $r->{'Amount'})/1000000)\n ));\n\n $table['rows'] = $rows;\n\n $jsonTable = json_encode($table);\n\n return $jsonTable;\n }catch(Exception $e){\n \\LOG::error($e-getMessage());\n }\n }", "title": "" }, { "docid": "f045ad51d722edf69f13dcce264178a2", "score": "0.48206452", "text": "public function getTimeInteractionEnabledDevice(){\n $tipo_grafico = \"tiempo_interaccion_dispositivo_xy\";\n $validacion= $this->get_grafico_validacion($tipo_grafico);\n $titulo = $validacion[\"selector_url\"][0][0];\n $selector = $this->generarSelectorTiempo($validacion['orden'], $validacion['selector_url']);\n $T =& new Template_PHPLIB(REP_PATH_TEMPLATES);\n \n $tipoIdGrafico = 17;\n $isHeatMap=False;\n $nameJS='get_ajax';\n $this->settingReportNewRelic($tipo_grafico, $validacion, $titulo, $selector, $T, $tipoIdGrafico, $nameJS, $isHeatMap);\n \n }", "title": "" }, { "docid": "523c1afd7796109db967bc1e04179c3b", "score": "0.4805787", "text": "static function list_year_pie_chart(){\n \n $gen_year = \"SELECT DISTINCT(Year) AS year FROM google_chart_dev.sample_data ORDER BY year ASC\"; \n $gen_year_result = mysqli_query(db_connect::connect(), $gen_year); \n \n while($rows = mysqli_fetch_array($gen_year_result))\n {\n echo \"<option value='\".$rows['year'].\"'>\".$rows['year'].\"</option>\";\n } \n }", "title": "" }, { "docid": "4c859579d029c939f8dd697a87c6bc30", "score": "0.47995764", "text": "function display_schedule($schedule)\n{\n echo \"<table border='1'>\";\n echo \"<tr><th></th><th>Room-1</th><th>Room-2</th><th>Room-3</th></tr>\";\n// echo \"<pre>\";\n $room_allocation = $schedule->getRoomAllocation();\n// var_dump($room_allocation);\n// var_dump(array_keys($room_allocation));\n\n // we need to sort the $room_allocation assoc array before moving on\n // need to sort by room and time\n // [room, time] => Lecture;\n\n// $allLectures = [];\n// var_dump($allLectures);\n\n $roomList = array_keys($room_allocation);\n\n// var_dump($roomList);\n $cell_to_skip = [\n 'Room-1' => 0,\n 'Room-2' => 0,\n 'Room-3' => 0\n ];\n for ($i = 9; $i <= 17; $i++) {\n if ($i < 10) {\n $i = \"0\" . $i;\n }\n $timing = $i . \"-\" . ($i + 1);\n// echo \"<tr><th>$timing</th><td>\t\t</td><td>\t\t</td><td>\t\t</td></tr>\";\n echo \"<tr><th>$timing</th>\";\n foreach ($roomList as $room) {\n if ($cell_to_skip[$room] >= 1) {\n $cell_to_skip[$room] -= 1;\n continue;\n }\n $duration = 1;\n $td_to_print = \"<td></td>\";\n foreach ($room_allocation[$room] as $oneLecture) {\n if ($oneLecture->getStartTime() == $i) {\n// var_dump($oneLecture);\n $level = $oneLecture->getId();\n $duration = $oneLecture->getDuration();\n if ($duration >= 2) {\n $cell_to_skip[$room] += $duration - 1;\n }\n $td_to_print = \"<td rowspan='$duration'>$level</td>\";\n }\n }\n echo $td_to_print;\n }\n echo \"</tr>\";\n }\n echo \"</table>\";\n}", "title": "" }, { "docid": "0b9b826710d0c684535fcb1e4a34b221", "score": "0.4795226", "text": "public function index()\n {\n // quadros de totais\n $count_vendas = Vendas::count();\n $count_assinantes = Vendas::where('tipo_venda', '=', 'S')->count();\n $count_presentes = Vendas::where('tipo_venda', '=', 'G')->count();\n $count_produtos = Vendas::where('tipo_venda', '=', 'P')->count();\n\n // gráfico mês\n $ano_atual = date('Y');\n\n for($x=1; $x<=12;$x++) {\n $mes = str_pad($x, 2, 0, STR_PAD_LEFT);\n $qtd_venda_mes[] = Vendas::whereYear('created_at', '=', $ano_atual)->whereMonth('created_at', '=', $mes)->count();\n }\n $total_meses = implode(',',$qtd_venda_mes);\n\n\n // gráfico diário\n $mes_atual = date('m');\n\n $numero_dias = cal_days_in_month(CAL_GREGORIAN, $mes_atual, $ano_atual);\n\n for($x=1; $x<=$numero_dias; $x++) {\n $dia = str_pad($x, 2, 0, STR_PAD_LEFT);\n $dia_grafico[] = $dia;\n $cores_grafico[] = \"#6610f2\";\n $qtd_venda_dia[] = Vendas::whereYear('created_at', '=', $ano_atual)->whereMonth('created_at', '=', $mes_atual)->whereDay('created_at', '=', $dia)->count();\n }\n $total_dias = implode(',', $qtd_venda_dia);\n $dias_grafico = implode(',', $dia_grafico);\n $cores = \"'\".implode(\"','\", $cores_grafico).\"'\";\n $a = htmlentities($cores);\n $cores = html_entity_decode($a);\n\n setlocale(LC_ALL, \"pt_BR\", \"pt_BR.iso-8859-1\", \"pt_BR.utf-8\", \"portuguese\");\n date_default_timezone_set('America/Sao_Paulo');\n $date = date('Y-m-d');\n $mes_extenso = strftime(\"%B\", strtotime( $date ));\n\n\n $modelos = Modelos::where('user_id', '=', auth()->user()->id)->get();\n\n return view('admin/dashboard', compact('count_vendas','count_assinantes','count_presentes','count_produtos','modelos', 'total_meses', 'total_dias', 'dias_grafico', 'cores', 'mes_extenso'));\n }", "title": "" }, { "docid": "6db7bfb7a19aa1cf8e322eda6175cf79", "score": "0.47931668", "text": "function guifi_stats_chart04(){\n include drupal_get_path('module','guifi').'/contrib/phplot/phplot.php';\n $gDirTTFfonts=drupal_get_path('module','guifi').'/contrib/fonts/'; \n if(isset($_GET['width'])){\n $gwidth=$_GET['width'];\n }else{\n $gwidth=500;\n }\n if(isset($_GET['height'])){\n $gheight=$_GET['height'];\n }else{\n $gheight=450;\n }\n $today=getdate();\n $year=$today[year];\n $month=$today[mon];\n $month=$month-12;\n $n=0;\n $tot=0;\n if($month<1){\n $year=$year-1;\n $month=12+$month;\n }\n $datemin=mktime(0,0,0,$month,1,$year);\n \n if(isset($_GET['zone'])){\n $zone_id=$_GET['zone'];\n if($zone_id==\"3671\") $zone_id=\"0\";\n }else{\n $zone_id=\"0\";\n }\n $vsql=\"select COUNT(*) as num, max(timestamp_created) as fecha, max(month(FROM_UNIXTIME(timestamp_created))) as mes,max(year(FROM_UNIXTIME(timestamp_created))) as year\n from {guifi_location}\n where timestamp_created >= \".$datemin.\" and status_flag='Working' \";\n if($zone_id!=\"0\"){\n $achilds=guifi_zone_childs($zone_id);\n $v=\"\";\n foreach ($achilds as $key => $child) {\n if($v==\"\")\n $v .= \"zone_id=\".$child;\n else\n $v .= \" or zone_id=\".$child;\n }\n $vsql .= \"AND (\".$v.\") \";\n }\n\n $vsql .= \"GROUP BY Year(FROM_UNIXTIME(timestamp_created)), month(FROM_UNIXTIME(timestamp_created)) \";\n \n $result=db_query($vsql); \n \n while ($record=db_fetch_object($result)){\n $data[]=array(\"$record->mes\".'/'.substr(\"$record->year\",2,2),$record->num);\n if($record->mes!=$today[mon] || $record->year!=$today[year]){\n $n++;\n $tot=$tot+$record->num;\n }\n };\n if($n>0){\n $tot=$tot/$n;\n }\n $shapes = array( 'none');\n $plot = new PHPlot($gwidth,$gheight);\n $plot->SetPlotAreaWorld(0, 0, NULL, NULL);\n $plot->SetFileFormat('png');\n $plot->SetDataType(\"text-data\");\n $plot->SetDataValues($data);\n $plot->SetPlotType(\"bars\"); \n $plot->SetYTickIncrement($tot);\n $plot->SetSkipBottomTick(TRUE);\n $plot->SetSkipLeftTick(TRUE);\n $plot->SetTickLength(0);\n //$plot->SetXTickPos('none');\n $plot->SetYDataLabelPos('plotin');\n $plot->SetYLabelType('data', 0);\n $plot->SetTickColor('grey');\n $plot->SetTTFPath($gDirTTFfonts);\n $plot->SetFontTTF('title', 'Vera.ttf', 12);\n if(isset($_GET['title'])){\n $plot->SetTitle(\"guifi.net \\n\".t($_GET['title']));\n }else{\n if($zone_id==\"0\")\n $plot->SetTitle(\"guifi.net \\n\".t('Last year'));\n else\n $plot->SetTitle(\"guifi.net \".t('zone').\": \".guifi_get_zone_name($zone_id).\"\\n\".t('Last year'));\n }\n $plot->SetXTitle(t('Months'));\n $plot->SetYTitle(t('Working nodes'));\n $plot->SetXDataLabelPos('plotdown');\n $plot->SetXLabelAngle(0);\n $plot->SetGridColor('red');\n $plot->SetPlotBorderType('left');\n $plot->SetDataColors(array('orange'));\n $plot->SetTextColor('DimGrey');\n $plot->SetTitleColor('DimGrey');\n $plot->SetLightGridColor('grey');\n $plot->SetBackgroundColor('white');\n $plot->SetTransparentColor('white');\n $plot->SetIsInline(TRUE);\n $plot->DrawGraph();\n}", "title": "" }, { "docid": "b1a2648106ba6ac8405dad2bf909cbf0", "score": "0.4791744", "text": "public function chart()\n {\n try{\n $total = StudentServices::countTotalStudent();\n $items = StudentServices::showChart();\n return view('student.graph', compact('items', 'total'));\n }\n catch(Exception $e)\n {\n throw new Exception($e->getMessage()); \n } \n }", "title": "" }, { "docid": "3ea298fd1222407900d46e191992a538", "score": "0.4791651", "text": "public function chartData()\n {\n // $weightLabels = [];\n // $weightCount = [];\n\n // foreach($weight as $w)\n // {\n // array_push($weightLabels, $w->created_at);\n // array_push($weightCount, $w->value);\n // }\n\n // $waist = measured_stat::get()->where('stat_type_id', '=', '2')->orderBy('created_at')->pluck('value', 'created_at');\n\n // $chest = measured_stat::get()->where('stat_type_id', '=', '3')->orderBy('created_at')->pluck('value', 'created_at');\n\n // $neck = measured_stat::get()->where('stat_type_id', '=', '4')->orderBy('created_at')->pluck('value', 'created_at');\n\n // $leftUpperArm = measured_stat::get()->where('stat_type_id', '=', '5')->orderBy('created_at')->pluck('value', 'created_at');\n // $rightUpperArm = measured_stat::get()->where('stat_type_id', '=', '6')->orderBy('created_at')->pluck('value', 'created_at');\n\n // $leftLowerArm = measured_stat::get()->where('stat_type_id', '=', '7')->orderBy('created_at')->pluck('value', 'created_at');\n // $rightLowerArm = measured_stat::get()->where('stat_type_id', '=', '8')->orderBy('created_at')->pluck('value', 'created_at');\n\n // $leftThigh = measured_stat::get()->where('stat_type_id', '=', '9')->orderBy('created_at')->pluck('value', 'created_at');\n // $rightThigh = measured_stat::get()->where('stat_type_id', '=', '10')->orderBy('created_at')->pluck('value', 'created_at');\n\n // $leftCalf = measured_stat::get()->where('stat_type_id', '=', '11')->orderBy('created_at')->pluck('value', 'created_at');\n // $rightCalf = measured_stat::get()->where('stat_type_id', '=', '12')->orderBy('created_at')->pluck('value', 'created_at');\n \n\n // $weights = new WeightChart;\n // $weights->labels($weightLabels);\n // $weights->dataset('Weight', 'bar', $weightCount);\n\n\n $measurments = measurement::get()->where('user_id', Auth::user()->id);\n\n $weightLabels = [];\n $weightCount = [];\n\n $waistLabels = [];\n $waistCount = [];\n \n $chestLabels = [];\n $chestCount = [];\n\n $neckLabels = [];\n $neckCount = [];\n\n $leftUpperArmLabels = [];\n $leftUpperArmCount = [];\n\n $rightUpperArmLabels = [];\n $rightUpperArmCount = [];\n\n $leftLowerArmLabels = [];\n $leftLowerArmCount = [];\n\n $rightLowerArmLabels = [];\n $rightLowerArmCount = [];\n\n $leftThighLabels = [];\n $leftThighCount = [];\n\n $rightThighLabels = [];\n $rightThighCount = [];\n\n $leftCalfLabels = [];\n $leftCalfCount = [];\n\n $rightCalfLabels = [];\n $rightCalfCount = [];\n\n foreach($measurments as $measurment)\n {\n $weight = measured_stat::where([\n ['stat_type_id', '=', '1'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n\n $waist = measured_stat::where([\n ['stat_type_id', '=', '2'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n\n $chest = measured_stat::where([\n ['stat_type_id', '=', '3'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n\n $neck = measured_stat::where([\n ['stat_type_id', '=', '4'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n\n $leftUArm = measured_stat::where([\n ['stat_type_id', '=', '5'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n \n $rightUArm = measured_stat::where([\n ['stat_type_id', '=', '6'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n\n $leftLArm = measured_stat::where([\n ['stat_type_id', '=', '7'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n\n $rightLArm = measured_stat::where([\n ['stat_type_id', '=', '8'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n\n $leftTh = measured_stat::where([\n ['stat_type_id', '=', '9'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n\n $rightTh = measured_stat::where([\n ['stat_type_id', '=', '10'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n\n $leftC = measured_stat::where([\n ['stat_type_id', '=', '11'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n\n $rightC = measured_stat::where([\n ['stat_type_id', '=', '12'],\n ['measurement_id', '=', $measurment->id]\n ])->get();\n \n foreach($weight as $w)\n {\n array_push($weightLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($weightCount, $w->value);\n } \n\n foreach($waist as $w)\n {\n array_push($waistLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($waistCount, $w->value);\n }\n\n foreach($chest as $w)\n {\n array_push($chestLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($chestCount, $w->value);\n }\n\n foreach($neck as $w)\n {\n array_push($neckLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($neckCount, $w->value);\n }\n\n foreach($leftUArm as $w)\n {\n array_push($leftUpperArmLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($leftUpperArmCount, $w->value);\n }\n\n foreach($rightUArm as $w)\n {\n array_push($rightUpperArmLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($rightUpperArmCount, $w->value);\n }\n\n foreach($leftLArm as $w)\n {\n array_push($leftLowerArmLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($leftLowerArmCount, $w->value);\n }\n \n foreach($rightLArm as $w)\n {\n array_push($rightLowerArmLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($rightLowerArmCount, $w->value);\n }\n\n foreach($leftTh as $w)\n {\n array_push($leftThighLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($leftThighCount, $w->value);\n }\n\n foreach($rightTh as $w)\n {\n array_push($rightThighLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($rightThighCount, $w->value);\n }\n\n foreach($leftC as $w)\n {\n array_push($leftCalfLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($leftCalfCount, $w->value);\n }\n\n foreach($rightC as $w)\n {\n array_push($rightCalfLabels, $w->created_at->format('Y-m-d H:m:s'));\n array_push($rightCalfCount, $w->value);\n }\n }\n\n $theWeightChart = new WeightChart;\n $theWeightChart->labels($weightLabels);\n $theWeightChart->dataset('Weight Data', 'line', $weightCount)\n ->backgroundColor('#34495e');\n\n\n $theWaistChart = new WeightChart;\n $theWaistChart->labels($waistLabels);\n $theWaistChart->dataset('Waist Data', 'line', $waistCount)\n ->backgroundColor('#2980b9');\n\n $theChestChart = new WeightChart;\n $theChestChart->labels($chestLabels);\n $theChestChart->dataset('Chest Data', 'line', $chestCount)\n ->backgroundColor('#f05252');\n\n $theNeckChart = new WeightChart;\n $theNeckChart->labels($neckLabels);\n $theNeckChart->dataset('Neck Data', 'line', $neckCount)\n ->backgroundColor('#8e44ad');\n\n $theUpperArmChart = new WeightChart;\n $theUpperArmChart->labels($leftUpperArmLabels, $rightUpperArmLabels);\n $theUpperArmChart->dataset('Left Upper arm Data', 'bar', $leftUpperArmCount)\n ->backgroundColor('#e74c3c');\n $theUpperArmChart->dataset('Right Upper arm Data', 'bar', $rightUpperArmCount)\n ->backgroundColor('#2980b9');\n\n $theLowerArmChart = new WeightChart;\n $theLowerArmChart->labels($leftLowerArmLabels, $rightLowerArmLabels);\n $theLowerArmChart->dataset('Left Lower arm Data', 'bar', $leftLowerArmCount)\n ->backgroundColor('#27ae60');\n $theLowerArmChart->dataset('Right Lower arm Data', 'bar', $rightLowerArmCount)\n ->backgroundColor('#f1c40f');\n \n $theThighChart = new WeightChart;\n $theThighChart->labels($leftThighLabels, $rightThighLabels);\n $theThighChart->dataset('Left thigh Data', 'bar', $leftThighCount)\n ->backgroundColor('#34495e');\n $theThighChart->dataset('Right thigh arm Data', 'bar', $rightThighCount)\n ->backgroundColor('#ecf0f1');\n\n $theCalfChart = new WeightChart;\n $theCalfChart->labels($leftCalfLabels, $rightCalfLabels);\n $theCalfChart->dataset('Left calf Data', 'bar', $leftCalfCount)\n ->backgroundColor('#1abc9c');\n $theCalfChart->dataset('Right calf arm Data', 'bar', $rightCalfCount)\n ->backgroundColor('#3498db');\n\n\n return view('dashboard', compact('theWeightChart', 'theWaistChart', 'theChestChart', 'theNeckChart', 'theUpperArmChart', 'theLowerArmChart', 'theThighChart', 'theCalfChart'));\n }", "title": "" }, { "docid": "d218c070d48c09beb33a1f7a550b473e", "score": "0.4773851", "text": "function show_chart($object, $id, $classes='')\n{\n\tglobal $_volunteer_db;\n\tif ($object == 'group')\n\t{\n\t\t$group = $_volunteer_db->get_group($id);\n\t\t$people = $_volunteer_db->get_volunteers_for_group($id);\n\t\t$jobs = $_volunteer_db->get_upcoming_jobs_for_group($id);\n\t\t$chart_title = $group['name'] . \" | Job Chart\";\n\t}\n\tif ($object == 'person')\n\t{\n\t\t$person = $_volunteer_db->get_volunteer($id);\n\t\t$people = Array($person);\n\t\t$jobs = $_volunteer_db->get_upcoming_jobs_for_person($id, True);\n\t\t$chart_title = $person['fullname'] . \" | Job Chart\";\n\t}\n\n\tif (!is_array($jobs)) return;\n\tif (count($jobs) < 1) return;\n\n\t// JOBS ACROSS TOP\n\t// PEOPLE ON LEFT\n\t// RED BOX FOR TIME OFF\n\t// GREEN BOX FOR ASSIGNMENT\n\t// MAKE ASSIGNMENTS CLICKABLE\n\t// MAKE FIRST COLUMN \"FROZEN\"\n\n\t//FIRST, CREATE TWO DIMENSIONAL ARRAY.\n\n\t$chart_data = Array(Array());\n\tforeach ($jobs as $job)\n\t{\n\t\t$assignments = $_volunteer_db->get_volunteers_for_job($job['jid']);\n\t\tforeach ($assignments as $assignment)\n\t\t{\n\t\t\t$chart_data[$job['jid']][$assignment['pid']] = Array('status' => 'assigned', 'note' => $assignment['note']);\n\t\t}\n\t\t$volunteers = $_volunteer_db->get_available_volunteers($job['jid']);\n\n\t\tforeach ($volunteers['available'] as $volunteer)\n\t\t{\n\t\t\t$chart_data[$job['jid']][$volunteer['pid']] = Array('status' => 'available');\n\t\t}\n\t\tforeach ($volunteers['busy'] as $volunteer)\n\t\t{\n\t\t\t$chart_data[$job['jid']][$volunteer['volunteer']['pid']] = Array('status' => 'busy', 'note' => $volunteer['reason']);\n\t\t}\n\t}\n display_chart($chart_title, $jobs, $people, $chart_data, $classes);\n}", "title": "" }, { "docid": "aa3ac43df3b3f215e6c5cf708def8d9c", "score": "0.4772389", "text": "private function get_reservations(): string\n {\n $to_return = \"<h3 class='subsectionHead' id='reserved-itineraries'>Reserved Itineraries</h3>\";\n\n if ($statement = $this->connection->prepare(\"SELECT * FROM reservation r, itinerary i WHERE r.booked_itinerary = i.itinerary_code AND r.username = ?\")) {\n $statement->bind_param(\"s\", $this->username);\n $statement->execute();\n $result = $statement->get_result();\n if ($result->num_rows == 0) {\n return $to_return . self::NO_ROWS;\n }\n $table_creator = new TableCreator(21);\n $table_creator->set_super_header(array(\"Reservations\", \"Itinerary\"), array(6, 15));\n $table_creator->set_header(array(\n \"Number of Children\",\n \"Number of Audults\",\n \"Total\",\n \"Requested Date\",\n \"Forwading Date\",\n \"Confim Date\",\n \"Itinerary Code\",\n \"Owner\",\n \"Title\",\n \"Description\",\n \"Beginning Date\",\n \"Ending Date\",\n \"End of Reservations Date\",\n \"Max. Participants\",\n \"Min. Participants\",\n \"Location\",\n \"Repetitions per Day\",\n \"Duration\",\n \"Full price\",\n \"Reduced Price\",\n \"Languages\"\n ));\n while ($row = $result->fetch_assoc()) {\n $table_creator->add_row(array(\n $row['number_of_children'],\n $row['number_of_adults'],\n $row['total'],\n $row['requested_date'],\n $row['forwading_date'],\n $row['confirm_date'],\n $row['itinerary_code'],\n $row['username'],\n $row['title'],\n self::OMISSIS,\n $row['beginning_date'],\n $row['ending_date'],\n $row['end_reservations_date'],\n $row['maximum_partecipants_number'],\n $row['minimum_partecipants_number'],\n $row['location'],\n $row['repetitions_per_day'],\n $row['duration'],\n $row['full_price'],\n $row['reduced_price'],\n $this->get_languages($row['itinerary_code'], false)\n ));\n }\n $to_return .= \"<div class='table-responsive text-nowrap'>\" . $table_creator->get_table() . \"</div>\";\n $statement->close();\n }\n\n return $to_return;\n }", "title": "" }, { "docid": "982465d97fc18e6e8a0285aa44a56b1e", "score": "0.47677416", "text": "public function chart($start, $end) {\n // The result array\n $result = array();\n\n // Gets all the universities\n $universities = $this->University->find('all');\n\n // Gets the unique involved data\n $data_d26 = $this->Data->findByNombre('D26');\n\n // Starts the calculation year by year\n for ($year = $start; $year <= $end; $year++) {\n // The total for each university\n $university_totals = array();\n\n // For each yeardoes the calculation for each university\n foreach ($universities as $university) {\n // Gets the university data\n $uy_d26 = $this->UniversityYearData->findByDato_iddatoAndUniversidad_iduniversidadAndAnho($data_d26['Data']['iddato'], $university['University']['iduniversidad'], $year);\n\n // Checks the data and does the calculation\n if (!empty($uy_d26)) {\n $uy_d26_value = $uy_d26['UniversityYearData']['valor'];\n array_push($university_totals, $uy_d26_value);\n } else {\n array_push($university_totals, 0);\n }\n }\n\n // Saves the current year calculation\n $rh002_8 = array();\n $rh002_8['year'] = $year;\n $rh002_8['value'] = $university_totals;\n array_push($result, $rh002_8);\n }\n\n // Gets the series and ticks\n $ticks = array();\n $series = array();\n foreach ($result as $year_result) {\n array_push($ticks, $year_result['year']);\n array_push($series, $year_result['value']);\n }\n\n // Saves the final result\n $result = array();\n $result['ticks'] = $ticks;\n $result['series'] = $series;\n $result['universities'] = $universities;\n $result['view'] = 'rh002_8';\n\n // Returns\n return $result;\n }", "title": "" }, { "docid": "ae1f63f9f29185fc64b5895446bdaaeb", "score": "0.47672626", "text": "function generate_run_hours($node, $dates, $run_hours, $status_ok, $status_inc, $status_nod) {\n\n// Create the graph. These two calls are always required\n $graph = new Graph(1600,400);\n $graph->clearTheme();\n $graph->SetScale(\"datint\");\n $graph->yaxis->scale->SetAutoMin(0);\n\n// $graph->SetClipping(TRUE);\n\n $graph->SetShadow();\n $graph->img->SetMargin(60,30,20,40);\n\n// Create the bar plots\n $lplot = new LinePlot($run_hours, $dates);\n $lplot->SetStepStyle();\n $lplot->SetColor(\"orange\");\n $lplot->SetFillColor(\"orange\");\n\n// Create Controls Line plots\n $lplot2 = new LinePlot($status_ok, $dates);\n $lplot2->SetBarCenter();\n $lplot2->SetStepStyle();\n $lplot2->SetColor(\"green\");\n $lplot2->SetFillColor(\"green\");\n\n $lplot1 = new LinePlot($status_inc, $dates);\n// $lplot1->SetBarCenter();\n $lplot1->SetStepStyle();\n $lplot1->SetColor(\"blue\");\n $lplot1->SetFillColor(\"blue\");\n\n $lplot0 = new LinePlot($status_nod, $dates);\n $lplot0->SetStepStyle();\n $lplot0->SetColor(\"red\");\n $lplot0->SetFillColor(\"red\");\n\n// ...and add it to the graPH\n $graph->Add($lplot);\n $graph->AddY(0,$lplot2);\n $graph->AddY(1,$lplot1);\n $graph->AddY(2,$lplot0);\n// $graph->Add($lplot);\n\n $graph->SetYscale(0,'lin', 0, 50);\n $graph->SetYscale(1,'lin', 0, 50);\n $graph->SetYscale(2,'lin', 0, 50);\n $graph->ynaxis[0]->Hide();\n $graph->ynaxis[1]->Hide();\n $graph->ynaxis[2]->Hide();\n\n $title = \"Run Hours per Day for last month\";\n $graph->title->Set($title);\n $graph->xaxis->title->Set(\"Days\");\n $graph->xaxis->scale->SetDateFormat('d-M');\n $graph->xaxis->scale->SetDateAlign(DAYADJ_1);\n $graph->yaxis->title->Set(\"Hours\");\n $graph->yaxis->SetTitleMargin(40);\n\n $graph->title->SetFont(FF_FONT1,FS_BOLD);\n $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD);\n $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD);\n\n $graph->SetTickDensity(TICKD_NORMAL, TICKD_VERYSPARSE);\n\n $graph->xaxis->scale->ticks->SupressMinorTickMarks(True);\n $graph->xaxis->scale->ticks->SupressLast(True);\n\n// Display the graph to image file\n $filename=$node.'.png';\n $graph->Stroke($filename);\n\n}", "title": "" }, { "docid": "b36dd033cd1f8e7eddf9b403e303f9d9", "score": "0.47587648", "text": "private function _getChartContribsTypesPie()\n {\n global $zdb;\n\n $select = new \\Zend_Db_Select($zdb->db);\n $select->from(\n array('a' => PREFIX_DB . ContributionsTypes::TABLE),\n array(\n 'cnt' => 'count(a.' . ContributionsTypes::PK . ')',\n 'label' => 'a.libelle_type_cotis',\n 'extends' => 'a.cotis_extension'\n )\n )->join(\n array('b' => PREFIX_DB . Contribution::TABLE),\n 'a.' . ContributionsTypes::PK . '=b.' . ContributionsTypes::PK,\n array()\n )\n ->order('a.cotis_extension')\n ->group('a.' . ContributionsTypes::PK);\n\n Analog::log(\n $select->__toString(),\n Analog::DEBUG\n );\n $res = $select->query()->fetchAll();\n\n $chart = array();\n foreach ( $res as $r ) {\n $chart[] = array(\n _T($r->label),\n (int)$r->cnt\n );\n }\n $this->_charts[self::CONTRIBS_TYPES_PIE] = json_encode($chart);\n }", "title": "" }, { "docid": "9e2f07b1c5663e5aac43e924780355a1", "score": "0.47543612", "text": "public function chartDataAction()\n {\n $this->_helper->layout->disableLayout();\n $this->_helper->viewRenderer->setNoRender(true);\n\n // Get params\n $type = $this->_getParam('type');\n $start = $this->_getParam('start');\n $offset = $this->_getParam('offset', 0);\n $mode = $this->_getParam('mode');\n $chunk = $this->_getParam('chunk');\n $period = $this->_getParam('period');\n $periodCount = $this->_getParam('periodCount', 1);\n $donation_id = $this->_getParam('donation_id');\n\n // Validate chunk/period\n if (!$chunk || !in_array($chunk, $this->_periods)) {\n $chunk = Zend_Date::DAY;\n }\n if (!$period || !in_array($period, $this->_periods)) {\n $period = Zend_Date::MONTH;\n }\n\n if (array_search($chunk, $this->_periods) >= array_search($period, $this->_periods)) {\n die('whoops');\n return;\n }\n\n // Validate start\n if ($start && !is_numeric($start)) {\n $start = strtotime($start);\n }\n if (!$start) {\n $start = time();\n }\n\n // Fixes issues with month view\n Zend_Date::setOptions(array(\n 'extend_month' => true,\n ));\n\n // Get timezone\n $timezone = Engine_Api::_()->getDbTable('settings', 'core')\n ->getSetting('core_locale_timezone', 'GMT');\n $viewer = Engine_Api::_()->user()->getViewer();\n if ($viewer && $viewer->getIdentity() && !empty($viewer->timezone)) {\n $timezone = $viewer->timezone;\n }\n\n // Make start fit to period?\n $startObject = new Zend_Date($start);\n $startObject->setTimezone($timezone);\n\n $partMaps = $this->_periodMap[$period];\n foreach ($partMaps as $partType => $partValue) {\n $startObject->set($partValue, $partType);\n }\n\n // Do offset\n if ($offset != 0) {\n $startObject->add($offset, $period);\n }\n\n // Get end time\n $endObject = new Zend_Date($startObject->getTimestamp());\n $endObject->setTimezone($timezone);\n $endObject->add($periodCount, $period);\n $endObject->sub(1, Zend_Date::SECOND); // Subtract one second\n\n // Get data\n /**\n * @var $transTable Store_Model_DbTable_Transactions\n * @var $statsSelect Zend_Db_Select\n */\n $transTable = Engine_Api::_()->getDbtable('transactions', 'donation');\n $statsSelect = $transTable\n ->select()\n ->from(array('t' => $transTable->info('name')), array('value' => 'SUM(t.amount)', 'date' => 't.creation_date'))\n ->where('t.item_id = ?', $donation_id)\n ->where('t.creation_date >= ?', gmdate('Y-m-d H:i:s', $startObject->getTimestamp()))\n ->where('t.creation_date < ?', gmdate('Y-m-d H:i:s', $endObject->getTimestamp()))\n ->group('t.creation_date')\n ->order('t.creation_date ASC');\n\n $rawData = $transTable->fetchAll($statsSelect);\n\n // Now create data structure\n $currentObject = clone $startObject;\n $nextObject = clone $startObject;\n $data = array();\n $dataLabels = array();\n $cumulative = 0;\n $previous = 0;\n\n do {\n $nextObject->add(1, $chunk);\n\n $currentObjectTimestamp = $currentObject->getTimestamp();\n $nextObjectTimestamp = $nextObject->getTimestamp();\n\n $data[$currentObjectTimestamp] = $cumulative;\n\n // Get everything that matches\n $currentPeriodCount = 0;\n foreach ($rawData as $rawDatum) {\n $rawDatumDate = strtotime($rawDatum->date);\n if ($rawDatumDate >= $currentObjectTimestamp && $rawDatumDate < $nextObjectTimestamp) {\n $currentPeriodCount += $rawDatum->value;\n }\n }\n\n // Now do stuff with it\n switch ($mode) {\n default:\n case 'normal':\n $data[$currentObjectTimestamp] = $currentPeriodCount;\n break;\n case 'cumulative':\n $cumulative += $currentPeriodCount;\n $data[$currentObjectTimestamp] = $cumulative;\n break;\n case 'delta':\n $data[$currentObjectTimestamp] = $currentPeriodCount - $previous;\n $previous = $currentPeriodCount;\n break;\n }\n\n $currentObject->add(1, $chunk);\n\n } while ($currentObject->getTimestamp() < $endObject->getTimestamp());\n\n // Reprocess label\n $labelStrings = array();\n $labelDate = new Zend_Date();\n foreach ($data as $key => $value) {\n $labelDate->set($key);\n $labelStrings[] = $this->view->locale()->toDate($labelDate, array('size' => 'short')); //date('D M d Y', $key);\n }\n\n // Let's expand them by 1.1 just for some nice spacing\n $minVal = min($data);\n $maxVal = max($data);\n $minVal = floor($minVal * ($minVal < 0 ? 1.1 : (1 / 1.1)) / 10) * 10;\n $maxVal = ceil($maxVal * ($maxVal > 0 ? 1.1 : (1 / 1.1)) / 10) * 10;\n\n // Remove some labels if there are too many\n $xlabelsteps = 1;\n if (count($data) > 10) {\n $xlabelsteps = ceil(count($data) / 10);\n }\n\n // Remove some grid lines if there are too many\n $xsteps = 1;\n if (count($data) > 100) {\n $xsteps = ceil(count($data) / 100);\n }\n\n // Create base chart\n require_once 'OFC/OFC_Chart.php';\n\n // Make x axis labels\n $x_axis_labels = new OFC_Elements_Axis_X_Label_Set();\n $x_axis_labels->set_steps($xlabelsteps);\n $x_axis_labels->set_labels($labelStrings);\n\n // Make x axis\n $labels = new OFC_Elements_Axis_X();\n $labels->set_labels($x_axis_labels);\n $labels->set_colour(\"#416b86\");\n $labels->set_grid_colour(\"#dddddd\");\n $labels->set_steps($xsteps);\n\n // Make y axis\n $yaxis = new OFC_Elements_Axis_Y();\n $yaxis->set_range($minVal, $maxVal /*, $steps*/);\n $yaxis->set_colour(\"#416b86\");\n $yaxis->set_grid_colour(\"#dddddd\");\n\n // Make data\n $graph = new OFC_Charts_Line();\n $graph->set_values(array_values($data));\n $graph->set_colour(\"#5ba1cd\");\n\n // Make title\n $title = new OFC_Elements_Title($this->view->locale()->toDateTime($startObject) . ' to ' . $this->view->locale()->toDateTime($endObject));\n $title->set_style(\"{font-size: 14px;font-weight: bold;margin-bottom: 10px; color: #777777;}\");\n\n // Make full chart\n $chart = new OFC_Chart();\n $chart->set_bg_colour('#ffffff');\n\n $chart->set_x_axis($labels);\n $chart->add_y_axis($yaxis);\n $chart->add_element($graph);\n $chart->set_title($title);\n\n // Send\n $this->getResponse()->setBody($chart->toPrettyString());\n }", "title": "" }, { "docid": "ff52b7362b447f63066266625cfdc2c8", "score": "0.47539714", "text": "function guifi_stats_chart02(){\n include drupal_get_path('module','guifi').'/contrib/phplot/phplot.php';\n $gDirTTFfonts=drupal_get_path('module','guifi').'/contrib/fonts/'; \n if(isset($_GET['width'])){\n $gwidth=$_GET['width'];\n }else{\n $gwidth=500;\n }\n if(isset($_GET['height'])){\n $gheight=$_GET['height'];\n }else{\n $gheight=450;\n }\n if(isset($_GET['zone'])){\n $zone_id=$_GET['zone'];\n if($zone_id==\"3671\") $zone_id=\"0\";\n }else{\n $zone_id=\"0\";\n }\n $vsql=\"select COUNT(*) as num, YEAR(FROM_UNIXTIME(timestamp_created)) as ano\n from {guifi_location} where status_flag='Working' \";\n if($zone_id!=\"0\"){\n $achilds=guifi_zone_childs($zone_id);\n $v=\"\";\n foreach ($achilds as $key => $child) {\n if($v==\"\")\n $v .= \"zone_id=\".$child;\n else\n $v .= \" or zone_id=\".$child;\n }\n $vsql .= \"AND (\".$v.\") \";\n }\n $vsql .= \"GROUP BY YEAR(FROM_UNIXTIME(timestamp_created)) \";\n \n $result=db_query($vsql); \n $tot=0;\n $max=0;\n\twhile ($record=db_fetch_object($result)){\n if($record->ano>=2004){\n //$nreg++;\n $tot+=$record->num;\n $data[]=array(\"$record->ano\",$tot);\n if($tot>$max) $max=$tot;\n $tot=0;\n }else{\n $tot+=$record->num;\n };\n\t};\n if($max<=10) $inc=1;\n else {\n $vlen=strlen($max);\n $vini=substr($max,0,1);\n $inc=str_pad($vini,$vlen-1,\"0\");\n }\n $shapes = array( 'none');\n $plot = new PHPlot($gwidth,$gheight);\n $plot->SetPlotAreaWorld(0, 0, NULL, NULL);\n $plot->SetFileFormat('png');\n $plot->SetDataType(\"text-data\");\n $plot->SetDataValues($data);\n $plot->SetPlotType(\"bars\"); \n $plot->SetYTickIncrement($inc);\n $plot->SetSkipBottomTick(TRUE);\n $plot->SetSkipLeftTick(TRUE);\n $plot->SetTickLength(0);\n $plot->SetXTickPos('none');\n $plot->SetYDataLabelPos('plotin');\n $plot->SetTickColor('grey');\n $plot->SetTTFPath($gDirTTFfonts);\n $plot->SetFontTTF('title', 'Vera.ttf', 12);\n if(isset($_GET['title'])){\n $plot->SetTitle(\"guifi.net \\n\".t($_GET['title']));\n }else{\n if($zone_id==\"0\")\n $plot->SetTitle(\"guifi.net \\n\".t('Annual increment'));\n else\n $plot->SetTitle(\"guifi.net \".t('zone').\": \".guifi_get_zone_name($zone_id).\"\\n\".t('Annual increment'));\n } \n $plot->SetXTitle(t('Years'));\n $plot->SetYTitle(t('Working nodes'));\n $plot->SetXDataLabelPos('plotdown');\n $plot->SetXLabelAngle(0);\n $plot->SetGridColor('red');\n $plot->SetPlotBorderType('left');\n $plot->SetDataColors(array('orange'));\n $plot->SetTextColor('DimGrey');\n $plot->SetTitleColor('DimGrey');\n $plot->SetLightGridColor('grey');\n $plot->SetBackgroundColor('white');\n $plot->SetTransparentColor('white');\n $plot->SetIsInline(TRUE);\n $plot->DrawGraph();\n}", "title": "" }, { "docid": "86ceae3116d05e573a5ba9df09b30535", "score": "0.4752468", "text": "public function run()\n {\n $time = Carbon::now()->setSecond(0);\n\n $time->setSecond(0);\n // Get closest half hour\n if($time->minute <= 30) {\n $time->addMinutes(30 - $time->minute);\n } else {\n $time->addMinutes(60 - $time->minute);\n }\n\n $time->addMinutes(30);\n\n for ($i = 0; $i < 10; $i++) {\n RestaurantReservation::create([\n 'restaurant_id' => 1,\n 'user_id' => 2,\n 'time_slot' => $time,\n 'guests' => 1\n ]);\n }\n\n RestaurantReservation::create([\n 'restaurant_id' => 1,\n 'user_id' => 1,\n 'time_slot' => $time->addMinutes(30),\n 'guests' => 4\n ]);\n\n RestaurantReservation::create([\n 'restaurant_id' => 1,\n 'user_id' => 1,\n 'time_slot' => $time->addMinutes(30),\n 'guests' => 90\n ]);\n\n RestaurantReservation::create([\n 'restaurant_id' => 1,\n 'user_id' => 1,\n 'time_slot' => $time->addHour(),\n 'guests' => 8\n ]);\n RestaurantReservation::create([\n 'restaurant_id' => 1,\n 'user_id' => 1,\n 'time_slot' => $time->addHour(),\n 'guests' => 8\n ]);\n }", "title": "" }, { "docid": "1763462f83df97ad61f67a809ece1510", "score": "0.47493336", "text": "public static function getPeriod($request)\n\t\t{\n\t\t\t$HistorialReservation = HistorialReservation::selectRaw('DISTINCT period')->get();\n\t\t\techo $HistorialReservation->toJson();\n\t\t}", "title": "" }, { "docid": "ce9481a0e22a3ab27d50645161984180", "score": "0.47404945", "text": "public function handler(Request $request): Chartisan\n {\n $cases = cache()->remember('covid-confirmed-recovered-pie-chart-' . $request->get('state'), now()->addMinutes(60), function () use ($request) {\n $api = new CovidApi;\n return $api->getTotalCaseContirmedAndRecovered();\n });\n\n return Chartisan::build()\n ->labels(['Confirmados', 'Casos Ativos', 'Recuperados'])\n ->dataset('COVID-19 - Brasil', [$cases['confirmed'], ($cases['confirmed'] - $cases['recovered']), $cases['recovered']]);\n }", "title": "" }, { "docid": "bddf70d35aca39735194857f36adf2f1", "score": "0.47393605", "text": "function getGoogleChartData($pid){\n $row = getPollrow($pid);\n $title = $row[\"question\"];\n $data = [[\"Task\", $title]];\n for ($i = 1; $i <= 20; $i++){\n if (is_null($row[\"Answer$i\"])){\n break;\n }\n array_push($data, [$row[\"Answer$i\"],$row[\"Votes$i\"]]);\n }\n echo json_encode($data);\n}", "title": "" }, { "docid": "c9e50099651f578b4f710c7b5e1b5a71", "score": "0.47392988", "text": "public static function pie ($object)\n\t\t{\n\t\t\tself::p($object);\n\t\t\texit();\n\t\t}", "title": "" }, { "docid": "c0202f310eeef2db44cfa986410c2df8", "score": "0.4737682", "text": "function draw_calendar($month,$year){\n\n $month = monthToInt($month);\n /* draw table */\n $calendar = '<table cellpadding=\"0\" cellspacing=\"0\" class=\"calendar\">';\n $calendar .= '<caption>'.monthToString($month).' '.$year.'</caption>';\n\n /* table headings */\n $headings = array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');\n $calendar.= '<tr class=\"calendar-row\"><th class=\"calendar-day-head\">'.implode('</th><th class=\"calendar-day-head\">',$headings).'</th></tr>';\n\n /* days and weeks vars now ... */\n $running_day = date('w',mktime(0,0,0,$month,1,$year));\n $days_in_month = date('t',mktime(0,0,0,$month,1,$year));\n $days_in_this_week = 1;\n $day_counter = 0;\n $dates_array = array();\n\n /* row for week one */\n $calendar.= '<tr class=\"calendar-row\">';\n\n /* print \"blank\" days until the first of the current week */\n for($x = 0; $x < $running_day; $x++):\n $calendar.= '<td class=\"calendar-day-np\"> </td>';\n $days_in_this_week++;\n endfor;\n\n /* keep going with days.... */\n for($day = 1; $day <= $days_in_month; $day++):\n /** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! **/\n $data = getReservations($month, $year, $day);\n if(isset($data['day_id']) && $data['approved'] == 'y'){\n $calendar.= '<td class=\"calendar-day\" style=\"background:red\">';\n /* add in the day number */\n $calendar.= '<div class=\"day-number\">'.$day.'</div>';\n $calendar.= str_repeat('<p class=\"reserve\">Reserved</p>',1);\n }\n else if(isset($data['day_id']) && ($data['approved'] == '' || $data['approved'] === NULL)){\n $calendar.= '<td class=\"calendar-day\" style=\"background:green\">';\n /* add in the day number */\n $calendar.= '<div class=\"day-number\">'.$day.'</div>';\n $calendar.= str_repeat('<p class=\"reserve\">Pending</p>',1);\n\n }\n else {\n $calendar.= '<td class=\"calendar-day\">';\n /* add in the day number */\n $calendar.= '<div class=\"day-number\">'.$day.'</div>';\n }\n /** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! **/\n\n // $data = getReservations($month, $year, $day);\n // if(isset($data['day_id']) && $data['approved'] == 'y'){\n // $calendar.= str_repeat('<p class=\"reserve\">Reserved</p>',1);\n // }\n // if(isset($data['day_id']) && ($data['approved'] == '' || $data['approved'] === NULL)){\n // $calendar.= str_repeat('<p class=\"reserve\">Pending</p>',1);\n // }\n $calendar.= '</td>';\n if($running_day == 6):\n $calendar.= '</tr>';\n if(($day_counter+1) != $days_in_month):\n $calendar.= '<tr class=\"calendar-row\">';\n endif;\n $running_day = -1;\n $days_in_this_week = 0;\n endif;\n $days_in_this_week++; $running_day++; $day_counter++;\n endfor;\n\n /* finish the rest of the days in the week */\n if($days_in_this_week < 8):\n for($x = 1; $x <= (8 - $days_in_this_week); $x++):\n $calendar.= '<td class=\"calendar-day-np\"> </td>';\n endfor;\n endif;\n\n /* final row */\n $calendar.= '</tr>';\n\n /* end the table */\n $calendar.= '</table>';\n\n /* all done, return result */\n return $calendar;\n}", "title": "" }, { "docid": "b4adfdb259dc51ff305f6c8a0f56534e", "score": "0.4735771", "text": "public function index()\n {\n $tasks = array(\n [\n 'id' => 1,\n 'parentId' => 0,\n 'title' => 'Software Development',\n 'start' => new DateTime('2019-02-21T05:00:00.000Z'),\n 'end' => new DateTime('2019-07-04T12:00:00.000Z'),\n 'progress' => 31\n ], [\n 'id' => 2,\n 'parentId' => 1,\n 'title' => 'Scope',\n 'start' => new DateTime('2019-02-21T05:00:00.000Z'),\n 'end' => new DateTime('2019-02-26T09:00:00.000Z'),\n 'progress' => 60\n ], [\n 'id' => 3,\n 'parentId' => 2,\n 'title' => 'Determine project scope',\n 'start' => new DateTime('2019-02-21T05:00:00.000Z'),\n 'end' => new DateTime('2019-02-21T09:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 4,\n 'parentId' => 2,\n 'title' => 'Secure project sponsorship',\n 'start' => new DateTime('2019-02-21T10:00:00.000Z'),\n 'end' => new DateTime('2019-02-22T09:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 5,\n 'parentId' => 2,\n 'title' => 'Define preliminary resources',\n 'start' => new DateTime('2019-02-22T10:00:00.000Z'),\n 'end' => new DateTime('2019-02-25T09:00:00.000Z'),\n 'progress' => 60\n ], [\n 'id' => 6,\n 'parentId' => 2,\n 'title' => 'Secure core resources',\n 'start' => new DateTime('2019-02-25T10:00:00.000Z'),\n 'end' => new DateTime('2019-02-26T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 7,\n 'parentId' => 2,\n 'title' => 'Scope complete',\n 'start' => new DateTime('2019-02-26T09:00:00.000Z'),\n 'end' => new DateTime('2019-02-26T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 8,\n 'parentId' => 1,\n 'title' => 'Analysis/Software Requirements',\n 'start' => new DateTime('2019-02-26T10:00:00.000Z'),\n 'end' => new DateTime('2019-03-18T09:00:00.000Z'),\n 'progress' => 80\n ], [\n 'id' => 9,\n 'parentId' => 8,\n 'title' => 'Conduct needs analysis',\n 'start' => new DateTime('2019-02-26T10:00:00.000Z'),\n 'end' => new DateTime('2019-03-05T09:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 10,\n 'parentId' => 8,\n 'title' => 'Draft preliminary software specifications',\n 'start' => new DateTime('2019-03-05T10:00:00.000Z'),\n 'end' => new DateTime('2019-03-08T09:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 11,\n 'parentId' => 8,\n 'title' => 'Develop preliminary budget',\n 'start' => new DateTime('2019-03-08T10:00:00.000Z'),\n 'end' => new DateTime('2019-03-12T09:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 12,\n 'parentId' => 8,\n 'title' => 'Review software specifications/budget with team',\n 'start' => new DateTime('2019-03-12T10:00:00.000Z'),\n 'end' => new DateTime('2019-03-12T14:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 13,\n 'parentId' => 8,\n 'title' => 'Incorporate feedback on software specifications',\n 'start' => new DateTime('2019-03-13T05:00:00.000Z'),\n 'end' => new DateTime('2019-03-13T14:00:00.000Z'),\n 'progress' => 70\n ], [\n 'id' => 14,\n 'parentId' => 8,\n 'title' => 'Develop delivery timeline',\n 'start' => new DateTime('2019-03-14T05:00:00.000Z'),\n 'end' => new DateTime('2019-03-14T14:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 15,\n 'parentId' => 8,\n 'title' => 'Obtain approvals to proceed (concept, timeline, budget)',\n 'start' => new DateTime('2019-03-15T05:00:00.000Z'),\n 'end' => new DateTime('2019-03-15T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 16,\n 'parentId' => 8,\n 'title' => 'Secure required resources',\n 'start' => new DateTime('2019-03-15T10:00:00.000Z'),\n 'end' => new DateTime('2019-03-18T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 17,\n 'parentId' => 8,\n 'title' => 'Analysis complete',\n 'start' => new DateTime('2019-03-18T09:00:00.000Z'),\n 'end' => new DateTime('2019-03-18T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 18,\n 'parentId' => 1,\n 'title' => 'Design',\n 'start' => new DateTime('2019-03-18T10:00:00.000Z'),\n 'end' => new DateTime('2019-04-05T14:00:00.000Z'),\n 'progress' => 80\n ], [\n 'id' => 19,\n 'parentId' => 18,\n 'title' => 'Review preliminary software specifications',\n 'start' => new DateTime('2019-03-18T10:00:00.000Z'),\n 'end' => new DateTime('2019-03-20T09:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 20,\n 'parentId' => 18,\n 'title' => 'Develop functional specifications',\n 'start' => new DateTime('2019-03-20T10:00:00.000Z'),\n 'end' => new DateTime('2019-03-27T09:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 21,\n 'parentId' => 18,\n 'title' => 'Develop prototype based on functional specifications',\n 'start' => new DateTime('2019-03-27T10:00:00.000Z'),\n 'end' => new DateTime('2019-04-02T09:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 22,\n 'parentId' => 18,\n 'title' => 'Review functional specifications',\n 'start' => new DateTime('2019-04-02T10:00:00.000Z'),\n 'end' => new DateTime('2019-04-04T09:00:00.000Z'),\n 'progress' => 30\n ], [\n 'id' => 23,\n 'parentId' => 18,\n 'title' => 'Incorporate feedback into functional specifications',\n 'start' => new DateTime('2019-04-04T10:00:00.000Z'),\n 'end' => new DateTime('2019-04-05T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 24,\n 'parentId' => 18,\n 'title' => 'Obtain approval to proceed',\n 'start' => new DateTime('2019-04-05T10:00:00.000Z'),\n 'end' => new DateTime('2019-04-05T14:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 25,\n 'parentId' => 18,\n 'title' => 'Design complete',\n 'start' => new DateTime('2019-04-05T14:00:00.000Z'),\n 'end' => new DateTime('2019-04-05T14:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 26,\n 'parentId' => 1,\n 'title' => 'Development',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-05-07T12:00:00.000Z'),\n 'progress' => 42\n ], [\n 'id' => 27,\n 'parentId' => 26,\n 'title' => 'Review functional specifications',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-04-08T14:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 28,\n 'parentId' => 26,\n 'title' => 'Identify modular/tiered design parameters',\n 'start' => new DateTime('2019-04-09T05:00:00.000Z'),\n 'end' => new DateTime('2019-04-09T14:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 29,\n 'parentId' => 26,\n 'title' => 'Assign development staff',\n 'start' => new DateTime('2019-04-10T05:00:00.000Z'),\n 'end' => new DateTime('2019-04-10T14:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 30,\n 'parentId' => 26,\n 'title' => 'Develop code',\n 'start' => new DateTime('2019-04-11T05:00:00.000Z'),\n 'end' => new DateTime('2019-05-01T14:00:00.000Z'),\n 'progress' => 49\n ], [\n 'id' => 31,\n 'parentId' => 26,\n 'title' => 'Developer testing (primary debugging)',\n 'start' => new DateTime('2019-04-16T12:00:00.000Z'),\n 'end' => new DateTime('2019-05-07T12:00:00.000Z'),\n 'progress' => 24\n ], [\n 'id' => 32,\n 'parentId' => 26,\n 'title' => 'Development complete',\n 'start' => new DateTime('2019-05-07T12:00:00.000Z'),\n 'end' => new DateTime('2019-05-07T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 33,\n 'parentId' => 1,\n 'title' => 'Testing',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-06-13T12:00:00.000Z'),\n 'progress' => 23\n ], [\n 'id' => 34,\n 'parentId' => 33,\n 'title' => 'Develop unit test plans using product specifications',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-04-11T14:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 35,\n 'parentId' => 33,\n 'title' => 'Develop integration test plans using product specifications',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-04-11T14:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 36,\n 'parentId' => 33,\n 'title' => 'Unit Testing',\n 'start' => new DateTime('2019-05-07T12:00:00.000Z'),\n 'end' => new DateTime('2019-05-28T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 37,\n 'parentId' => 36,\n 'title' => 'Review modular code',\n 'start' => new DateTime('2019-05-07T12:00:00.000Z'),\n 'end' => new DateTime('2019-05-14T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 38,\n 'parentId' => 36,\n 'title' => 'Test component modules to product specifications',\n 'start' => new DateTime('2019-05-14T12:00:00.000Z'),\n 'end' => new DateTime('2019-05-16T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 39,\n 'parentId' => 36,\n 'title' => 'Identify anomalies to product specifications',\n 'start' => new DateTime('2019-05-16T12:00:00.000Z'),\n 'end' => new DateTime('2019-05-21T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 40,\n 'parentId' => 36,\n 'title' => 'Modify code',\n 'start' => new DateTime('2019-05-21T12:00:00.000Z'),\n 'end' => new DateTime('2019-05-24T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 41,\n 'parentId' => 36,\n 'title' => 'Re-test modified code',\n 'start' => new DateTime('2019-05-24T12:00:00.000Z'),\n 'end' => new DateTime('2019-05-28T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 42,\n 'parentId' => 36,\n 'title' => 'Unit testing complete',\n 'start' => new DateTime('2019-05-28T12:00:00.000Z'),\n 'end' => new DateTime('2019-05-28T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 43,\n 'parentId' => 33,\n 'title' => 'Integration Testing',\n 'start' => new DateTime('2019-05-28T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-13T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 44,\n 'parentId' => 43,\n 'title' => 'Test module integration',\n 'start' => new DateTime('2019-05-28T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-04T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 45,\n 'parentId' => 43,\n 'title' => 'Identify anomalies to specifications',\n 'start' => new DateTime('2019-06-04T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-06T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 46,\n 'parentId' => 43,\n 'title' => 'Modify code',\n 'start' => new DateTime('2019-06-06T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-11T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 47,\n 'parentId' => 43,\n 'title' => 'Re-test modified code',\n 'start' => new DateTime('2019-06-11T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-13T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 48,\n 'parentId' => 43,\n 'title' => 'Integration testing complete',\n 'start' => new DateTime('2019-06-13T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-13T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 49,\n 'parentId' => 1,\n 'title' => 'Training',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-06-10T12:00:00.000Z'),\n 'progress' => 25\n ], [\n 'id' => 50,\n 'parentId' => 49,\n 'title' => 'Develop training specifications for end users',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-04-10T14:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 51,\n 'parentId' => 49,\n 'title' => 'Develop training specifications for helpdesk support staff',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-04-10T14:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 52,\n 'parentId' => 49,\n 'title' => 'Identify training delivery methodology (computer based training, classroom, etc.)',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-04-09T14:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 53,\n 'parentId' => 49,\n 'title' => 'Develop training materials',\n 'start' => new DateTime('2019-05-07T12:00:00.000Z'),\n 'end' => new DateTime('2019-05-28T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 54,\n 'parentId' => 49,\n 'title' => 'Conduct training usability study',\n 'start' => new DateTime('2019-05-28T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-03T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 55,\n 'parentId' => 49,\n 'title' => 'Finalize training materials',\n 'start' => new DateTime('2019-06-03T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-06T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 56,\n 'parentId' => 49,\n 'title' => 'Develop training delivery mechanism',\n 'start' => new DateTime('2019-06-06T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-10T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 57,\n 'parentId' => 49,\n 'title' => 'Training materials complete',\n 'start' => new DateTime('2019-06-10T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-10T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 58,\n 'parentId' => 1,\n 'title' => 'Documentation',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-05-20T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 59,\n 'parentId' => 58,\n 'title' => 'Develop Help specification',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-04-08T14:00:00.000Z'),\n 'progress' => 80\n ], [\n 'id' => 60,\n 'parentId' => 58,\n 'title' => 'Develop Help system',\n 'start' => new DateTime('2019-04-22T10:00:00.000Z'),\n 'end' => new DateTime('2019-05-13T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 61,\n 'parentId' => 58,\n 'title' => 'Review Help documentation',\n 'start' => new DateTime('2019-05-13T10:00:00.000Z'),\n 'end' => new DateTime('2019-05-16T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 62,\n 'parentId' => 58,\n 'title' => 'Incorporate Help documentation feedback',\n 'start' => new DateTime('2019-05-16T10:00:00.000Z'),\n 'end' => new DateTime('2019-05-20T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 63,\n 'parentId' => 58,\n 'title' => 'Develop user manuals specifications',\n 'start' => new DateTime('2019-04-08T05:00:00.000Z'),\n 'end' => new DateTime('2019-04-09T14:00:00.000Z'),\n 'progress' => 65\n ], [\n 'id' => 64,\n 'parentId' => 58,\n 'title' => 'Develop user manuals',\n 'start' => new DateTime('2019-04-22T10:00:00.000Z'),\n 'end' => new DateTime('2019-05-13T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 65,\n 'parentId' => 58,\n 'title' => 'Review all user documentation',\n 'start' => new DateTime('2019-05-13T10:00:00.000Z'),\n 'end' => new DateTime('2019-05-15T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 66,\n 'parentId' => 58,\n 'title' => 'Incorporate user documentation feedback',\n 'start' => new DateTime('2019-05-15T10:00:00.000Z'),\n 'end' => new DateTime('2019-05-17T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 67,\n 'parentId' => 58,\n 'title' => 'Documentation complete',\n 'start' => new DateTime('2019-05-20T09:00:00.000Z'),\n 'end' => new DateTime('2019-05-20T09:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 68,\n 'parentId' => 1,\n 'title' => 'Pilot',\n 'start' => new DateTime('2019-03-18T10:00:00.000Z'),\n 'end' => new DateTime('2019-06-24T12:00:00.000Z'),\n 'progress' => 22\n ], [\n 'id' => 69,\n 'parentId' => 68,\n 'title' => 'Identify test group',\n 'start' => new DateTime('2019-03-18T10:00:00.000Z'),\n 'end' => new DateTime('2019-03-19T09:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 70,\n 'parentId' => 68,\n 'title' => 'Develop software delivery mechanism',\n 'start' => new DateTime('2019-03-19T10:00:00.000Z'),\n 'end' => new DateTime('2019-03-20T09:00:00.000Z'),\n 'progress' => 100\n ], [\n 'id' => 71,\n 'parentId' => 68,\n 'title' => 'Install/deploy software',\n 'start' => new DateTime('2019-06-13T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-14T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 72,\n 'parentId' => 68,\n 'title' => 'Obtain user feedback',\n 'start' => new DateTime('2019-06-14T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-21T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 73,\n 'parentId' => 68,\n 'title' => 'Evaluate testing information',\n 'start' => new DateTime('2019-06-21T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-24T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 74,\n 'parentId' => 68,\n 'title' => 'Pilot complete',\n 'start' => new DateTime('2019-06-24T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-24T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 75,\n 'parentId' => 1,\n 'title' => 'Deployment',\n 'start' => new DateTime('2019-06-24T12:00:00.000Z'),\n 'end' => new DateTime('2019-07-01T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 76,\n 'parentId' => 75,\n 'title' => 'Determine final deployment strategy',\n 'start' => new DateTime('2019-06-24T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-25T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 77,\n 'parentId' => 75,\n 'title' => 'Develop deployment methodology',\n 'start' => new DateTime('2019-06-25T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-26T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 78,\n 'parentId' => 75,\n 'title' => 'Secure deployment resources',\n 'start' => new DateTime('2019-06-26T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-27T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 79,\n 'parentId' => 75,\n 'title' => 'Train support staff',\n 'start' => new DateTime('2019-06-27T12:00:00.000Z'),\n 'end' => new DateTime('2019-06-28T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 80,\n 'parentId' => 75,\n 'title' => 'Deploy software',\n 'start' => new DateTime('2019-06-28T12:00:00.000Z'),\n 'end' => new DateTime('2019-07-01T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 81,\n 'parentId' => 75,\n 'title' => 'Deployment complete',\n 'start' => new DateTime('2019-07-01T12:00:00.000Z'),\n 'end' => new DateTime('2019-07-01T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 82,\n 'parentId' => 1,\n 'title' => 'Post Implementation Review',\n 'start' => new DateTime('2019-07-01T12:00:00.000Z'),\n 'end' => new DateTime('2019-07-04T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 83,\n 'parentId' => 82,\n 'title' => 'Document lessons learned',\n 'start' => new DateTime('2019-07-01T12:00:00.000Z'),\n 'end' => new DateTime('2019-07-02T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 84,\n 'parentId' => 82,\n 'title' => 'Distribute to team members',\n 'start' => new DateTime('2019-07-02T12:00:00.000Z'),\n 'end' => new DateTime('2019-07-03T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 85,\n 'parentId' => 82,\n 'title' => 'Create software maintenance team',\n 'start' => new DateTime('2019-07-03T12:00:00.000Z'),\n 'end' => new DateTime('2019-07-04T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 86,\n 'parentId' => 82,\n 'title' => 'Post implementation review complete',\n 'start' => new DateTime('2019-07-04T12:00:00.000Z'),\n 'end' => new DateTime('2019-07-04T12:00:00.000Z'),\n 'progress' => 0\n ], [\n 'id' => 87,\n 'parentId' => 1,\n 'title' => 'Software development template complete',\n 'start' => new DateTime('2019-07-04T12:00:00.000Z'),\n 'end' => new DateTime('2019-07-04T12:00:00.000Z'),\n 'progress' => 0\n ]);\n\n for ($i=0;$i<sizeof($tasks);$i++) {\n $task = new Task();\n $task->id = $tasks[$i]['id'];\n $task->parentId = $tasks[$i]['parentId'];\n $task->title = $tasks[$i]['title'];\n $task->start = $tasks[$i]['start'];\n $task->end = $tasks[$i]['end'];\n $task->progress = $tasks[$i]['progress'];\n $task->save();\n }\n\n\n dd($task->all()->toArray());\n }", "title": "" }, { "docid": "b7146590110980606ab73932716e83fc", "score": "0.47339007", "text": "public function action_dashboardCompanyWiseTripChart()\n {\n $start_date = Commonfunction::ensureDatabaseFormat( $this->request->post( \"startdate\" ), 1 );\n $end_date = Commonfunction::ensureDatabaseFormat( $this->request->post( \"enddate\" ), 2 );\n $company_id = ( COMPANY_CID > 0 ) ? COMPANY_CID : \"\";\n $dashboard = Model::factory( 'dashboard' );\n $result = $dashboard->getCompanyWiseTrip( $company_id, $start_date, $end_date );\n $company_name = $trip_completed = $trip_inprogress = $trip_cancelled = \"\";\n if ( count( $result ) > 0 ) {\n $company_name_array = $trip_completed_array = $trip_inprogress_array = $trip_cancelled_array = array();\n foreach ( $result as $trip ) {\n $company_name_array[] = $trip[\"company_name\"];\n $trip_completed_array[] = $trip[\"trip_completed\"];\n $trip_inprogress_array[] = $trip[\"trip_inprogress\"];\n $trip_cancelled_array[] = $trip[\"trip_cancelled\"];\n }\n $company_name = explode( \",\", addslashes( implode( \",\", array_map( 'ucfirst', $company_name_array ) ) ) );\n $company_name = \"'\" . implode( \"','\", $company_name ) . \"'\";\n $trip_completed = implode( \",\", $trip_completed_array );\n $trip_inprogress = implode( \",\", $trip_inprogress_array );\n $trip_cancelled = implode( \",\", $trip_cancelled_array );\n }\n $view = View::factory( 'admin/dashboard/company_wise_trip_chart' )->bind( \"company_name\", $company_name )->bind( \"trip_completed\", $trip_completed )->bind( \"trip_inprogress\", $trip_inprogress )->bind( \"trip_cancelled\", $trip_cancelled );\n echo $view;\n exit;\n }", "title": "" }, { "docid": "ecb5acd401d04a6a19b05b786045424e", "score": "0.47226533", "text": "function calcularInterrupcionToString(\n $tipo = 'D',\n $procesa = array(),\n $cliente_id = 0,\n $coeficientes = array(),\n $hora_cierre = null,\n $hora_apertura = null,\n $emp_id = 0,\n $tarifa_id = 0,\n $cant_horas = 0,\n $cant_minutos = 0,\n $minuto_cierre = 0,\n $minuto_apertura = 0\n)\n{\n $hora = intval($hora_apertura);\n\n $horas = array();\n $dias = array();\n\n for($i=intval($hora_apertura);$i<=(intval($hora_apertura)+$cant_minutos/60);$i++){\n if($hora == 25){\n $hora = 1;\n $horas[$hora] = 1;\n\n }\n else{\n if($hora_apertura == $hora && $minuto_apertura == 0){\n $horas[$hora] = $hora_apertura;\n }\n else{\n $horas[$hora] = $hora;\n }\n }\n\n $dias[$hora]++;\n $hora++;\n }\n\n\n if($hora_cierre == 0){\n $hora_cierre = 24;\n }\n\n if($hora_apertura == 0){\n $hora_apertura = 24;\n }\n \n unset($horas[$hora_cierre]);\n unset($horas[$hora_apertura]);\n\n //Bueno tengo las horas ahora tengo que ver los extremos\n $segundos_en_minutos_apertura = $segundo_apertura/60;\n $segundos_en_minutos_cierre = $segundo_cierre/60;\n \n if($hora_cierre != $hora_apertura){\t\t\t\n\t\t$inicio = (60 - ($minuto_apertura + $segundos_en_minutos_apertura));\n $fin = $minuto_cierre + $segundos_en_minutos_cierre;\n }\n else{\n\t\t$inicio = 'No';\n $fin = ($minuto_cierre + $segundos_en_minutos_cierre) - ($minuto_apertura + $segundos_en_minutos_apertura);\n }\n\n $interrupcion = array();\n $interrupcionM = array();\n\n if($coeficientes[$emp_id][$tarifa_id][$hora_cierre]['valor'] != null){\n if($inicio != 'No')\n $interrupcion[$hora_apertura] .= \"(\".round($coeficientes[$emp_id][$tarifa_id][$hora_apertura]['valor'],REDONDEOINT).\")*(\".$inicio.\"/60)\";\n\n $interrupcion[$hora_cierre] .= \"(\".round($coeficientes[$emp_id][$tarifa_id][$hora_cierre]['valor'],REDONDEOINT).\")*(\".$fin.\"/60)\";\n }\n else{\n if($inicio != 'No')\n $interrupcion[$hora_apertura] = \"S/C(\".round($coeficientes[$emp_id][$tarifa_id][$hora_apertura]['valor'],REDONDEOINT).\")*(\".$inicio.\"/60)\";\n\n $interrupcion[$hora_cierre] = \"S/C(\".round($coeficientes[$emp_id][$tarifa_id][$hora_cierre]['valor'],REDONDEOINT).\")*(\".$fin.\"/60)\";\n }\n \n// if($dias[$hora_cierre] > 0)\n// $interrupcion[$hora_cierre] .= \"+(\".($dias[$hora_cierre]-1).\")*\".$coeficientes[$emp_id][$tarifa_id][$hora_cierre]['valor'];\n// else\n// $interrupcion[$hora_cierre] .= \"+(\".($dias[$hora_cierre]).\")*\".$coeficientes[$emp_id][$tarifa_id][$hora_cierre]['valor'];\n//\n// if($dias[$hora_apertura] > 0)\n// $interrupcion[$hora_apertura] .= \"+(\".($dias[$hora_apertura]-1).\")*\".$coeficientes[$emp_id][$tarifa_id][$hora_apertura]['valor'];\n// else\n// $interrupcion[$hora_apertura] .= \"+(\".($dias[$hora_apertura]).\")*\".$coeficientes[$emp_id][$tarifa_id][$hora_apertura]['valor'];\n $interrupcionA[0] = $interrupcion[$hora_apertura];\n //Calculo las del medio\n foreach($horas as $h){\n //Tomo el valor de la multa de las horas, valor coeficientes s/empresa, tarifa, hora\n if($coeficientes[$emp_id][$tarifa_id][$h]['valor'] == null)\n $interrupcionA[] = 'S/C('.round($coeficientes[$emp_id][$tarifa_id][$h]['valor']*$dias[$h],REDONDEOINT).')';\n else\n $interrupcionA[] = '('.round($coeficientes[$emp_id][$tarifa_id][$h]['valor']*$dias[$h],REDONDEOINT).')';\n }\n array_push($interrupcionA,$interrupcion[$hora_cierre]);\n\n return implode(\"+\",$interrupcionA);\n \n}", "title": "" }, { "docid": "585beebb7755d95cd7c7153d8ed7acbf", "score": "0.47210267", "text": "public function chartAction()\n {\n\n\n $date = new \\DateTime();\n $mois = $date->format('m');\n\n $annee = $date->format('y');\n $d=\"$annee-$mois-\";\n\n\n\n\n\n $data=array();\n\n\n\n\n\n\n $data[]=0;\n $z=0;\n $t=0;\n $total=0;\n\n\n $nb=$this->getDoctrine()->getManager()\n ->createQuery(\"SELECT A FROM VenteBundle:CommandeVente A WHERE A.date LIKE :d\n\n \")\n ->setParameter('d', \"20\".$d.\"%\")\n ->getResult();\n if($nb) {\n $nb = $nb[count($nb) - 1]->getDate()->format('d');\n\n\n for($i=1;$i<31;$i++){\n if($nb==\"0$i\"){\n $nb=$i;\n }\n }\n\n for($i=0;$i<$nb;$i++){\n $tot=0;\n $t=$t+1;\n if($t<10){\n $t='0'.$t;\n }\n\n\n $cmd = $this->getDoctrine()->getManager()\n ->createQuery(\"SELECT A FROM VenteBundle:CommandeVente A WHERE A.date LIKE :d\n\n \")\n ->setParameter('d', \"20\".$d.$t.\"%\")\n ->getResult();\n\n if($cmd) {\n for ($y = 0; $y < count($cmd); $y++) {\n $tot=$tot+$cmd[$y]->getTotal();\n\n }\n\n }\n\n $data[]=$tot;\n $total=$total+$tot;\n\n }}\n\n\n $series = array(\n array(\"name\" => \"Chiffre d'affaire\", \"data\" => $data)\n );\n\n $ob = new Highchart();\n $ob->chart->renderTo('chiffre'); // The #id of the div where to render the chart\n $ob->title->text(\"Chiffre D'affaire ($mois-20$annee) \");\n $ob->xAxis->title(array('text' => \"jour\"));\n $ob->yAxis->title(array('text' => \"Dh\"));\n $ob->series($series);\n\n return $this->render('BackBundle::suivi/chart.html.twig', array(\n 'chart' => $ob,'active'=>'suivi','date'=>new \\DateTime(),'total'=>$total\n ));\n\n\n }", "title": "" }, { "docid": "7dbb2f437738b158d0a25eeb4f256065", "score": "0.47185206", "text": "public function CreatePieChart($width, $height, $data, $title = '')\n {\n try {\n if(!is_array($data))\n {\n \t$errorData = \"Data must be an array\";\n throw new CustomException();\n }\n foreach($data as $dt)\n {\n if(is_array($dt))\n {\n $errorData = \"Multiple dataset isn't allowed with pie charts\";\n throw new CustomException();\n }\n }\n\n\n $graph = new PHPGraphLibPie($width, $height);\n\t\t\t$graph->addData($data);\n $graph->setTitle($title);\n $graph->createGraph();\n }\n catch(CustomException $e)\n {\n $e->ShowError('Error in generate Chart', $errorData);\n }\n }", "title": "" }, { "docid": "ea8cb03e8a0dea6768bcd4f367c8d8e9", "score": "0.47184828", "text": "public function handler(Request $request): Chartisan\n {\n $user = Auth::user();\n $month = Carbon::now()->month;\n $year = Carbon::now()->year;\n $day = Carbon::now()->day-1;\n \n\n $month = str_pad(strval($month), 2, '0', STR_PAD_LEFT); \n $day = str_pad(strval($day), 2, '0', STR_PAD_LEFT); \n\n\n $t[] = [];\n $totale = [];\n \n $consommation = DB::table('consommations')\n ->select(\"date\", \"consommation\")\n ->where('user_id',$user->id)\n ->where('date','like',$year.'-'.$month.'-'.$day)\n ->get(); \n for($i=0;$i<5;$i++ ){\n $n = sizeof($consommation);\n $somme = 0;\n for($i=0;$i<$n;$i++){\n $somme = $somme + $consommation[$i]->consommation ;\n }\n\n $totale =Arr::add($totale,$month.'-'.$year,$somme );\n $month = $month - 1 ;\n if($month == 0){\n $year = $year - 1 ;\n $month = 12 ;\n }\n \n $consommation = DB::table('consommations')\n ->select(\"date\", \"consommation\")\n ->where('user_id',$user->id)\n ->where('date','like',$year.'-'.$month.'%')\n ->get(); \n \n } \n\n ksort($totale);\n [$keys, $values] = Arr::divide($totale);\n \n return Chartisan::build()\n ->labels($keys)\n ->dataset('Consommation',$values);\n }", "title": "" }, { "docid": "38622a45d31ebafb49d27e8948a14128", "score": "0.47178796", "text": "public function getAuditRoundWiseDataChartV6($params)\n {\n $db = $this->sm->get('SpiFormVer6Table');\n $result = $db->getAuditRoundWiseDataV6($params);\n $MyData = new Data();\n /* Create and populate the pData object */\n $filename = '';\n if (count($result) > 0) {\n foreach ($result as $auditNo => $adata) {\n\n $MyData->addPoints(array(round($adata['PERSONAL_SCORE'], 2), round($adata['PHYSICAL_SCORE'], 2), round($adata['SAFETY_SCORE'], 2), round($adata['PRETEST_SCORE'], 2), round($adata['TEST_SCORE'], 2), round($adata['POST_SCORE'], 2), round($adata['EQA_SCORE'], 2)), \"Audit Performance\");\n $MyData->setSerieDescription(\"Audit Performance\" . $auditNo, $auditNo);\n $rgbColor = array();\n //Create a loop.\n foreach (array('r', 'g', 'b') as $color) {\n //Generate a random number between 0 and 255.\n $rgbColor[$color] = mt_rand(0, 255);\n }\n $MyData->setPalette(\"Audit Performance\" . $auditNo, array(\"R\" => $rgbColor['r'], \"G\" => $rgbColor['g'], \"B\" => $rgbColor['b']));\n }\n }\n /* Define the absissa serie */\n $MyData->addPoints(array(\"Personnel Training & Certification\", \"Physical\", \"Safety\", \"Pre-Testing\", \"Testing\", \"Post Testing Phase\", \"External Quality Audit\"), \"Label\");\n $MyData->setAbscissa(\"Label\");\n\n /* Create the pChart object */\n $myPicture = new Image(600, 690, $MyData);\n\n /* Add a border to the picture */\n $myPicture->drawRectangle(0, 0, 599, 678, array(\"R\" => 0, \"G\" => 0, \"B\" => 0));\n\n $path = FONT_PATH . DIRECTORY_SEPARATOR;\n /* Write the picture title */\n\n /* Set the default font properties */\n $myPicture->setFontProperties(array(\"FontName\" => $path . \"/Forgotte.ttf\", \"FontSize\" => 15, \"R\" => 80, \"G\" => 80, \"B\" => 80));\n\n /* Enable shadow computing */\n $myPicture->setShadow(true, array(\"X\" => 1, \"Y\" => 1, \"R\" => 0, \"G\" => 0, \"B\" => 0, \"Alpha\" => 10));\n\n /* Create the pRadar object */\n $SplitChart = new Radar();\n /* Draw a radar chart */\n $myPicture->setGraphArea(15, 15, 590, 590);\n $Options = array(\"Layout\" => RADAR_LAYOUT_STAR, \"BackgroundGradient\" => array(\"StartR\" => 510, \"StartG\" => 510, \"StartB\" => 510, \"StartAlpha\" => 10, \"EndR\" => 414, \"EndG\" => 454, \"EndB\" => 250, \"EndAlpha\" => 10), \"FontName\" => $path . \"/pf_arma_five.ttf\", \"FontSize\" => 15);\n $SplitChart->drawRadar($myPicture, $MyData, $Options);\n\n /* Write the chart legend */\n $myPicture->setFontProperties(array(\"FontName\" => $path . \"/pf_arma_five.ttf\", \"FontSize\" => 7));\n $myPicture->drawLegend(330, 620, array(\"Style\" => LEGEND_BOX, \"Mode\" => LEGEND_VERTICAL));\n\n /* Render the picture (choose the best way) */\n $fileName = 'radar.png';\n $result = $myPicture->autoOutput(TEMP_UPLOAD_PATH . DIRECTORY_SEPARATOR . \"radar.png\");\n return $fileName;\n }", "title": "" }, { "docid": "6908df5444b9221e9d477490298002ba", "score": "0.47175136", "text": "public function index()\n {\n //\n $user = User::find(auth()->user()->id);\n $appointments = $user->appointments()->get();\n // dd($appointments);\n // $slots = $slot[0]->slot()->get();\n // $slotDate = $slots[0]->slot_date()->get();\n // $slotTime = $slots[0]->types()->get();\n $slotsArr = [];\n // dd($slotTime);\n foreach($appointments as $appointment){\n foreach($appointment->slot()->get() as $slots){\n foreach($slots->slot_date()->get() as $slotDate){\n // dd($slots);\n\n $doctor = Doctor::where('id',$appointment->doctor_id)->first();\n // dd($doctor->fullname);\n\n // dd($time);\n // if($doctor->slot_duration)\n $slotArr = [];\n $slotArr[] = $doctor->fullname;\n $slotArr[] = $doctor->fees;\n $slotArr[] = $doctor->address;\n $slotArr[] = $slotDate->date;\n $slotArr[] = $slots->start_time;\n $slotArr[] = $slots->types()->where('type_id',$appointment->type_id)->first()->name;\n $slotArr[] = $appointment->status;\n $slotArr[] = $doctor->id;\n $slotArr[] = $appointment->id;\n\n\n // $slotArr[] = $slot_date->slots()->where('booked','1')->count();\n $slotsArr[] = $slotArr;\n }\n\n }\n // dd($slotsArr[0][4]);\n }\n\n return view('user.dashboard.slots.index',compact(['slotsArr']));\n }", "title": "" }, { "docid": "f6ead563505343220f8368538e5db995", "score": "0.47173542", "text": "function montaGantt( $strTitulo , $subTitulo , $arrElementos , $dataLimiteInicioTimestamp , $dataLimiteFimTimestamp )\n\t{\n\t\t$graph = new GanttGraph( 0 , 0 , 'auto');\n\t\t$graph->SetShadow();\n\t\t\n\t\t#1. Add title and subtitle\n\t\t$graph->title->Set( $strTitulo );\n\t\t$graph->title->SetFont(FF_ARIAL,FS_BOLD,8);\n\t\t$graph->subtitle->Set( $subTitulo );\n\t\t\n\t\t\n\t\t$intPeriodo = $dataLimiteFimTimestamp - $dataLimiteInicioTimestamp;\n\n\t\t$intSegundo = 1;\n\t\t$intMinuto\t= 60\t* $intSegundo;\n\t\t$intHora\t= 60\t* $intMinuto;\n\t\t$intDia \t= 24\t* $intHora;\n\t\t$intMes\t\t= 30\t* $intDia;\n\t\t$intAno\t\t= 365\t* $intDia;\n\t\t\n\t\t$arrEscalas = array();\n\t\t\n\t\t#3. Adaptando os estilos conforme a escala\n\t\t\n\t\tif ( $intPeriodo < ( 3 * $intMes ) )\n\t\t{\n\t\t\t$arrEscalas[ 'dias' ] = DAYSTYLE_ONELETTER;\n\t\t\t$arrEscalas[ 'meses' ] = MONTHSTYLE_LONGNAMEYEAR4;\t\t\t\n\t\t}\n\t\telse if ( $intPeriodo < 6 * $intMes )\n\t\t{\n\t\t\t$arrEscalas[ 'dias' ] = DAYSTYLE_SHORTDATE4;\n\t\t\t$arrEscalas[ 'meses' ] = MONTHSTYLE_LONGNAMEYEAR4;\t\t\t\n\t\t\t\t\t\t\n\t\t}\n\t\telse if ( $intPeriodo < $intAno )\n\t\t{\n\t\t\t$arrEscalas[ 'semanas' ] = WEEKSTYLE_FIRSTDAY;\n\t\t\t$arrEscalas[ 'meses' ] = MONTHSTYLE_LONGNAMEYEAR4;\t\t\t\n\t\t}\n\t\telse if ( $intPeriodo < 4 * $intAno )\n\t\t{\n\t\t\t$arrEscalas[ 'meses' ] = MONTHSTYLE_SHORTNAME;\t\n\t\t}\n\t\telse if ( $intPeriodo < 6 * $intAno )\n\t\t{\n\t\t\t$arrEscalas[ 'anos' ] = 1;\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$arrEscalas[ 'anos' ] = 2;\t\n\t\t}\n\t\t\n\t\tforeach( $arrEscalas as $strScale => $strStyle )\n\t\t{\n\t\t\tswitch( $strScale )\n\t\t\t{\n\t\t\t\tcase 'dias':\n\t\t\t\t{\n\t\t\t\t\t$graph->ShowHeaders(GANTT_HDAY | GANTT_HMONTH );\n\t\t\t\t\t$graph->scale->day->setStyle( $strStyle );\n\t\t\t\t\tbreak;\t\n\t\t\t\t}\n\t\t\t\tcase 'semanas':\n\t\t\t\t{\n\t\t\t\t\t$graph->ShowHeaders(GANTT_HWEEK | GANTT_HMONTH );\n\t\t\t\t\t$graph->scale->week->setStyle( $strStyle );\n\t\t\t\t\t$graph->scale->week->SetFont(FF_FONT0);\n\t\t\t\t\tbreak;\t\n\t\t\t\t}\n\t\t\t\tcase 'meses':\n\t\t\t\t{\n\t\t\t\t\t$graph->ShowHeaders( GANTT_HMONTH );\n\t\t\t\t\t$graph->scale->month->setStyle( $strStyle );\n\t\t\t\t\tbreak;\t\n\t\t\t\t}\n\t\t\t\tcase 'anos':\n\t\t\t\t{\n\t\t\t\t\tif( $strStyle == 1 )\n\t\t\t\t\t{\n\t\t\t\t\t\t$graph->ShowHeaders( GANTT_HMONTH | GANTT_HYEAR );\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$graph->ShowHeaders( GANTT_HYEAR );\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t#6. Format the bar for the first activity\n\t\t# ($row,$title,$startdate,$enddate)\n\t\tforeach( $arrElementos as $key => $objElemento )\n\t\t{\n\t\t\t#7.\tGambi antiga que eu ainda nao vou mecher\n\t\t\t\n\t\t\t$espaco='';\n\t\t\tfor ($n = 2 ; $n <= $objElemento[ 'nivel' ] ; $n++ )\n\t\t\t{\n\t\t\t\t$espaco .='__';\n\t\t\t}\n\t\t\t\n\t\t\t$strDescricao = $espaco . $objElemento[ 'codigo' ] . '-' . $objElemento[ 'nome' ];\n\t\t\t\n\t\t\t$txtAlt =\n\t\t\t\t\t\"Nome: \"\t\t. $objElemento[ 'nome' ]\t. \"<br />\" .\n\t\t\t\t\t\"Início: \"\t\t. $objElemento[ 'dataInicio' ]\t. \"<br />\" .\n\t\t\t\t\t\"Término: \" \t. $objElemento[ 'dataFim']\t\t. \"<br />\" .\n\t\t\t\t\t\"Previsto: \" \t. formata_valor( $objElemento[ 'previsto' ]\t\t, 0 ) . \"<br/>\" .\n\t\t\t\t\t\"Executado: \"\t. formata_valor( $objElemento[ 'realizado' ]\t, 0 ) . \"<br/>\" .\n\t\t\t\t\t\"Gasto: R$ \"\t. formata_valor( $objElemento[ 'gasto' ]\t\t, 0 ) . \"<br/>\" .\n\t\t\t\t\t\"Responsavel: \"\t. $objElemento[ 'nomeResponsavel' ]. \"<br/>\" .\n\t\t\t\t\t\"Percentual: \"\t. formata_valor( $objElemento[ 'porcentagem' ]\t, 2 ) . \"%\";\n\t\n\t\t\t#8.\n\t\t\t$activity = new GanttBar(\n\t\t\t\t$key, \n\t\t\t\t$strDescricao, \n\t\t\t\t$objElemento[ 'dataInicio' ], \n\t\t\t\t$objElemento[ 'dataFim'],\n\t\t\t\tabreviatura( $objElemento[ 'nomeResponsavel' ] )\n\t\t\t);\n\t\t\t\n\t\t\t\n\t\t\t$activity->SetCSIMTarget( '#\" onmouseover=\"return escape(\\'' . $txtAlt .'\\')\"' , 'Go back 1' );\n\t\t\t\n\t\t\t#9. Yellow diagonal line pattern on a red background\n\t\t\t\n\t\t\t$activity->SetPattern( BAND_RDIAG , \"blue\" );\n\t\t\t\n\t\t\tif( $objElemento[ 'qtdFilhos' ] > 0 )\n\t\t\t{\n\t\t\t\t$activity->SetFillColor(\"gray\"); \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$activity->SetFillColor(\"red\");\n\t\t\t}\n\t\t\t\n\t\t\tif ( $objElemento[ 'porcentagem' ] > 100 )\n\t\t\t{\n\t\t\t\t$objElemento[ 'porcentagem' ] = 100;\n\t\t\t}\n\t\t\t\n\t\t\t$activity->progress->Set( $objElemento[ 'porcentagem' ] / 100 );\n\t\t\t\n\t\t\t#10. Finally add the bar to the graph\n\t\t\t$graph->Add( $activity );\n\t\t}\n\t\t\n\t\t#11. ... and display it\n\t\t$graph->StrokeCSIM( 'gantt.php' );\n\t\t?>\n\t\t\t<script language=\"JavaScript\" src=\"../includes/wz_tooltip.js\"></script> \t\t\n\t\t<?\n\t}", "title": "" }, { "docid": "2b4fc2bb89ca8217d5ae21664c7614f0", "score": "0.47170722", "text": "public function futureReservations()\n {\n return DB::select(\"SELECT\n R.`ID_rezervacije` as 'id',\n R.`Ime_prezime_kupca` as 'ime',\n R.`Email` as 'meil',\n R.`Broj_telefona` as 'telefon',\n A.`Broj_registarskih_tablica` as 'tablice',\n A.`Model` as 'model',\n R.`Datum_pocetka` as 'start',\n R.`Datum_zavrsetka` as 'finish',\n R.`Cena` as 'cena',\n R.`Napomena` as 'opis'\n FROM\n `rezervacija` as R\n join `automobili` as A on R.ID_vozila=A.Broj_sasije\n where CURRENT_DATE()<=R.`Datum_pocetka`+3\n order by `Datum_pocetka` ASC\",[]); \n }", "title": "" }, { "docid": "c6d06057ee5aa948a8407164fe37bb68", "score": "0.47143322", "text": "function make_rough_schedule($nlanes, $ncars, $nrounds) {\n $generators = get_generators($nlanes, $ncars);\n if ($nrounds > count($generators)) {\n $nrounds = count($generators);\n }\n\n $heats = array();\n for ($round = 0; $round < $nrounds; ++$round) {\n $gen = $generators[$round];\n for ($h = 0; $h < $ncars; ++$h) {\n $heat = array();\n $heat[] = $h;\n for ($lane = 1; $lane < $nlanes; ++$lane) {\n $heat[] = ($heat[$lane - 1] + $gen[$lane - 1]) % $ncars;\n }\n $heats[] = $heat;\n }\n }\n if (false) { // For debugging:\n echo \"<rough-schedule>\\n\";\n $hi = 0;\n foreach ($heats as $h) {\n ++$hi;\n echo \"<heat heat='\".$hi.\"'>\".json_encode($h).\"</heat>\\n\";\n }\n echo \"</rough-schedule>\\n\";\n }\n\n return $heats;\n}", "title": "" }, { "docid": "f97f110d1dce7cfdc807ecdd29f3a286", "score": "0.4711535", "text": "public function daily_plan_count()\n {\n $userId = \\Auth::id();\n $tasks = Task::today()->pending()->assignedTo($userId)->count();\n $appointments = Appointment::recurring()->today()->current()->count();\n $count = $tasks + $appointments;\n return ApiResponse::success([\n 'count' => $count\n ]);\n }", "title": "" }, { "docid": "32e88ebcea524b63a580c1c96890f22a", "score": "0.4692891", "text": "public function definition()\n {\n $schedule_dates = [];\n $schedule_dates[] = Carbon::now()->format('Y-m-d');\n $schedule_dates[] = Carbon::now()->addDay()->format('Y-m-d');\n\n $departureTime = [\n '1:00 PM',\n '2:00 PM',\n '3:00 PM',\n '4:00 PM',\n '5:00 PM',\n '6:00 PM',\n ];\n $arrivalTime = [\n '2:00 PM',\n '3:00 PM',\n '4:00 PM',\n '5:00 PM',\n '6:00 PM',\n '7:00 PM',\n ];\n\n $timeRandomKey = array_rand($departureTime, 1);\n\n return [\n 'bus_id' => $this->faker->randomElement(Bus::pluck('id')->toArray()),\n 'driver_id' => $this->faker->randomElement(User::where('role_id', 2)->pluck('id')->toArray()),\n 'conductor_id' => $this->faker->randomElement(User::where('role_id', 3)->pluck('id')->toArray()),\n 'starting_point_id' => 1,\n 'destination_id' => 1,\n 'fare'=> rand(200, 999),\n 'schedule_date' => $schedule_dates[array_rand($schedule_dates, 1)],\n 'time_departure' => $departureTime[$timeRandomKey],\n 'time_arrival' => $arrivalTime[$timeRandomKey],\n ];\n }", "title": "" }, { "docid": "4316f903ff4624c5564fe9f39a60edc8", "score": "0.46913177", "text": "public function getAppointmentsAsJSON($appointments) {\n\n $json_array = array();\n\n foreach ($appointments as $appointment) {\n //Get tutor first/last name.\n $tutorname = $this->getUsersWithUsernameLike($appointment->getTutorUsername());\n $tutorname = $tutorname[0]->getFirstName().\" \".$tutorname[0]->getLastName();\n\n $noShow;\n if($appointment->getCheckIn() == \"4\")\n $noShow = \"You did not show up to this appointment\";\n else\n $noShow = \"\";\n\n //Title and Multilingual.\n $title = $appointment->getStartTime()->format(\"g:ia\").\" - \".$appointment->getEndTime()->format(\"g:ia\").\" \".$tutorname;\n \n $color = '#4169E1';\n $multilingualTitle = \"\";\n if($appointment->getMultilingual()){\n $title = \"M \".$title;\n $multilingualTitle = \"Multilingual\";\n $color = '#D4AF37';\n }\n\n if( $appointment->getDropInAppt() ){\n $title = $title . \" | Drop-in Hours\";\n $color = \"green\";\n }\n\n //Student sign in/ sign out times.\n if($appointment->getStudentSignIn() == null)\n $studentSignIn = \"no\";\n else\n $studentSignIn = $appointment->getStudentSignIn()->format(\"m/d/Y g:i a\");\n if($appointment->getStudentSignOut() == null)\n $studentSignOut = \"no\";\n else\n $studentSignOut = $appointment->getStudentSignOut()->format(\"m/d/Y g:i a\");\n\n //Completed Time.\n $completedTime = \"\";\n if($appointment->getCompletedTime() != null)\n $appointment->getCompletedTime()->format(\"m/d/Y g:i a\");\n\n //Creates the array.\n $event_array = array(\n \"title\" => $title,\n \"student\" => $appointment->getStudUsername(),\n \"studentname\" => $this->getFirstLastNameByUsername( $appointment->getStudUsername() ),\n \"tutor\" => $appointment->getTutorUsername(),\n \"tutorname\" => $tutorname,\n \"sub\" => $appointment->getRequestSub(),\n \"noshow\" => $noShow,\n \"assignment\" => $appointment->getAssignment(),\n \"comment\" => $appointment->getComment(),\n \"suggestion\" => $appointment->getSuggestion(),\n \"start\" => $appointment->getStartTime()->format(\"m/d/Y g:i a\"),\n \"end\" => $appointment->getEndTime()->format(\"m/d/Y g:i a\"),\n \"completed\" => $completedTime,\n \"allDay\" => false,\n \"appointmentID\" => $appointment->getId(),\n \"multilingual\" => $appointment->getMultilingual(),\n \"multilingualTitle\" => $multilingualTitle,\n \"studentSignIn\" => $studentSignIn,\n \"studentSignOut\" => $studentSignOut,\n \"color\" => $color,\n \"dropin\" => $appointment->getDropInAppt(),\n );\n array_push($json_array, $event_array);\n }\n\n $data = json_encode($json_array);\n return $data;\n }", "title": "" }, { "docid": "8b7ce8d2297f3a2110404d42e4ec3a2b", "score": "0.46890107", "text": "function display_required_modules_staff_overview_graph($data)\n{\n echo '<noscript>Requires JavaScript.</noscript>';\n\n /* initialise Google graphs code */\n // TODO: Can't load once separately?\n echo '<script type=\"text/javascript\" src=\"https://www.google.com/jsapi\"></script>';\n echo '\n <script type=\"text/javascript\">\n // Load the Visualization API and the piechart package.\n google.load(\\'visualization\\', \\'1.0\\', {\\'packages\\':[\\'corechart\\']});\n ';\n echo '\n // Set a callback to run when the Google Visualization API is loaded.\n google.setOnLoadCallback(drawRequiredModulesStaffOverviewGraph);\n ';\n echo '\n // Callback that creates and populates a data table,\n // instantiates the pie chart, passes in the data and\n // draws it.\n function drawRequiredModulesStaffOverviewGraph() {\n\n // Create the data table.\n var data = new google.visualization.DataTable();\n ';\n\n echo '\n data.addColumn(\\'string\\', \\'Type\\');\n data.addColumn(\\'number\\', \\'Number\\');\n ';\n\n echo '\n data.addRows([\n [\\'Required\\', ' . $data['requireds'] . '],\n [\\'Not Required\\', ' . $data['notrequireds'] . '],\n ]);\n ';\n\n echo '\n // Set chart options\n var options = {\\'title\\':\\'Required vs Non-required Activities\\',\n \\'width\\':\\'100%\\',\n \\'height\\':\\'auto\\',\n };\n ';\n\n echo '\n // Instantiate and draw our chart, passing in some options.\n var chart = new google.visualization.PieChart(document.getElementById(\\'required_modules_staff_overview_graph_div\\'));\n chart.draw(data, options);\n ';\n\n echo '\n }\n </script>\n ';\n\n echo '\n <!--Div that will hold the pie chart-->\n <div id=\"required_modules_staff_overview_graph_div\" class=\"chart\"></div>\n ';\n\n}", "title": "" }, { "docid": "84e3f04932a5b0004d30b613bdd4e237", "score": "0.46854663", "text": "public function getAuditRoundWiseD0DataChartV6($params)\n {\n $db = $this->sm->get('SpiFormVer6Table');\n $result = $db->getAuditRoundWiseD0DataV6($params);\n $MyData = new Data();\n /* Create and populate the pData object */\n $filename = '';\n if (count($result) > 0) {\n foreach ($result as $auditNo => $adata) {\n\n $MyData->addPoints(array(round($adata['DIAGNOSED_HIV_ABOVE_15'], 2), round($adata['CANDIDATE_SCREENED_FOR_PARTICIPATION'], 2), round($adata['ELIGIBLE_DURING_REVIEW_PERIOD'], 2), round($adata['ELIGIBLE_AND_DECLINED_REVIEW_PERIOD'], 2), round($adata['DOCUMENTED_AND_REFUSED'], 2), round($adata['PARTICIAPANTS_ENROLLED_IN_RTRI'], 2), round($adata['PARTICIAPANTS_INCORRECTLY_ENROLLED_IN_RTRI'], 2), round($adata['PARTICIAPANTS_CORRECTLY_ENROLLED_IN_RTRI'], 2)), \"Audit Performance\");\n $MyData->setSerieDescription(\"Audit Performance\" . $auditNo, $auditNo);\n $rgbColor = array();\n //Create a loop.\n foreach (array('r', 'g', 'b') as $color) {\n //Generate a random number between 0 and 255.\n $rgbColor[$color] = mt_rand(0, 255);\n }\n $MyData->setPalette(\"Audit Performance\" . $auditNo, array(\"R\" => $rgbColor['r'], \"G\" => $rgbColor['g'], \"B\" => $rgbColor['b']));\n }\n }\n /* Define the absissa serie */\n $MyData->addPoints(array(\"HIV above 15\", \"Screened for participation\", \"Eligible during Review\", \"Eligible and declined\", \"Documented and refused\", \"Enrolled in RTRI\", \"Incorrectly Enrolled\", \"Correctly Enrolled\"), \"Label\");\n $MyData->setAbscissa(\"Label\");\n\n /* Create the pChart object */\n $myPicture = new Image(600, 690, $MyData);\n\n /* Add a border to the picture */\n $myPicture->drawRectangle(0, 0, 599, 678, array(\"R\" => 0, \"G\" => 0, \"B\" => 0));\n\n $path = FONT_PATH . DIRECTORY_SEPARATOR;\n /* Write the picture title */\n\n /* Set the default font properties */\n $myPicture->setFontProperties(array(\"FontName\" => $path . \"/Forgotte.ttf\", \"FontSize\" => 15, \"R\" => 80, \"G\" => 80, \"B\" => 80));\n\n /* Enable shadow computing */\n $myPicture->setShadow(true, array(\"X\" => 1, \"Y\" => 1, \"R\" => 0, \"G\" => 0, \"B\" => 0, \"Alpha\" => 10));\n\n /* Create the pRadar object */\n $SplitChart = new Radar();\n /* Draw a radar chart */\n $myPicture->setGraphArea(15, 15, 590, 590);\n $Options = array(\"Layout\" => RADAR_LAYOUT_STAR, \"BackgroundGradient\" => array(\"StartR\" => 510, \"StartG\" => 510, \"StartB\" => 510, \"StartAlpha\" => 10, \"EndR\" => 414, \"EndG\" => 454, \"EndB\" => 250, \"EndAlpha\" => 10), \"FontName\" => $path . \"/pf_arma_five.ttf\", \"FontSize\" => 15);\n $SplitChart->drawRadar($myPicture, $MyData, $Options);\n\n /* Write the chart legend */\n $myPicture->setFontProperties(array(\"FontName\" => $path . \"/pf_arma_five.ttf\", \"FontSize\" => 7));\n $myPicture->drawLegend(330, 620, array(\"Style\" => LEGEND_BOX, \"Mode\" => LEGEND_VERTICAL));\n\n /* Render the picture (choose the best way) */\n $fileName = 'radar-d0-v6.png';\n $result = $myPicture->autoOutput(TEMP_UPLOAD_PATH . DIRECTORY_SEPARATOR . $fileName);\n return $fileName;\n }", "title": "" }, { "docid": "04cd2db6b5ef6c9d1cacda139ac4d22d", "score": "0.4682768", "text": "public function chart(Request $request)\n {\n $pfmonth = $request->has('pfmonth') ?\n $request->pfmonth : (!is_null($this->pfmonths) ?\n sprintf('%02d', $this->pfmonths->first()->month) : date('m'));\n $pfyear = $request->has('pfyear') ?\n $request->pfyear : (!is_null($this->pfyears) ?\n $this->pfyears->first()->year : date('Y'));\n\n // inisialisasi bawahan dari atasan terpilih\n $this->subBoss($request);\n\n // mencari data lembur untuk bawahan dari atasan yang telah dipilih\n $overtimeChartData = Absence::selectRaw(\n 'CONCAT(absences.personnel_no, \" - \", employees.name) as label, ' .\n 'SUM(TIMESTAMPDIFF(SECOND, start_date, end_date)/3600) AS value'\n )\n ->whereIn('absences.personnel_no', $this->pfsubordinates->pluck('personnel_no'))\n ->leftJoin('employees', 'absences.personnel_no', '=', 'employees.personnel_no')\n ->monthYearOf($pfmonth, $pfyear)\n ->successOnly()\n ->groupBy('absences.personnel_no')\n ->orderByRaw('value DESC')\n ->get();\n\n $chartOptions = [\n \"caption\" => \"Izin Karyawan \" . $this->pfboss->org_unit_name,\n \"subcaption\" => $this->monthNumToText($pfmonth) . ' ' . $pfyear,\n \"xaxisname\" => \"Karyawan\",\n \"yaxisname\" => \"Total izin (jam)\",\n ];\n $dataSource = [\n \"chart\" => array_merge($chartOptions, $this->chartThemes),\n \"data\" => $overtimeChartData\n ];\n\n // kembalikan JSON\n return response()->json($dataSource);\n }", "title": "" }, { "docid": "5f6c60aee2ae5180baafa550057926b8", "score": "0.46823564", "text": "public function getCalenderTask()\n {\n $user_id = Auth::id();\n $getTaskData = Calender::where('user_id', $user_id)->orderby('id', 'ASC')->get();\n\n $data = array();\n\n foreach ($getTaskData as $taskKey => $taskVal) {\n\n $data[] = array(\n 'id'=> $taskVal->id,\n 'user_id'=> $taskVal->user_id,\n 'title'=> $taskVal->title,\n 'start'=> $taskVal->start,\n 'end'=> $taskVal->end,\n 'startStr'=> $taskVal->startStr,\n 'endStr'=> $taskVal->endStr,\n 'display'=> $taskVal->display,\n 'extendedProps'=> [\n 'location' => $taskVal->location,\n 'guests' => explode(\",\", $taskVal->guests),\n 'todos' => explode(\",\", $taskVal->todos),\n 'calendar' => $taskVal->calendar,\n 'description' => $taskVal->description,\n ],\n 'url'=> $taskVal->url,\n 'allDay'=> $taskVal->allDay,\n );\n }\n\n return response()->json($data);\n }", "title": "" }, { "docid": "c40e6d3461eccd2fe1e27104c30d547a", "score": "0.4680561", "text": "public static function getDashboardData()\n {\n $data = array();\n\n foreach (self::getActives() as $category) {\n $data['categories']['month'][] = [\n 'label' => $category->name,\n 'colour' => $category->colour,\n 'total' => $category->monthRequests->count()\n ];\n $data['categories']['year'][] = [\n 'label' => $category->name,\n 'colour' => $category->colour,\n 'total' => $category->yearRequests->count()\n ];\n }\n\n return $data;\n }", "title": "" } ]
4b86cfe018c7d44454cd1de571987105
Check if email exist in db
[ { "docid": "60581aa83b6b4c98581e471afa0aa016", "score": "0.0", "text": "public static function checkEmail($email)\r\n {\r\n \r\n if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {\r\n throw new NotValidEmailException('', NotValidEmailException::CODE_EMAIL_FORMAT);\r\n }\r\n\r\n $check = \\core\\models\\Users::selectByAttributes($filter = 'email', ['email' => $email], false, false);\r\n \r\n if (!empty($check)) {\r\n throw new NotValidEmailException('', NotValidEmailException::CODE_EMAIL_EXIST);\r\n } else {\r\n return $email;\r\n }\r\n }", "title": "" } ]
[ { "docid": "17e33cab108fc59676780aa6f9eb01ef", "score": "0.838577", "text": "function email_exists($db,$email) {\n $query = \"SELECT email FROM kkUserTest WHERE email='$email'\";\n $result = $db->query($query);\n return ($result->num_rows > 0);\n}", "title": "" }, { "docid": "5d2d96c82196ce8f8dc25800c2f71e49", "score": "0.83631504", "text": "public function emailExist(){\n //this is an sql command that runs a check on the database for any email addrerss that will correspond to the email address entered in the form\n $sql = \"SELECT * FROM $this->tableName WHERE email = '$this->email' \";\n $result = $this->db->query($sql);\n // echo $result;\n //the query will return an array of data if the email exist in the database otherwise it returns an empty array\n if(!empty($result) && $result->num_rows > 0){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "b713cafa82d5dba9019c6b1c0a179d1a", "score": "0.8219146", "text": "public function emailExists()\n {\n // Query if email exist in database.\n $query = \"SELECT id, name, password\n FROM \" . $this->table_name . \" \n WHERE email = ?\n LIMIT 0,1\";\n\n $stmt = $this->conn->prepare($query);\n\n // Sanitize data.\n $this->email = htmlspecialchars(strip_tags($this->email));\n\n // bind email value\n $stmt->bindParam(1, $this->email);\n\n // execute the query\n $stmt->execute();\n\n // get number of rows\n $num = $stmt->rowCount();\n\n // If email exist, assign values.\n if ($num > 0) {\n // Fetch record details.\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // Assign values to object properties\n $this->id = $row['id'];\n $this->name = $row['name'];\n $this->password = $row['password'];\n // Return true because email exist.\n return true;\n }\n // Return false if it does not exist,\n return false;\n }", "title": "" }, { "docid": "28376ce266bc0175f914aec697bff489", "score": "0.81778777", "text": "function userEmailExists($email) {\n global $db;\n $q = \"SELECT `user_email` FROM `users` WHERE `user_email`=:email\";\n $s = $db->prepare($q);\n $s->execute(['email'=>$email]);\n if($s->rowCount() > 0){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "8dea1bbaa4526c451ac70c5f328c755e", "score": "0.8177279", "text": "function doesEmailExist($email) {\r\n global $dbaseUserData, $leagueID, $dbase;\r\n\r\n $query = \"SELECT email from $dbaseUserData where lid='$leagueID' and email=\\\"$email\\\"\";\r\n $result = $dbase->query($query);\r\n\r\n if ($result == FALSE) {\r\n ErrorNotify(\"Query Failed : $query\");\r\n return TRUE;\r\n }\r\n \r\n // If we get >0 rows, the username already exists.\r\n $numrows = mysql_num_rows($result);\r\n\r\n if ($numrows == 0) {\r\n return FALSE;\r\n }\r\n\r\n return TRUE;\r\n}", "title": "" }, { "docid": "3e21b6c47ce7524642030ed8adba8747", "score": "0.8138426", "text": "function emailExist($email) {\n $cols = array('email' => $email);\n $user = selectUser($cols);\n return ($user) ? true : false;\n}", "title": "" }, { "docid": "9050abb216e2da22238c2c4c633986bc", "score": "0.811945", "text": "public function checkEmail($email){\n //return true if exists and false otherwise\n $query = \"SELECT email FROM accounts WHERE email = ?\";\n $statement = $this -> connection -> prepare($query);\n $statement -> bind_param( 's', $email );\n $statement -> execute();\n $result = $statement -> get_result();\n if( $result -> num_rows > 0 ){\n //username exists\n return true;\n }\n else{\n //username does not exist\n return false;\n }\n $statement -> close();\n }", "title": "" }, { "docid": "992d7b57ffadd0ea2b8355a36bad983a", "score": "0.80894935", "text": "public function checkExistEmail($email){\n $sql = \"SELECT email from tbl_users WHERE email = :email\";\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->bindValue(':email', $email);\n $stmt->execute();\n if ($stmt->rowCount()> 0) {\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "661f3ddec2dde5a7b5e90b882f8cd181", "score": "0.80452263", "text": "private function isEmailExist($email){\r\n $stmt = $this->con->prepare(\"SELECT id FROM users WHERE email = ?\");\r\n $stmt->bind_param(\"s\", $email);\r\n $stmt->execute(); \r\n $stmt->store_result(); \r\n return $stmt->num_rows > 0; \r\n }", "title": "" }, { "docid": "d66a2929f04c7efe7f04c8a93ddfcbd2", "score": "0.8022055", "text": "private function emailExists($email) {\n $pre_stmt = $this->con->prepare(\"SELECT id FROM user WHERE email = ? \");\n $pre_stmt->bind_param(\"s\", $email);\n $pre_stmt->execute() or die($this->con->error);\n $result = $pre_stmt->get_result();\n if ($result->num_rows > 0) {\n return 1;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "97e629223cf270148f13aee2ac0feecc", "score": "0.80106837", "text": "private function emailExists($email){\n\t\t$pre_stmt = $this->con->prepare(\"SELECT id FROM user WHERE email = ? \");\n\t\t$pre_stmt->bind_param(\"s\",$email);\n\t\t$pre_stmt->execute() or die($this->con->error);\n\t\t$result = $pre_stmt->get_result();\n\t\tif($result->num_rows > 0){\n\t\t\treturn 1;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "e1bde999d9c4358f2b87133b02c3e84b", "score": "0.8009141", "text": "function checkEmailExists($email){\n\t\tcheckConnectivity1();\n\n\t\t$list= array();\n\t\t$query =sprintf(\"select * from user where email = '%s'\",$email);\n\t\t$result =mysqli_query($GLOBALS['connection_link'],$query);\n\t\tif($row = mysqli_fetch_assoc($result)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "83eb692b5074326344e47ec56390e52b", "score": "0.8001548", "text": "private function emailExists($email){\n\t\t$pre_stmt = $this->con->prepare(\"SELECT user_id FROM users WHERE email = ? \");\n\t\t$pre_stmt->bind_param(\"s\",$email);\n\t\t$pre_stmt->execute() or die($this->con->error);\n\t\t$result = $pre_stmt->get_result();\n\t\tif($result->num_rows > 0){\n\t\t\treturn 1;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "8998cd4ace3c03eb56d5975d676fec50", "score": "0.7969317", "text": "private function isEmailExist($email){\n\t\t\t\t$statement = $this->con->prepare(\"SELECT id FROM users WHERE email= ?\");\n\t\t\t\t$statement->bind_param(\"s\", $email);\n\t\t\t\t$statement->execute();\n\t\t\t\t$statement->store_result();\n\t\t\t\treturn $statement->num_rows > 0;\n\t\t\t}", "title": "" }, { "docid": "b6a20459e1ff9671df4cb24a9dfad923", "score": "0.79177934", "text": "function email_exist($email)\n{\n\tglobal $connection;\n\t\n\t$query = mysqli_query($connection,\"SELECT * FROM user WHERE email = '$email'\");\n\t$row = mysqli_num_rows($query);\n\treturn ($row == 1)? true : false;\n}", "title": "" }, { "docid": "552f75122350db32feba00a1197df59b", "score": "0.7911742", "text": "private function isEmailExist($user_id,$email){\r\n $model = new model();\r\n $qry = \"select * from users where user_id!='$user_id' and email='$email'\";\r\n $res = $model::$conn->query($qry);\r\n return $res->rowCount()>0;\r\n }", "title": "" }, { "docid": "38e2a12a0e40ee15c268d1fdf5be2cf0", "score": "0.790233", "text": "function email_exists($email)\n{\n\tglobal $con;\n\n\t$query = \"SELECT user_email FROM users WHERE user_email = '$email' \";\n\t$result = mysqli_query($con, $query);\n\tif (!$result) {\n\t\tdie(\"QUERY FAILED\".mysqli_error($con));\n\t}\n\n\tif (mysqli_num_rows($result) > 0) {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "b70ee00f360297f527b0f2ad59b38bde", "score": "0.7884265", "text": "function check_if_email_exists (\n $connection,\n $email\n ) {\n\n // Checking if email exists in DB\n $query_to_check_if_email_exists = mysqli_query ( $connection, \" SELECT slno FROM users WHERE user_email_id = '$email' LIMIT 1 \" );\n\n // Query ran properly\n // Email exists\n if ( \n $query_to_check_if_email_exists && \n mysqli_num_rows($query_to_check_if_email_exists) === 1\n ) {\n return true;\n }\n\n // Email does not exists\n return false;\n }", "title": "" }, { "docid": "6a80fc1129c3906c8b9c06222fa2d614", "score": "0.7884084", "text": "function email_exist($email){\n global $db;\n //checks all emails for duplicates\n $query = \"SELECT * FROM users WHERE email = :emailPlace\";\n $statement = $db->prepare($query);\n $statement->bindValue(':emailPlace', $email);\n \n $statement->execute();\n $results = $statement->fetchAll();//returns results of select statement if anything\n $statement->closeCursor();\n \n if(empty($results)){\n $exists = false;\n }else {\n $exists = true;\n }\n \n return $exists;\n }", "title": "" }, { "docid": "4fa9bb166850cd8c81d541dd506a7042", "score": "0.78800315", "text": "public function checkEmail() {\n // query\n $query = 'SELECT * FROM '\n . $this->table . \n ' WHERE email = :email';\n\n // Prepare statements\n $stmt = $this->conn->prepare($query);\n\n // clean the data\n $this->email = htmlspecialchars(strip_tags($this->email));\n\n // Bind data\n $stmt->bindParam(':email', $this->email);\n\n // Execute\n $stmt->execute();\n\n \n if($stmt->rowCount() > 0) {\n return true;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "7a6aaf8917ccf2ed689d2d447ddd2d41", "score": "0.7862679", "text": "function emailExists($email): bool{\n\t$user = DbManager::getUserByAttribute($email);\n\tif (!empty($user)){\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "1b9b282e9714575ba65bceaabc2f5649", "score": "0.7859499", "text": "function checkEmail($email) {\n $sql = \"SELECT * FROM users WHERE email = ?\";\n $query = $this->db->query($sql, array($email));\n if ($query->num_rows() == 1) {\n return TRUE;\n } else {\n return FALSE;\n }\n }", "title": "" }, { "docid": "b7e3b17a8007b6152c363dacbf40f591", "score": "0.7858923", "text": "function email_exists($email){\n\n\t$sql = \" SELECT id FROM users WHERE email = '$email'\";\n\t$result = query($sql);\n\n\tif (row_count($result)==1) {\n\t\treturn true;\n\t}else{\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "c4fbb1413dacb1f9d8f724756490a245", "score": "0.78354347", "text": "public function isUserExisted($email) {\n $link = $this->db->connect();\n $result = mysqli_query($link,\"SELECT email from myaddlasusers WHERE email = '$email'\");\n $no_of_rows = mysqli_num_rows($result);\n if ($no_of_rows > 0) {\n // user existed \n return true;\n } else {\n // user not existed\n return false;\n }\n }", "title": "" }, { "docid": "31aaba5f4b6f59000901d4df82bb36e2", "score": "0.78345233", "text": "function isUserExist($email)\n {\n $stmt = $this->con->prepare(\"SELECT email FROM users WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n $stmt->execute();\n $stmt->store_result();\n return $stmt->num_rows > 0;\n }", "title": "" }, { "docid": "f808b0be7be6a25ac71497bcc4c2ee04", "score": "0.7827032", "text": "function email_exists($email){\n\t$sql=\"SELECT id FROM users WHERE email='\".$email.\"'\";\n\t$result=query($sql);\n\tif(row_count($result)==1){\n\t\treturn true;\n\t}\n\telse{\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "4270731252bcba4334d47fb9c1c80249", "score": "0.78254867", "text": "function check_email_exists($email){\n global $db;\n $db->query(\"SELECT * FROM user\n WHERE user_email = :email\");\n $db->bind(':email', $email);\n if($result = $db->result()):\n return $result;\n else:\n return false;\n endif;\n}", "title": "" }, { "docid": "bc785f92ef4c1422e9c454d44aecdafb", "score": "0.78089166", "text": "function doesEmailExist($email) {\r\n global $con;\r\n $username = mysqli_real_escape_string($con, $email);\r\n\r\n return mysqli_fetch_assoc(mysqli_query($con, \"SELECT email FROM users WHERE email = '$email'\")) ? true : false;\r\n}", "title": "" }, { "docid": "9796883248490c0df1fb4c7fabe0e6f3", "score": "0.78004867", "text": "private function existsMail($email){\n\t\t\t$sql = \"SELECT * FROM contatos WHERE email = :email\";\n\t\t\t$sql = $this->pdo->prepare($sql);\n\t\t\t$sql->bindValue(':email', $email);\n\t\t\t$sql->execute();\n\t\t\tif($sql->rowCount() > 0){\n\t\t\t\treturn true;\n\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\n\n\t\t\t\n\t\t}", "title": "" }, { "docid": "670d7af1b594d485d7578ce39a298cd3", "score": "0.7788747", "text": "function checkEmail($email){\n\t//assume email is not in system\n\t$exists = false;\n\ttry{//try to est a connection to db\n\t\t$user_db = new SQLite3('users.db');\n\t}catch (Exception $ex){//if cannot, catch error\n\t\techo $ex->getMessage(); \n\t}\n\t//query all emails\n\t$statement = 'SELECT Email FROM users;';\n\t$run= $user_db->query($statement); \n\n\tif($run){//if no error in query \n\t\twhile($row=$run->fetchArray()){//while still rows to be parsed\n\t\t\tif(trim($row['Email']) === trim($email)){//if email found in db\n\t\t\t\t//email exists is true\n\t\t\t\t$exists = true;\n\t\t\t\t//break out of loop\n\t\t\t\tbreak; \n\t\t\t}\n\t\t}\n\t}\n\t//end connection to db\n\t$user_db->close();\n\t//return whether email exists\n\treturn $exists;\n\n}", "title": "" }, { "docid": "040b4e50ee0f79c97bdecec9368a0b81", "score": "0.77875054", "text": "function gigya_dose_user_exist_by_email($email) {\n return (bool) db_select('users')->fields('users', array('uid'))->condition('mail', $email)->range(0, 1)\n ->execute()->fetchField();\n}", "title": "" }, { "docid": "e0e00e0d3b310c4318d2ac49a3cf1c8a", "score": "0.7761482", "text": "public function emailExist($email) \r\n {\r\n\r\n $stmt = $this->getDb()->prepare('SELECT * FROM users WHERE email = :email');\r\n\r\n $binds = array(\r\n \":email\" => $email\r\n );\r\n if ($stmt->execute($binds) && $stmt->rowCount() > 0) \r\n {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "39af4d2e12da62e578bc59b70fdc2e75", "score": "0.7760304", "text": "function checkExistingEmail($clientEmail) {\n $db = get_db();\n $sql = 'SELECT email FROM users WHERE email = :email';\n $stmt = $db->prepare($sql);\n $stmt->bindValue(':email', $clientEmail, PDO::PARAM_STR);\n $stmt->execute();\n $matchEmail = $stmt->fetch(PDO::FETCH_NUM);\n $stmt->closeCursor();\n if(empty($matchEmail)){\n return 0;\n }\n else {\n return 1;\n }\n }", "title": "" }, { "docid": "88fa945605d04e1e047f6afe4b196ea1", "score": "0.7757313", "text": "function email_exists($email) {\n\t$email = sanitize($email);\n\t$query = mysql_query(\"SELECT COUNT(`user_id`) FROM `users` WHERE `email` = '$email'\");\n\treturn (mysql_result($query, 0) == 1) ? true : false;\n}", "title": "" }, { "docid": "e18e5583d4eefa2385e1681e0d56b635", "score": "0.775526", "text": "private function __emailExists($email) {\n\t\n\t\t// Check the PDO\n\t\tif(is_null($this->db)) {\n\t\t\tif($this->config[\"DEBUG\"]) {\n\t\t\t\tprint(\"Database not assigned.<br />\");\n\t\t\t}\n\t\t\t$this->error = 1;\n\t\t\t$this->errorMessage = \"Database Not Assigned\";\n\t\t\treturn false;\n\t\t}\n\n\t\t$regQuery = $this->db->prepare(\"SELECT * FROM USER WHERE email = :email\");\n\t\t$regQuery->bindParam(':email', $email);\n\t\t$regQuery->execute();\n\n\t\t$regRows = $regQuery->rowCount();\n\t\treturn $regRows > 0;\n\t}", "title": "" }, { "docid": "dac4bf9cb03f38bb4403fefe0c5fba9f", "score": "0.7754996", "text": "public function check_email_exist($email){\n \n\n $sql = \"SELECT * FROM gebruiker WHERE Email='$email'\";\n $res = mysqli_query($this->connection, $sql);\n\n if(mysqli_num_rows($res) > 0){\n \n $result = true;\n\n \n return $result;\n\n } else{\n \n $result = false;\n\n return $result;\n\n }\n\n }", "title": "" }, { "docid": "c9a339a2f53dfb7fff97500a64b18323", "score": "0.77439135", "text": "public function emailExiste($email)\n\t{\n\t\t// $stmt->bind_param(\"s\", $email);\n\t\t// $stmt->execute();\n\t\t// $stmt->store_result();\n\t\t// $num = $stmt->num_rows;\n // $stmt->close();\n \n $stm = $this->pdo->prepare(\"SELECT id FROM usuarios WHERE correo = ? LIMIT 1\");\n $stm->execute(array($email));\n $Emailexiste = $stm->fetch(PDO::FETCH_OBJ);\n $num = $stm->rowCount();\n\t\t\n\t\tif ($num > 0){\n\t\t\t\n\t\treturn true;\n\t\t\t} else {\n\t\t\treturn false;\t\n\t\t}\n }", "title": "" }, { "docid": "67368a8afb3e8e42af19f0f4cb2d984f", "score": "0.7740035", "text": "private function checkEmail() {\n $Where = ( isset($this->Post) ? \"id != {$this->Post} AND\" : '');\n $readUser = new Read;\n $readUser->ExeRead(self::Entity, \"WHERE {$Where} email = :email\", \"email={$this->Data['email']}\");\n if ($readUser->getRowCount()):\n $this->Error = [\"O e-email informado já está cadastrado no sistema! Informe outro e-mail!\", RM_ERROR];\n $this->Result = false;\n else:\n $this->Result = true;\n endif;\n }", "title": "" }, { "docid": "630d13b50776dab91ee2b633d2d9c0bf", "score": "0.77372086", "text": "public function isUserExisted($email) {\r\n $result = mysqli_query($this->db->con,\"SELECT user_email from users WHERE user_email = '$email'\");\r\n $no_of_rows = mysqli_num_rows($result);\r\n if ($no_of_rows > 0) {\r\n // user exist\r\n return true;\r\n } else {\r\n // user not exist\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "aabe9bb880c179e3bbfcf355c8cb2d19", "score": "0.7730479", "text": "private function isUserExists($email) {\n $db_con = Spire::getConnection();\n\n $stmt = $db_con->prepare(\"SELECT id from users WHERE email = ?\");\n $stmt->execute(array($email));\n\n $rows = $stmt->fetchAll();\n $num_rows = count($rows);\n\n return $num_rows > 0;\n\n $stmt->close();\n }", "title": "" }, { "docid": "55fce15d67f0238405eadafe67232486", "score": "0.77292967", "text": "public function check_email_exist($email)\n \t{\n \t\t$this->db->select('id');\n \t\t$query = $this->db->get_where('users',array(\"email\" => $email));\n \t\tif($query->num_rows())\n \t\t\treturn $query->result();\n \t\telse\n \t\t\treturn false;\n \t}", "title": "" }, { "docid": "eb5cdbc10053530e6e67b13e904dd7c7", "score": "0.7725571", "text": "function check_email_exist($email_address)\n\t\t{\n\t\t $this->db->where('email_address',$email_address);\n\t\t $query=$this->db->get('user_info');\n\t\t if($query->num_rows()>0)\n\t\t return true;\n\t\t else\n\t\t return false;\n\t\t}", "title": "" }, { "docid": "f23ed1e56c6952704abc95f8c59ad747", "score": "0.7716364", "text": "function databaseContainsEmail($email){\n\ttry\n\t{\n\t\tinclude_once 'db.inc.php';\n\t\t$pdo = connect_to_db();\n\t\t$sql = 'SELECT \tCOUNT(*) \n\t\t\t\tFROM \t`user`\n\t\t\t\tWHERE \temail = :email\n\t\t\t\tLIMIT \t1';\n\t\t$s = $pdo->prepare($sql);\n\t\t$s->bindValue(':email', $email);\n\t\t$s->execute();\n\n\t\t$pdo = null;\n\t}\n\tcatch (PDOException $e)\n\t{\n\t\t$error = 'Error validating email.';\n\t\tinclude_once 'error.html.php';\n\t\t$pdo = null;\n\t\texit();\n\t}\n\n\t$row = $s->fetch();\n\t// If we got a hit, then the email exists in our database\n\tif($row[0] > 0){\n\t\treturn TRUE;\n\t} else {\n\t\treturn FALSE;\n\t}\n}", "title": "" }, { "docid": "39e5495605ce938e98b60e8999e4ec03", "score": "0.7709185", "text": "public function isUserExisted($email) {\n $stmt = $this->conn->prepare(\"SELECT email from xyz_usersM WHERE email = ?\");\n \n $stmt->bind_param(\"s\", $email);\n \n $stmt->execute();\n \n $stmt->store_result();\n \n if ($stmt->num_rows > 0) {\n // user existed \n $stmt->close();\n return true;\n } else {\n // user not existed\n $stmt->close();\n return false;\n }\n }", "title": "" }, { "docid": "7b2eb2b992ebff70dd5dbeef62433672", "score": "0.770792", "text": "public function emailExists($id);", "title": "" }, { "docid": "19816fd6986c318f3d854e422619f4d7", "score": "0.7707269", "text": "public function isExistsByEmail(string $email);", "title": "" }, { "docid": "186ff783f591de15a420838e51ad968a", "score": "0.7705147", "text": "public function emailExists($email) {\n $stmt = $this->conn->prepare(\"SELECT email from users WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n $stmt->execute();\n $stmt->store_result();\n\n //if there is more than 0 rows, then there is an existing user\n if ($stmt->num_rows > 0) {\n $stmt->close();\n return true;\n } else {\n // user doesn't exist\n $stmt->close();\n return false;\n }\n }", "title": "" }, { "docid": "777ba12273b215bba2a2da5a8c1a7780", "score": "0.76988816", "text": "public function isExist($email){\n $exist = $this->db->prepare(\"SELECT * FROM user WHERE email = :Email\");\n $exist->bindParam(':Email',$email);\n $exist->execute();\n $result = $exist->fetchAll();\n if(!empty($result)){\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "66b04b9dd2610192d7a1f6658c51447d", "score": "0.7694735", "text": "function email_exists($email) {\r\n\r\n\t$sql=\"SELECT id FROM users WHERE email = '$email'\";\r\n\r\n\t$result = query($sql);\r\n\r\nif(row_count($result) == 1) {\r\n\r\n\treturn true;\r\n\r\n}else{\r\n\r\n\treturn false;\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "3fbc3f02b82cde4c2079bbc8adfb15d5", "score": "0.7693858", "text": "public function emailExists($email) {\n\t\t$result = false;\n\t\ttry\n\t\t{\n\t\t\t$db = new Database();\n\t\t\t$db->connect();\n\t\t\t$sql = \"SELECT userID FROM tbl_users WHERE userEmail= :uemail limit 1\";\n\t\t\t$params = array(\":uemail\" => $email);\n\t\t\t$rs = $db->runSelect($sql,$params);\n\t\t\t\n\t\t\tif ($rs != null){\n\t\t\t\t$result = true;\n\t\t\t}\n\t\t}\n\t\tcatch(PDOException $ex) {\n\t\t\techo $ex->getMessage();\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "6ba9e2de9cbecfebfe8afa66d272978c", "score": "0.7689407", "text": "private function isUserExist($email)\r\n\t{\r\n\t\t$stmt = $this->conn->prepare(\"SELECT email FROM user WHERE email = ?;\");\r\n\t\t$stmt->bind_param(\"s\",$email);\r\n\t\t$stmt->execute();\r\n\t\t$stmt->store_result();\r\n\t\t$row_count = $stmt->num_rows;\r\n\t\treturn $row_count == 1;\r\n\t}", "title": "" }, { "docid": "68152e17f6917e7b8f87d135de04c8f3", "score": "0.76763445", "text": "private function checkEmailExists($email){\n\t\t$res = DB::get_results(\"SELECT * FROM `users_freelancers` WHERE `email`='$email'\");\n\t\tif($res == null){\n\t\t\treturn 0;\n\t\t}else{\n\t\t\treturn 1;\n\t\t}\n\t}", "title": "" }, { "docid": "66d9b817ebd9141ea5c71ac2c5501fe0", "score": "0.7669905", "text": "public function emailAlreadyRegistered($email) {\n $this->db->select('id');\n $this->db->from(TABLE_CUSTOMER);\n $this->db->where('email', $email);\n\n $result = $this->db->get();\n\n if($result->num_rows() > 0) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "deb103c8cf65a68af57c44ac23f69477", "score": "0.7663932", "text": "function doesEmailExist($dbconn, $input){\n $result = false;\n $stmt = $dbconn -> prepare(\"SELECT * FROM admin WHERE email = :em\");\n $stmt->bindParam(\":em\",$input);\n $stmt->execute();\n $count = $stmt->rowCount();\n if($count>0){\n $result = true;\n }\n return $result;\n}", "title": "" }, { "docid": "9a5073b6eb2b863b2709946ad0831e4d", "score": "0.7656519", "text": "public function isUserExisted($email) {\n\n $result = $this->pdo->query(\"SELECT email from users WHERE email = '$email'\");\n\n return $result->rowCount() == 0 ? FALSE : TRUE;\n\n //Should be the same as\n //return $this->pdo->query(\"SELECT email from users WHERE email = '$email'\");\n\n }", "title": "" }, { "docid": "4c740e0d57d1c5f360d04f7a78c5172a", "score": "0.7649265", "text": "function checkifemailalreadythere($email)\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->where('email',$email);\n\t\t$user_data = $this->db->get(DB_PREFIX.'newsletter_users')->row_array();\n\t\tif ($user_data) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn 1;\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "56e2c10367602c48b9a306ca81c3871f", "score": "0.76435965", "text": "function checkEmail($email) {\n global $db;\n \n $run = $db->prepare(\"SELECT * FROM users WHERE email = :email\");\n $run->execute(['email'=>$email]);\n $result = $run->fetch(PDO::FETCH_ASSOC);\n\n if(!empty($result)){\n return true;\n }else {\n return false;\n }\n}", "title": "" }, { "docid": "208b9f77ccb586af6c52612b08e416b1", "score": "0.7642765", "text": "public function isUserExisted($email) {\n $stmt = $this->conn->prepare(\"SELECT email from tb_user WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n $stmt->execute();\n $stmt->store_result();\n if ($stmt->num_rows > 0) {\n // user telah ada \n $stmt->close();\n return true;\n } else {\n // user belum ada \n $stmt->close();\n return false;\n }\n }", "title": "" }, { "docid": "db2c53ea3923f62a0fa2b1173e305e52", "score": "0.76420754", "text": "function checkRecordExists($email = '')\n {\n\n //profiling::\n $this->debug_methods_trail[] = __function__;\n\n //declare\n $conditional_sql = '';\n\n //if no valie client id, return false\n if ($email == '') {\n return false;\n }\n\n //escape data\n $email = $this->db->escape($email);\n\n //----------sql & benchmarking start----------\n $this->benchmark->mark('code_start');\n\n //_____SQL QUERY_______\n $query = $this->db->query(\"SELECT *\n FROM client_users \n WHERE client_users_email = $email\");\n $results = $query->row_array();\n\n $this->benchmark->mark('code_end');\n $execution_time = $this->benchmark->elapsed_time('code_start', 'code_end');\n //----------sql & benchmarking start----------\n\n //debug data\n $this->__debugging(__line__, __function__, $execution_time, __class__, $results);\n\n //__________RESULT__________\n if ($query->num_rows() > 0) {\n return $results;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "6daaeae4b8a5b68fedaced9f7171e02a", "score": "0.7641096", "text": "public function isUserExisted($email) {\n $result = $this->con->prepare(\"SELECT email from user WHERE email =:email\");\n $result->execute(array(':email'=>$email));\n $userRow=$result->fetch(PDO::FETCH_ASSOC);\n\n if($result->rowCount() == 1)\n {\n // user existed \n return true;\n } else {\n // user not existed\n return false;\n }\n }", "title": "" }, { "docid": "82fcf5d6954eecd86066c37258ab3c6e", "score": "0.763485", "text": "public function emailInUse($email){\n\n $result = $this->User\n ->select('email')\n ->where(Array('email'=>$email))\n ->data();\n\n if($result->rowCount() != 0){\n return true;\n }//if\n\n return false;\n\n }", "title": "" }, { "docid": "26002b6a92b1274470dea90f480e5233", "score": "0.7629713", "text": "function isEmailAvailable( $db, $email) {\r\n $request = $GLOBALS['db']->prepare(\" SELECT * \r\n FROM customers \r\n WHERE email = ? \");\r\n $request->execute(array($email)); \r\n\r\n if($request->rowCount() > 0){\r\n return false;\r\n }\r\n else{\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "421ff69a374d1a6b10913b92a5d57d2b", "score": "0.76246774", "text": "function validate_existing_email(){\n\t\t$email = $this->input->post('data[email]');\n \t\t$empid = encrypt_decrypt('decrypt',$this->input->post('primary'));\n \t\t$EmpData = $this->common->_getRow('user', ' userID !='.$empid.' AND email = \"'.$email.'\"');\n \t\t\n \t\tif(!empty($EmpData)){\n \t\t\treturn false;\n \t\t} else {\n \t\t\treturn true;\n \t\t}\n\t}", "title": "" }, { "docid": "affc38d600f86995a6a9588e4160fe60", "score": "0.76213527", "text": "function doesUserExists($email) {\n $connection = getConnection();\n $query = $connection->prepare(\"SELECT Id FROM login where Email ='$email'\");\n $query->execute();\n\n if ($query->rowCount() == 0) {\n return false;\n }\n\n return true;\n}", "title": "" }, { "docid": "a80597179c50af879838435b48c40b7e", "score": "0.76210624", "text": "public function isUserExisted($email) {\n $stmt = $this->conn->prepare(\"SELECT email from tb_user WHERE email = ?\");\n \n $stmt->bind_param(\"s\", $email);\n \n $stmt->execute();\n \n $stmt->store_result();\n \n if ($stmt->num_rows > 0) {\n // user telah ada \n $stmt->close();\n return true;\n } else {\n // user belum ada \n $stmt->close();\n return false;\n }\n }", "title": "" }, { "docid": "8a06214bd8eb158c5e6ed7c139757775", "score": "0.7619655", "text": "public static function verifyEmail($email){\n\n $sql = new Sql();\n\n $resultado = $sql->select(\"SELECT * FROM Usuario WHERE Email = :email\", array(\n \":email\"=>$email\n ));\n\n if(count($resultado) > 0){\n return true;\n }else{\n return false;\n }\n\n }", "title": "" }, { "docid": "c1a858bdf6049b0ce20cf346ed0eb785", "score": "0.76117414", "text": "function email_exists($email) {\n\n $query = query(\"SELECT id FROM users WHERE email = '$email' \");\n confirm($query);\n\n if(count_rows($query) == 1) {\n\n return true;\n\n } else {\n return false;\n }\n\n}", "title": "" }, { "docid": "40bc1c6a13789b935f727581baf30816", "score": "0.76035297", "text": "function check_mail($email){\n\t\tglobal $bdd;\n\n\t\t$req = $bdd->prepare(\"SELECT mail FROM users WHERE mail = :email\");\n\t\t$req->execute(array(\"email\"=>$email));\n\n\t\t$exist = $req->rowCount();\n\t\t$req->closeCursor();\n\n\t\treturn $exist;\n\t}", "title": "" }, { "docid": "081628ff50c84cf3c88587d158844ff3", "score": "0.76029676", "text": "public function emailExists($email)\n {\n $query = \"SELECT id, firstname, lastname, password\n FROM \" . self::DB_TABLE . \"\n WHERE email = ?\n LIMIT 0,1\";\n\n $stmt = self::$dbHandle->prepare($query);\n $email = htmlspecialchars(strip_tags($email));\n $stmt->bindParam(1, $email);\n $stmt->execute();\n $num = $stmt->rowCount();\n if ($num > 0) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "2d812a692b3e3ae17078c819dc742e7a", "score": "0.76014465", "text": "function doesUserEmailExist($dbconn, $input){\n $result = false;\n\n $stmt = $dbconn -> prepare(\"SELECT * FROM users WHERE email = :em\");\n $stmt->bindParam(\":em\",$input);\n $stmt->execute();\n $count = $stmt->rowCount();\n if($count>0){\n $result = true;\n }\n return $result;\n}", "title": "" }, { "docid": "5590a8259f1295a70cb5627e591921a9", "score": "0.75923055", "text": "public function checkUniquEmail($email) {\n \n $this->connect();\n $query = $this->dbconn->prepare( \"SELECT `email` FROM `tbl_user` WHERE `email` = :email\" );\n $query->bindValue(':email', $email );\n $query->execute();\n\n if($query->rowCount() > 0) { # If rows are found for query\n return true;\n } else {\n return false;\n }\n\n $this->dbconn = null;\n }", "title": "" }, { "docid": "80cdea93d18e3efa497e6fe2378e75ea", "score": "0.7588267", "text": "public function email_check($str){ \n $con = array( \n 'returnType' => 'count', \n 'conditions' => array( \n 'email' => $str \n ) \n ); \n $checkEmail = $this->user->getRows($con); \n if($checkEmail > 0){ \n $this->form_validation->set_message('email_check', 'The given email already exists.'); \n return FALSE; \n }else{ \n return TRUE; \n } \n }", "title": "" }, { "docid": "5de037f7b686f5c448ab7344d50c898f", "score": "0.7586636", "text": "public function isExistEmail($email)\n\t{\n\t\t$db = $this->connectToDatabase();\n\t\t\n\t\t$sqlString = \"select count(*) from `user` where email='\".$email.\"'\";\n\t\t$result = $db->fetchOne($sqlString);\n\t\t\n\t\t$db->closeConnection();\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "84c15c766106b6753a0929a2986b73f4", "score": "0.7584841", "text": "function check_email_availablity($email) { \n $email = strtolower($email); \n $this->db->where('LOWER(emailadres)', $email);\n $query = $this->db->get('gebruiker');\n \n if ($query->num_rows() > 0){\n return false;\n } \n else{\n return true;\n }\n \n }", "title": "" }, { "docid": "64814e76bd05fc23cb1fb6bf9816775c", "score": "0.757229", "text": "public function check_email_exist() {\n\n $data_string = array();\n $data_string['args'] = _get_query_args();\n\n $url = 'users/check_email_exist';\n $result = api_curl($url, $data_string, 'POST');\n\n\n if (isset($result->form_data->success) && $result->form_data->success == 1) {\n echo \"true\"; // not exist\n } else {\n echo \"false\";\n }\n }", "title": "" }, { "docid": "d80c11eda412f449a2667fc8215e3e29", "score": "0.7564733", "text": "function userExists( $email )\n{\n\tglobal $DB;\n\n\t$query = \"SELECT * \n\t\tFROM Account \n\t\tWHERE EMAIL = :x\";\n\t$parsed = oci_parse( $DB, $query );\n\toci_bind_by_name( $parsed, \":x\", $email ); \n\toci_execute( $parsed );\n\t\t\n\t$count = 0;\n\n\twhile( $row = oci_fetch_array( $parsed, OCI_ASSOC ) )\n\t{\n\t\t$count++;\n\t}\n\t\n\treturn ( $count == 1 ) ? true: false;\t\t// account exists if we have an instance of that email\n}", "title": "" }, { "docid": "675c6610b8f899ae593a9cd0f0461ebd", "score": "0.75615585", "text": "function ifemailAvailable($email) {\n global $db;\n \n $run = $db->prepare(\"SELECT * FROM users WHERE email = :email\");\n $run->execute(['email'=>$email]);\n $result = $run->fetch(PDO::FETCH_ASSOC);\n\n if(empty($result)){\n return true;\n }else {\n return false;\n }\n}", "title": "" }, { "docid": "3ad7724e84eb1dc31ad6f0830f1e290e", "score": "0.75610733", "text": "function is_email_taken($conn, $email) {\n\t$sql_check = \"SELECT * FROM passagers WHERE email = '$email'\";\n\t$data_get = mysqli_query($conn, $sql_check);\n\tif(mysqli_num_rows($data_get) > 0) {\n\t\treturn true;\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "2b5dedd568e485fbcee90729cfb53e38", "score": "0.7554866", "text": "function checkIfEmailExists($mEmail, $mConn){\n $mQuery = \"SELECT * FROM users WHERE email = '$mEmail'\";\n $mResult = mysqli_query($mConn,$mQuery);\n if(mysqli_num_rows($mResult)){\n return false;\n }\n else {\n return true;\n }\n }", "title": "" }, { "docid": "3d7b4930ed34e5365343046113d8e154", "score": "0.75545144", "text": "public function check_email($email){\n\n\t\t$this->db->where('email' ,$email);\n\t\t$result = $this->db->get('user');\n\n\t\tif($result->num_rows() > 0){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "455c07d0cdfc56b3621f4b99482119e5", "score": "0.7553117", "text": "public function userEmailExist($email)\n\t{\n\t\tif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {\n\t\t\treturn false;\n\t\t}\n\t\t$db = new Database();\n\t\t$db->query('SELECT ID FROM users WHERE email=:email LIMIT 1');\t\t\n\t\t$db->bind( ':email', $email );\n\t\t$result = $db->single();\n\n\t\tif ($result) {\n\t\t\treturn $result;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "428a5e21143190466ac1456357f73ff6", "score": "0.7552086", "text": "public function check_members_email_existance($email)\n\n {\n\n \t$this->ci->db->select('id');\n\n \t$this->ci->db->where('email',$email);\n\n \t$query = $this->ci->db->get('members');\n\n\t\t//echo $this->ci->db->last_query(); exit;\n\n \tif($query->num_rows()>0){\n\n \t\treturn FALSE;\n\n \t}else {\n\n \t\treturn TRUE;\n\n \t}\n\n }", "title": "" }, { "docid": "c5ce8d39d8212f929786f9d50e7440b1", "score": "0.7544571", "text": "public function checkEmail(){\n $check = mysql_query(\"SELECT email FROM users WHERE email = '\".$this->email.\"'\");\n $count = mysql_num_rows($check);\n\n if($count > 0){\n header(\"Location:register.php?status=email_exists\");\n die(); \n }\n }", "title": "" }, { "docid": "3686f60501cbef340d9e65b0ca61217c", "score": "0.7538395", "text": "public function isUserExisted($email){\n\t\t$stmt = $this->conn->prepare(\"select * from tbl_user where email = ?\");\n\t\t$stmt->bind_param(\"s\", $email);\n\t\t\n\t\t$stmt->execute();\n\t\t$stmt->store_result();\n\t\tif($stmt->num_rows>0){\n\t\t\t$stmt->close();\n\t\t\treturn true;\n\t\t}else{\n\t\t\t$stmt->close();\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "0057bed49728775e0f79228ddeb0f526", "score": "0.752999", "text": "function isEmailAlreadyInuse($email = '')\n {\n\n //profiling::\n $this->debug_methods_trail[] = __function__;\n\n //declare\n $conditional_sql = '';\n\n //if no valie client id, return false\n if ($email == '') {\n return false;\n }\n\n //escape data\n $email = $this->db->escape($email);\n\n //----------sql & benchmarking start----------\n $this->benchmark->mark('code_start');\n\n //_____SQL QUERY_______\n $query = $this->db->query(\"SELECT *\n FROM client_users \n WHERE client_users_email = $email\");\n $results = $query->num_rows(); //count rows\n\n //benchmark/debug\n $this->benchmark->mark('code_end');\n $execution_time = $this->benchmark->elapsed_time('code_start', 'code_end');\n\n //debugging data\n $this->__debugging(__line__, __function__, $execution_time, __class__, $results);\n //----------sql & benchmarking end----------\n\n //return results\n if ($results == 0) {\n return true;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "3851bc5ebd9334fff3db879855b9e6cf", "score": "0.75262016", "text": "public function check_email($email){\n try {\n\n\t\t\t$stmt = $this->_db->prepare('SELECT email FROM users WHERE email = :e_mail');\n\t\t\t$stmt->execute(array('e_mail' => $email));\n $count = $stmt->rowCount();\n\t\t\tif($count>0)\n return false;\n else \n return true;\n\n\t\t} catch(PDOException $e) {\n\t\t echo '<p class=\"error\">'.$e->getMessage().'</p>';\n\t\t}\n \n }", "title": "" }, { "docid": "9bf89a763211c5c781ea60e25fa648b5", "score": "0.7525311", "text": "private function isUserExists($email) {\n $stmt = $this->conn->prepare(\"SELECT user_id from user WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n $stmt->execute();\n $stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return $num_rows > 0;\n }", "title": "" }, { "docid": "8d8017ef56bcf1db7453d58b76cd164f", "score": "0.75242007", "text": "public function hasDuplicateEmail(){\n $query = $this->getDBConnection()->prepare(\"select * from users where email = ?\");\n $query->bind_param(\"s\", $this->getEmail());\n\n return $this->db->dataExists($query);\n }", "title": "" }, { "docid": "11f6c566dc0db9edcda5ec1e4db09331", "score": "0.7523285", "text": "public function emailCheck($email) {\n\t\t$result = false;\n\t\ttry\n\t\t{\n\t\t\t$db = new Database();\n\t\t\t$db->connect();\n\t\t\t$sql = \"SELECT userEmail FROM tbl_users WHERE userEmail= :uemail limit 1\";\n\t\t\t$params = array(\":uemail\" => $email);\n\t\t\t$rs = $db->runSelect($sql,$params);\n\t\t\t\n\t\t\tif ($rs != null){\n\t\t\t\t$result = true;\n\t\t\t}\n\t\t}\n\t\tcatch(PDOException $ex) {\n\t\t\techo $ex->getMessage();\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "b2fd3170f16a05065a5587fa0622be91", "score": "0.7522246", "text": "public function is_email_exist($email) {\n $this->db->select(Constant::TABLE_ACCOUNTS_COLUMN_EMAIL);\n $query = $this->db->get_where(Constant::TABLE_ACCOUNTS, [Constant::TABLE_ACCOUNTS_COLUMN_EMAIL => $email]);\n $result = $query->result();\n return !empty($result);\n }", "title": "" }, { "docid": "49c3c2606438f195612cb724a7c292ea", "score": "0.7522008", "text": "function check_email(){\n $advertiser_email = $this->input->post('email', TRUE);\n $Q = $this->db->select('user_email')->where('user_email', $advertiser_email)->limit(1)->get('bc_users');\n if($Q->num_rows() > 0){\n $this->form_validation->set_message('check_email', 'The Email Address already registered. Please use another email address to signup!');\n return FALSE;\n }else{\n return TRUE;\n }\n }", "title": "" }, { "docid": "38ac0d6d816f73a769ba924c3c252176", "score": "0.7520079", "text": "public function check_if_user_exists ($email){\r\n $query = \"SELECT * FROM user WHERE mail = ?\";\r\n\r\n $result = [];\r\n self::query('wah', $query, $result, 's', [$email] );\r\n\r\n return $result ? true : false;\r\n\r\n }", "title": "" }, { "docid": "9ecfce5cacbe5b332eed4cbbe9a3fd10", "score": "0.7519799", "text": "private function isUserExists($email) {\n $stmt = $this->conn->prepare(\"SELECT u_id from user WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n $stmt->execute();\n $stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return $num_rows > 0;\n }", "title": "" }, { "docid": "c929310549c631694a08cc4eb9dd32a4", "score": "0.75193536", "text": "public function checkEmail($email)\n {\n $stmt = $this->pdo->prepare(\"SELECT UserId FROM user WHERE Email = :email\");\n $stmt->bindParam(\":email\", $email, PDO::PARAM_STR);\n $stmt->execute();\n $user = $stmt->fetch(PDO::FETCH_OBJ);\n $count = $stmt->rowCount();\n if($count>0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "e200f97ba7f2860fc32870820c61357c", "score": "0.7516286", "text": "private function isUserExists($email) {\n $stmt = $this->conn->prepare(\"SELECT user_id from users WHERE email = ?\");\n $stmt->bind_param(\"s\", $email);\n $stmt->execute();\n $stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return $num_rows > 0;\n }", "title": "" }, { "docid": "3576d5e5e4644ce90cbfe71e0f163a12", "score": "0.7515587", "text": "public function isUserExisted($email) {\n $result = mysql_query(\"SELECT email from devices WHERE email = '$email'\");\n $no_of_rows = mysql_num_rows($result);\n if ($no_of_rows > 0) {\n // user existed\n return true;\n } else {\n // user not existed\n return false;\n }\n }", "title": "" }, { "docid": "7eddfc2b9f58d4822bae25b1e8012d0a", "score": "0.7513637", "text": "function doesEmailExist($dbconn, $input){ #placeholders are just there\n $result = false;\n $stmt = $dbconn -> prepare(\"SELECT * FROM admin WHERE email = :em\");\n $stmt->bindParam(\":em\",$input);\n $stmt->execute();\n $count = $stmt->rowCount();\n if($count>0){\n $result = true;\n }\n return $result;\n}", "title": "" }, { "docid": "5cd5b9a98594ea98862a660a1ca5f0b0", "score": "0.7496279", "text": "function check_manager_email($objDBController,$email){\n if(strlen($email)>0) {\n $dbconn = $objDBController->getConn();\n $stmt = $dbconn->prepare(\"Select * from manager_user WHERE email=:email\");\n $stmt->bindparam(\":email\",$email);\n $stmt->execute();\n $results = $stmt->fetchAll();\n if (sizeof($results) > 0) {\n return true;\n }\n }\n return false;\n}", "title": "" }, { "docid": "6c9d639b9039ae31f2b4f4de655ba5ab", "score": "0.749351", "text": "function emailAlreayExists($email) {\r\n global $wpdb;\r\n $userData = $wpdb->get_results(\"SELECT a.id, \r\n a.email \r\n FROM nex_users AS a \r\n where a.email = '\" . $email . \"' and a.user_type = 2 and a.is_deleted = 0\");\r\n\r\n\r\n if (count($userData) > 0) {\r\n return FALSE;\r\n } else {\r\n return TRUE;\r\n }\r\n}", "title": "" }, { "docid": "e3ddd9c9d07e3103eb6d14bbfd03e0ab", "score": "0.7491485", "text": "function user_exists($email) {\n global $db_connection;\n\n // Query database for a user with the given email\n $query = $db_connection->query(\"SELECT * FROM `users` WHERE `email`='$email';\");\n $user = $query->fetch(PDO::FETCH_ASSOC);\n\n // Check if we found any users and return accordingly\n if (count($user) > 1)\n return true;\n else\n return false;\n}", "title": "" }, { "docid": "2c80e755d9c937fd5900ec2f041f4576", "score": "0.7487683", "text": "function check_unique_email_login(){\n //$this->check_user_session();\n $email = $_GET['email'];\n $check = $this->common_model->is_id_exist(USERS,'email',$email);\n if($check){\n echo \"true\"; die;\n }\n echo \"false\"; die;\n }", "title": "" } ]
a21ed7f81b4e897300ca22c1ff40ebf4
Set Item from ArrayCollection.
[ { "docid": "779d7b7d50e4db7e58679f2168f90404", "score": "0.0", "text": "public function addChildren(ArrayCollection $collection);", "title": "" } ]
[ { "docid": "11c9e1869bdc3f8ad893a4d8cc4bff52", "score": "0.6378445", "text": "public function setArray(Array $Items) {\n $this->_collection = $Items;\n }", "title": "" }, { "docid": "f47a03c7d9070fc53ebac26ab018e23d", "score": "0.61511046", "text": "public function offsetSet($offset,$item)\r\n\t{\r\n\t\tif ($offset===null)\r\n\t\t\t$this->models[]=$item;\r\n\t\telse\r\n\t\t\t$this->models[$offset]=$item;\r\n\t}", "title": "" }, { "docid": "482e7b18aff73f4209b0703d9ebf7849", "score": "0.6046749", "text": "public function testSet() {\r\n $array = array(0 => 0, \"1\" => \"1\");\r\n $col = new Core\\Collection($array);\r\n $this->integer($col->set(0, 10)->get(0))->isEqualTo(10);\r\n $this->string($col->set(\"1\", \"test\")->get(\"1\"))->isEqualTo(\"test\");\r\n $this->string($col->set(\"new index\", \"new test\")->get(\"new index\"))->isEqualTo(\"new test\");\r\n }", "title": "" }, { "docid": "61728bf360aec0ed3af42fa0ae59559b", "score": "0.59634", "text": "public function offsetSet($offset,$item)\n\t{\n\t\t$this->add($offset,$item);\n\t}", "title": "" }, { "docid": "1225a254c1f710608c32c2211a6dcd82", "score": "0.5947355", "text": "public function setItems(array $items);", "title": "" }, { "docid": "1225a254c1f710608c32c2211a6dcd82", "score": "0.5947355", "text": "public function setItems(array $items);", "title": "" }, { "docid": "1225a254c1f710608c32c2211a6dcd82", "score": "0.5947355", "text": "public function setItems(array $items);", "title": "" }, { "docid": "1225a254c1f710608c32c2211a6dcd82", "score": "0.5947355", "text": "public function setItems(array $items);", "title": "" }, { "docid": "1225a254c1f710608c32c2211a6dcd82", "score": "0.5947355", "text": "public function setItems(array $items);", "title": "" }, { "docid": "1f7ddbc376b723c50e404dec5ecab08e", "score": "0.5938634", "text": "public function setElementAtKey(ResolvedCollection $collection, $key, $value, Transaction $transaction);", "title": "" }, { "docid": "71dfde662418c93969d79e61d0e67920", "score": "0.59295917", "text": "public function set(int $index, mixed $item): void;", "title": "" }, { "docid": "8a37c3d76c0f62ef2b694afa98e1bfde", "score": "0.5912486", "text": "public function set($item,$value = null) {\r\n if (is_array($item)) {\r\n foreach ($item as $k=>$v) {\r\n $this->set($k,$v);\r\n }\r\n }\r\n else {\r\n if (property_exists($this, $item)) {\r\n unset($this->$item);\r\n }\r\n $this->_data[$item] = $value;\r\n }\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "82cd51135c7a6a2ee18645387154424f", "score": "0.58286625", "text": "public function setItems($value) {\n\t\tif (!is_array($value)) {\n\t\t\t$this->items = null;\n\t\t\treturn;\n\t\t}\n\n\t\tforeach ($value as $index => &$element) {\n\t\t\tif ((!is_object($element) || !($element instanceof ShopgateOrderItem)) && !is_array($element)) {\n\t\t\t\tunset($value[$index]);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (is_array($element)) {\n\t\t\t\t$element = new ShopgateOrderItem($element);\n\t\t\t}\n\t\t}\n\n\t\t$this->items = $value;\n\t}", "title": "" }, { "docid": "d193b90d69969a0e2fd5cc74d3e38a37", "score": "0.57949257", "text": "public function offsetSet($key, $value)\n {\n $this->items[$key] = $value;\n }", "title": "" }, { "docid": "d193b90d69969a0e2fd5cc74d3e38a37", "score": "0.57949257", "text": "public function offsetSet($key, $value)\n {\n $this->items[$key] = $value;\n }", "title": "" }, { "docid": "176f3f7444ba4338b595facc1f86a49c", "score": "0.5788876", "text": "function setItem($name, $value);", "title": "" }, { "docid": "7d0e817a94f4ddc0235e49b157bdec08", "score": "0.57773674", "text": "public function offsetSet($offset, $value)\n {\n $this->items[$offset] = $value;\n }", "title": "" }, { "docid": "bc861b669ded012e05bbc6be0831b2a7", "score": "0.5703416", "text": "public function offsetSet($key, $value)\n\t{\n\t\tif (is_null($key)) {\n\t\t\t$this->items[] = $value;\n\t\t} else {\n\t\t\t$this->items[$key] = $value;\n\t\t}\n\t}", "title": "" }, { "docid": "728ddc9eed16cf58cd05f49d6f68e6db", "score": "0.569637", "text": "public function offsetSet($key, $value)\n {\n if (is_null($key)) {\n $this->items[] = $value;\n } else {\n $this->items[$key] = $value;\n }\n }", "title": "" }, { "docid": "728ddc9eed16cf58cd05f49d6f68e6db", "score": "0.569637", "text": "public function offsetSet($key, $value)\n {\n if (is_null($key)) {\n $this->items[] = $value;\n } else {\n $this->items[$key] = $value;\n }\n }", "title": "" }, { "docid": "5ae0d39aca7b382971a29d153d058101", "score": "0.56292933", "text": "public function setItem($key, mixed $value);", "title": "" }, { "docid": "04bed1ba56414b461157c8638a0de280", "score": "0.55927706", "text": "public function exchangeArray($collection)\n {\n if (!is_array($collection) && !($collection instanceof Traversable)) {\n throw new Exception\\InvalidArgumentException(\n sprintf(\n 'Expected argument \"array\" or \"Traversable\"; \"%s\" given',\n gettype($collection) . (is_object($collection) ? '(' . get_class($collection) . ')' : '')\n )\n );\n }\n\n if ($collection instanceof Traversable) {\n $collection = ArrayUtils::iteratorToArray($collection);\n }\n\n foreach ($collection as $key => $value) {\n $this->set($key, $value);\n }\n }", "title": "" }, { "docid": "6c07f0b2d02817a8180feb6ee7e297fa", "score": "0.5584918", "text": "public function offsetSet($offset, $item)\n\t{\n\t\t// Bypass relation owner restriction to 'yii\\db\\ActiveRecord' at [[yii\\db\\ActiveRelationTrait::findWith()]]:\n\t\ttry {\n\t\t\t$relation = $this->getRelation($offset);\n\t\t\tif (is_object($relation)) {\n\t\t\t\t$this->populateRelation($offset, $item);\n\t\t\t\treturn;\n\t\t\t}\n\t\t} catch (UnknownMethodException $e) {\n\t\t\tthrow $e->getPrevious();\n\t\t}\n\t\tparent::offsetSet($offset, $item);\n\t}", "title": "" }, { "docid": "f3d8da6d247d170e2f1100252b32b00e", "score": "0.55663836", "text": "public function set($id, $collection){ }", "title": "" }, { "docid": "c7d1359313ef6eef1a30bf5e9c0abaf4", "score": "0.55224174", "text": "public function setFromArray($array){\n\t\tforeach($array as $k => $v){\n\t\t\t$this->set($k, $v);\n\t\t}\n\t}", "title": "" }, { "docid": "c64d7ece24d731f407ccc0bdfc757372", "score": "0.55222136", "text": "public function setCollection(CollectionInterface $collection): void;", "title": "" }, { "docid": "59adf35383a049ba75c41c578b9d5cfc", "score": "0.5520039", "text": "public function offsetSet($offset, $value)\n {\n if (null === $offset) {\n $this->items[] = $value;\n } else {\n $this->items[$offset] = $value;\n }\n }", "title": "" }, { "docid": "1b9e13ba48df7670cb7ce1fd512c6c54", "score": "0.54786664", "text": "public function setTo(array &$array) {\n\t\t$array[$this->id()]\t= $this;\n\t}", "title": "" }, { "docid": "622669c70968c25d598631bb4aa9d7d3", "score": "0.5472823", "text": "public function offsetSet($key, $value) {\n return $this->_items[$key] = $value;\n }", "title": "" }, { "docid": "cd4a9e8aa6b48ea3213885b5aac0d0de", "score": "0.5463029", "text": "public function setItemData($value) \n {\n $this->_fields['ItemData']['FieldValue'] = $value;\n return;\n }", "title": "" }, { "docid": "3815b132c1aee7312870992a3cf1df34", "score": "0.54625", "text": "#[ReturnTypeWillChange]\n public function offsetSet($offset, $value): void\n {\n if ($offset === '' || $offset === null) {\n throw new InvalidArgumentException('The key of a collection must always be set');\n }\n\n Assert::notNull($value);\n\n $this->items[$offset] = $value;\n }", "title": "" }, { "docid": "c03670200ca2d647c43a362170f61c7b", "score": "0.5458544", "text": "public function offsetSet($key, $value)\n {\n return $this->_items[$key] = $value;\n }", "title": "" }, { "docid": "399b05f8a42d58640ad4e77bdf002096", "score": "0.5449876", "text": "protected function fromArray(\n array $source,\n ContainerCollectionInterface $target\n ) {\n foreach ($source as $key => $value) {\n $target->set($key, $value);\n }\n }", "title": "" }, { "docid": "554ba2da18d23b24c46743eac8f3d0ae", "score": "0.5438167", "text": "public function offsetSet( $offset, $value )\n\t{\n\t\tif( $this instanceof TypeOfInterface && ! $this->typeOf($value, $offset) )\n\t\t{\n\t\t\tthrow new \\InvalidArgumentException(\"Invalid data type for offset item\");\n\t\t}\n\n\t\tif (is_null($offset))\n\t\t{\n\t\t\t$this->items[] = $value;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->items[$offset] = $value;\n\t\t}\n\t}", "title": "" }, { "docid": "23631d27d49bbed421a25782b1bc641f", "score": "0.5428534", "text": "final public static function set(array $collection, $value, $index = null): array\n {\n if (null === $index) {\n $collection[] = $value;\n } else {\n $collection[$index] = $value;\n }\n\n return $collection;\n }", "title": "" }, { "docid": "78360638dd888968a53824c7cb3dd8a5", "score": "0.5425297", "text": "public function setItems($items);", "title": "" }, { "docid": "78360638dd888968a53824c7cb3dd8a5", "score": "0.5425297", "text": "public function setItems($items);", "title": "" }, { "docid": "011a93e9e67fbcf3cdd54e5862f0eb7d", "score": "0.54183346", "text": "public function offsetSet($offset, $value) {}", "title": "" }, { "docid": "964f19544cc86825ac69d5d1df630693", "score": "0.5413324", "text": "public function setCollection($collection)\n {\n $this->_collection = $collection;\n }", "title": "" }, { "docid": "af26bd05cd3f405188f90e76f105cb17", "score": "0.53945315", "text": "public function test_array_access_retrieval() {\n\t\t$collection = \\Mockery::mock( Collection::class )\n\t\t\t->makePartial();\n\n\t\t$entity = \\Mockery::mock( Entity::class );\n\n\t\t$this->assertNull( $collection[0] );\n\t\t$collection->add_entity( $entity );\n\t\t$this->assertNotNull( $collection[0] );\n\t}", "title": "" }, { "docid": "0d0f0b80445e5cf5793a9c9d500af7f2", "score": "0.5389532", "text": "public function offsetSet($offset, $value)\n {\n if (!$this->isReadOnly()) {\n if (is_array($value) || $value instanceof \\Traversable) {\n $value = new self($value);\n }\n $this->data[$offset] = $value;\n $this->count = count($this->data);\n }\n }", "title": "" }, { "docid": "35080069099a0b079fd0a18e52e25b39", "score": "0.5387065", "text": "public function offsetSet($offset, $value): void\n {\n $this->items[$offset] = $value;\n }", "title": "" }, { "docid": "e97cae7845960387906fcf658faf5b49", "score": "0.53741354", "text": "protected function _setValue($value)\n {\n if (!is_array($value) && !$value instanceof self) {\n throw new InvalidArgumentException('Data must be traversable!');\n }\n $this->_value = $value;\n $this->_length = count($value);\n }", "title": "" }, { "docid": "75baa07e082b8a2195cabe7707e4bf4c", "score": "0.5369389", "text": "public function offsetSet($index, $value)\n { if (is_null($index))\n\t $index = count($this->_data);\n if($this->__isset($index))\n $this->__unset($index);\n $this->__set($index,$value);\n\n }", "title": "" }, { "docid": "635675bd0cdf339bc1d48b9ec58e1b4d", "score": "0.5361845", "text": "public function offsetSet($offset, $value);", "title": "" }, { "docid": "184186073995ef4e76e4ca95e8261d75", "score": "0.535915", "text": "public function populate($item);", "title": "" }, { "docid": "7f6aa7b7ef0148c5de2d37f7f265c247", "score": "0.5346081", "text": "public function __set($name, $value){\n $klass = get_class($this);\n\t // If it's already a PlainObject, no conversion needed\n if ($value instanceof self){}\n\n\t // Convert the array into an instance of this same klass\n\n else if (self::is_array_with_keys($value) )\n\t\t $value = new $klass($value);\n\n\t // If its an actual array, loop through it and sanitize all the values\n\t elseif(is_array($value))\n foreach($value as $k=>$v)\n if ( self::is_array_with_keys($v) )\n $value[$k] = new $klass($v);\n\n\n $this->_data[$name] = $value;\n\n }", "title": "" }, { "docid": "9703db60753451b5d0fbdd0cf37d0e9e", "score": "0.53250754", "text": "public function test_array_access_unset() {\n\t\t$collection = \\Mockery::mock( Collection::class )\n\t\t\t->makePartial();\n\n\t\t$entity = \\Mockery::mock( Entity::class );\n\n\t\t$collection[] = $entity;\n\n\t\t$this->assertEquals( $collection[0], $entity );\n\t\tunset( $collection[0] );\n\t\t$this->assertNull( $collection[0] );\n\t}", "title": "" }, { "docid": "90b2ae66bc65336ddb6cd6a7834c1980", "score": "0.53193504", "text": "public static function set($item, $value) {\n\t\tstrpos ( $item, '.' ) === false or static::$itemcache [$item] = $value;\n\t\treturn \\Arr::set ( static::$items, $item, \\Fuel::value ( $value ) );\n\t}", "title": "" }, { "docid": "f8ae0f11cfc407c61f7ad6ab8d2d0d1b", "score": "0.5316811", "text": "public function test_array_access_retrieval_after_specified_addition() {\n\t\t$collection = \\Mockery::mock( Collection::class )\n\t\t\t->makePartial();\n\n\t\t$entity = \\Mockery::mock( Entity::class );\n\n\t\t$collection[1] = $entity;\n\n\t\t$this->assertEquals( $collection[1], $entity );\n\t}", "title": "" }, { "docid": "745fd337ae89c92bd8415e0275ec096b", "score": "0.52985805", "text": "public function offsetSet($offset, $value)\n {\n if (null === $offset) {\n $this->items[] = $value;\n return;\n }\n\n $this->items[$offset] = $value;\n }", "title": "" }, { "docid": "fbe0aa2ddb8f6f23482b567766b6571c", "score": "0.52954155", "text": "function setArrayOOOI()\n {\n //implementarlo\n }", "title": "" }, { "docid": "2ff022f43c16702c191fac46c88570d4", "score": "0.527449", "text": "public function setItems($items)\r\n {\r\n $this->_items = $items;\r\n }", "title": "" }, { "docid": "2556ef9fb18ccea38064a85d55902587", "score": "0.52629596", "text": "public function offsetSet($offset, $value): void\n {\n if ($this->isValidEntity($value)) {\n if (is_null($offset) || mb_strlen($offset) == 0) {\n $this->list[] = $value;\n } else {\n $this->list[$offset] = $value;\n }\n } else {\n throw new \\InvalidArgumentException(sprintf('This collection does\\'t accept this entity \"%s\"', gettype($value)));\n }\n }", "title": "" }, { "docid": "9bc93bc41bdaceb50d70d6f5a4a867be", "score": "0.52547026", "text": "public function offsetSet ($object, $data = null) {}", "title": "" }, { "docid": "dee0155235aef134d8446a56c1d9f42d", "score": "0.52479684", "text": "public function offsetSet($key, $value) {}", "title": "" }, { "docid": "c5ec92f35926019fb767de5d610707b8", "score": "0.5240689", "text": "public function offsetSet($offset,$value) {\n $this->aData[$offset] = $value;\n }", "title": "" }, { "docid": "d5c189ae45a3668313c845eba4a1cc7e", "score": "0.5240484", "text": "public function offsetSet($offset, $value) { }", "title": "" }, { "docid": "65ab022a01f3abc08a999597f7919777", "score": "0.5233986", "text": "public function setFromArray(array $data)\n {\n $success = false;\n\n foreach ($data as $key => $value) {\n $method = 'set' . ucfirst($key);\n if (method_exists($this, $method)) {\n try {\n $this->$key = $value;\n $success = true;\n }\n catch (Exception $e) {\n // ripple it up\n throw $e;\n }\n }\n }\n\n if(!$success){\n throw new Exception('Attempt to set model from array yielded no properties set for model '.$this->_className.\n '; values to set were the following: ('.implode(',',$data));\n }\n\n }", "title": "" }, { "docid": "738816da94a97f694e941e6c4700cd84", "score": "0.5221973", "text": "private function offsetSet ($offset, $value) {}", "title": "" }, { "docid": "2b4d6ce8605e5be6ed7889f2eb4b8867", "score": "0.52169716", "text": "public function import($array)\n {\n // make sure the item is iterable\n if (!is_array($array) && !is_object($array)) {\n $array = (array) $array;\n }\n \n // now apply the values\n foreach ($array as $k => $v) {\n $this->offsetSet($k, $v);\n }\n \n return $this;\n }", "title": "" }, { "docid": "d531c9717bcad53dbd70d859c5d0ab54", "score": "0.5198836", "text": "public function setItem($scalarResult, $item)\n {\n if (!$scalarResult instanceof Validation_ScalarResultDao) {\n throw new Zend_Exception('Should be a scalar result.');\n }\n if (!$item instanceof ItemDao) {\n throw new Zend_Exception('Should be an item.');\n }\n $scalarResult->setItemId($item->getKey());\n parent::save($scalarResult);\n }", "title": "" }, { "docid": "87a6f167effe49c5c05e225fc6f55ff7", "score": "0.51880217", "text": "public function setCustomItem(string $name, mixed $value): void;", "title": "" }, { "docid": "87a6f167effe49c5c05e225fc6f55ff7", "score": "0.51880217", "text": "public function setCustomItem(string $name, mixed $value): void;", "title": "" }, { "docid": "7000b22afc2b5ffddf4241a8268aaf43", "score": "0.5187049", "text": "public function setItems($items)\n {\n $this->_items = $items;\n }", "title": "" }, { "docid": "837cdf3548fd22a6d2d5240394ef40a3", "score": "0.5178184", "text": "public function setDataItem($name, $value) {\n if (!is_array($this->data) && !($this->data instanceof \\ArrayAccess)) {\n throw new \\Exception(\"Data is not an array.\", 500);\n }\n $this->data[$name] = $value;\n return $this;\n }", "title": "" }, { "docid": "4fd94c4d3a9b9cec80a95cab1e4814ee", "score": "0.517797", "text": "public function offsetSet($offset, $value) {\n if (!is_numeric($offset)) {\n throw new \\InvalidArgumentException(\"Offset must be a number.\");\n }\n\n $this->collection[$offset] = $value;\n }", "title": "" }, { "docid": "1aacf19d3726b981103d5a16f91050cd", "score": "0.51702577", "text": "public function set_data_from_array ( $data )\n\t{\n\t\t$this->_data = $data;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "61accd55efe6791bc1b3a5e2cbd76832", "score": "0.51679", "text": "public function setItems(array $items)\n {\n $this->allObjectsAreValidClass([Item::class],$items);\n $this->items = $items;\n return $this;\n }", "title": "" }, { "docid": "3cf6c77be7b1a7713c049538c267351a", "score": "0.5167809", "text": "public function offsetSet($key, $value)\n {\n if(!($value instanceof AttachOffice)) {\n $value = new AttachOffice($value);\n }\n parent::offsetSet($key, $value);\n }", "title": "" }, { "docid": "9935588f65862879c0c151c29509932f", "score": "0.51552325", "text": "function writeItems($value)\n {\n if (is_array($value)) { $this->_items = $value; }\n else { $this->_items = (empty($value)) ? array() : array($value); }\n }", "title": "" }, { "docid": "c1aba0b3510aad7615e6b4ecb290f884", "score": "0.5153544", "text": "public function offsetSet($offset, $value) {\n\t\t$this->_data[$offset] = $value;\n\t}", "title": "" }, { "docid": "d2087aa55d8b061b7c373c4757b0743c", "score": "0.5152862", "text": "public function set($array)\n\t{\n\t\tforeach ($array as $key => $item)\n\t\t{\n\t\t\t$this->value($key, $item);\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "e2543b366d1da4be73abbd677fb4712b", "score": "0.51441133", "text": "public function offsetSet($key, $value);", "title": "" }, { "docid": "0567f3752f570836e64bc34135e22713", "score": "0.5138808", "text": "abstract public function populate( $item = null );", "title": "" }, { "docid": "0df72475c99e4a283c8426e03205180a", "score": "0.5123476", "text": "public function setItems($items)\n\t{\n\t\t$this->_items = $items;\n\t}", "title": "" }, { "docid": "b4f8197b5578fabac7ee6a429f0a94af", "score": "0.5117137", "text": "public static function setItem($name, $value){\n self::$items[$name] = $value;\n }", "title": "" }, { "docid": "af8e7f212df211e6f1d70b44bb49c1fc", "score": "0.509894", "text": "public function testConstructor_ByValue() {\r\n $arr = array(0, 1);\r\n $col = new Core\\Collection($arr);\r\n $col->set(0, 2);\r\n $this->integer($col->get(0))->isEqualTo(2)\r\n ->integer($arr[0])->isEqualTo(0);\r\n }", "title": "" }, { "docid": "ee7ed2e83c86f9b1f44fa4e61b11ed7a", "score": "0.5097074", "text": "public function offsetSet($offset, $value) {\n\t\t$this->data[$offset] = $value;\n\n\t}", "title": "" }, { "docid": "111be0bc5eb6e52c77f6fa0c459e45d6", "score": "0.5083645", "text": "public function fill(array $array = [])\n {\n $this->collection = $array;\n }", "title": "" }, { "docid": "7494917eb36a6d3ede9e370695520342", "score": "0.5072719", "text": "public function set($collection, $value = null)\n {\n if (func_num_args() === 1) {\n return parent::merge($collection, true);\n }\n $this->_data[$collection] = $value;\n return $this;\n }", "title": "" }, { "docid": "44a31378c70ba8cc93c2d5bb29759ea9", "score": "0.506827", "text": "public function offsetSet($offset, $value)\n\t{\n\t\t$this->_data[$offset] = $value;\n\t}", "title": "" }, { "docid": "8627310b4007a16957bd93769877fa8a", "score": "0.50680864", "text": "public final function setItem($oItem) {\n $this->oItem = $oItem;\n }", "title": "" }, { "docid": "0da5de423ce6f63e8e86ee016c212c33", "score": "0.50658536", "text": "function setValuesFromArray($field, $arr)\r\n {\r\n if (!empty($this->fields[$field])) {\r\n $this->fields[$field]['values'] = $arr;\r\n }\r\n }", "title": "" }, { "docid": "3bab3c1f3c0ff361d154bc59239076cc", "score": "0.5065621", "text": "public function test_array_access_retrieval_after_unspecified_addition() {\n\t\t$collection = \\Mockery::mock( Collection::class )\n\t\t\t->makePartial();\n\n\t\t$entity = \\Mockery::mock( Entity::class );\n\n\t\t$collection[] = $entity;\n\t\t$this->assertSame( $entity, $collection[0] );\n\t}", "title": "" }, { "docid": "6140b3f9fa56cb25f0f2187a2fdf874f", "score": "0.5064224", "text": "public function __construct($givenArray)\n {\n $this->collection = $givenArray;\n }", "title": "" }, { "docid": "4ee478d66000e13e666ee66bb1db60e0", "score": "0.50627023", "text": "public function offsetSet ( $offset , $value )\r\n {\r\n $this->data[$offset] = $value;\r\n }", "title": "" }, { "docid": "892101b4313ef46116dad9ecb979ed36", "score": "0.5059016", "text": "function setFromArray($input) {\n if(is_foreachable($input)) {\n foreach($input as $field_name => $value) {\n if(count($this->protected_fields)) {\n if(in_array($this->protected_fields, $field_name)) {\n continue; // protected field... skip...\n } // if\n } elseif(count($this->allowed_fields)) {\n if(!in_array($field_name, $this->allowed_fields)) {\n continue; // not allowed field... skip...\n } // if\n } // if\n $this->set($field_name, $value);\n } // if\n } // if\n }", "title": "" }, { "docid": "24094de1c4e976d92b82b9cb784d4d2e", "score": "0.504603", "text": "public function offsetSet($offset, $value)\n {\n $this->capsule[$offset] = $value;\n }", "title": "" }, { "docid": "a149792fa285bec1d188eb23f5130270", "score": "0.50458664", "text": "function setArray($index, $value){\r\n\t\tdie('Not implemented');\r\n\t}", "title": "" }, { "docid": "eeb0a58916609ec73a59fb981c102db4", "score": "0.50440687", "text": "public function fromArray($item) {\n $this->setTitle(!empty($item['@title']) ? $item['@title'] : null);\n $this->setXmlUrl(!empty($item['@xmlUrl']) ? $item['@xmlUrl'] : null);\n $this->setHtmlUrl(!empty($item['@htmlUrl']) ? $item['@htmlUrl'] : null);\n $this->setType(!empty($item['@type']) ? $item['@type'] : null);\n }", "title": "" }, { "docid": "70bb3a2aa6a6ed029e027e2f1e414187", "score": "0.50428677", "text": "public function offsetSet ($index, $newval) {}", "title": "" }, { "docid": "3d55b01c67b364339a780a7f2ac233f0", "score": "0.5037447", "text": "public function setValue($value)\n {\n if (is_array($value)) {\n $this->value = $value;\n } else {\n die(\"Value Passed is not Array\");\n }\n }", "title": "" }, { "docid": "b04fdba256fae9ce15e4a7e6d6cc5d73", "score": "0.50365645", "text": "public function setData(array $data)\n {\n $this->data = new \\Expose\\DataCollection($data);\n }", "title": "" }, { "docid": "31acfe10e52b25159935339ac7aeca93", "score": "0.50354594", "text": "public function offsetSet($offset, $value)\n {\n throw new LogicException('Response data may not be mutated using array access.');\n }", "title": "" }, { "docid": "5ce273c724fa237720ae9106ccbabde8", "score": "0.5034501", "text": "public function exchangeArray($data)\n\t{\n\t\t$map = $this->getPropertyMap();\n\t\tforeach ($data as $key => $value) {\n\t\t\tif (false !== ($property = array_search($key, $map))) {\n\t\t\t\t$setterMethodName = 'set'.ucfirst($property);\n\t\t\t\t$this->$setterMethodName($value);\n\t\t\t} else {\n\t\t\t\t// Trying to set an unrecognised property; ignore\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t$key = $this->key;\n\t\tif ($key) {\n\t\t\t// Don't allow hydration to change/lose the key\n\t\t\t$data['key'] = $key;\n\t\t}\n\t\t\n\t\t$map = $this->getPropertyMap();\n\t\tforeach ($map as $property => $column) {\n\t\t\t$setterMethodName = 'set'.ucfirst($property);\n\t\t\t$this->$setterMethodName(isset($data[$column]) ? $data[$column] : null);\n\t\t}\n\t\t*/\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "ab44e19ad1931e8c2511806cf09d8729", "score": "0.50335646", "text": "public function setQueryArrayItem($index, $value)\n\t{\n\t\t$this->query_array[$index] = $value;\n\t}", "title": "" }, { "docid": "93b8116b923a9ed9c71173a30c40a76d", "score": "0.5021275", "text": "public function setItem($val)\n {\n $this->_propDict[\"item\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "a1a69592d374876dbefc3fea9a57ff69", "score": "0.5016797", "text": "public function set(array $data): TypedArray\n {\n foreach ($data as $key => $item) {\n if (! $this->isValid($item)) {\n throw new \\InvalidArgumentException(\"item at key {$key} is not of type {$this->type}\");\n }\n $this->array[] = $item;\n }\n return $this;\n }", "title": "" }, { "docid": "1c8d49ce8ef4f04043be53010f0fba60", "score": "0.5014296", "text": "public function __construct(array $collection = []) {\n $this->collection = $collection;\n $this->rewind();\n }", "title": "" }, { "docid": "87f6452ab24fdbe2e8e0f426864c61f3", "score": "0.5003292", "text": "protected static function createElementFromData(array $item)\n {\n throw new LogicException(sprintf(\n 'The method \"%s::createElementFromData must be implemented to load the Collection Element\"'\n ));\n }", "title": "" } ]
b3dcb36b9bf7d9b86a164c64a6a3324b
TODO: Implement delete() method.
[ { "docid": "7838cf1437f9041bd5446da80856b24e", "score": "0.0", "text": "public function delete($path)\n {\n try{\n $client = new \\GuzzleHttp\\Client(['timeout' =>10]);\n $result = $client->get($this->baseUrl.\"/delete\", ['query' => ['path'=>$path]]);\n if (200 == $result->getStatusCode() && $result = json_decode($result->getBody(), true)) {\n return true;\n }\n }catch (\\Exception $e){\n return false;\n }\n return false;\n }", "title": "" } ]
[ { "docid": "af0643a44ddd78a45d8160d1456861e0", "score": "0.8416342", "text": "public function delete() {}", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "aabaa772cf9b35a8f3677147f4a4eaa3", "score": "0.840339", "text": "protected abstract function delete();", "title": "" }, { "docid": "bed0f0cf89f329db57f22e4d696c2cb0", "score": "0.8368755", "text": "abstract public function delete();", "title": "" }, { "docid": "bed0f0cf89f329db57f22e4d696c2cb0", "score": "0.8368755", "text": "abstract public function delete();", "title": "" }, { "docid": "bed0f0cf89f329db57f22e4d696c2cb0", "score": "0.8368755", "text": "abstract public function delete();", "title": "" }, { "docid": "bed0f0cf89f329db57f22e4d696c2cb0", "score": "0.8368755", "text": "abstract public function delete();", "title": "" }, { "docid": "bed0f0cf89f329db57f22e4d696c2cb0", "score": "0.8368755", "text": "abstract public function delete();", "title": "" }, { "docid": "3795c68099094f43b184b695c451d5ab", "score": "0.8361127", "text": "public function delete() {\n\t\t}", "title": "" }, { "docid": "394ee1a29eb8fbc705dde5527169f2b4", "score": "0.83289003", "text": "public function delete()\n\t{}", "title": "" }, { "docid": "a56e748fde030b8aafb6a892811dafa0", "score": "0.8184681", "text": "public function deleting( ) {\n\n }", "title": "" }, { "docid": "f6af3990b6ceaaa32c24292a13bf6c83", "score": "0.8140254", "text": "public function delete()\r\n {\r\n }", "title": "" }, { "docid": "cd5f1ec42d35c2a9822e2b0de5cbb2b9", "score": "0.81099766", "text": "abstract function delete();", "title": "" }, { "docid": "80702e5a32ba1d7f4d94de9d905730f2", "score": "0.8103949", "text": "public function delete ()\n {\n \n }", "title": "" }, { "docid": "ca760c7acadedc3adc3970ed7a4089c8", "score": "0.81033427", "text": "public function delete() {\n }", "title": "" }, { "docid": "ca760c7acadedc3adc3970ed7a4089c8", "score": "0.81033427", "text": "public function delete() {\n }", "title": "" }, { "docid": "bc9ecafab7a1df0e998ecd1a5cbf516d", "score": "0.81007105", "text": "public function delete () {\n }", "title": "" }, { "docid": "7b48f104a96db5a3cd96f0062bbddf08", "score": "0.807474", "text": "protected function _delete()\n\t{\n\t}", "title": "" }, { "docid": "dec8008a7ff4971074f78c213ebaaa3e", "score": "0.80597645", "text": "public function deleting()\n {\n //\n }", "title": "" }, { "docid": "027a344aecd7bc21880020aa42a45b2e", "score": "0.80330336", "text": "function delete() {\r\n \r\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.8030889", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.8030889", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.8030889", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.8030889", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.8030889", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.8030889", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "857ca450b4133a6bb916ed82187d9907", "score": "0.8020775", "text": "public function delete()\n {\n \n }", "title": "" }, { "docid": "857ca450b4133a6bb916ed82187d9907", "score": "0.8020775", "text": "public function delete()\n {\n \n }", "title": "" }, { "docid": "382f3ab91b49acac1fa997bec97465cc", "score": "0.7987678", "text": "public\n function delete()\n {\n }", "title": "" }, { "docid": "6de915084d42cb5f62ed069fed75bb6d", "score": "0.7967696", "text": "public function delete(){ }", "title": "" }, { "docid": "68ad7c3ff58daae46edb1e1fba5a7a7a", "score": "0.7899588", "text": "public function delete()\n {\n \t$this->setDeleted(true);\n }", "title": "" }, { "docid": "7fbeef1f5c322686c42da3a8a892ea81", "score": "0.7895004", "text": "public function delete(): void;", "title": "" }, { "docid": "959861cd3d3374dcff88f713d256d61f", "score": "0.7891914", "text": "public function delete()\n {\n\n }", "title": "" }, { "docid": "ef0eed083f7e0f44faefc6fcbad5bce3", "score": "0.78069365", "text": "public function delete(): void\n {\n }", "title": "" }, { "docid": "239287136ce040f884fbfd3b2381ffdb", "score": "0.7801781", "text": "function delete()\n {\n }", "title": "" }, { "docid": "476efc7fdfa41a0f0c82d47aec420218", "score": "0.77361995", "text": "function delete()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "466edc20ba092c6ec0857873de3a829c", "score": "0.7721771", "text": "public function delete() {\n\t\t// skip;\n\t}", "title": "" }, { "docid": "d02f7528e50a266dac4d0ed81bcc433e", "score": "0.76996106", "text": "public static function Delete() {\n }", "title": "" }, { "docid": "023637e7dd0341dd3dc089e0181a288d", "score": "0.76366377", "text": "public function delete(){\n }", "title": "" }, { "docid": "6da4dfb181244fe60bacb414ae8e5ff5", "score": "0.7527741", "text": "function delete();", "title": "" }, { "docid": "00a92b43ed089e0a7e16cc76191c680d", "score": "0.7526773", "text": "public function delete()\n {\n $this->deleted = true;\n }", "title": "" }, { "docid": "6bcf4f34fa58c21543e61c1ced84f3e6", "score": "0.7514749", "text": "public function delete()\n {\n $items = $this->item();\n $items->delete();\n parent::delete();\n }", "title": "" }, { "docid": "496131dd729c031b044159dd725bcd25", "score": "0.7395313", "text": "public function deleteIrRemout(){\n }", "title": "" }, { "docid": "8ee36506d5e290090a9e133c4074ee4f", "score": "0.73853594", "text": "public function delete() {\n parent::delete();\n }", "title": "" }, { "docid": "4ba1baae83cced7a86bfe0e8dc3659c5", "score": "0.72848225", "text": "function delete() {\n\t\treturn $this->_delete_id( $this->id() );\n\t}", "title": "" }, { "docid": "d434e2cdc40338f523a40bcd0c8522a0", "score": "0.72206444", "text": "public function delete() {\n $this->client->deleteData($this->uri);\n }", "title": "" }, { "docid": "4ba3bd5fcf43dda309ca5a21026767f8", "score": "0.7208853", "text": "function delete() {\n\t\t$this->setStatus(self::STATUS_DELETED);\n\t\treturn $this->save();\n\t}", "title": "" }, { "docid": "ffeb5ae78f04b1bb64d42a7b8c270b7d", "score": "0.7184566", "text": "public function delete(){ return false; }", "title": "" }, { "docid": "ffeb5ae78f04b1bb64d42a7b8c270b7d", "score": "0.7184566", "text": "public function delete(){ return false; }", "title": "" }, { "docid": "ffeb5ae78f04b1bb64d42a7b8c270b7d", "score": "0.7184566", "text": "public function delete(){ return false; }", "title": "" }, { "docid": "7e7e8f10965a71d674f523d5079f1e46", "score": "0.7184263", "text": "abstract public function delete(): string ;", "title": "" }, { "docid": "21163ea29d89ba9ef5fb824b60d9d475", "score": "0.71723354", "text": "public function delete()\n{\n}", "title": "" }, { "docid": "d88868108e91dc111a465bc18e96c04e", "score": "0.71676666", "text": "public function markDelete();", "title": "" }, { "docid": "1cf5718a57fdb2ed770c3c0bcf99a37b", "score": "0.71597534", "text": "public function doDelete(){ \n }", "title": "" }, { "docid": "5194492e74c1b263f15329775609a2d3", "score": "0.71429384", "text": "public function delete() {\n\t\t// Construct delete query\n $delete_query = \"DELETE FROM \" . static::$tableName . \" \"\n . $this->genPrimaryKeyWhereClause();\n\t\t// Execute delete query\n self::$database->query($delete_query);\n\t}", "title": "" }, { "docid": "079c717dc7b2a9f3c32d5d15fd0c26f8", "score": "0.71347517", "text": "public function delete()\n {\n EM::instance()->remove($this);\n EM::instance()->flush($this);\n }", "title": "" }, { "docid": "c40770957ff407790abdd54f23eb87c9", "score": "0.7131032", "text": "public function deleteAction() {}", "title": "" }, { "docid": "b6c2e51dfa553a51eb7a9b7cf57a008f", "score": "0.7117352", "text": "public function delete(){\n\t\treturn self::_delete(array(\n\t\t\t'id' => $this->id,\n\t\t));\n\t}", "title": "" }, { "docid": "6bc5584339e7406c26be521a2cfea030", "score": "0.7115648", "text": "public function delete(){\n $this->execute = 'delete';\n return $this;\n }", "title": "" }, { "docid": "60c04de65f5160a1c865e13ede50ed38", "score": "0.7114039", "text": "public function delete()\r\n\t{\r\n\t\t$sql = 'DELETE FROM '.static::$_table.' WHERE id=\"'.$this->_obj_id.'\"';\r\n\t\tself::db()->delete($sql);\r\n\t}", "title": "" }, { "docid": "64a38833fc817017c30dd356b65bd4a7", "score": "0.7092338", "text": "public function delete()\n {\n $this->phclass->delete($this);\n }", "title": "" }, { "docid": "f9d0c672c29325f9a820b8582fc5ce87", "score": "0.70897496", "text": "public function on_delete() {}", "title": "" }, { "docid": "27b2343a48eda0a021829ad186b9b1ce", "score": "0.7089292", "text": "public function delete()\n\t{\n\t\t$statement = $this->dbObject->prepare(\n\t\t\t\"DELETE FROM `\"\n\t\t\t. strtolower(get_called_class())\n\t\t\t. \"` WHERE id = :id LIMIT 1;\");\n\n\t\t$statement->bindValue(\":id\", $this->id);\n\t\t$statement->execute();\n\n\t\t$this->id = 0;\n\t\t$this->isNew = true;\n\t}", "title": "" }, { "docid": "504167a4c0997af2384b0ae9d72a9c6b", "score": "0.7066019", "text": "public function delete() { if (static::$markDeleted) {\n //If we are marking deleted (default), the run an Update query\n $qry = \"UPDATE \" . static::$table . \" SET deleted = 1 WHERE \" . static::$pkID . \" = ?\";\n\n } else {\n //Old fashioned :)\n $qry = \"DELETE FROM \" . static::$table . \" WHERE \" . static::$pkID . \" = ? LIMIT 1\";\n \n }\n\n $this->db->Execute($qry, array($this->getID()));\n }", "title": "" }, { "docid": "dd67f1972666bedaf8cf0d6a943216a3", "score": "0.70559883", "text": "public function delete(): bool;", "title": "" }, { "docid": "34d9d37cba05835d4d179e098b7ba3d2", "score": "0.7038514", "text": "public function delete(){\n return true;\n }", "title": "" }, { "docid": "84ffd5d41241886a42efaaa6c4cb6c45", "score": "0.7035478", "text": "public function delete()\n {\n self::remove($this->key);\n $this->key = null;\n $this->value = null;\n }", "title": "" }, { "docid": "b43cd1068cb2ac7ddc10b276c35db1d2", "score": "0.7031574", "text": "protected function _afterDelete()\r\n\t{}", "title": "" }, { "docid": "a50217d315184108f90eb059b0b083f5", "score": "0.70299125", "text": "abstract public static function deleted($callback);", "title": "" }, { "docid": "a50217d315184108f90eb059b0b083f5", "score": "0.70299125", "text": "abstract public static function deleted($callback);", "title": "" }, { "docid": "952f16dc99e658bbfdd06de2fb3c888a", "score": "0.7019708", "text": "public function deleteFromDatabase();", "title": "" }, { "docid": "dd5bf64fc36f08aa75936534bd90a764", "score": "0.7013513", "text": "public function delete() {\r\n\t\t\r\n\t\treturn static::p()->table->delete($this);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2e58e2be49398f4277a02eb4fdcda1f3", "score": "0.698797", "text": "public function deleteAction()\n\t{\n\n\t}", "title": "" }, { "docid": "9bbf1b4a464f97619c81d7dbb88f0bde", "score": "0.69733185", "text": "public function delete() {\n throw new Exception('Not Implemented', 501);\n }", "title": "" }, { "docid": "bf91f9e278f288642f4dd424c2659fff", "score": "0.6962637", "text": "protected function onDelete(): Delete\r\n {\r\n }", "title": "" }, { "docid": "6dda8c4098d31144ba244df1cafded25", "score": "0.6955459", "text": "abstract public static function deleting($callback);", "title": "" }, { "docid": "45b89f2c304f609379eec689eb08b76c", "score": "0.6937452", "text": "abstract public function delete($id);", "title": "" }, { "docid": "58966f149b473bf3a69f29ff695b7092", "score": "0.69340765", "text": "public function delete() {\n\t\t$args = func_get_args() ;\n\t\treturn $this->__call('delete', $args) ;\n\t}", "title": "" }, { "docid": "438239b6a0bc25adeb4333d41ce3f956", "score": "0.6930686", "text": "function delete() {\n\t\t\n\t\t$this->queryCompiler->compile(\"delete\");\n\n\t\treturn $this->getResult('get');\n\n\t}", "title": "" }, { "docid": "b326eab422388c5e2070b491c4a6a635", "score": "0.69019717", "text": "abstract public function _delete($obj);", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.6895939", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.6895939", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.6895939", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.6895939", "text": "public function remove();", "title": "" } ]
6c5040a4d4b730fb87cf3a6e5567634b
Check if 'ping_histogram_125' has a value
[ { "docid": "d6a2121b35aa0a8ee9ed3001bb277dd0", "score": "0.7782624", "text": "public function hasPingHistogram125()\n {\n return $this->ping_histogram_125 !== null;\n }", "title": "" } ]
[ { "docid": "254d25c44d38415ae3285c2b9d1889f6", "score": "0.7584216", "text": "public function hasPingHistogram75()\n {\n return $this->ping_histogram_75 !== null;\n }", "title": "" }, { "docid": "b9ed4dbb69a0a2001a1567a468ab96db", "score": "0.7508378", "text": "public function hasPingHistogram25()\n {\n return $this->ping_histogram_25 !== null;\n }", "title": "" }, { "docid": "3bec9351bbbe435ce731e4d65ed23ae3", "score": "0.7493801", "text": "public function hasPingHistogram100()\n {\n return $this->ping_histogram_100 !== null;\n }", "title": "" }, { "docid": "7f8154eacd7eab5e3b1c367594beca87", "score": "0.72587025", "text": "public function hasPingHistogram300()\n {\n return $this->ping_histogram_300 !== null;\n }", "title": "" }, { "docid": "21db01fb814692b21d2d2de48d95421b", "score": "0.72439855", "text": "public function hasPingHistogram200()\n {\n return $this->ping_histogram_200 !== null;\n }", "title": "" }, { "docid": "597c22db69a9b45f25caea1d98788b07", "score": "0.7148053", "text": "public function hasPingHistogram50()\n {\n return $this->ping_histogram_50 !== null;\n }", "title": "" }, { "docid": "4386ba4f9fc3ba6e8a8ca375aad5defd", "score": "0.708543", "text": "public function hasPingHistogram150()\n {\n return $this->ping_histogram_150 !== null;\n }", "title": "" }, { "docid": "0f635af341368a5d27ff16578ca6baec", "score": "0.7041175", "text": "public function hasPingHistogramMax()\n {\n return $this->ping_histogram_max !== null;\n }", "title": "" }, { "docid": "76eef50acce89dbc99685f4ca4d9a7e7", "score": "0.6424037", "text": "public function hasPingNtile75th()\n {\n return $this->ping_ntile_75th !== null;\n }", "title": "" }, { "docid": "99ff9640caeae532e928d5f8ae60ddd0", "score": "0.61001694", "text": "public function hasPingNtile95th()\n {\n return $this->ping_ntile_95th !== null;\n }", "title": "" }, { "docid": "f99591c4d03da58c8e6353dc32eda1cc", "score": "0.60234123", "text": "public function hasPingNtile50th()\n {\n return $this->ping_ntile_50th !== null;\n }", "title": "" }, { "docid": "ca13c2a1019e3f05647e9e76d0f2695a", "score": "0.5946139", "text": "public function hasPingNtile98th()\n {\n return $this->ping_ntile_98th !== null;\n }", "title": "" }, { "docid": "9e29c272e76510840fbefc10149b575a", "score": "0.5930437", "text": "function get_ping_status() {\n // Generate a token based on necessary parameters.\n\n $ts = get_isotime();\n\n try {\n $accesskeyid = get_config('wooclap', 'accesskeyid');\n } catch (Exception $e) {\n // Could not get access key id => ping can be considered failed.\n return false;\n }\n\n $data_token = [\n 'accessKeyId' => $accesskeyid,\n 'ts' => $ts,\n 'version' => get_config('mod_wooclap')->version,\n ];\n $data = [\n 'accessKeyId' => $accesskeyid,\n 'ts' => $ts,\n 'token' => wooclap_generate_token('PING?' . wooclap_http_build_query($data_token)),\n 'version' => get_config('mod_wooclap')->version,\n ];\n\n $ping_url = wooclap_get_ping_url();\n\n // Use curl to make a call and check the result.\n\n $curl = new wooclap_curl();\n $headers = [];\n $headers[0] = \"Content-Type: application/json\";\n $headers[1] = \"X-Wooclap-PluginVersion: \" . get_config('mod_wooclap')->version;\n $curl->setHeader($headers);\n $response = $curl->get(\n $ping_url . '?' . wooclap_http_build_query($data)\n );\n $curlinfo = $curl->info;\n\n if (!$response || !is_array($curlinfo) || $curlinfo['http_code'] != 200) {\n return false;\n }\n\n $response_data = json_decode($response);\n return $response_data->keysAreValid;\n}", "title": "" }, { "docid": "4690c674ab217b7a39ef1ead95865a31", "score": "0.5870901", "text": "public function hasPingNtile5th()\n {\n return $this->ping_ntile_5th !== null;\n }", "title": "" }, { "docid": "964bfee2f6501bd722385c828d09b6c1", "score": "0.58012265", "text": "public function hasLocationPing(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "ac95c38de77fe5a92b96bf0fc80a7e13", "score": "0.5699565", "text": "public function hasJitterHistogram10()\n {\n return $this->jitter_histogram_10 !== null;\n }", "title": "" }, { "docid": "12dd14db97947bebaa2b97a1a052287c", "score": "0.5646484", "text": "public function hasUpdateParticleLatency(){\n return $this->_has(13);\n }", "title": "" }, { "docid": "b8c684051ccbefb521d071c689a4f0f2", "score": "0.5636104", "text": "public function hasQualityHistogram100()\n {\n return $this->quality_histogram_100 !== null;\n }", "title": "" }, { "docid": "7239b6d6cf85c0a727fc14b0b1ac0676", "score": "0.55806005", "text": "public function hasQualityHistogram75()\n {\n return $this->quality_histogram_75 !== null;\n }", "title": "" }, { "docid": "4cc438d840fefdc494646e35f6197084", "score": "0.5487237", "text": "public function hasQualityHistogram99()\n {\n return $this->quality_histogram_99 !== null;\n }", "title": "" }, { "docid": "34c3cec5d59211b599632e1499884dd4", "score": "0.5478921", "text": "function mention_get_myalerts_status()\n{\n\tglobal $db;\n\n\tif($db->table_exists('alert_settings') && $db->table_exists('alert_setting_values'))\n\t{\n\t\t$query = $db->simple_select('alert_settings', \"*\", \"code='mention'\");\n\n\t\tif($db->num_rows($query) == 1)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "6eded1712330aa333555231b2a7a4ea9", "score": "0.5463506", "text": "public function hasAlert(){\n return $this->_has(5);\n }", "title": "" }, { "docid": "b1c6d701eb58aabce74ff47df0fd5150", "score": "0.5459467", "text": "public function hasLatency(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "c64a0191cde4eaaa2bf8a7cac75540c8", "score": "0.54579055", "text": "public function hasHealth(){\n return $this->_has(8);\n }", "title": "" }, { "docid": "d3fc1667578e09c2071074afa272e9b6", "score": "0.5455603", "text": "public function hasJitterHistogram1()\n {\n return $this->jitter_histogram_1 !== null;\n }", "title": "" }, { "docid": "52c7a66eb9684db78ee50ed7d3ddc34a", "score": "0.543232", "text": "public function hasScanData(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "92a8da769a123356f152afd612f89abf", "score": "0.54149806", "text": "function mention_get_myalerts_status()\n{\n\tglobal $db;\n\n\tif($db->table_exists('alert_settings'))\n\t{\n\t\t$query = $db->simple_select('alert_settings', \"*\", \"code='mention'\");\n\t\treturn ($db->num_rows($query) == 1);\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "9ac29b8f8c6f41e4bd42de35557b8b73", "score": "0.53721654", "text": "public function hasJitterHistogram20()\n {\n return $this->jitter_histogram_20 !== null;\n }", "title": "" }, { "docid": "7deb33c2823c5df0d9affd138491bb23", "score": "0.5368344", "text": "public function hasHighValue(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "a8dbd0824a500fcf5de142c4bba2f13f", "score": "0.53557307", "text": "public function hasQualityHistogram97()\n {\n return $this->quality_histogram_97 !== null;\n }", "title": "" }, { "docid": "a96e2abf2715cac1ee0f9dd00a308c73", "score": "0.53388804", "text": "public function hasJitterHistogram5()\n {\n return $this->jitter_histogram_5 !== null;\n }", "title": "" }, { "docid": "0890977f02a1cc5d7c19dadd088d7de6", "score": "0.5308462", "text": "public function ping()/*# : bool */;", "title": "" }, { "docid": "3402cfceafdae527440eee01b6693ea0", "score": "0.5290909", "text": "public function is_tracking_empty()\n {\n\n global $wpdb;\n $table_name = $wpdb->prefix . $this->get('slug') . \"_tracking\";\n $total_items = $wpdb->get_var(\"SELECT COUNT(*) FROM $table_name\");\n\n if (intval($total_items, 10) === 0) {\n return true;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "de0af8c968288776fb3540f0b37dde54", "score": "0.5286515", "text": "private function ping() {\n return $this->mailchimpApi->get('ping') ? true : false;\n }", "title": "" }, { "docid": "fa05986524935dba56d372fe5e89a630", "score": "0.5285603", "text": "public function hasMonitoringService(){\n return $this->_has(7);\n }", "title": "" }, { "docid": "ee58301fb8a66de102450d464c9a746c", "score": "0.52712524", "text": "public function hasQualityHistogram50()\n {\n return $this->quality_histogram_50 !== null;\n }", "title": "" }, { "docid": "f3e41f0af1a1c5717b166a7d8daad6ec", "score": "0.52663153", "text": "function isAllZeroDataPoint($dp) {\n foreach ($GLOBALS['stat_categories'] as $stat_name=>$stat_cat_num) {\n if ($dp['fields'][$stat_name] != 0) return false;\n }\n if ($dp['fields']['points'] != 0) return false;\n\n return true;\n}", "title": "" }, { "docid": "d765a5dd100b73bbb202021287234863", "score": "0.52661", "text": "function is_housingReport(){\n\t\tglobal $_SESSION;\n\t\treturn $_SESSION['HousingReport'];\n\t}", "title": "" }, { "docid": "f243e23aaa4c262f4290344f31b5acc0", "score": "0.5252932", "text": "public function hasValue(){\n return $this->_has(7);\n }", "title": "" }, { "docid": "20ee1571d1c8fa819e4bcd98ce5ee495", "score": "0.52485067", "text": "public function hasPlayerLatency(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "f13688c17979d8e32ca9bef9742bf5bc", "score": "0.52264404", "text": "public function testGetHistogramApiTwitter()\n {\n $response = $this->runApp('GET', '/histogram/hmmIdontexist');\n\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertContains('{\n \"error\": {\n \"code\": 34,\n \"message\": \"Sorry, that page does not exist.\"\n }\n}', (string) $response->getBody());\n }", "title": "" }, { "docid": "c96cecca9aa20280b4dddd904670827a", "score": "0.5222428", "text": "public function testOnPingResponse()\n {\n $this->plugin->onPingResponse();\n\n $expected = null;\n $actual = $this->plugin->getLastPing();\n $this->assertEquals($expected, $actual);\n }", "title": "" }, { "docid": "494a4e204889bc2f5f836bbf462c95bd", "score": "0.5220677", "text": "function has_scan_data()\r\n {\r\n global $wpdb;\r\n //For scanned data the meta_key1 column valu is 'file_change_detection', meta_value1 column value is 'file_scan_data'. Then the data is stored in meta_value4 column.\r\n $aiowps_global_meta_tbl_name = AIOWPSEC_TBL_GLOBAL_META_DATA;\r\n $sql = $wpdb->prepare(\"SELECT * FROM $aiowps_global_meta_tbl_name WHERE meta_key1=%s AND meta_value1=%s\", 'file_change_detection', 'file_scan_data');\r\n $resultset = $wpdb->get_row($sql, OBJECT);\r\n if($resultset){\r\n $scan_data = maybe_unserialize($resultset->meta_value4);\r\n if(!empty($scan_data)){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "bc6d37e00433b64dd09031fdf4cad3e0", "score": "0.51962715", "text": "public function hasParticleIndex(){\n return $this->_has(5);\n }", "title": "" }, { "docid": "caedc927e7bdfb39fea09f8c97179eab", "score": "0.5191943", "text": "public function hasUpdateParticle(){\n return $this->_has(7);\n }", "title": "" }, { "docid": "6e48641046cba55eaaa6eb351d9c8ed2", "score": "0.51916283", "text": "public function hasHealth(){\n return $this->_has(4);\n }", "title": "" }, { "docid": "6fd247b3a94dc5d4f7c0ce28fdd612eb", "score": "0.5186335", "text": "public function hasDesiredMonitoringService(){\n return $this->_has(5);\n }", "title": "" }, { "docid": "894392e22033b0d0c02ca111405baec4", "score": "0.51809025", "text": "public function analyze_status_data()\n\t{\n\t\t$errors = false;\n\t\tif (!$this->host_status()) {\n\t\t\t$errors[] = 'Faled to fetch host_status';\n\t\t}\n\n\t\tif (!$this->service_status()) {\n\t\t\t$errors[] = 'Failed to fetch service_status';\n\t\t}\n\n\t\tif (!$this->calculate_health()) {\n\t\t\t$errors[] = 'Failed to calculate health';\n\t\t}\n\n\t\treturn empty($errors) ? true : false;\n\t}", "title": "" }, { "docid": "ee8f7068ea7b634661ae9c8c206e4bf7", "score": "0.5163813", "text": "public function hasStatusMessage(){\n return $this->_has(5);\n }", "title": "" }, { "docid": "0f24cf18310255e880e99635356309c5", "score": "0.5151369", "text": "public function hasStatusMessage(){\n return $this->_has(108);\n }", "title": "" }, { "docid": "f19bdf6ed3c863eb16b2204ccdb6fd85", "score": "0.5143772", "text": "function ndf_check_more_info_tracking(){\n\t$ndf_outbound_clicks_track = get_option( 'ndf_outbound_clicks_track', 0 );\n\t$ndf_outbound_clicks_more_info_track = get_option( 'ndf_outbound_clicks_more_info_track', 0 );\n\n\tif( $ndf_outbound_clicks_track == '1' && $ndf_outbound_clicks_more_info_track == '1' ){\n\t\treturn true;\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "0901a7a1a36d08783c69ada38161fd48", "score": "0.51422673", "text": "public function hasUpdateParticleFallback(){\n return $this->_has(10);\n }", "title": "" }, { "docid": "847011642eccb61209371f75e5cd9f25", "score": "0.511616", "text": "public static function isStatisticsVisible()\n\t{\n\t\treturn (int) self::getFieldFromConfig('is_stat', 'vapIsStatistics');\n\t}", "title": "" }, { "docid": "488d03d498695640b555ef150139ea4b", "score": "0.5110764", "text": "protected function configHitsLottery(array $lottery)\n {\n return mt_rand(1, $lottery[1]) <= $lottery[0];\n }", "title": "" }, { "docid": "4613af5287b966d9d9b5ba7e542c990d", "score": "0.5096958", "text": "public function hasStatistics()\n\t{\n\t\treturn (\n\t\t\t$this->getState()->wasStartedSending()\n\t\t\t&&\n\t\t\t!$this->getState()->isPlanned()\n\t\t\t&&\n\t\t\t$this->getMessage()->hasStatistics()\n\t\t);\n\t}", "title": "" }, { "docid": "015a9c5a57e688facf5acc7f260db13f", "score": "0.5093879", "text": "public function hasData(){\n return $this->_has(9);\n }", "title": "" }, { "docid": "511c3469cae87700be41be14a1261828", "score": "0.5060005", "text": "protected function hasBadMeterReadings() {\n return count($this->badMeterReadings) > 0;\n }", "title": "" }, { "docid": "9f65bceab0cb3d74e711ab48fef0f12d", "score": "0.5059724", "text": "public function hasStatusMessage(){\n return $this->_has(104);\n }", "title": "" }, { "docid": "ad3d75bfee33185c6aa47765a4f018df", "score": "0.5053946", "text": "public function hasBottomScan(){\n return $this->_has(12);\n }", "title": "" }, { "docid": "ad3d75bfee33185c6aa47765a4f018df", "score": "0.5053946", "text": "public function hasBottomScan(){\n return $this->_has(12);\n }", "title": "" }, { "docid": "459d6bac15fe32f68f00280021602f21", "score": "0.504813", "text": "public function hasQualityHistogram1()\n {\n return $this->quality_histogram_1 !== null;\n }", "title": "" }, { "docid": "c8c77f13fc95d7c59af8d2ca4ec3cf2f", "score": "0.5043288", "text": "function check_notification_alert()\n{\n global $db;\n $rid = $_SESSION['id'];\n $query = \"SELECT `email`, `email_alerts`, `phone`, `phone_alerts`, `alert_prompt` FROM `user_info` WHERE `userid`=$rid\";\n $result = $db->query($query);\n if (!$result || $result->num_rows != 1)\n {\n return db_error();\n }\n\n $info = $result->fetch_assoc();\n $check = $info['alert_prompt'] != 0 &&\n ($info['email_alerts'] == 0 || strlen($info['email']) == 0) &&\n ($info['phone_alerts'] == 0 || $info['phone'] == 0);\n\n $check = $check ? '1' : '0';\n return \"{ \\\"should_check\\\" : $check }\";\n}", "title": "" }, { "docid": "3ff92e123744f26d156b200fc48f547e", "score": "0.5040371", "text": "public function checkIfAllShipSink()\n {\n \t$totalShips = Session::get('totalShipsOnBoard');\n \tif ($totalShips < 1) {\n \t\treturn true;\n \t}else{\n \t\treturn false;\n \t}\n }", "title": "" }, { "docid": "5bd34e9065ff498a7c72fdbde08a10b5", "score": "0.5040152", "text": "public function hasUpdateParticleOffset(){\n return $this->_has(11);\n }", "title": "" }, { "docid": "fc090278c66bb436bce5979c5984243c", "score": "0.5037012", "text": "function check_vcsa_monitoring($options) {\n $api_session = apiAuth($options);\n $result = apiMonitoringCheck($api_session, $options);\n foreach($result as $metric){\n //echo print_r($metric, TRUE);\n foreach($metric as $stat){\n //echo print_r($stat, TRUE);\n if(is_array($stat->data)){\n $pointName = $stat->name;\n if(strtoupper($pointName) == \"NET.RX.ACTIVITY.ETH0\"){\n $pointCount = count($stat->data);\n $pointReso = $stat->interval;\n $avg = round(array_sum($stat->data)/count($stat->data), 2);\n //$avg = $avg.\"kbps\";\n }elseif(strtoupper($pointName) == \"NET.TX.ACTIVITY.ETH0\"){\n $pointCount = count($stat->data);\n $pointReso = $stat->interval;\n $avg = round(array_sum($stat->data)/count($stat->data), 2);\n //$avg = $avg.\"kbps\";\n }else{\n $pointCount = count($stat->data);\n $pointReso = $stat->interval;\n $avg = round(array_sum($stat->data)/count($stat->data), 2); \n }\n \n if(strtoupper($pointName) == \"MEM.UTIL\"){\n $display = formatBytes($avg);\n $avg = round($avg / \"1024\", 2);\n if($avg >= \"1\" && $avg <= '1024'){\n $avg = round($avg / \"1024\");\n }\n }elseif(strtoupper($pointName) == \"CPU.UTIL\"){\n $display = $avg.\"%\";\n }\n }\n }\n }\n if($avg >= $options['critical']){\n nagios_exit(\"CRITICAL - \".strtoupper($pointName).\" AVERAGE for \".strtoupper($pointReso).\" (\".$avg.\") is greater than \".$options['critical'].\" | \".$pointName.\"=\".$avg.\" \\n\\n\", STATUS_CRITICAL);\n }else{\n nagios_exit(\"OK - \".strtoupper($pointName).\" AVERAGE for \".strtoupper($pointReso).\" (\".$avg.\") is less than \".$options['critical'].\" | \".$pointName.\"=\".$avg.\" \\n\\n\", STATUS_OK);\n } \n}", "title": "" }, { "docid": "9a15db3293ce7b771ac156561df05e0f", "score": "0.5033541", "text": "private function hasProfiling()\n\t{\n\t\t$result = $this->setQuery(\"SHOW VARIABLES LIKE 'have_profiling'\")->loadAssoc();\n\n\t\treturn isset($result);\n\t}", "title": "" }, { "docid": "aeae343a84a8b40402415da8a36ef857", "score": "0.5006127", "text": "function does_twitter_is_up(){\n\t$data = twitter_call(\"help/test\");\n\t$result = (string)json_decode($data);\n\tif(!empty($result) && $result == 'ok'){\n\t\treturn true;\n\t}else{\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "df92becdc731aa4cd3f414f3cad14b2c", "score": "0.50039154", "text": "public function hasQualityHistogram90()\n {\n return $this->quality_histogram_90 !== null;\n }", "title": "" }, { "docid": "53fe32079175a04eab2ff3cf5ef46e9f", "score": "0.500213", "text": "public function hasUsedpoint(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "4ca993f9315d287d7502a6d71ff76f62", "score": "0.49905574", "text": "public static function has_log_report() : bool;", "title": "" }, { "docid": "e2a208704cadf46eda9dbad4477afc95", "score": "0.49811894", "text": "public function hasQualityHistogramDead()\n {\n return $this->quality_histogram_dead !== null;\n }", "title": "" }, { "docid": "f830818d4458088bd1c210ccc11de6c0", "score": "0.4966977", "text": "public function healthCheck(): bool;", "title": "" }, { "docid": "139018911fe115acf848fcce93a6acbe", "score": "0.4960039", "text": "public function hasLowValue(){\n return $this->_has(4);\n }", "title": "" }, { "docid": "9e4bc0e432163769c93e2bcf7e8e1077", "score": "0.49385893", "text": "public function hasBottomScan(){\n return $this->_has(11);\n }", "title": "" }, { "docid": "11c68054f479e6dcea9b8629b1d6f03b", "score": "0.49332783", "text": "function RawCheck ( &$info )\r\n {\r\n\r\n $no_flood = TRUE;\r\n\r\n foreach ( $this->rules as $interval=>$limit )\r\n {\r\n if ( ! isset ( $info[$interval] ) )\r\n {\r\n $info[$interval]['time'] = time ( );\r\n $info[$interval]['count'] = 0;\r\n }\r\n\r\n $info[$interval]['count'] += 1;\r\n\r\n if ( time ( ) - $info[$interval]['time'] > $interval )\r\n {\r\n $info[$interval]['count'] = 1;\r\n $info[$interval]['time'] = time ( );\r\n }\r\n\r\n if ( $info[$interval]['count'] > $limit )\r\n {\r\n $info[$interval]['time'] = time ( );\r\n $no_flood = FALSE;\r\n }\r\n\r\n // The following two lines can be used for debugging\r\n // echo $info[$interval]['count'].' ';\r\n // echo $info[$interval]['time'].'<br>';\r\n\r\n } // foreach\r\n\r\n return $no_flood;\r\n\r\n }", "title": "" }, { "docid": "2d1f07bfb4f1044a3e4ab75c1a7c5c31", "score": "0.4930551", "text": "public function hasFoundData(){\n return $this->_has(3);\n }", "title": "" }, { "docid": "7b5d02b3de364a073ddc059b990f5baa", "score": "0.4929805", "text": "public function verify_stat($stats_command){\n\t\treturn self::verify_execute_management_script(TEST_HOST_1, STATS_SCRIPT, $stats_command);\n\t}", "title": "" }, { "docid": "f8074674c8ab33c83c8c3c9ab09093c3", "score": "0.49296844", "text": "public function check_oembed_ping( $retval ) {\n\t\tself::$ping = true;\n\t\treturn $retval;\n\t}", "title": "" }, { "docid": "1ba4cea3b32d330d87ccdcb820bff81b", "score": "0.49186477", "text": "private function parseStatistics()\n {\n $this->pageData += [\n 'vendor' => 'AMD',\n 'name' => 'APU/GPU',\n 'event' => 'N/A',\n 'vertex' => 'N/A',\n 'texture' => 'N/A',\n 'shaderexp' => 'N/A',\n 'sequencer' => 'N/A',\n 'shaderinter' => 'N/A',\n 'scancon' => 'N/A',\n 'primassem' => 'N/A',\n 'depthblk' => 'N/A',\n 'colorblk' => 'N/A',\n ];\n\n // radeontop data doesn't follow a standard object format -- need to parse CSV and then explode by spaces\n $data = explode(\", \", substr($this->stdout, strpos($this->stdout, 'gpu')));\n $count = count($data);\n if ($count > 0) {\n foreach ($data AS $metric) {\n // metric util% value\n $fields = explode(\" \", $metric);\n if (isset(self::STATISTICS_KEYMAP[$fields[0]])) {\n $values = self::STATISTICS_KEYMAP[$fields[0]];\n if ($this->settings['DISP' . strtoupper($values[0])] || $this->settings['DISP' . strtoupper($values[2])]) {\n $this->pageData[$values[0]] = $this->roundFloat($this->stripText('%', $fields[1]), 1) . '%';\n if (isset($fields[2])) {\n $this->pageData[$values[1]] = $this->roundFloat(\n trim(\n $this->stripText(\n ['mb','ghz'],\n $fields[2]\n )\n ), 2\n );\n }\n } elseif ($fields[0] == 'gpu') {\n // GPU Load doesn't have a setting, for now just pass the check\n $this->pageData[$values[0]] = $this->roundFloat($this->stripText('%', $fields[1]), 1) . '%';\n }\n }\n }\n unset($data, $this->stdout);\n } else {\n $this->pageData['error'][] = Error::get(Error::VENDOR_DATA_NOT_ENOUGH, \"Count: $count\");\n }\n $this->pageData = array_merge($this->pageData, $this->getSensorData());\n\n $this->echoJson();\n }", "title": "" }, { "docid": "fae2d95f2dee32dff78dfd5d22f91221", "score": "0.49075133", "text": "public function hasPingback()\n {\n $response = $this->_getResponse();\n $pingHeader = $response->getHeader('X-Pingback');\n if (null !== $pingHeader) {\n $this->setPingXmlRpc($pingHeader);\n return true;\n }\n $matches = array();\n if (preg_match('#<link rel=\"pingback\" href=\"([^\"]+)\" ?/?>#',\n $response->getBody(),\n $matches)) {\n // If regular expression is used, only the first match should be\n // used, as per the specification\n $this->setPingXmlRpc($matches[1]);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "5820738acb47c1bb49204b198ecea2a5", "score": "0.49067712", "text": "function memcache_getStats($memcached = null)\n {\n trigger_error('This function is yet not implemented', E_USER_WARNING);\n return false;\n }", "title": "" }, { "docid": "2f68ccdf0b601c57997dc11d04766f1e", "score": "0.4901012", "text": "public function hasLabelFingerprint(){\n return $this->_has(5);\n }", "title": "" }, { "docid": "a6847b7b47527039b73bd99c928a68f0", "score": "0.48963878", "text": "public function hasTemperature(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "b80bfcde0d9defadb7213f32d7ac8597", "score": "0.48963755", "text": "public function hasEndpoint(){\n return $this->_has(102);\n }", "title": "" }, { "docid": "4f775c9b3f7989095064d2c3e2a7120e", "score": "0.48705506", "text": "function isIPbanned($c, $long) {\nglobal $config_table;\nif ($long == -1 || $long === FALSE) return true;\n$sql = \"SELECT count(*) as count FROM `${config_table}_ipban` WHERE (($long>=ip) AND ($long<=(ip+`range`)))\";\n$res = mysql_query($sql,$c);\n$row = mysql_fetch_object($res);\n$count = $row->count;\nif ($count >= 1) return true;\nreturn false;\n}", "title": "" }, { "docid": "dd642bdf50696d6f8cf867b1a02e8fe0", "score": "0.4867188", "text": "function is_bmtpalert(){\n\t\treturn $_SESSION['BMTPAlert'];\n\t}", "title": "" }, { "docid": "12659231a04f1df471370f4318564cfd", "score": "0.4861885", "text": "public function hasJitterHistogramNegligible()\n {\n return $this->jitter_histogram_negligible !== null;\n }", "title": "" }, { "docid": "ed3aa4a20fed3a6836f319bec1e97a59", "score": "0.48554713", "text": "function syslog_stats($getstats) {\n\n\t// set to zero if empty\n\tforeach ($getstats as $key => &$value) {\n\t if ( empty($value) ) $value = '0';\n\t}\n\tunset ($value);\n\n\textract($getstats);\n\tsyslog(LOG_NOTICE, \"stats_hour:$stats_hour stats_day:$stats_day stats_month:$stats_month stats_total:$stats_total cumulative:$cumulative\");\n\treturn 0;\n}", "title": "" }, { "docid": "28218c85c51b4a8eac82581e69845c97", "score": "0.48532787", "text": "public function hasQualityHistogram95()\n {\n return $this->quality_histogram_95 !== null;\n }", "title": "" }, { "docid": "de3dec32d77c565d8b4dc1bd3a57e15c", "score": "0.48527575", "text": "public function hasBinlogTransaction(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "de3dec32d77c565d8b4dc1bd3a57e15c", "score": "0.48527575", "text": "public function hasBinlogTransaction(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "8dc90e68a154a92a5b0d87a291116133", "score": "0.48482448", "text": "public function hasHighKey(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "e8c7e71e2eb00cf555af27195de619bf", "score": "0.48395392", "text": "private static function active(string $statistic = \"\") : bool\n {\n return empty($statistic) ? !empty(self::$statistics) : isset(self::$statistics[$statistic]);\n }", "title": "" }, { "docid": "dc5d4a4094198c1545d1b5eeff623cc5", "score": "0.4835178", "text": "public function ping() :bool;", "title": "" }, { "docid": "100f4298adb5d0aa0256556218c0e519", "score": "0.48344374", "text": "public function hasStatus(){\n return $this->_has(107);\n }", "title": "" }, { "docid": "cb04e2289402584b9c5fa300190fca7c", "score": "0.4829731", "text": "public function ping():bool;", "title": "" }, { "docid": "22dbb29d8ac7bd22a7d65bb5e74aee30", "score": "0.4829302", "text": "public function hasTrackback()\n {\n $response = $this->_getResponse();\n $matches = array();\n if (preg_match('#trackback.ping=\"(.*?)\"#',\n $response->getBody(),\n $matches)) {\n $this->setTrackbackXmlRpc($matches[1]);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "099ba1b662dbe96a0c6cfbfad1d4ab8e", "score": "0.48259693", "text": "public function hasLabelFingerprint(){\n return $this->_has(16);\n }", "title": "" }, { "docid": "4a2834d97c5dbf70994c7927800e7e89", "score": "0.4823568", "text": "public static function hasPreviousStatistics()\n\t\t{\n\t\t\treturn Stats::all()->count() != 0;\n\t\t}", "title": "" }, { "docid": "a451f0e4a4799f0af9c2732f52376199", "score": "0.48220778", "text": "function infrared_available($lower_bound, $upper_bound)\r\n{\r\n\tglobal $recv_ht_id;\r\n\t\r\n\t$unit = ht_ioctl($recv_ht_id, \"get div\"); // in number clock stick\r\n\t$unit = $unit * 1000000 / BASIC_CLOCK; // in microsecond\r\n\t$lower_bound /= $unit;\r\n\t$upper_bound /= $unit;\r\n\t\r\n\t$count = ht_ioctl($recv_ht_id, \"get count 1\");\r\n\t\r\n\tif( ($count >= $lower_bound) && ($count <= $upper_bound))\r\n\t\treturn true;\r\n\t\r\n\treturn false;\r\n}", "title": "" } ]
63009f5c396e79b8d7bdf7a8f2560a30
Mengambil value dari form dengan method POST
[ { "docid": "05c8888c7a0cfe129dd3a2dc46b5fe63", "score": "0.0", "text": "public function store()\n {\n $name = $this->request->getPost('nama');\n $desc = $this->request->getPost('keterangan');\n $code = $this->request->getPost('pelayanan_id');\n\n\n // Membuat array collection yang disiapkan untuk insert ke table\n $data = [\n 'nama' => $name,\n 'keterangan' => $desc,\n 'pelayanan_id' => $code\n ];\n\n /* \n Membuat variabel simpan yang isinya merupakan memanggil function \n insert_loket dan membawa parameter data \n */\n $simpan = $this->loket->insert_loket($data);\n\n // Jika simpan berhasil, maka ...\n if ($simpan) {\n // Deklarasikan session flashdata dengan tipe success\n session()->setFlashdata('success', 'Tambah Loket berhasil!');\n // Redirect halaman ke loket\n return redirect()->to(base_url('loket'));\n }\n }", "title": "" } ]
[ { "docid": "fb91b896f598699a73cdc83d31fd6ce8", "score": "0.6523928", "text": "function ValorPost($nombreCampo, $valorPorDefecto='')\n{\n\tif (isset($_POST[$nombreCampo]))\n\t\treturn $_POST[$nombreCampo];\n\telse\n\t\treturn $valorPorDefecto;\n}", "title": "" }, { "docid": "5ca41556c2c2743f4a5d729f86b77411", "score": "0.6485971", "text": "private function get_form_values() {\r\n\t\t\r\n\t\t$kode_e1 = $this->input->post(\"unit_kerja_E1\", TRUE);\r\n\t\t$kode_e2 = $this->input->post(\"unit_kerja_E2\", TRUE);\r\n\t\t\r\n\t\t$data['prefix_old'] = $this->input->post(\"prefix_old\", TRUE);\r\n\t\t$data['prefix'] = $this->input->post(\"prefix\", TRUE);\r\n\t\t$data['prefix_iku'] = $this->input->post(\"prefix_iku\", TRUE);\r\n\t\t\r\n\t\t$data['kode_e1']= ($kode_e1==\"-1\"?\"\":$kode_e1);\r\n\t\t$data['kode_e2']= ($kode_e2==\"-1\"?\"\":$kode_e2);\r\n\t\treturn $data;\r\n }", "title": "" }, { "docid": "a3c493cd2d8e969b13badc0a0e478e23", "score": "0.6404696", "text": "private function get_form_values() {\n\t\tif ($this->session->userdata('unit_kerja_e2')=='-1')\n\t\t\t$data['kode_e2'] = $this->input->post(\"kode_e2\", TRUE); //id\n\t\telse \n\t\t\t$data['kode_e2'] = $this->session->userdata('unit_kerja_e2');\t\n\t\t$data['tahun'] = $this->input->post(\"tahun\", TRUE); //tahun\n\t\t$data['kode_sasaran_e2'] = $this->input->post(\"kode_sasaran_e2\", TRUE); //id\n\t\t$data['deskripsi'] = $this->input->post(\"deskripsi\", TRUE);\n\t\t$data['kode_sasaran_e1'] = $this->input->post(\"kode_sasaran_e1\", TRUE);\n\t\t$data['kode_sasaran_e1'] = $data['kode_sasaran_e1'] == '0'?null:$data['kode_sasaran_e1'];\n\t\t//$data[\"insert_log\"] = $this->session->userdata(\"userLogin\").\",\".$this->utility->getFullSystemDate();\n\t\t//$data[\"update_log\"] = $this->session->userdata(\"userLogin\").\",\".$this->utility->getFullSystemDate();\n\t\treturn $data;\n }", "title": "" }, { "docid": "83c9345225e03bae54b63942efaf6709", "score": "0.632016", "text": "public function submitData()\n\t{\n\t\t$test = $this->input->get('test');\n\t\techo $test;\n\t}", "title": "" }, { "docid": "abdbce77e10ac4d5bbfdf4d880bf03cc", "score": "0.6313904", "text": "function actionFormInput()\n {\n $req = Yii::$app->request;\n if ($req->isAjax) {\n $NoPasien = $req->post('NoPasien');\n $NoRegistrasi = $req->post('NoRegistrasi');\n $NamaPasien = $req->post('NamaPasien');\n\n $model = new McuSettingManualLab();\n\n $model->no_pasien = $NoPasien;\n $model->no_registrasi = $NoRegistrasi;\n\n return $this->renderAjax('form-input', [\n 'model'=>$model,\n 'namapasien'=>$NamaPasien\n ]);\n\n } else {\n throw new Exception(\"Illegal access\");\n }\n }", "title": "" }, { "docid": "c60c7ef70aa728e3c1a500164d124fab", "score": "0.6307843", "text": "public function busqueda_post(){\n $_POST = json_decode(file_get_contents(\"php://input\"), true);\n $_POST = $this->security->xss_clean($_POST);\n $datos=$this->post();\n $_data=$this->Model_Paciente->busqueda($datos[\"palabra\"]);\n $message = [\n 'status' => true,\n 'message' => \"Exito\",\n 'data'=>$_data\n\n ];\n\t\t$this->response($message, REST_Controller::HTTP_OK);\n }", "title": "" }, { "docid": "9c74027f77d30ffe7b1f042d473a0eab", "score": "0.6264671", "text": "public function keluarParkir_post()\n {\n $datestring = '%Y-%m-%d %h:%i:%s';\n\t\t$time = time();\n $tanggal_keluar = mdate($datestring, $time);\n \n $response = $this->MParkir->keluarParkir(\n $this->post('plat_nomor'),\n $tanggal_keluar\n );\n $this->response($response);\n }", "title": "" }, { "docid": "2201b566b5a2189944e8b4ead76f07c9", "score": "0.6234539", "text": "public function fromPost()\n {\n $this->nom = @$_POST[\"nom\"];\n $this->prenom = @$_POST[\"prenom\"];\n $this->email = @$_POST[\"email\"];\n $this->tel = @$_POST[\"tel\"];\n $this->mdp = @$_POST[\"mdp\"];\n }", "title": "" }, { "docid": "96567a8c877710457d11480dfe8bf244", "score": "0.6211486", "text": "private function getVal() {\n if(isset($_POST['submit'])){\n $this->fname = $_POST['fname'];\n $this->email = $_POST['email'];\n $this->password = htmlspecialchars(password_hash($_POST['password'],PASSWORD_DEFAULT));\n $this->phone = $_POST['phone'];\n $this->college = $_POST['college'];\n if(strcasecmp($this->college,\"other\")===0){\n $this->college = $_POST['college1'];\n }\n }\n }", "title": "" }, { "docid": "3cb0e9b98b390365109da2d9a9b1f75b", "score": "0.61612636", "text": "function post($nazev)\n\t{\n\t\tif(isset($_POST[$nazev])&&$_POST[$nazev]!=\"\")\n\t\t\treturn $_POST[$nazev];\n\t\telse\n\t\t\treturn null;\n\n\t}", "title": "" }, { "docid": "99954693c81db6cbd35a918ad36d4b73", "score": "0.6140655", "text": "function nomor_transaksi2(){\n\t\t$tipe=$_POST['tipe'];\n\t\t$nomor=$this->Admin_model->penomoran($tipe,1);\n\t\techo $nomor;\t\n\t}", "title": "" }, { "docid": "012ddc2eea975d1a5038ac8929203dc8", "score": "0.61303973", "text": "public function controllersAltPessoaPostSenha()\t\t{\t\t\r\n\t\treturn (!empty($_POST['senha']))\t\t?\taddslashes($_POST['senha'])\t:\tnull;\r\n\t}", "title": "" }, { "docid": "62eb60f550e14e8b51a5d453429df5e3", "score": "0.6117189", "text": "function getInputValue($name){\n if(isset($_POST[$name])){\n echo $_POST[$name];\n }\n }", "title": "" }, { "docid": "1ba8b835b819e7a925b59cf264208470", "score": "0.61106217", "text": "public function registrasi_post()\n {\n $datestring = '%Y-%m-%d %h:%i:%s';\n\t\t$time = time();\n $tanggal_masuk = mdate($datestring, $time);\n \n //Lot Parkit\n $response = $this->MParkir->registrasi(\n $this->post('plat_nomor'),\n $this->post('warna'),\n $tanggal_masuk,\n $this->post('tipe')\n );\n $this->response($response);\n }", "title": "" }, { "docid": "318ac88ee3b68cfcd2fac358bf6165df", "score": "0.610372", "text": "function post(){\n\n $DATA = $_POST;\n\n //recordar que deberiamos pasar la cedula y el monto\n //pero para ello deberiamos validad igual que como hicimos con el nombre\n //para asegurarnos de hacer una buena validacion\n\n if (!isset($DATA['nombre']) || empty($DATA['nombre'])) {\n echo \"el nombre no fue enviado o esta vacio\";\n exit();\n //$DATA['nombre'] = \"Tu nombre es: \";\n } elseif (isNameExist($DATA['nombre'])) {\n echo \"El nombre existe\";\n exit();\n } \n\n $isCreate = create($DATA['nombre'], 15926, 1000);\n\n if ($isCreate) {\n echo \"Se guardo exitosamente\";\n }else {\n echo \"No se guardo\";\n }\n\n //var_dump($DATA);\n }", "title": "" }, { "docid": "46e8750b8ba2b6f4f552d427017f2aab", "score": "0.604977", "text": "public function setValue(){\n\t\tif (isset($_POST[self::$value]))\n \t\treturn ($_POST[self::$value]);\n\t}", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.6039698", "text": "public function post();", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.6039698", "text": "public function post();", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.6039698", "text": "public function post();", "title": "" }, { "docid": "29f80652f745764edf39b9e8ba44aaef", "score": "0.6037016", "text": "public function oppregqval()\n\t{\n\t\t$datos=json_decode($_POST[\"datos\"]);\n\t\t\n\t\tswitch($datos->tip){\n\t\t\tcase \"dat\":\n\t\t\t\t$data[\"datos\"]=$this->Model_Cuestionarios->DatosPregqval($datos->num);\n\t\t\t\tbreak;\n\t\t}\n\t\techo json_encode($data);\n\n\t}", "title": "" }, { "docid": "97bc5e665a7d81497bc36031ff97ea93", "score": "0.60301834", "text": "public function validasi_post(){\n $_POST=json_decode(file_get_contents('php://input'), true);\n\n if($this->wisata->validasi_tambah()){\n $this->set_response(['status'=>true,'error'=>'validasi Oke'], REST_Controller::HTTP_CREATED);\n \n }else{\n // gagal memvalidasi \n $formError=array();\n foreach ($this->post() as $key=>$value ) {\n # code...\n if($key!=\"file\"){\n if($key!=\"cover\"){\n \n if($key!=\"coverIndex\"){\n \n if($key!=\"imageNumber\"){\n \n $formError[$key]=form_error($key);\n }\n } \n } \n }\n }\n $this->response(['status'=>FALSE,'error'=>'Validasi Failed','data'=>$formError], REST_Controller::HTTP_OK); \n } \n }", "title": "" }, { "docid": "61a438182830d805cc306657778e28ad", "score": "0.6025165", "text": "function setInputValue() {\n\t\tglobal $_POST;\n\t\t$name = func_get_arg(0);\n\t\tif ($name) {\n\t\t\t## name field exists from parameters, now check if it exist from $_POST\n\t\t\tif (isset($_POST[$name])) {\n\t\t\t\t## print the value stored in $_POST['$name']\n\t\t\t\tprint $_POST[$name];\n\t\t\t} \n\t\t}\n\t}", "title": "" }, { "docid": "b7cf3ad56d08034132d6f2e72e8de7a4", "score": "0.60202914", "text": "function submit_form() {\r\n $titulo = \"Contato\";\r\n $conteudo = \"\";\r\n\r\n if (isset($_POST)) {\r\n $conteudo .= \"Dados enviados com sucesso, abaixo seguem os dados que você enviou.<br>\";\r\n $conteudo .= \"Nome: \".$_POST['nome'].\"<br>\";\r\n $conteudo .= \"Email: \".$_POST['email'].\"<br>\";\r\n $conteudo .= \"Assunto: \".$_POST['assunto'].\"<br>\";\r\n $conteudo .= \"Mensagem: \".$_POST['mensagem'].\"<br>\";\r\n $titulo = \"Formulário\";\r\n }\r\n\r\n $params['titulo'] = utf8_decode($titulo);\r\n $params['conteudo'] = utf8_decode($conteudo);\r\n\r\n return $params;\r\n}", "title": "" }, { "docid": "52fd8cdcef5933848e8b47fe6cd2c264", "score": "0.60189235", "text": "public function form(){\n $params = $this->getParams();\n $data = array(\n 'id' => !empty($params[1]) ? $params[1] : 0,\n 'subject' => '',\n 'text' => '',\n 'datetime' => date('Y-m-d H:i:s')\n );\n \n if (!$this->error) $this->error = '';\n if (!$this->warning) $this->warning = '';\n \n \n \n if (!empty($params[1])){\n $dm = Lib_DataMapper::getInstance();\n $model = $dm->getNews($params[1]);\n \n if (!$model->loaded()) $this->error = 'Запись не найдена';\n else $data = $model->getData();\n }\n \n if ($this->getGlobalVar()->post('subject') && !$this->error){\n $lstFields = array('datetime', 'subject', 'text');\n foreach ($lstFields as $fieldName){\n $data[$fieldName] = $this->getGlobalVar()->post($fieldName);\n }\n }\n \n $this->data = $data;\n }", "title": "" }, { "docid": "14170f6366f471675c64b8c81bab7b42", "score": "0.60136396", "text": "function var_post($nom) {\n return (isset($_POST[$nom])) ? $_POST[$nom] : false;\n}", "title": "" }, { "docid": "8fb9150d8acd94a30e0b79e14ac55e4d", "score": "0.5989299", "text": "function add()\n { \n if(isset($_POST) && count($_POST) > 0) \n { \n $params = array(\n\t\t\t\t'id_desa' => $this->input->post('id_desa'),\n\t\t\t\t'dukuh' => $this->input->post('dukuh'),\n\t\t\t\t'dusun' => $this->input->post('dusun'),\n\t\t\t\t'rw' => $this->input->post('rw'),\n\t\t\t\t'rt' => $this->input->post('rt'),\n\t\t\t\t'tahun' => $this->input->post('tahun'),\n );\n \n $tb_pembagian_desa_id = $this->Tb_pembagian_desa_model->add_tb_pembagian_desa($params);\n redirect('pembagian_desa/index');\n }\n else\n { \n\n $this->load->template('tb_pembagian_desa/add');\n }\n }", "title": "" }, { "docid": "ca152d023110e74d96e754797197e344", "score": "0.5989087", "text": "public function controllersAltPessoaPostCelular()\t\t{\t\t\r\n\t\treturn (!empty($_POST['celular']))\t?\taddslashes($_POST['celular'])\t:\tnull;\r\n\t}", "title": "" }, { "docid": "86f7562167be7a9a3dbcb05f5b66e93c", "score": "0.5984415", "text": "function simpanData(){\n\t\t$nama = $this->input->post('nama');\n\t\t$nim = $this->input->post('nim');\n\t\t$alamat = $this->input->post('alamat');\n\t\t$data = array(\n\t\t\t'nama' => $nama,\n\t\t\t'nim' => $nim,\n\t\t\t'alamat' => $alamat\n\t\t\t);\n\t\t$this->m_model->m_simpan($data);\n\t\tredirect('c_controller');\n\t}", "title": "" }, { "docid": "52d3a894bde9145203fefd2949323211", "score": "0.5980125", "text": "public function postBaja() {\n\n\n\n\t\t\t\t\tswitch (Input::get('tipo_corte')) {\n\t\t\t\t\t\tcase '1': //pieza entera\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//checa si el tipo de corte es con medida estandar o medida especial\n\t\t\t\t\t\t\t\tswitch (Input::get('proporcion_corte')) {\n\t\t\t\t\t\t\t\t\t\t//corte estandar\n\t\t\t\t\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\t\t\t\t\t//verifica si los input traen valores si no, se brinca a las validaciones segun el tipo de baja\n\t\t\t\t\t\t\t\t\t\tif (Input::get('pieza_marmoleria_id') and Input::get('material_disponible') ) {\n\t\t\t\t\t\t\t\t\t\t//saca el area de venta con la pieza añadida al folio\n\t\t\t\t\t\t\t\t\t\t$area_venta_r = PiezaMarmoleria::find(Input::get('pieza_marmoleria_id'));\n\t\t\t\t\t\t\t\t\t\t$area_venta = $area_venta_r->area_requerida;\n\t\t\t\t\t\t\t\t\t\t//costo del material usado \n\t\t\t\t\t\t\t\t\t\t$inventario = VistaInventarioRecubrimiento::find(Input::get('material_disponible'));\n\t\t\t\t\t\t\t\t\t\t$costo_material = ($inventario->precio_inicial * $area_venta )/ $inventario->area_total;\n\t\t\t\t\t\t\t\t\t\t$pieza_marmoleria_id = Input::get('pieza_marmoleria_id');\n\t\t\t\t\t\t\t\t\t\t$medida_estandar = 1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\t\t\t\t\t//verifica si los input traen valores si no, se brinca a las validaciones segun el tipo de baja\n\t\t\t\t\t\t\t\t\t\tif (Input::get('pieza_marmoleria_id_p') and Input::get('material_disponible') ) {\n\t\t\t\t\t\t\t\t\t\t//saca el area de venta con la pieza añadida al folio\n\t\t\t\t\t\t\t\t\t\t$area_venta_r = PiezaMarmoleria::find(Input::get('pieza_marmoleria_id_p'));\n\t\t\t\t\t\t\t\t\t\t$area_venta = Input::get('area_uso_p');\n\t\t\t\t\t\t\t\t\t\t//costo del material usado \n\t\t\t\t\t\t\t\t\t\t$inventario = VistaInventarioRecubrimiento::find(Input::get('material_disponible'));\n\t\t\t\t\t\t\t\t\t\t$costo_material = ($inventario->precio_inicial * $area_venta )/ $inventario->area_total;\n\t\t\t\t\t\t\t\t\t\t$pieza_marmoleria_id = Input::get('pieza_marmoleria_id_p');\n\t\t\t\t\t\t\t\t\t\t$medida_estandar = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tdefault:{\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t# code...\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase '2': //corte especial\n\t\t\t\t\t\t\t\t//verifica si los imput traen valores si no, se brinca a las validaciones segun el tipo de baja\n\t\t\t\t\t\t\t\tif (Input::get('material_disponible')) {\n\t\t\t\t\t\t\t\t//obtiene el id del corte especial\n\t\t\t\t\t\t\t\t\t$pieza_marmoleria = PiezaMarmoleria::where('nombre', '=', 'Corte especial')->firstorfail();\n\t\t\t\t\t\t\t\t//saca el area de venta con la pieza añadida al folio\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$area_venta = number_format(Input::get('largo') * Input::get('alto'), 2, '.', '');\n\t\t\t\t\t\t\t\t//costo del material usado \n\t\t\t\t\t\t\t\t$inventario = VistaInventarioRecubrimiento::find(Input::get('material_disponible'));\n\t\t\t\t\t\t\t\t$costo_material = ($inventario->precio_inicial * $area_venta)/ $inventario->area_total;\n\t\t\t\t\t\t\t\t$pieza_marmoleria_id = $pieza_marmoleria->id;\n\t\t\t\t\t\t\t\t$medida_estandar = 0;\n\t\t\t\t\t\t\t\t\t# code...\n\t\t\t\t\t\t\t\t//validar formulario para corte especial\n\t\t\t\t\t\t\t\t$rules = array(\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t'largo' => 'required|numeric|digits_between:.06,10',\n\t\t\t\t\t\t\t\t\t\t'alto'=> 'required|numeric|digits_between:.06,10',\n\t\t\t\t\t\t\t\t\t\t'justificacion_de_corte'=>'required'\n\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$messages = array(\n\t\t\t\t\t\t\t\t\t\t\t'required'=>'Capture :attribute',\n\t\t\t\t\t\t\t\t\t\t\t'numeric'=>'solo números',\n\t\t\t\t\t\t\t\t\t\t\t'integer'=>'solo se aceptan valores enteros',\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t$validator = Validator::make(Input::all(), $rules, $messages);\n\t\t\t\t\t\t\t\t\tif ($validator->fails())\n\t\t\t\t\t\t\t\t\t { \n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\treturn Redirect::back()->withInput()->withErrors($validator);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//fin validar formulario\n\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:{\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t# code...\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t//checa si hay material suficiente\n\n\t\t\t\t\tif ($area_venta > $inventario->area_stock ) {\n\t\t\t\t\t\treturn Redirect::back()->with('material_error', 'error');\n\t\t\t\t\t}\n\n\n\n\t\t\t//determina el tipo de baja\n\t\t\tswitch (Input::get('tipo_baja')) {\n\t\t\t\tcase '1':\n\n\t\t\t\t//valida que no se quiera añadir a una factura capturada ayer o el folio sea igual al de una venta de stock \n\t\t\t$folio_venta = Input::get('folio_venta');\n\n\t\t\t$venta_r = VentaMaterial::where('folio', '=', $folio_venta)->first();\n\n\t\t\t\t\tif($venta_r){\n\t\t\t\t\tif(date_format($venta_r->created_at, 'Y-m-d') < date('Y-m-d') or substr($folio_venta, 0, 2) == \"S-\") \n\t\t\t\t\t{\n\t\t\t\t\t\t$factura_error = Session::pull('venta_error','error');\n\t\t\t\t\t\treturn Redirect::back()->with('venta_error', 'error');\n\t\t\t\t\t}\n\t\t\t\t\t\t/*return $factura_r->factura_abierta;*/\n\t\t\t}\n\n\t\t//validar formulario\n\t\t\t\t//validar formulario\n\n\t\t\t$rules = array(\n\t\t\t\t\t\n\t\t\t\t\t'folio_venta' => 'required',\n\t\t\t\t\t'fecha'=>'required',\n\t\t\t\t\t'precio_venta' => 'required|numeric',\n\t\t\t\t\t'material_disponible'=> 'required',\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t);\n\t\t\t\n\t\t\t\t$messages = array(\n\t\t\t\t\t\t'required'=>'Capture :attribute',\n\t\t\t\t\t\t'numeric'=>'solo números',\n\t\t\t\t\t\t'integer'=>'solo se aceptan valores enteros',\n\t\t\t\t\t\t\n\t\t\t\t\t);\n\n\t\t\t$validator = Validator::make(Input::all(), $rules, $messages);\n\t\t\t\tif ($validator->fails())\n\t\t\t\t { \n\t\t\t\t\t\t\n\t\t\t\t\t\treturn Redirect::back()->withInput()->withErrors($validator)->with('radio_selected', '1')->with('add', 'true');\n\t\t\t\t}\n\t\t//fin validar formulario\n\t\t\t\t\n\n\t\t\t\t//genera baja\n\t\t\t\t$lamina_baja = new MaterialBaja;\n\n\t\t\t\t$lamina_baja->fecha = Input::get('fecha');\n\t\t\t\t$lamina_baja->pieza_marmoleria_id = $pieza_marmoleria_id;\n\t\t\t\t$lamina_baja->area_venta = $area_venta;\n\t\t\t\t$lamina_baja->inventario_recubrimientos_id = Input::get('material_disponible');\t\t\t\n\t\t\t\t$lamina_baja->costo_material_usado = $costo_material;\n\t\t\t\tif(Input::get('tipo_corte') == 2){\n\t\t\t\t\t$lamina_baja->observaciones = Input::get('largo').' de largo por '.Input::get('alto'). ' m. de alto';\n\t\t\t\t\t$lamina_baja->pieza_completa = 0;\n\t\t\t\t\t$medida_estandar = 0;\n\t\t\t\t}\n\t\t\t\t$lamina_baja->medida_estandar = $medida_estandar;\n\t\t\t\t$lamina_baja->save();\n\t\t\t\t//determina si la venta existe, \n\t\t\t\t$count_venta_material = VentaMaterial::where('folio', '=', Input::get('folio_venta'))->count();\n\t\t\t\t\n\t\t\t\t// si existe la venta actualiza el total sumando el precio de la nueva lamina_baja\n\t\t\t\tif ($count_venta_material > 0) {\n\t\t\t\t\t$venta_material = VentaMaterial::where('folio', '=', Input::get('folio_venta'))->firstorfail();\n\t\t\t\t\t$venta_material->total_venta = $venta_material->total_venta + Input::get('precio_venta');\n\t\t\t\t\t$venta_material->save();\n\t\t\t\t}\n\t\t\t\t//si no exite la venta, crea una nueva\n\t\t\t\telse{ \n\t\t\t\t\n\t\t\t\t$venta_material = new VentaMaterial;\n\t\t\t\t$venta_material->folio = Input::get('folio_venta');\n\t\t\t\t$venta_material->total_venta = Input::get('precio_venta');\n\t\t\t\t$venta_material->save();\n\t\t\t}\n\t\t\t\t//crea el registro del detalle de la baja\n\t\t\t\t$venta_material_baja = new VentaMaterialBaja;\n\t\t\t\t$venta_material_baja->venta_material_id = $venta_material->id;\n\t\t\t\t$venta_material_baja->material_baja_id = $lamina_baja->id;\n\t\t\t\t$venta_material_baja->precio_pieza = Input::get('precio_venta');\n\t\t\t\t$venta_material_baja->save();\n\n\t\t\t\t//actualiza inventario en la linea #84 ya lo tengo\n\t\t\t\t\t$inventario->area_stock = $inventario->area_stock - $area_venta;\n\t\t\t\t\t$inventario->updated_at = Input::get('hoy');\n\t\t\t\t\t$inventario->precio_stock = $inventario->precio_stock - $costo_material;\n\t\t\t\t\t$inventario->area_usada = $inventario->area_usada + $area_venta;\t\t\t\n\t\t\t\t\t//desactiva el inventario de la lamina al llegar al menos de .06, no es suficiente material para crear un liston\n\t\t\t\t\tif ($inventario->area_stock < .06) {\n\t\t\t\t\t\t$inventario->activo = 0;\n\t\t\t\t\t\t# code...\n\t\t\t\t\t}\n\t\t\t\t\t$inventario->save();\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase '2': \n\t\t\t\t\t# Reposicion\n\n\t\t\t\t//validar formulario\n\t\t\t\t//validar formulario\n\t\t\t\n\t\t\t$rules = array(\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t'fecha'=>'required',\n\t\t\t\t\t'motivo_de_reposicion' => 'required',\n\t\t\t\t\t'material_disponible'=> 'required',\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t);\n\t\t\t\n\t\t\t\t$messages = array(\n\t\t\t\t\t\t'required'=>'Capture :attribute',\n\t\t\t\t\t\t'numeric'=>'solo números',\n\t\t\t\t\t\t'integer'=>'solo se aceptan valores enteros',\n\t\t\t\t\t\t\n\t\t\t\t\t);\n\n\t\t\t$validator = Validator::make(Input::all(), $rules, $messages);\n\t\t\t\tif ($validator->fails())\n\t\t\t\t { \n\t\t\t\t\t\t\n\t\t\t\t\t\treturn Redirect::back()->withInput()->withErrors($validator);\n\t\t\t\t}\n\t\t//fin validar formulario\n\n\t\t\t\t\t\t\t//genera baja\n\t\t\t\t\t$lamina_baja = new MaterialBaja;\n\n\t\t\t\t\t$lamina_baja->fecha = Input::get('fecha');\n\t\t\t\t\t$lamina_baja->pieza_marmoleria_id = $pieza_marmoleria_id; \n\t\t\t\t\t$lamina_baja->area_venta = $area_venta ;\n\t\t\t\t\t$lamina_baja->inventario_recubrimientos_id = Input::get('material_disponible');\t\t\t\n\t\t\t\t\t$lamina_baja->costo_material_usado = $costo_material;\n\t\t\t\t\tif(Input::get('tipo_corte') == 2){\n\t\t\t\t\t$lamina_baja->observaciones = Input::get('largo').' de largo por '.Input::get('alto'). ' m. de alto';\n\t\t\t\t\t$lamina_baja->pieza_completa = 0;\n\t\t\t\t\t$medida_estandar = 0;\n\t\t\t\t} \n\t\t\t\t\t$lamina_baja->medida_estandar = $medida_estandar;\n\t\t\t\t\t$lamina_baja->save();\n\n\t\t\t\t\t//Genera detalles de reposicion\n\t\t\t\t\t$reposicion = new Reposicion;\n\t\t\t\t\t$reposicion->motivos = Input::get('motivo_de_reposicion');\n\t\t\t\t\t$reposicion->captura_usuario_id = Auth::user()->id;\n\t\t\t\t\t$reposicion->material_baja_id = $lamina_baja->id;\n\t\t\t\t\t$reposicion->precio_reposicion = Input::get('precio_venta'); \n\t\t\t\t\t$reposicion->save();\n\n\t\t\t\t\t$lamina_baja_update = MaterialBaja::find($lamina_baja->id);\n\t\t\t\t\t$lamina_baja_update->venta = 0;\t\n\t\t\t\t\t$lamina_baja_update->reposicion = 1;\n\n\t\t\t\t\t$lamina_baja_update->save();\n\n\t\t\t\t\t//actualiza inventario en la linea #84 ya lo tengo\n\t\t\t\t\t$inventario->area_stock = $inventario->area_stock - $area_venta;\n\t\t\t\t\t$inventario->precio_stock = $inventario->precio_stock - $costo_material; \n\t\t\t\t\t$inventario->area_usada = $inventario->area_usada + $area_venta;\n\t\t\t\t\t$inventario->updated_at = Input::get('hoy');\n\t\t\t\t\t//desactiva el inventario de la lamina al llegar al menos de .06, no es suficiente material para crear un liston\n\t\t\t\t\tif ($inventario->area_stock < .06) {\n\t\t\t\t\t\t$inventario->activo = 0;\n\t\t\t\t\t\t# code...\n\t\t\t\t\t}\n\t\t\t\t\t$inventario->save();\n\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase '3': \n\t\t\t\t\t# stock\n\n\t\t\t\t\t//validar formulario\n\t\t\t\n\t\t\t$rules = array(\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t'fecha'=>'required',\t\t\t\t\t\n\t\t\t\t\t'material_disponible'=> 'required',\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t);\n\t\t\t\n\t\t\t\t$messages = array(\n\t\t\t\t\t\t'required'=>'Capture :attribute',\n\t\t\t\t\t\t\n\t\t\t\t\t);\n\n\t\t\t$validator = Validator::make(Input::all(), $rules, $messages);\n\t\t\t\tif ($validator->fails())\n\t\t\t\t { \n\t\t\t\t\t\t\n\t\t\t\t\t\treturn Redirect::back()->withInput()->withErrors($validator);\n\t\t\t\t}\n\t\t//fin validar formulario\n\n\t\t\t\t\t/////////////////\n\t\t\t\t\tfor ($i= 0; $i < Input::get('cantidad'); $i++) { \n\t\t\t\t//genera baja\n\t\t\t\t\t$lamina_baja = new MaterialBaja;\n\n\t\t\t\t\t$lamina_baja->fecha = Input::get('fecha');\n\t\t\t\t\t$lamina_baja->pieza_marmoleria_id = $pieza_marmoleria_id; \n\t\t\t\t\t$lamina_baja->area_venta = $area_venta ;\n\t\t\t\t\t$lamina_baja->inventario_recubrimientos_id = Input::get('material_disponible');\t\t\t\n\t\t\t\t\t$lamina_baja->costo_material_usado = $costo_material;\n\t\t\t\t\tif(Input::get('tipo_corte') == 2){\n\t\t\t\t\t$lamina_baja->observaciones = Input::get('largo').'m. de largo por '.Input::get('alto'). ' m. de alto '.Input::get('justificacion_de_corte') ;\n\t\t\t\t\t$lamina_baja->pieza_completa = 0;\n\t\t\t\t\t$lamina_baja->medida_estandar = 0;\n\t\t\t\t} \n\t\t\t\t\t$lamina_baja->medida_estandar = $medida_estandar;\n\t\t\t\t\t$lamina_baja->save();\n\n\t\t\t\t\t$lamina_baja_update = MaterialBaja::find($lamina_baja->id);\n\t\t\t\t\t$lamina_baja_update->venta = 0;\n\t\t\t\t\t$lamina_baja_update->stock = 1;\n\t\t\t\t\t$lamina_baja_update->save();\n\n\t\t\t\t\t//Crea nuevo registro de stock\n\t\t\t\t\t$stock = new Stock;\n\t\t\t\t\t$stock->precio_venta = Input::get('precio_venta'); \n\t\t\t\t\t$stock->material_baja_id = $lamina_baja->id;\t\t\t\t\t\t\n\t\t\t\t\t$stock->save();\n\t\t\t\t\t//actualiza inventario en la linea #84 ya lo tengo\n\t\t\t\t\t$inventario->area_stock = $inventario->area_stock - $area_venta;\n\t\t\t\t\t$inventario->precio_stock = $inventario->precio_stock - $costo_material; \n\t\t\t\t\t$inventario->area_usada = $inventario->area_usada + $area_venta;\n\t\t\t\t\t$inventario->updated_at = Input::get('hoy');\n\t\t\t\t\t$medida_estandar = 0;\t\t\t\n\t\t\t\t\t//desactiva el inventario de la lamina al llegar al menos de .06, no es suficiente material para crear un liston\n\t\t\t\t\tif ($inventario->area_stock < .06) {\n\t\t\t\t\t\t$inventario->activo = 0;\n\t\t\t\t\t\t# code...\n\t\t\t\t\t}\n\t\t\t\t\t$inventario->save();\n\t\t}\n\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\t# code...r;\n\t\t\t\t\tbreak;\n\t\t\t} // fin switch\n\n\t\t\t\n\n\t\t\n\t\t\treturn Redirect::back();\n\t\t}", "title": "" }, { "docid": "6727848fea183247f14ef98140f1dac5", "score": "0.5966371", "text": "function mostrarFormulario(){\n?>\n <br><br>\n <h2>FORMULARIO </h2> \n <form method=\"post\" action=\"<?php echo htmlspecialchars($_SERVER[\"PHP_SELF\"]);?>\">\n Edad: <input type=\"number\" name=\"edad\" value=\"<?php echo $this->edad;?>\">\n <br><br>\n Altura: <input type=\"number\" name=\"altura\" step=\"0.01\" value=\"<?php echo $this->altura;?>\">\n <br><br>\n Peso: <input type=\"number\" name=\"peso\" step=\"any\" value=\"<?php echo $this->peso;?>\">\n <br><br>\n <input type=\"submit\" name=\"submitt\" value=\"Submit\">\n </form>\n\n<?php\n }", "title": "" }, { "docid": "399eb2b80b29c3936794c6879332e115", "score": "0.5964732", "text": "public function actionSetUmur()\n {\n if(Yii::app()->getRequest()->getIsAjaxRequest()) {\n $data['umur'] = null;\n if(isset($_POST['tanggal_lahir']) && !empty($_POST['tanggal_lahir'])){\n $data['umur'] = CustomFunction::hitungUmur($_POST['tanggal_lahir']);\n }\n echo json_encode($data);\n Yii::app()->end();\n }\n }", "title": "" }, { "docid": "524043aa29fbee8d3bc3aebdf4b3741a", "score": "0.596424", "text": "public function getPOST(){\n return $_POST;\n }", "title": "" }, { "docid": "bf81d6a96cb190cf82a6a1fdfd07ccd6", "score": "0.5939061", "text": "public function post_tambah_barang(){\n\t\t$this->form_validation->set_rules('nama_barang', 'Nama Barang','required');\n\t\t$this->form_validation->set_rules('kode_jenis_barang', 'Jenis Barang','required');\n\t\tif($this->form_validation->run() == FALSE)\n\t\t{\n\t\t\t$this->kelola_barang();\n\t\t\t//redirect ke halaman kelola barang\n\t\t}else{\n\t\t\t$nama_barang \t\t= $_POST['nama_barang'];\n\t\t\t$kode_jenis_barang\t= $_POST['kode_jenis_barang'];\n\t\t\t$data_pengguna\t\t= array(\n\t\t\t\t'nama_barang'\t\t=> $nama_barang,\n\t\t\t\t'kode_jenis_barang'\t=> $kode_jenis_barang\n\t\t\t);\n\t\t\tif($this->Staf_sarprasM->insert_tambah_barang($data_pengguna)){\n\t\t\t\t$this->session->set_flashdata('sukses','Data Barang berhasil ditambahkan');\n\t\t\t\tredirect('Staf_sarprasC/kelola_barang');\n\t\t\t}else{\n\t\t\t\t$this->session->set_flashdata('error','Data Barang tidak berhasil ditambahkan');\n\t\t\t\tredirect('Staf_sarprasC/kelola_barang');\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "bf81d6a96cb190cf82a6a1fdfd07ccd6", "score": "0.5939061", "text": "public function post_tambah_barang(){\n\t\t$this->form_validation->set_rules('nama_barang', 'Nama Barang','required');\n\t\t$this->form_validation->set_rules('kode_jenis_barang', 'Jenis Barang','required');\n\t\tif($this->form_validation->run() == FALSE)\n\t\t{\n\t\t\t$this->kelola_barang();\n\t\t\t//redirect ke halaman kelola barang\n\t\t}else{\n\t\t\t$nama_barang \t\t= $_POST['nama_barang'];\n\t\t\t$kode_jenis_barang\t= $_POST['kode_jenis_barang'];\n\t\t\t$data_pengguna\t\t= array(\n\t\t\t\t'nama_barang'\t\t=> $nama_barang,\n\t\t\t\t'kode_jenis_barang'\t=> $kode_jenis_barang\n\t\t\t);\n\t\t\tif($this->Staf_sarprasM->insert_tambah_barang($data_pengguna)){\n\t\t\t\t$this->session->set_flashdata('sukses','Data Barang berhasil ditambahkan');\n\t\t\t\tredirect('Staf_sarprasC/kelola_barang');\n\t\t\t}else{\n\t\t\t\t$this->session->set_flashdata('error','Data Barang tidak berhasil ditambahkan');\n\t\t\t\tredirect('Staf_sarprasC/kelola_barang');\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "95547210aee75865bff8ca9bf6d25bee", "score": "0.5929654", "text": "function postvar($v,$d=''){return (isset($_POST[$v]))?$_POST[$v]:$d; }", "title": "" }, { "docid": "ad6ba7014be9f6f49fb882f01191f5f4", "score": "0.59285325", "text": "public function setDataFromPost() {\n // Recorremos el arreglo $data\n foreach ($this->data as $key => $value) {\n // Si existe la llave en $_POST entonces asignamos su valor\n // a $data\n if (isset($_POST[$key])) {\n $this->data[$key] = $_POST[$key];\n }\n }\n }", "title": "" }, { "docid": "cac1a5736b25e2fbedb1eac98ac81b8b", "score": "0.5918483", "text": "public function o_nama_action()\n\t{\n\t\t$imejl = $_POST['imejl'];\n\t\t$poruka = $_POST['poruka'];\n\n\t\tif ($imejl == \"\") return $this->pozovi('o_nama/o_nama_error');\n\t\telse{\n\t\t\t\n\t\t\t$email = \\Config\\Services::email();\n\n\t\t\t$email->setFrom($imejl, $imejl);\n\t\t\t$email->setTo(\"[email protected]\");\n\n\t\t\t$email->setSubject('Žalba korisnika');\n\t\t\t$email->setMessage($poruka);\n\n\t\t\t$result = $email->send();\n\t\t\treturn $this->pozovi('o_nama/o_nama_success');\n\t\t}\n\t}", "title": "" }, { "docid": "140981998ca5a2382eec2e578b17dd3c", "score": "0.5911458", "text": "private function RetrievePostVariables() {\n $this->id_regione = isset($_POST[\"id_regione\"]) ? $_POST[\"id_regione\"] : \"\";\n $this->id_provincia = isset($_POST[\"id_provincia\"]) ? $_POST[\"id_provincia\"] : \"\";\n $this->nome = isset($_POST[\"nome\"]) ? $_POST[\"nome\"] : \"\";\n $this->latitudine = isset($_POST[\"latitudine\"]) ? $_POST[\"latitudine\"] : \"\";\n $this->longitudine = isset($_POST[\"longitudine\"]) ? $_POST[\"longitudine\"] : \"\";\n }", "title": "" }, { "docid": "a0323e703092786633ce9311d7fc6b7c", "score": "0.59111774", "text": "public function requestProdutos(){\r\n $this->idprod = $_POST['idprod'];\r\n $this->nome = $_POST['nome'];\r\n $this->cor = $_POST['cor'];\r\n $this->preco = $_POST['preco'];\r\n }", "title": "" }, { "docid": "1215c4e9e0a2abc70e13391b76d65a9b", "score": "0.5910779", "text": "public function post(){\n }", "title": "" }, { "docid": "bf24997320ea2f482bcd836489809448", "score": "0.59051013", "text": "public function GET_PRODUK_USAHA()\n {\n $id_usaha = $this->input->post('id_usaha');\n $logged_user = $this->input->post('logged_user');\n }", "title": "" }, { "docid": "27fbdf3621bf1965e9f726d3ca10503d", "score": "0.5893742", "text": "public function actionSetUmur()\n\t{\n\t\t if(Yii::app()->getRequest()->getIsAjaxRequest()) {\n\t\t\t $data['umur'] = null;\n\t\t\t if(isset($_POST['tanggal_lahir']) && !empty($_POST['tanggal_lahir'])){\n\t\t\t\t $data['umur'] = CustomFunction::hitungUmur($_POST['tanggal_lahir']);\n\t\t\t }\n\t\t\t echo json_encode($data);\n\t\t\t Yii::app()->end();\n\t\t }\n\t}", "title": "" }, { "docid": "6f3eff0c38c5cc42c611d0d64f903485", "score": "0.58916", "text": "public function controllersAltPessoaPostRepSenha()\t\t{\t\t\r\n\t\treturn (!empty($_POST['rep_senha']))\t?\taddslashes($_POST['rep_senha'])\t:\tnull;\r\n\t}", "title": "" }, { "docid": "c2b15f1db10d75799a5eef0915080e92", "score": "0.5886042", "text": "public static function postVal($key) {\n $value = false;\n if(isset($_POST[$key])) {\n $value = self::deepTagClean($_POST[$key]);\n }\n return $value;\n }", "title": "" }, { "docid": "349cf35412cc7fe9055696aa64de2d7e", "score": "0.5862533", "text": "public static function POST($key){\n return isset(self::$POST[$key]) ? self::$POST[$key] : false;\n }", "title": "" }, { "docid": "f0987a41bca4f9a962a79c4ff85f5fd5", "score": "0.5856536", "text": "public function form() {\n $id = filter_input(INPUT_POST, 'id');\n\n if($id){\n\n\n \n }else{\n\n \n\n }\n\n Log::inserir('Acessou', 'Menu');\n\n }", "title": "" }, { "docid": "446eb0d219c1d8849392b0a83e5b5539", "score": "0.5843333", "text": "public function actionPenjualan()\n\t{\n\t\t\n\t\t$model=new LaporanPenjualanForm;\n\t\tif(isset($_POST['LaporanPenjualanForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['LaporanPenjualanForm'];\n\t\t\tif ($model->validate())\n\t\t\t{\n//\t\t\t\techo '<blockquote><pre>';\n//\t\t\t\tvar_dump($_POST['LaporanPenjualanForm'],$model);\n//\t\t\t\techo '</pre></blockquote>';exit;\n\t\t\t\tswitch($model->jangkaWaktu)\n\t\t\t\t{\n\t\t\t\t\tcase LaporanPenjualanForm::TglHariIni:\n\t\t\t\t\t\t$from=$to=time();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase LaporanPenjualanForm::TglKemarin:\n\t\t\t\t\t\t$from=$to=strtotime('yesterday');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase LaporanPenjualanForm::Tgl7HariTerakhir:\n\t\t\t\t\t\t$from=strtotime('last week');\n\t\t\t\t\t\t$to=time();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase LaporanPenjualanForm::TglBulanIni:\n\t\t\t\t\t\t$from=strtotime('first day of this month');\n\t\t\t\t\t\t$to=time();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase LaporanPenjualanForm::TglTahunini:\n\t\t\t\t\t\t$from=strtotime('1st january now');\n\t\t\t\t\t\t$to=time();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase LaporanPenjualanForm::TglSemua:\n\t\t\t\t\t\t$from=0;\n\t\t\t\t\t\t$to=time();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase LaporanPenjualanForm::TglPilih:\n\t\t\t\t\t\t$from=DateTime::createFromFormat('d-m-Y H:i:s',$model->waktuDari.' 00:00:00');\n\t\t\t\t\t\t$from=$from->getTimestamp();\n\t\t\t\t\t\t$to=DateTime::createFromFormat('d-m-Y H:i:s',$model->waktuDari.' 23:59:59');\n\t\t\t\t\t\t$to=$to->getTimestamp();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\techo sprintf('Dari %s ke %s',date('Y-m-d',$from),date('Y-m-d',$to));exit;\n\n\t\t\t\t$conn=Yii::app()->db;\n\t\t\t\t$cmd=$conn->createCommand('SELECT DATE( t1.tanggal ) AS tgl, SUM( t2.harga ) AS total_harga, SUM( t3.biaya ) AS total_biaya\n\tFROM `penjualan` t1\n\tJOIN penjualan_produk t2 ON t1.id = t2.id_pemesanan\n\tJOIN produk t3 ON t2.id_barang = t3.id\n\tWHERE DATE( t1.tanggal ) >= :dari AND DATE( t1.tanggal ) <= :hingga\n\tGROUP BY tgl\n\tORDER BY tgl');\n\t\t\t\t$cmd->bindValue(':dari', date('Y-m-d',$from));\n\t\t\t\t$cmd->bindValue(':hingga', date('Y-m-d',$to));\n\t\t\t\t$rows=$cmd->queryAll();\n\t\t\t\t$total=0;\n\t\t\t\t$profit=0;\n\t\t\t\tforeach($rows as $k=>$row)\n\t\t\t\t{\n\t\t\t\t\t$total+=$row['total_harga'];\n\t\t\t\t\t$rows[$k]['profit']=$row['total_harga']-$row['total_biaya'];\n\t\t\t\t\t$profit+=$rows[$k]['profit'];\n\t\t\t\t}\n\n\t\t\t\t$this->render('penjualan',array(\n\t\t\t\t\t'dari'=>$from,\n\t\t\t\t\t'hingga'=>$to,\n\t\t\t\t\t'rows'=>$rows,\n\t\t\t\t\t'total'=>$total,\n\t\t\t\t\t'profit'=>$profit\n\t\t\t\t));\n\t\t\t\tYii::app()->end();\n\t\t\t}\n\t\t}\n\t\t$this->render('form_penjualan',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "5438cae79614d41c4fcf4935023d4d0b", "score": "0.58284324", "text": "public function update_kelompok()\n\t{\n\t\t$get = $this->input->get();\n\t\t\n\t\t$is_kemenristek\t= isset($get['kemenristek']) ? $get['kemenristek'] : 1;\n\t\t$kelompok_ke\t= isset($get['kelompok']) ? $get['kelompok'] : 1;\n\t\t\n\t\t// Ambil data perguruan tinggi\n\t\t$perguruan_tinggi = $this->perguruan_tinggi_model->get_single($this->session->perguruan_tinggi->id);\n\t\t\n\t\t// Ambil data profil unit usaha\n\t\t$profil_kelompok_usaha = $this->profil_kelompok_model->get_single_by_pt($this->session->perguruan_tinggi->id, $is_kemenristek, $kelompok_ke);\n\n\t\tif ($this->input->method() == 'post')\n\t\t{\n\t\t\t$upload_config = [\n\t\t\t\t'upload_path'\t=> './upload/buku-profil/' . $perguruan_tinggi->npsn . '/',\n\t\t\t\t'allowed_types'\t=> 'jpeg|jpg|bmp|png',\n\t\t\t\t'max_size'\t\t=> $this::MAX_FILE_SIZE\n\t\t\t];\n\n\t\t\t$this->load->library('upload', $upload_config);\n\n\t\t\t// Create folder if not exist\n\t\t\tif ( ! file_exists($upload_config['upload_path'])) { mkdir($upload_config['upload_path']); }\n\t\t\t\n\t\t\t// Get $_POST variabel\n\t\t\t$post = $this->input->post();\n\t\t\t\n\t\t\t// Profil Kelompok Usaha\n\t\t\t$profil_kelompok_usaha->perguruan_tinggi_id\t = $perguruan_tinggi->id;\n\t\t\t$profil_kelompok_usaha->is_kemenristek\t\t = $is_kemenristek;\n\t\t\t$profil_kelompok_usaha->kelompok_ke\t\t\t = $kelompok_ke;\n\t\t\t$profil_kelompok_usaha->nim_ketua\t\t\t = $post['nim_ketua'];\n\t\t\t$profil_kelompok_usaha->nama_ketua\t\t\t = $post['nama_ketua'];\n\t\t\t$profil_kelompok_usaha->prodi_ketua\t\t\t = $post['prodi_ketua'];\n\t\t\t$profil_kelompok_usaha->hp_ketua\t\t\t = $post['hp_ketua'];\n\t\t\t$profil_kelompok_usaha->email_ketua\t\t\t = $post['email_ketua'];\n\t\t\t$profil_kelompok_usaha->nim_anggota_1\t\t = $post['nim_anggota_1'];\n\t\t\t$profil_kelompok_usaha->nama_anggota_1\t\t = $post['nama_anggota_1'];\n\t\t\t$profil_kelompok_usaha->prodi_anggota_1\t\t = $post['prodi_anggota_1'];\n\t\t\t$profil_kelompok_usaha->hp_anggota_1\t\t = $post['hp_anggota_1'];\n\t\t\t$profil_kelompok_usaha->email_anggota_1\t\t = $post['email_anggota_1'];\n\t\t\t$profil_kelompok_usaha->nim_anggota_2\t\t = $post['nim_anggota_2'];\n\t\t\t$profil_kelompok_usaha->nama_anggota_2\t\t = $post['nama_anggota_2'];\n\t\t\t$profil_kelompok_usaha->prodi_anggota_2\t\t = $post['prodi_anggota_2'];\n\t\t\t$profil_kelompok_usaha->hp_anggota_2\t\t = $post['hp_anggota_2'];\n\t\t\t$profil_kelompok_usaha->email_anggota_2\t\t = $post['email_anggota_2'];\n\t\t\t$profil_kelompok_usaha->nim_anggota_3\t\t = $post['nim_anggota_3'];\n\t\t\t$profil_kelompok_usaha->nama_anggota_3\t\t = $post['nama_anggota_3'];\n\t\t\t$profil_kelompok_usaha->prodi_anggota_3\t\t = $post['prodi_anggota_3'];\n\t\t\t$profil_kelompok_usaha->hp_anggota_3\t\t = $post['hp_anggota_3'];\n\t\t\t$profil_kelompok_usaha->email_anggota_3\t\t = $post['email_anggota_3'];\n\t\t\t$profil_kelompok_usaha->nim_anggota_4\t\t = $post['nim_anggota_4'];\n\t\t\t$profil_kelompok_usaha->nama_anggota_4\t\t = $post['nama_anggota_4'];\n\t\t\t$profil_kelompok_usaha->prodi_anggota_4\t\t = $post['prodi_anggota_4'];\n\t\t\t$profil_kelompok_usaha->hp_anggota_4\t\t = $post['hp_anggota_4'];\n\t\t\t$profil_kelompok_usaha->email_anggota_4\t\t = $post['email_anggota_4'];\n\t\t\t$profil_kelompok_usaha->nim_anggota_5\t\t = $post['nim_anggota_5'];\n\t\t\t$profil_kelompok_usaha->nama_anggota_5\t\t = $post['nama_anggota_5'];\n\t\t\t$profil_kelompok_usaha->prodi_anggota_5\t\t = $post['prodi_anggota_5'];\n\t\t\t$profil_kelompok_usaha->hp_anggota_5\t\t = $post['hp_anggota_5'];\n\t\t\t$profil_kelompok_usaha->email_anggota_5\t\t = $post['email_anggota_5'];\n\t\t\t$profil_kelompok_usaha->kategori_id\t\t\t = $post['kategori_id'];\n\t\t\t$profil_kelompok_usaha->sumber_pendanaan\t = $post['sumber_pendanaan'];\n\t\t\t$profil_kelompok_usaha->nama_produk\t\t\t = $post['nama_produk'];\n\t\t\t$profil_kelompok_usaha->gambaran_bisnis\t\t = $post['gambaran_bisnis'];\n\t\t\t$profil_kelompok_usaha->capaian_bisnis\t\t = $post['capaian_bisnis'];\n\t\t\t$profil_kelompok_usaha->rencana_kedepan\t\t = $post['rencana_kedepan'];\n\t\t\t$profil_kelompok_usaha->prestasi_bisnis\t\t = $post['prestasi_bisnis'];\n\t\t\t$profil_kelompok_usaha->updated_at\t\t\t = date('Y-m-d H:i:s');\n\t\t\t\n\t\t\t// File profil kelompok usaha\n\t\t\t$file_upload2_set = [\n\t\t\t\t'file_anggota', 'file_produk'\n\t\t\t];\n\t\t\t\n\t\t\tforeach ($file_upload2_set as $file_upload)\n\t\t\t{\n\t\t\t\t// Jika filenya ada\n\t\t\t\tif ( ! empty($_FILES[$file_upload]['name']))\n\t\t\t\t{\n\t\t\t\t\t// File papan nama 1\n\t\t\t\t\tif ($this->upload->do_upload($file_upload))\n\t\t\t\t\t{\n\t\t\t\t\t\t$upload_data = $this->upload->data();\t\t\t\t\t\t\n\t\t\t\t\t\t$profil_kelompok_usaha->{$file_upload} = $upload_data['file_name'];\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->fail_upload($this->upload->display_errors(), \n\t\t\t\t\t\t\t'Update Kelompok Mahasiswa Wirausaha yang didanai ' . ($is_kemenristek ? 'Ristekdikti' : 'Non-Ristekdikti') . ' - Kelompok ' . $kelompok_ke, \n\t\t\t\t\t\t\tanchor('profil/update-kelompok?'.$_SERVER['QUERY_STRING'], 'Kembali ke halaman update kelompok'));\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Jika terdeteksi perintah hapus\n\t\t\t\tif (isset($post[$file_upload.'_remove']))\n\t\t\t\t{\n\t\t\t\t\tif ($post[$file_upload.'_remove'] == '1')\n\t\t\t\t\t{\n\t\t\t\t\t\t// Hapus file\n\t\t\t\t\t\t@unlink('./upload/buku-profil/'.$perguruan_tinggi->npsn.'/'.$profil_kelompok_usaha->{$file_upload});\t\t\t\t\t\n\t\t\t\t\t\t// Set nama file null\n\t\t\t\t\t\t$profil_kelompok_usaha->{$file_upload} = NULL;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Start db transaction\n\t\t\t$this->db->trans_begin();\n\t\t\t\n\t\t\t$this->perguruan_tinggi_model->update($perguruan_tinggi, $perguruan_tinggi->id);\n\t\t\t$this->profil_kelompok_model->update($profil_kelompok_usaha, $profil_kelompok_usaha->id);\n\t\t\t\n\t\t\tif ($this->db->trans_status() === TRUE)\n\t\t\t{\n\t\t\t\t$this->db->trans_commit();\n\t\t\t\t\n\t\t\t\t$this->session->set_flashdata('result', [\n\t\t\t\t\t'page_title' => 'Update Kelompok Mahasiswa Wirausaha yang didanai ' . ($is_kemenristek ? 'Ristekdikti' : 'Non-Ristekdikti') . ' - Kelompok ' . $kelompok_ke,\n\t\t\t\t\t'message' => 'Data berhasil disimpan',\n\t\t\t\t\t'link_1' => anchor('profil', 'Kembali ke halaman profil')\n\t\t\t\t]);\n\t\t\t\t\n\t\t\t\tredirect('alert/success');\n\t\t\t\t\n\t\t\t\texit();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Assign ke template\n\t\t$this->smarty->assign('pt', $perguruan_tinggi);\n\t\t$this->smarty->assign('is_kemenristek', $is_kemenristek);\n\t\t$this->smarty->assign('kelompok', $kelompok_ke);\n\t\t$this->smarty->assign('pku', $profil_kelompok_usaha);\n\t\t\n\t\t// Jenis Kategori\n\t\t$kategori_set = $this->db->get_where('kategori', ['program_id' => PROGRAM_KBMI])->result();\n\t\t$this->smarty->assignForCombo('kategori_set', $kategori_set, 'id', 'nama_kategori');\n\t\t\n\t\t$this->smarty->display();\n\t}", "title": "" }, { "docid": "0a5519d30116422ab10feef178b7c05b", "score": "0.5826103", "text": "function simple_post() {\n\t\t$data = array(\n\t\t\t\t\t'username'\t\t=> $this->post('username'),\n\t\t\t\t\t'password'\t\t=> $this->post('password'),\n\t\t\t\t\t'nama'\t\t\t=> $this->post('nama'),\n\t\t\t\t\t'jk'\t\t\t=> $this->post('jk'),\n\t\t\t\t\t'tgl_lahir'\t\t=> $this->post('tgl_lahir'),\n\t\t\t\t\t'alamat'\t\t=> $this->post('alamat'));\n\t\t$insert = $this->db->insert('akun', $data);\n\t\tif ($insert) {\n\t\t\t$this->response($data, 200);\n\t\t} else {\n\t\t\t$this->response(array('status' => 'fail', 502));\n\t\t}\n\t}", "title": "" }, { "docid": "132486c058b292e761f4cfa103549e61", "score": "0.58094484", "text": "public function post_new_val(){\n\t\t$submit_posts \t\t\t\t\t= $this->input->post();\n\t\t\n\t\treturn $this->_set_new_val($submit_posts);\n\t}", "title": "" }, { "docid": "d4c31162e24dddae7991217a31cd31d1", "score": "0.5788363", "text": "function p($k) \t\t\t\t\t{ return isset($_POST[$k]) ? $_POST[$k] : NULL; }", "title": "" }, { "docid": "96270ff366a1be413a3a104943ce10a2", "score": "0.57877177", "text": "public function postingKomentar()\n {\n // preprocessing data\n $data = $this->preprocessing->data($_POST['komentar']);\n $hasil['komentar'] = $_POST['komentar'];\n $komentar = $this->preprocessing->caseFolding($_POST['komentar']);\n $hasil['caseFolding'] = $komentar;\n $komentar = $this->preprocessing->tokenizing($komentar);\n $hasil['tokenizing'] = implode(\" | \", $komentar);\n $komentar = $this->preprocessing->hapusKataGanda($komentar);\n $hasil['hapusHuruf'] = implode(\" | \", $komentar);\n $komentar = $this->preprocessing->normalisasi($komentar);\n $hasil['normalisasi'] = implode(\" | \", $komentar);\n $komentar = $this->preprocessing->stopword($komentar);\n $hasil['stopword'] = implode(\" | \", $komentar);\n $komentar = $this->preprocessing->stemming($komentar);\n $hasil['stemming'] = implode(\" | \", $komentar);\n // klasifikasi jika ada kata hasil preprocessing\n if (count($data) > 0) {\n $conditionalProbability = [];\n foreach ($data as $kata) {\n if ($this->model('KlasifikasiModel')->getProbabilitasKata($kata) !== false) {\n $conditionalProbability[] = $this->model('KlasifikasiModel')->getProbabilitasKata($kata);\n } else {\n $kosong[] = ['kata_unik' => \"$kata\", 'bobot_cyberbullying' => \"0\", 'bobot_non_cyberbullying' => \"0\"];\n }\n }\n // tentukan kelas komentar jika katanya ada dalam tabel conditinal probability\n if (count($conditionalProbability) > 0) {\n $hasil['probabilitasKata'] = $conditionalProbability;\n $hasil['klasifikasi'] = $this->klasifikasi->penentuanKelas($conditionalProbability);\n if ($hasil['klasifikasi']['klasifikasi'] == 'cyberbullying') {\n $this->model('FilterKomentarModel')->tambahKomentarBaru($_POST['komentar'], 'cyberbullying');\n } else {\n $this->model('FilterKomentarModel')->tambahKomentarBaru($_POST['komentar'], 'non_cyberbullying');\n }\n echo json_encode($hasil);\n } else {\n if (count($conditionalProbability) == 0) {\n $kosong = [['kata_unik' => \"-\", \"bobot_cyberbullying\" => \"-\", \"bobot_non_cyberbullying\" => \"-\"]];\n }\n $hasil['probabilitasKata'] = $kosong;\n $hasil['klasifikasi'] = ['cyberbullying' => '-', 'non_cyberbullying' => '-', 'klasifikasi' => 'non_cyberbullying'];\n $this->model('FilterKomentarModel')->tambahKomentarBaru($_POST['komentar'], 'non_cyberbullying');\n echo json_encode($hasil);\n }\n } else {\n $hasil['probabilitasKata'] = [\n ['kata_unik' => \"-\", \"bobot_cyberbullying\" => \"-\", \"bobot_non_cyberbullying\" => \"-\"]\n ];\n $hasil['klasifikasi'] = ['cyberbullying' => '-', 'non_cyberbullying' => '-', 'klasifikasi' => 'non_cyberbullying'];\n $this->model('FilterKomentarModel')->tambahKomentarBaru($_POST['komentar'], 'non_cyberbullying');\n echo json_encode($hasil);\n }\n }", "title": "" }, { "docid": "92293bd684a7fa8d5a323b241f2fc191", "score": "0.5782005", "text": "public function add() {\n $id_sewa = $this->input->post('id_sewa');\n $this->m_rincian->tambah_sewa();\n }", "title": "" }, { "docid": "5bf0ecd4af9acd8bdf5d5ceecba6a192", "score": "0.57783085", "text": "function cargar_estado_post()\n\t{\n\t\tif (isset($_POST[$this->id_form])){\n\t\t\t$this->estado = $_POST[$this->id_form];\n \t} else {\n\t\t\t$this->estado = null;\n \t}\n\t}", "title": "" }, { "docid": "70abdbe6ca26a2e6aa5f70d072c78b1f", "score": "0.5774179", "text": "function index_post() {\n //post semua atributenya\n $data = array(\n 'id_transaksi'=>$this->post('id_transaksi'),\n 'id_pelanggan'=>$this->post('id_pelanggan'),\n 'kode_transaksi'=>$this->post('kode_transaksi'),\n 'waktu'=>$this->post('waktu'),\n 'bayar'=>$this->post('bayar'));\n\n //insert berdasarkan tabel transaksis\n $insert = $this->db->insert('transaksis', $data);\n if ($insert) {\n //respon ketika ada\n $this->response($data, 200);\n } else {\n //respon ketika tak ada\n $this->response(array('status' => 'fail', 502));\n }\n }", "title": "" }, { "docid": "435f2712135cb4d9f936dac39ae0300a", "score": "0.5772754", "text": "function mostrar_campo($campo){\n\n\t\tif(isset($_POST[$campo])){\n\t\t\techo 'value=\"' . $_POST[$campo] . '\"'; \n\t\t}\n\t}", "title": "" }, { "docid": "570f562f60c902af9f7ca63a07477597", "score": "0.577045", "text": "public function get_submitted_edit_form_data()\n {\n //get the inputed UMS, units and assessments\n// $this->ums = $_POST['ums'];\n }", "title": "" }, { "docid": "a444301b731ba5c880b69166947ef48c", "score": "0.57695216", "text": "public static function input($key){\n\t\tif(sizeof($_POST)<=0) die('Post no definido');\n\t\telse if(!isset($_POST[$key])) die('El input '.$key.' no existe');\n\n\t\treturn $_POST[$key];\n\t}", "title": "" }, { "docid": "3a854a18fc1ba4a496a58c7882c35b4b", "score": "0.5768942", "text": "public function kirim_pelanggaran()\n\t{\n\n\t\t$pelanggaran = $this->request->getPost('pelanggaran');\n\t\t$poin_pelanggaran = $this->request->getPost('poin_pelanggaran');\n\t\t$keterangan = $this->request->getPost('keterangan');\n\n\t\t$data = ([\n\t\t\t'pelanggaran' => $pelanggaran,\n\t\t\t'poin_pelanggaran' => $poin_pelanggaran,\n\t\t\t'keterangan' => $keterangan\n\t\t]);\n\n\t\t$input = $this->pelanggaranModel->insert($data);\n\t\tif ($input) {\n\t\t\t$this->session->setFlashdata(\"msg_suc\", \"Berhasil menambah data pelanggaran !\");\n\t\t\treturn redirect()->to(previous_url());\n\t\t} else {\n\t\t\t$this->session->setFlashdata(\"msg_err\", \"Gagal menambah data pelanggaran !\");\n\t\t\treturn redirect()->to(previous_url());\n\t\t}\n\t}", "title": "" }, { "docid": "b0aa9a8f89b3aacd1c033359172e68a4", "score": "0.5759688", "text": "function datosFormLesion(){\r\n\r\n\t\tif(isset($_POST['idLesion'])){\r\n\t\t\t$id=$_POST['idLesion'];\r\n\t\t}else{\r\n\t\t\t$id=null;\r\n\t\t}\r\n\t\tif(isset($_POST['dni'])){\r\n\t\t\t$dni=$_POST['dni'];\r\n\t\t}else{\r\n\t\t\t$dni=null;\r\n\t\t}\r\n\t\tif(isset($_POST['tipo'])){\r\n\t\t\t$tipo=$_POST['tipo'];\r\n\t\t}else{\r\n\t\t\t$tipo=null;\r\n\t\t}\r\n\t\tif(isset($_POST['descripcion'])){\r\n\t\t\t$descripcion=$_POST['descripcion'];\r\n\t\t}else{\r\n\t\t\t$descripcion=null;\r\n\t\t}\r\n\t\tif(isset($_POST['curada'])){\r\n\t\t\t$curada=$_POST['curada'];\r\n\t\t}else{\r\n\t\t$curada=null;\r\n\t\t}\r\n\t\t$lesion= new Lesion($id,$dni,$tipo,$descripcion,$curada);\r\n\t\treturn $lesion;\r\n\t}", "title": "" }, { "docid": "5bf325eeb295c5785a3f243a555d4c04", "score": "0.57592404", "text": "public function tambahData()\n {\n if ($this->validation('tambah')) {\n foreach ($this->input->post('kelas') as $value) {\n $data = [\n 'KODE_MAPEL' => $value . \"-\" . $this->input->post('kode_mapel') . \"-\" . $this->input->post('kode_jurusan'),\n 'NAMA_MAPEL' => $this->input->post('nama_mapel'),\n 'KODE_JURUSAN' => $this->input->post('kode_jurusan'),\n 'STATUS_MAPEL' => $this->input->post('status_mapel')\n ];\n $this->M_Mapel->addData($data);\n }\n\n $this->session->set_flashdata('flash_mapel', 'Ditambahkan');\n redirect('Mapel');\n } else {\n $this->index();\n }\n }", "title": "" }, { "docid": "c7db887425faaf9c30d640f6631e4e7e", "score": "0.57575303", "text": "public function post($key='')\n\t{ \n\t\tif($key)\n\t\t{\n\t\t\t$ret = isset($_POST[$key]) ? $_POST[$key] : FALSE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$ret = new stdclass;\n\n\t\t\tforeach ($_POST as $key => $value) {\n\t\t\t\t$ret->{$key} = $value;\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "1fbe9c8c254ef0a2bfab50bca1da4bf0", "score": "0.5755188", "text": "public function mostrarAlumnoAlta(){\n if(isset($_POST[\"seleccionar\"])){ \n \n $alumno = Datos::recuperarRegistro($_POST[\"id_alumno_select\"],\"alumno\");\n echo '<label>Alumno:</label>'; \n echo'<input class=\"form-control\" type=\"text\" value=\"'.$alumno[\"nombres\"].' '.$alumno[\"apellidos\"].'\"\" name=\"nombreAlumno\" readonly=\"readonly\"><br>';\n echo'<input type=\"hidden\" value=\"'.$alumno[\"matricula\"].'\" name=\"id_alumno\" required>'; \n echo'<button type=\"submit\" name =\"registrar\"class=\" btn btn-success btn-sm waves-effect waves-light\">Registrar</button><br><br>';\n }\n }", "title": "" }, { "docid": "dd4f51e545e3014146b7fe7d746d9bc5", "score": "0.5748837", "text": "public function saveJenis()\n {\n $post = $this->input->post();\n // diinisiasi di variabel yang sudah ditulis di atas\n $data = ['nama' => $post['nama']];\n // insert data ke table\n return $this->db->insert($this->_table_jenis, $data);\n }", "title": "" }, { "docid": "f9c9f0813e588764778132cfaaff8247", "score": "0.5747974", "text": "function post($name='',$clean_code=false){\n\t\treturn $this->getCleanData($name,$_POST,$clean_code);\t\n\t}", "title": "" }, { "docid": "d35ff56e94a40142d35926ab106a5059", "score": "0.5744599", "text": "public function reincidencia($campo){\n if($_POST){\n if(!isset($errores[$campo])){\n echo $_POST[$campo]; \n } \n }\n }", "title": "" }, { "docid": "aaf3f5d4f0d1cda8ff724cf0e9fc1d79", "score": "0.57426316", "text": "public function form_tessay()\n {\n $this->load->view('templates/guru_sidebar');\n $this->topbarGuru();\n $idjudultugas = $this->input->post('id_jTugas');\n $data['data_tEssay'] = $this->M_guru->get_tessay()->result();\n // $data['data_tEssay'] = $this->M_guru->getTugas()->result();\n $data['judul_tugas'] = $this->M_guru->get_judultugas($idjudultugas)->result();\n // $data['upload_data'] = $this->M_guru->\n // $this->image = $this->uploadtgas();\n $this->load->view('view_guru/V_formturaian', $data);\n $this->load->view('templates/user_footer');\n }", "title": "" }, { "docid": "c4310fec28b01ffb3b9acf3a2817ac37", "score": "0.5736747", "text": "public function post($key) {\n if (isset($_POST[$key])) {\n return $_POST[$key];\n }\n\n return NULL;\n }", "title": "" }, { "docid": "21e644af55c92095bf6a999de21af49d", "score": "0.5736252", "text": "public function inputquiz(){\n\t\tglobal $CONFIG, $basedomain;\n\t\t$soal=$_POST['soal'];\n\t\t$pilihan1=$_POST['pilihan1'];\n\t\t$pilihan2=$_POST['pilihan2'];\n\t\t$pilihan3=$_POST['pilihan3'];\n\t\t$pilihan4=$_POST['pilihan4'];\n\t\t$keterangan=$_POST['keterangan'];\n\t\t$jawaban=$_POST['jawaban'];\n\t\t$kursus=$_POST['kursus'];\n\t\t$materi=$_POST['materi'];\n\t\t$groupkursus=$_POST['groupkursus'];\n\t\t$n_status=$_POST['quizstatus'];\n\n\n\t\t// pr($_POST);\n\t\t$data=$this->models->inputquiz($soal,$pilihan1,$pilihan2,$pilihan3,$pilihan4,$jenissoal,$keterangan,$jawaban,$kursus,$materi,$groupkursus, $n_status);\n\t\t//kondisi untuk memberi peringatan proses input berhasil atau tidak\n\t\t// pr($data);\n\t\tif ($data==1){\n\t\t\techo \"<script>alert('data berhasil disimpan');</script>\";\n\t\t\tredirect($basedomain.'quiz/quizlist');\n\t\t}\n\n\t}", "title": "" }, { "docid": "925aac6abc346540674bb38b5b8d7872", "score": "0.5732621", "text": "function add()\n { \n if(isset($_POST) && count($_POST) > 0) \n { \n $params = array(\n\t\t\t\t'mac' => $this->input->post('mac'),\n\t\t\t\t'thrhlder' => $this->input->post('thrhlder'),\n\t\t\t\t'val01' => $this->input->post('val01'),\n\t\t\t\t'tinfo' => $this->input->post('tinfo'),\n );\n \n $tbdatum_id = $this->Tbdatum_model->add_tbdatum($params);\n redirect('tbdatum/index');\n }\n else\n { \n $data['_view'] = 'tbdatum/add';\n $this->load->view('layouts/main',$data);\n }\n }", "title": "" }, { "docid": "ba8ce64ad16dd499053515cbbe5d38ff", "score": "0.5732119", "text": "public function index_post(){\n\n // Comprobar que venga un objeto autor en la peticion\n if( !$this->post() ){\n $this->response( null, 400 );\n }\n\n $id = $this->autores_model->save( $this->post() );\n\n // Comprobar que el id tiene informacion\n if( !is_null( $id ) ){\n $this->response( array( 'response' => $id ), 200 );\n } else {\n $this->response( array('error' => \"Algo ha falldo en el servidor. No se pudo añadir el autor\" ), 400 );\n }\n }", "title": "" }, { "docid": "cb7d9654511f80c3c19f43f4fb6054f1", "score": "0.57312834", "text": "protected function submitted_form_data() {\n\t\t// Checks the form method\n\t\tif ( 'get' == $this->method ) {\n\t\t\t$data = $_GET;\n\t\t} else {\n\t\t\t$data = $_POST;\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "c51da122adb70904e660e87ecca64e5d", "score": "0.57281023", "text": "public function postEditDetalii()\n {\n $pk = Input::get('pk');\n $name = Input::get('name');\n $value = Input::get('value');\n\n $pret_unitar = 0;\n $cantitate = 0;\n \n $ok = true;\n switch ($name) { \n case 'pret_unitar': \n try\n {\n $pret_unitar = $value;\n $pret_unitar = str_replace('.', '', $pret_unitar);\n $pret_unitar = str_replace(',', '.', $pret_unitar);\n $value = $pret_unitar;\n }\n catch(Exception $e) {}\n case 'cantitate':\n try\n {\n $cantitate = $value;\n $cantitate = str_replace('.', '', $cantitate);\n $cantitate = str_replace(',', '.', $cantitate);\n $value = $cantitate;\n }\n catch(Exception $e) {} \n default: \n break;\n }\n DB::table('detalii_factura')\n ->where('id_det_fact', $pk)\n ->update(array($name => $value)); \n }", "title": "" }, { "docid": "2bb848252ede100994100db687211f0b", "score": "0.57276326", "text": "public function consultarTitulo(){\n $titulo = $_POST['titulo'];\n if(!empty($titulo)){\n $juegos = $this->tiendaModel->consultarTitulo($titulo);\n echo $juegos; \n }\n }", "title": "" }, { "docid": "5888e12282c03962be4957fe7a6bf0af", "score": "0.57265574", "text": "private function _input( $name ){ \n preg_match('/(?<name>\\w+)\\[(?<index>\\d+)\\]/', $name, $matches);\n $data = '';\n \n if($matches){\n $name = $matches['name'];\n $index = $matches['index'];\n \n if( isset($_POST[$name][$index]) ){\n $data = $_POST[$name][$index];\n }\n } else {\n if( isset($_POST[$name]) ){\n $data = $_POST[$name];\n } \n } \n\n if( is_array( $data ) ){\n $this->_fValue = implode( MAIN_DELIMITER, $data );\n } else {\n $this->_fValue = $data;\n } \n \n $this->_fValue = trim($this->_fValue); \n }", "title": "" }, { "docid": "7fc38b04f6f720df3e269da039517e4d", "score": "0.57225513", "text": "protected function getPostValue($key){\n\t\treturn array_key_exists($key, $_POST) ? $_POST[$key] : false;\n\t}", "title": "" }, { "docid": "7460a022a7e81cc220e2eaaf1d30a123", "score": "0.57185423", "text": "function odbierzSajanAjax($nazwa){\n\t\tif (isset($_POST[$nazwa])){\n\t\t\treturn json_decode($_POST[$nazwa],true);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "cd248e5c99311d17eec9e12ba80b2e45", "score": "0.5706897", "text": "public function controllersAltPessoaPostNome()\t{\t\t\r\n\t\treturn (!empty($_POST['nome']))\t\t?\taddslashes($_POST['nome'])\t\t:\tnull;\r\n\t}", "title": "" }, { "docid": "4100914c8a28efeaf173ef5a5dd8f3f2", "score": "0.5706507", "text": "public function postAction()\n {\n //$entity->fromArray($request->post);\n $this->request->flashData();\n $result = 'false';\n if (checkCsrf()) {\n $this->request->session->flash('success', true);\n $result = 'true';\n }\n if (stripos($this->request->server[\"HTTP_ACCEPT\"], \"text/html\") !== false) {\n // Formular ausgeben\n echo \"HTML\";\n } else {\n // JSON\n echo \"{Result: $result}\";\n }\n header(\"Location: ./\");\n exit();\n }", "title": "" }, { "docid": "66679a8d48de39287d2155d24e8be74a", "score": "0.5705464", "text": "private function validarDatoPOST() {\n\t\tif (isset($_POST['nick']) && isset($_POST['mensaje'])) {\n\t\t\t$nick = $_POST['nick'];\n\t\t\t$mensaje = $_POST['mensaje'];\n\t\t\t$cachengue = 1; // el ID del cachengue\n\t\t\treturn array($nick, $mensaje, $cachengue);\n\t\t} else {\n\t\t\treturn '';\n\t\t}\n\n\t}", "title": "" }, { "docid": "e3bf4a5a423b2e5285a42d2ea404f25c", "score": "0.57038003", "text": "public function inputwebex(){\n\t\tglobal $CONFIG;\n\t\t//kondisi untuk mengecek validasi form\n\t\tif(isset($_POST['topic']) && isset($_POST['speaker']) && isset($_POST['meeting_number']) && isset($_POST['schedule'])){\n\t\t\t$topic = $_POST['topic'];\n\t\t\t$speaker = $_POST['speaker'];\n\t\t\t$upload1 = uploadFile('picture',false,'image');\n\t\t\t// pr($judul);exit;\n\t\t\t$picture=$upload1['full_name'];\n\t\t\t$waktu = $_POST['waktu'];\n\t\t\t$site = $_POST['site'];\n\t\t\t$schedule = $_POST['schedule'];\n\t\t\t//pr($status);exit;\n\t\t\t$meeting_number = $_POST['meeting_number'];\n\t\t\t//pr($meeting_number);exit;\n\t\t\t$data=$this->models->inputwebex($topic,$speaker,$picture,$waktu,$site,$schedule,$meeting_number);\n\t\t\t//kondisi untuk memberi peringatan proses input berhasil atau tidak\n\t\t\tif($data == 1){\n\t\t\t\techo \"<script>alert('Data Successfully Created');window.location.href='\".$CONFIG['admin']['base_url'].\"webex'</script>\";\n\t\t\t}\n\t\t}\n\t\t//eksekusi jika validasi form tidak sesuai\n\t\telse {pr('gagal');}\n\t}", "title": "" }, { "docid": "eef0938906a420e1d3dbd14ec37af3ac", "score": "0.57027465", "text": "function valideForm()\n{\n\treturn usersConnexion();\n}", "title": "" }, { "docid": "952268208369c32aee277153765e05cf", "score": "0.5700942", "text": "function paramPost($key) {\n\tglobal $app;\n\treturn $app->request()->post($key);\n}", "title": "" }, { "docid": "2a3509390ef0b36986d1570f0278fa61", "score": "0.56979275", "text": "public function action_valide(){\n\n\t\t$this->set_title(\"Inscription\");\n\t\t$err=false;\n\t\t//on récupère la structure du formulaire précédemment stocké dans la session\n\t\t$form=$this->session->form;\n\t\t$form->reset_errors();\n\t\t$form->valid();\n\t\t\n\t\t\n\t\t//faire les tests de vérification de remplissage/format des champs\n\t\t//... expressions régulières, etc.\n\t\n\t\n\t\t//dans cet exemple, on vérifie seulement si le login est vide et s'il n'existe pas dans la base\n\n\t\tif($this->requete->login == ''){\n\t\t\t$err=true;\n\t\t\t$form->login->set_error(true);\n\t\t\t$form->login->set_error_message(\"champ vide !\");\n\t\t}\n\t\n\t\t//Appel à la BD via objet MembreManager\n\t\telseif( MembreManager::chercherParLogin( $this->requete->login) !== false){\n\t\t\t$form->login->set_error(true);\n\t\t\t$form->login->set_error_message(\"login existant !\");\t\t\t\n\t\t\t$err=true;\t\n\t\t }\n\t\t\n\n\n\t\t//test upload fichier\n\t\t$fichier=$this->requete->file('pj');\n\t\tif( $fichier['size'] > 0 ){\n\t\t\techo \"Fichier : <pre>\";\n\t\t\tprint_r($fichier['name']);\n\t\t\tprint_r($fichier['tmp_name']);\n\t\t\tprint_r($fichier['type']);\t\t\t\t\t\t\n\t\t\techo \"</pre>\";\n\t\t}\n\n\t\tprint_r($_REQUEST);\n\n\n\t\t//autres tests\n\t\t//...\n\n\t\t\n\t\t//si un des tests a échoué\n\t\tif($err){\t\n\t\t\n\t\t\t$this->site->ajouter_message('contrôle form : remplir les champs (uniquement login dans cet exemple)',ALERTE);\t\t\t\n\n\t\t\n\t\t\t//on pré-remplit avec les valeurs déjà saisies\n\t\t\t$form->populate();\t\t\n\t\t\t//passe le formulaire dans le template sous le nom \"form\"\n\t\t\t$this->tpl->assign(\"form\",$form);\n\t\t}\n\t\t//tous les tests ont été validés\n\t\telse{\n\n\t\t\t//création d'une instance de Membre\n\t\t\t$m=new Membre($this->requete->login,$this->requete->nom,$this->requete->pnom,\n\t\t\t\t\t\t$this->requete->mail,\n\t\t\t\t\t\t$this->requete->pass1\n\t\t\t\t\t\t);\n\n\t\t\t//enregistrement (insertion) dans la base\n\t\t\tMembreManager::creer($m);\n\n\t\t\t//passe un message pour la page suivante\n\t\t\t$this->site->ajouter_message('L\\'utilisateur est enregistré');\t\t\t\n\n\t\t\t//redirige vers le module par défaut\n\t\t\t$this->site->redirect('index');\n\t\t}\n\t}", "title": "" }, { "docid": "79e73a057adc15cfd6ca06cc09a897ed", "score": "0.56966114", "text": "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->etiqueta=$_POST['etiqueta'];\n\t\t$this->padre=$_POST['padre'];\n\t}", "title": "" }, { "docid": "671fa86176f1196efee13e7fadb8060e", "score": "0.5696219", "text": "public function postCrear()\n \t{\n \t\t// recibimos la variable enviada por el formulario con el metodo post\n \t\t$nombre = Input::get('nombre');\n \t\treturn 'Usuario Registrado: '.$nombre;\n \t}", "title": "" }, { "docid": "5ec1691eb3811a15355e7bf7c43c6f1a", "score": "0.5680704", "text": "private function _getFormValues() {\n if ($this->input->post('id', TRUE))\n $data['id'] = $this->input->post('id', TRUE);\n $data['company_name'] = $this->input->post('company_name', TRUE);\n $data['owner_name'] = $this->input->post('owner_name', TRUE);\n $data['registration_no'] = $this->input->post('registration_no', TRUE);\n $data['phone'] = $this->input->post('phone', TRUE);\n $data['address'] = $this->input->post('address', TRUE);\n $data['email'] = $this->input->post('email', TRUE);\n $data['password'] = md5($this->input->post('password', TRUE));\n return $data;\n }", "title": "" }, { "docid": "23cf9f956fdc4f25cdd72d682858b0bd", "score": "0.56778806", "text": "public function submitKapasitasAction($id)\n\t{\n\t\t//tapi disini aku menggunakan id..\n\t\t//nanti kalau error tinggal di ganti where,nya\n\t\t$get_session = $this->session->get('ps_id');\n\t\t$explode = explode('-', $get_session);\n\t\t$ps_id = $explode[1];\n\n \t$kap = $_POST['kap'];\n \t$jml_mhs = $_POST['jml_mhs'];\n\n\t\t$kapasitas = ($jml_mhs > $kap ? $jml_mhs : $kap);\n \t$class = RefAkdMkkpkl::findFirstById($id);\n $class->assign(array(\n 'kapasitas' => $kapasitas\n )\n );\n\n $class->save();\n\n $ps_mkkpkl = RefAkdPsMkkpkl::findFirstById($id);\n $ps_mkkpkl->assign(array(\n 'kapasitas' => $kapasitas\n )\n );\n\n $ps_mkkpkl->save();\n\n $notif = array(\n 'title' => 'success',\n 'text' => 'Data berhasil di input',\n 'type' => 'success',\n );\n echo json_encode($notif);\n\t}", "title": "" }, { "docid": "045c4db7d235f1a0c58f5ecb09e36610", "score": "0.5677342", "text": "function ajax_add_content()\n {\n // $student = array(\n // '08T1016' => 'Phan Văn Cương',\n // '08t1013' => 'Nguyễn Văn Hoàng',\n // '08t1015' => 'Bùi Việt Đức',\n // );\n // foreach($student as $key=>$value){\n // echo $key.'=>'.$value;\n // }\n\n if($this->input->post('tang')!='') $tang = $this->input->post('tang');\n else $tang = 1;\n\n if(!$tang)\n {\n echo \"Khong ton tai\";\n }\n else\n {\n //echo $tang; die;\n\n $this->data['tang'] = $tang;\n $this->load->view('admin/json_manager/add_ajax', $this->data);\n }\n\n\n\n\n }", "title": "" }, { "docid": "fc2e71e89ca9b6f0a9155323b45d689f", "score": "0.5675251", "text": "public function postData($key){\n\t\treturn isset($_POST[$key]) ? $_POST[$key] : null;\n\t}", "title": "" }, { "docid": "4b51d330812cbfd94eaa3c29f02069db", "score": "0.5667837", "text": "public function post($key)\n {\n return isset($_POST[$key]) ? $_POST[$key] : null;\n }", "title": "" }, { "docid": "81abc3bec76e1a07fcc693b2c52543e6", "score": "0.56658053", "text": "function index_post()\n {\n $_POST = $this->post();//Permite poder validar los datos del post\n\n $this->load->model('errors_model');\n\n $this->errors_model->add($this->deviceId, $this->post('error'));\n \n }", "title": "" }, { "docid": "7f50bb62fe3a5b82dbc7c4e84d77c92a", "score": "0.56607103", "text": "function asignar_valores4(){\n\t\t$this->id=$_POST['id'];\n\t\t$this->temporada=$_POST['temp'];\n\t\t$this->categoria=$_POST['categoria_nuevo'];\n\t\t$this->precio=$_POST['precio_nuevo'];\n\t\t$this->weekend=$_POST['weekend_nuevo'];\n\t\t$this->maximo=$_POST['hasta_nuevo'];\n\t\t$this->minimo=$_POST['desde_nuevo'];\n\t\t$this->tipo=$_POST['tipo_nuevo'];\n\t\t\n\t}", "title": "" }, { "docid": "a1ebca91578827a40f3dd87c383c7428", "score": "0.56573457", "text": "function index_post() {\n $data = array(\n 'no_karcis' => $this->post('no_karcis'),\n 'waktu_masuk' => $this->post('waktu_masuk'),\n 'plat_nomor' => $this->post('plat_nomor'),\n 'kode_parkiran'=> $this->post('kode_parkiran'),\n 'status' => '1');\n $insert = $this->db->insert('parkir', $data);\n if ($insert) {\n $this->response($data, 200);\n } else {\n $this->response(array('status' => 'fail', 502));\n }\n }", "title": "" }, { "docid": "7cc32e850bc84609c2f0e0c022fe1288", "score": "0.5653169", "text": "public function index_post(){\n //,total_transaksi_produk,diskon_produk\n $validation = $this->form_validation;\n $rule = $this->TransaksiLayananModel->Rules();\n $validation->set_rules($rule);\n if (!$validation->run()) {\n\t\t\treturn $this->returnData($this->form_validation->error_array(), true,400);\n }else{\n $TransaksiLayanan = new dataTransaksiLayanan();\n $TransaksiLayanan->id_pegawai = $this->post('id_pegawai');\n $TransaksiLayanan->peg_id_pegawai = $this->post('peg_id_pegawai');\n $TransaksiLayanan->id_hewan = $this->post('id_hewan');\n $response = $this->TransaksiLayananModel->store($TransaksiLayanan);\n $this->response(['Message'=>$response['msg'],'Error'=>$response['error']],200);\n }\n }", "title": "" }, { "docid": "efdfd0674d503c78ea37c6fda909ccd3", "score": "0.5649422", "text": "public static function post($key) {\n return isset($_POST[$key]) ? $_POST[$key] : null;\n }", "title": "" }, { "docid": "2c9401b2a955d16b6bdada2aa8a8c71c", "score": "0.5644716", "text": "static function getFormValue($name)\n {\n if (isset($_POST[$name]))\n {\n return $_POST[$name];\n } else {\n if (isset($_GET[$name]))\n {\n return $_GET[$name];\n } else {\n return '';\n }\n }\n }", "title": "" }, { "docid": "05ebf3100ab18e0ad60b5eb2709e4015", "score": "0.5643234", "text": "public function tambahOpd()\n {\n $id_opd = $this->keygen(7);\n $nama_opd = $this->input->post('opd');\n \n $data = array(\n 'id_opd' => $id_opd,\n 'nama_opd' => $nama_opd\n );\n \n $this->m_forms->tambahDataOpd($data, 't_opd');\n \n redirect('admin/forms');\n }", "title": "" }, { "docid": "2b936e7bf0b63e51e1048481499346f4", "score": "0.56393856", "text": "public function input_mutasi(){\n\t\t$this->load->view('template/header');\n\t\t$data['pegawai'] = $this->m_models->getAll(\"pegawai where status_aktf='Aktif' order by nama\");\n\t\t$data['jabatan'] = $this->m_models->getAll('jabatan');\n\t\t$data['penempatan'] = $this->m_models->getAll('sekolah order by nama');\n\t\t$this->load->view('pegawai/f_mutasi',$data);\n\n\t\t//menampilkan tampilan footer\n\t\t$this->load->view('template/footer');\n\t}", "title": "" }, { "docid": "08e040b4fd774341facfccf9bd696f63", "score": "0.5635799", "text": "function index_post() {\n\t\t$data = array(\n\t\t\t\t\t'id_rs'\t\t=> $this->post('id_rs'),\n\t\t\t\t\t'nama_rs'\t\t=> $this->post('nama_rs'),\n\t\t\t\t\t'alamat_rs'=> $this->post('alamat_rs'),\n\t\t\t\t\t'tlp_rs'\t=> $this->post('tlp_rs'));\n\t\t$insert = $this->db->insert('rumah_sakit', $data);\n\t\tif ($insert) {\n\t\t\t$this->response($data, 200);\n\t\t} else {\n\t\t\t$this->response(array('status' => 'fail', 502));\n\t\t}\n\t}", "title": "" }, { "docid": "f52c6014a2fcd2989fed1de7e3d67d69", "score": "0.562915", "text": "public function formChangePost()\n {\t\n if(isset($_SESSION['id']) AND isset($_SESSION['login'])){\n $postManager = new PostManager();\n \t$post = $postManager->getPost($_GET['id']);\n if ($post === false){\n throw new Exception('Numéro d\\'identifiant non valide!'); \n } else {\n require('view/backend/formChangePost.php'); // Affiche la vue du formulaire de modification du billet\n }\n } else {\n throw new \\Exception('Vous n\\'êtes pas connecté'); \n }\n }", "title": "" } ]
532bbdb364a0c8dbd4afac2440e57f11
Update admin note from database
[ { "docid": "c2881b545029a0daa0add03a8c818267", "score": "0.5674615", "text": "public function updateNotes(Request $request)\n {\n Core::createAdminNote($request);\n if ($request->ajax()) {\n return response()->json();\n }\n flash(trans('admin.dashboard.note.update_success'));\n return redirect()->back();\n }", "title": "" } ]
[ { "docid": "c6214827cd5e053e6867bfb1c61cf17b", "score": "0.7130422", "text": "public function testUpdatePurchaseOrderNote()\n {\n }", "title": "" }, { "docid": "c5cef42b4205509baa801ecae9bef9b5", "score": "0.7001866", "text": "public function updateAdminNotes($params = []) {\n $params['action'] = 'UpdateAdminNotes';\n return $this->submitRequest($params);\n }", "title": "" }, { "docid": "156bcbec0fbab380dbf9dc4cd46278fe", "score": "0.69408345", "text": "public function updateNoteCon() {\n $data = $this->emptyData();\n if (isset($_GET['action'])) {\n if($_GET['action'] === '_UPDATE') {\n if(empty($_GET['textContent'])) {\n $data['errorMess'] = \"Please enter some content in the note to be saved.\";\n } else {\n $_GET['textContent'] = filterString($_GET['textContent']);\n if($_GET['textContent']=== false) {\n $data['errorMess'] = \"Please enter valid content in the note.\";\n } else {\n $data['noteId'] = trim($_GET['noteId']);\n $data['textContent'] = trim($_GET['textContent']);\n $data['colorId'] = $_GET['colorId'];\n $tempUpdate = $this->noteModel->updateNoteModel($data['noteId'], $data['textContent'], $data['colorId']);\n if($tempUpdate) {\n $data['errorMess'] = \"The note is saved.\";\n } else {\n $data['errorMess'] = 'Something went wrong, please try again.';\n }\n }\n }\n }\n }\n $this->reloadPage($data);\n }", "title": "" }, { "docid": "b64bfdebda54c8deb20878a16be919ac", "score": "0.6869036", "text": "public function updateNote($code)\r\n { \r\n MS_Activity::update_note($code, $this->db); //viene invocato il Microservizio per aggiornare le note dell'attivita selezionata dall'utente\r\n }", "title": "" }, { "docid": "72fb87a3e8cbd1ad8e71e0f51d1c2861", "score": "0.68424916", "text": "public function update_backup_note()\n {\n $encrypt = $this->services['encrypt'];\n $file_name = $encrypt->decode($this->platform->getPost('backup'));\n $backup_type = $this->platform->getPost('backup_type');\n $note_text = $this->platform->getPost('note_text');\n if($note_text && $file_name)\n {\n $path = rtrim($this->settings['working_directory'], DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$backup_type;\n $this->services['backup']->getDetails()->addDetails($file_name, $path, array('note' => $note_text));\n echo json_encode(array('success'));\n }\n exit;\n }", "title": "" }, { "docid": "e91ac6dfa7ea19e33d5b62ce16b467af", "score": "0.6840747", "text": "function UpdateFollowUpNote ($note, $id)\r\n{\r\n\tglobal $db;\r\n\t$query = \"UPDATE contact_us SET note = '\".$note.\"' WHERE id = '\".$id.\"'\";\r\n\t$db->query($query);\r\n}", "title": "" }, { "docid": "3cdcc4faeb8721d51ab9c1c34a6494ba", "score": "0.6716408", "text": "public function update_plugin_note() {\n\t\t\n\t\tif ( isset( $_POST['NevNote'] ) ) {\n\t\t\t\n\t\t\t$note_value = $_POST['NevNote'];\n\t\t\t$option_name = $_POST['optionName'];\n\t\t\tupdate_site_option( $option_name, $note_value );\n\t\t\twp_send_json_success( $note_value );\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f84058230de0382dc6b1b3db0c9c5289", "score": "0.6540051", "text": "public function udpateNote(Request $request){\r\n $note = Note::find($request->input('id'));\r\n $note->title = $request->input('title');\r\n $note->description = $request->input('description');\r\n $note->save();\r\n return redirect()->route('fetchNotes')->with('info', 'Note updated, Title is: ' . $request->input('title'));\r\n }", "title": "" }, { "docid": "a0aaafd2015a870bbdb5ecb3b43532ef", "score": "0.6515963", "text": "public function db_update() {\r\r\n }", "title": "" }, { "docid": "62710cab939488e258c884ddcd2fa130", "score": "0.6498846", "text": "function edit(){\n\t$note = $_POST['note'];\n\t$id = $_POST['id'];\n\t$db = get_database_connection();\n $statement = $db->prepare(\"UPDATE absentee set notes=:note WHERE id=:id\");\n $statement->bindValue(\":id\", $id);\n\t$statement->bindValue(\":note\", $note);\n $statement->execute();\n\t$_POST['note']=null;\n\t$_POST['id']=null;//clears id\n\t$db= null;\n}", "title": "" }, { "docid": "90d4199ecc564540ffdeb959d765745d", "score": "0.64473724", "text": "function update(){\n\t\t\n\t\t$data = array(\n\t\t\t'title' => 'My freshly updated AGAIN title',\n\t\t\t'author'=> 'Phillip Walker',\n\t\t\t'contents' => 'This is updated'\n\t\t);\n\t\t\n\t\t$this->site_model->update_record($data);\n\t\t\n\t}", "title": "" }, { "docid": "083ad90f202315d86873b3daa04dbc0f", "score": "0.6419981", "text": "function ncn_capsulecrm_note_update_note($claim_id, $history_id, $note) {\nglobal $user;\n $entry = array();\n $entry['content'] = \"[claim #$claim_id] - \".$note;\n // $capsulecrm_account = ncn_capsulecrm_account_get_account($user);\n // if ($capsulecrm_account) {\n // $data['creator'] = $capsulecrm_account;\n // }\n $entry = (object)$entry;\n $response = capsule_update_entry( (object)(array('entry'=>$entry)), $history_id );\n if ($response->code != 200) { \n drupal_set_message(t('Capsule CRM Error: Failed to update NOTE into Capsule CRM'), 'error');\n return FALSE; \n }\n \n return TRUE;\n}", "title": "" }, { "docid": "116cbb671a619746682a075ddcc3a297", "score": "0.63256496", "text": "public function actionUpdate()\n\t{\n\t\t$oCSOS = ConfDisclaimerSettings::model()->findByPk($_GET['id']);\n\t\tif($oCSOS && $_GET['newtext'])\n\t\t{\n\t\t\t$oCSOS->name = $_GET['newtext'];\n\t\t\t$oCSOS->save();\n\t\t}\n\t}", "title": "" }, { "docid": "0ceab30245ce0c8a183f49f1343e3941", "score": "0.6320314", "text": "public function edit(Note $note)\n {\n //\n }", "title": "" }, { "docid": "0ceab30245ce0c8a183f49f1343e3941", "score": "0.6320314", "text": "public function edit(Note $note)\n {\n //\n }", "title": "" }, { "docid": "45c50c11dd25e66ae89f83e80be809c8", "score": "0.6307124", "text": "public function actionEdit() {\n /********* Utils is the class used for all common data processing and response sending functions ******* */\n $utils = new Utils();\n self::$requiredFields = array(\"id\");\n $data = $utils->processRequest(self::$requiredFields,self::$permissionName); //It process the Json input to an array format;\n\n /******* Fetching the existing note details from user_notes table ******** */\n $usernotes = new UserNotes();\n $noteData = $usernotes->getNote($data);\n $utils->sendResponse($noteData); // It sends out the response as a json object to the frontend*/\n }", "title": "" }, { "docid": "5d704ce433972dd29310a9b661a01e3b", "score": "0.6284013", "text": "function update_in_db() {\r\n //include connection variable\r\n global $db;\r\n\r\n // sql statement\r\n $sql = \"UPDATE answers\r\n SET is_active = '\".$this->getIsActive().\"',\r\n last_edited_on = '\".$this->getLastEditedOn().\"',\r\n question = '\".$this->getQuestion().\"',\r\n value = '\".$this->getValue().\"',\r\n type = '\".$this->getType().\"',\r\n description = '\".$this->getDescription().\"'\r\n WHERE id = '\".$this->getId().\"';\";\r\n \r\n $db->exec($sql);\r\n }", "title": "" }, { "docid": "4e261fd63aeb347db81f4bd31d5fa898", "score": "0.62697697", "text": "public function update_note()\n\t{\n\t\tparent::remove();\n\t}", "title": "" }, { "docid": "9831e5641e8717667938c7eb02baef7a", "score": "0.62655556", "text": "public function onEditNote(ProjectNoteEvent $event){\n $date = new \\DateTime();\n $content = $event->getNote()->getContent();\n \n $message = sprintf(\n \"The user '%s' edit note '%s' for project named '%s' on %s\", \n $event->getUser()->getUsername(), \n StringTool::limitLength($content, 20, \"...\"),\n $event->getProject()->getName(), \n $date->format(\"Y-m-d H:i:s\")\n );\n \n $links = $this->createArrayCollection([$event->getUser(), $event->getProject(), $event->getNote()]);\n $this->getNewTracker($event->getEventName(), $message, $event->getUser(), $links);\n \n $this->doctrine->getManager()->flush();\n }", "title": "" }, { "docid": "01a14939b54524b3b43c2deb07e55af1", "score": "0.6226902", "text": "public function updateConfirm() {\n $title = filter_var($_POST['updateTitleTopic'], FILTER_SANITIZE_STRING);\n $content = nl2br(filter_var($_POST['updateContentTopic'], FILTER_SANITIZE_STRING));\n if($_SESSION['role'] === 2) {\n $log = new Logger('LogAdmin');\n $log->pushHandler(new StreamHandler($_SERVER['DOCUMENT_ROOT'] . '/log.txt', Logger::INFO));\n $log->info(\"Le modérateur \" . $_SESSION['username'] . \" a mise à jour le sujet \" . $title);\n }\n\n $topic = TopicManager::getManager()->search($_SESSION['topicUpdate']);\n $topic->setTitle($title)->setContent($content)->setModify(1);\n unset($_SESSION['topicUpdate']);\n\n TopicManager::getManager()->update($topic);\n\n header(\"Location: /index.php?controller=topic&action=view&topic=\" . $topic->getId() .\"\");\n }", "title": "" }, { "docid": "22547a3da8e0fe85dd9bd639ba11370d", "score": "0.62247056", "text": "public function update(Note $note)\n {\n // Get all the inputs\n // id is used for login, username is used for validation to return correct error-strings\n $notedata = array(\n 'notetitle' => Input::get('notetitle'),\n 'section_id' => Input::get('section_id'),\n 'description' => Input::get('description')\n );\n\n // Declare the rules for the form validation.\n $rules = array(\n 'notetitle' => 'Required',\n 'description' => 'Required'\n );\n\n // Validate the inputs.\n $validator = Validator::make($notedata, $rules);\n\n // Check if the form validates with success.\n if ($validator->fails())\n {\n return Redirect::to('notes/create')->withInput()->withErrors($validator);\n } else {\n\n $Note = new Note;\n\n $Note->notetitle = Input::get('notetitle');\n $Note->description = Input::get('description');\n if (Input::get('currSectionID') != Input::get('section_id')){\n $Note->section_id = Input::get('section_id');\n\n $note->rank = Section::where('section_id', '=', Input::get('section_id'))->orderBy('rank', 'DESC')->first()->rank + 1;\n }\n\n\n\n\n $Note->save();\n\n return Redirect::route('note/show')->with('note', $Note)->with('success', 'Note Updated Successfully');\n }\n }", "title": "" }, { "docid": "060732a70915877ce72157e561a4e970", "score": "0.6223458", "text": "function updatePersonalNotesDetails($update_id, $note)\n\t{\n\n\t\t//Inserts note details from form into associative array with keys same name as database fields \n\t\t$note_data['master_id'] = $update_id;\n\t\t$note_data['note'] = $note;\n\n\t\t$stored_proc_call = \"CALL updatePersonalNotesDetails(?,?)\";\n\t\t$query = $this->db->query($stored_proc_call, $note_data);\n\t}", "title": "" }, { "docid": "0ce1126935811f306a7dee3bc4c34540", "score": "0.6216509", "text": "public function updated(MedicalNote $medicalNote)\n {\n }", "title": "" }, { "docid": "fb4a800852d547046137ddaf9838b057", "score": "0.62150544", "text": "function update_notes($id,$params)\r\n {\r\n $this->db->where('id',$id);\r\n return $this->db->update('notes',$params);\r\n }", "title": "" }, { "docid": "8fcf879eab42c9ac2cb80cb138853d12", "score": "0.6193742", "text": "public function update_notes($orderid,$client_personal_info){\r $query =\"UPDATE `ct_order_client_info` SET `client_personal_info` = '\".$client_personal_info.\"' where `order_id` = $orderid\";\r $result=mysqli_query($this->conn,$query);\r return $result;\r }", "title": "" }, { "docid": "3313e255adf77713a0d024f82e133f66", "score": "0.6188008", "text": "function update_profile_notes(&$ld){\n\t\t//if(!$this->dbu->move_next()){\n\t\t//\t$ld['error']=\"Please fill your Contact information first.\";\n\t\t//\treturn false;\n\t\t//}\n\t\t$this->dbu->query(\"UPDATE trainer SET lang='\".$ld['language'].\"' WHERE trainer_id='\".$_SESSION[U_ID].\"'\");\n\t\t//check exists in db\n\t\t$this->dbu->query(\"SELECT exercise_note_id FROM exercise_notes WHERE trainer_id=\".$_SESSION[U_ID].\" \");\n\t\tif(!$this->dbu->move_next()){\n\t\t\t$this->dbu->query(\"INSERT INTO exercise_notes SET exercise_notes = '\".$ld['exercise_notes'].\"', trainer_id=\".$_SESSION[U_ID].\" \");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->dbu->query(\"UPDATE exercise_notes SET exercise_notes = '\".$ld['exercise_notes'].\"' WHERE trainer_id=\".$_SESSION[U_ID].\" \");\n\t\t}\n\t\t$ld['error'] = get_template_tag($ld['pag'], $ld['lang'], 'T.SUCCESS_NOTES');\n\t\treturn true;\t\t\n\t}", "title": "" }, { "docid": "6fd2912843352f02f1071190bcb496a0", "score": "0.6173764", "text": "public function updateMonthNote(){\n\n $this->responseCheckSiteAndUiAction($this->request->data['site_id'],'edit_advice_note');\n $site_id = $this->request->data['site_id'];\n\n $this->loadModel('SsmKpiNote');\n\n if(!empty($this->request->data['key_note'])){\n $update_key = $this->request->data['key_note'];\n }else{\n $update_key = 'note';\n }\n\n $note = $this->request->data['note'];\n $year = $this->request->data['year'];\n $month = $this->request->data['month'];\n\n $kpiNote = $this->SsmKpiNote->find('first',array('conditions'=>array(\n 'year' =>$year,\n 'month' =>$month,\n 'site_id' =>$site_id\n )));\n\n //Check update key advice_note_8 (仕組み作りにかかるコスト) || advice_note_10 (認知/集客対策にかかるコスト)\n if($update_key == 'advice_note_8' || $update_key == 'advice_note_10' || $update_key == 'advice_sessions'){\n $note = intval($note);\n }elseif($update_key == 'advice_transactionsPerSession' || $update_key == 'advice_revenuePerTransaction'){\n $note = floatval($note);\n }\n\n if($kpiNote){\n $this->SsmKpiNote->clear();\n $this->SsmKpiNote->id = $kpiNote['SsmKpiNote']['id'];\n $this->SsmKpiNote->set('year',$year);\n $this->SsmKpiNote->set('month',$month);\n $this->SsmKpiNote->set($update_key,$note);\n if($this->SsmKpiNote->save()){\n //Get updated record and response\n $kpiNoteUpdated = $this->SsmKpiNote->find('first',array('conditions'=>array(\n 'year' =>$year,\n 'month' =>$month,\n 'site_id' =>$site_id\n )));\n\n $kpiNoteUpdated['SsmKpiNote']['estimated_cost'] = $kpiNoteUpdated['SsmKpiNote']['advice_note_8'] + $kpiNoteUpdated['SsmKpiNote']['advice_note_10'];\n //Build more data display in kpi page\n $kpiNoteUpdated['SsmKpiNote']['estimated_display'] = \"¥\".number_format(($kpiNoteUpdated['SsmKpiNote']['advice_sessions'] * $kpiNoteUpdated['SsmKpiNote']['advice_transactionsPerSession'] * $kpiNoteUpdated['SsmKpiNote']['advice_revenuePerTransaction'])/100);\n $kpiNoteUpdated['SsmKpiNote']['estimated_cost_display'] = \"¥\".number_format($kpiNoteUpdated['SsmKpiNote']['estimated_cost']);\n\n echo json_encode(array(\n 'status'=>'SUCCESS',\n 'data'=>$kpiNoteUpdated['SsmKpiNote']\n ));\n exit;\n }else{\n echo json_encode(array(\n 'status'=>'ERROR',\n 'data'=>array()\n ));\n exit;\n }\n }else{\n $this->SsmKpiNote->clear();\n $this->SsmKpiNote->set('year',$year);\n $this->SsmKpiNote->set('month',$month);\n $this->SsmKpiNote->set('site_id',$site_id);\n $this->SsmKpiNote->set($update_key,$note);\n if($this->SsmKpiNote->save()){\n //Get updated record and response\n $kpiNoteUpdated = $this->SsmKpiNote->find('first',array('conditions'=>array(\n 'year' =>$year,\n 'month' =>$month,\n 'site_id' =>$site_id\n )));\n\n $kpiNoteUpdated['SsmKpiNote']['estimated_cost'] = $kpiNoteUpdated['SsmKpiNote']['advice_note_8'] + $kpiNoteUpdated['SsmKpiNote']['advice_note_10'];\n $kpiNoteUpdated['SsmKpiNote']['estimated_cost_display'] = \"¥\".number_format($kpiNoteUpdated['SsmKpiNote']['estimated_cost']);\n\n echo json_encode(array(\n 'status'=>'SUCCESS',\n 'data'=>$kpiNoteUpdated['SsmKpiNote']\n ));\n exit;\n }else{\n echo json_encode(array(\n 'status'=>'ERROR',\n 'data'=>array()\n ));\n exit;\n }\n }\n }", "title": "" }, { "docid": "95f39fbc00529a47b733aa8ca27c4769", "score": "0.61725795", "text": "public function update() {\n\t\t\tif(!empty($this->title) AND !empty($this->content) AND $this->title != NULL AND $this->content != NULL) {\n\t\t\t\t$this->seo = $this->mysqli->friendlyString($this->title) . \".html\";\n\t\t\t\t$this->description = sprintf(\"<p>\" . substr(strip_tags($this->content, \"<a><strong><em><h1><h2><h3><h4><h5><h6><b><i><del><code>\"), 0, 400).\"... <a href=\\\"\" . URL . \"/post/\" . $this->seo . \" \\\" class=\\\"readmore\\\"><span class=\\\"fa fa-angle-double-right\\\"></span></a></p>\");\n\t\t\t\t$sql = sprintf(\"UPDATE articles SET title='%s', seo='%s', markdown='%s', content ='%s', description='%s', tags='%s', update_date='%s' WHERE id=%s\",\n\t\t\t\t\t\t\t\t$this->title,\n\t\t\t\t\t\t\t\t$this->seo,\n\t\t\t\t\t\t\t\t$this->markdown,\n\t\t\t\t\t\t\t\t$this->content,\n\t\t\t\t\t\t\t\t$this->description,\n\t\t\t\t\t\t\t\t$this->tags,\n\t\t\t\t\t\t\t\t$this->date,\n\t\t\t\t\t\t\t\t$this->id);\n\t\t\t\t$this->mysqli->query($sql);\n\t\t\t\techo 1;\n\n\t\t\t\t$this->title = NULL;\n\t\t\t\t$this->content = NULL;\n\t\t\t\tunset($this->title);\n\t\t\t\tunset($this->content);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f13d22b6c34ad767f3f6ae472e389391", "score": "0.6152678", "text": "function updateAdmin() {\n\t\t$sql = \"UPDATE umuser \n\t\t\t\tSET\tUsName=?, UsLogin=?, UsPsCode=?, UsPassword=?, UsWgID=?, UsQsID=?, UsAnswer=?, UsEmail=?, UsActive=?, UsAdmin=?, UsDesc=?, UsPwdExpDt=?, UsUpdDt=?, UsUpdUsID=?, UsSessionID=? ,UsDpID=?\n\t\t\t\tWHERE UsID=?\";\t\n\t\t \n\t\t$this->ums->query($sql, array($this->UsName, $this->UsLogin, $this->UsPsCode, $this->UsPassword, $this->UsWgID, $this->UsQsID, $this->UsAnswer, $this->UsEmail, $this->UsActive, $this->UsAdmin, $this->UsDesc, $this->UsPwdExpDt, $this->UsUpdDt, $this->UsUpdUsID, $this->UsSessionID, $this->UsDpID , $this->UsID));\n\t}", "title": "" }, { "docid": "58772276d0b3b15600d91c78b945cf03", "score": "0.6133659", "text": "public function update() {\n $todo = new Todo(array('id'=>$this->params['id']));\n $todo->description = $this->params['description'];\n $todo->done = $this->params['done'];\n $todo->save();\n $this->redirect_to('all');\n }", "title": "" }, { "docid": "be8575865aa0c853c54a8ff3e990a839", "score": "0.61216885", "text": "function updateNote($id, $newContent) {\n try {\n $connection = new PDO(db_dsn, db_username, db_passwd);\n //Update the content of the target id.\n $query = $connection->prepare(\"UPDATE notes\n SET content = :content,\n last_modified = CURRENT_TIMESTAMP\n WHERE id = :id\");\n $query->bindParam(':id', $id, PDO::PARAM_INT);\n $query->bindParam(':content', $newContent, PDO::PARAM_STR);\n $query->execute();\n } catch (PDOException $e) {\n echo $e->getMessage();\n }\n}", "title": "" }, { "docid": "6a5daf84891ddb0bbbaf4e254a39f22e", "score": "0.6113905", "text": "function update($uid=null)\n { \n $notif = $this->Notif_model->get_by_id($uid)->row();\n\t$this->session->set_userdata('langid', $notif->id);\n echo $notif->id.'|'.$notif->customer.'|'.$notif->content.'|'.$notif->type.'|'.$notif->reading.'|'.$this->customer->get_name($notif->customer).'|'.$notif->subject;\n }", "title": "" }, { "docid": "726ff2cd94e7482ec0d9f650a7f91c4e", "score": "0.6110981", "text": "public function woocommerce_updated_note() {\n\t\tWC_Admin_Notes_Settings_Notes::add_notes_for_settings_that_have_moved();\n\t}", "title": "" }, { "docid": "04b36816c64ba83380bd4c9d4870446c", "score": "0.6107813", "text": "public function update(Note $note, NotesRequest $request){\n\n\n // una manera larga pero sencilla de validar es la siguiente\n // request()->validate([\n // 'title' => 'required',\n // 'body' => 'required'\n \n // ]);\n\n $note->update($request->all());\n // $note->update(request()->all()); otra manera de hacerlo y que dara el mismo resultado\n \n\n // una manera mas larga de guardar datos\n // $note->title = request()->title;\n // $note->body = request()->body;\n // $note->important = request()->important;\n // $note->save();\n return redirect('/notes');\n // return back(); para regresar al mismo formulario\n }", "title": "" }, { "docid": "5a8c27b6ec97ffe66f2da81b50961cdc", "score": "0.60939574", "text": "function modify()\n\t{\n\t\t$auteur = $this->auteur_model->update_entry();\n\n\t\t$supp = array(\n\t\t'warning'\t=>\tfalse,\n\t\t'success'\t=>\t\" \".$auteur->prenom.\" \".$auteur->nom.\" modifié\",\n\t\t'danger'\t=>\tfalse\n\t\t);\n\n\t\t$this->load->view('notification',$supp);\n\t\t$this->index();\n\n\t\t\t$footer = array(\n\t\t\t'date' \t\t=>\tdate('d/m/Y'),\n\t\t\t'post'\t\t=> $_POST\n\t\t\t);\n\t}", "title": "" }, { "docid": "8ea1e0c14b0a82b938ab650fc2b14820", "score": "0.6093898", "text": "public function update() {\n $this->data['title'] = PAGE_TITLE . ' - Admin Page';\n\n $this->load->model($this->model);\n $model = $this->model;\n\n $tableColumn = 'id';\n if(isset($_POST) and isset($_POST['id'])){\n $this->id = $_POST['id'];\n $this->$model->update($this->table, $_POST);\n }\n\n $this->home();\n return;\n }", "title": "" }, { "docid": "1989d5fe6363e74153c8bbe1e5328324", "score": "0.60554624", "text": "public function updated(Admin $admin)\n {\n //\n }", "title": "" }, { "docid": "1989d5fe6363e74153c8bbe1e5328324", "score": "0.60554624", "text": "public function updated(Admin $admin)\n {\n //\n }", "title": "" }, { "docid": "365e4614f7c0d814604f084e88cb722c", "score": "0.60059106", "text": "public function updateNote($guildSlug) {\r\n $guild = request()->get('guild');\r\n $currentMember = request()->get('currentMember');\r\n\r\n if (!$currentMember->hasPermission('edit.items')) {\r\n request()->session()->flash('status', 'You don\\'t have permissions to edit items.');\r\n return redirect()->route('member.show', ['guildSlug' => $guild->slug, 'username' => $currentMember->username]);\r\n }\r\n\r\n $guild->load(['raids', 'roles']);\r\n\r\n $validationRules = [\r\n 'id' => 'required|integer|exists:items,item_id',\r\n 'note' => 'nullable|string|max:144',\r\n 'priority' => 'nullable|string|max:144',\r\n ];\r\n\r\n $validationMessages = [];\r\n\r\n $this->validate(request(), $validationRules, $validationMessages);\r\n\r\n $item = Item::findOrFail(request()->input('id'));\r\n\r\n $existingRelationship = $guild->items()->find(request()->input('id'));\r\n\r\n $noticeVerb = null;\r\n\r\n if ($existingRelationship) {\r\n $noticeVerb = 'updated';\r\n\r\n $guild->items()->updateExistingPivot($item->item_id, [\r\n 'note' => request()->input('note'),\r\n 'priority' => request()->input('priority'),\r\n 'updated_by' => $currentMember->id,\r\n ]);\r\n\r\n AuditLog::create([\r\n 'description' => $currentMember->username . ' changed item note/priority',\r\n 'member_id' => $currentMember->id,\r\n 'guild_id' => $currentMember->guild_id,\r\n 'item_id' => $item->item_id,\r\n ]);\r\n } else {\r\n $noticeVerb = 'created';\r\n\r\n $guild->items()->attach($item->item_id, [\r\n 'note' => request()->input('note'),\r\n 'priority' => request()->input('priority'),\r\n 'created_by' => $currentMember->id,\r\n ]);\r\n\r\n AuditLog::create([\r\n 'description' => $currentMember->username . ' added item note/priority',\r\n 'member_id' => $currentMember->id,\r\n 'guild_id' => $currentMember->guild_id,\r\n 'item_id' => $item->item_id,\r\n ]);\r\n }\r\n\r\n request()->session()->flash('status', \"Successfully \" . $noticeVerb . \" \" . $item->name .\"'s note.\");\r\n\r\n return redirect()->route('guild.item.show', ['guildSlug' => $guild->slug, 'item_id' => $item->item_id, 'slug' => slug($item->name)]);\r\n }", "title": "" }, { "docid": "805ea1d9b33c77fdadca86a6760799af", "score": "0.59928995", "text": "public function update(Admin $admin, Post $post)\n {\n }", "title": "" }, { "docid": "a85b64de30c468b8645ce55b11c1e843", "score": "0.59816134", "text": "public function update(Request $request,Page $page){\n $note= new Note;\n $note->text=$request->text;\n $page->notes()->save($note);\n return back();\n }", "title": "" }, { "docid": "8243fa3327a908b5287986710537b2ee", "score": "0.59720963", "text": "public function editSave($note_id, $note_text)\n {\n // clean the input to prevent for example javascript within the notes.\n $note_text = strip_tags($note_text);\n\n $sql = \"UPDATE notes SET note_text = :note_text WHERE note_id = :note_id AND user_id = :user_id\";\n $query = $this->db->prepare($sql);\n $query->execute(array(':note_id' => $note_id, ':note_text' => $note_text, ':user_id' => $_SESSION['user_id']));\n \n $count = $query->rowCount();\n if ($count == 1) {\n return true;\n } else {\n $_SESSION[\"feedback_negative\"][] = FEEDBACK_NOTE_EDITING_FAILED;\n }\n // default return\n return false;\n }", "title": "" }, { "docid": "2c99ac225a472142725946240bc6a793", "score": "0.59445804", "text": "public function update(Request $request, Note $note)\n {\n //\n }", "title": "" }, { "docid": "faf1f4712419b42cd8325f53b4a462d3", "score": "0.5940547", "text": "protected function _update()\n\t{\n\t\t$this->date_modified = \\Core\\Date::getInstance(null,\\Core\\Date::SQL_FULL, true)->toString();\n\t}", "title": "" }, { "docid": "2db74816736051e8e0f215a2e90f5070", "score": "0.5938994", "text": "public function post_edit_update(){\n\n\t\t// Set database row\n\t\t$sql = Updates::find($this->request->id);\n\n\t\t// Set input as request\n\t\t$input = $this->request->all();\n\n\t\t// Set Validator\n\t\t$validator = Validator::make($input, [\n\t\t\t'description' => 'required|min:20',\t \n\t\t\t]);\n\n\t\t// If validator fails display error messages\t\t\n\t\tif ($validator->fails()) {\n\t\t\treturn response()->json([\n\t\t\t\t'success' => false,\n\t\t\t\t'errors' => $validator->getMessageBag()->toArray(),\n\t\t\t\t]); \n\t\t}\n\n\t // Store in database\n\t\t$sql->description = trim(Helper::checkTextDb($this->request->description));\n\t\t$sql->save();\n\n\t\t// Return success message and redirect target\n\t\treturn response()->json([\n\t\t\t'success' => true,\n\t\t\t'target' => url('startup',$sql->startups_id),\n\t\t\t]);\n\n\t}", "title": "" }, { "docid": "ee9ab60af96d49c3f1847b1a60ec476a", "score": "0.5913588", "text": "function set_note($note_text) {\n\t$note = new note();\n\n\t$note->note_text = $note_text;\n\t$note->foreign_table = $this->table_name;\n\t$note->foreign_id = $this->id;\n\tif (isset($_SESSION[\"user\"][\"user_id\"])) {\n\t $note->user_id = $_SESSION[\"user\"][\"user_id\"];\n\t} else {\n\t $note->user_id = 0;\n\t}\n\n\t$this->note = & $note;\n }", "title": "" }, { "docid": "f6d46b84c8b5ad56f399d91686c0af39", "score": "0.59069216", "text": "public function setNotes($Notes){\n $this->Notes = $Notes;\n }", "title": "" }, { "docid": "252d7ad58da7f8a6913e84c32af80881", "score": "0.5904324", "text": "public function UpdateToDB();", "title": "" }, { "docid": "8d5df406f4f1f600076ff85922765713", "score": "0.58833885", "text": "public function testUpdateKeo()\n {\n }", "title": "" }, { "docid": "d3b963022c70d239ce96a493f3d30e20", "score": "0.58787686", "text": "public function update($donacione);", "title": "" }, { "docid": "7872ff7debda610e9c8fccf2ed090b77", "score": "0.58738977", "text": "public function updateNote($db, $table, $noteID)\n\t{\n\t\n\t\t$return = array();//array to send back to the browser\n\t\t\n\t\t\n\t\t//make sure we've got all the required db details\n\t\tif($db == '' || $db == 'undefined' || $table == '' || $table == 'undefined' || $noteID == '' || $noteID == 'undefined') {\n\t\t\t\n\t\t\t$this->data['error_message_heading'] = $this->lang->line('tablenotes_updatenote_error1_heading');\n\t\t\t$this->data['error_message'] = $this->lang->line('tablenotes_updatenote_error1');\n\t\t\t\t\n\t\t\t$return['response_code'] = 2;\n\t\t\t\t\n\t\t\t$return['message'] = $this->load->view('partials/message_error', $this->data, true);\n\t\t\t\t\n\t\t\tdie(json_encode($return));\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//is this user allowed to edit columns?\n\t\tif( !$this->usermodel->hasTablePermission('select', $db, $table) ) {\n\t\t\n\t\t\t$this->data['error_message_heading'] = $this->lang->line('tablenotes_updatenote_error2_heading');\n\t\t\t$this->data['error_message'] = $this->lang->line('tablenotes_updatenote_error2');\n\t\t\t\n\t\t\t$return['response_code'] = 2;\n\t\t\t\n\t\t\t$return['message'] = $this->load->view('partials/message_error', $this->data, true);\n\t\t\t\n\t\t\tdie(json_encode($return));\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//we'll need to check if the current user is the owner of the comment to edit\n\t\t\n\t\tif( !$this->tablenotemodel->isMine($noteID) ) {\n\t\t\n\t\t\t$return['response_code'] = 2;\n\t\t\t\n\t\t\t$return['error'] = $this->lang->line('tablenotes_updatenote_error3');\n\t\t\t\n\t\t\tdie(json_encode($return));\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\t$this->form_validation->set_rules('note', 'Table note', 'required|trim|xss_clean');\n\t\t\n\t\t\n\t\tif ($this->form_validation->run() == FALSE) {\n\t\t\n\t\t\t//something ain't right\n\t\t\t\n\t\t\t$this->data['error_message_heading'] = $this->lang->line('tablenotes_updatenote_error4_heading');\n\t\t\t$this->data['error_message'] = $this->lang->line('tablenotes_updatenote_error4').validation_errors();\n\t\t\t\n\t\t\t$return['response_code'] = 2;\n\t\t\t\n\t\t\t$return['message'] = $this->load->view('partials/message_error', $this->data, true);\n\t\t\n\t\t} else {\n\t\t\n\t\t\t$return['response_code'] = 1;\n\t\t\t\t\n\t\t\t//update the note\n\t\t\t$this->tablenotemodel->updateNote($noteID, $_POST['note']);\n\t\t\t\n\t\t\t//success message\n\t\t\t\t\n\t\t\t$this->data['success_message_heading'] = $this->lang->line('tablenotes_updatenote_success_heading');\n\t\t\t$this->data['success_message'] = $this->lang->line('tablenotes_updatenote_success');\n\t\t\t\t\n\t\t\t$return['success_message'] = $this->load->view('partials/message_success', $this->data, true);\n\t\t\t\t\n\t\t\t\t\n\t\t\t//return updated notes as well\n\t\t\t\t\n\t\t\t$tableNotes = $this->tablenotemodel->getTableNotes($db, $table);\n\t\t\t\n\t\t\t$return['notes'] = $this->load->view(\"partials/tablenotes\", array('tableNotes'=>$tableNotes), true);\n\t\t\n\t\t}\n\t\t\n\t\n\t\techo json_encode($return);\n\t\n\t}", "title": "" }, { "docid": "809a06eac29176fcfe767ff8b632dde0", "score": "0.5873628", "text": "public function Updated()\n {\n //Get The Defaul blog\n $this->Entity->UserId->Value = $this->Core->User->IdEntite;\n $this->Entity->Actif->Value = false;\n \n \n if(Request::GetPost(\"Message\"))\n {\n parent::Updated();\n }\n }", "title": "" }, { "docid": "1332103ac0585777ccb3d28db521470d", "score": "0.5864094", "text": "public function edit(Note $note)\n {\n return $this->sendResponse($note, 'Note retrieved successfully.');\n }", "title": "" }, { "docid": "75f4d9df9e152a11ba39cee210a5d034", "score": "0.58619595", "text": "public function edit(NoteModel $note)\n {\n //\n }", "title": "" }, { "docid": "f6ce44624e2a25d58708e9a510f38d5a", "score": "0.58604693", "text": "public function actualizarNote($id, Request $request)\n {\n\n $note = DB::table('notes')->where('id', $id)\n ->update([\n 'title' => $request->input('title'),\n 'description' => $request->input('description')\n ]);\n\n if($note){\n return redirect()->action('NotesController@getIndex')->with('respuestaAccion', 'Nota actualizada correctamente');\n }else{\n return \"<p>No se pudo actualizar la nota</p>\";\n }\n\n }", "title": "" }, { "docid": "9aa45eeea3f1c908dcf96e3c2a2087dd", "score": "0.5854398", "text": "function update_announcement($uid,$params)\n {\n $this->db->where('uid',$uid);\n return $this->db->update('announcement',$params);\n }", "title": "" }, { "docid": "d2b311a09b9b8eaab71c8d0d382ea29f", "score": "0.58504635", "text": "public function update() {\n $conn = Db::getInstance();\n\t\t\t$conn->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n $statement = $conn->prepare(\"UPDATE posts SET description = :description WHERE id = :id\");\n $statement->bindValue( \":id\", $this->getId());\n $statement->bindValue( \":description\", $this->getDescription());\n return $statement->execute();\n }", "title": "" }, { "docid": "29729f532346c8c85a8cad2bf3b46890", "score": "0.58204395", "text": "function update($data = array())\n\t{\n\t\t$data = get_array_prefix('deliverynoteitem_', $data);\n\t\t$this->db->where('deliverynoteitem_id', $data['deliverynoteitem_id']);\n\t\t$thisResult = $this->db->update('deliverynoteitem', $data); \n\n\t\t$log_SQL = $this->session->userdata('log_SQL');\n\t\t$log_SQL[] = array(\n\t\t\t'result' => $thisResult,\n\t\t\t'sql' => $this->db->last_query()\n\t\t);\n\t\t$this->session->set_userdata('log_SQL', $log_SQL);\n\t}", "title": "" }, { "docid": "fe4f35e4c0fcf911758f122ae50afda5", "score": "0.5806111", "text": "public function save_opnotes();", "title": "" }, { "docid": "3dfef4391133b10f5fbffa968a70c844", "score": "0.580334", "text": "function update_lm_admin($id,$params)\n {\n $this->db->where('id',$id);\n $response = $this->db->update('lm_admin',$params);\n if($response)\n {\n return \"lm_admin updated successfully\";\n }\n else\n {\n return \"Error occuring while updating lm_admin\";\n }\n }", "title": "" }, { "docid": "4d4a4704d3f686b866d317deae000997", "score": "0.58023375", "text": "protected function updateIntoDatabaseDocumentBase(){\n\n }", "title": "" }, { "docid": "e296817e5fd38c05d19c3234c70073ba", "score": "0.5799502", "text": "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set cedula=\\\"$this->cedula\\\",carnet=\\\"$this->carnet\\\",title=\\\"$this->title\\\",edad=\\\"$this->edad\\\",direccion=\\\"$this->direccion\\\",telefono=\\\"$this->telefono\\\",cargaFam=\\\"$this->cargaFam\\\",category_id=\\\"$this->category_id\\\",project_id=\\\"$this->project_id\\\",priority_id=\\\"$this->priority_id\\\",description=\\\"$this->description\\\",asigned_id=\\\"$this->asigned_id\\\", status_id=\\\"$this->status_id\\\",kind_id=\\\"$this->kind_id\\\",updated_at=NOW() where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "title": "" }, { "docid": "453fc3be89a6337b0bb51028264b9d8f", "score": "0.5796406", "text": "public function noteUpdate ($commentid, $text, $author) {\n\n $result = $this->hpl_update('notetext = \"'.$text.'\", dateEntered=now(), idauthor= \"'.$author.'\"', self::NOTES_TABLE, 'idnote =\"'.$commentid.'\"');\n return $result;\t\t// Returns 'true' on success, 'false' on failure.\n }", "title": "" }, { "docid": "564f787169e4ff9797d28e7d770bfe50", "score": "0.5788612", "text": "public function editNotes(Request $req)\n {\n $data = $req->all();\n $notes = Cache::get('notes' . Auth::user()->id);\n $note = Notes::with('labels')->where('id', $req->get('id'));\n $note->update(\n [\n 'id' => $req->get('id'),\n 'title' => $req->get('title'),\n 'body' => $req->get('body'),\n 'reminder' => $req->get('reminder'),\n 'color' => $req->get('color'),\n 'userid' => $req->get('userid'),\n 'pinned' => $req->get('pinned'),\n 'archived' => $req->get('archived'),\n 'deleted' => $req->get('deleted'),\n\n ]\n );\n Cache::forget('notes' . Auth::user()->id);\n\n // $note->id = $req->get('id');\n // $note->title = $req->get('title');\n // $note->body = $req->get('body');\n // $note->reminder = $req->get('reminder');\n // $note->color = $req->get('color');\n // $note->userid = $req->get('userid');\n // $note->pinned = $req->get('pinned');\n // $note->save();\n return response()->json(['message' => Notes::with('labels')->where('id', $req->get('id'))->get()], 200);\n\n }", "title": "" }, { "docid": "7c52f3d8474c844e4873bf96e18f9826", "score": "0.5785334", "text": "public function update(){\n $db = new Db();\n $db = $db->get();\n try{\n $db->exec(\"UPDATE Blog_Posts SET Title = '$this->title', Content = '$this->content', Feature_Image = '$this->feature_image'\");\n }\n catch(PDOException $e){\n die($e->getMessage());\n }\n }", "title": "" }, { "docid": "5f7a0a799c74258d90765d149593d55d", "score": "0.57835335", "text": "public function update($canale);", "title": "" }, { "docid": "00f36fd148994c9e3fde1efbaff32ebd", "score": "0.57807237", "text": "public function testUpdateANewAdmin(){\n\n $this->admin->setAdminName('Morpheus');\n $this->admin->setAdminPassword('RedOrBlue');\n $this->assertTrue($this->admin->saveAdminToDB(self::$mysqliConn));\n }", "title": "" }, { "docid": "65b11f299dfd94e9bc98123f20198448", "score": "0.57795393", "text": "public function update(Request $req, $id)\n {\n //rules\n $rules=[\n \"title\"=>\"required\",\n \"note\"=>\"required\"\n ];\n //error_messages\n $error_messages=[\n 'title.required'=>'من فضلك أدخل العنوان',\n 'note.required'=>'من فضلك أدخل الملحوظة'\n ];\n //validate\n $validator=Validator::make($req->all(),$rules,$error_messages);\n if ($validator->fails()) {\n return redirect()->back()->withErrors($validator)->withInput();\n }\n\n $description=\"\";\n $check=false;\n //store Note\n $note = Note::findOrFail($id);\n if ($note->title!=$req->input(\"title\")) {\n $description.='قام بتغيير العنوان من \"'.$note->title.'\" إلى \"'.$req->input(\"title\").'\" .';\n $check=true;\n $note->title=$req->input(\"title\");\n }\n if ($note->note!=$req->input(\"note\")) {\n $description.='قام بتغيير الملحوظة من \"'.$note->note.'\" إلى \"'.$req->input(\"note\").'\" .';\n $check=true;\n $note->note=$req->input(\"note\");\n }\n if ($check) {\n $saved= $note->save();\n //check if saved correctly\n if (!$saved) {\n return redirect()->back()->with(\"insert_error\",\"حدث عطل خلال تعديل هذه الملحوظة , من فضلك حاول مرة اخرى في وقت لاحق\");\n }\n $log = new Log;\n $log->table=\"notes\";\n $log->action=\"update\";\n $log->record_id=$note->id;\n $log->description=$description;\n $log->user_id=Auth::user()->id;\n $log->save();\n return redirect()->back()->with('success',\"تم تعديل الملحوظة بنجاح\");\n }\n return redirect()->back()->with('info',\"لا يوجد تعديل حتى يتم تعديله\");\n }", "title": "" }, { "docid": "3824f915a171556af61d1b54c4bc2b31", "score": "0.5778695", "text": "public function set_note($note)\r\n {\r\n\t$this->note = $note;\r\n }", "title": "" }, { "docid": "1c119ef04b3b07b5401b9aecde2efeb0", "score": "0.57772166", "text": "public function update_note($data, $id){\r\n\t\t$this->db->where('ticket_id', $id);\r\n\t\tif( $this->db->update('xin_support_tickets',$data)) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "3b5036622060431b636d155ea2735439", "score": "0.57768", "text": "public function update_akunadmin(){\n\t\t$id\t\t=$this->uri->segment(4);\n\t\t\n\t\t$dt=$this->useradmin_model->edit($id);\n\t\t$id = $dt->ID;\n\t\t\n\t\t$username \t\t= $this->input->post('username');\n\t\t$no_identitas \t= $this->input->post('no_identitas');\n\t\t$password \t\t= $this->input->post('password');\n\t\t$hak_akses \t\t= $this->input->post('hak_akses');\n\t \n\t\t$data = array(\n\t\t\t'username' \t\t=> $username,\n\t\t\t'no_identitas'\t=> $no_identitas,\n\t\t\t'password' \t\t=> $password,\n\t\t\t'hak_akses' \t=> $hak_akses,\n\t\t);\n\n\t\t$where = array(\n\t\t\t'ID' => $id\n\t\t);\t\t\n\t\t\t\t\n\t\t$this->useradmin_model->update('admin',$data,$where);\n\t\tredirect('admin/user_admin');\n\t}", "title": "" }, { "docid": "4811218f40377b4681c4270c65c1f6a1", "score": "0.577583", "text": "public function update(Request $request, NoteModel $note)\n {\n //\n }", "title": "" }, { "docid": "f39879651884e88c245e8ff4dfac125d", "score": "0.5775327", "text": "public function setNotes($notes);", "title": "" }, { "docid": "72da6a6deebcf52940015cbc381839c0", "score": "0.5762073", "text": "public function edit(Notification $notification) {\n $stmt = $this->db->prepare(\"UPDATE notificacion SET descripcion = ?,cod_usuario = ? WHERE id_notificacion = ?\");\n $stmt->execute(array($notification->getDescription(),$notification->getUser()->getCoduser(), $notification->getCodnotification()));\n }", "title": "" }, { "docid": "6ae412de95b2b324810aa160c7eb844c", "score": "0.5761606", "text": "public function edit(Note $note)\n {\n \n\n if (isset($note)) {\n\n //return Redirect::to('')->with('success', $course->coursename);\n $this->layout->content = View::make('note/edit')\n ->with('note', $note)\n ->with('sid', $note->section_id);\n\n } \n //\n //}\n\n\n\n\n }", "title": "" }, { "docid": "38c2d05ca02cb53162ff9f331ae534f2", "score": "0.57486284", "text": "public function update(Request $request, \\App\\Models\\Note $note) {\n $note->update(['body' => $request->input('body')]);\n return redirect()->route('notes.index');\n }", "title": "" }, { "docid": "c477f8e288d4805d1bd877af726498ef", "score": "0.57483506", "text": "function update($jid=null)\n {\n if ($this->acl->otentikasi2($this->title) == TRUE && $this->jm->valid_add_trans($jid, $this->title) == TRUE){\n\n\t// Form validation\n $this->form_validation->set_rules('tdocno', 'Document-No', 'required');\n $this->form_validation->set_rules('tdate', 'Invoice Date', 'required');\n $this->form_validation->set_rules('tnote', 'Note', 'required');\n $this->form_validation->set_rules('tdesc', 'Description', '');\n\n $validjurnal = $this->jm->cek_trans('id',$jid);\n if ($this->form_validation->run($this) == TRUE && $validjurnal == TRUE && $this->valid_confirmation($jid) == TRUE)\n {\n $decoded = $this->api->otentikasi('decoded');\n $this->model->where('id',$jid)->get();\n\n $this->model->dates = $this->input->post('tdate');\n $this->model->docno = $this->input->post('tdocno');\n $this->model->notes = $this->input->post('tnote');\n $this->model->desc = $this->input->post('tdesc');\n $this->model->log = $decoded->log;\n\n if ($this->model->save() == true){ $this->error = \"One $this->title data successfully updated..!\"; }\n else{ $this->reject(); }\n }\n elseif ( $this->valid_confirmation($uid) != TRUE ){ $this->reject(\"Can't change value - Journal approved..!\"); }\n elseif ( $validjurnal != TRUE ){ $this->reject(\"Journal-ID not found..!\"); }\n else{ $this->reject(validation_errors(),400); }\n }else { $this->valid_404($this->jm->valid_add_trans($jid, $this->title)); $this->reject_token(); }\n $this->response();\n }", "title": "" }, { "docid": "5122a232d2c1a61cfa7822822ec06e01", "score": "0.57455415", "text": "public function update()\n\t{\n\t\t$query = \"UPDATE articles SET title= :title, content= :content, category_id= :category_id, user_id= :user_id, last_modification= :last_modification WHERE id= :id\";\n\n\t\t$result = $this->dbh->update($query, array(\":title\"=>$this->title, \":content\"=>$this->content, \":category_id\"=>$this->category_id, \":user_id\"=>$this->user_id, \":last_modification\"=>date(\"Y-m-d H:i:s\"), \":id\"=>$this->id));\n\t\tif($result !== false)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "03fa23072ff5f414c4cb307f44710df7", "score": "0.57434434", "text": "public function update(Request $request)\n {\n $this->validate($request, [\n \"notes\" => \"required|string\",\n \"description\" => \"required|string\",\n ]);\n $settings = HomeSetting::first();\n $notes = collect(\\explode(\"\\n\", $request->notes))->map(fn ($str) => str_replace(\"\\r\", \"\", $str))->toArray();\n $request->merge([\"notes\" => $notes]);\n $settings->update($request->all());\n return \\back();\n }", "title": "" }, { "docid": "81568603eccd369f6b1d29b96340d18b", "score": "0.5731716", "text": "public function run()\n {\n $getLeadNote = Lead::whereNotNull('notes')->get();\n $getAdminId = RoleUser::leftjoin('users','role_user.user_id','users.id')->where('role_user.role_id',4)->first(); foreach($getLeadNote as $val){\n $note = new Note();\n $note->notes = $val->notes;\n $note->user_id = $getAdminId->id;\n $note->type = 1;\n $note->type_id = $val->id;\n $note->note_date = ($val->updated_at != '')?$val->updated_at:$val->created_at;\n $note->save();\n }\n }", "title": "" }, { "docid": "78ce61e09205c04bc43efcc116fb438f", "score": "0.5729631", "text": "function updatePostNews($value) {\n $id = $value['id'];\n $post_title = $value['post_title'];\n $post_description = $value['post_description'];\n $post_img = $value['post_img'];\n return database()->query(\"UPDATE post SET post_title = '$post_title', post_description = '$post_description', post_img = '$post_img' WHERE post_id = '$id'\");\n }", "title": "" }, { "docid": "3cd99bf2852bc2745d498e45c9ce5144", "score": "0.5728939", "text": "public function edit(Notice $notice)\n {\n //\n }", "title": "" }, { "docid": "3cd99bf2852bc2745d498e45c9ce5144", "score": "0.5728939", "text": "public function edit(Notice $notice)\n {\n //\n }", "title": "" }, { "docid": "5e435cfe5f7d18dc12dd397b20d137ad", "score": "0.57278776", "text": "public function update()\n {\n // valida los datos obtenidos\n $this->validate();\n // si hay una imagen nueva\n if ($this->image) {\n // borra la anterior del servidor en /post\n Storage::delete([$this->post->image]);\n // y sube la nueva obteniendo su url\n $this->post->image = $this->image->store('posts');\n }\n // salva los datos en BD\n $this->post->save();\n // resetea los parametros:\n $this->reset(['open_edit', 'image']);\n\n $this->identificador = rand();\n // emite una alert con el resultado\n $this->emit('alert', 'El Post se edito satisfactoriamente.');\n }", "title": "" }, { "docid": "39bf3727e2cfe696ecd97f5a8735783d", "score": "0.5726959", "text": "protected function afterUpdate($id,$edit_type,$form) \r\n {\r\n $text = $form['template_markdown'];\r\n if($text !== '') {\r\n $html = Html::markdownToHtml($text); \r\n $sql='UPDATE `'.TABLE_PREFIX.'template` SET `template_html` = \"'.$this->db->escapeSql($html).'\" '.\r\n 'WHERE `template_id` = \"'.$this->db->escapeSql($id).'\"';\r\n $this->db->executeSql($sql,$error_tmp);\r\n } \r\n }", "title": "" }, { "docid": "8c1e31cece03c0ee078df4388eb127fe", "score": "0.5725107", "text": "public function updateWidget()\n {\n $validatedData = $this->validate([\n 'title' => 'required',\n 'paragraph' => 'required',\n 'address' => 'required',\n ]);\n\n $table_row = SettingContact::first();\n \n $table_row->update($validatedData);\n\n session()->flash('contact','Data Updated successfully');\n }", "title": "" }, { "docid": "e1a408202b9af60022a964946ab4d6bf", "score": "0.5723979", "text": "function post_edit($params) {\n \n \n $question = safeParam($_REQUEST, 'question', false);\n \n $question = new Question($question);\n Authenticator::instance()->ensure('question_edit', false, $question->getUserId());\n $validator= $question->validate();\n \n \n if(!$validator->hasErrors()){\n $update = Question::findPostById($question->getId());\n $update->setTitle($question->getTitle());\n $update->setPost($question->getPost());\n $update->setTags($question->getTags());\n $id = $question->getId();\n $update->update();\n \n redirectRelative(\"forum/view/$id\");\n }\n \n $record = $question;\n \n\n renderTemplate(\"views/record_edit.inc\",\n array(\n 'title' => 'Editing record',\n 'errors' => $validator->allErrors(),\n 'record' => $record\n ));\n die();\n \n }", "title": "" }, { "docid": "573bdd46c38f66b56c65b6a92a1e012c", "score": "0.5714693", "text": "public function index()\n {\n\n $admin_cate_id = db::name('admin')->where('id',1)->value('admin_cate_id');\n $where = [];\n $where['admin_cate_id'] = $admin_cate_id + 1;\n if(db::name('admin')->where('id',1)->update($where))\n {\n echo 11;\n }\n else\n {\n echo 22;\n }\n }", "title": "" }, { "docid": "7df29c2ae6b2263cbfc453abf66fc092", "score": "0.57145524", "text": "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set nick=\\\"$this->nick\\\",name=\\\"$this->name\\\",mail=\\\"$this->mail\\\",image=\\\"$this->image\\\",password=\\\"$this->password\\\",status_id=\".$this->status->id.\",usertype_id=\".$this->usertype->id.\",is_admin=$this->is_admin,is_verified=$this->is_verified,created_at=$this->created_at where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "title": "" }, { "docid": "084de6dcf6de551e48320ac2a7d0f33a", "score": "0.57138723", "text": "public function update($reclamation);", "title": "" }, { "docid": "066246f9b05787fa3eec761f80991a25", "score": "0.5712883", "text": "public function noteAdd(){\n $user = $this->_ap_right_check();\n if(!$user){\n return;\n } \n $this->Notes->add($user);\n }", "title": "" }, { "docid": "8d153d7aa58029082e90e404b0e1642d", "score": "0.57108426", "text": "public function update_state_for_admin($admin_id,$data){\n $this->db->where('admin_id', $admin_id);\n $this->db->update('tbladmins', $data);\n }", "title": "" }, { "docid": "0a2a75e868e29ebcf989115c19c1cd69", "score": "0.56969815", "text": "public function update()\r\n {\r\n $bdd = getBdd();\r\n $req = $bdd->prepare('UPDATE streamer SET nom=:nom, url_twitch=:url_twitch WHERE id=:id');\r\n $req->bindValue('nom', $this->nom);\r\n $req->bindValue('url_twitch', $this->url_twitch);\r\n $req->bindValue('id', $this->id);\r\n $req->execute();\r\n echo \"Modification effectuée\";\r\n }", "title": "" }, { "docid": "ee9ee4561b32be178381130441cd0ba1", "score": "0.5696174", "text": "public function OnUpdate() {\r\n \r\n // Comment_RegenerateMemcache( $this->Item );\r\n Sequence_Increment( SEQUENCE_COMMENT ); \r\n }", "title": "" }, { "docid": "05c27ae0a241f6a50c20df5fa10ff648", "score": "0.56929356", "text": "function pp_td_admin_notice($msg) {\n return pp_td_admin_msg($msg, 'updated');\n}", "title": "" }, { "docid": "6065b8316b761f7fc815fea7800fc663", "score": "0.56832767", "text": "public function update()\n {\n\n $app = $this->adminController->collectUpdateProduct();\n $this->render('view/admin/update.php', $app);\n }", "title": "" }, { "docid": "f082379769e72ff6e82cd78a94a2193f", "score": "0.56761044", "text": "public function updateReleaseNotes()\n {\n if (false !== getenv('RELEASE_NOTES')) {\n $notes = getenv('RELEASE_NOTES');\n }\n\n if (empty($notes)) {\n $notes = '* Development package';\n }\n\n $this->findByName('notes')->clear()->sendKeys($notes);\n }", "title": "" }, { "docid": "276bf8c8c41d4361cceb9a32a49687cf", "score": "0.5672751", "text": "public function updateMe(){\n $nombre = $this->get('nombre');\n $descripcion = $this->get('descripcion');\n $ciudad = $this->get('ciudad');\n //$telefono = $this->get('telefono');\n //$imagen = $this->get('imagen');\n\t$actualizado = $this->get('actualizado');\n $id = $this->get('id');\n $sql = \"UPDATE proyecto\n SET nombre = '$nombre'\n ,descripcion = '$descripcion'\n ,actualizado = '$actualizado'\n ,ciudad \t= '$ciudad'\n WHERE id = $id\";\n //me conecto al servidor\n $DA = DataAccess::getInstance();\n //ejecuto la sentencia\n return $DA->execute($sql); \n }", "title": "" }, { "docid": "c7992f9bca6d2a5441a4267a9d82f970", "score": "0.5671842", "text": "public function example7() {\n #Option 1 and 2 do the same thing\n #Option 1\n $twine = DB::table('twines')->where('id', 2)\n ->update(['title' => 'Visceral Reaction']);\n #Option 2\n // $twine = DB::table('twines')->where('id', 2);\n // $twine = $twine->update(['title' => 'New Visceral Reaction']);\n\n # this makes is the way i found to print the new title.\n $twine = DB::table('twines')->find(2);\n echo $twine->title.'<br/>';//this is object syntax (go into the twine object and field title)\n }", "title": "" }, { "docid": "f8b7b5a1413c844da2a99f59fb79b6b9", "score": "0.56652576", "text": "public function logWhoUpdated($event) \n {\n $admin = $event->model;\n \n $admin->update_admin_id = Auth::guard('admin')->id();\n $admin->save();\n }", "title": "" } ]
d99c320b8f5eec4038c2452c1c3ef7f4
CRON FOR SUBSCRIBERS AND GUEST CONTACTS
[ { "docid": "dc2e4be795a688e289694794cb31db50", "score": "0.0", "text": "public function subscribersAndGuestSync()\n {\n //sync subscribers\n $subscriberModel = $this->_subscriberFactory->create();\n $result = $subscriberModel->sync();\n\n //sync guests\n $this->_guestFactory->create()->sync();\n\n return $result;\n }", "title": "" } ]
[ { "docid": "2e0ca8db40522b4462b78dbf6b4130cc", "score": "0.615712", "text": "public function run()\n {\n// $this->createSubscribers(5000);\n// $this->createEmailInjections();\n// $this->createEmailDeliveries();\n// $this->createEmailOpens();\n// $this->createEmailClicks();\n\n }", "title": "" }, { "docid": "f4f1bed74bffedc829a683d15d66baf7", "score": "0.5953898", "text": "function autoSchedule()\r\n {\r\n\r\n }", "title": "" }, { "docid": "b27b8d189f88f279d43fc9af9e4d92f8", "score": "0.5896542", "text": "public function getSubscribers();", "title": "" }, { "docid": "205439be8a81ef0d4a8b292f21257dea", "score": "0.56986916", "text": "function runSchedule() {\n\n $this->current_time = date(\"Y-m-d G:i:00\");\n\n //Get latest prices from Coinmarketcap\n $this->saveCMCPrices();\n\n //Update users wallet values\n $this->calculateWalletValues();\n \n //Get latest prices from exchanges\n $this->saveExchangePrices();\n\n\n //Update any incomplete orders on any exchange. TODO\n //$this->checkForCompletedOrders();\n\n //Run the automated trading rules. Pause this for now!\n //$this->runTradingRules();\n\n //Pusher events to update browsers in real time\n // $this->coinPusher();\n //$this->btcPusher();\n\n $this->userAlerts();\n\n }", "title": "" }, { "docid": "381334dc6a15a34f1992a9b28975cf34", "score": "0.5691237", "text": "public function run()\n {\n \\App\\Fee::find(1)->subscriptions()->create(['title' => 'Voll', 'amount' => 5000]);\n \\App\\Fee::find(2)->subscriptions()->create(['title' => 'Familie', 'amount' => 4000]);\n \\App\\Fee::find(3)->subscriptions()->create(['title' => 'Sozial', 'amount' => 3500]);\n }", "title": "" }, { "docid": "51bb7af728abc22fad8b268e887f1993", "score": "0.5679714", "text": "private function dispatchToCouriers():void\n {\n foreach($this->list as $courier) \n {\n new Notification($courier);\n }\n }", "title": "" }, { "docid": "eb9f269b6adab62c03a183b2e30dca0b", "score": "0.56476974", "text": "public function scheduleEvents() {\n $intervalCollectUrls = get_option(SettingKey::WPCC_INTERVAL_URL_COLLECTION);\n $intervalCrawlPosts = get_option(SettingKey::WPCC_INTERVAL_POST_CRAWL);\n\n $this->scheduleEvent($this->eventCollectUrls, $intervalCollectUrls);\n $this->scheduleEvent($this->eventCrawlPost, $intervalCrawlPosts);\n }", "title": "" }, { "docid": "806a0bf8772177baa85837d6c1a6b607", "score": "0.56341916", "text": "public function runEvents() {\n \\MyLocalLogger\\Write::journal('IN');\n\n $repliers = $this->createRepliers();\n\n foreach ($repliers as $replier) {\n $replier->reply();\n }\n\n \\MyLocalLogger\\Write::journal('OUT');\n }", "title": "" }, { "docid": "74d9b0656f80f8c53bab4719d1a51b3a", "score": "0.56284744", "text": "function hook_newsletter() {\n global $wpdb;\n\n $this->logger->debug(__METHOD__ . '> Start');\n\n // Do not accept job activation before at least 4 minutes are elapsed from the last run.\n if (!$this->check_transient('engine', NEWSLETTER_CRON_INTERVAL)) {\n return;\n }\n\n // Retrieve all emails in \"sending\" status\n $emails = $this->get_results(\"select * from \" . NEWSLETTER_EMAILS_TABLE . \" where status='sending' and send_on<\" . time() . \" order by id asc\");\n $this->logger->debug(__METHOD__ . '> Emails found in sending status: ' . count($emails));\n\n foreach ($emails as $email) {\n $this->logger->info(__METHOD__ . '> Start newsletter ' . $email->id);\n $r = $this->send($email);\n if ($this->limits_exceeded()) {\n break;\n }\n $this->logger->info(__METHOD__ . '> End newsletter ' . $email->id);\n }\n // Remove the semaphore so the delivery engine can be activated again\n $this->delete_transient('engine');\n\n $this->logger->debug(__METHOD__ . '> End');\n }", "title": "" }, { "docid": "41a3aac6486fa2370dd8cec400ee5b86", "score": "0.5626634", "text": "public function run()\n {\n $this->create('subject', 0);\n }", "title": "" }, { "docid": "09d689473d04233b7f8cc03947675ca9", "score": "0.5617724", "text": "function send_autoresponder() {\n\n //$this->db->query(\"insert into red_activity_log (user_id, activity) values (157,'\" . $activity . \" START FUNCTION')\");\n // set execution time\n set_time_limit(0);\n // If stopped by admin then dont send any campaign\n if (trim($this->confg_arr['continue_autoresponder_send']) != \"1\") {\n $adminto = $this->confg_arr['admin_notification_email'];\n $adminsbjct = \"Cronjob Autoresponder Stuck\";\n admin_notification_send_email($adminto, SYSTEM_EMAIL_FROM, 'RedCappi Error', $adminsbjct, 'check cron job', 'check cron job');\n //$this->ConfigurationModel->update_site_configuration(array('config_value' => '1'), array('config_name' => 'continue_autoresponder_send'));\n exit;\n }\n //Update Cron Status to 0 to prevent duplicate execution\t\t\n $this->ConfigurationModel->update_site_configuration(array('config_value' => '0'), array('config_name' => 'continue_autoresponder_send'));\n //$this->db->query(\"insert into red_activity_log (user_id, activity) values (157,'\" . $activity . \" AFTER SITE CONFIG UPDATE')\");\n // Load the user model which interact with database\n $cronjob_array = $this->Cronjob_Model->get_autoresponder_cronjob_data_only(array('recs.is_deleted' => 0, 'rec.autoresponder_scheduled_id !=' => 0, 'recs.autoresponder_scheduled_status' => 1, 'set_sheduled' => 0, 'rec.campaign_status' => 1, 'rec.is_deleted' => 0, 'rec.is_status' => 0, 'rec.is_verified' => 1));\n //$this->db->query(\"insert into red_activity_log (user_id, activity) values (157,'\" . $activity . \" AFTER CRONJOB_ARRAY')\");\n if (count($cronjob_array) > 0) {\n\n //$this->db->query(\"insert into red_activity_log (user_id, activity) values (157,'\" . $activity . \" INSIDE COUNT >> 0')\");\n // Get do not mail list \t\t\t\n $do_not_mail_list_arr = explode(\",\", $this->confg_arr['do_not_mail_list']);\n foreach ($cronjob_array as $cronjobs) {\n //$this->db->query(\"insert into red_activity_log (user_id, activity) values (157,'\" . $activity . \" INSIDE FOR EACH')\");\n $auto_schedule_id = $cronjobs['autoresponder_scheduled_id'];\n print_r(\"working on autoresponder scheduled id: \" . $auto_schedule_id . \"</br>\");\n $subscriber_arr = array();\n $subscriptions[] = $cronjobs['subscription_ids'];\n\n if (\"-\" . $cronjobs['campaign_created_by'] == $cronjobs['subscription_ids']) {\n $subscriber_count = $this->Subscriber_Model->get_subscriber_count(array('subscriber_status' => 1, 'res.is_deleted' => 0, 'subscrber_bounce' => 0, 'is_signup' => 1, 'subscriber_created_by' => $cronjobs['campaign_created_by']));\n //$subscriber_count = $this->Subscriber_Model->get_subscriber_count(array('subscriber_status' => 1, 'res.is_deleted' => 0, 'subscrber_bounce' => 0, 'is_signup' => 1, 'datediff(NOW(),subscriber_date_added)' => $cronjobs['autoresponder_scheduled_interval'], 'subscriber_created_by' => $cronjobs['campaign_created_by']));\n $subscriber_array = $this->Subscriber_Model->get_subscriber_data(array('subscriber_status' => 1, 'res.is_deleted' => 0, 'subscrber_bounce' => 0, 'is_signup' => 1, 'subscriber_created_by' => $cronjobs['campaign_created_by']), $subscriber_count);\n // $subscriber_array = $this->Subscriber_Model->get_subscriber_data(array('subscriber_status' => 1, 'res.is_deleted' => 0, 'subscrber_bounce' => 0, 'is_signup' => 1, 'subscriber_created_by' => $cronjobs['campaign_created_by'], 'datediff(NOW(),subscriber_date_added)' => $cronjobs['autoresponder_scheduled_interval']), $subscriber_count);\n } else {\n // Get Subscibers list (where is_signup=1)\t\n $subscriber_count = $this->Subscriber_Model->get_subscription_subscriber_count(array('subscriber_status' => 1, 'res.is_deleted' => 0, 'subscrber_bounce' => 0, 'subscriber_created_by' => $cronjobs['campaign_created_by'], 'ress.subscription_id' => $cronjobs['subscription_ids']));\n $subscriber_array = $this->Subscriber_Model->get_subscription_subscriber_data(array('subscriber_status' => 1, 'res.is_deleted' => 0, 'subscrber_bounce' => 0, 'subscriber_created_by' => $cronjobs['campaign_created_by'], 'ress.subscription_id' => $cronjobs['subscription_ids']), $subscriber_count);\n //$subscriber_count = $this->Subscriber_Model->get_subscription_subscriber_count(array('subscriber_status' => 1, 'res.is_deleted' => 0, 'subscrber_bounce' => 0, 'is_signup' => 1, 'subscriber_created_by' => $cronjobs['campaign_created_by'], 'ress.subscription_id' => $cronjobs['subscription_ids'], 'datediff(NOW(),date_added)' => $cronjobs['autoresponder_scheduled_interval']));\n //$subscriber_array = $this->Subscriber_Model->get_subscription_subscriber_data(array('subscriber_status' => 1, 'res.is_deleted' => 0, 'subscrber_bounce' => 0, 'is_signup' => 1, 'subscriber_created_by' => $cronjobs['campaign_created_by'], 'ress.subscription_id' => $cronjobs['subscription_ids'], 'datediff(NOW(),date_added)' => $cronjobs['autoresponder_scheduled_interval']), $subscriber_count);\n }\n\n $user = $this->UserModel->get_user_data(array('member_id' => $cronjobs['campaign_created_by']));\n $vmta = $user[0]['vmta'];\n $campaign_subject = $cronjobs['email_subject'];\n $sender_name = ($cronjobs['sender_name'] != '') ? $cronjobs['sender_name'] : $user[0]['company'];\n $sender = ($cronjobs['sender_email'] != '') ? $cronjobs['sender_email'] : $user[0]['email_address'];\n\n $campaign_type = ('5' == trim($cronjobs['campaign_template_option'])) ? 'text' : 'html';\n\n //if($cronjobs['emailtrack_img_link']==\"\"){\n //$autoresponder_arr=$this->Campaign_Autoresponder_Model->save_campaign_view_detail($cronjobs['campaign_id'],$user[0]['language'],true);\n //$cronjobs['emailtrack_img_link']=$autoresponder_arr['emailtrack_img'];\n //$cronjobs['mail_view_link']=$autoresponder_arr['mail_view_link'];\n //$cronjobs['unsubscribe_link']=$autoresponder_arr['unsubscribe_link'];\n //$cronjobs['forward_link']=$autoresponder_arr['forward_link'];\n //$cronjobs['footer_link']=$autoresponder_arr['footer_link'];\n //$cronjobs['footer_html']=$autoresponder_arr['footer_html'];\n if (($cronjobs['campaign_template_option'] != 3) && ($cronjobs['campaign_template_option'] != 5)) {\n $page_html = html_entity_decode($cronjobs['campaign_content'], ENT_QUOTES, \"utf-8\");\n } else {\n $page_html = $cronjobs['campaign_content'];\n }\n \n if (!empty($page_html)){\n $cronjobs['campaign_after_encode_url'] = $this->Campaign_Autoresponder_Model->encode_url($cronjobs['campaign_id'], $page_html, true);\n }\n // pass subscriber email in campaign header for live ramp\n if (count($subscriber_array) > 0) {\n foreach ($subscriber_array as $sub => $sval) {\n $finalSub[$sub] = $sval['subscriber_email_address'];\n }\n } else {\n $finalSub = array();\n }\n\n //}\n // add links:emailtrack_img,footer,unsubscribe,forward links with campaign\n // $camapign_message=$this->Campaign_Autoresponder_Model->attach_campaign_link($cronjobs,$user[0]['rc_logo']);\t\n $camapign_message = $this->Campaign_Autoresponder_Model->attach_campaign_link($cronjobs, $user, true, $finalSub);\n\n\n // collect text message\n $campaign_footer_text_only = $this->Campaign_Autoresponder_Model->campaign_footer_text_only($user, $cronjobs['campaign_id'], true, true);\n $campaign_text_message = $cronjobs['campaign_text_content'] . \"\\n\" . $campaign_footer_text_only;\n $campaign_text_message = str_replace('This is a pre-header. Use this area to write a short preview of your email content.', '', $campaign_text_message);\n $camapign_message = $camapign_message;\n\n\n $email_personalization = true;\n foreach ($subscriber_array as $subscriber) {\n\n //$this->db->query(\"insert into red_activity_log (user_id, activity) values (157,'\" . $activity . \" INSIDE 2nd FOR EACH \" . $sender . \"')\");\n\n if (!($this->do_not_mail($subscriber['subscriber_email_address'], $do_not_mail_list_arr, $user[0]['member_dnm']))) {\n\n //check that subscribers have receive the notification or not\n $subscriber_schedule = $this->Cronjob_Model->get_autoresponder_signup_data(array('autoresponder_scheduled_id' => $cronjobs['autoresponder_scheduled_id'], 'subscriber_email' => $subscriber['subscriber_email_address']));\n\n if (count($subscriber_schedule) <= 0) {\n if (\"-\" . $cronjobs['campaign_created_by'] == $cronjobs['subscription_ids']) {\n $subscrber_date_arr = explode(\" \", $subscriber['subscriber_date_added']);\n } else {\n $subscrber_date_arr = explode(\" \", $subscriber['date_added']);\n }\n\n\n $date_arr = explode(\"-\", $subscrber_date_arr[0]);\n\n $date_diff = $this->dateDiff(\"-\", date(\"m-d-Y\"), $date_arr[1] . \"-\" . $date_arr[2] . \"-\" . $date_arr[0]);\n\n // if(($date_diff == $cronjobs['autoresponder_scheduled_interval'])||($cronjobs['autoresponder_scheduled_interval']==0)){\n if ($date_diff == $cronjobs['autoresponder_scheduled_interval']) {\n\n $subscriber['schedule_id'] = $cronjobs['autoresponder_scheduled_id'];\n $message = $camapign_message;\n $text_message = $campaign_text_message;\n $subject = $campaign_subject;\n // Replace campaign content according to subscriber detail\t\t\t\t\t\t\t\t\n $this->Campaign_Autoresponder_Model->getPersonalization($message, $text_message, $subject, $subscriber, true, $cronjobs['campaign_id'], $vmta, $email_personalization);\n\n\n\n //$this->db->query(\"insert into red_activity_log (user_id, activity) values (157,'\" . $activity . \" BEFORE BATCH SEND')\");\n // Send Autoresponder and if successfully sent update contact for this in red_autoresponder_signup\n if (send_autoresponder_batch($message, $text_message, $subject, $sender_name, $sender, $cronjobs['campaign_id'], $subscriber, $campaign_type, $vmta)) {\n //$this->db->query(\"insert into red_activity_log (user_id, activity) values (157,'\" . $activity . \" AFTER BATCH SEND')\");\n $this->Cronjob_Model->add_autoresponder_signup_subscriber(array('autoresponder_scheduled_id' => $cronjobs['autoresponder_scheduled_id'], 'email_track_subscriber_id' => $subscriber['subscriber_id'], 'subscriber_created_by' => $cronjobs['campaign_created_by'], 'subscriber_email' => $subscriber['subscriber_email_address']));\n }\n }\n }\n }// Filter DoNotMail list\n }// foreach subscriber\n\n $this->db->query(\"UPDATE red_autoresponder_scheduled SET last_run_date = NOW() WHERE autoresponder_scheduled_id = \" . $auto_schedule_id);\n }// Foreach cronjob\n }\n //update cron to 1 so we can run next autoresponder job\n $this->ConfigurationModel->update_site_configuration(array('config_value' => '1'), array('config_name' => 'continue_autoresponder_send'));\n }", "title": "" }, { "docid": "8150ae1c3fad7f00dd63e43a661e9a5c", "score": "0.5555181", "text": "public function subscriptions();", "title": "" }, { "docid": "4971f7142ed777b25f6da9f01bb31cab", "score": "0.5495796", "text": "public function run()\n\t\t{\n\t\t\t// Sets up the Applog, any other pre-requisites in the parent\n\t\t\tparent::run();\n\t\t\t\n\t\t\t$this->Regenerate_Schedules();\n\t\t}", "title": "" }, { "docid": "dccd123f4f275e12eeff731516e507f7", "score": "0.54935104", "text": "public function run()\n {\n $this->collegeRooms();\n $this->workerRooms();\n $this->dispatchRooms();\n $this->rentRooms();\n }", "title": "" }, { "docid": "a87b52625e39d1cfbb90d0252e4e069b", "score": "0.5485057", "text": "public function synchronize()\n {\n //Check if we connected to Cr account\n if (!$this->isConnected()) {\n return false;\n }\n\n $this->_helper->log(\"RUN SYNCHRONIZATION\");\n\n $subscribers = $this->_helper->getActiveMageSubscribers();\n\n $syncedUsers = 0;\n $batch = array();\n $i = 0;\n\n try {\n foreach ($subscribers as $subscriber) {\n $userGroup = 0;\n // If we should separate customers to different groups, then get customer Groups iD if exists\n if ($this->_helper->isSeparationEnabled()) {\n if ($subscriber[\"subscriber_email\"]) {\n // get customer by subscriber E-mail\n $systemCustomer = Mage::getModel(\"customer/customer\")->setWebsiteId($subscriber['website_id'])->loadByEmail($subscriber[\"subscriber_email\"]);\n if ($systemCustomer->getId()) {\n $userGroup = $systemCustomer->getGroupId();\n }\n }\n }\n\n if (isset($subscriber['customer_id']) && $subscriber['customer_id']) {\n $tmp = $this->_helper->prepareUserdata(Mage::getModel(\"customer/customer\")->load($subscriber['customer_id']));\n } else {\n $tmp[\"email\"] = $subscriber[\"subscriber_email\"];\n $tmp[\"source\"] = \"MAGENTO\";\n // Prepare customer attributes\n $firstname = isset($subscriber['customer_firstname']) ? $subscriber['customer_firstname'] : null;\n $lastname = isset($subscriber['customer_lastname']) ? $subscriber['customer_lastname'] : null;\n $tmp[\"attributes\"] = array(\n array(\"key\" => \"firstname\", \"value\" => $firstname),\n array(\"key\" => \"lastname\", \"value\" => $lastname),\n array(\"key\" => \"newsletter\", \"value\" => 1)\n );\n }\n\n // Separate users by Batch, 25 users in one\n if ($tmp[\"email\"]) {\n $batch[$subscriber[\"store_id\"]][$userGroup][floor($i++ / 25)][] = $tmp; //max 25 per batch\n }\n }\n\n // send subscribers batch to CleverReach\n if ($batch) {\n foreach ($batch as $storeId => $groupBatch) {\n $this->init($storeId);\n\n // send for each group\n foreach ($groupBatch as $groupId => $batchStore) {\n foreach ($batchStore as $part) {\n $this->_helper->log(\"SYNCHRONIZATION - receiverAddBatch\");\n\n $result = $this->receiverAddBatch($part, $groupId);\n if ($result !== false) {\n $this->_helper->log(\"FINISH SYNCHRONIZATION WITH EMPTY USERS\");\n $syncedUsers += $result;\n } else {\n return false;\n }\n }\n }\n }\n }\n $this->_helper->log(\"FINISH SYNCHRONIZATION WITH :\".$syncedUsers);\n return $syncedUsers;\n } catch (Exception $e) {\n $this->_helper->log(\"SYNCHRONIZATION Exception: \".$e->getMessage());\n }\n\n $this->_helper->log(\"FINISH SYNCHRONIZATION\");\n\n return $syncedUsers;\n }", "title": "" }, { "docid": "b5d7c141f03c16a000a1cc766ee79ae6", "score": "0.54657197", "text": "public function run()\n {\n $superAdminUser = User::find(1);\n $notifier = User::find(13);\n\n $notificationClass = null;\n for ($i = 0; $i < 50; $i++) {\n $notificationClass = rand(1, 10) < 5 ? \\Modules\\Notification\\Notifications\\Foo::class :\n \\Modules\\Notification\\Notifications\\Bar::class;\n\n $notifier = rand(1, 10) < 5 ? User::find(rand(2, 20)) : null;\n $notification = new $notificationClass($notifier);\n\n $superAdminUser->notify($notification);\n }\n }", "title": "" }, { "docid": "d4136c896706340725bb7df7dd98d45f", "score": "0.54556507", "text": "public function syncScheduledJobs();", "title": "" }, { "docid": "0364c71b9ae957bb252a21040ac7dcb5", "score": "0.54549015", "text": "function scheduler() {\n\t\t$this->validate();\n\t\t$this->setupTemplate();\n\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$templateMgr->assign('helpTopicId', 'conference.currentConferences.scheduler');\n\t\t$templateMgr->display('manager/scheduler/index.tpl');\n\t}", "title": "" }, { "docid": "b25f46cc3cffc4440df1b22d43fae8df", "score": "0.54424894", "text": "public function run()\n {\n $id = 10042;\n $users = User::where('id','!=',$id)->get();\n $time = time() - $users->count() * 60;\n $data = [];\n foreach ($users as $key => $user) {\n $data[] = [\n 'from' => $id,\n 'to' => $user->id,\n 'created_at' => Carbon::createFromTimestampUTC($time + $key * 60),\n 'updated_at' => Carbon::createFromTimestampUTC($time + $key * 60)\n ];\n }\n \\DB::table('subscription')->insert($data);\n }", "title": "" }, { "docid": "701690a9cd0ac2993001aa283faad524", "score": "0.54105717", "text": "function create_schedule() {\r\n }", "title": "" }, { "docid": "d37e0cca47f5928c7062e0a85659533d", "score": "0.5409006", "text": "private function makeSubscription()\n {\n // get the mailchimp client\n $mailchimp = $this->getContainer()->get('zfr_mail_chimp')->getClient();\n\n // make the subscription\n $data = array(\n 'id' => (string)$this->listID,\n 'email' => array('email' => $this->email),\n 'update_existing' => true\n );\n\n // make the call\n if ($mailchimp->subscribe($data)) {\n $this->output(self::OK);\n } else {\n $this->output(self::OK);\n }\n }", "title": "" }, { "docid": "9392efa998c343c26844918a613dcc31", "score": "0.5407337", "text": "public function run()\n {\n DB::table('schedule_shares')->truncate();\n DB::table('schedules')->truncate();\n $users = User::all();\n $users->each(function($user) {\n $schedules = factory(Schedule::class, 10)->create([\n 'scheduled_by' => $user->id,\n ]);\n $schedules->each(function($schedule) {\n $schedule->sharedMembers()->sync([\n $schedule->scheduled_by => [\n 'shared_by' => $schedule->scheduled_by,\n 'is_editable' => 1,\n ],\n ]);\n });\n });\n }", "title": "" }, { "docid": "6ab64b8447c36e9dd50078964c4df199", "score": "0.5405726", "text": "public function runSchedule(): void;", "title": "" }, { "docid": "67293fef56b3c3eb63cca0625f77fbfa", "score": "0.53806734", "text": "public function actionCron() {\n\t\t$emails = CActiveRecord::model('Actions')->findByAttributes(array(\n\t\t\t'type'=>'email_staged',\n\t\t\t'dueDate'=>'<'.time(),\n\t\t\t'complete'=>'No'\n\t\t));\n\t}", "title": "" }, { "docid": "a44598b83ddf5231e6eeae4c3242e2b8", "score": "0.5376463", "text": "public function run()\n {\n $contact1 = Contact::create(array(\n 'user_id' => '1',\n ));\n $contact2 = Contact::create(array(\n 'user_id' => '2',\n ));\n $contact3 = Contact::create(array(\n 'user_id' => '3',\n ));\n \n $contact1->roles()->sync([1, 2, 3, 4]);\n $contact2->roles()->sync([3, 4]);\n $contact3->roles()->sync([4]);\n \n $contact1->offices()->sync([1, 2, 3]);\n $contact2->offices()->sync([2, 3]);\n $contact3->offices()->sync([3]);\n \n \n }", "title": "" }, { "docid": "707a679247deedc0ba6b24eac5ff16a2", "score": "0.53756785", "text": "public function run()\n {\n BOL_EmailVerifyService::getInstance()->deleteByCreatedStamp(time() - self::EMAIL_VARIFY_CODE_REMOVE_TIMEOUT);\n BOL_UserService::getInstance()->cronSendWellcomeLetter();\n }", "title": "" }, { "docid": "30c6a1e39bda73d577d770a189528e42", "score": "0.5372802", "text": "public function sendReminders()\n {\n if (count($this->appointments) > 0) {\n foreach($this->appointments as $appointment){\n $this->_remindAbout($appointment);\n }\n }\n }", "title": "" }, { "docid": "017f8bdde25e5efae8cc0c4c254464bf", "score": "0.53693634", "text": "function booking_cron() {\n global $DB, $USER, $CFG;\n\n mtrace('Starting cron for Booking ...');\n\n $toProcess = $DB->get_records_sql('SELECT \n bo.id, bo.coursestarttime, b.daystonotify\nFROM\n {booking_options} AS bo\n LEFT JOIN\n {booking} AS b ON b.id = bo.bookingid\nWHERE\n b.daystonotify > 0\n AND bo.coursestarttime > 0\n AND bo.sent = 0');\n\n foreach ($toProcess as $value) {\n $dateEvent = new DateTime();\n $dateEvent->setTimestamp($value->coursestarttime);\n $dateNow = new DateTime();\n\n $dateEvent->modify('-' . $value->daystonotify . ' day');\n\n if ($dateEvent < $dateNow) {\n\n $save = new stdClass();\n $save->id = $value->id;\n $save->sent = 1;\n\n booking_send_notification($save->id, get_string('notificationsubject', 'booking'));\n\n $DB->update_record(\"booking_options\", $save);\n }\n\n mtrace('Ending cron for Booking ...');\n\n return true;\n }\n}", "title": "" }, { "docid": "6723f0d89d50e421f411a212703ee63d", "score": "0.5359975", "text": "public function run()\n {\n DB::table('subscribers')->delete();\n\t\tSubscriber::create([\n\t\t\t'id' => '1',\n\t\t\t'email' => '[email protected]',\n\t\t\t'subscription_id' => 1,\n\t\t\t'enabled' => true,\n\t\t]);\n\t\t\n }", "title": "" }, { "docid": "c143176761d9511531e239babe6a2dfb", "score": "0.53572184", "text": "public function subscriptionsAction()\n\t{}", "title": "" }, { "docid": "8850c4e2f52f9102e1ac580dba2746e0", "score": "0.5355915", "text": "function fleio_PostCronjob() {\n // unsettled billing histories\n $fleioServers = FleioUtils::getFleioProducts(); // get all WHMCS products associated with the Fleio module\n foreach($fleioServers as $server) {\n $invoiceWithAgreement = $server->configoption11 == 'on' ? true : false; // invoice clients with billing agreement\n $invoiceWithoutAgreement = $server->configoption10 == 'on' ? true : false; // invoice clients without billing agreement\n $capturePaymentImmediately = $server->configoption12 == 'on' ? true : false; // Attempt to capture payment immediately\n $usingInvoicingFeature = $invoiceWithAgreement || $invoiceWithoutAgreement;\n $flApi = new FlApi(FleioUtils::trimApiUrlTrailingSlash($server->configoption4), $server->configoption1);\n if ($usingInvoicingFeature) {\n FleioUtils::updateClientsBillingAgreement(\n $flApi,\n 'Active',\n $server->configoption13,\n $server->configoption15,\n $server->configoption16,\n $capturePaymentImmediately,\n $server\n );\n\n $url = \"/clients/get_clients_to_invoice\";\n $urlParams = array(\n \"has_external_billing\" => 'True', // only clients with external billing set and credit less than 0\n \"uptodate_credit_max\" => 0\n );\n\n if ($invoiceWithAgreement && $invoiceWithoutAgreement) {\n logActivity('Fleio: Looking at clients with and without a billing agreement');\n }\n if ($invoiceWithAgreement && !$invoiceWithoutAgreement) {\n // Filter only Clients with billing agreement\n $urlParams['has_billing_agreement'] = 'True';\n logActivity('Fleio: Looking at clients with billing agreements only');\n }\n if (!$invoiceWithAgreement && $invoiceWithoutAgreement) {\n // Filter only Clients without billing agreement\n $urlParams['has_billing_agreement'] = 'False';\n logActivity('Fleio: Looking at clients without a billing agreement only');\n }\n\n logActivity('Fleio: retrieving all overdue clients');\n try {\n $invoiceOnlyInEndOfCycleTimespan = $server->configoption19 == 'on' ? true : false; // invoice clients only \n // if latest unpaid cycle end dt is in the past 72h\n logActivity('Fleio: using server ' . $server->configoption4);\n $clientsOverLimit = $flApi->get($url, $urlParams);\n $numInvoicedClients = 0;\n foreach ($clientsOverLimit as $clientOl) {\n if (array_key_exists('has_service_cycle_recently_ended', $clientOl) && array_key_exists('reached_credit_limit', $clientOl)) {\n if ($invoiceOnlyInEndOfCycleTimespan &&\n (!$clientOl['has_service_cycle_recently_ended'] && !$clientOl['reached_credit_limit'])) {\n // skip clients did not reach credit limit or don't have a recently ended service cycle (in last 72h)\n continue;\n }\n }\n $invoiceProcessingUrl = sprintf('/clients/%s/get_client_for_invoice_processing', $clientOl['id']);\n try {\n $clientToProcess = $flApi->get($invoiceProcessingUrl, array());\n } catch ( Exception $e ) {\n $clientToProcess = NULL;\n logActivity(\n 'Fleio: error when trying to get fleio client (' . $clientOl['id'] .\n ') in order to process and invoice him: ' . $e->getMessage()\n );\n }\n if ($clientToProcess) {\n try {\n $clientFromUUID = FleioUtils::getUUIDClient($clientToProcess['external_billing_id']);\n if ($clientFromUUID != NULL) {\n try {\n $generatedInvoiceId = FleioUtils::invoiceClient(\n $clientFromUUID,\n $clientToProcess,\n $server->configoption14,\n FleioUtils::getFleioProductsInvoicedAmount($clientFromUUID->id, $server->id)\n );\n } catch ( Exception $e ) {\n logActivity(\n 'Fleio: error when trying to invoice client ' .\n $clientToProcess['external_billing_id'] . ': ' . $e->getMessage()\n );\n $generatedInvoiceId = NULL;\n }\n if ($generatedInvoiceId) {\n $numInvoicedClients += 1;\n // TODO: take billing agreement status of client from fleio response from fleio 2020.03\n $clientHasBillingAgreementResponse = FleioUtils::clientHasBillingAgreement(\n $clientFromUUID,\n $server->configoption13\n );\n $clientHasBillingAgreement = $clientHasBillingAgreementResponse['hasAgreement'];\n if ($capturePaymentImmediately && $clientHasBillingAgreement) {\n $captured = FleioUtils::captureInvoicePayment($generatedInvoiceId);\n if ($captured === false && $server->configoption16 === '1') {\n // capture failed and setting says the client is no more on agreement\n FleioUtils::removeClientBillingAgreement(\n $flApi, $clientToProcess['external_billing_id']\n );\n }\n }\n } else {\n // re-set the status of invoiced periods\n FleioUtils::resetInvoicedPeriodsStatus($flApi, $clientToProcess);\n }\n } else {\n logActivity(\n 'Fleio: unable to retrieve WHMCS client with UUID: ' .\n $clientToProcess['external_billing_id']\n );\n // re-set the status of invoiced periods\n FleioUtils::resetInvoicedPeriodsStatus($flApi, $clientToProcess);\n continue;\n }\n } catch ( Exception $e ) {\n logActivity($e->getMessage());\n // re-set the status of invoiced periods\n FleioUtils::resetInvoicedPeriodsStatus($flApi, $clientToProcess);\n continue;\n }\n }\n }\n if ($numInvoicedClients > 0) {\n logActivity('Fleio: invoiced ' . $numInvoicedClients . ' overdue clients' );\n } else {\n logActivity('Fleio: no overdue clients to invoice found on ' . $server->configoption4);\n }\n } catch ( Exception $e ) {\n logActivity(\n 'Fleio: unable to retrieve over credit clients from '. $server->configoption4 . ' (' .\n $e->getMessage() . ')'\n );\n continue;\n }\n }\n\n FleioUtils::markWhmcsSuspendedServices($server->configoption4, $flApi);\n\n FleioUtils::markWhmcsActiveServices($server->configoption4, $flApi);\n\n FleioUtils::markWhmcsTerminatedServices($server->configoption4, $flApi);\n\n if ($usingInvoicingFeature) {\n $urlGetAutoInvoiceClients = '/billing/external-billing/get_clients_to_auto_invoice_for_external_billing';\n try {\n $clientsToAutoInvoiceResponse = $flApi->get($urlGetAutoInvoiceClients);\n } catch ( Exception $e ) {\n $clientsToAutoInvoiceResponse = array(\"objects\" => []);\n logActivity('Fleio: unable to retrieve clients for auto-invoicing: ' . $e->getMessage());\n }\n $retrievedClients = $clientsToAutoInvoiceResponse['objects'];\n\n logActivity('Fleio: checking ' . count($retrievedClients) . ' client(s) with auto-invoicing enabled');\n \n $urlProcessAutoInvoicing = \"/billing/external-billing/process_clients_for_credit_auto_invoicing\";\n $counter = 0;\n $creditAutoInvoicedCount = 0;\n foreach($retrievedClients AS $retrievedClientUUID) {\n $counter = $counter + 1;\n if ($creditAutoInvoicedCount === 0) {\n // re-set array as we process 20 clients at a time\n $whmcsClientsToAutoInvoice = [];\n $urlParams = array();\n }\n\n // compose data that has to be sent to Fleio (already invoiced but unpaid amount)\n $clientFromUUID = FleioUtils::getUUIDClient($retrievedClientUUID);\n if ($clientFromUUID !== NULL) {\n try {\n $invoicedAmountData = FleioUtils::getFleioProductsInvoicedAmount($clientFromUUID->id, $server->id);\n $clientToAutoInvoice = array(\n \"external_billing_id\" => $retrievedClientUUID, \n \"credit_still_to_be_paid\" => $invoicedAmountData[\"amount\"],\n \"credit_still_to_be_paid_currency_code\" => $invoicedAmountData[\"currency\"][\"code\"]\n );\n array_push($whmcsClientsToAutoInvoice, $clientToAutoInvoice);\n $creditAutoInvoicedCount = $creditAutoInvoicedCount + 1;\n } catch ( Exception $e ) {\n logActivity(\n 'Fleio: unable to get client ' . $clientFromUUID->id .\n ' invoiced amount for retrieving auto-invoicing data: ' . $e->getMessage()\n );\n if ($counter < count($retrievedClients)) {\n continue;\n }\n }\n }\n\n if ($creditAutoInvoicedCount === 20 || $counter >= count($retrievedClients)) {\n // if we reached 20 clients or the end of list, send them to fleio\n $creditAutoInvoicedCount = 0;\n // process clients we found\n $urlParams = array(\n \"clients\" => $whmcsClientsToAutoInvoice\n );\n try {\n $clientsToAutoInvoice = $flApi->post($urlProcessAutoInvoicing, $urlParams);\n } catch ( Exception $e ) {\n logActivity(\n 'Fleio: error processing ' . $creditAutoInvoicedCount .\n ' client(s) for auto-invoicing: ' . $e->getMessage()\n );\n continue;\n }\n foreach ($clientsToAutoInvoice[\"objects\"] as $clientToAutoInvoice) {\n try {\n $clientFromUUID = FleioUtils::getUUIDClient($clientToAutoInvoice['external_billing_id']);\n if ($clientFromUUID != NULL) {\n try {\n $generatedInvoiceId = FleioUtils::invoiceClientByAmount(\n $clientFromUUID,\n $clientToAutoInvoice[\"necessary_credit\"],\n $clientToAutoInvoice[\"necessary_credit_currency\"],\n $server->configoption14,\n FleioUtils::getFleioProductsInvoicedAmount($clientFromUUID->id, $server->id)\n );\n } catch ( Exception $e ) {\n logActivity(\n 'Fleio: error when trying to invoice client (for auto-invoicing feature) ' .\n $clientToAutoInvoice['external_billing_id'] . ': ' . $e->getMessage()\n );\n $generatedInvoiceId = NULL;\n }\n if ($generatedInvoiceId) {\n logActivity(\n 'Fleio: created invoice ' . $generatedInvoiceId . ' for client ' .\n $clientToAutoInvoice['external_billing_id'] . ' (because of auto-invoicing feature)'\n );\n $clientHasBillingAgreementResponse = FleioUtils::clientHasBillingAgreement(\n $clientFromUUID,\n $server->configoption13\n );\n $clientHasBillingAgreement = $clientHasBillingAgreementResponse['hasAgreement'];\n if ($capturePaymentImmediately && $clientHasBillingAgreement) {\n $captured = FleioUtils::captureInvoicePayment($generatedInvoiceId);\n if ($captured === false && $server->configoption16 === '1') {\n // capture failed and setting says the client is no more on agreement\n FleioUtils::removeClientBillingAgreement(\n $flApi, $clientToAutoInvoice['external_billing_id']\n );\n }\n }\n }\n } else {\n logActivity(\n 'Fleio: unable to retrieve WHMCS client with UUID: ' .\n $clientToAutoInvoice['external_billing_id'] . 'while processing auto-invoicing'\n );\n }\n } catch ( Exception $e ) {\n logActivity('Fleio: error while processing clients for auto-invoicing: ' . $e->getMessage());\n continue;\n }\n }\n }\n }\n }\n\n }\n}", "title": "" }, { "docid": "e4a644ca325c569f3ede39523522e808", "score": "0.5344407", "text": "function setSchedule()\r\n {\r\n\r\n }", "title": "" }, { "docid": "da1e2bda6b972d0d7e91a88201d36c0b", "score": "0.534387", "text": "function hello_t_cron_activate(){\r\n\t\twp_schedule_event( time(), 'hourly', 'hello_t_subscription');\r\n\t}", "title": "" }, { "docid": "407f7f3eb46a35aeb0af23a7a74594dc", "score": "0.53382605", "text": "public function cron_callback() {\n\n\t\t// get terms to check for\n\t\t$terms = $this->opts( 'terms' );\n\t\tif ( empty( $terms ) )\n\t\t\treturn;\n\n\t\t// get rooms to check for terms\n\t\t$room_ids = $this->opts( 'room_ids' );\n\t\tif ( empty( $room_ids ) )\n\t\t\treturn;\n\n\t\t// split into array\n\t\t$terms = ( false !== strpos( $terms, ',' ) ) ? explode( ',', $terms ) : array( $terms );\n\n\n\t\t$blocked = $this->opts( 'blocked' );\n\t\t// split into array\n\t\t$blocked = ( false !== strpos( $blocked, ',' ) ) ? explode( ',', $blocked ) : array( $blocked );\n\n\t\tforeach ( $room_ids as $room_id ) {\n\t\t\t$hc = new HipChat\\HipChat($this->token);\n\t\t\t$this->room_history = $hc->get_rooms_history( $room_id );\n\t\t\t// require_once( 'sampledata.php' );\n\n\t\t\tif ( !$this->room_history )\n\t\t\t\treturn;\n\n\t\t\t// loop messages\n\t\t\tforeach ( $this->room_history as $message ) {\n\t\t\t\t$from_name = $message->from->name;\n\t\t\t\t$from_name = sanitize_text_field( isset( $from_name ) ? $from_name : 'no-name' );\n\t\t\t\t// skip messages posted by this site\n\t\t\t\tif ( $from_name == $this->from() || apply_filters( 'wds_hipchat_skip_message', false, $this->from(), $message ) )\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$keep = true;\n\t\t\t\tif ( !empty( $blocked ) ) {\n\t\t\t\t\tforeach ( $blocked as $block ) {\n\t\t\t\t\t\t// does author match a blocked name?\n\t\t\t\t\t\tif ( strtolower( trim( $from_name ) ) == strtolower( trim( $block ) ) ) {\n\t\t\t\t\t\t\t// if found, we don't keep this message\n\t\t\t\t\t\t\t$keep = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// so loop to the next message\n\t\t\t\t\tif ( !$keep ) continue;\n\t\t\t\t}\n\n\t\t\t\t$keep = false;\n\t\t\t\tforeach ( $terms as $term ) {\n\t\t\t\t\t// search for our terms in the message\n\t\t\t\t\t$pos = strpos( $message->message, trim( $term ) );\n\t\t\t\t\tif ( $pos !== false ) {\n\t\t\t\t\t\t// if found, we keep this message\n\t\t\t\t\t\t$keep = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// otherwise, loop to the next message\n\t\t\t\tif ( !$keep ) continue;\n\n\t\t\t\t// parse a WP readable date from message date\n\t\t\t\t$post_date = date( 'Y-m-d H:i:s', strtotime( $message->date ) );\n\t\t\t\t// generate a post title from name & date\n\t\t\t\t$post_title = sanitize_text_field( 'OH:'. strtotime( $message->date ) );\n\t\t\t\t// no filter because it doesn't handle line-breaks well. :(\n\t\t\t\t$content = $message->message;\n\t\t\t\t// room name\n\t\t\t\t$room_name = $this->rooms( $room_id );\n\t\t\t\t$room_name = sanitize_text_field( isset( $room_name ) ? $room_name : 'No Room' );\n\t\t\t\t// If this name is the same as an existing post, bail here\n\t\t\t\tif ( get_page_by_title( $post_title, OBJECT, $this->cpt->slug ) )\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// create our post data\n\t\t\t\t$post = array(\n\t\t\t\t\t// linkify the hashtags\n\t\t\t\t 'post_content' => str_replace( '#wdschat', '<a href=\"http://twitter.com/search?q=%#wdschat\">#wdschat</a>', $content ),\n\t\t\t\t 'post_date' => $post_date,\n\t\t\t\t 'post_date_gmt' => $post_date,\n\t\t\t\t 'post_status' => 'publish',\n\t\t\t\t 'post_title' => $post_title,\n\t\t\t\t 'post_type' => $this->cpt->slug,\n\t\t\t\t);\n\t\t\t\tdo_action( 'wds_hipchat_pre_save_post', $post, $message );\n\n\t\t\t\t// and insert our post\n\t\t\t\t$new_post_id = wp_insert_post( $post, true );\n\t\t\t\tif ( is_wp_error( $new_post_id ) )\n\t\t\t\t\tcontinue;\n\t\t\t\t// if there were no errors, save our post-meta\n\t\t\t\twp_set_object_terms( $new_post_id, array( $from_name ), $this->account_tax->slug );\n\t\t\t\twp_set_object_terms( $new_post_id, array( $room_name ), $this->room_tax->slug );\n\t\t\t\tupdate_post_meta( $new_post_id, 'wds-author-id', sanitize_text_field( isset( $message->from->user_id ) ? $message->from->user_id : 0 ) );\n\n\t\t\t\tdo_action( 'wds_hipchat_saved_post', $new_post_id, $message );\n\t\t\t\t// send a message with permalink to hipchat\n\t\t\t\t$message = apply_filters( 'wds_hipchat_message', 'New #wdschat! - <a href=\"'. get_permalink( $new_post_id ) .'\">'. $post_title .'</a><br>'.\"\\n\".'<blockquote>'. substr( $content, 0, 120 ) .'</blockquote><br>'.\"\\n\", $new_post_id, $message );\n\t\t\t\t$hc->message_room( $room_id, $this->from(), $message );\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "a2c66e22fe4516cb81d23919c888bbef", "score": "0.5328709", "text": "public function onRun()\n {\n //Initial idea, after 10 teams run the check or report said user.\n }", "title": "" }, { "docid": "e90beda9b910b1246ade57ef6b9ef299", "score": "0.5306547", "text": "function cp_notify_sub_to_admin( $list_name, $subscriber_data, $sub_email ) {\n\t\t$subject = 'Congratulations! You have a New Subscriber!';\n\t\t$body = \"<p>You’ve got a new subscriber to the Campaign: \". $list_name .\"</p>\";\n\t\t$body \t .= \"<p>Here is the information :</p>\";\n\n\t\tforeach ( $subscriber_data as $key => $value ) {\n\t\t \tif( $key !== 'user_id' ) {\n\t\t \t\t$body .= ucfirst($key) .' : '.\t$value.'<br>' ;\n\t\t \t}\n\t\t}\n\n\t\t$body .= \"<p>Congratulations! Wish you many more.<br>This e-mail was sent from ConvertPlug on \". get_bloginfo('name') .\" (\". esc_url( site_url() ) . \")</p>\";\n\n\t\t// get subscriber email\t\n\t\t$to = sanitize_email( $sub_email );\n\t\t\n\t\tcp_send_mail( $to, $subject, $body );\n\t}", "title": "" }, { "docid": "92ae128ab64ce24cd59394d605e8b6d0", "score": "0.5304697", "text": "public function run()\n {\n // Retorno os times\n $soccers = \\App\\Models\\SoccerTeam::all();\n\n /**\n * Recebo uma coleção ( 10 ) de clientes do tipo físico\n */\n $collectionIndividual = factory(\\App\\Models\\Clients::class, 10)\n ->states(\\App\\Models\\Clients::TYPE_INDIVIDUAL)->make();\n\n /**\n * É realizado uma estrutura de repetição, onde cada cliente\n * é associado a um time aleatório.\n */\n $collectionIndividual->each(function ($client) use ($soccers) {\n // Atribuo um id aleatório\n $client->soccer_team_id = $soccers->random()->id;\n $client->save();\n });\n\n $collectionLegal = factory(\\App\\Models\\Clients::class, 10)\n ->states(\\App\\Models\\Clients::TYPE_LEGAL)->make();\n $collectionLegal->each(function ($client) use ($soccers) {\n $client->soccer_team_id = $soccers->random()->id;\n $client->save();\n });\n }", "title": "" }, { "docid": "ccfa4ba67bc40b0253d473ac8d8f685e", "score": "0.5304438", "text": "public function sendTestAction()\n {\n $subscribersIds = $this->getRequest()->getParam('subscriber');\n if (!is_array($subscribersIds) || count($subscribersIds) == 0) {\n Mage::getSingleton('adminhtml/session')->addError(Mage::helper('newsletter')->__('Please select subscriber(s)'));\n } else {\n $allowed = (int)Mage::getStoreConfig(Emv_DataSync_Helper_Data::XML_PATH_ALLOWED_NUMBER_TEST);\n if ($allowed < count($subscribersIds)) {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('emvdatasync')->__(\n 'Your list (%s members) exceeds the allowed limit (%s)!',\n count($subscribersIds),\n $allowed\n )\n );\n } else {\n $helper = Mage::helper('emvdatasync');\n $createdLock = false;\n $startRunTime = $helper->getFormattedGmtDateTime();\n\n try {\n // check and create lock\n if (!$helper->checkLockFile()) {\n // create lock file => do not allow several process at the same time\n $helper->createLockFile('Batch member synchronization cron process running at GMT timezone '\n . $startRunTime\n );\n $service = Mage::getModel('emvdatasync/service_batchMember');\n $createdLock = true;\n\n $service->init();\n $service->setInputData(array('test_mode' => true, 'member_ids' => $subscribersIds));\n $service->run();\n\n $gridLink = sprintf(\n '<a href=\"%s\">%s</a>',\n $this->getUrl('emv_core/dataProcessing'),\n Mage::helper('emvcore')->__('Process grid')\n );\n Mage::getSingleton('adminhtml/session')->addNotice(\n Mage::helper('emvdatasync')->__(\n 'Your synchronization (%s subscriber(s)) has been triggered. Please look at process %s (%s)',\n count($subscribersIds),\n $service->getProcess()->getId(),\n $gridLink\n )\n );\n\n // If non-blocking errors occurs\n $processErrors = $service->getErrors();\n if (!empty($processErrors)) {\n $url = Mage::helper('emvcore')->getLogUrlForProcess($service->getProcess());\n $logLink = sprintf('<a href=\"%s\">%s</a>', $url, Mage::helper('emvcore')->__('Click here'));\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('emvdatasync')->__(\n 'Some non-blocking errors occured, check log (%s) for more details!',\n $logLink\n )\n );\n }\n } else {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('newsletter')->__('Another Data Sync has been running! Please wait until it finishes!')\n );\n }\n } catch (Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n }\n\n // if lock is created, need to delete it\n if ($createdLock) {\n try {\n $helper->removeLockFile();\n } catch (Exception $e) {\n // don't do anything\n }\n }\n }\n }\n\n $this->_redirect('*/*/index');\n }", "title": "" }, { "docid": "c5d6464001ea72b64e815443d2210d47", "score": "0.5292472", "text": "public function run()\n {\n $users = User::pluck('id')->toArray();\n $brand = Brand::pluck('id')->toArray();\n foreach($users as $userId){\n Subscriber::create([\n \"user_id\" => $userId,\n \"brand_id\" => Arr::random($brand)\n ]); \n }\n }", "title": "" }, { "docid": "ca75a17dc6fdeaebf1fcd7ef76908885", "score": "0.5277613", "text": "public function handleCronEvents() {\n // URL collection and post-crawling\n if(SettingService::isSchedulingActive()) {\n $this->scheduleEvents();\n } else {\n $this->removeURLCollectionAndCrawlingEvents();\n }\n\n // Recrawling\n if(SettingService::isRecrawlingActive()) {\n $this->scheduleRecrawlingEvent();\n } else {\n $this->removeRecrawlingEvent();\n }\n\n // Deleting\n if(SettingService::isDeletingActive()) {\n $this->scheduleDeletingEvent();\n } else {\n $this->removeDeletingEvent();\n }\n }", "title": "" }, { "docid": "0d1284905268af0550cb2d9e4159b6ef", "score": "0.52706367", "text": "public function handle()\n {\n $schedules=Schedule::all();\n foreach ($schedules as $sch) {\n\n $email=User::where('id',$sch->user_id)->get('email');\n $medicine=$sch->medicine;\n Mail::to($email)\n ->bcc(\"[email protected]\")\n ->later(20,new Timer($medicine));\n $sch->update(['is_on'=>1]);\n\n\n }\n}", "title": "" }, { "docid": "f90ca6ba4b38a104bea99b46c9583c71", "score": "0.5263378", "text": "public function run()\n {\n try {\n\n $subscription_name = h($this->subscription->name);\n $days = $this->subscription->daysTillExpire();\n\n if ($days > 0) {\n $days = sprintf(ngettext('%1$d day', '%1$d days', $days), $days);\n } else {\n $days = _('today');\n }\n\n $replacements = array(\n 'date' => Carbon::now()->toDayDateTimeString(),\n 'subscription_expires' => $this->subscription->expires->toDayDateTimeString(),\n 'subscription_name' => $subscription_name,\n 'renew_url' => action('\\Project\\Controllers\\Subscriptions\\Create', array('renew',)),\n 'user_name' => $this->user->user_name ?: $this->user->email,\n 'day' => $days,\n );\n\n // Replace the template message and subject\n list($message, $subject) = $this->replaceInTemplate($this->template, $replacements);\n\n // Send email\n $this->mail($subject, $message, $this->user->email, $this->user->user_name ?: '');\n\n // Update the subscription with the new notifications\n $this->updateSubscription();\n\n // Log\n $this->log(\n $this->subscription,\n 'Subscription expiration notification sent for user for {user} for {subscription}.',\n array(\n 'user' => $this->user->id,\n 'user_fallback' => $this->user->user_name,\n 'subscription' => $subscription_name,\n 'subscription_fallback' => $this->subscription->id,\n )\n );\n\n } catch (\\Exception $e) {\n Error::exception($e);\n }\n }", "title": "" }, { "docid": "f31610a000382e0389d20e74aa52b03e", "score": "0.52629143", "text": "function run()\r\n {\r\n CasAccountManager :: launch($this);\r\n }", "title": "" }, { "docid": "81d8ebf5fb39a803143e105b595529ba", "score": "0.52548534", "text": "public function actionRun()\n {\n $redis = $this->redis;\n while ($mail = BaseMail::dequeue($redis)) {\n $mail = unserialize($mail);\n $mail->send();\n }\n }", "title": "" }, { "docid": "0ca3a8ccbbfa86a0e920415533b0332a", "score": "0.5252499", "text": "public function run()\n {\n for ($i = 0; $i < 80; $i++){\n $apartmentId = rand(1,30);\n $serviceId = rand(1,9);\n $apartment = Apartment::find($apartmentId);\n $apartment->service()->attach($serviceId); \n } \n }", "title": "" }, { "docid": "c66f8a5db1ee81eafc5226cdf526924b", "score": "0.5248794", "text": "public function initContasRecebers()\n\t{\n\t\t$this->collContasRecebers = array();\n\t}", "title": "" }, { "docid": "9624d89ad13cc5553d4f025542da9247", "score": "0.5237646", "text": "static function notifyCustomer(){\n\t}", "title": "" }, { "docid": "d1bcdc2896bef3430443d4bfc269d661", "score": "0.5235522", "text": "public static function getAutoRecurringSubscribersByThread($thread_pool = 1, $thread_index = 0) {\n\t\t$timestamp = time(); // sua theo y/c\n\t\t$firstTime = time() - 24*60*60; // Lui lai 1 ngay\n\t\t//hiendv test \n\t\t//$firstTime = time() - 5*60; // Lui lai 1 ngay\n\t\t$lastModifyDate = date('Y-m-d H:i:s', time()-21*3600);\n\t\t\n\t\t$subscribers = Yii::app()->db->createCommand()\n\t\t// \t\t\t->select(\"ssm.id, ssm.subscriber_id, ssm.service_id, ssm.expiry_date, UNIX_TIMESTAMP(ssm.expiry_date) AS expiry_ts, ssm.sent_notification, ssm.recur_retry_times, sub.subscriber_number , sub.auto_recurring, s.code_name, s.display_name, s.price, s.using_days\")\n\t\t->select(\"ssm.id, ssm.subscriber_id, ssm.service_id, ssm.expiry_date, ssm.modify_date, UNIX_TIMESTAMP(ssm.expiry_date) AS expiry_ts, ssm.sent_notification, ssm.recur_retry_times, sub.subscriber_number , sub.auto_recurring\")\n\t\t->from(\"subscriber sub\")\n\t\t->join(\"service_subscriber_mapping ssm\", \"sub.id=ssm.subscriber_id\")\n\t\t// \t\t\t->join(\"service s\", \"ssm.service_id=s.id\")\n\t\t->where(\"(ssm.id % $thread_pool = $thread_index) AND sub.auto_recurring=1 AND ssm.is_active=1 AND ((ssm.expiry_date BETWEEN FROM_UNIXTIME(:firsttime) AND FROM_UNIXTIME(:timestamp)) or (ssm.recur_retry_times > 0 AND (ssm.modify_date < '$lastModifyDate' OR ssm.modify_date is null)))\", array(':timestamp' => $timestamp,':firsttime'=>$firstTime))\n\t\t->order(\"ssm.recur_retry_times\")\n\t\t->queryAll();\n\t\treturn $subscribers;\n\t}", "title": "" }, { "docid": "ad11569edcaa78a033b799aba63f4b6d", "score": "0.5228792", "text": "public function automatic_send_activation()\n\t{\n\t\twp_schedule_event( current_time( 'timestamp' ), 'daily', 'caf_automatic_send');\n\t}", "title": "" }, { "docid": "d0d3ab3f105bb443c5c26087c291b798", "score": "0.522432", "text": "public function testScheduledMessages() {\n $cards = Card::with('user', 'last_blacklist_history')->get();\n foreach ($cards as $card) {\n dd($card->user->manager());\n dd('test');\n }\n // $this->dispatch(new ScheduledMessagesJob());\n }", "title": "" }, { "docid": "9aa1ab4b104d11e2bc7f43af30678f6e", "score": "0.52238506", "text": "public function massQueueAction()\n {\n $subscribersIds = $this->getRequest()->getParam('subscriber');\n if (!is_array($subscribersIds) || count($subscribersIds) == 0) {\n Mage::getSingleton('adminhtml/session')->addError(Mage::helper('newsletter')->__('Please select subscriber(s)'));\n } else {\n try {\n $scheduled = $this->getRequest()->getParam('scheduled');\n if (\n $scheduled != Emv_DataSync_Helper_Service::SCHEDULED_VALUE\n && $scheduled != Emv_DataSync_Helper_Service::NOT_SCHEDULED_VALUE\n ) {\n $scheduled = Emv_DataSync_Helper_Service::SCHEDULED_VALUE;\n }\n\n Mage::helper('emvdatasync')->massScheduleSubscriber($subscribersIds, $scheduled);\n Mage::getSingleton('adminhtml/session')->addSuccess(\n Mage::helper('adminhtml')->__('Total of %d record(s) were updated', count($subscribersIds))\n );\n } catch (Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n }\n }\n\n $this->_redirect('*/*/index');\n }", "title": "" }, { "docid": "56a7b3f53294836667918f7093ffa35c", "score": "0.52189744", "text": "public function run()\n {\n $thread = new Thread();\n $thread->user_id = User::firstOrFail()->id;\n $thread->subject = 'Test';\n $thread->save();\n\n $thread->participants()->createMany([\n ['user_id' => 1, 'last_read_at' => Carbon::now()->subDay()],\n ['user_id' => 2, 'last_read_at' => Carbon::now()->addDays(7)],\n ]);\n\n $thread->messages()->create(['user_id' => 1, 'message' => 'Test message']);\n }", "title": "" }, { "docid": "2f2d7b905ec2a3244192f1a439985c7b", "score": "0.52056617", "text": "public function run()\n {\n factory(Clients::class, 2)->create()->each(function($client) {\n $client->accounts()\n ->saveMany( factory(Accounts::class, 2)->make() )\n ->each(function($account){\n $account->deposits()->save(factory(Deposits::class)->make());\n });\n });\n }", "title": "" }, { "docid": "ff6569327577e79f9d1982ff557a9a08", "score": "0.5196026", "text": "function syncRecurringEvent($bean, $event)\r\n {\r\n global $db;\r\n /*if ($bean->module_dir == 'Meetings' || $bean->module_dir == 'Calls' || $bean->module_dir == 'Tasks') {\r\n if (!isset($_SESSION['from_google'])) {\r\n // Here we are using event_id in session to avoid infinit loop while saving.\r\n if ($bean->id != $_SESSION['gevent_id']) {\r\n //getting related contact of current event\r\n $contacts = $bean->get_linked_beans('contacts', 'Contact');\r\n $gevent_id = explode(\"_\", $bean->gevent_id);\r\n $gevent_id=$gevent_id[0];\r\n $sql = \"SELECT id FROM \" . $bean->table_name . \" WHERE gevent_id LIKE '$gevent_id%' AND deleted=0\";\r\n $result = $db->query($sql);\r\n if ($result->num_rows > 0) {\r\n while ($row = $db->fetchByAssoc($result)) {\r\n $event = new Meeting();\r\n if ($bean->module_dir == 'Calls') {\r\n $event = new Call();\r\n } else if ($bean->module_dir == 'Tasks') {\r\n $event = new Task();\r\n }\r\n $event->retrieve($row['id']);\r\n\r\n $bean->id = $row['id'];\r\n $bean->date_start = $event->date_start;\r\n $bean->date_end = $event->date_end;\r\n $bean->gevent_id = $event->gevent_id;\r\n $bean->fetched_row['date_start'] = $event->fetched_row['date_start'];\r\n $bean->fetched_row['date_end'] = $event->fetched_row['date_end'];\r\n $bean->fetched_row['gevent_id'] = $event->fetched_row['gevent_id'];\r\n $_SESSION['gevent_id'] = $bean->id;\r\n\r\n foreach ($contacts as $contact) {\r\n $GLOBALS['log']->fatal(\"contactid=\" . $contact->id);\r\n $bean->load_relationship('contacts');\r\n $bean->contacts->add($contact->id);\r\n }\r\n $bean->save();\r\n $GLOBALS['log']->fatal(\"Event is Updated with id= \" . $row['id']);\r\n $_SESSION['gevent_id'] = '';\r\n }\r\n }\r\n }\r\n }\r\n }*/\r\n }", "title": "" }, { "docid": "37fd0c96d025c7ee97a696b45d4cd3ca", "score": "0.5193642", "text": "public static function activate() {\n\t\tif( !wp_next_scheduled( 'klik4d_cron' ) ) { \n\t\t\t wp_schedule_event( time(), 'hourly', 'klik4d_cron' ); \n\t\t\t}\n\t}", "title": "" }, { "docid": "4266dc158aa1df1e83e5a87016f26951", "score": "0.5193396", "text": "public function mail_fn($email,$arrcc,$TicketRequestId){\n// dispatch($emailJob);\n$this->dispatch((new Ticket_mail($email,$arrcc,$TicketRequestId))->delay(now()->addSeconds(5)));\n}", "title": "" }, { "docid": "932a20505462d806e3e19981ac31e62a", "score": "0.51903874", "text": "public function start(): void\n {\n $userObserverA = new UserObserverA();\n $userObserverB = new UserObserverB();\n\n $userSubject = new UserSubject();\n\n // First\n $userSubject->attach($userObserverA);\n\n // Second\n $userSubject->attach($userObserverB);\n\n $userSubject->changeEmail('[email protected]');\n $userSubject->detach($userObserverA);\n\n $userSubject->changeEmail('[email protected]');\n\n }", "title": "" }, { "docid": "2938ef5b3d6f0aaa68343a1f5ebdd913", "score": "0.51896715", "text": "public function main()\n {\n $merchEntries = $this->merchDataModel->getEntriesByDate($this->today);\n $clientsToNotify = array();\n\n if ($merchEntries !== false) {\n $notificationEntries = $this->getNotificationEntries($merchEntries);\n\n if ($notificationEntries !== false) {\n $clientsToNotify = $this->getClientsToNotify($notificationEntries);\n\n if ($clientsToNotify !== false) {\n\n if ($this->clientNotificationModel->saveAll($clientsToNotify) !== true) {\n $this->error('Could not save data.');\n } else {\n if (($warnings = $this->clientNotificationModel->getWarnings()) !== false) {\n $this->out('Notification data saved, but there were warnings. Please see below:');\n foreach($warnings as $warning) {\n $this->out(\" \" . $warning);\n }\n } else {\n $this->out('Notification data saved.');\n }\n }\n\n } else {\n $this->out('There are no clients to notify.');\n }\n\n } else {\n $this->out('There are no notification entries.');\n }\n\n } else {\n $this->out('There are no merchendising entries.');\n }\n }", "title": "" }, { "docid": "390b8649f48a8df9120fb14f66331705", "score": "0.5180294", "text": "public function run()\n {\n Delivery::create([\n 'name' => \"Collect\",\n ]);\n Delivery::create([\n 'name' => \"Dispatch\",\n ]);\n Delivery::create([\n 'name' => \"Collect or Dispatch\",\n ]);\n }", "title": "" }, { "docid": "aeff54138c0f5d3b0cdedb47c11f9eb3", "score": "0.51789916", "text": "private function propagateSpecialOccasions ()\n {\n # This is because all softwares can process the activity \n # in a general way.\n\n $activity = array ( ) ;\n $activity[ 'systemPlan' ] = TRUE; \n $activity[ 'date' ] = time () ;\n\n # Propagating the standarded event\n \\f\\ifm::propagate ( array (\n 'path' => 'core.cronJob.specialOccasions',\n 'eventName' => 'specialOccasions',\n 'signal' => $activity\n ) ) ;\n }", "title": "" }, { "docid": "f7443c6792ed54a665ff8bed5406406b", "score": "0.5177545", "text": "public function daily_drip_lesson_email_run(){\n\t\t// get all the users with their lessons dripping today\n\t\t$users_lessons_dripping_today = $this->get_users_lessons_dripping_today();\n\n\t\tif( !array( $users_lessons_dripping_today ) || empty( $users_lessons_dripping_today ) ){\n\t\t\t// do nothing today\n\t\t\treturn;\n\t\t}\n\n\t\t// generate the email markup and send the notifications\n\t\t$this->send_bulk_drip_notifications( $users_lessons_dripping_today );\n\n\t}", "title": "" }, { "docid": "59c1e2af46ba6cc85e4a2797a4cce34d", "score": "0.5177079", "text": "public function __construct()\n {\n\n// while (true) {\n// foreach ($this->users as $userId => $user) {\n// $this->_updateUserCondition($this->clients[$userId], $user);\n// $this->_updateMessageConversation($this->clients[$userId], $user);\n// }\n// }\n }", "title": "" }, { "docid": "e5203b37065e75c7eec73da248149dd4", "score": "0.5174795", "text": "public function run()\n {\n $customer = $this->task->customer;\n $email_builder = (new OrderEmail())->build($this->task, $customer);\n\n if ($customer->send_invoice && $customer->email) {\n EmailOrder::dispatchNow($this->task, $email_builder, $customer);\n }\n }", "title": "" }, { "docid": "a69a9e3b6a1ed1c56247850d1adee780", "score": "0.5169893", "text": "function send_email_interval() {\n $emailService = New EmailService\n while (1){ //infinite loop\n // write code to fetch the emails from database\n \n // Send the emails to receipent\n $emailService.send_email_with_attachment(....)\n //Wait for interval\n sleep($interval);\n }\n }", "title": "" }, { "docid": "160405c76e1959113163d87f132d1542", "score": "0.51695925", "text": "public function run()\n {\n \t// curacall admin role's permission\n $role = Role::findByName('curacall-admin');\n\t\t $role->syncPermissions(\n [\n //Dashboard\n 'view-account-reports',\n 'view-oncall-reports',\n // Cases\n 'view-all-cases', \n 'view-active-cases', \n 'view-pending-cases',\n 'view-closed-cases', \n 'view-silent-cases',\n 'forward-case',\n 'accept-case',\n 'close-case', \n 'pull-case', \n 'add-note',\n 'export-pdf',\n 'add-case-participant', \n // Messages\n 'never-send-message-unless-message-received', \n 'send-message-to-caregiver', \n 'send-message-to-nursing', \n 'send-message-to-coordinator',\n 'send-message-to-management', \n 'send-message-to-account-admin', \n 'send-message-to-anyone', \n // Contacts\n 'view-contacts', \n // Settings\n 'profile-setting', \n 'security-login', \n 'message-setting', \n 'notification-setting', \n // Generate Information\n 'edit-company-information', \n 'edit-support-contact-information', \n //Billing\n 'view-billing-report', \n //Curacall Admin Console\n 'case-repository',\n 'archived-closed-case',\n 'manage-curacall-general-info', \n 'manage-roles', \n 'manage-users', \n 'manage-accounts', \n 'manage-billing'\n ]\n );\n\n\t\t// curacall maangement role's permission\n $role = Role::findByName('curacall-management');\n\t\t$role->syncPermissions(\n [\n //Dashboard\n 'view-account-reports',\n 'view-oncall-reports',\n // Cases\n 'view-all-cases', \n 'view-active-cases', \n 'view-pending-cases',\n 'view-closed-cases', \n 'view-silent-cases',\n 'forward-case',\n 'accept-case',\n 'close-case', \n 'pull-case', \n 'add-note',\n 'export-pdf',\n 'add-case-participant', \n // Messages\n 'never-send-message-unless-message-received', \n 'send-message-to-caregiver', \n 'send-message-to-nursing', \n 'send-message-to-coordinator',\n 'send-message-to-management', \n 'send-message-to-account-admin', \n 'send-message-to-anyone', \n // Contacts\n 'view-contacts', \n // Settings\n 'profile-setting', \n 'security-login', \n 'message-setting', \n 'notification-setting', \n // Generate Information\n 'edit-company-information', \n 'edit-support-contact-information', \n //Billing\n 'view-billing-report', \n ]\n );\n\n\t\t// curacall user role's permission\n $role = Role::findByName('curacall-user');\n\t\t $role->syncPermissions(\n [\n //Dashboard\n 'view-account-reports',\n 'view-oncall-reports',\n // Cases\n 'view-all-cases', \n 'view-active-cases', \n 'view-pending-cases',\n 'view-closed-cases', \n 'view-silent-cases',\n 'forward-case',\n 'accept-case',\n 'close-case', \n 'pull-case', \n 'add-note',\n 'export-pdf',\n 'add-case-participant', \n // Messages\n 'never-send-message-unless-message-received', \n 'send-message-to-caregiver', \n 'send-message-to-nursing', \n 'send-message-to-coordinator',\n 'send-message-to-management', \n 'send-message-to-account-admin', \n 'send-message-to-anyone', \n // Contacts\n 'view-contacts', \n // Settings\n 'profile-setting', \n 'security-login', \n 'message-setting', \n 'notification-setting'\n ]\n );\n\n // account admin role's permission\n $role = Role::findByName('account-admin');\n $role->syncPermissions(\n [\n //Dashboard\n 'view-account-reports',\n 'view-oncall-reports',\n // Cases\n 'view-all-cases', \n 'view-active-cases', \n 'view-pending-cases',\n 'view-closed-cases', \n 'view-silent-cases',\n 'forward-case',\n 'accept-case',\n 'close-case', \n 'pull-case', \n 'add-note',\n 'export-pdf',\n 'add-case-participant', \n // Messages\n 'never-send-message-unless-message-received', \n 'send-message-to-caregiver', \n 'send-message-to-nursing', \n 'send-message-to-coordinator',\n 'send-message-to-management', \n 'send-message-to-account-admin', \n 'send-message-to-anyone', \n // Contacts\n 'view-contacts', \n // Settings\n 'profile-setting', \n 'security-login', \n 'message-setting', \n 'notification-setting', \n // Generate Information\n 'edit-company-information', \n 'edit-support-contact-information', \n //Billing\n 'view-billing-report', \n //Account Console\n 'manage-account-general-info',\n 'case-management' \n ]\n );\n\n // agency management role's permission\n $role = Role::findByName('agency-management');\n $role->syncPermissions(\n [\n //Dashboard\n 'view-oncall-reports',\n // Cases\n 'view-all-cases', \n 'view-active-cases', \n 'view-pending-cases',\n 'view-closed-cases', \n 'view-silent-cases',\n 'forward-case',\n 'accept-case',\n 'close-case', \n 'pull-case', \n 'add-note',\n 'export-pdf',\n 'add-case-participant', \n // Messages\n 'never-send-message-unless-message-received', \n 'send-message-to-caregiver', \n 'send-message-to-nursing', \n 'send-message-to-coordinator',\n 'send-message-to-management', \n 'send-message-to-account-admin', \n 'send-message-to-anyone', \n // Contacts\n 'view-contacts', \n // Settings\n 'profile-setting', \n 'security-login', \n 'message-setting', \n 'notification-setting', \n // Generate Information\n 'edit-company-information', \n 'edit-support-contact-information', \n //Billing\n 'view-billing-report',\n ]\n );\n\n // agency nursing role's permission\n $role = Role::findByName('agency-nursing');\n $role->syncPermissions(\n [\n //Dashboard\n 'view-oncall-reports',\n // Cases\n 'view-all-cases', \n 'view-active-cases', \n 'view-pending-cases',\n 'view-closed-cases', \n 'view-silent-cases',\n 'forward-case',\n 'accept-case',\n 'close-case', \n 'pull-case', \n 'add-note',\n 'export-pdf',\n 'add-case-participant', \n // Messages\n 'never-send-message-unless-message-received', \n 'send-message-to-caregiver', \n 'send-message-to-nursing', \n 'send-message-to-coordinator',\n 'send-message-to-management', \n 'send-message-to-account-admin', \n 'send-message-to-anyone', \n // Contacts\n 'view-contacts', \n // Settings\n 'profile-setting', \n 'security-login', \n 'message-setting', \n 'notification-setting'\n ]\n );\n\n // agency coordinator role's permission\n $role = Role::findByName('agency-coordinator');\n $role->syncPermissions(\n [\n //Dashboard\n 'view-oncall-reports',\n // Cases\n 'view-all-cases', \n 'view-active-cases', \n 'view-pending-cases',\n 'view-closed-cases', \n 'view-silent-cases',\n 'forward-case',\n 'accept-case',\n 'close-case', \n 'pull-case', \n 'add-note',\n 'export-pdf',\n 'add-case-participant', \n // Messages\n 'never-send-message-unless-message-received', \n 'send-message-to-caregiver', \n 'send-message-to-nursing', \n 'send-message-to-coordinator',\n 'send-message-to-management', \n 'send-message-to-account-admin', \n 'send-message-to-anyone', \n // Contacts\n 'view-contacts', \n // Settings\n 'profile-setting', \n 'security-login', \n 'message-setting', \n 'notification-setting'\n ]\n );\n\n // agency caregiver role's permission\n $role = Role::findByName('agency-caregiver');\n $role->syncPermissions(\n [\n // Messages\n 'never-send-message-unless-message-received', \n 'send-message-to-caregiver', \n 'send-message-to-nursing', \n 'send-message-to-coordinator',\n 'send-message-to-management', \n 'send-message-to-account-admin', \n 'send-message-to-anyone', \n // Contacts\n 'view-contacts', \n // Settings\n 'profile-setting', \n 'security-login', \n 'message-setting', \n 'notification-setting'\n ]\n );\n\n }", "title": "" }, { "docid": "4ca5493e29430da8097cca2e31813344", "score": "0.5168914", "text": "public function run()\n {\n //make the left over user as staff\n $halfUsers = (int) (User::count() / 2) + 1; //included seeded admin\n \n $leftOverUsers = $halfUsers - 1;\n \n $users = User::skip($halfUsers)\n ->take($leftOverUsers)\n ->get();\n\n //create customers\n foreach($users as $user){\n $user->customer()->save(new Staff());\n }\n }", "title": "" }, { "docid": "cc91563a9be377ba362a66f94770a4f5", "score": "0.51676136", "text": "public function run()\n {\n Client::insert([\"name\" => \"Daniel Pérez\", \"email\" => \"[email protected]\", \"join_date\" => Carbon\\Carbon::now()]);\n }", "title": "" }, { "docid": "4f8d92790071b3d4d477523f675bc75d", "score": "0.5167033", "text": "public function run() {\n Subject::factory(10)->create();\n\n for ($user = 1; $user <= 10; $user++) {\n for ($subject = 1; $subject <= 10; $subject++) {\n DB::table('subject_user')->insert(['user_id' => $user, 'subject_id' => $subject]);\n }\n }\n }", "title": "" }, { "docid": "97fd6818bc35bb1e47e92de41cb41d36", "score": "0.51649505", "text": "public function actionOnboardReminder(){\n if (!Yii::app()->awsOpsWorks->isFirstOpsWorksInstance()) {\n echo \"DeactivateEditors: this instance should not perform cron jobs, EXIT.\\n\";\n return;\n }\n\n //check all reminders\n $firstPeriod = Option::getByName(Option::REMINDER_PERIOD_FIRST, 5);\n $secondPeriod = Option::getByName(Option::REMINDER_PERIOD_SECOND, 10);\n\n //send first reminder to possible users\n $this->accountActivationReminder($firstPeriod);\n $this->startTestsReminder($firstPeriod);\n $this->videoTestsReminder($firstPeriod);\n $this->contractReminder($firstPeriod);\n\n //send second reminder to possible users\n $this->accountActivationReminder($secondPeriod);\n $this->startTestsReminder($secondPeriod);\n $this->videoTestsReminder($secondPeriod);\n $this->contractReminder($secondPeriod);\n }", "title": "" }, { "docid": "736b7702cb29b77dafc71562bf69024a", "score": "0.51647747", "text": "public function run()\n {\n //Get Doorder Users\n $users = \\App\\User::where('user_role', 'client')->orWhere('user_role', 'retailer')->get();\n //Get Doorder Client\n $client = \\App\\Client::where('name', 'DoOrder')->first();\n //Update Users Client relations\n foreach ($users as $user) {\n \\App\\UserClient::create([\n 'user_id' => $user->id,\n 'client_id' => $client->id\n ]);\n }\n }", "title": "" }, { "docid": "ac8e1ca7a73a7f0d09c5283b2ccf5f53", "score": "0.5164662", "text": "public function cron_jobs() {\n\n // Call method if exists\n (new MidrubBaseUserAppsCollectionFacebook_adsAutomatizationsAd_boostsControllers\\Cron)->run();\n\n }", "title": "" }, { "docid": "ec54f83a12d255126547a532a93ad15f", "score": "0.51557434", "text": "public function sendReminderEmails(){\r\n\t try{\r\n\t $now \t\t= Mage::getModel('core/date')->timestamp();\r\n\t $quoteCollection = Mage::getModel('vendorsquote/quote')->getCollection()\r\n\t ->addFieldToFilter('reminder_date',array('gt'=>0))\r\n\t ->addFieldToFilter('reminder_date',array('lt'=>Mage::getModel('core/date')->date('Y-m-d H:i:s',$now)))\r\n\t ->addFieldToFilter('sent_reminder_email',0)\r\n\t ->addFieldToFilter('status',array('nin'=>array(\r\n\t VES_VendorsQuote_Model_Quote::STATUS_EXPIRED,\r\n\t VES_VendorsQuote_Model_Quote::STATUS_ORDERED,\r\n\t VES_VendorsQuote_Model_Quote::STATUS_REJECTED,\r\n\t VES_VendorsQuote_Model_Quote::STATUS_CANCELLED,\r\n\t VES_VendorsQuote_Model_Quote::STATUS_CREATED_NOT_SENT,\r\n\t )));\r\n\r\n\t foreach($quoteCollection as $quote){\r\n\t $quote->setData('send_reminder_email',1)->save();\r\n\t Mage::helper('vendorsquote')->sendQuoteReminderNotificationEmail($quote);\r\n\t }\r\n\t \r\n\t \r\n\t Mage::log('Check quote reminder for date'.Mage::getModel('core/date')->date('Y-m-d',$now),Zend_Log::INFO,'ves_vendor_membership.log');\r\n\t }catch(Mage_Core_Exception $e){\r\n\t Mage::log($e->getMessage(),Zend_Log::ERR,'ves_vendor_quote.log');\r\n\t }catch (Exception $e){\r\n\t Mage::log($e->getMessage(),Zend_Log::ERR,'ves_vendor_quote.log');\r\n\t }\r\n\t}", "title": "" }, { "docid": "32dd1106ea04830cb5c020d97b84e1cb", "score": "0.51552874", "text": "public function run()\n {\n EmailCampaign::create(['name' => 'news']);\n EmailCampaign::create(['name' => 'offers']);\n EmailCampaign::create(['name' => 'notifications']);\n }", "title": "" }, { "docid": "d5d9ce171ccc264fed789444ddeb601b", "score": "0.5147339", "text": "public function do_this() \n\t{\n\t // Get the current date time\n\t $dateTime = new DateTime();\n\t // Check that the day is Monday\n\t if($dateTime->format('N') == 1)\n\t {\n\t\t$this->send_newsletter('[email protected]');\n\t }\n\t // tester email\n\t $this->send_newsletter('[email protected]');\n\t}", "title": "" }, { "docid": "472f21aad2b1c7d0244e365c95f9b3c0", "score": "0.5144186", "text": "function codendiDaily() {\n $controler = $this->getHTTPController();\n $controler->notifyFuturObsoleteDocuments();\n $reminder = new Docman_ApprovalTableReminder();\n $reminder->remindApprovers();\n }", "title": "" }, { "docid": "bb0ee376805ce6972ba1978378bc43ab", "score": "0.51395047", "text": "public function run() {\n factory(Republic::class, 12)->create()->each(function ($republic) {\n $comments = factory(Comment::class, 2)->make();\n $user = factory(User::class)->make();\n\n //User rents Republic 1:1\n $republic->tenant()->save($user);\n\n //Republic owns Comment 1:n\n $republic->comments()->saveMany($comments);\n\n //User announces Republic 1:n\n $user = User::find($republic->user_id);\n\n //User post Comment 1:n\n $user->comments()->saveMany($comments);\n\n //User favorites Republic n:n\n $user->favorites()->attach($republic);\n });\n }", "title": "" }, { "docid": "b4e2b00f25c0afdf5c0a5f997e759075", "score": "0.5131826", "text": "function Presences_Schedule_Register()\n {\n $this->InscriptionsObj()->ItemData(\"ID\");\n $this->SchedulesObj()->ItemData(\"ID\");\n \n if ($this->CGI_GETOrPOSTint(\"Latex\")==1)\n {\n $this->ApplicationObj()->LatexMode=TRUE;\n }\n\n $schedule=$this->Presences_Register_Schedule_Read();\n \n $schedules=$this->Presences_Register_Schedules_Read($schedule);\n \n if (!$this->ApplicationObj()->LatexMode)\n {\n echo $this->FrameIt\n (\n $this->Presences_Register_Schedule_Show().\n $this->Presences_Register_Schedules_Show($schedule).\n $this->Presences_Schedule_Register_Print_Link().\n $this->Presences_Register_Search($schedule).\n $this->Presences_Schedule_Registers_Show($schedule,$schedules).\n \"\"\n );\n }\n else\n {\n $latex=\n $this->GetLatexSkel(\"Head.tex\").\n\n $this->Presences_Register_Schedules_Show($schedule).\n $this->Presences_Schedule_Registers_Show($schedule,$schedules).\n $this->GetLatexSkel(\"Tail.tex\").\n \"\";\n\n \n\n //$this->ShowLatexCode($latex);\n\n $this->RunLatexPrint\n (\n \"Presences.\".\n $schedule[ \"Submission\" ].\".\".\n //$this->Text2Sort($texfile).\".\".\n $this->MTime2FName().\n \".tex\",\n $latex\n );\n }\n }", "title": "" }, { "docid": "c152d619f9d6330c720fd2f2836c994f", "score": "0.51309836", "text": "function schedulednotifications() {\n // Only want this to run once a day, preferably when no one is working in the system.\n /*$currentHour = date('H');\n if ($currentHour != \"02\") return;*/\n\n $projects = $this->framework->getProjectsWithModuleEnabled();\n\n foreach ($projects as $projectID) {\n $dataProject = new \\Project($projectID);\n $notificationProject = $this->getProjectSetting('notif-project',$projectID);\n $scheduledField = $this->getProjectSetting('schedule-json',$projectID);\n $projectField = $this->getProjectSetting('project-field',$projectID);\n //$notifications = \\REDCap::getData($notificationProject, 'array');\n\n $notificationArray = array();\n //$currentDate = date('Y-m-d');\n if ($notificationProject != \"\" && is_numeric($notificationProject) && $scheduledField != \"\") {\n $this->notificationProject = new \\Project($notificationProject);\n $notifEventID = $this->notificationProject->firstEventId;\n $notifications = \\REDCap::getData($notificationProject, 'array', array(), array(), array(), array(), false, false, false, '[' . $scheduledField . '] != \"\" and ['.$projectField.'] = \"'.$projectID.'\"');\n $projectData = \\REDCap::getData($projectID, 'array', array(), array(), array(), array(), false, false, false);\n $instanceCount = array();\n if (isset($projectData['repeat_instances'])) {\n foreach ($projectData['repeat_instances'] as $eventID => $eventData) {\n foreach ($eventData as $formname => $formData) {\n foreach ($formData as $instanceID => $instanceData) {\n $instanceCount[] = $instanceID;\n }\n }\n }\n }\n if (empty($instanceCount)) {\n $instanceCount[] = 1;\n }\n $currentDate = date(\"Y-m-d\");\n\n foreach ($notifications as $recordID => $eventData) {\n $scheduling = json_decode($eventData[$notifEventID][$scheduledField], true);\n $access = json_decode($eventData[$notifEventID][$this->getProjectSetting('access-json', $projectID)], true);\n if (!isset($eventData['repeat_instances'])) {\n foreach ($projectData as $projectRecordID => $recordData) {\n $startDate = $this->processDateLogic($scheduling[self::SCHEDULE_START_DATE], $recordData[$dataProject->firstEventId], $scheduling[self::START_TIMEFRAME]);\n $endDate = $this->processDateLogic($scheduling[self::SCHEDULE_END_DATE], $recordData[$dataProject->firstEventId], $scheduling[self::END_TIMEFRAME]);\n if (strtotime($endDate) < strtotime($currentDate) || strtotime($startDate) > strtotime($currentDate)) continue;\n if (strtotime($startDate) <= strtotime($currentDate)) {\n foreach ($recordData as $eventID => $projectEventData) {\n if ($eventID == \"repeat_instances\") continue;\n foreach ($instanceCount as $instance) {\n $matchCount = $this->checkMatchCount($access[self::FIELD_NAME_SETTING], $dataProject, $eventID, $instance,$projectEventData);\n if ($matchCount == count($access[self::FIELD_NAME_SETTING])) {\n $usefulRecordData = $this->getUsefulData($recordData[$projectRecordID],$eventID,$instance);\n $roles = array_merge_recursive((array)json_decode($eventData[$notifEventID][$this->getProjectSetting('role-list',$projectID)]), (array)json_decode($eventData[$notifEventID][$this->getProjectSetting('role-resolve',$projectID)]));\n\n $pastDue = $this->processDateLogic($access[self::PASTDUE_SETTING],$usefulRecordData,$access[self::PASTDUE_TIMEFRAME]);\n $displayDate = $this->processDateLogic($access[self::DISPLAY_DATE_SETTING],$usefulRecordData,$access[self::DISPLAY_TIMEFRAME]);\n\n $uniqueByUser = $access[self::UNIQUE_USER_SETTING];\n $userList = array();\n if ($uniqueByUser === \"1\" && !empty($roles)) {\n $fieldList = array_filter(array_unique($roles['fields']));\n $roleList = array_filter(array_unique($roles['roles']));\n\n foreach ($fieldList as $field) {\n $userList[] = $usefulRecordData[$field];\n }\n\n if (!empty($roleList)) {\n foreach ($roleList as $roleID) {\n $usersByRole = $this->getUserNamesByRoleID($roleID);\n $userList = array_filter(array_unique(array_merge_recursive($userList,$usersByRole)));\n }\n }\n }\n $notificationMessage = array(\"record_id\"=>$projectRecordID,\"event_id\"=>$eventID,\"event_name\"=>$dataProject->getUniqueEventNames($eventID),\"instance\"=>$instance,\"pid\"=>$projectID);\n $notificationMessage['instance'] = $instance;\n $notificationMessage['message'] = \"Record ID: $projectRecordID\";\n $notificationMessage['message'] .= \"<br/>Instance: $instance\";\n $this->saveNotification($eventData[$notifEventID], \"notif_cron\", $userList, $notificationMessage, $pastDue, $displayDate);\n }\n }\n }\n }\n }\n }\n else {\n foreach ($eventData['repeat_instances'] as $eventID => $instanceEvent) {\n foreach ($instanceEvent as $formName => $instances) {\n foreach ($instances as $instance => $data) {\n $context = json_decode($data[$this->getProjectSetting('notif-context', $projectID)]);\n $contextRecordID = $context['record_id'];\n $contextEventID = $context['event_id'];\n $contextInstance = $context['instance'];\n if (!isset($notificationArray[$contextRecordID][$contextEventID][$contextInstance]) || $notificationArray[$contextRecordID][$contextEventID][$contextInstance]['last_instance'] < $instance) {\n $notificationArray[$contextRecordID][$contextEventID][$contextInstance]['record_data'] = $data;\n $notificationArray[$contextRecordID][$contextEventID][$contextInstance]['last_instance'] = $instance;\n }\n }\n }\n }\n foreach ($notificationArray as $sourceRecordID => $sourceEventData) {\n foreach ($sourceEventData as $sourceEventID => $sourceInstanceData) {\n foreach ($sourceInstanceData as $sourceInstanceID => $sourceData) {\n $currentRecordData = $this->getUsefulData($projectData[$sourceRecordID],$sourceEventID,$sourceInstanceID);\n $startDate = $this->processDateLogic($scheduling[self::SCHEDULE_START_DATE], $projectData[$sourceRecordID][$dataProject->firstEventId], $scheduling[self::START_TIMEFRAME]);\n $endDate = $this->processDateLogic($scheduling[self::SCHEDULE_END_DATE], $projectData[$sourceRecordID][$dataProject->firstEventId], $scheduling[self::END_TIMEFRAME]);\n $interval = $this->processIntervalString($scheduling[self::SCHEDULE_COUNT],$projectData[$sourceRecordID][$dataProject->firstEventId],$scheduling[self::SCHEDULE_TIMEFRAME]);\n if (strtotime($endDate) < strtotime($currentDate) || strtotime($startDate) > strtotime($currentDate)) continue;\n $examineDate = new \\DateTime($sourceData[$this->getProjectSetting('notif-date',$projectID)]);\n $examineDate->modify($interval);\n if (strtotime($examineDate->format('Y-m-d')) > strtotime($currentDate)) continue;\n while (strtotime($examineDate->format('Y-m-d')) <= strtotime($currentDate)) {\n if ($examineDate->format('Y-m-d') == $currentDate) {\n //TODO Create new instance of notification, and user list\n }\n $examineDate->modify($interval);\n }\n }\n }\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "10705d7e2fc47c622c3a32b93d4d767b", "score": "0.5123843", "text": "public function runDueActions()\n {\n $repo = $this->em->getRepository('ContentSchedulerBundle:Schedule');\n $due = $repo->findDue();\n\n foreach ($due as $schedule) {\n $this->executeSchedule($schedule);\n }\n }", "title": "" }, { "docid": "eea2abf98c78e4343d0d6d4730c26fb2", "score": "0.5111139", "text": "public function sendReminderReviewNow($observer){\n $collection = Mage::getModel('customerreviews/reminders')->getCollection()\n ->addFieldToFilter('reminder_status', 0);\n \n if ($collection->count() > 0) {\n foreach ($collection as $reminder) {\n $customerEmail = $reminder->getCustomerEmail();\n $status = $reminder->getReminderStatus(); \n \n $reminderNow = true;\n //send mail to customer\n $isMailSent = Mage::Helper('customerreviews/data')->sendReminderReviewEmail($reminder, $reminderNow);\n \n //update reminder in data base\n if ($isMailSent) {\n $reminder->setReminderStatus(1);\n $reminder->setUpdatedAt($timeStamp);\n $reminder->save();\n }\n } \n }\n }", "title": "" }, { "docid": "63a0a5f299222de67891e8bfed8c7205", "score": "0.5105617", "text": "protected function request()\n {\n $this->realSubject = new RealSubject();\n $this->realSubject->request();\n }", "title": "" }, { "docid": "9e2f95490990661235df92882255acc3", "score": "0.51039714", "text": "public function go() {\n\t\t$start_date = '2009-10-01';\n\t\t\n\t\t$db = DB::Instance();\n\t\n\t\t// Get those who have created an account more than two weeks ago\n\t\t// and have logged in, but not those who have been sent the reminder\n\t\t// email and/or not those who have received the welcome email already.\n\t\t$normal = $db->getArray(\n\t\t\t\"SELECT ta.firstname, u.username, ta.email, ta.site_address\n\t\t\tFROM tactile_accounts ta\n\t\t\tLEFT JOIN users u ON u.username = ta.username || '//' || lower(ta.site_address)\n\t\t\tWHERE ta.created <= (NOW() - '6 days'::interval)\n\t\t\tAND u.last_login IS NOT NULL\n\t\t\tAND ta.enabled = 't'\n\t\t\tAND ta.created >=\".$db->qstr($start_date).\"\n\n\t\t\tEXCEPT\n\n\t\t\tSELECT ta.firstname, u.username, ta.email, ta.site_address\n\t\t\tFROM tactile_accounts ta\n\t\t\tLEFT JOIN users u ON u.username = ta.username || '//' || lower(ta.site_address)\n\t\t\tLEFT JOIN mail_log ml ON ml.username = u.username\n\t\t\tWHERE ml.name = 'your_feedback';\n\t\t\");\n\t\t\n\t\t$recipients = $normal;\n\t\t\n\t\tif (count($recipients) == 0) return;\n\t\t\n\t\tforeach ($recipients as $recipient) {\n\t\t\tif (!empty($recipient['email'])) {\n\t\t\t\tEGS::setUsername($recipient['username']);\n\t\t\t\t\n\t\t\t\t$mail = new Omelette_Mail('your_feedback');\n\t\n\t\t\t\t$mail->getMail()->setSubject(\"What did you think of Tactile CRM?\");\n\t\t\t\t$mail->getMail()->setFrom(TACTILE_EMAIL_ADDRESS, TACTILE_EMAIL_SENDER);\n\t\n\t\t\t\tif (defined('PRODUCTION') && PRODUCTION == true) {\n\t\t\t\t\t$mail->addBcc(TACTILE_DROPBOX);\n\t\t\t\t\t$mail->getMail()->addTo($recipient['email']);\n\t\t\t\t} else {\n\t\t\t\t\t$mail->getMail()->addTo(DEBUG_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\n\t\t\t\t$mail->getView()->set('firstname', ucfirst(strtolower($recipient['firstname'])));\n\t\t\t\t$mail->getView()->set('username', str_replace('//'.$recipient['site_address'], '', $recipient['username']));\n\t\t\t\t$mail->getView()->set('site_address', $recipient['site_address']);\n\t\t\t\ttry {\n\t\t\t\t\t$mail->send();\n\t\t\t\t} catch (Zend_Mail_Transport_Exception $e) {\n\t\t\t\t\t$this->logger->warn('Failed to send Your Feedback email to \"'.$recipient['email'] . '\": ' . $e->getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "496435f4b7cbef7b1af5ce7aa1bee7f6", "score": "0.5103794", "text": "public function run() {\r\n $this->config->set('auto_prune_start', strtotime('tomorrow 1am'));\r\n // $this->config->set('auto_prune_start', $this->request->server('REQUEST_TIME'));\r\n $infractions = $this->manager->get_expired_infractions($this->request->server('REQUEST_TIME'));\r\n foreach ($infractions as $inf) {\r\n $this->manager->expire_user_infraction($inf['id']);\r\n }\r\n add_log('admin', 'EXPIRE_INFRACTIONS');\r\n }", "title": "" }, { "docid": "4b7b497a8a6b7a62f2e975626af5cfe9", "score": "0.51011676", "text": "public function cron(){\n $db = Yii::$app->db;\n $cmd = $db->createCommand('SELECT * FROM servers');\n $cmd->fetchMode = \\PDO::FETCH_OBJ ; \n $servers = $cmd->queryAll();\n \n foreach($servers as $server){\n \n $this->getServerLastMetrics( $server );\n $this->getServerThresholds( $server ); \n if( isset($server->warnings) && count($server->warnings) > 0 ){\n // Got the message\n $msg = \"\";\n foreach($server->warnings as $warning){\n $msg = $msg . $warning . \"<br/>\";\n }\n // Get email template\n\n $template = file_get_contents( Url::base(true) . \"/mail/email.html\");\n\n //Get email headers\n $headers = \"From: [email protected] \\r\\n\";\n //$headers .= \"CC: [email protected]\\r\\n\";\n $headers .= \"MIME-Version: 1.0\\r\\n\";\n $headers .= \"Content-Type: text/html; charset=ISO-8859-1\\r\\n\";\n\n //Send email message\n $emails = $this->getThresholdNotificationEmails();\n foreach($emails as $item){\n //$sender = \"[email protected]\";\n $template = str_replace(\"SERVER_DATA\", $msg, $template );\n echo \"Sending message {$item->email}\";\n print_r($template);\n mail( $item->email,\"Mkit Server App\", $template, $headers ); \n }\n \n }\n\n //$this->getServerThresholdConnections($server);\n }\n return $servers;\n }", "title": "" }, { "docid": "8722ad50244069ba82828a5f4e23b902", "score": "0.50957775", "text": "public function run()\n {\n \t$this->clinics_ownerships();\n $this->clinics_types();\n $this->clinics_divisions();\n }", "title": "" }, { "docid": "8c0509135467728b3f236684778b8798", "score": "0.5095387", "text": "protected abstract function subscribe();", "title": "" }, { "docid": "b7998bb77e532e859859fc64c5bd7df0", "score": "0.5091559", "text": "public function current_day_schedules(){\n\n $today_schedule = $this->Reminder_model->get_current_schedule();\n\n //pe($today_schedule);die;\n //$today_schedule[0]['remind_to']; //pe($today_schedule);die;\n if (count($today_schedule) > 0) {\n foreach ($today_schedule as $key => $value) {\n $contact_no= $this->Lead->get_employee_dump(array('contact_no'),array('hrms_id' => $value['remind_to']),array(),'employee_dump');\n\n $contact=$contact_no[0]->contact_no;\n $title = \"Reminder Text\";\n sendPushNotification($value['remind_to'],$value['reminder_text'],$title);\n }\n }\n }", "title": "" }, { "docid": "673c6d20aa5fe6cf329b8f7cedbc8d9c", "score": "0.50874364", "text": "public function run()\n {\n DB::table('messages')->insert([\n 'user_from' => 2,\n 'user_to' => 1,\n 'subject' => 'hola, saludos',\n 'description' => 'hola, te saluda un propietario',\n 'created_at' => \\Carbon\\Carbon::now()\n ]);\n\n DB::table('messages')->insert([\n 'user_from' => 3,\n 'user_to' => 1,\n 'subject' => 'hola, como estas, saludos',\n 'description' => 'hola, te saluda un cliente',\n 'created_at' => \\Carbon\\Carbon::now()\n ]);\n }", "title": "" }, { "docid": "c2c47fafd41ec60099087770146427fd", "score": "0.5082563", "text": "private function processCustomers()\n {\n foreach ($this->getCustomers() as $customer) {\n //If the customer is newly registered, one day back in time\n if ( $customer->createdAt > (new DateTime())->modify('-1 day') ) {\n try {\n $mail = new Mail($customer);\n // We include template\n $mail->setTemplate(new WelcomeTemplate);\n //Send mail\n $mail->send();\n } catch (\\Exception $exception) {\n Log($exception->getMessage());\n }\n }\n // We send mail if customer hasn't put an order\n $send = true;\n //loop through list of orders to see if customer don't exist in that list\n foreach ($this->getOrders() as $order ) {\n // Email exists in order list\n if ($customer->email == $order->customerEmail) {\n //We don't send email to that customer\n $send = false;\n }\n }\n if ($send) {\n try {\n $mail = new Mail($customer);\n // We include template\n $mail->setTemplate(new BackTemplate);\n $mail->send();\n } catch (\\Exception $exception) {\n Log($exception->getMessage());\n }\n }\n }\n }", "title": "" }, { "docid": "490641c14d83e67c98b5d0983e664299", "score": "0.50811857", "text": "public function run()\n {\n foreach (\\App\\Clinic::all() as $clinic) {\n foreach ($clinic->users as $user) {\n //add patients to the clinic\n factory(App\\Patient::class, 10)->make()->each(function (\\App\\Patient $patient) use ($clinic, $user) {\n $patient->creator()->associate($user);\n $patient->clinic()->associate($clinic);\n $patient->save();\n });\n }\n }\n }", "title": "" }, { "docid": "d30d888f9b1c69e2f083a1cc6f6e2fcf", "score": "0.5078051", "text": "public function generate()\n {\n // every day we will create a schedule for today\n if ('0' != gmdate(\"G\") || '01' != gmdate(\"i\")) {\n return;\n }\n\n foreach ($this->db->getSchedules() as $item) {\n // how many notifications to send per day\n for ($i = 0; $i < $item['quantity']; $i++) {\n $this->db->addSendingDailyNow(\n [\n 'chat_id' => $item['chat_id'],\n 'date_time' => $this->createDateTimeForSchedule(\n $item['hour_start'],\n $item['hour_end'],\n $item['time_zone_offset']\n ),\n 'status_sent' => 0,\n ]\n );\n }\n }\n }", "title": "" }, { "docid": "d4137ee630c8d942c3db178d062eb4a7", "score": "0.50772715", "text": "public function cron()\n\t{\t\n\t\t// Loop forever if not development client\n\t\twhile(TRUE && !defined(\"DEV\"))\n\t\t{\n\t\t\t// Log time for current task loop\n\t\t\tutilities::notate(\"Actions at: \".date(\"H:i:s\"), \"clientd.log\");\n\n\t\t\t// Every 10 minutes\n\t\t\tif(intval(ltrim(date(\"i\"), \"0\")) % 10 == 0)\n\t\t\t{\n\t\t\t\t// Run all 10 minute tasks\n\t\t\t\t$this->minuteEveryTen();\n\t\t\t}\t\t\t\t\n\n\t\t\t// If first hour of the day\n\t\t\tif(date(\"H:i\") == \"00:00\")\n\t\t\t{\n\t\t\t\t// Run all daily tasks\n\t\t\t\t$this->hourOne();\t\t\t\n\t\t\t}\n\n\t\t\t// The last min of every hour\n\t\t\tif(date(\"i\") == \"59\")\n\t\t\t{\n\t\t\t\t// Run all hourly tasks\n\t\t\t\t$this->hourAll();\n\t\t\t}\t\t\n\n\t\t\t// Every 2 minutes\n\t\t\tif(intval(ltrim(date(\"i\"), \"0\")) % 2 == 0)\n\t\t\t{\n\t\t\t\t// Run all every other minute tasks\n\t\t\t\t$this->minuteEveryTwo();\t\t\t\n\t\t\t}\n\n\t\t\t// Run all minute tasks \n\t\t\t$this->minuteAll();\t\t\t \t\t \t \t\t\t\t\n\n\t\t\t// Wait for next loop\n\t\t\t$this->meditate();\t\n\t\t}\n\t}", "title": "" }, { "docid": "5f3b5977236eb289641a94250df02a50", "score": "0.5077114", "text": "static function promotion_scheduler(){\n\t\tglobal $post;\n\t\t$schedule_info = self::get_scheduler_info($post->ID);\n\t\t$enabled = self::get_op_enalbe_status($post->ID);\t\n\t\tinclude OLDPOSTPROMOTER_DIR . '/metaboxes/promotion-schedule.php';\n\t}", "title": "" }, { "docid": "819eb510f0536ad79c06f503bb19f74d", "score": "0.5076938", "text": "public function buildResponsibles()\n {\n \n\n \n }", "title": "" }, { "docid": "df7a13cb5d25448fea99668343e1cb89", "score": "0.5075341", "text": "public function run()\n {\n factory('App\\User')->states('administrator')->create();\n \n factory('App\\Category', 5)->create()->each(function($category) {\n factory('App\\Thread', 10)\n ->states('with_activity')\n ->create(['category_id' => $category->id])\n ->each(function($thread) {\n $thread->replies()->saveMany(\n factory('App\\Reply', 10)->states('with_activity')->create(['thread_id' => $thread->id])\n );\n });\n });\n }", "title": "" }, { "docid": "dbf2227f54024bebcb36d6d1692bce78", "score": "0.50667566", "text": "function State_26($parameters) \n\t{\n\t\t$application_id = $parameters->application_id;\n\t\teCash_Document_AutoEmail::Queue_For_Send($this->server, $application_id, 'RETURN_LETTER_3_OVERDUE_ACCOUNT', $parameters->status->fail_set[0]->transaction_register_id);\n\n\t\t$this->Log(\"Next Action Date: {$parameters->next_action_date}\");\n\t\t$this->Log(\"Next Due Date: {$parameters->next_due_date}\");\n\n\t\t/** - Per 16663, the customer does not want to reattempt customers.\n\t\t * - Per 22286, The customer realized it was a bad idea to not reattempt customers, and is now reenabling reattempts. \n\t\t */\n \t\t$db = ECash_Config::getMasterDbConnection();\n\n \t\t// reattempt on the next pay day\n \t\t// Now add all the remaining reattempts\n\t\tif ($date_pair = $this->getAdditionalReturnDate($parameters))\n\t\t{\t\t\n\t \t\ttry \n\t \t\t{\t\t\t\n\t \t\t\t$db->beginTransaction();\n\t \t\t\tforeach($parameters->status->fail_set as $f)\n\t \t\t\t{\n\t \t\t\t\t$this->Log(\"Reattemping {$f->transaction_register_id} on {$date_pair['event']}\");\n\t \t\t\t\t$ogid = -$f->transaction_register_id;\n\t \t\t\t\tReattempt_Event($application_id, $f, $date_pair['event'], $ogid);\n\t \t\t\t}\t\t\t\n\t \t\t\t$db->commit();\t\t\t\t\t \n\t \t\t} \n\t \t\tcatch (Exception $e) \n\t \t\t{\n\t \t\t\t$this->Log(__METHOD__.\": Unable to reattempt events.\");\n\t \t\t\t$db->rollBack();\n\t \t\t\tthrow $e;\n\t \t\t}\n\t\t}\n\n//\t\t$qm = ECash::getFactory()->getQueueManager();\n//\t\t$queue_item = $qm->getQueue('collections_new')->getNewQueueItem($parameters->application_id);\n//\t\t$queue_item->Priority = 100;\n//\t\t$qm->moveToQueue($queue_item, 'collections_new');\n\n\t\tUpdate_Status(null, $application_id, array('new','collections','customer','*root'), NULL, NULL, FALSE);\n\t}", "title": "" }, { "docid": "05aa39600d92484936a2bedcb4841c8d", "score": "0.5065291", "text": "protected function schedule(Schedule $schedule)\n {\n $schedule->call(function () {\n \n $auctions = Auction::where('FK_status_id', '!=', '4')->get(); //alle auctions ophalen die niet expired zijn\n \n $mytime = Carbon::now(); //de datum nu \n $timenow = $mytime->toDateTimeString();\n \n foreach($auctions as $auction) //elke auction checken\n {\n if($auction->enddate < $timenow) //als enddate vroeger is als nu \n {\n $auction->FK_status_id = '4'; //status van auction op expired zetten\n $auction->save();\n \n /*\n //alle bidders die op deze auction hebben geboden\n $bidders = Bidder::where('FK_auction_id', '=', $auction->id)->distinct()->with('user')->get(); //distinct voor duplicate receivers\n \n //mail sturen naar verliezende bidders\n foreach($bidders as $bidder)\n {\n if($bidder->bidAmount == $auction->currentPrice) //bidder heeft hoogste bod\n {\n //mail sturen naar bidders zonder hoogste bod\n Mail::send('email.wonauction',\n array(\n 'descriptionEnglish' => $auction->descriptionEnglish,\n 'descriptionDutch' => $auction->descriptionDutch,\n 'title' => $auction->title\n ), function($message)\n {\n $message->from('[email protected]');\n $message->to($bidder->user->email, 'Admin')->subject('You have won an auction on Landoretti');\n });\n \n }\n else{\n //mail sturen naar bidders zonder hoogste bod\n Mail::send('email.lostauction',\n array(\n 'descriptionEnglish' => $auction->descriptionEnglish,\n 'descriptionDutch' => $auction->descriptionDutch,\n 'title' => $auction->title\n ), function($message)\n {\n $message->from('[email protected]');\n $message->to($bidder->user->email, 'Admin')->subject('You have lost an auction on Landoretti');\n });\n }\n }\n */\n }\n }\n \n })->everyMinute();\n }", "title": "" }, { "docid": "ec07b766b7aa591955a5ccc4cb1d796f", "score": "0.50646627", "text": "public function run()\n {\n Channel::factory(5)->create()->each(function ($channel) {\n Thread::factory(4)->create(['channel_id' => $channel->id])->each(function ($thread) {\n Reply::factory(5)->create(['thread_id' => $thread->id]);\n });\n });\n }", "title": "" }, { "docid": "7eed95557db719c11d985ecde1cb433e", "score": "0.5062958", "text": "public function run()\n {\n foreach($this->agencies as $agency){\n Agency::create($agency);\n }\n }", "title": "" }, { "docid": "cdc5ba0e701cade9f1847e1bf208223b", "score": "0.506057", "text": "public function run()\n {\n Client::factory()->count(100)->create()->each(function($client) {\n Commande::factory()->count(random_int(1,12))->create([\n \"client_id\" => $client->id\n ]);\n });\n }", "title": "" }, { "docid": "ef9072ee014ba596b1281afac0c743a1", "score": "0.5060427", "text": "public function synchroBag() {\n\t\t$customer = Mage::getSingleton('customer/session')->getCustomer();\n\t\t$flag = Bag::getIcsFlagSynchroInSession();\n\t\tif(!Mage::helper('connectedstore/ICSHelper')->isICSModuleEnabled() || !empty($flag) || !$customer->getId()) {\n\t\t\treturn;\n\t\t}\n\n\t\tICSLogger::debug('*** Beginning SynchroBag event (controller_action_predispatch)');\n\n\t\tICSLogger::debug('+ Synchronising cart...');\n\t\t$this->synchroCart($customer);\n\t\tICSLogger::debug('+ Synchronising wishlist...');\n\t\t$this->synchroWishlist($customer);\n\t\tBag::setIcsFlagSynchroInSession(true);\n\t}", "title": "" } ]
f98a160d864e897c72c385750c8ee48a
Runs all validation rules in this set and returns a list of validation errors
[ { "docid": "873e5f9ff624cacee62f38dcfda985e0", "score": "0.0", "text": "public function validate($data, $isUpdate = false) {\n\t\t$this->reset();\n\t\t$this->_isUpdate = $isUpdate;\n\n\t\tif ($this->checkValidatePresent($this->field, $data)) {\n\t\t\treturn array(__d('cake', 'This field must exist in data'));\n\t\t}\n\n\t\tif (!array_key_exists($this->field, $data)) {\n\t\t\treturn array();\n\t\t}\n\n\t\t$errors = array();\n\t\t$checkEmpty = $this->checkEmpty($this->field, $data);\n\t\tforeach ($this->getRules() as $name => $rule) {\n\t\t\tif ($rule->skip()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ($checkEmpty) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$rule->process($this->field, $data, $this->_methods);\n\t\t\tif (!$rule->isValid()) {\n\t\t\t\t$errors[] = $this->_processValidationResponse($name, $rule);\n\t\t\t\tif ($rule->isLast()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $errors;\n\t}", "title": "" } ]
[ { "docid": "a8e892189814c1d0355ae08bc5a0769b", "score": "0.7402724", "text": "public function validate() {\n $this->errors = [];\n\n // Add custom validations\n\n return $this->errors;\n }", "title": "" }, { "docid": "4ec40e8db7bbc3d8aec95f149f910ed2", "score": "0.7359727", "text": "public function getAllRules()\n {\n return $this->validators;\n }", "title": "" }, { "docid": "66aa91bd2f9585d95fdfde659ba7a258", "score": "0.72544223", "text": "protected function validate()\n {\n $this->errors = [];\n foreach ($this->rules as $field => $rules) {\n\n foreach ($rules as $rule) {\n if (isset($this->errors[$field])) {\n //We are validating field till first error\n continue;\n }\n\n //Condition is either rule itself or first array element\n $condition = is_string($rule) ? $rule : $rule[0];\n $arguments = is_string($rule) ? [] : $this->fetchArguments($rule);\n\n if (empty($this->getValue($field)) && !$this->config->emptyCondition($condition)) {\n //There is no need to validate empty field except for special conditions\n break;\n }\n\n if ($this->skipUnderEmptyCondition($rule)) {\n continue;\n }\n\n $result = $this->check($field, $this->getValue($field), $condition, $arguments);\n\n if ($result === true) {\n //No errors\n continue;\n }\n\n if ($result === self::STOP_VALIDATION) {\n //Validation has to be stopped per rule request\n break;\n }\n\n if ($result instanceof CheckerInterface) {\n //Failed inside checker, this is implementation agreement\n if ($message = $result->getMessage($condition[1])) {\n\n //Checker provides it's own message for condition\n $this->addMessage(\n $field,\n is_string($rule) ? $message : $this->fetchMessage($rule, $message),\n $condition,\n $arguments\n );\n\n continue;\n }\n }\n\n //Default message\n $message = $this->say($this->defaultMessage);\n\n //Recording error message\n $this->addMessage(\n $field,\n is_string($rule) ? $message : $this->fetchMessage($rule, $message),\n $condition,\n $arguments\n );\n }\n }\n }", "title": "" }, { "docid": "f3c76174c5a69ad644c99824df4f1003", "score": "0.72032946", "text": "public function getValidationRules();", "title": "" }, { "docid": "b73e1a424cdf871502f36ce89fcff4ae", "score": "0.71765584", "text": "public function process_validations()\n\t{\n\t\tif ( 0 == count( $this->_validations ) ) return array();\n\n\t\t$errors = array();\n\n\t\tforeach ( $this->_validations as $validation )\n\t\t{\n\t\t\t$method = 'validate_'.$validation;\n\n\t\t\t// Ignore any method that doesn't exist\n\t\t\tif ( true == method_exists( $this, $method ) )\n\t\t\t{\n\t\t\t\t$response = call_user_func( array( $this, $method ), $this->_value );\n\t\t\t\t\n\t\t\t\tif ( \"valid\" != $response )\n\t\t\t\t{\n\t\t\t\t\t$errors[$validation] = $response;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\terror_log( 'Invalid Method Call: ' . $method . '(\"'.$this->_value.'\")' );\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->_errors = ( count( $errors ) > 0 ) ? $errors : null;\n\n\t\treturn $this->_errors;\n\t}", "title": "" }, { "docid": "5272c2360bb713890f485619390e2b09", "score": "0.71467406", "text": "public function all()\n {\n return $this->errors;\n }", "title": "" }, { "docid": "43d10e5c8d73e2228797a9861eeeeaf6", "score": "0.7145798", "text": "function validate()\r\n {\r\n foreach ($this->validationRules as $field => $validationRule) {\r\n foreach ($validationRule['rules'] as $key => $value) {\r\n\r\n $functionName = is_string($key) ? $key : $value;\r\n $functionArguments = [$field];\r\n\r\n if (is_string($key)) {\r\n if (is_array($value)) {\r\n $functionArguments = array_merge($functionArguments, $value);\r\n } else {\r\n $functionArguments[] = $value;\r\n }\r\n }\r\n\r\n if (method_exists($this, $functionName)) {\r\n if (!call_user_func_array(array($this, $functionName), $functionArguments)) {\r\n break;\r\n }\r\n } elseif (function_exists($functionName)) {\r\n if (!call_user_func_array($functionName, $functionArguments)) {\r\n break;\r\n }\r\n } elseif (isset($this->userValidators[$functionName])) {\r\n array_unshift($functionArguments, $this);\r\n if (!call_user_func_array($this->userValidators[$functionName], $functionArguments)) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return $this->isValid();\r\n }", "title": "" }, { "docid": "0ec228aa533143fa8d8a7da8a30fde95", "score": "0.71442384", "text": "public function validate() {\n\t\t\t$this->errors = array();\n\t\t\tforeach ($this->rules as $name => $rule) {\n\t\t\t\ttry {\n\t\t\t\t\t$rule->check();\n\t\t\t\t} catch (ValidationException $e) {\n\t\t\t\t\t$this->errors[] = (object) [\n\t\t\t\t\t\t'name' => $name,\n\t\t\t\t\t\t'message' => $e->getMessage()\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "title": "" }, { "docid": "fc86e4c86de9113aa552fccffdf1d48b", "score": "0.71257985", "text": "public function validate()\n {\n $rules = $this->rules();\n $violations = [];\n $validator = Validation::createValidator();\n\n foreach ($rules as $property => $ruleValidation) {\n $violation = $validator->validate($this->{$property}, $ruleValidation);\n $violations[$property] = $violation;\n }\n\n $exportableViolations = [];\n // Exports errors from Symfony Validation Error Objects\n foreach ($violations as $property => $violationErrors) {\n foreach ($violationErrors as $violationError) {\n /**\n * @var $violationError ConstraintViolation\n */\n $exportableViolations[] = \"$property: {$violationError->getMessage()}\";\n }\n }\n\n return $exportableViolations;\n }", "title": "" }, { "docid": "d3e1a7db18ea770be5ed16d335b396e9", "score": "0.71015126", "text": "public function rules()\n { \n $rules = [];\n $repository = \\Settings::repository($this->segment(3));\n return $repository->getValidations();\n }", "title": "" }, { "docid": "cef4c2e39172be98881a3ab4e2082623", "score": "0.70977235", "text": "public function all() {\n return $this->errors;\n }", "title": "" }, { "docid": "7092e1e538d78ad25e14a8bb0f44ca5e", "score": "0.70724696", "text": "public function getFailedRules()\n {\n return $this->errorsBag()->keys();\n }", "title": "" }, { "docid": "d3d038432872e4724b72220f4f890989", "score": "0.702286", "text": "public function validate()\n {\n foreach ($this->rules as $field => $rule) {\n switch ($rule) {\n case 'required':\n if (!isset($this->data[$field]) || empty($this->data[$field])) {\n $this->addError($field, \"$field is a mandantory field\");\n }\n break;\n\n case 'email':\n if (is_array($this->data[$field])) {\n foreach ($this->data[$field] as $value) {\n if (!filter_var($value, FILTER_VALIDATE_EMAIL)) {\n $this->addError($field, \"$field must be a valid email address\");\n }\n }\n } else {\n if (!filter_var($this->data[$field], FILTER_VALIDATE_EMAIL)) {\n $this->addError($field, \"$field must be a valid email address\");\n }\n }\n\n break;\n\n case 'integer':\n if (!filter_var($this->data[$field], FILTER_VALIDATE_INT)) {\n $this->addError($field, \"$field must be integer\");\n }\n\n break;\n }\n }\n\n return count($this->errors[\"data\"]) > 0 ? $this->errors : [];\n }", "title": "" }, { "docid": "852da51d674352bdff04dc09ec95eecb", "score": "0.7020091", "text": "public function getValidationErrors(): array\n {\n return $this->errors;\n }", "title": "" }, { "docid": "37ea1960f47e1dd15a7a21a2d05569bd", "score": "0.70064443", "text": "public function getValidationErrors() {\n\t\treturn $this->validationErrors;\n\t}", "title": "" }, { "docid": "81a05d2c7742b6cec82946b6d66fc2f7", "score": "0.7001114", "text": "public function validationResults() {\n return $this->Validation->results();\n }", "title": "" }, { "docid": "b3bd301e591c6b858405b767238439ea", "score": "0.69997644", "text": "protected function getValidationRules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "a0c817c18fa2ee2428ca1f088bbead60", "score": "0.6995412", "text": "public function getValidationErrors()\r\n {\r\n return $this->validationErrors;\r\n }", "title": "" }, { "docid": "815e3d7bb3f68f3e3c86b73850eb2bcc", "score": "0.6987054", "text": "protected function getValidationErrors()\n {\n return $this->validation->errors();\n }", "title": "" }, { "docid": "815e3d7bb3f68f3e3c86b73850eb2bcc", "score": "0.6987054", "text": "protected function getValidationErrors()\n {\n return $this->validation->errors();\n }", "title": "" }, { "docid": "68e52daca6ec42f3947e5aae82e5742c", "score": "0.6985808", "text": "protected function getValidationErrors() {\n return $this->validationErrors;\n }", "title": "" }, { "docid": "dce090f873122b14af31de7f1600f949", "score": "0.6967501", "text": "protected function getValidationRules(): array\n {\n return $this->rules;\n }", "title": "" }, { "docid": "0f138c8bc892db13c06946a456733456", "score": "0.6965197", "text": "public function runValidation(){\r\n $keys = 0;\r\n foreach($this->fields as $key => $value){\r\n foreach($value as $validators){\r\n $result[] = call_user_func_array(array($this, $validators), [$this->values[$keys],$key]); \r\n }\r\n $keys++;\r\n }\r\n //add errors to error array\r\n $this->errors = $result;\r\n \r\n //returns false when array contains an error array\r\n $bool = true;\r\n foreach($result as $validated){\r\n if(is_array($validated)) {\r\n $bool = false;\r\n }\r\n }\r\n return $bool;\r\n }", "title": "" }, { "docid": "cf5a734128a22b84448f3bdc948d41af", "score": "0.6964657", "text": "public function getErrors()\n {\n return $this->validator->errors();\n }", "title": "" }, { "docid": "5539795e041c041d3268ceb8f744d38e", "score": "0.69423985", "text": "public function validate()\n {\n foreach ($this->_validators as $validator) {\n $validator->validate($this->_fields);\n }\n }", "title": "" }, { "docid": "6af56d1f809267641fd9bde33e8e9aeb", "score": "0.69205934", "text": "public function validate()\n {\n foreach ($this->rules as $name => $fieldRules) {\n foreach ($fieldRules as $rule) {\n // Split a string by a caracter ':' if has options\n $exploded = explode(':', $rule);\n // Use 1st exploded name as a $ruleName\n $ruleName = $exploded[0];\n\n switch ($ruleName) {\n case \"required\":\n $this->required($name);\n break;\n case 'email':\n $this->email($name);\n break;\n case 'minimum':\n $this->minimum($name, $exploded[1]);\n break;\n case 'maximum':\n $this->maximum($name, $exploded[1]);\n break;\n case 'between':\n $this->between($name, $exploded[1], $exploded[2]);\n break;\n case 'exist':\n $this->exist($name);\n break;\n case 'unique':\n $this->unique($name, $exploded[1]);\n break;\n case 'same':\n $this->same($name, $exploded[1]);\n break;\n case 'file':\n $this->file($name, $exploded[1]);\n break;\n case 'size':\n $this->size($name, $exploded[1]);\n break;\n case 'in':\n $this->in($name, $exploded[1]);\n break;\n default:\n throw new Exception(\"Rule $ruleName not found\");\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "2c4dfc5b0ac0e41953e33ee670c9e51f", "score": "0.69032335", "text": "public function getValidationErrors()\n {\n return [];\n }", "title": "" }, { "docid": "9a3faa22f7d90fd0bcce2ea7b0de224f", "score": "0.6890901", "text": "public function getAllErrors()\n {\n return $this->getInvalidErrors() + $this->getMissingErrors();\n }", "title": "" }, { "docid": "69d1a876cc570fe5958db9a8a69c594e", "score": "0.68763864", "text": "public function _getValidationErrors()\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if ([] !== ($vs = $this->getAction())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_ACTION, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getAssessor())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ASSESSOR] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDate())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DATE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDescription())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DESCRIPTION] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getFinding())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_FINDING, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getInvestigations())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_INVESTIGATIONS, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getPatient())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PATIENT] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getPlan())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_PLAN, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getPrevious())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PREVIOUS] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getProblem())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_PROBLEM, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getPrognosis())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PROGNOSIS] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getProtocol())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PROTOCOL] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getResolved())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_RESOLVED, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getRuledOut())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_RULED_OUT, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getStatus())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_STATUS] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSummary())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUMMARY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getTriggerCodeableConcept())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TRIGGER_CODEABLE_CONCEPT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getTriggerReference())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TRIGGER_REFERENCE] = $fieldErrs;\n }\n }\n if (isset($validationRules[self::FIELD_ACTION])) {\n $v = $this->getAction();\n foreach($validationRules[self::FIELD_ACTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_ACTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ACTION])) {\n $errs[self::FIELD_ACTION] = [];\n }\n $errs[self::FIELD_ACTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ASSESSOR])) {\n $v = $this->getAssessor();\n foreach($validationRules[self::FIELD_ASSESSOR] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_ASSESSOR, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ASSESSOR])) {\n $errs[self::FIELD_ASSESSOR] = [];\n }\n $errs[self::FIELD_ASSESSOR][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DATE])) {\n $v = $this->getDate();\n foreach($validationRules[self::FIELD_DATE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_DATE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DATE])) {\n $errs[self::FIELD_DATE] = [];\n }\n $errs[self::FIELD_DATE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DESCRIPTION])) {\n $v = $this->getDescription();\n foreach($validationRules[self::FIELD_DESCRIPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_DESCRIPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DESCRIPTION])) {\n $errs[self::FIELD_DESCRIPTION] = [];\n }\n $errs[self::FIELD_DESCRIPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_FINDING])) {\n $v = $this->getFinding();\n foreach($validationRules[self::FIELD_FINDING] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_FINDING, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_FINDING])) {\n $errs[self::FIELD_FINDING] = [];\n }\n $errs[self::FIELD_FINDING][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_INVESTIGATIONS])) {\n $v = $this->getInvestigations();\n foreach($validationRules[self::FIELD_INVESTIGATIONS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_INVESTIGATIONS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_INVESTIGATIONS])) {\n $errs[self::FIELD_INVESTIGATIONS] = [];\n }\n $errs[self::FIELD_INVESTIGATIONS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PATIENT])) {\n $v = $this->getPatient();\n foreach($validationRules[self::FIELD_PATIENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_PATIENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PATIENT])) {\n $errs[self::FIELD_PATIENT] = [];\n }\n $errs[self::FIELD_PATIENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PLAN])) {\n $v = $this->getPlan();\n foreach($validationRules[self::FIELD_PLAN] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_PLAN, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PLAN])) {\n $errs[self::FIELD_PLAN] = [];\n }\n $errs[self::FIELD_PLAN][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PREVIOUS])) {\n $v = $this->getPrevious();\n foreach($validationRules[self::FIELD_PREVIOUS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_PREVIOUS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PREVIOUS])) {\n $errs[self::FIELD_PREVIOUS] = [];\n }\n $errs[self::FIELD_PREVIOUS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PROBLEM])) {\n $v = $this->getProblem();\n foreach($validationRules[self::FIELD_PROBLEM] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_PROBLEM, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PROBLEM])) {\n $errs[self::FIELD_PROBLEM] = [];\n }\n $errs[self::FIELD_PROBLEM][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PROGNOSIS])) {\n $v = $this->getPrognosis();\n foreach($validationRules[self::FIELD_PROGNOSIS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_PROGNOSIS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PROGNOSIS])) {\n $errs[self::FIELD_PROGNOSIS] = [];\n }\n $errs[self::FIELD_PROGNOSIS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PROTOCOL])) {\n $v = $this->getProtocol();\n foreach($validationRules[self::FIELD_PROTOCOL] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_PROTOCOL, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PROTOCOL])) {\n $errs[self::FIELD_PROTOCOL] = [];\n }\n $errs[self::FIELD_PROTOCOL][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_RESOLVED])) {\n $v = $this->getResolved();\n foreach($validationRules[self::FIELD_RESOLVED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_RESOLVED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_RESOLVED])) {\n $errs[self::FIELD_RESOLVED] = [];\n }\n $errs[self::FIELD_RESOLVED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_RULED_OUT])) {\n $v = $this->getRuledOut();\n foreach($validationRules[self::FIELD_RULED_OUT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_RULED_OUT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_RULED_OUT])) {\n $errs[self::FIELD_RULED_OUT] = [];\n }\n $errs[self::FIELD_RULED_OUT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_STATUS])) {\n $v = $this->getStatus();\n foreach($validationRules[self::FIELD_STATUS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_STATUS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_STATUS])) {\n $errs[self::FIELD_STATUS] = [];\n }\n $errs[self::FIELD_STATUS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUMMARY])) {\n $v = $this->getSummary();\n foreach($validationRules[self::FIELD_SUMMARY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_SUMMARY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUMMARY])) {\n $errs[self::FIELD_SUMMARY] = [];\n }\n $errs[self::FIELD_SUMMARY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TRIGGER_CODEABLE_CONCEPT])) {\n $v = $this->getTriggerCodeableConcept();\n foreach($validationRules[self::FIELD_TRIGGER_CODEABLE_CONCEPT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_TRIGGER_CODEABLE_CONCEPT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TRIGGER_CODEABLE_CONCEPT])) {\n $errs[self::FIELD_TRIGGER_CODEABLE_CONCEPT] = [];\n }\n $errs[self::FIELD_TRIGGER_CODEABLE_CONCEPT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TRIGGER_REFERENCE])) {\n $v = $this->getTriggerReference();\n foreach($validationRules[self::FIELD_TRIGGER_REFERENCE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_IMPRESSION, self::FIELD_TRIGGER_REFERENCE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TRIGGER_REFERENCE])) {\n $errs[self::FIELD_TRIGGER_REFERENCE] = [];\n }\n $errs[self::FIELD_TRIGGER_REFERENCE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONTAINED])) {\n $v = $this->getContained();\n foreach($validationRules[self::FIELD_CONTAINED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_CONTAINED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONTAINED])) {\n $errs[self::FIELD_CONTAINED] = [];\n }\n $errs[self::FIELD_CONTAINED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n $v = $this->getModifierExtension();\n foreach($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_MODIFIER_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n $errs[self::FIELD_MODIFIER_EXTENSION] = [];\n }\n $errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TEXT])) {\n $v = $this->getText();\n foreach($validationRules[self::FIELD_TEXT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_TEXT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TEXT])) {\n $errs[self::FIELD_TEXT] = [];\n }\n $errs[self::FIELD_TEXT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IMPLICIT_RULES])) {\n $v = $this->getImplicitRules();\n foreach($validationRules[self::FIELD_IMPLICIT_RULES] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_IMPLICIT_RULES, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IMPLICIT_RULES])) {\n $errs[self::FIELD_IMPLICIT_RULES] = [];\n }\n $errs[self::FIELD_IMPLICIT_RULES][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_LANGUAGE])) {\n $v = $this->getLanguage();\n foreach($validationRules[self::FIELD_LANGUAGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_LANGUAGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_LANGUAGE])) {\n $errs[self::FIELD_LANGUAGE] = [];\n }\n $errs[self::FIELD_LANGUAGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_META])) {\n $v = $this->getMeta();\n foreach($validationRules[self::FIELD_META] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_META, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_META])) {\n $errs[self::FIELD_META] = [];\n }\n $errs[self::FIELD_META][$rule] = $err;\n }\n }\n }\n return $errs;\n }", "title": "" }, { "docid": "3ff0a5123fdbc85e46b67d21d8381513", "score": "0.6867607", "text": "public function _getValidationErrors(): array\n\t{\n\t\t$errs = parent::_getValidationErrors();\n\t\t$validationRules = $this->_getValidationRules();\n\t\tif ([] !== ($vs = $this->getIdentifier())) {\n\t\t\tforeach ($vs as $i => $v) {\n\t\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t\t$errs[sprintf('%s.%d', self::FIELD_IDENTIFIER, $i)] = $fieldErrs;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getOnset())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_ONSET] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getRecordedDate())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_RECORDED_DATE] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getRecorder())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_RECORDER] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getPatient())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_PATIENT] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getReporter())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_REPORTER] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getSubstance())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_SUBSTANCE] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getStatus())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_STATUS] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getCriticality())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_CRITICALITY] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getType())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_TYPE] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getCategory())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_CATEGORY] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getLastOccurence())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_LAST_OCCURENCE] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif (null !== ($v = $this->getNote())) {\n\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t$errs[self::FIELD_NOTE] = $fieldErrs;\n\t\t\t}\n\t\t}\n\t\tif ([] !== ($vs = $this->getReaction())) {\n\t\t\tforeach ($vs as $i => $v) {\n\t\t\t\tif ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n\t\t\t\t\t$errs[sprintf('%s.%d', self::FIELD_REACTION, $i)] = $fieldErrs;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_IDENTIFIER])) {\n\t\t\t$v = $this->getIdentifier();\n\t\t\tforeach ($validationRules[self::FIELD_IDENTIFIER] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_IDENTIFIER,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_IDENTIFIER])) {\n\t\t\t\t\t\t$errs[self::FIELD_IDENTIFIER] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_IDENTIFIER][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_ONSET])) {\n\t\t\t$v = $this->getOnset();\n\t\t\tforeach ($validationRules[self::FIELD_ONSET] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_ONSET,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_ONSET])) {\n\t\t\t\t\t\t$errs[self::FIELD_ONSET] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_ONSET][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_RECORDED_DATE])) {\n\t\t\t$v = $this->getRecordedDate();\n\t\t\tforeach ($validationRules[self::FIELD_RECORDED_DATE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_RECORDED_DATE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_RECORDED_DATE])) {\n\t\t\t\t\t\t$errs[self::FIELD_RECORDED_DATE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_RECORDED_DATE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_RECORDER])) {\n\t\t\t$v = $this->getRecorder();\n\t\t\tforeach ($validationRules[self::FIELD_RECORDER] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_RECORDER,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_RECORDER])) {\n\t\t\t\t\t\t$errs[self::FIELD_RECORDER] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_RECORDER][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_PATIENT])) {\n\t\t\t$v = $this->getPatient();\n\t\t\tforeach ($validationRules[self::FIELD_PATIENT] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_PATIENT,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_PATIENT])) {\n\t\t\t\t\t\t$errs[self::FIELD_PATIENT] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_PATIENT][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_REPORTER])) {\n\t\t\t$v = $this->getReporter();\n\t\t\tforeach ($validationRules[self::FIELD_REPORTER] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_REPORTER,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_REPORTER])) {\n\t\t\t\t\t\t$errs[self::FIELD_REPORTER] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_REPORTER][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_SUBSTANCE])) {\n\t\t\t$v = $this->getSubstance();\n\t\t\tforeach ($validationRules[self::FIELD_SUBSTANCE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_SUBSTANCE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_SUBSTANCE])) {\n\t\t\t\t\t\t$errs[self::FIELD_SUBSTANCE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_SUBSTANCE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_STATUS])) {\n\t\t\t$v = $this->getStatus();\n\t\t\tforeach ($validationRules[self::FIELD_STATUS] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_STATUS,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_STATUS])) {\n\t\t\t\t\t\t$errs[self::FIELD_STATUS] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_STATUS][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_CRITICALITY])) {\n\t\t\t$v = $this->getCriticality();\n\t\t\tforeach ($validationRules[self::FIELD_CRITICALITY] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_CRITICALITY,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_CRITICALITY])) {\n\t\t\t\t\t\t$errs[self::FIELD_CRITICALITY] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_CRITICALITY][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_TYPE])) {\n\t\t\t$v = $this->getType();\n\t\t\tforeach ($validationRules[self::FIELD_TYPE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_TYPE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_TYPE])) {\n\t\t\t\t\t\t$errs[self::FIELD_TYPE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_TYPE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_CATEGORY])) {\n\t\t\t$v = $this->getCategory();\n\t\t\tforeach ($validationRules[self::FIELD_CATEGORY] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_CATEGORY,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_CATEGORY])) {\n\t\t\t\t\t\t$errs[self::FIELD_CATEGORY] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_CATEGORY][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_LAST_OCCURENCE])) {\n\t\t\t$v = $this->getLastOccurence();\n\t\t\tforeach ($validationRules[self::FIELD_LAST_OCCURENCE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_LAST_OCCURENCE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_LAST_OCCURENCE])) {\n\t\t\t\t\t\t$errs[self::FIELD_LAST_OCCURENCE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_LAST_OCCURENCE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_NOTE])) {\n\t\t\t$v = $this->getNote();\n\t\t\tforeach ($validationRules[self::FIELD_NOTE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_NOTE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_NOTE])) {\n\t\t\t\t\t\t$errs[self::FIELD_NOTE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_NOTE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_REACTION])) {\n\t\t\t$v = $this->getReaction();\n\t\t\tforeach ($validationRules[self::FIELD_REACTION] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_ALLERGY_INTOLERANCE,\n\t\t\t\t\tself::FIELD_REACTION,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_REACTION])) {\n\t\t\t\t\t\t$errs[self::FIELD_REACTION] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_REACTION][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_TEXT])) {\n\t\t\t$v = $this->getText();\n\t\t\tforeach ($validationRules[self::FIELD_TEXT] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE,\n\t\t\t\t\tself::FIELD_TEXT,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_TEXT])) {\n\t\t\t\t\t\t$errs[self::FIELD_TEXT] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_TEXT][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_CONTAINED])) {\n\t\t\t$v = $this->getContained();\n\t\t\tforeach ($validationRules[self::FIELD_CONTAINED] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE,\n\t\t\t\t\tself::FIELD_CONTAINED,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_CONTAINED])) {\n\t\t\t\t\t\t$errs[self::FIELD_CONTAINED] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_CONTAINED][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_EXTENSION])) {\n\t\t\t$v = $this->getExtension();\n\t\t\tforeach ($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE,\n\t\t\t\t\tself::FIELD_EXTENSION,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_EXTENSION])) {\n\t\t\t\t\t\t$errs[self::FIELD_EXTENSION] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_EXTENSION][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n\t\t\t$v = $this->getModifierExtension();\n\t\t\tforeach ($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE,\n\t\t\t\t\tself::FIELD_MODIFIER_EXTENSION,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n\t\t\t\t\t\t$errs[self::FIELD_MODIFIER_EXTENSION] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_ID])) {\n\t\t\t$v = $this->getId();\n\t\t\tforeach ($validationRules[self::FIELD_ID] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_RESOURCE,\n\t\t\t\t\tself::FIELD_ID,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_ID])) {\n\t\t\t\t\t\t$errs[self::FIELD_ID] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_ID][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_META])) {\n\t\t\t$v = $this->getMeta();\n\t\t\tforeach ($validationRules[self::FIELD_META] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_RESOURCE,\n\t\t\t\t\tself::FIELD_META,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_META])) {\n\t\t\t\t\t\t$errs[self::FIELD_META] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_META][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_IMPLICIT_RULES])) {\n\t\t\t$v = $this->getImplicitRules();\n\t\t\tforeach ($validationRules[self::FIELD_IMPLICIT_RULES] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_RESOURCE,\n\t\t\t\t\tself::FIELD_IMPLICIT_RULES,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_IMPLICIT_RULES])) {\n\t\t\t\t\t\t$errs[self::FIELD_IMPLICIT_RULES] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_IMPLICIT_RULES][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($validationRules[self::FIELD_LANGUAGE])) {\n\t\t\t$v = $this->getLanguage();\n\t\t\tforeach ($validationRules[self::FIELD_LANGUAGE] as $rule => $constraint) {\n\t\t\t\t$err = $this->_performValidation(\n\t\t\t\t\tPHPFHIRConstants::TYPE_NAME_RESOURCE,\n\t\t\t\t\tself::FIELD_LANGUAGE,\n\t\t\t\t\t$rule,\n\t\t\t\t\t$constraint,\n\t\t\t\t\t$v,\n\t\t\t\t);\n\t\t\t\tif (null !== $err) {\n\t\t\t\t\tif (!isset($errs[self::FIELD_LANGUAGE])) {\n\t\t\t\t\t\t$errs[self::FIELD_LANGUAGE] = [];\n\t\t\t\t\t}\n\t\t\t\t\t$errs[self::FIELD_LANGUAGE][$rule] = $err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $errs;\n\t}", "title": "" }, { "docid": "21d9bf7e489c5fbc043a86abc8a156a5", "score": "0.6851165", "text": "public function getErrors() {\n\t\treturn $this->_inputValidator->getErrors();\n\t}", "title": "" }, { "docid": "d46cfef698b44a19c1b1669fca6bd4b1", "score": "0.68395656", "text": "public function getValidationRules(): array;", "title": "" }, { "docid": "e9984273544638132157495bae24456f", "score": "0.68384296", "text": "public static function getValidationErrors()\n {\n return self::$validationErrors;\n }", "title": "" }, { "docid": "3f1040ece4559991eca6cc8f82abc2a2", "score": "0.68296397", "text": "public function getErrors(){\n\t\treturn $this->validationErrors;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "6c22cb8ec6ef70ac4c8dba17d4f1fb0e", "score": "0.68295205", "text": "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "title": "" }, { "docid": "c34a605817a3cd0b10b2d1d4f9be5efc", "score": "0.68135107", "text": "public function getValidationFailures ()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "c34a605817a3cd0b10b2d1d4f9be5efc", "score": "0.68135107", "text": "public function getValidationFailures ()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "c34a605817a3cd0b10b2d1d4f9be5efc", "score": "0.68135107", "text": "public function getValidationFailures ()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4be08ec92c5d501aeec8d36c1bdff851", "score": "0.6811219", "text": "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4be08ec92c5d501aeec8d36c1bdff851", "score": "0.6811219", "text": "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4be08ec92c5d501aeec8d36c1bdff851", "score": "0.6811219", "text": "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4be08ec92c5d501aeec8d36c1bdff851", "score": "0.6811219", "text": "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4be08ec92c5d501aeec8d36c1bdff851", "score": "0.6811219", "text": "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4be08ec92c5d501aeec8d36c1bdff851", "score": "0.6811219", "text": "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4be08ec92c5d501aeec8d36c1bdff851", "score": "0.6811219", "text": "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4be08ec92c5d501aeec8d36c1bdff851", "score": "0.6811219", "text": "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4be08ec92c5d501aeec8d36c1bdff851", "score": "0.6811219", "text": "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4be08ec92c5d501aeec8d36c1bdff851", "score": "0.6811219", "text": "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4be08ec92c5d501aeec8d36c1bdff851", "score": "0.6811219", "text": "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "title": "" }, { "docid": "4fbf033abdee6ef0f3f5b067b022883d", "score": "0.68026215", "text": "public function rules() {\n\t\treturn $this->rules;\n\t}", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.67965996", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "113bb3088ae7444b73dcf410e2dcd19f", "score": "0.6796501", "text": "public function rules(): array\n {\n return $this->form->getValidators();\n }", "title": "" }, { "docid": "d217d5266e09d997ad7a91379d842ad9", "score": "0.67948544", "text": "public function getErrors(): array\n {\n return \\array_map([ValidationErrorHandler::class, 'arrayAll'], $this->errors);\n }", "title": "" }, { "docid": "6983e707bf6bfbd9c4a0c6e1eb2c3e30", "score": "0.67852694", "text": "public function _getValidationErrors()\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if (null !== ($v = $this->getAccident())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ACCIDENT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getBillablePeriod())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_BILLABLE_PERIOD] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getCareTeam())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_CARE_TEAM, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getCreated())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_CREATED] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getDiagnosis())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_DIAGNOSIS, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getEmploymentImpacted())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_EMPLOYMENT_IMPACTED] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getEnterer())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ENTERER] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getFacility())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_FACILITY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getFundsReserve())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_FUNDS_RESERVE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getHospitalization())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_HOSPITALIZATION] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getIdentifier())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_IDENTIFIER, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getInformation())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_INFORMATION, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getInsurance())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_INSURANCE, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getInsurer())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_INSURER] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getItem())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_ITEM, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getOrganization())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ORGANIZATION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getOriginalPrescription())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ORIGINAL_PRESCRIPTION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPatient())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PATIENT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPayee())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PAYEE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPrescription())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PRESCRIPTION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPriority())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PRIORITY] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getProcedure())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_PROCEDURE, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getProvider())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PROVIDER] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getReferral())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_REFERRAL] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getRelated())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_RELATED, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getStatus())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_STATUS] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getSubType())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_SUB_TYPE, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getTotal())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TOTAL] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getType())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TYPE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getUse())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_USE] = $fieldErrs;\n }\n }\n if (isset($validationRules[self::FIELD_ACCIDENT])) {\n $v = $this->getAccident();\n foreach($validationRules[self::FIELD_ACCIDENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ACCIDENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ACCIDENT])) {\n $errs[self::FIELD_ACCIDENT] = [];\n }\n $errs[self::FIELD_ACCIDENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_BILLABLE_PERIOD])) {\n $v = $this->getBillablePeriod();\n foreach($validationRules[self::FIELD_BILLABLE_PERIOD] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_BILLABLE_PERIOD, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_BILLABLE_PERIOD])) {\n $errs[self::FIELD_BILLABLE_PERIOD] = [];\n }\n $errs[self::FIELD_BILLABLE_PERIOD][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CARE_TEAM])) {\n $v = $this->getCareTeam();\n foreach($validationRules[self::FIELD_CARE_TEAM] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_CARE_TEAM, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CARE_TEAM])) {\n $errs[self::FIELD_CARE_TEAM] = [];\n }\n $errs[self::FIELD_CARE_TEAM][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CREATED])) {\n $v = $this->getCreated();\n foreach($validationRules[self::FIELD_CREATED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_CREATED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CREATED])) {\n $errs[self::FIELD_CREATED] = [];\n }\n $errs[self::FIELD_CREATED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DIAGNOSIS])) {\n $v = $this->getDiagnosis();\n foreach($validationRules[self::FIELD_DIAGNOSIS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_DIAGNOSIS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DIAGNOSIS])) {\n $errs[self::FIELD_DIAGNOSIS] = [];\n }\n $errs[self::FIELD_DIAGNOSIS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EMPLOYMENT_IMPACTED])) {\n $v = $this->getEmploymentImpacted();\n foreach($validationRules[self::FIELD_EMPLOYMENT_IMPACTED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_EMPLOYMENT_IMPACTED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EMPLOYMENT_IMPACTED])) {\n $errs[self::FIELD_EMPLOYMENT_IMPACTED] = [];\n }\n $errs[self::FIELD_EMPLOYMENT_IMPACTED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ENTERER])) {\n $v = $this->getEnterer();\n foreach($validationRules[self::FIELD_ENTERER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ENTERER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ENTERER])) {\n $errs[self::FIELD_ENTERER] = [];\n }\n $errs[self::FIELD_ENTERER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_FACILITY])) {\n $v = $this->getFacility();\n foreach($validationRules[self::FIELD_FACILITY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_FACILITY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_FACILITY])) {\n $errs[self::FIELD_FACILITY] = [];\n }\n $errs[self::FIELD_FACILITY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_FUNDS_RESERVE])) {\n $v = $this->getFundsReserve();\n foreach($validationRules[self::FIELD_FUNDS_RESERVE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_FUNDS_RESERVE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_FUNDS_RESERVE])) {\n $errs[self::FIELD_FUNDS_RESERVE] = [];\n }\n $errs[self::FIELD_FUNDS_RESERVE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_HOSPITALIZATION])) {\n $v = $this->getHospitalization();\n foreach($validationRules[self::FIELD_HOSPITALIZATION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_HOSPITALIZATION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_HOSPITALIZATION])) {\n $errs[self::FIELD_HOSPITALIZATION] = [];\n }\n $errs[self::FIELD_HOSPITALIZATION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IDENTIFIER])) {\n $v = $this->getIdentifier();\n foreach($validationRules[self::FIELD_IDENTIFIER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_IDENTIFIER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IDENTIFIER])) {\n $errs[self::FIELD_IDENTIFIER] = [];\n }\n $errs[self::FIELD_IDENTIFIER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_INFORMATION])) {\n $v = $this->getInformation();\n foreach($validationRules[self::FIELD_INFORMATION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_INFORMATION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_INFORMATION])) {\n $errs[self::FIELD_INFORMATION] = [];\n }\n $errs[self::FIELD_INFORMATION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_INSURANCE])) {\n $v = $this->getInsurance();\n foreach($validationRules[self::FIELD_INSURANCE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_INSURANCE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_INSURANCE])) {\n $errs[self::FIELD_INSURANCE] = [];\n }\n $errs[self::FIELD_INSURANCE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_INSURER])) {\n $v = $this->getInsurer();\n foreach($validationRules[self::FIELD_INSURER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_INSURER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_INSURER])) {\n $errs[self::FIELD_INSURER] = [];\n }\n $errs[self::FIELD_INSURER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ITEM])) {\n $v = $this->getItem();\n foreach($validationRules[self::FIELD_ITEM] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ITEM, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ITEM])) {\n $errs[self::FIELD_ITEM] = [];\n }\n $errs[self::FIELD_ITEM][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ORGANIZATION])) {\n $v = $this->getOrganization();\n foreach($validationRules[self::FIELD_ORGANIZATION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ORGANIZATION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ORGANIZATION])) {\n $errs[self::FIELD_ORGANIZATION] = [];\n }\n $errs[self::FIELD_ORGANIZATION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ORIGINAL_PRESCRIPTION])) {\n $v = $this->getOriginalPrescription();\n foreach($validationRules[self::FIELD_ORIGINAL_PRESCRIPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_ORIGINAL_PRESCRIPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ORIGINAL_PRESCRIPTION])) {\n $errs[self::FIELD_ORIGINAL_PRESCRIPTION] = [];\n }\n $errs[self::FIELD_ORIGINAL_PRESCRIPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PATIENT])) {\n $v = $this->getPatient();\n foreach($validationRules[self::FIELD_PATIENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PATIENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PATIENT])) {\n $errs[self::FIELD_PATIENT] = [];\n }\n $errs[self::FIELD_PATIENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PAYEE])) {\n $v = $this->getPayee();\n foreach($validationRules[self::FIELD_PAYEE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PAYEE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PAYEE])) {\n $errs[self::FIELD_PAYEE] = [];\n }\n $errs[self::FIELD_PAYEE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PRESCRIPTION])) {\n $v = $this->getPrescription();\n foreach($validationRules[self::FIELD_PRESCRIPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PRESCRIPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PRESCRIPTION])) {\n $errs[self::FIELD_PRESCRIPTION] = [];\n }\n $errs[self::FIELD_PRESCRIPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PRIORITY])) {\n $v = $this->getPriority();\n foreach($validationRules[self::FIELD_PRIORITY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PRIORITY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PRIORITY])) {\n $errs[self::FIELD_PRIORITY] = [];\n }\n $errs[self::FIELD_PRIORITY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PROCEDURE])) {\n $v = $this->getProcedure();\n foreach($validationRules[self::FIELD_PROCEDURE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PROCEDURE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PROCEDURE])) {\n $errs[self::FIELD_PROCEDURE] = [];\n }\n $errs[self::FIELD_PROCEDURE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PROVIDER])) {\n $v = $this->getProvider();\n foreach($validationRules[self::FIELD_PROVIDER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_PROVIDER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PROVIDER])) {\n $errs[self::FIELD_PROVIDER] = [];\n }\n $errs[self::FIELD_PROVIDER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_REFERRAL])) {\n $v = $this->getReferral();\n foreach($validationRules[self::FIELD_REFERRAL] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_REFERRAL, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_REFERRAL])) {\n $errs[self::FIELD_REFERRAL] = [];\n }\n $errs[self::FIELD_REFERRAL][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_RELATED])) {\n $v = $this->getRelated();\n foreach($validationRules[self::FIELD_RELATED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_RELATED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_RELATED])) {\n $errs[self::FIELD_RELATED] = [];\n }\n $errs[self::FIELD_RELATED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_STATUS])) {\n $v = $this->getStatus();\n foreach($validationRules[self::FIELD_STATUS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_STATUS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_STATUS])) {\n $errs[self::FIELD_STATUS] = [];\n }\n $errs[self::FIELD_STATUS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUB_TYPE])) {\n $v = $this->getSubType();\n foreach($validationRules[self::FIELD_SUB_TYPE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_SUB_TYPE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUB_TYPE])) {\n $errs[self::FIELD_SUB_TYPE] = [];\n }\n $errs[self::FIELD_SUB_TYPE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TOTAL])) {\n $v = $this->getTotal();\n foreach($validationRules[self::FIELD_TOTAL] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_TOTAL, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TOTAL])) {\n $errs[self::FIELD_TOTAL] = [];\n }\n $errs[self::FIELD_TOTAL][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TYPE])) {\n $v = $this->getType();\n foreach($validationRules[self::FIELD_TYPE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_TYPE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TYPE])) {\n $errs[self::FIELD_TYPE] = [];\n }\n $errs[self::FIELD_TYPE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_USE])) {\n $v = $this->getUse();\n foreach($validationRules[self::FIELD_USE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLAIM, self::FIELD_USE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_USE])) {\n $errs[self::FIELD_USE] = [];\n }\n $errs[self::FIELD_USE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONTAINED])) {\n $v = $this->getContained();\n foreach($validationRules[self::FIELD_CONTAINED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_CONTAINED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONTAINED])) {\n $errs[self::FIELD_CONTAINED] = [];\n }\n $errs[self::FIELD_CONTAINED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n $v = $this->getModifierExtension();\n foreach($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_MODIFIER_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n $errs[self::FIELD_MODIFIER_EXTENSION] = [];\n }\n $errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TEXT])) {\n $v = $this->getText();\n foreach($validationRules[self::FIELD_TEXT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_TEXT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TEXT])) {\n $errs[self::FIELD_TEXT] = [];\n }\n $errs[self::FIELD_TEXT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IMPLICIT_RULES])) {\n $v = $this->getImplicitRules();\n foreach($validationRules[self::FIELD_IMPLICIT_RULES] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_IMPLICIT_RULES, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IMPLICIT_RULES])) {\n $errs[self::FIELD_IMPLICIT_RULES] = [];\n }\n $errs[self::FIELD_IMPLICIT_RULES][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_LANGUAGE])) {\n $v = $this->getLanguage();\n foreach($validationRules[self::FIELD_LANGUAGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_LANGUAGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_LANGUAGE])) {\n $errs[self::FIELD_LANGUAGE] = [];\n }\n $errs[self::FIELD_LANGUAGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_META])) {\n $v = $this->getMeta();\n foreach($validationRules[self::FIELD_META] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_META, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_META])) {\n $errs[self::FIELD_META] = [];\n }\n $errs[self::FIELD_META][$rule] = $err;\n }\n }\n }\n return $errs;\n }", "title": "" }, { "docid": "71898638a902cf7e7072d9266e47f3df", "score": "0.6778018", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "d963fdd12236025cca9191b2d2027632", "score": "0.67686903", "text": "public function errors()\n {\n return $this->validationErrors;\n }", "title": "" }, { "docid": "94b2adf5ec9dbb3244f9a4066e785379", "score": "0.6754208", "text": "public function run()\n {\n // If no validation rules\n if (empty($this->rules)) {\n return false;\n }\n\n // Cycle apply rules for each field\n foreach ($this->rules as $r) {\n // Check, if we have field for this rule...\n if (preg_match('/([[:word:].]+)\\[([[:word:].]+)\\]/i', $r['field'], $field)) {\n\n // if we have field for rule - check rule, else - set error text\n \tif (isset($this->fields[$field[1]][$field[2]])) {\n $this->check($this->fields[$field[1]][$field[2]], $r);\n }\n else {\n foreach ($r['rule'] as $rule) {\n if ($rule === 'required') {\n $this->setError($r['label'], 'required', $r['field']);\n break;\n }\n }\n }\n }\n else {\n\n // if we have field for rule - check rule, else - set error text\n \tif (isset($this->fields[$r['field']])) {\n $this->check($this->fields[$r['field']], $r);\n }\n else {\n foreach ($r['rule'] as $rule) {\n if ($rule === 'required') {\n $this->setError($r['label'], 'required', $r['field']);\n break;\n }\n }\n }\n }\n }\n\n // if has errors - return false\n return !(sizeof($this->errors));\n }", "title": "" }, { "docid": "101f3631a402807b8a10fded8f2ed3a4", "score": "0.674327", "text": "public function rules()\n {\n return $this->rules;\n\n }", "title": "" }, { "docid": "ec5d08f96b99d33fed46b639b84696c7", "score": "0.6733738", "text": "public function validationRules()\n {\n return [];\n }", "title": "" }, { "docid": "932c28e0f07c82967e333668570e90df", "score": "0.6727075", "text": "public function getErrors() : array {\n return $this->validationError;\n }", "title": "" }, { "docid": "9790d81a7d6561f2d20222cb80b0e14f", "score": "0.6724898", "text": "public static function getFormValidationRules()\n {\n $response = static::jsonDecode(static::sendRequest('/api/get-form-validation-rules'));\n\n return is_array($response) ? $response : [];\n }", "title": "" }, { "docid": "d04a249d08672e78eefcbf2b5d3dda78", "score": "0.6722914", "text": "public function defineValidationRules()\n {\n return [];\n }", "title": "" }, { "docid": "cf5bc0aa28bac489e9384f50c63ec48e", "score": "0.67051893", "text": "public function rules()\n {\n $rules['name'] = $this->validateName();\n $rules['location'] = $this->validateLocation();\n $rules['direction'] = $this->validateDirection();\n $rules['price_user_night'] = $this->validatePriceUserNight();\n $rules['max_users_house'] = $this->validateMaxUsersHouse();\n $rules['description'] = $this->validateDescription();\n $rules['features'] = $this->validateFeatures();\n\n return $rules;\n\n }", "title": "" }, { "docid": "d160f92582a87b634e002c8ba50987f1", "score": "0.6705173", "text": "public function getValidationErrors(){\n return$this->validationErrors;\n }", "title": "" }, { "docid": "132f4786bda6b036a1d4628f1a30c622", "score": "0.66837156", "text": "public function _getValidationErrors(): array\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if (null !== ($v = $this->getDiseaseSymptomProcedure())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DISEASE_SYMPTOM_PROCEDURE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDiseaseStatus())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DISEASE_STATUS] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getComorbidity())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_COMORBIDITY, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getIntendedEffect())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_INTENDED_EFFECT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDurationRange())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DURATION_RANGE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDurationString())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DURATION_STRING] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getUndesirableEffect())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_UNDESIRABLE_EFFECT, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getOtherTherapy())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_OTHER_THERAPY, $i)] = $fieldErrs;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DISEASE_SYMPTOM_PROCEDURE])) {\n $v = $this->getDiseaseSymptomProcedure();\n foreach($validationRules[self::FIELD_DISEASE_SYMPTOM_PROCEDURE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_USE_DEFINITION_DOT_INDICATION, self::FIELD_DISEASE_SYMPTOM_PROCEDURE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DISEASE_SYMPTOM_PROCEDURE])) {\n $errs[self::FIELD_DISEASE_SYMPTOM_PROCEDURE] = [];\n }\n $errs[self::FIELD_DISEASE_SYMPTOM_PROCEDURE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DISEASE_STATUS])) {\n $v = $this->getDiseaseStatus();\n foreach($validationRules[self::FIELD_DISEASE_STATUS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_USE_DEFINITION_DOT_INDICATION, self::FIELD_DISEASE_STATUS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DISEASE_STATUS])) {\n $errs[self::FIELD_DISEASE_STATUS] = [];\n }\n $errs[self::FIELD_DISEASE_STATUS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_COMORBIDITY])) {\n $v = $this->getComorbidity();\n foreach($validationRules[self::FIELD_COMORBIDITY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_USE_DEFINITION_DOT_INDICATION, self::FIELD_COMORBIDITY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_COMORBIDITY])) {\n $errs[self::FIELD_COMORBIDITY] = [];\n }\n $errs[self::FIELD_COMORBIDITY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_INTENDED_EFFECT])) {\n $v = $this->getIntendedEffect();\n foreach($validationRules[self::FIELD_INTENDED_EFFECT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_USE_DEFINITION_DOT_INDICATION, self::FIELD_INTENDED_EFFECT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_INTENDED_EFFECT])) {\n $errs[self::FIELD_INTENDED_EFFECT] = [];\n }\n $errs[self::FIELD_INTENDED_EFFECT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DURATION_RANGE])) {\n $v = $this->getDurationRange();\n foreach($validationRules[self::FIELD_DURATION_RANGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_USE_DEFINITION_DOT_INDICATION, self::FIELD_DURATION_RANGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DURATION_RANGE])) {\n $errs[self::FIELD_DURATION_RANGE] = [];\n }\n $errs[self::FIELD_DURATION_RANGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DURATION_STRING])) {\n $v = $this->getDurationString();\n foreach($validationRules[self::FIELD_DURATION_STRING] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_USE_DEFINITION_DOT_INDICATION, self::FIELD_DURATION_STRING, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DURATION_STRING])) {\n $errs[self::FIELD_DURATION_STRING] = [];\n }\n $errs[self::FIELD_DURATION_STRING][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_UNDESIRABLE_EFFECT])) {\n $v = $this->getUndesirableEffect();\n foreach($validationRules[self::FIELD_UNDESIRABLE_EFFECT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_USE_DEFINITION_DOT_INDICATION, self::FIELD_UNDESIRABLE_EFFECT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_UNDESIRABLE_EFFECT])) {\n $errs[self::FIELD_UNDESIRABLE_EFFECT] = [];\n }\n $errs[self::FIELD_UNDESIRABLE_EFFECT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_OTHER_THERAPY])) {\n $v = $this->getOtherTherapy();\n foreach($validationRules[self::FIELD_OTHER_THERAPY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_CLINICAL_USE_DEFINITION_DOT_INDICATION, self::FIELD_OTHER_THERAPY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_OTHER_THERAPY])) {\n $errs[self::FIELD_OTHER_THERAPY] = [];\n }\n $errs[self::FIELD_OTHER_THERAPY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n $v = $this->getModifierExtension();\n foreach($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_BACKBONE_ELEMENT, self::FIELD_MODIFIER_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n $errs[self::FIELD_MODIFIER_EXTENSION] = [];\n }\n $errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ELEMENT, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ELEMENT, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n return $errs;\n }", "title": "" }, { "docid": "c103accc34082103d369d732312d68ed", "score": "0.66314036", "text": "function rules() {\r\n\r\n\t\treturn $this->rules;\r\n\r\n\t}", "title": "" }, { "docid": "8c5b55c238188ed465a0cfc353bfc888", "score": "0.662093", "text": "protected function getValidationRules()\n {\n $rules = [\n 'title' => 'required|max:255',\n 'message' => 'required|max:4000'\n ];\n\n $messages = [\n\n ];\n\n return [$rules, $messages];\n }", "title": "" }, { "docid": "2ade788333419f1b8f6d0e0bdad99377", "score": "0.6616816", "text": "public function get_errors(): array {\n\t\treturn $this->validator->getErrors();\n\t}", "title": "" }, { "docid": "5dca12ddc6a9fbed683beecf8c2fc773", "score": "0.6604464", "text": "public function _getValidationErrors(): array\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if (null !== ($v = $this->getDescription())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DESCRIPTION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDefinitionReference())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DEFINITION_REFERENCE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDefinitionCanonical())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DEFINITION_CANONICAL] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDefinitionCodeableConcept())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DEFINITION_CODEABLE_CONCEPT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDefinitionExpression())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DEFINITION_EXPRESSION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getMethod())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_METHOD] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDevice())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DEVICE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getExclude())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_EXCLUDE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getTimeFromStart())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TIME_FROM_START] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getGroupMeasure())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_GROUP_MEASURE] = $fieldErrs;\n }\n }\n if (isset($validationRules[self::FIELD_DESCRIPTION])) {\n $v = $this->getDescription();\n foreach($validationRules[self::FIELD_DESCRIPTION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_EVIDENCE_VARIABLE_DOT_CHARACTERISTIC, self::FIELD_DESCRIPTION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DESCRIPTION])) {\n $errs[self::FIELD_DESCRIPTION] = [];\n }\n $errs[self::FIELD_DESCRIPTION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DEFINITION_REFERENCE])) {\n $v = $this->getDefinitionReference();\n foreach($validationRules[self::FIELD_DEFINITION_REFERENCE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_EVIDENCE_VARIABLE_DOT_CHARACTERISTIC, self::FIELD_DEFINITION_REFERENCE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DEFINITION_REFERENCE])) {\n $errs[self::FIELD_DEFINITION_REFERENCE] = [];\n }\n $errs[self::FIELD_DEFINITION_REFERENCE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DEFINITION_CANONICAL])) {\n $v = $this->getDefinitionCanonical();\n foreach($validationRules[self::FIELD_DEFINITION_CANONICAL] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_EVIDENCE_VARIABLE_DOT_CHARACTERISTIC, self::FIELD_DEFINITION_CANONICAL, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DEFINITION_CANONICAL])) {\n $errs[self::FIELD_DEFINITION_CANONICAL] = [];\n }\n $errs[self::FIELD_DEFINITION_CANONICAL][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DEFINITION_CODEABLE_CONCEPT])) {\n $v = $this->getDefinitionCodeableConcept();\n foreach($validationRules[self::FIELD_DEFINITION_CODEABLE_CONCEPT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_EVIDENCE_VARIABLE_DOT_CHARACTERISTIC, self::FIELD_DEFINITION_CODEABLE_CONCEPT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DEFINITION_CODEABLE_CONCEPT])) {\n $errs[self::FIELD_DEFINITION_CODEABLE_CONCEPT] = [];\n }\n $errs[self::FIELD_DEFINITION_CODEABLE_CONCEPT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DEFINITION_EXPRESSION])) {\n $v = $this->getDefinitionExpression();\n foreach($validationRules[self::FIELD_DEFINITION_EXPRESSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_EVIDENCE_VARIABLE_DOT_CHARACTERISTIC, self::FIELD_DEFINITION_EXPRESSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DEFINITION_EXPRESSION])) {\n $errs[self::FIELD_DEFINITION_EXPRESSION] = [];\n }\n $errs[self::FIELD_DEFINITION_EXPRESSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_METHOD])) {\n $v = $this->getMethod();\n foreach($validationRules[self::FIELD_METHOD] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_EVIDENCE_VARIABLE_DOT_CHARACTERISTIC, self::FIELD_METHOD, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_METHOD])) {\n $errs[self::FIELD_METHOD] = [];\n }\n $errs[self::FIELD_METHOD][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DEVICE])) {\n $v = $this->getDevice();\n foreach($validationRules[self::FIELD_DEVICE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_EVIDENCE_VARIABLE_DOT_CHARACTERISTIC, self::FIELD_DEVICE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DEVICE])) {\n $errs[self::FIELD_DEVICE] = [];\n }\n $errs[self::FIELD_DEVICE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXCLUDE])) {\n $v = $this->getExclude();\n foreach($validationRules[self::FIELD_EXCLUDE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_EVIDENCE_VARIABLE_DOT_CHARACTERISTIC, self::FIELD_EXCLUDE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXCLUDE])) {\n $errs[self::FIELD_EXCLUDE] = [];\n }\n $errs[self::FIELD_EXCLUDE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TIME_FROM_START])) {\n $v = $this->getTimeFromStart();\n foreach($validationRules[self::FIELD_TIME_FROM_START] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_EVIDENCE_VARIABLE_DOT_CHARACTERISTIC, self::FIELD_TIME_FROM_START, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TIME_FROM_START])) {\n $errs[self::FIELD_TIME_FROM_START] = [];\n }\n $errs[self::FIELD_TIME_FROM_START][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_GROUP_MEASURE])) {\n $v = $this->getGroupMeasure();\n foreach($validationRules[self::FIELD_GROUP_MEASURE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_EVIDENCE_VARIABLE_DOT_CHARACTERISTIC, self::FIELD_GROUP_MEASURE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_GROUP_MEASURE])) {\n $errs[self::FIELD_GROUP_MEASURE] = [];\n }\n $errs[self::FIELD_GROUP_MEASURE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n $v = $this->getModifierExtension();\n foreach($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_BACKBONE_ELEMENT, self::FIELD_MODIFIER_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n $errs[self::FIELD_MODIFIER_EXTENSION] = [];\n }\n $errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ELEMENT, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ELEMENT, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n return $errs;\n }", "title": "" }, { "docid": "5bddce2b413ce61ab9d4b9a8f79edf04", "score": "0.6604126", "text": "public function _getValidationErrors()\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if (null !== ($v = $this->getBin())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_BIN] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getContract())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_CONTRACT, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getDependent())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DEPENDENT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getGroup())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_GROUP] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getIdentifier())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_IDENTIFIER, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getIssuer())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ISSUER] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getNetwork())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_NETWORK] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPeriod())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PERIOD] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPlan())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PLAN] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSequence())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SEQUENCE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubPlan())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUB_PLAN] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubscriber())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUBSCRIBER] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubscriberId())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUBSCRIBER_ID] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getType())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_TYPE] = $fieldErrs;\n }\n }\n if (isset($validationRules[self::FIELD_BIN])) {\n $v = $this->getBin();\n foreach($validationRules[self::FIELD_BIN] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_BIN, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_BIN])) {\n $errs[self::FIELD_BIN] = [];\n }\n $errs[self::FIELD_BIN][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONTRACT])) {\n $v = $this->getContract();\n foreach($validationRules[self::FIELD_CONTRACT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_CONTRACT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONTRACT])) {\n $errs[self::FIELD_CONTRACT] = [];\n }\n $errs[self::FIELD_CONTRACT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DEPENDENT])) {\n $v = $this->getDependent();\n foreach($validationRules[self::FIELD_DEPENDENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_DEPENDENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DEPENDENT])) {\n $errs[self::FIELD_DEPENDENT] = [];\n }\n $errs[self::FIELD_DEPENDENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_GROUP])) {\n $v = $this->getGroup();\n foreach($validationRules[self::FIELD_GROUP] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_GROUP, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_GROUP])) {\n $errs[self::FIELD_GROUP] = [];\n }\n $errs[self::FIELD_GROUP][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IDENTIFIER])) {\n $v = $this->getIdentifier();\n foreach($validationRules[self::FIELD_IDENTIFIER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_IDENTIFIER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IDENTIFIER])) {\n $errs[self::FIELD_IDENTIFIER] = [];\n }\n $errs[self::FIELD_IDENTIFIER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ISSUER])) {\n $v = $this->getIssuer();\n foreach($validationRules[self::FIELD_ISSUER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_ISSUER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ISSUER])) {\n $errs[self::FIELD_ISSUER] = [];\n }\n $errs[self::FIELD_ISSUER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_NETWORK])) {\n $v = $this->getNetwork();\n foreach($validationRules[self::FIELD_NETWORK] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_NETWORK, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_NETWORK])) {\n $errs[self::FIELD_NETWORK] = [];\n }\n $errs[self::FIELD_NETWORK][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PERIOD])) {\n $v = $this->getPeriod();\n foreach($validationRules[self::FIELD_PERIOD] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_PERIOD, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PERIOD])) {\n $errs[self::FIELD_PERIOD] = [];\n }\n $errs[self::FIELD_PERIOD][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PLAN])) {\n $v = $this->getPlan();\n foreach($validationRules[self::FIELD_PLAN] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_PLAN, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PLAN])) {\n $errs[self::FIELD_PLAN] = [];\n }\n $errs[self::FIELD_PLAN][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SEQUENCE])) {\n $v = $this->getSequence();\n foreach($validationRules[self::FIELD_SEQUENCE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_SEQUENCE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SEQUENCE])) {\n $errs[self::FIELD_SEQUENCE] = [];\n }\n $errs[self::FIELD_SEQUENCE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUB_PLAN])) {\n $v = $this->getSubPlan();\n foreach($validationRules[self::FIELD_SUB_PLAN] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_SUB_PLAN, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUB_PLAN])) {\n $errs[self::FIELD_SUB_PLAN] = [];\n }\n $errs[self::FIELD_SUB_PLAN][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUBSCRIBER])) {\n $v = $this->getSubscriber();\n foreach($validationRules[self::FIELD_SUBSCRIBER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_SUBSCRIBER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUBSCRIBER])) {\n $errs[self::FIELD_SUBSCRIBER] = [];\n }\n $errs[self::FIELD_SUBSCRIBER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUBSCRIBER_ID])) {\n $v = $this->getSubscriberId();\n foreach($validationRules[self::FIELD_SUBSCRIBER_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_SUBSCRIBER_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUBSCRIBER_ID])) {\n $errs[self::FIELD_SUBSCRIBER_ID] = [];\n }\n $errs[self::FIELD_SUBSCRIBER_ID][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TYPE])) {\n $v = $this->getType();\n foreach($validationRules[self::FIELD_TYPE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE, self::FIELD_TYPE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TYPE])) {\n $errs[self::FIELD_TYPE] = [];\n }\n $errs[self::FIELD_TYPE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONTAINED])) {\n $v = $this->getContained();\n foreach($validationRules[self::FIELD_CONTAINED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_CONTAINED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONTAINED])) {\n $errs[self::FIELD_CONTAINED] = [];\n }\n $errs[self::FIELD_CONTAINED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n $v = $this->getModifierExtension();\n foreach($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_MODIFIER_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n $errs[self::FIELD_MODIFIER_EXTENSION] = [];\n }\n $errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TEXT])) {\n $v = $this->getText();\n foreach($validationRules[self::FIELD_TEXT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_TEXT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TEXT])) {\n $errs[self::FIELD_TEXT] = [];\n }\n $errs[self::FIELD_TEXT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IMPLICIT_RULES])) {\n $v = $this->getImplicitRules();\n foreach($validationRules[self::FIELD_IMPLICIT_RULES] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_IMPLICIT_RULES, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IMPLICIT_RULES])) {\n $errs[self::FIELD_IMPLICIT_RULES] = [];\n }\n $errs[self::FIELD_IMPLICIT_RULES][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_LANGUAGE])) {\n $v = $this->getLanguage();\n foreach($validationRules[self::FIELD_LANGUAGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_LANGUAGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_LANGUAGE])) {\n $errs[self::FIELD_LANGUAGE] = [];\n }\n $errs[self::FIELD_LANGUAGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_META])) {\n $v = $this->getMeta();\n foreach($validationRules[self::FIELD_META] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_META, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_META])) {\n $errs[self::FIELD_META] = [];\n }\n $errs[self::FIELD_META][$rule] = $err;\n }\n }\n }\n return $errs;\n }", "title": "" }, { "docid": "e352ea3ea3d0a7eddcf147eef7ca331b", "score": "0.6600565", "text": "public function _getValidationErrors()\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if ([] !== ($vs = $this->getBasedOn())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_BASED_ON, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getBodySite())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_BODY_SITE] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getCategory())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_CATEGORY, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getCode())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_CODE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getComment())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_COMMENT] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getComponent())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_COMPONENT, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getContext())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_CONTEXT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDataAbsentReason())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DATA_ABSENT_REASON] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getDevice())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_DEVICE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getEffectiveDateTime())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_EFFECTIVE_DATE_TIME] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getEffectivePeriod())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_EFFECTIVE_PERIOD] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getIdentifier())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_IDENTIFIER, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getInterpretation())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_INTERPRETATION] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getIssued())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_ISSUED] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getMethod())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_METHOD] = $fieldErrs;\n }\n }\n if ([] !== ($vs = $this->getPerformer())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_PERFORMER, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getReferenceRange())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_REFERENCE_RANGE, $i)] = $fieldErrs;\n }\n }\n }\n if ([] !== ($vs = $this->getRelated())) {\n foreach($vs as $i => $v) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[sprintf('%s.%d', self::FIELD_RELATED, $i)] = $fieldErrs;\n }\n }\n }\n if (null !== ($v = $this->getSpecimen())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SPECIMEN] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getStatus())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_STATUS] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubject())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUBJECT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValueAttachment())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALUE_ATTACHMENT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValueBoolean())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALUE_BOOLEAN] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValueCodeableConcept())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALUE_CODEABLE_CONCEPT] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValueDateTime())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALUE_DATE_TIME] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValuePeriod())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALUE_PERIOD] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValueQuantity())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALUE_QUANTITY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValueRange())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALUE_RANGE] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValueRatio())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALUE_RATIO] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValueSampledData())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALUE_SAMPLED_DATA] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValueString())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALUE_STRING] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getValueTime())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_VALUE_TIME] = $fieldErrs;\n }\n }\n if (isset($validationRules[self::FIELD_BASED_ON])) {\n $v = $this->getBasedOn();\n foreach($validationRules[self::FIELD_BASED_ON] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_BASED_ON, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_BASED_ON])) {\n $errs[self::FIELD_BASED_ON] = [];\n }\n $errs[self::FIELD_BASED_ON][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_BODY_SITE])) {\n $v = $this->getBodySite();\n foreach($validationRules[self::FIELD_BODY_SITE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_BODY_SITE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_BODY_SITE])) {\n $errs[self::FIELD_BODY_SITE] = [];\n }\n $errs[self::FIELD_BODY_SITE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CATEGORY])) {\n $v = $this->getCategory();\n foreach($validationRules[self::FIELD_CATEGORY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_CATEGORY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CATEGORY])) {\n $errs[self::FIELD_CATEGORY] = [];\n }\n $errs[self::FIELD_CATEGORY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CODE])) {\n $v = $this->getCode();\n foreach($validationRules[self::FIELD_CODE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_CODE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CODE])) {\n $errs[self::FIELD_CODE] = [];\n }\n $errs[self::FIELD_CODE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_COMMENT])) {\n $v = $this->getComment();\n foreach($validationRules[self::FIELD_COMMENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_COMMENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_COMMENT])) {\n $errs[self::FIELD_COMMENT] = [];\n }\n $errs[self::FIELD_COMMENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_COMPONENT])) {\n $v = $this->getComponent();\n foreach($validationRules[self::FIELD_COMPONENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_COMPONENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_COMPONENT])) {\n $errs[self::FIELD_COMPONENT] = [];\n }\n $errs[self::FIELD_COMPONENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONTEXT])) {\n $v = $this->getContext();\n foreach($validationRules[self::FIELD_CONTEXT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_CONTEXT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONTEXT])) {\n $errs[self::FIELD_CONTEXT] = [];\n }\n $errs[self::FIELD_CONTEXT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DATA_ABSENT_REASON])) {\n $v = $this->getDataAbsentReason();\n foreach($validationRules[self::FIELD_DATA_ABSENT_REASON] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_DATA_ABSENT_REASON, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DATA_ABSENT_REASON])) {\n $errs[self::FIELD_DATA_ABSENT_REASON] = [];\n }\n $errs[self::FIELD_DATA_ABSENT_REASON][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_DEVICE])) {\n $v = $this->getDevice();\n foreach($validationRules[self::FIELD_DEVICE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_DEVICE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_DEVICE])) {\n $errs[self::FIELD_DEVICE] = [];\n }\n $errs[self::FIELD_DEVICE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EFFECTIVE_DATE_TIME])) {\n $v = $this->getEffectiveDateTime();\n foreach($validationRules[self::FIELD_EFFECTIVE_DATE_TIME] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_EFFECTIVE_DATE_TIME, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EFFECTIVE_DATE_TIME])) {\n $errs[self::FIELD_EFFECTIVE_DATE_TIME] = [];\n }\n $errs[self::FIELD_EFFECTIVE_DATE_TIME][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EFFECTIVE_PERIOD])) {\n $v = $this->getEffectivePeriod();\n foreach($validationRules[self::FIELD_EFFECTIVE_PERIOD] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_EFFECTIVE_PERIOD, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EFFECTIVE_PERIOD])) {\n $errs[self::FIELD_EFFECTIVE_PERIOD] = [];\n }\n $errs[self::FIELD_EFFECTIVE_PERIOD][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IDENTIFIER])) {\n $v = $this->getIdentifier();\n foreach($validationRules[self::FIELD_IDENTIFIER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_IDENTIFIER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IDENTIFIER])) {\n $errs[self::FIELD_IDENTIFIER] = [];\n }\n $errs[self::FIELD_IDENTIFIER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_INTERPRETATION])) {\n $v = $this->getInterpretation();\n foreach($validationRules[self::FIELD_INTERPRETATION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_INTERPRETATION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_INTERPRETATION])) {\n $errs[self::FIELD_INTERPRETATION] = [];\n }\n $errs[self::FIELD_INTERPRETATION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ISSUED])) {\n $v = $this->getIssued();\n foreach($validationRules[self::FIELD_ISSUED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_ISSUED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ISSUED])) {\n $errs[self::FIELD_ISSUED] = [];\n }\n $errs[self::FIELD_ISSUED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_METHOD])) {\n $v = $this->getMethod();\n foreach($validationRules[self::FIELD_METHOD] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_METHOD, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_METHOD])) {\n $errs[self::FIELD_METHOD] = [];\n }\n $errs[self::FIELD_METHOD][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PERFORMER])) {\n $v = $this->getPerformer();\n foreach($validationRules[self::FIELD_PERFORMER] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_PERFORMER, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PERFORMER])) {\n $errs[self::FIELD_PERFORMER] = [];\n }\n $errs[self::FIELD_PERFORMER][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_REFERENCE_RANGE])) {\n $v = $this->getReferenceRange();\n foreach($validationRules[self::FIELD_REFERENCE_RANGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_REFERENCE_RANGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_REFERENCE_RANGE])) {\n $errs[self::FIELD_REFERENCE_RANGE] = [];\n }\n $errs[self::FIELD_REFERENCE_RANGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_RELATED])) {\n $v = $this->getRelated();\n foreach($validationRules[self::FIELD_RELATED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_RELATED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_RELATED])) {\n $errs[self::FIELD_RELATED] = [];\n }\n $errs[self::FIELD_RELATED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SPECIMEN])) {\n $v = $this->getSpecimen();\n foreach($validationRules[self::FIELD_SPECIMEN] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_SPECIMEN, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SPECIMEN])) {\n $errs[self::FIELD_SPECIMEN] = [];\n }\n $errs[self::FIELD_SPECIMEN][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_STATUS])) {\n $v = $this->getStatus();\n foreach($validationRules[self::FIELD_STATUS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_STATUS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_STATUS])) {\n $errs[self::FIELD_STATUS] = [];\n }\n $errs[self::FIELD_STATUS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUBJECT])) {\n $v = $this->getSubject();\n foreach($validationRules[self::FIELD_SUBJECT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_SUBJECT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUBJECT])) {\n $errs[self::FIELD_SUBJECT] = [];\n }\n $errs[self::FIELD_SUBJECT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALUE_ATTACHMENT])) {\n $v = $this->getValueAttachment();\n foreach($validationRules[self::FIELD_VALUE_ATTACHMENT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_VALUE_ATTACHMENT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALUE_ATTACHMENT])) {\n $errs[self::FIELD_VALUE_ATTACHMENT] = [];\n }\n $errs[self::FIELD_VALUE_ATTACHMENT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALUE_BOOLEAN])) {\n $v = $this->getValueBoolean();\n foreach($validationRules[self::FIELD_VALUE_BOOLEAN] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_VALUE_BOOLEAN, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALUE_BOOLEAN])) {\n $errs[self::FIELD_VALUE_BOOLEAN] = [];\n }\n $errs[self::FIELD_VALUE_BOOLEAN][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALUE_CODEABLE_CONCEPT])) {\n $v = $this->getValueCodeableConcept();\n foreach($validationRules[self::FIELD_VALUE_CODEABLE_CONCEPT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_VALUE_CODEABLE_CONCEPT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALUE_CODEABLE_CONCEPT])) {\n $errs[self::FIELD_VALUE_CODEABLE_CONCEPT] = [];\n }\n $errs[self::FIELD_VALUE_CODEABLE_CONCEPT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALUE_DATE_TIME])) {\n $v = $this->getValueDateTime();\n foreach($validationRules[self::FIELD_VALUE_DATE_TIME] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_VALUE_DATE_TIME, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALUE_DATE_TIME])) {\n $errs[self::FIELD_VALUE_DATE_TIME] = [];\n }\n $errs[self::FIELD_VALUE_DATE_TIME][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALUE_PERIOD])) {\n $v = $this->getValuePeriod();\n foreach($validationRules[self::FIELD_VALUE_PERIOD] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_VALUE_PERIOD, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALUE_PERIOD])) {\n $errs[self::FIELD_VALUE_PERIOD] = [];\n }\n $errs[self::FIELD_VALUE_PERIOD][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALUE_QUANTITY])) {\n $v = $this->getValueQuantity();\n foreach($validationRules[self::FIELD_VALUE_QUANTITY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_VALUE_QUANTITY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALUE_QUANTITY])) {\n $errs[self::FIELD_VALUE_QUANTITY] = [];\n }\n $errs[self::FIELD_VALUE_QUANTITY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALUE_RANGE])) {\n $v = $this->getValueRange();\n foreach($validationRules[self::FIELD_VALUE_RANGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_VALUE_RANGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALUE_RANGE])) {\n $errs[self::FIELD_VALUE_RANGE] = [];\n }\n $errs[self::FIELD_VALUE_RANGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALUE_RATIO])) {\n $v = $this->getValueRatio();\n foreach($validationRules[self::FIELD_VALUE_RATIO] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_VALUE_RATIO, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALUE_RATIO])) {\n $errs[self::FIELD_VALUE_RATIO] = [];\n }\n $errs[self::FIELD_VALUE_RATIO][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALUE_SAMPLED_DATA])) {\n $v = $this->getValueSampledData();\n foreach($validationRules[self::FIELD_VALUE_SAMPLED_DATA] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_VALUE_SAMPLED_DATA, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALUE_SAMPLED_DATA])) {\n $errs[self::FIELD_VALUE_SAMPLED_DATA] = [];\n }\n $errs[self::FIELD_VALUE_SAMPLED_DATA][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALUE_STRING])) {\n $v = $this->getValueString();\n foreach($validationRules[self::FIELD_VALUE_STRING] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_VALUE_STRING, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALUE_STRING])) {\n $errs[self::FIELD_VALUE_STRING] = [];\n }\n $errs[self::FIELD_VALUE_STRING][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_VALUE_TIME])) {\n $v = $this->getValueTime();\n foreach($validationRules[self::FIELD_VALUE_TIME] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_OBSERVATION, self::FIELD_VALUE_TIME, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_VALUE_TIME])) {\n $errs[self::FIELD_VALUE_TIME] = [];\n }\n $errs[self::FIELD_VALUE_TIME][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CONTAINED])) {\n $v = $this->getContained();\n foreach($validationRules[self::FIELD_CONTAINED] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_CONTAINED, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CONTAINED])) {\n $errs[self::FIELD_CONTAINED] = [];\n }\n $errs[self::FIELD_CONTAINED][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n $v = $this->getModifierExtension();\n foreach($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_MODIFIER_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n $errs[self::FIELD_MODIFIER_EXTENSION] = [];\n }\n $errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_TEXT])) {\n $v = $this->getText();\n foreach($validationRules[self::FIELD_TEXT] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_DOMAIN_RESOURCE, self::FIELD_TEXT, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_TEXT])) {\n $errs[self::FIELD_TEXT] = [];\n }\n $errs[self::FIELD_TEXT][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_IMPLICIT_RULES])) {\n $v = $this->getImplicitRules();\n foreach($validationRules[self::FIELD_IMPLICIT_RULES] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_IMPLICIT_RULES, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_IMPLICIT_RULES])) {\n $errs[self::FIELD_IMPLICIT_RULES] = [];\n }\n $errs[self::FIELD_IMPLICIT_RULES][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_LANGUAGE])) {\n $v = $this->getLanguage();\n foreach($validationRules[self::FIELD_LANGUAGE] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_LANGUAGE, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_LANGUAGE])) {\n $errs[self::FIELD_LANGUAGE] = [];\n }\n $errs[self::FIELD_LANGUAGE][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_META])) {\n $v = $this->getMeta();\n foreach($validationRules[self::FIELD_META] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_RESOURCE, self::FIELD_META, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_META])) {\n $errs[self::FIELD_META] = [];\n }\n $errs[self::FIELD_META][$rule] = $err;\n }\n }\n }\n return $errs;\n }", "title": "" }, { "docid": "225f082f4bbd299e2cfd655fd35297af", "score": "0.6599619", "text": "public function rules()\n {\n $rules = $this->rules;\n \n return $rules;\n }", "title": "" }, { "docid": "38ea4d4f6497986dc3a9d48342228058", "score": "0.65734136", "text": "public function getErrorCollection(){\n $this->pushValidation();\n return $this->errorcollection;\n }", "title": "" }, { "docid": "2a1d9b4cf4d5839ca709c58682d32581", "score": "0.65593153", "text": "public function rules()\n\t{\n\t\treturn $this->callByRequestMethod('rules');\n\t}", "title": "" }, { "docid": "745d5f2fd4fa85b98268e4a81b2d79bc", "score": "0.6554854", "text": "public function getErrors()\n {\n return $this->_cleanErrors;\n }", "title": "" }, { "docid": "09ffbcb916c59d2cd2d333dd1e1f2c81", "score": "0.6548892", "text": "public function getErrors();", "title": "" }, { "docid": "09ffbcb916c59d2cd2d333dd1e1f2c81", "score": "0.6548892", "text": "public function getErrors();", "title": "" }, { "docid": "09ffbcb916c59d2cd2d333dd1e1f2c81", "score": "0.6548892", "text": "public function getErrors();", "title": "" }, { "docid": "09ffbcb916c59d2cd2d333dd1e1f2c81", "score": "0.6548892", "text": "public function getErrors();", "title": "" }, { "docid": "de79621266b1f47765c84ac866386816", "score": "0.6548652", "text": "public function _getValidationErrors()\n {\n $errs = parent::_getValidationErrors();\n $validationRules = $this->_getValidationRules();\n if (null !== ($v = $this->getClass())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_CLASS] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getClassDisplay())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_CLASS_DISPLAY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getGroup())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_GROUP] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getGroupDisplay())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_GROUP_DISPLAY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPlan())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PLAN] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getPlanDisplay())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_PLAN_DISPLAY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubClass())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUB_CLASS] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubClassDisplay())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUB_CLASS_DISPLAY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubGroup())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUB_GROUP] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubGroupDisplay())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUB_GROUP_DISPLAY] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubPlan())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUB_PLAN] = $fieldErrs;\n }\n }\n if (null !== ($v = $this->getSubPlanDisplay())) {\n if ([] !== ($fieldErrs = $v->_getValidationErrors())) {\n $errs[self::FIELD_SUB_PLAN_DISPLAY] = $fieldErrs;\n }\n }\n if (isset($validationRules[self::FIELD_CLASS])) {\n $v = $this->getClass();\n foreach($validationRules[self::FIELD_CLASS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_CLASS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CLASS])) {\n $errs[self::FIELD_CLASS] = [];\n }\n $errs[self::FIELD_CLASS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_CLASS_DISPLAY])) {\n $v = $this->getClassDisplay();\n foreach($validationRules[self::FIELD_CLASS_DISPLAY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_CLASS_DISPLAY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_CLASS_DISPLAY])) {\n $errs[self::FIELD_CLASS_DISPLAY] = [];\n }\n $errs[self::FIELD_CLASS_DISPLAY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_GROUP])) {\n $v = $this->getGroup();\n foreach($validationRules[self::FIELD_GROUP] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_GROUP, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_GROUP])) {\n $errs[self::FIELD_GROUP] = [];\n }\n $errs[self::FIELD_GROUP][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_GROUP_DISPLAY])) {\n $v = $this->getGroupDisplay();\n foreach($validationRules[self::FIELD_GROUP_DISPLAY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_GROUP_DISPLAY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_GROUP_DISPLAY])) {\n $errs[self::FIELD_GROUP_DISPLAY] = [];\n }\n $errs[self::FIELD_GROUP_DISPLAY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PLAN])) {\n $v = $this->getPlan();\n foreach($validationRules[self::FIELD_PLAN] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_PLAN, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PLAN])) {\n $errs[self::FIELD_PLAN] = [];\n }\n $errs[self::FIELD_PLAN][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_PLAN_DISPLAY])) {\n $v = $this->getPlanDisplay();\n foreach($validationRules[self::FIELD_PLAN_DISPLAY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_PLAN_DISPLAY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_PLAN_DISPLAY])) {\n $errs[self::FIELD_PLAN_DISPLAY] = [];\n }\n $errs[self::FIELD_PLAN_DISPLAY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUB_CLASS])) {\n $v = $this->getSubClass();\n foreach($validationRules[self::FIELD_SUB_CLASS] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_SUB_CLASS, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUB_CLASS])) {\n $errs[self::FIELD_SUB_CLASS] = [];\n }\n $errs[self::FIELD_SUB_CLASS][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUB_CLASS_DISPLAY])) {\n $v = $this->getSubClassDisplay();\n foreach($validationRules[self::FIELD_SUB_CLASS_DISPLAY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_SUB_CLASS_DISPLAY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUB_CLASS_DISPLAY])) {\n $errs[self::FIELD_SUB_CLASS_DISPLAY] = [];\n }\n $errs[self::FIELD_SUB_CLASS_DISPLAY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUB_GROUP])) {\n $v = $this->getSubGroup();\n foreach($validationRules[self::FIELD_SUB_GROUP] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_SUB_GROUP, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUB_GROUP])) {\n $errs[self::FIELD_SUB_GROUP] = [];\n }\n $errs[self::FIELD_SUB_GROUP][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUB_GROUP_DISPLAY])) {\n $v = $this->getSubGroupDisplay();\n foreach($validationRules[self::FIELD_SUB_GROUP_DISPLAY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_SUB_GROUP_DISPLAY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUB_GROUP_DISPLAY])) {\n $errs[self::FIELD_SUB_GROUP_DISPLAY] = [];\n }\n $errs[self::FIELD_SUB_GROUP_DISPLAY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUB_PLAN])) {\n $v = $this->getSubPlan();\n foreach($validationRules[self::FIELD_SUB_PLAN] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_SUB_PLAN, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUB_PLAN])) {\n $errs[self::FIELD_SUB_PLAN] = [];\n }\n $errs[self::FIELD_SUB_PLAN][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_SUB_PLAN_DISPLAY])) {\n $v = $this->getSubPlanDisplay();\n foreach($validationRules[self::FIELD_SUB_PLAN_DISPLAY] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_COVERAGE_DOT_GROUPING, self::FIELD_SUB_PLAN_DISPLAY, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_SUB_PLAN_DISPLAY])) {\n $errs[self::FIELD_SUB_PLAN_DISPLAY] = [];\n }\n $errs[self::FIELD_SUB_PLAN_DISPLAY][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_MODIFIER_EXTENSION])) {\n $v = $this->getModifierExtension();\n foreach($validationRules[self::FIELD_MODIFIER_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_BACKBONE_ELEMENT, self::FIELD_MODIFIER_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_MODIFIER_EXTENSION])) {\n $errs[self::FIELD_MODIFIER_EXTENSION] = [];\n }\n $errs[self::FIELD_MODIFIER_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_EXTENSION])) {\n $v = $this->getExtension();\n foreach($validationRules[self::FIELD_EXTENSION] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ELEMENT, self::FIELD_EXTENSION, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_EXTENSION])) {\n $errs[self::FIELD_EXTENSION] = [];\n }\n $errs[self::FIELD_EXTENSION][$rule] = $err;\n }\n }\n }\n if (isset($validationRules[self::FIELD_ID])) {\n $v = $this->getId();\n foreach($validationRules[self::FIELD_ID] as $rule => $constraint) {\n $err = $this->_performValidation(PHPFHIRConstants::TYPE_NAME_ELEMENT, self::FIELD_ID, $rule, $constraint, $v);\n if (null !== $err) {\n if (!isset($errs[self::FIELD_ID])) {\n $errs[self::FIELD_ID] = [];\n }\n $errs[self::FIELD_ID][$rule] = $err;\n }\n }\n }\n return $errs;\n }", "title": "" }, { "docid": "9ccf798271c6d34c546162cf24012b1e", "score": "0.65452826", "text": "public function rules()\n {\n return User::storeValidation($this);\n }", "title": "" }, { "docid": "b5577c210c186a9a796bff53b029c63c", "score": "0.6539444", "text": "public static function errorsAll(){\n\t\t$errors=array();\n\n\t\tif(is_array(self::$errors)){\n\t\t\tforeach(self::$errors as $key=>$val){\n\t\t\t\tforeach (self::$errors[$key] as $err) {\n\t\t\t\t\t$errors[]=$err;\n\t\t\t\t}\n\t\t\t}\n\n\t\treturn $errors;\n\t\t}\n\t}", "title": "" }, { "docid": "d933b15c97f9b0bc8d6945b67e1a736e", "score": "0.6532679", "text": "public function rules()\n {\n parent::rules();\n return $this->rules;\n }", "title": "" }, { "docid": "efd126d1d2281b1291089f3baf98e29f", "score": "0.6521335", "text": "public function getValidationErrors(): ConstraintViolationListInterface\n {\n return $this->validationErrors;\n }", "title": "" } ]
8803516dfe8eb39d16b32ddb03de9273
Returns passed in $locale, or environment variable $LANG if $locale == ''.
[ { "docid": "69c39a4606a7c94c8ba1eb9970b73c34", "score": "0.82748306", "text": "static function get_default_locale($locale='') {\n if ($locale == '') // emulate variable support\n return getenv('LANG');\n else\n return $locale;\n }", "title": "" } ]
[ { "docid": "5596ef843869cdd9ae7d4a5697350194", "score": "0.70598376", "text": "function pu_get_lang_locale( $locale = '' ) {\n\t$lang_locales = hreflang_tags_get_settings('supported_lang_code');\n\tif( $locale )\n\t\treturn ( isset( $lang_locales[$locale] ) ) ? $lang_locales[$locale] : false;\n\telse\n\t\treturn $lang_locales;\n}", "title": "" }, { "docid": "5faea28dad4cf84d909e845848f8ace8", "score": "0.69350165", "text": "function get_locale() {\n\tglobal $locale;\n\n\tif (isset($locale))\n\t\treturn apply_filters( 'locale', $locale );\n\n\t// TODO: get locale from DB\n\n\tif (empty($locale))\n\t\t$locale = 'en_US';\n\n\t$locale = apply_filters('locale', $locale);\n\n\treturn $locale;\n}", "title": "" }, { "docid": "93c24b8845840a3380c9b80f149f18a8", "score": "0.67378604", "text": "static public function getDefaultLocale();", "title": "" }, { "docid": "771e7cb311ee34fa71567b7ff4bfe965", "score": "0.6637811", "text": "public function getLocale()\n {\n $locale = $this->getParameter('locale');\n return empty($locale) ? 'en' : $locale;\n }", "title": "" }, { "docid": "f0f59052d4c856a876ef86ac6fe06aa5", "score": "0.65787107", "text": "public function locale(?string $locale = null) : ?string\n {\n /*if (null !== $locale)\n return Translation::getInstance()->$locale;*/\n return $locale;\n }", "title": "" }, { "docid": "bbf7aacd4788feef740bf2a1988031eb", "score": "0.6485585", "text": "public function getLocale(): string\n {\n return \"\";\n }", "title": "" }, { "docid": "9f5bc3d55c74ab0bcaaa77dbc42d1ecf", "score": "0.6482536", "text": "function getFallbackLocale()\n {\n return config('app.fallback_locale');\n }", "title": "" }, { "docid": "280e54063ffda915a5b413e79e314448", "score": "0.64820045", "text": "function getFallbackLocale() {\n return config('app.fallback_locale');\n }", "title": "" }, { "docid": "efbfff9b1f71e98cdb24674ccaa9843a", "score": "0.64667517", "text": "public function getLocale(): string;", "title": "" }, { "docid": "f145be949bc38ac1caea4d0058810747", "score": "0.6452848", "text": "function tr8n_browser_default_locale() {\n $accepted = \\Tr8n\\Utils\\BrowserUtils::parseLanguageList($_SERVER['HTTP_ACCEPT_LANGUAGE']);\n// var_dump($accepted);\n\n $locales = array();\n foreach (tr8n_application()->languages as $lang) array_push($locales, $lang->locale);\n\n $available = \\Tr8n\\Utils\\BrowserUtils::parseLanguageList(implode(', ', $locales));\n// var_dump($available);\n\n $matches = \\Tr8n\\Utils\\BrowserUtils::findMatches($accepted, $available);\n// var_dump($matches);\n\n $keys = array_keys($matches);\n if (count($keys) == 0)\n $locale = \\Tr8n\\Config::instance()->default_locale;\n else\n $locale = $matches[$keys[0]][0];\n\n return $locale;\n}", "title": "" }, { "docid": "1f10cb01d22ac364cfec129af932f125", "score": "0.6447273", "text": "function setLocale($locale) {\n if ($locale === 0) {\n if ($this->locale != '') return $this->locale;\n return $this->setLocale($this->locale);\n } else {\n if ($locale == '') $locale = setlocale(self::LC_MESSAGES, 0);\n if ($locale == '') $locale = getenv('LANG');\n \n $this->locale = $locale;\n return $this->locale;\n }\n }", "title": "" }, { "docid": "d896d8b50afd33de5e6476c687b266d3", "score": "0.6415775", "text": "public function getLocale() {\n\t\t$configKey = 'locale';\n\t\t$propertyName = '_locale';\n\t\t$defaultValue = 'en_US';\n\t\treturn $this->_getParameter($configKey, $propertyName, $defaultValue);\n\t}", "title": "" }, { "docid": "09f911bfff3fadc3dc7247f919d1596d", "score": "0.6414346", "text": "protected function tryFallback()\n\t{\n\t\treturn $this->config->get('app.fallback_locale');\n\t}", "title": "" }, { "docid": "1dbc5f2afd27ae2e846ac60e624441a5", "score": "0.63808393", "text": "function getLocale();", "title": "" }, { "docid": "90e7784d88f207c1c179b3f25adb350b", "score": "0.6320656", "text": "public function locale( $a_locale = null )\n\t{\n\t\tif($a_locale === null)\n\t\t{\n\t\t\t$e = explode(';', $_SERVER['HTTP_ACCEPT_LANGUAGE']);\n\t\t\t$e = explode(',', $e[0]);\n\t\t\treturn $e[0];\n\t\t}\n\t\treturn $this->lang($a_locale);\n\t}", "title": "" }, { "docid": "50e24623c289ed5907456328def6f4ce", "score": "0.6297863", "text": "function phutil_get_system_locale() {\n $locale = setlocale(LC_ALL, 0);\n\n if ($locale === false) {\n throw new Exception(\n pht(\n 'Unable to determine current system locale (call to '.\n '\"setlocale(LC_ALL, 0)\" failed).'));\n }\n\n return $locale;\n}", "title": "" }, { "docid": "dcbdf74ceaac87308a3eaa95fbfca89f", "score": "0.62780803", "text": "public function locale(string $locale);", "title": "" }, { "docid": "ae0290747a2831b9beec15bcf6d8ad42", "score": "0.6221803", "text": "static public function get_lang() {\n if(self::$LANG === '')\n list(self::$LANG, ) = self::set_lang();\n return self::$LANG;\n }", "title": "" }, { "docid": "11c181eaf77415293cf88826a05b36e8", "score": "0.62147194", "text": "private function fixLocale($locale)\n {\n if (isset($this->locales[$locale])) {\n return $this->locales[$locale];\n }\n\n $locale = substr($locale, 0, 2);\n\n if (isset($this->locales[$locale])) {\n return $this->locales[$locale];\n }\n\n return 'com';\n }", "title": "" }, { "docid": "df21a5c10c2436563115b653ceaa8fa8", "score": "0.6197268", "text": "function getRSSLocale() {\n\tif(isset($_GET['lang'])) {\n\t\t$locale = sanitize($_GET['lang']);\n\t} else {\n\t\t$locale = getOption('locale');\n\t}\n\treturn $locale;\n}", "title": "" }, { "docid": "d5047977f453623fcdd7ebfe4ca7f3d9", "score": "0.61859447", "text": "public static function get() {\n\t\treturn (self::$locale) ? self::$locale : 'en';\n\t}", "title": "" }, { "docid": "80f7ca5762524709614501d1d410ba32", "score": "0.6182386", "text": "function setlocale($lang, $locale) {\r\n #dump(setlocale(LC_ALL, 0));\r\n putenv(\"LANGUAGE=$lang\");\r\n putenv(\"LC_ALL=$lang\");\r\n putenv(\"LC_MESSAGE=$lang\");\r\n putenv(\"LANG=$lang\");\r\n /*$_ENV['LANGUAGE'] = $lang;\r\n $_ENV['LC_ALL'] = $lang;\r\n $_ENV['LC_MESSAGE'] = $lang;\r\n $_ENV['LANG'] = $lang;*/\r\n $this->lang = $lang;\r\n $this->locale = setlocale(LC_ALL, $locale);\r\n setlocale(LC_ALL, $locale);\r\n }", "title": "" }, { "docid": "515396b897e96ba09e68cf9b997c12a2", "score": "0.6155826", "text": "function lawyer_naota_redefine_locale($locale)\n{\n $lang = explode('/', $_SERVER['REQUEST_URI']);\n // here change to english if requested\n if (array_pop($lang) === 'es') {\n $locale = 'es';\n } else {\n $locale = 'ja';\n }\n return $locale;\n}", "title": "" }, { "docid": "ccd9be3267b58b60469837dd9b1f15e9", "score": "0.6136245", "text": "public function get_locale() {\n $locale = get_locale();\n\n if ( has_filter( 'esgdpr_set_locale' ) ) {\n $locale = apply_filters( 'esgdpr_set_locale', $locale );\n }\n\n $code = explode( '_', $locale );\n\n return $this->get_array_value( 0, $code );\n }", "title": "" }, { "docid": "afc8616f54e76ec30994d2fb5d6d1259", "score": "0.6135077", "text": "protected function getLocaleFromSession(): ?string\n {\n return app('session')\n ->get(\n config('flipbox-sdk.locale.session'),\n config('app.locale', config('app.fallback_locale'))\n );\n }", "title": "" }, { "docid": "8321d1d1c2dd88e39756bebed542aee9", "score": "0.612503", "text": "public function getLocale();", "title": "" }, { "docid": "8321d1d1c2dd88e39756bebed542aee9", "score": "0.612503", "text": "public function getLocale();", "title": "" }, { "docid": "8321d1d1c2dd88e39756bebed542aee9", "score": "0.612503", "text": "public function getLocale();", "title": "" }, { "docid": "8321d1d1c2dd88e39756bebed542aee9", "score": "0.612503", "text": "public function getLocale();", "title": "" }, { "docid": "8321d1d1c2dd88e39756bebed542aee9", "score": "0.612503", "text": "public function getLocale();", "title": "" }, { "docid": "628b2606e817847e1f7ab376d868a64f", "score": "0.6124508", "text": "public function getLocaleKey()\n {\n return $this->localeKey ?: 'locale';\n }", "title": "" }, { "docid": "a73744a18c2bcd1f9481287414e770c2", "score": "0.6124172", "text": "public function locale($locale = null)\n {\n if ($locale) {\n // Normalize the language\n self::$locale = strtolower(str_replace([' ', '_'], '-', $locale));\n }\n\n return self::$locale;\n }", "title": "" }, { "docid": "1d3a7688a69a8fb9e25c018de1a60131", "score": "0.61152047", "text": "public static function get_locale()\n {\n\n $locale = get_locale();\n\n if (preg_match('#^[a-z]{2}\\-[A-Z]{2}$#', $locale)) {\n $locale = str_replace('-', '_', $locale);\n } else if (preg_match('#^[a-z]{2}$#', $locale)) {\n $locale .= '_' . mb_strtoupper($locale, 'UTF-8');\n }\n\n if (empty($locale)) {\n $locale = 'en_US';\n }\n\n return $locale;\n\n }", "title": "" }, { "docid": "5fc87a601d495d072949348fff7dff60", "score": "0.61025137", "text": "function detect_locale() {\n if(isset($_SESSION[\"lang\"])){\n $lang = $_SESSION[\"lang\"];\n return $lang;\n }\n if(isset($_SESSION[\"id\"])){\n $user = new User($_SESSION[\"id\"]);\n $lang = $user->get_locale();\n return $lang;\n }\n if(isset($_SERVER[\"HTTP_ACCEPT_LANGUAGE\"])){\n $lang = substr($_SERVER[\"HTTP_ACCEPT_LANGUAGE\"], 0, 2);\n return $lang;\n }\n $lang = \"en\";\n return $lang;\n}", "title": "" }, { "docid": "506d581e44aecce9bbfe54d03d79fe5f", "score": "0.608466", "text": "public function universal()\n {\n return $this->Config->get('app.locale');\n }", "title": "" }, { "docid": "b3984808308fd640b1cd8f339a2dadf5", "score": "0.60825175", "text": "function phutil_is_system_locale_available($locale) {\n $old_locale = phutil_get_system_locale();\n $is_available = @setlocale(LC_ALL, $locale);\n setlocale(LC_ALL, $old_locale);\n\n return ($is_available !== false);\n}", "title": "" }, { "docid": "f1dd428b3d1c5f6cbce29adeedf94e2a", "score": "0.60773015", "text": "public function getDefaultLocale()\n {\n if(is_callable($this->config->get('localization::useUserLanguage'))\n and in_array($this->config->get('localization::useUserLanguage'), $this->getAvailableLocales())) {\n return $this->config->get('localization::useUserLanguage');\n } elseif($this->config->get('localization::useSessionLanguage') \n and app('session')->has('locale') and in_array(app('session')->get('locale'), $this->getAvailableLocales())) {\n return app('session')->get('locale');\n } elseif ($this->config->get('localization::useBrowserLanguage') and $browser = $this->getBrowserLanguage()) {\n return $browser;\n }\n\n return $this->config->get('localization::locale');\n }", "title": "" }, { "docid": "f2a9ee0ae4e3a58991707c7a281b779e", "score": "0.60719484", "text": "public static function locale(): string\n {\n if (is_string(static::$locale) === true) {\n return static::$locale;\n }\n\n if (is_callable(static::$locale) === true) {\n return static::$locale = (static::$locale)();\n }\n\n return static::$locale = 'en';\n }", "title": "" }, { "docid": "920eb5ecd4018bdd4513e64d5d2a7dd9", "score": "0.60561645", "text": "public static function locale()\n {\n $lang = JFactory::getLanguage();\n $locale = $lang->getTag();\n $locale = str_replace('_','-',$locale);\n $parts = explode('-',$locale);\n if(count($parts)>1 && strcasecmp($parts[0],$parts[1]) === 0){\n $locale = $parts[0];\n }\n return $locale;\n }", "title": "" }, { "docid": "d9e8dbd83d6a26546a3d881575fcfa6e", "score": "0.60498667", "text": "protected function getFallbackLocale()\n {\n if (isset($this->cache['fallback_locale'])) {\n return $this->cache['fallback_locale'];\n }\n\n return $this->cache['fallback_locale'] = config('app.fallback_locale');\n }", "title": "" }, { "docid": "78fc82ad90abe44bebe8202bc7808f28", "score": "0.6046619", "text": "public function getCurrentLocale();", "title": "" }, { "docid": "371ab7ad6ea54f9cdb4a726365f4c44f", "score": "0.60380936", "text": "function get_locale_key($language = 'english')\n{\n $locale = 'en';\n if ($language == '') {\n return $locale;\n }\n\n $locales = get_locales();\n\n if (isset($locales[$language])) {\n $locale = $locales[$language];\n } elseif (isset($locales[ucfirst($language)])) {\n $locale = $locales[ucfirst($language)];\n } else {\n foreach ($locales as $key => $val) {\n $key = strtolower($key);\n $language = strtolower($language);\n if (strpos($key, $language) !== false) {\n $locale = $val;\n // In case $language is bigger string then $key\n } elseif (strpos($language, $key) !== false) {\n $locale = $val;\n }\n }\n }\n\n $locale = do_action('before_get_locale', $locale);\n\n return $locale;\n}", "title": "" }, { "docid": "a8f7b5b76427bdad05442727cebaf778", "score": "0.6012858", "text": "function getLanguageFilename($locale) {\n\t\treturn \"lib/pkp/locale/$locale/languages.xml\";\n\t}", "title": "" }, { "docid": "7f3d04259486e092157a4966a064b172", "score": "0.59919965", "text": "private function glotpress_locale() {\n\t\t$wp_locale = get_locale();\n\n\t\tif ( 'en_US' === $wp_locale ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tpreg_match( '!^([a-z]{2,3})(_([A-Z]{2}))?(_([a-z0-9]+))?$!', $wp_locale, $matches );\n\t\tif ( ! $matches ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$wp_locale = $matches[1] . ( isset( $matches[2] ) ? $matches[2] : '' );\n\t\t$locale = $matches[1];\n\t\t$country = isset( $matches[3] ) ? $matches[3] : $matches[1];\n\t\t$variant = isset( $matches[5] ) ? $matches[5] : false;\n\n\t\tif ( defined( 'GLOTPRESS_LOCALES_PATH' ) ) {\n\t\t\trequire_once( GLOTPRESS_LOCALES_PATH );\n\n\t\t\t$gp_locale = GP_Locales::by_field( 'wp_locale', $wp_locale );\n\t\t\tif ( $gp_locale ) {\n\t\t\t\t$locale = $gp_locale->slug;\n\t\t\t}\n\t\t} else {\n\t\t\t$country = strtolower( $country );\n\t\t\tif ( $locale !== $country ) {\n\t\t\t\t$locale .= '-' . $country;\n\t\t\t}\n\t\t}\n\n\t\t$slug = $variant ?: 'default';\n\n\t\treturn compact( 'locale', 'slug' );\n\t}", "title": "" }, { "docid": "0d77eb239df4151d9f1d68d762eb6fe0", "score": "0.59743136", "text": "abstract protected function getLocaleFormat(): string;", "title": "" }, { "docid": "8c4b7228cae64b96b522d6ab2011188c", "score": "0.5953165", "text": "public function getLocale()\n {\n return $this['config']->get('app.locale');\n }", "title": "" }, { "docid": "f92f4ed1894528e903ac23f4ed8d1166", "score": "0.5952646", "text": "function locale_country(string $locale)\n {\n $data = [\n 'en' => 'gb',\n 'zh-TW' => 'tw',\n 'zh-HK' => 'cn'\n ];\n\n return isset($data[$locale]) ? $data[$locale] : $locale;\n }", "title": "" }, { "docid": "5bc1712d47710079d376cc6b2a03af17", "score": "0.5922322", "text": "function getLang()\n\t{\n\t\tif (!isset($defaultLanguage))\n\t\t\t$defaultLanguage = 'en';\n\t\treturn (empty($_GET['lang']) ? $defaultLanguage : $_GET['lang']);\n\t}", "title": "" }, { "docid": "f7904f45ef8584581662f5382176b1c0", "score": "0.592219", "text": "function getCurrentLocale()\n{\n return Config::get(\"app.locale\");\n}", "title": "" }, { "docid": "2bf21a1655eded5a36b1fe138f2d019a", "score": "0.5918573", "text": "public function get($default)\n {\n\n\t\t$locale = $default;\n\t\t\n\t\tif(Session::has(self::SESSION_IDENTIFIER)){\n\t\t\t$locale = Session::get(self::SESSION_IDENTIFIER);\n\t\t}\n\n\t\treturn $locale;\n\n\t}", "title": "" }, { "docid": "2cf721163512144649c1c8386532a35b", "score": "0.5904924", "text": "public function getLocale()\n {\n if (isset($this->data['locale'])) {\n return $this->data['locale'];\n }\n return self::DEFAULT_LOCALE;\n }", "title": "" }, { "docid": "26f9cd99bd334d4d6a878f532d0ce187", "score": "0.59013504", "text": "public function getDefaultLocale(): ?LocaleInterface;", "title": "" }, { "docid": "c86695f5c04e12cc7f939979acc98823", "score": "0.5895771", "text": "public function locale()\n {\n $lang = $this->lang();\n $locales = $this->translator()->locales();\n\n if (isset($locales[$lang]['locale'])) {\n $locale = $locales[$lang]['locale'];\n if (is_array($locale)) {\n $locale = implode(' ', $locale);\n }\n } else {\n $locale = 'en-US';\n }\n\n return $locale;\n }", "title": "" }, { "docid": "c05039884ac03eb3b2706858362f6f16", "score": "0.5895524", "text": "function thb_get_current_locale() {\n\t\t$locale = WPLANG;\n\n\t\tif( defined( 'ICL_LANGUAGE_CODE' ) ) {\n\t\t\t$locale = get_locale();\n\t\t}\n\t\telseif ( function_exists( 'pll_current_language' ) ) {\n\t\t\t$locale = pll_current_language( 'locale' );\n\t\t}\n\t\telseif ( defined( 'QT_SUPPORTED_WP_VERSION' ) ) {\n\t\t\tglobal $q_config;\n\t\t\t$locale = $q_config['locale'][$q_config['language']];\n\t\t}\n\n\t\treturn $locale;\n\t}", "title": "" }, { "docid": "9d49e53dd5310cd655c56c378dcf0fad", "score": "0.5894295", "text": "protected function detectLocale()\n {\n return Locale::getDefault();\n }", "title": "" }, { "docid": "d7e0e02c5963c3b6f16f5ef2df6fd4ac", "score": "0.5879813", "text": "function locales($locales=null, $country=FALSE){\n $ci =& get_instance();\n\n if( $locales == null ){ $locales = $ci->config->item('language'); }\n\n $locale = $ci->config->load('locales')[$locales];\n \n if( $country === TRUE ) { $result = $locale; }\n else { $result = preg_replace('# \\((.*?)\\)#', '', $locale); }\n \n return $result;\n}", "title": "" }, { "docid": "d0710de55a5bd9951d76dabb77992d9c", "score": "0.5876951", "text": "function getlocale($lang)\n {\n switch ($lang) {\n case \"dutch\":\n $lang = 'nl_NL';\n break;\n case \"spanish\":\n $lang = 'es_ES';\n break;\n case \"french\":\n $lang = 'fr_FR';\n break;\n case \"italian\":\n case \"italiano\":\n $lang = 'it_IT';\n break;\n case \"portuguese\":\n $lang = 'pt_PT';\n break;\n case \"german\":\n $lang = 'de_DE';\n break;\n case \"english\":\n $lang = 'en_GB';\n break;\n default:\n $lang = 'en_GB';\n break;\n }\n\n return $lang;\n }", "title": "" }, { "docid": "f0cffbed4f9770f37116f8cd28237a50", "score": "0.5876795", "text": "public function getLocale()\n {\n return (empty($this->locale)) ? self::DEFAULT_LOCALE : $this->locale;\n }", "title": "" }, { "docid": "3a97233701fb2df88396de723786d095", "score": "0.58653843", "text": "private function getLocaleCode() {\n return Text::getLanguageCode();\n }", "title": "" }, { "docid": "2ce27e28215b7b8620fb8e591582c109", "score": "0.5865107", "text": "public function getLocale(): string\n {\n return $this->locale;\n }", "title": "" }, { "docid": "2ce27e28215b7b8620fb8e591582c109", "score": "0.5865107", "text": "public function getLocale(): string\n {\n return $this->locale;\n }", "title": "" }, { "docid": "4d160fa14159422fc610fdd2f10a31e8", "score": "0.58544785", "text": "public static function getLanguage($locale)\n\t{\n\t\t$locale = self::sanitizeLocale($locale);\n\t\tif ( strpos($locale, '_') !== false ) {\n\t\t\t$locale = explode('_', $locale);\n\t\t}\n\n\t\tif ( is_array($locale) ) {\n\t\t\t$lang = $locale[0];\n\t\t} else {\n\t\t\t$lang = $locale;\n\t\t}\n\n\t\treturn $lang;\n\t}", "title": "" }, { "docid": "dd91dbab2abfa4334e1093019cf588d7", "score": "0.585373", "text": "protected function get_user_locale() {\n\t\t\tif ( function_exists( 'get_user_locale' ) ) {\n\t\t\t\treturn get_user_locale();\n\t\t\t}\n\n\t\t\treturn get_locale();\n\t\t}", "title": "" }, { "docid": "83d0f58e5ed3c411d9cc18815cce4dfd", "score": "0.5843592", "text": "protected function getDefaultLocale()\n {\n if (isset($this->cache['default_locale'])) {\n return $this->cache['default_locale'];\n }\n\n return $this->cache['default_locale'] = config('streams::locales.default');\n }", "title": "" }, { "docid": "0447852e92608a14fc11aa4a9a20ef0e", "score": "0.5840152", "text": "function getLocale() {\n // installation where locale column doesn't exist yet.\n return isset($this->locale) ? $this->locale : 0;\n }", "title": "" }, { "docid": "327dbc227088d801cf11888bd5d1ed74", "score": "0.58389294", "text": "function getLocale()\r\n\t{\r\n\t\tif (count($this->locales) > 0)\r\n\t\t{\r\n\t\t\treturn $this->locales[0];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn $this->defaultLocale;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4c29790876ddf06fce126048ca0289a4", "score": "0.58246464", "text": "public static function getBrowserLanguage($browserLang = null)\n {\n static $replacementPatterns = array(\n // extraneous bits of RFC 3282 that we ignore\n '/(\\\\\\\\.)/', // quoted-pairs\n '/(\\s+)/', // CFWcS white space\n '/(\\([^)]*\\))/', // CFWS comments\n '/(;q=[0-9.]+)/', // quality\n\n // found in the LANG environment variable\n '/\\.(.*)/', // charset (e.g., en_CA.UTF-8)\n '/^C$/', // POSIX 'C' locale\n );\n\n if (is_null($browserLang)) {\n $browserLang = self::sanitizeInputValues(@$_SERVER['HTTP_ACCEPT_LANGUAGE']);\n if (empty($browserLang) && self::isPhpCliMode()) {\n $browserLang = @getenv('LANG');\n }\n }\n\n if (empty($browserLang)) {\n // a fallback might be to infer the language in HTTP_USER_AGENT (i.e., localized build)\n $browserLang = \"\";\n } else {\n // language tags are case-insensitive per HTTP/1.1 s3.10 but the region may be capitalized per ISO3166-1;\n // underscores are not permitted per RFC 4646 or 4647 (which obsolete RFC 1766 and 3066),\n // but we guard against a bad user agent which naively uses its locale\n $browserLang = strtolower(str_replace('_', '-', $browserLang));\n\n // filters\n $browserLang = preg_replace($replacementPatterns, '', $browserLang);\n\n $browserLang = preg_replace('/((^|,)chrome:.*)/', '', $browserLang, 1); // Firefox bug\n $browserLang = preg_replace('/(,)(?:en-securid,)|(?:(^|,)en-securid(,|$))/', '$1', $browserLang, 1); // unregistered language tag\n\n $browserLang = str_replace('sr-sp', 'sr-rs', $browserLang); // unofficial (proposed) code in the wild\n }\n\n return $browserLang;\n }", "title": "" }, { "docid": "d6cd2a4c12ceac6f7fe88aa6cb01e0f0", "score": "0.58232677", "text": "function switchlang($iso_client_lang, $mosConfig_locale){\n\tif(!empty($iso_client_lang)){\n\t\t$lang = strtolower($iso_client_lang);\n\t\t$lang = G2helperclass::landtolang($lang);\n\t} else {\n\t\t$lang = substr ($mosConfig_locale, 0, 2); //pick first 2\t\n\t}\n\treturn trim($lang);\n}", "title": "" }, { "docid": "72998a3c5ebc1b5cbd812c1bd37f271d", "score": "0.5822099", "text": "public static function getDefaultLocale()\n {\n return static::$defaultLocale;\n }", "title": "" }, { "docid": "1edb572060c4b2a7676fccf967958348", "score": "0.57807076", "text": "private static function init_locale ()\n {\n if ( !file_exists ( XT_PROJECT_DIR .'/locales/'. self::$locale .'.php' ) )\n {\n self::$locale = self::$default_locale;\n }\n }", "title": "" }, { "docid": "a0e711d73b3d7be017d3ce68420be34f", "score": "0.57693577", "text": "function getLanguage() {\n if (!isset($_SESSION['SYSTEM_LANGUAGE'])) {\n $_SESSION['SYSTEM_LANGUAGE'] = DEFAULT_LANG;\n }\n return $_SESSION['SYSTEM_LANGUAGE'];\n}", "title": "" }, { "docid": "1304ed1f895cd4d366fbe09d969ba583", "score": "0.5765026", "text": "public final function getLocale() {\n $loc = $this->_aLocale;\n $lang = $loc[\"locale_language\"];\n if ( $lang == \"default\" ) {\n $lang = self::getBrowserLanguage();\n } else {\n $lang = \"{$lang}\";\n }\n\n $loc['locale_language'] = $lang;\n\n return $loc;\n }", "title": "" }, { "docid": "6557c35f5d93bf769bae2527c4b5bc4f", "score": "0.5764119", "text": "public function defaultLocale(): string\n {\n return config('database-localization.locale', 'en');\n }", "title": "" }, { "docid": "de4766dea9f0f3d397247cf6a0fadea9", "score": "0.575368", "text": "function get_default_lang ($in)\r\n {\r\n $parts = array ();\r\n if (preg_match ('/\\\\[default\\\\](.*?)\\\\[\\\\/default\\\\]/', $in, $parts))\r\n {\r\n $in = $parts[1];\r\n }\r\n\r\n return $in;\r\n }", "title": "" }, { "docid": "b9fb9c9d439934ebac3d2fe958f83fdb", "score": "0.5752613", "text": "public static function get_default_language() : ?string {\r\n\t\treturn self::$default_lang;\r\n\t}", "title": "" }, { "docid": "9e43997bf593af98c51de6d616374dee", "score": "0.5737675", "text": "public function getLocale()\n {\n // Use the intl extension if present.\n if (class_exists('\\Locale')) {\n $locale = \\Locale::acceptFromHttp(@$_SERVER['HTTP_ACCEPT_LANGUAGE']);\n }\n\n // If no locale was obtained, resort to the default one.\n if (empty($locale)) {\n $locale = Application::getSettings()->locale->default;\n }\n\n return $locale;\n }", "title": "" }, { "docid": "e86a7dfed43ddff338669d0372dc95c6", "score": "0.5713079", "text": "public function getLocale()\n {\n\t\t$locale = $this->getGTSHelper()->getExtensionConfig(\n\t\t\tDevelo_Googletrustedstores_Helper_Data::CONFIG_PATH_LOCALE\n\t\t);\n\n if( ! $locale )\n\t\t\t$locale = Mage::app()->getLocale()->getLocaleCode();\n\n\t\treturn $locale;\n\t}", "title": "" }, { "docid": "c114a27d24fa1cd09ef56e6a04f20546", "score": "0.569308", "text": "protected function checkLocale($locale)\n {\n $languageFound = null;\n $language = strstr($locale, '_', true);\n\n foreach ($this->configuration['locales'] as $availableLocale) {\n // If locale matches, the exact matching was found.\n if ($availableLocale === $locale) {\n return $availableLocale;\n }\n\n // Check if language (without locale) matches.\n if ($language == $availableLocale) {\n $languageFound = $availableLocale;\n }\n }\n\n if ($languageFound) {\n return $languageFound;\n }\n\n return null;\n }", "title": "" }, { "docid": "50cdefbb5cecd44e4a28695e6c9166bb", "score": "0.5691598", "text": "function getLanguage() {\n if (!isset($_SESSION['SYSTEM_LANGUAGE'])) {\n $_SESSION['SYSTEM_LANGUAGE'] = DEFAULT_LANG; \n }\n return $_SESSION['SYSTEM_LANGUAGE'];\n}", "title": "" }, { "docid": "c86b4e6b231ffc1566e11cefa21ae79a", "score": "0.56817514", "text": "public static function getLocale($separator = '_')\n {\n $lang = JFactory::getLanguage();\n $locale = $lang->getTag();\n return str_replace('-',$separator,$locale);\n }", "title": "" }, { "docid": "48090f22615abd69644ee4f7c7aaf47c", "score": "0.5677", "text": "protected function checkSystemLocale() {}", "title": "" }, { "docid": "b139c0d974157e715d2bc2b4f875f154", "score": "0.5666489", "text": "function _LNG($phrase) {\r\n\t\tglobal $_LANG;\r\n\t\t\r\n\t\tif (isset($_LANG)) {\r\n\t\t\treturn (!array_key_exists($phrase,$_LANG)) ? $phrase : $_LANG[$phrase];\r\n\t\t} else {\r\n\t\t\treturn $phrase;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a25cc79299f51521dc333b84ce939e71", "score": "0.5661718", "text": "public function getDefaultLocale()\n {\n return $this->defaultLocale;\n }", "title": "" }, { "docid": "a25cc79299f51521dc333b84ce939e71", "score": "0.5661718", "text": "public function getDefaultLocale()\n {\n return $this->defaultLocale;\n }", "title": "" }, { "docid": "b7ae0f6b98f00439a821fa419c42ed8b", "score": "0.5657335", "text": "public static function fromUrl()\n {\n $hostname = explode('.', self::domain())[0];\n $locale = explode('.', request()->getHost())[0];\n\n return $hostname === $locale ? false : $locale;\n }", "title": "" }, { "docid": "3e9dd3b0f4de123ce120f739223f58bc", "score": "0.56514084", "text": "function getDefaultLang(){\n\t\tglobal $ATK14_GLOBAL;\n\n\t\tif(defined(\"ATK14_DEFAULT_LANG\") && strtolower(ATK14_DEFAULT_LANG)!=\"auto\"){\n\t\t\treturn ATK14_DEFAULT_LANG;\n\t\t}\n\n\t\t$langs = $this->getSupportedLangs();\n\t\treturn $langs[0];\n\t}", "title": "" }, { "docid": "66f402cab4a32cad690e2fe54079cdab", "score": "0.5638286", "text": "public function fetch_locale( $match = '' ) {\n\n\t\tif ( ! $match )\n\t\t\t$match = \\get_locale();\n\n\t\t$match_len = \\strlen( $match );\n\t\t$valid_locales = $this->fb_locales();\n\n\t\tif ( $match_len > 5 ) {\n\t\t\t$match_len = 5;\n\t\t\t// More than standard-full locale ID is used. Make it just full.\n\t\t\t$match = substr( $match, 0, $match_len );\n\t\t}\n\n\t\tif ( 5 === $match_len ) {\n\t\t\t// Full locale is used.\n\n\t\t\tif ( \\in_array( $match, $valid_locales, true ) )\n\t\t\t\treturn $match;\n\n\t\t\t// Convert to only language portion.\n\t\t\t$match_len = 2;\n\t\t\t$match = substr( $match, 0, $match_len );\n\t\t}\n\n\t\tif ( 2 === $match_len ) {\n\t\t\t// Only a language key is provided.\n\n\t\t\t// Find first matching key.\n\t\t\t$key = array_search( $match, $this->language_keys(), true );\n\n\t\t\tif ( $key ) {\n\t\t\t\treturn $valid_locales[ $key ];\n\t\t\t}\n\t\t}\n\n\t\t// Return default locale.\n\t\treturn 'en_US';\n\t}", "title": "" }, { "docid": "fd5f8bc3100c2bc8390cc3db3216911f", "score": "0.5632661", "text": "public function preferredLocale(): string\n {\n //TODO store preferred locale for each user\n return 'hu';\n }", "title": "" }, { "docid": "d6c327dc233d5b2e1c1c48f3b8e07a82", "score": "0.5621608", "text": "function getFormLocale() {\n\t\t$formLocale = Request::getUserVar('formLocale');\n\t\tif (empty($formLocale)) $formLocale = AppLocale::getLocale();\n\t\treturn $formLocale;\n\t}", "title": "" }, { "docid": "137f3b41a9694d307ceee5a12d07a64d", "score": "0.56167716", "text": "public function getLocale() : string\n {\n return $this->locale;\n }", "title": "" }, { "docid": "170761dc857429ee19fe9ba05ec94c93", "score": "0.5615373", "text": "public function getFallbackLocale() {\r\n\t\treturn $this->fallbackLocale;\r\n\t}", "title": "" }, { "docid": "ea457bc44ce256473ff01829b78f3da5", "score": "0.56107163", "text": "public function get_locale(){\n\t\treturn $this->i18n;\n\t}", "title": "" }, { "docid": "4aa5142f1f439e6dc2ba054288b548d2", "score": "0.55997294", "text": "public function getFallbackLocale()\n {\n return $this->fallbackLocale;\n }", "title": "" }, { "docid": "cae54a9c72a4bc0596733bf043b19eab", "score": "0.5598179", "text": "function phutil_set_system_locale($locale) {\n $ok = @setlocale(LC_ALL, $locale);\n if (!$ok) {\n throw new Exception(\n pht(\n 'Failed to set system locale (to \"%s\").',\n $locale));\n }\n}", "title": "" }, { "docid": "9fc7d4b473feb3d91a4a3666342688d5", "score": "0.55913675", "text": "public function getLocaleKey(): string\n {\n return $this->localeKey ?? app('locale')->localeKey();\n }", "title": "" }, { "docid": "504328c3b99cf6fb7c604132dd71eda1", "score": "0.55818045", "text": "function msg($s){\n\n if(isset($_SESSION[\"lang\"])){\n $locale = $_SESSION[\"lang\"];\n }else{\n //default\n $locale = 'in';\n }\n\n //var_dump($_SESSION);\n\n if (isset(_LANG[$locale][$s])) {\n return _LANG[$locale][$s];\n } else {\n error_log(\"l10n error: locale: \".\"$locale, message:'$s'\");\n }\n}", "title": "" }, { "docid": "ea8344475a9f169f6857cdbd90263120", "score": "0.5580511", "text": "public function getDefaultLanguage(): string|null\n {\n return null;\n }", "title": "" }, { "docid": "eb1fad693cffafc9a4536e556aef05ae", "score": "0.55767083", "text": "public static function toLanguage()\r\n\t{\n\t\tswitch (self::getLocation()) {\n\t\t\tcase 'DE':\n\t\t\t\treturn LANG_DE;\n\t\t\tcase 'EN':\n\t\t\t\treturn LANG_EN;\n\t\t\tdefault:\n\t\t\t\treturn DEF_LANG;\n\t\t}\n\t\t\r\n\t}", "title": "" }, { "docid": "a17a97876baeb597cda0e8d814979819", "score": "0.5573429", "text": "protected function getDefaultLocale() { $params = $this->httpRequest->getRequestParams()->getQueryStringParameters();\n \n if (!is_null($params) && array_key_exists('locale', $params)) {\n return array('locale' => $params['locale']);\n }\n\n $manager = new UserPreferencesManager($this->httpRequest);\n $userPreferences = $manager->getPreferences();\n\n if (!is_null($userPreferences) && $userPreferences instanceof UserPreferences && strlen($userPreferences->getDefaultLocale()) > 0) {\n return array('locale' => $userPreferences->getDefaultLocale());\n }\n\n $config = $this->httpRequest->getAttribute('defaultPreferences');\n\n return $config['default_locale'];\n }", "title": "" }, { "docid": "ee9f0f5a4d901d9639d0e54fbd843048", "score": "0.5571711", "text": "function ut_main()\n{\n $res_str = '';\n\n $lang = ut_loc_get_default() ;\n $res_str .= \"Default locale: $lang\";\n $res_str .= \"\\n\";\n\n locale_set_default('de-DE');\n $lang = ut_loc_get_default() ;\n $res_str .= \"Default locale: $lang\";\n $res_str .= \"\\n\";\n\n ini_set('intl.default_locale', 'fr');\n $lang = ut_loc_get_default() ;\n $res_str .= \"Default locale: $lang\";\n $res_str .= \"\\n\";\n\n ini_restore(\"intl.default_locale\");\n\n return $res_str;\n\n}", "title": "" } ]
bd45397877a7faf9f33c23b3f421ed11
Finds and displays a Requerimiento entity.
[ { "docid": "2e6bf84282cf8fe91c8a0b3bb3dca917", "score": "0.70328367", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entity = $em->getRepository('BackendBundle:Requerimiento')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('No existe el requerimiento solicitado.');\n }\n\n return $this->render('BackendBundle:Requerimiento:show.html.twig', array(\n 'entity' => $entity,\n ));\n }", "title": "" } ]
[ { "docid": "9c672519f9ff35aac5f31b16c663a39e", "score": "0.6948905", "text": "public function showAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $rubrique = $em->getRepository('MyAppEspritBundle:Rubrique')->findAll();\n\n return $this->render('MyAppEspritBundle:Rubrique:show.html.twig', array(\n 'rubrique' => $rubrique,\n ));\n }", "title": "" }, { "docid": "8c720430794488275c1cbbc0a8ab6fec", "score": "0.67221326", "text": "public function show(recuento $recuento)\n {\n //\n }", "title": "" }, { "docid": "7505d3cdfcc396c63b3f814a89159232", "score": "0.6506841", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AcuerdosGestionBundle:Reunion')->find($id);\n $participantes = $em->getRepository('AcuerdosGestionBundle:ReunionPersona')->findByidReunion($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Reunion entity.');\n }\n\n return $this->render('AcuerdosGestionBundle:Reunion:show.html.twig', array(\n 'entity'=> $entity,\n 'temas' => $entity->getTemas(),\n 'participantes' => $participantes,\n ));\n }", "title": "" }, { "docid": "294a04f37def9ccb6f06f85355df4352", "score": "0.6490455", "text": "public function registroAction()\n {\n \n \n $em = $this->getDoctrine()->getManager();\n $reinos = $em->getRepository('IndiraSimoniBundle:Reino')->findAll();\n //$entities = $em->getRepository('IndiraSimoniBundle:AvistamientoImportado')->findAll();\n $qb = $em->createQueryBuilder();\n \n $form = $this->createEspecieSearchForm();\n $other = $this->createSearchForm();\n \n $resultados = array(\n //'entities' => $entities,\n 'form' => $form->createView(),\n 'other' => $other->createView(),\n 'reinos' => $reinos\n );\n $qb->select('a')\n ->from('Indira\\SimoniBundle\\Entity\\AvistamientoImportado', 'a')\n ->where('a.reino = :reino');\n foreach($reinos as $reino)\n {\n $query = $qb->setParameter('reino', $reino)->getQuery();\n $resultados[$reino->getNombre()] = $query->getResult();\n }\n \n return $this->render('IndiraSimoniBundle:Default:registro.html.twig',\n $resultados);\n }", "title": "" }, { "docid": "db9d8b345a9c1e9b8ae7517aa5d03663", "score": "0.6438434", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entities = $em->getRepository('BackendBundle:Requerimiento')->findAll();\n\n return $this->render('BackendBundle:Requerimiento:index.html.twig', array(\n 'entities' => $entities\n ));\n }", "title": "" }, { "docid": "ded2c07d3a2a53721e78657f1aa3372f", "score": "0.6433129", "text": "public function showAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('FadcoBundle:Prestataire')->find($this->getUser()->getId());\n $user = $this->container->get('security.context')->getToken()->getUser();\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Prestataire entity.');\n }\n\n\n\n return $this->render('FadcoBundle:Prestataire:show.html.twig', array(\n 'entity' => $entity,\n 'user' => $user,\n 'contro'=>$this\n ));\n }", "title": "" }, { "docid": "b8d9076ddfd4461c809d97317c3f8e4b", "score": "0.63994235", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('EncuestaBundle:Respuesta')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Respuesta entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('EncuestaBundle:Respuesta:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "3f9caaaed0ff550db79377bb96fe01ed", "score": "0.63081837", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('SigFichasocialBundle:RutaFichaSocial')\n ->createQueryBuilder('r')\n ->select('r', 're', 'ren')\n ->leftJoin('r.estado', 're')\n ->leftJoin('r.encuestador', 'ren')\n ->where('r.id = :id')\n ->setParameter('id', $id)\n ->getQuery()\n ->getSingleResult();\n\n $solicitudes = $em->getRepository('SigFichasocialBundle:SolicitudFichaSocial')\n ->createQueryBuilder('s')\n ->select('s', 'sd', 'sp', 'sr', 'st')\n ->leftJoin('s.rutas', 'sr')\n ->leftJoin('s.domicilio', 'sd')\n ->leftJoin('s.persona', 'sp')\n ->leftJoin('s.tipo', 'st')\n ->where('sr.id = :id')\n ->setParameter('id', $id)\n ->orderBy('sd.poblacion', 'ASC')\n ->addOrderBy('sd.calle', 'ASC')\n ->addOrderBy('sd.numero', 'ASC')\n ->getQuery()\n ->getResult();\n\n if (!$entity) {\n throw $this->createNotFoundException('No se pudo encontrar la entidad RutaFichaSocial.');\n }\n\n// $deleteForm = $this->createDeleteForm($id);\n $executeForm = $this->createExecuteForm($entity);\n\n\n return $this->render('SigFichasocialBundle:RutaFichaSocial:show.html.twig', array(\n 'entity' => $entity,\n 'solicitudes' => $solicitudes,\n// 'delete_form' => $deleteForm->createView(),\n 'execute_form' => $executeForm->createView(),\n ));\n }", "title": "" }, { "docid": "18366daefd687d0e83bde51014c91943", "score": "0.6284536", "text": "public function show($padraoRecomendacao)\n {\n //\n }", "title": "" }, { "docid": "5e6de26e7daab5f91a560a7f948bfed1", "score": "0.62741643", "text": "public function show(RetencionFuente $retencionFuente)\n {\n //\n }", "title": "" }, { "docid": "105b85a056a9049d4899d7a357edd447", "score": "0.62488663", "text": "public function show($idEntreprise){\n\t$e = $this->entrepriseDAO->select($idEntreprise);\n\t$e->listeOffres = $this->entrepriseDAO->selectOwned($idEntreprise);\n\t$data['entreprise'] = $e;\n\t$data['contenu'] = 'user/entreprise/resume';\n\t$data['titre'] = \"Résumé \".$e->raisonSoc;\n\t$data['menu'] = Menu::get();\n\t$this->load->view('inc/template', $data);\n }", "title": "" }, { "docid": "926f5a0c2f718fd012ee6af0eb82bb93", "score": "0.62263644", "text": "public function show(Retiro $retiro)\n {\n //\n }", "title": "" }, { "docid": "12f2f179951b47babf0882d0080a64ab", "score": "0.6189025", "text": "public function show(Entreprise $entreprise)\n {\n //\n }", "title": "" }, { "docid": "ad44c7195bd825752a1e878191ed1d57", "score": "0.6181765", "text": "public function show(cr $cr)\n {\n //\n }", "title": "" }, { "docid": "ad44c7195bd825752a1e878191ed1d57", "score": "0.6181765", "text": "public function show(cr $cr)\n {\n //\n }", "title": "" }, { "docid": "75ad22a506800ddfb00f55df15518bfd", "score": "0.6172629", "text": "public function showAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $session = $this->getRequest()->getSession();\n\n $idVisit = $session->get('id');\n $idFiche = $session->get('idFiche');\n\n $visiteur = $em->getRepository('GsbAppliFraisBundle:Employe')->find($idVisit);\n $fiche = $em->getRepository('GsbAppliFraisBundle:Fiche')->find($idFiche);\n $formFiche = $this->createFindFicheForm($visiteur);\n $formLigne = $this->createFindLigneForm($visiteur);\n\n\n return $this->render('GsbAppliFraisBundle:Visiteur:showHistorique.html.twig', array(\n 'visiteur' => $visiteur,\n 'fiche' => $fiche,\n 'formFiche' => $formFiche->createView(),\n 'formLigne' => $formLigne->createView(),\n ));\n }", "title": "" }, { "docid": "fd2908fc996fb83332504dfcb833892d", "score": "0.6171409", "text": "public function rechercheAction() {\n\t\t$this->layout ()->setTemplate ( 'layout/orl' );\n\t\t$user = $this->layout()->user;\n\t\t$NomService = $user['NomService'];\n\t\t$IdService = $user['IdService'];\n\t\t\n\t\t$patientsAdmis = $this->getPatientTable ()->tousPatientsAdmis ( $NomService , $IdService);\n\t\t\n\t\t//RECUPERER TOUS LES PATIENTS AYANT UN RV aujourd'hui\n\t\t$tabPatientRV = $this->getConsultationTable ()->getPatientsRV($IdService);\n\n\t\t$view = new ViewModel ( array (\n\t\t\t\t'donnees' => $patientsAdmis,\n\t\t\t\t'tabPatientRV' => $tabPatientRV,\n\t\t) );\n\t\treturn $view;\n\t}", "title": "" }, { "docid": "6b89a76a0a59348605ad78c4ce64f551", "score": "0.61704826", "text": "public function rechercheAction()\n {\n /*On récupère les categories*/\n $docCategories = $this->getDoctrine()->getRepository('EchangeoBundle:Categorie');\n $categories = $docCategories->findAll();\n /*On recupère les derniers services*/\n $docServices = $this->getDoctrine()->getRepository('EchangeoBundle:Service');\n $services = $docServices->findBy(array(), array('id' => 'desc'), 5, null);\n /*rendu*/\n return $this->render('EchangeoBundle:Default:recherche.html.twig',array(\n \"categories\"=>$categories,\n \"services\"=>$services)\n );\n }", "title": "" }, { "docid": "18e1935ac6eb126aa44675650c977c9b", "score": "0.6158759", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entity = $em->getRepository('TipddyOmsBundle:OrdenCompra')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find OrdenCompra entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('TipddyOmsBundle:OrdenCompra:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n\n ));\n }", "title": "" }, { "docid": "d01e099da0274a87cbff7c06aa5f44ee", "score": "0.6157735", "text": "public function show($id_rutina)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "c26d89a7212cf0bfbdec9cc019ba8538", "score": "0.6137566", "text": "public function showRecenzije()\n\t{\n\t\t\n\t\t$ls = new TrgovinaService();\n\n\n\t\t// predmet_id iz post/get-a izgleda ovako \"predmet_123\" -> pravi id je zapravo samo 123 -> preskoči prvih 8 znakova\n\t\tif( isset( $_POST[\"predmet_id\"] ) )\n\t\t\t$predmet_id = substr( $_POST[\"predmet_id\"], 8 );\n\t\telse if( isset( $_GET[\"predmet_id\"] ) )\n\t\t\t$predmet_id = substr( $_GET[\"predmet_id\"], 8 );\n\t\telse\n\t\t{\n\t\t\t// Nema treće opcije -- nešto ne valja. Preusmjeri na početnu stranicu.\n\t\t\theader( 'Location: ' . __SITE_URL . '/index.php?rt=predmeti' );\n\t\t\texit;\n\t\t}\n\n\t\t// Dohvati podatke o korisniku\n\t\t$predmet = $ls->getPredmetById( $predmet_id );\n\t\tif( $predmet === null )\n\t\t\texit( 'Nema predmeta s id-om ' . $predmet_id );\n\n\t\t// Dohvati sve njegove recenzije\n\t\t$recenzijeList = $ls->getRecenzijeByPredmetId( $predmet_id );\n\n\t\t// Napravi popis recenzija koje predmet ima.\n\t\t// Svaki element liste recenzija je par (osoba, ocjena, recenzija)\n\t\t$recenzijeListZaIspis = array();\n\t\tforeach( $recenzijeList as $recenzija )\n\t\t\t$recenzijeListZaIspis[] = array( \"user\" => $ls->getUserById( $recenzija->id_user ), \n\t\t\t\t \"ocjena\" => $recenzija->ocjena,\n\t\t\t\t \"recenzija\" => $recenzija->recenzija );\n\n\n\t\t$this->registry->template->predmet_id = $predmet_id;\n\t\t$this->registry->template->recenzijeListZaIspis = $recenzijeListZaIspis;\n\t\t$this->registry->template->title = 'Popis recenzija za predmet: ' . $predmet->naziv;\n $this->registry->template->show( 'predmeti_showRecenzije' );\n\t}", "title": "" }, { "docid": "5dbeb0627b63346091dc9d6cc1ee5492", "score": "0.6121623", "text": "public function show(Ocorrencia $ocorrencia)\n {\n //\n }", "title": "" }, { "docid": "ab98dc726352db5916dd5a9a3268f9e3", "score": "0.61192626", "text": "public function showAction($id,$id_contratacion, $id_presupuesto, $id_proveedor)\n {\n $em = $this->getDoctrine()->getManager();\n\n //OBTENGO EL TIPO DE PROVEEDOR\n $pres = $em->getRepository('ContenidosBundle:Presupuesto')->find($id_presupuesto);\n $prov = $pres->getIdProveedor();\n\n $prove = $em->getRepository('ContenidosBundle:Datosproveedor')->find($prov);\n $id_prov = $prove->getIdTipoprov();\n\n $compras = 0;\n if($id_prov == 'COMPRAS')\n {\n $compras=1;\n }\n\n //OBTENGO LOS DATOS DEL PAGO DE ACUERDO AL ID ENVIADO\n $entity = $em->getRepository('ContenidosBundle:Pago')->find($id);\n $idpago = $entity->getId();\n $entity1 = $em->getRepository('ContenidosBundle:Controlpagounidad')->findByIdPago($idpago);\n\n foreach ($entity1 as $key) \n {\n $est[$key->getId()]=$key->getStatus();\n $estatus = $est[$key->getId()];\n\n $entity2 = $em->getRepository('ContenidosBundle:Unidadadministrativa')->find($estatus);\n $unidad = $entity2->getNombre();\n }\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Pago entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n //ENVIO A LA VISTA SHOW PARA MOSTRAR LOS DETALLES DEL PAGO\n return $this->render('ContenidosBundle:Pago:show.html.twig', array(\n 'entity' => $entity,\n 'entity1' => $entity1,\n 'delete_form' => $deleteForm->createView(), \n 'id_contratacion' => $id_contratacion,\n 'id_presupuesto' => $id_presupuesto,\n 'id_proveedor' => $id_proveedor,\n 'unidad' => $unidad,\n 'estatus' => $estatus,\n 'compras' => $compras,\n ));\n }", "title": "" }, { "docid": "19997109bf15aa6ecf80ea0925d99653", "score": "0.61146194", "text": "public function show(Emprestimo $emprestimo)\n {\n }", "title": "" }, { "docid": "19997109bf15aa6ecf80ea0925d99653", "score": "0.61146194", "text": "public function show(Emprestimo $emprestimo)\n {\n }", "title": "" }, { "docid": "4db8d3c2bc996e84d4a9d72a1f15dba1", "score": "0.61072797", "text": "public function show($id)\n {\n $ver = Recetas::find($id);\n }", "title": "" }, { "docid": "3dedbff50cb4333148990233b714eed8", "score": "0.6102906", "text": "public function show(Contenedor $contenedor)\n {\n //\n }", "title": "" }, { "docid": "9b0ceeb529494cc35129ed1d3c64e9b2", "score": "0.6098914", "text": "public function show(Emprestimo $emprestimo)\n {\n //\n }", "title": "" }, { "docid": "3a4af090e739c60c382c01d3b5849a9a", "score": "0.60905814", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BenDoctorsBundle:RecepcionPago')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find RecepcionPago entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BenDoctorsBundle:RecepcionPago:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "3ecf9ab42171ea64ec56654f505e7dcc", "score": "0.6067388", "text": "public function show(Docente $docente)\n {\n //\n }", "title": "" }, { "docid": "2ded87c0e509a6b5710dbb624779fc56", "score": "0.6047346", "text": "public function show(Contrato $contrato)\n {\n //\n }", "title": "" }, { "docid": "0b04e74ba5a0628c61397fbf42ae1704", "score": "0.6045163", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MairieVoreppeDemandeTravauxBundle:RecepisseDT')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find RecepisseDT entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MairieVoreppeDemandeTravauxBundle:RecepisseDT:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n 'dt' => $entity->getDt()\n ));\n }", "title": "" }, { "docid": "cea85556d5f370a6eb52687c8e724a64", "score": "0.6042578", "text": "public function show(Recepciones $recepciones)\n {\n //\n }", "title": "" }, { "docid": "96eed59ce4c5d58717d17c123861d5fd", "score": "0.6040307", "text": "public function show(Dispositivo $dispositivo)\n {\n //\n }", "title": "" }, { "docid": "54a14996abcb18242ff4f8f3851e7b93", "score": "0.60379785", "text": "public function rutapagoAction()\n { \n $id_tipoproveedor = 1;\n $estatus = 'A';\n\n $dql = \"select d from ContenidosBundle:Datosproveedor d \n where d.idTipoprov=:id_tipoproveedor and d.estatus=:estatus\";\n $consulta = $em->createQuery($dql)->setParameters(\n array(\n 'id_tipoproveedor'=> $id_tipoproveedor, \n 'estatus' => $estatus,\n )\n\n\n );\n $entities = $consulta->getResult();\n return $this->render('ContenidosBundle:Pago:rutapago.html.twig', array(\n 'entities' => $entities\n ));\n }", "title": "" }, { "docid": "9894728ac6b386e2d3b7711b49510109", "score": "0.6032718", "text": "public function show(Empresa $empresa)\n {\n //\n }", "title": "" }, { "docid": "9894728ac6b386e2d3b7711b49510109", "score": "0.6032718", "text": "public function show(Empresa $empresa)\n {\n //\n }", "title": "" }, { "docid": "7ee28f40166eb8f94accb121b768f61c", "score": "0.60295236", "text": "public function show(Comentario $comentario)\n {\n //\n }", "title": "" }, { "docid": "e71129e7913a9ecec934e6dc31d3189f", "score": "0.59729016", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('SigFichasocialBundle:Persona')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('No se pudo encontrar la entidad Persona.');\n }\n\n// $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('SigFichasocialBundle:Persona:show.html.twig', array(\n 'entity' => $entity,\n// 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "05596809154a394cbf564e85b5374538", "score": "0.5969889", "text": "public function showAction($id)\n {\n $request = $this->getRequest();\n $locale = $request->getlocale(); \n\n $usuario = $this->get('security.context')->getToken()->getUser();\n $id_usuario = $usuario->getId();\n\n $em = $this->getDoctrine()->getManager();\n $entity_local = $em->getRepository('FrontendBundle:Local')->find($id);\n\n if (!$entity_local) {\n throw $this->createNotFoundException('Unable to find Local entity.');\n } \n\n $entity_comercio = $em->getRepository('FrontendBundle:comercio')->find($id_usuario); \n \n if( $id_usuario == $entity_local->getComercio()->getId() )\n {\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('FrontendBundle:Local:show.html.twig', array( \n 'entity_local' => $entity_local,\n 'entity_comercio' => $entity_comercio, \n 'delete_form' => $deleteForm->createView(), \n 'lenguaje' => $locale \n ));\n }\n else\n {\n return $this->redirect($this->generateUrl('local'));\n } \n }", "title": "" }, { "docid": "126d438b1eb8f2751306e9c9530593ac", "score": "0.5958047", "text": "public function show(Requisito $requisito)\n {\n //\n }", "title": "" }, { "docid": "b7d29c3d128a8249150d2a538f634731", "score": "0.59553415", "text": "public function consultarResultadoEspAction(){\n \n $opciones=$this->getRequest()->getSession()->get('opciones');\n \n $valorDao=new ResultadoEsperadoDao($this->getDoctrine()); \n $valores=$valorDao->getResulEsp(); \n \n return $this->render('ISRISidPlaGestionPaoBundle:ResultadosEsperados:manttResultadosEsperados.html.twig'\n , array('opciones' => $opciones, 'valores' => $valores)); \n }", "title": "" }, { "docid": "29622346ed15bba162f6e1fad921975b", "score": "0.5940118", "text": "public function show(Reserva $reserva)\n {\n //\n }", "title": "" }, { "docid": "29622346ed15bba162f6e1fad921975b", "score": "0.5940118", "text": "public function show(Reserva $reserva)\n {\n //\n }", "title": "" }, { "docid": "b0b593dfe91d25931290b85b69463e11", "score": "0.59239906", "text": "public function show(Entite $entite)\n {\n //\n }", "title": "" }, { "docid": "50addde10d97e2586f035e509bfb6e92", "score": "0.59217596", "text": "public function registro(){\r\n\t\t\t$empresa = new Empresa(); //creamos instancia\r\n\r\n\t\t\t$allCompany = $empresa->getAll(); //conseguimos todas los empresas\r\n\r\n\t\t\t// la vista con el nombre index,y le pasamos un array cone l primer indice allusers,que va a ser la variable etc...\r\n\r\n\t\t\t// cargamos la vista registro y le pasamos valores\r\n\t\t\t$this->view(\"registro\", array(\r\n\t\t\t\t\"allCompany\" => $allCompany,\r\n\t\t\t\t\"prueba\" => \"esto es una prueba MVC\"\r\n\r\n\t\t\t\t));\r\n\t\t}", "title": "" }, { "docid": "9e26a5ce63da187cb682be7c71c4e71a", "score": "0.5915704", "text": "public function indexAction() {\n// $em = $this->getDoctrine()->getManager();\n//\n// $entities = $em->getRepository('RubricaBundle:Rubrica')->findAll();\n \n// $aree = $em->getRepository('RubricaBundle:Area')->findAll();\n// \n// //DQL\n// $tsql = 'SELECT DISTINCT u FROM RubricaBundle:Ufficio u ';\n// $query = $em->createQuery($tsql);\n// $ufficio = $query->getResult();\n// \n// return $this->render('RubricaBundle:Rubrica:index.html.twig', \n// array('entities' => $entities,'ufficio'=>$ufficio,'aree'=>$aree));\n \n $em = $this->getDoctrine()->getManager();\n $entities = $em->getRepository('RubricaBundle:Rubrica')->findAll();\n \n return $this->render('RubricaBundle:Rubrica:index.html.twig', array('entities' => $entities));\n }", "title": "" }, { "docid": "255a215cc94c87b6acfcbd2714a58657", "score": "0.5908689", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('TechTBundle:Formulariorelacion')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Formulariorelacion entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('TechTBundle:Formulariorelacion:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(), ));\n }", "title": "" }, { "docid": "fb938e19632a395f9669d034b017dca1", "score": "0.59065586", "text": "public function searchAction(){\n\n $em = $this->getDoctrine()->getEntityManager();\n $request = $this->get('request');\n $query = $request->request->get('query');\n $query = substr_replace($query ,\"\",-1);\n\n $dql = $em->createQueryBuilder();\n $dql->select('um')\n ->from('INCESComedorBundle:UsuarioMenu', 'um')\n ->join('um.usuario', 'u')\n ->where(\"u.cedula = '\".$query.\"'\");\n\n $qry = $em->createQuery($dql);\n $usuariomenu = $qry->getResult();\n return $this->render('INCESComedorBundle:Usuario:_search_show.html.twig', array(\n 'query' => $query\n ,'usuariomenu' => $usuariomenu\n ));\n }", "title": "" }, { "docid": "30c4a7efcb1f6a5e4d781dfb7eca966f", "score": "0.5903822", "text": "private function show()\n {\n $res = $this->res;\n\n //creation de show\n $show = \"{% extends '\" . $this->extend . \"' %}\";\n $show .= '\n{% block title %} ' . $Entity . ' \n {% endblock %}\n{% block body %} \n<h1> ' . $Entity . ' </h1>';\n //pour ne pas voir superadmin\n // $show .= \"\n // {% if 'ROLE_SUPER_ADMIN' not in \" . strtolower($Entity) . \".roles %}\";\n $show .= '\n<div class=\"col-12\">\n<ul class=\"list-group\">';\n //on boucle sur les fields\n foreach ($res as $field => $val) {\n //gestion des classes spéciales\n $row = ''; //pour mémoriser le retours des spéciaux\n //recherche de la présence d'un type relation\n $relationFind = ''; // pour mémoriser le type de relation\n foreach ($val['AUTRE'] as $value) {\n if (\n in_array(strToLower($value), $relations) !== false\n ) {\n $relationFind = $relations[in_array(strToLower($value), $relations)];\n }\n }\n //si on a une relation\n if ($relationFind) {\n $row = \"\\n<td>{{\" . strtolower($Entity) . \".\" . $field . \"|json_encode\";\n }\n //si on à un no_show\n if (isset($val['ATTR']['no_show'])) {\n }\n //si on a un choices\n if (isset($val['OPT']['choices'])) {\n $choices = str_replace('[', '', $val['OPT']['choices']);\n $choices = str_replace(']', '', $choices);\n $choices = explode(',', $choices);\n $resChoices = '';\n foreach ($choices as $k => $v) {\n $tab = explode('=>', $v);\n if (isset($tab[1])) {\n $resChoices .= $tab[0] . ':' . $tab[1] . \",\";\n } else {\n $resChoices .= $v . ':' . $v . \",\";\n }\n }\n $row = ucfirst($field) . \"{% set options={\" . $resChoices . \"} %}\";\n $row .= \"\n {% set res=[] %}\n {% for key,option in options %}\n {% if option in \" . strtolower($Entity) . \".\" . $field . \" %}\n {% set res=res|merge([key]) %}\n {% endif %}\n {% endfor %}\n {{res|json_encode\";\n }\n //is on est pas dans les cas ci-dessus\n if (!$row) {\n $row = \"\\n<li class=\\\"list-group-item\\\">\n <h6>\" . ucfirst($field) . \"</h6>\\n\n <hr>\";\n //si on a des ALIAS\n if (isset($val['ALIAS'])) {\n //on commence par ALIAS upoloadjs\n if ($val['ALIAS'] == 'uploadjs') {\n //on cherche si on a un type de uploadjs\n $typefile = 'texte'; // valeur par défaut pour uploadjs\n if (isset($val['ATTR'])) {\n foreach ($val['ATTR'] as $attribu) {\n $tabfile = explode('=>', $attribu);\n if ($tabfile[0] == 'image' || $tabfile[0] == 'icone') {\n $typefile = $tabfile[0];\n }\n }\n }\n //type image\n if ($typefile == 'image') {\n $sizef = \"\";\n $size = explode('x', $tabfile[1]);\n if (trim($size[0]) == '0') {\n $sizef = 'height=' . $size[1] . 'px';\n } else {\n $sizef = 'width=' . $size[0] . 'px';\n }\n $row .= \"{%if \" . strtolower($Entity) . \".\" . $field . \" %}\" .\n \"<a data-toggle='popover-hover' data-original-title=\\\"\\\" title=\\\"\\\" data-img=\\\"{{voir('\" . $field . \"/'~\" . strtolower($Entity) . \".\" . $field . \")}}\\\"><img \" . $sizef . \" src=\\\"{{voir('\" . $field . \"/'~\" . strtolower($Entity) . \".\" . $field . \")}}\\\"></a> {% endif %}\";\n }\n //type icone\n if ($typefile == 'icone') {\n $row .= \"{%if \" . strtolower($Entity) . \" . \" . $field . \" %}\" .\n \"<a data-toggle='popover-hover' data-original-title=\\\"\\\" title=\\\"\\\" data-img=\\\"{{voir('\" . $field . \"/'~\" . strtolower($Entity) . \".\" . $field . \")}}\\\"><img src=\\\"{{getico('\" . $field . \"/'~\" . strtolower($Entity) . \".\" . $field . \")}}\\\"></a> {% endif %}\";\n }\n //type texte\n if ($typefile == 'texte') {\n $row .= '<label class=\"exNomfile\">' . \"{{\" . strtolower($Entity) . \".\" . $field . \"}}</label>\";\n }\n } else { //si c'est un autre ALIAS\n $row .= '{{' . strtolower($Entity) . '.' . $field;\n }\n } else { //si c'est pas un ALIAS\n if (in_array($field, $timestamptable)) {\n $row .= '{{' . strtolower($Entity) . '.' . $field;\n }\n }\n //gestion des filtres à ajouter\n //on a des filtres\n $filtres = '';\n if (isset($val['TWIG'])) {\n foreach ($val['TWIG'] as $twig) {\n $filtres .= \"|\" . $twig;\n }\n }\n //timestamptable\n if (in_array($field, $timestamptable)) {\n $filtres .= ' is empty ? \"\" :' . $Entity . ' . ' . $field . '|date(\"d/m à H:i\", \"Europe/Paris\")';\n }\n\n //on vérifie s'il faut l'afficher (pas de no_index et pas du type relation\n if (!isset($val['ATTR']['no_show'])) {\n $show .= $row . $filtres;\n //pour le type ckeditor on ajoute un filtre\n if (isset($val['ALIAS'])) {\n if ($val['ALIAS'] == 'ckeditor' or $val['ALIAS'] == 'editorjs' or $val['ALIAS'] == 'tinymce') {\n $show .= '|cleanhtml';\n }\n }\n //on ferme pour tous les types sauf uploadjs\n if (isset($val['ALIAS'])) {\n if ($val['ALIAS'] != 'uploadjs') {\n $show .= \"}}\";\n }\n } else {\n $show .= \"}}\";\n }\n }\n } //cas spéciaux\n } //boucle sur les fields\n\n\n $show .= \"\n </ul>\n </div>\";\n\n $show .= \"\\n\" . '<a href=\"{{ path(\\'' . strtolower($Entity) . '_index\\') }}\" class=\"btn btn-secondary mr-2\" type=\"button\">Revenir à la liste</button></a>';\n\n $show .= \"{% endblock %}\";\n if ($input->getOption('origin')) {\n @mkdir('/app/templates/' . strTolower($Entity));\n $dir = \"/app/old/\" . date('Y-m-d_H-i-s') . '/' . $Entity;\n @mkdir($dir);\n @rename('/app/templates/' . strTolower($Entity) . '/show.html.twig', $dir);\n file_put_contents('/app/templates/' . strTolower($Entity) . '/show.html.twig', $show);\n } else {\n @mkdir('/app/crudmick/crud');\n file_put_contents('/app/crudmick/crud/' . $Entity . '_show.html.twig', $show);\n }\n }", "title": "" }, { "docid": "e2458d084982fb6b4d0ef5e3575eb89a", "score": "0.5897404", "text": "public function show(Especialidad $especialidad)\n {\n //\n }", "title": "" }, { "docid": "4d5fc4e70c2ae3e3c1d4e9582b0479b1", "score": "0.58758944", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('VehiculosBundle:TipoMovimiento')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find TipoMovimiento entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('VehiculosBundle:TipoMovimiento:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "0f7f6bd963abdb454f541ef5a1718bb7", "score": "0.58758867", "text": "public function show(){\n $courier=$this->getDoctrine()->getRepository('App:Courier')->find($_GET['id']);\n return $this->render('editCourierList.html.twig', [\n 'courier' => $courier,\n ]);\n }", "title": "" }, { "docid": "6a374e35bc3d2adb6948f8ebdcfd5fc5", "score": "0.587583", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n \n $entities = $em->getRepository('MairieVoreppeDemandeTravauxBundle:RecepisseDT')->findAll();\n\n return $this->render('MairieVoreppeDemandeTravauxBundle:RecepisseDT:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "title": "" }, { "docid": "f06e6279547aa943d5e6ae9e40233ec8", "score": "0.5873809", "text": "public function showAction(Request $request, $id)\n {\n $session = $request->getSession();\n $menu = $session->get('_menu');\n \n $em = $this->getDoctrine()->getManager();\n\n $query = \" select p.id_publicidad idpublicidad, \n cp.nombre campana, \n d.nombre distrito, \n tp.nombre tipopublicidad, \n p.descripcion, \n p.preparado_por preparadopor, \n p.estado, \n p.nombre_medio_publicidad nombremediopublicidad,\n p.tipo_anuncio tipoanuncio, \n p.comprobante_pago comprobantepago,\n p.fecha_creacion fechacreacion,\n p.usuario_creacion usuariocreacion,\n p.usuario_ultima_modificacion usuarioultimamodificacion,\n p.fecha_ultima_modificacion fechaultimamodificacion\n from \tdatos_publicidad p \n join \tdatos_campanas_politicas cp on (p.id_campana = cp.id_campana)\n join \tdatos_distritos d on (p.id_distrito = d.id_distrito)\n join\tad_tipos_publicidad tp on (p.tipo_publicidad = tp.id_publicidad)\n where p.id_publicidad = :idpub \";\n //$query = sprintf($query, $strWhere);\n $stmt = $em->getConnection()->prepare($query);\n $stmt->bindValue('idpub',$id);\n //$stmt->bindValue('distrito',$idDistrito);\n $stmt->execute();\n $entity = $stmt->fetchAll();\n \n /* Incluir en este metodo el detalle de las tareas para visualizar \n * toda la información en una sola pantalla.\n */\n \n // >> *aqui*\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find DatosPublicidad entity.');\n }\n\n //$deleteForm = $this->createDeleteForm($id);\n\n return $this->render('VictoriaAppBundle:DatosPublicidad:show.html.twig', array(\n 'entity' => $entity[0],\n //'delete_form' => $deleteForm->createView(),\n 'menu' => $menu,\n ));\n }", "title": "" }, { "docid": "dab23b6ceb30eb9fe02d7bbba9aa5010", "score": "0.5854524", "text": "public function find($id)\n {\n return Respuesta::find($id);\n }", "title": "" }, { "docid": "772eb32d7fa2061e792e7e9a3b5ba5d2", "score": "0.5844665", "text": "public function show(Rodada $rodada)\n {\n //\n }", "title": "" }, { "docid": "77148b91e6bccde4239bf39088e2c61b", "score": "0.5842538", "text": "public function indexAction()\n {\n $request = $this->getRequest();\n $locale = $request->getlocale(); \n\n $usuario = $this->get('security.context')->getToken()->getUser();\n $id=$usuario->getId();\n\n $em = $this->getDoctrine()->getManager();\n $entity = $em->getRepository('FrontendBundle:Comercio')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Comercio entity.');\n }\n \n $entity_local = $em->getRepository('FrontendBundle:Local')->findBy(array('comercio' => $usuario));\n \n return $this->render('FrontendBundle:Local:index.html.twig', array( \n 'entity_local' => $entity_local,\n 'entity_comercio' => $entity, \n 'lenguaje' => $locale \n ));\n }", "title": "" }, { "docid": "25573ffba35f52d3612bc939f496cb7a", "score": "0.584026", "text": "public function show($id)\n {\n $respon = ReunionModel::with('Usuario','Responsables','Participantes')->where('Id_Reunion','=',$id)->get();\n return $respon; \n }", "title": "" }, { "docid": "19d68e873bb82259d842723ea0b3188b", "score": "0.5837881", "text": "public function show(Produto $produto)\n {\n //\n }", "title": "" }, { "docid": "19d68e873bb82259d842723ea0b3188b", "score": "0.5837881", "text": "public function show(Produto $produto)\n {\n //\n }", "title": "" }, { "docid": "3851996ece84c3090fa026c6377fd86b", "score": "0.5837753", "text": "public function show(Correo $correo)\n {\n //\n }", "title": "" }, { "docid": "ccb4db1eaf57946c7b48923dbe62cb83", "score": "0.5836853", "text": "public function show(Prato $prato)\n {\n //\n }", "title": "" }, { "docid": "4df5ccd9b1e707d898adc596563749eb", "score": "0.5827307", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $sql = \"select f.id,f.observacion,f.total,fu.username ,concat(c.nombre,' ',c.apellido) as cliente,f.fecha from Factura f inner join fos_user fu on fu.id = f.id_usuario inner join FacturaDetalle fd on fd.id_factura = f.id inner join Servicio s on s.id = fd.id_servicio inner join Cliente c on c.id = s.id_cliente where f.estado = 1\";\n //echo $sql;exit(); \n $con = $this->getDoctrine()->getManager()->getConnection()->prepare($sql);\n $con->execute();\n $entities = $con->fetchAll(); \n //print_r($miData);exit();\n\n //$entities = $em->getRepository('GlavBundle:Factura')->findAll(); \n\n\n return $this->render('GlavBundle:Factura:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "title": "" }, { "docid": "3d28443f4bed107314a3b61bab8b27bf", "score": "0.58260363", "text": "public function show(Establecimiento $establecimiento)\n {\n //\n }", "title": "" }, { "docid": "01cb766f2bfab25ffaa2e6e08b20f4c0", "score": "0.582214", "text": "public function show(Establecimiento $establecimiento){\n //\n }", "title": "" }, { "docid": "90bf9baf4e3e049b919ecef6b8383f28", "score": "0.5814684", "text": "public function show(Entidad $entidad)\n {\n //\n }", "title": "" }, { "docid": "7c045403c8ba786df112f21fce479a81", "score": "0.5805957", "text": "public function show($id)\n {\n $entrega = Entrega::where('entregas.id', $id)\n ->join('produtos', 'entregas.id_produto', '=', 'produtos.id')\n ->join('motoristas', 'entregas.id_motorista', '=', 'motoristas.id')\n ->join('clientes', 'entregas.id_cliente', '=', 'clientes.id') \n ->select('entregas.id_produto', 'entregas.id_cliente', 'entregas.created_at as abertura', 'entregas.id_motorista', 'produtos.nome as produto', 'motoristas.nome as motorista', 'entregas.status', 'entregas.latitude', 'entregas.longitude','clientes.nome as cliente_nome')\n ->first();\n // dd($entrega);\n // /dd($andamento);\n return view('entrega.entregashow', compact('entrega', 'id'));\n }", "title": "" }, { "docid": "76f6eb89b37f7c10ea3e826674eebf1a", "score": "0.5797453", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AppBundle:Search')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('找不到对应的联系人信息。');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AppBundle:Search:show.html.twig', array(\n 'entity' => $entity,\n 'errorHint' => '',\n ));\n }", "title": "" }, { "docid": "c8ffbbe33ba852b7ca5c527122534b35", "score": "0.5796327", "text": "public function residentesAction()\r\n {\r\n \r\n //Conectamos a BBDD Condominio \r\n $sid = new Container('base');\r\n $db_name = $sid->offsetGet('dbNombre'); \r\n $this->dbAdapter=$this->getServiceLocator()->get($db_name);\r\n $perd = new PersonaDetTable($this->dbAdapter); \r\n $listado = $perd->getListadoResidentes($this->dbAdapter);\r\n $tabla=\"\"; \r\n for($i=0;$i<count($listado);$i++){\r\n $tabla=$tabla.\"<tr>\r\n <td align='left'>\".$listado[$i]['unidad'].\"</td>\r\n <td align='left'>\".$listado[$i]['bodega'].\"</td>\r\n <td align='left'>\".$listado[$i]['estacionamiento'].\"</td>\r\n <td align='left'>\".$listado[$i]['nombres'].\"</td>\r\n <td align='left'>\".$listado[$i]['rutc'].\"</td>\r\n <td align='left'>\".$listado[$i]['telefono'].\"</td>\r\n <td align='left'>\".$listado[$i]['correo'].\"</td>\r\n <td align='left'>\".$listado[$i]['condicion'].\"</td>\r\n </tr>\";\r\n }\r\n\r\n $result = new ViewModel(array(\r\n 'tabla'=>$tabla\r\n \r\n ));\r\n $this->layout('layout/admin'); \r\n return $result; \r\n \r\n }", "title": "" }, { "docid": "81d82473f2b35bfcae6b495a63a1be8c", "score": "0.579186", "text": "public function show(Societe $societe)\n {\n //\n }", "title": "" }, { "docid": "9f8fb6b60004a2d03917df7e432326b1", "score": "0.5790667", "text": "public function show($vehiculo)\n {\n //\n }", "title": "" }, { "docid": "ae7f3a553f24e3ba471208a7261e237c", "score": "0.5781015", "text": "public function show(Consulta $consulta)\n {\n //\n }", "title": "" }, { "docid": "4cecf0be63af518f9a78a432dd2fcfb1", "score": "0.5778383", "text": "public function voirAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('FadcoBundle:Prestataire')->find($id);\n $user = $this->container->get('security.context')->getToken()->getUser();\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Prestataire entity.');\n }\n\n return $this->render('FadcoBundle:Prestataire:show.html.twig', array(\n 'entity' => $entity,\n 'user' => $user\n ));\n }", "title": "" }, { "docid": "0f017ac195eb40f2a93e3410bc580d38", "score": "0.57729626", "text": "public function show($id)\n {\n $diagnostico=Diagnostico::find($id);\n $evoluciones=Evolucion::where('diagnostico_id',$id)->orderBy('sesion','DESC')->paginate(3);\n $tratamientos=Tratamiento::all();\n return view('evolucion.registrar',compact('tratamientos','diagnostico','evoluciones') ); \n }", "title": "" }, { "docid": "282054b06912aa7f04703e40ad33b767", "score": "0.5772292", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $remarques = $em->getRepository('EJPAcademixBundle:Remarque')->findAll();\n\n return $this->render('remarque/index.html.twig', array(\n 'remarques' => $remarques,\n ));\n }", "title": "" }, { "docid": "60bd8e08c9114cc499785b5c2bb043ca", "score": "0.57646835", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('TechTBundle:Formulariorelacion')->findAll();\n\n return $this->render('TechTBundle:Formulariorelacion:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "title": "" }, { "docid": "da7b8c6c2fc525b4dfd92264984c2f14", "score": "0.5759774", "text": "public function mostrar_vencerAction()\n {\n $em = $this->getDoctrine()->getManager();\n $query = $em->createQuery(\n 'SELECT a\n FROM FfDemoBundle:Alumnos\\Alumno a\n ORDER BY a.apellidop ASC'\n );\n \n $resultado= $query->getResult();\n \n if (!$resultado) {\n throw $this->createNotFoundException(\n 'No se encontraron alumnos'\n );\n }\n\n\n return $this->render('FfDemoBundle:Default:vencer.html.twig', array(\n 'resultado' => $resultado, ));\n }", "title": "" }, { "docid": "0a9be37278b00fa063a3e8b5460e3c8e", "score": "0.575768", "text": "public function findFicheAction(Request $request)\n { \n $em = $this->getDoctrine()->getManager();\n\n $session = $this->getRequest()->getSession();\n\n $id = $session->get('id');\n\n $visiteur = $em->getRepository('GsbAppliFraisBundle:Employe')->find($id);\n $dateDeb = $visiteur->getDateEmbauche();\n $dateFin = new DateTime();\n\n $repository = $this\n ->getDoctrine()\n ->getManager()\n ->getRepository('GsbAppliFraisBundle:Fiche')\n ;\n \n $fiches = $repository->ficheByDate($visiteur, $dateDeb, $dateFin); \n $formFiche = $this->createFindFicheForm($visiteur);\n $formLigne = $this->createFindLigneForm($visiteur);\n\n $formFiche->handleRequest($request);\n\n\n if($formFiche->isValid()){\n\n $data = $formFiche->getData();\n $dateDeb = $data['debut'];\n $dateFin = $data['fin'];\n $etat = $data['etat'];\n\n $repository = $this\n ->getDoctrine()\n ->getManager()\n ->getRepository('GsbAppliFraisBundle:Fiche')\n ;\n \n if ($etat){\n $fiches = $repository->ficheByDateEtat($visiteur, $dateDeb, $dateFin, $etat);\n }else{\n $fiches = $repository->ficheByDate($visiteur, $dateDeb, $dateFin); \n }\n \n\n return $this->render('GsbAppliFraisBundle:Visiteur:historique.html.twig', array(\n 'visiteur' => $visiteur,\n 'fiches' => $fiches,\n 'formFiche' => $formFiche->createView(),\n 'formLigne' => $formLigne->createView(),\n ));\n }\n\n return $this->render('GsbAppliFraisBundle:Visiteur:historique.html.twig', array(\n 'visiteur' => $visiteur,\n 'fiches' => $fiches,\n 'formFiche' => $formFiche->createView(),\n 'formLigne' => $formLigne->createView(),\n ));\n \n }", "title": "" }, { "docid": "a979b7e3dfd5bfa291d9ad48faddb442", "score": "0.57502127", "text": "public function mostra () {\n\t\t$id = Request::route('id'); // ASSIM PEGA A VARIAVEL DA ROTA\n\t\t$produto = DB::select('select * from produtos where id = ?', [$id]);\n\t\tif(empty($produto)) {\n\t return \"Esse produto não existe\";\n\t }\n\t\treturn view('detalhes')->with('p', $produto[0]);\n\t}", "title": "" }, { "docid": "bcd2fb14a8a8a88fb45c01a038a0cbdc", "score": "0.57467794", "text": "public function show($id)\n {\n // \n $acceso_usuario = new SysAccesoUsuarioModel();\n if($acceso_usuario->getAccesoValidoMenu(4, Auth::user()->fkid_perfil)){\n $personas = PrsPersonaModel::withTrashed()->find($id); \n if (is_null($id) || count($personas) != 1) {\n abort(404);\n }\n $doc_documento = new DocTipoDocumentoModel();\n $documentos = $doc_documento->getTiposDocumentos();\n $cnt_contratoempleado = new CntContratoEmpleadoModel();\n $id_contrato = $cnt_contratoempleado->getIdContrato($id);\n $empleado_tipodocumento = new EmpleadoTipodocumentoModel();\n $empleados_documentos = $empleado_tipodocumento->getTiposDocumentos($id_contrato->id_contratoempleado);\n $doc_extension = new DocExtensionModel();\n $extensiones = $doc_extension->getExtensionesDocumentos();\n $acred = new AcrSolicitudAcreditacionModel();\n \n $tipos_contratosempleados = new CntTipoContratoEmpleadoModel();\n $tiposcontratos = $tipos_contratosempleados->getTiposContratosEmpleados();\n $estados_contratosempleados = new CntEstadoContratoEmpleadoModel();\n $estadoscontratos = $estados_contratosempleados->getEstadosContratosEmpleados();\n $cnt_contratoempleado = new CntContratoEmpleadoModel();\n $contratosempleados = $cnt_contratoempleado->getContratosEmpleados();\n $cnt_contratoempresa = new CntContratoEmpresaModel();\n $contratosempresas = $cnt_contratoempresa->getContratosEmpresas();\n\n $estado = new StaEstadoSolicitudAcreditacionModel();\n $estados = $estado->getEstadosSolicitudesAcreditaciones();\n \n $observacion = new AcrSolicitudObservacionModel();\n $observaciones = $observacion->getSolicitudesObservaciones();\n $id_persona = $id;\n $acred = new AcrSolicitudAcreditacionModel();\n $acreditaciones = $acred->getAcreditacionesPropias($id);\n $fecha = Carbon::now();\n $sesion = Auth::user()->id_usuario;\n $fecha_actual = $fecha->format('d/m/y');\n\n $fecha_nacimiento = $personas->fnacimiento_persona;\n $f_nacimiento = explode('-', $fecha_nacimiento);\n $fin = $f_nacimiento[2].'/'.$f_nacimiento[1].'/'.$f_nacimiento[0];\n return view('acreditaciones.show', compact('acreditaciones','personas', 'contratosempresas', 'tiposcontratos', 'estadoscontratos', 'contratosempleados', 'extensiones', 'documentos', 'empleados_documentos', 'observaciones', 'estados', 'id_persona', 'id_contrato', 'fin'));\n }\n else{\n return redirect('home');\n } \n }", "title": "" }, { "docid": "5a3e5b204862c2b3ea3009694b544149", "score": "0.5743717", "text": "public function newAction()\n {\n $req = new Requerimiento();\n \n $detalle = new RequerimientoDetalle();\n $detalle->setRequerimiento($req);\n $req->getDetalles()->add($detalle);\n \n $form = $this->createForm(new RequerimientoType(), $req);\n\n return $this->render('BackendBundle:Requerimiento:new.html.twig', array(\n 'entity' => $req,\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "ed9a6010eb59e900fbfaa0474bf6d261", "score": "0.57302886", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entity = $em->getRepository('BackendBundle:Requerimiento')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('No existe el requerimiento solicitado.');\n }\n\n $editForm = $this->createForm(new RequerimientoType(), $entity);\n\n return $this->render('BackendBundle:Requerimiento:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n ));\n }", "title": "" }, { "docid": "a88d0e886b3e58e1d8dbd8b1b704fb77", "score": "0.5728722", "text": "public function show(Usuario $usuario)\n {\n\n }", "title": "" }, { "docid": "3268d50fdeb505623d4a4dc10bf7376e", "score": "0.57281035", "text": "public function detailAction($siret, $id, Request $request) {\n\n $this->get('session')->remove('lat_etablissement');\n $this->get('session')->remove('long_etablissement');\n $em = $this->getDoctrine()->getManager();\n $etablissement = $em\n ->getRepository('LDSPlatformBundle:Etablissement')\n ->findOneBySiret($siret);\n\n if ($etablissement==null) {\n return $this->render('LDSPlatformBundle:Erreurs:ErreurEtablissement.html.twig', array(\n 'siret' => $siret\n ));\n } else {\n $listeEvenement=$em\n ->getRepository('LDSPlatformBundle:Evenement')\n ->findByEtablissement($etablissement, array('nom' => 'asc'));\n $listeCommentaire=$em\n ->getRepository('LDSPlatformBundle:CommentaireEtablissement')\n ->derniers_commentaires($etablissement);\n }\n\n //gestion de l'etoile favori\n $repository=$em->getRepository('LDSPlatformBundle:FavoriEtablissement');\n $login='';\n $session = $this->get('session');\n $login=$session->get('compte');\n //Pour remplir le commentaire\n $particulier = $em\n ->getRepository('LDSPlatformBundle:Particulier')\n ->findOneByLogin($login);\n\n $monCommentaire=$em\n ->getRepository('LDSPlatformBundle:CommentaireEtablissement')\n ->findOneBy(array('particulier' => $particulier, 'etablissement' => $etablissement));\n \n //verifi si l'utilisateur est connecté et à déjà l'etablissement en favori\n $estFavori=true;\n if ($login!=null) {\n $favori=$repository->findBy(array('siret'=> $siret, 'loginParticulier'=> $login));\n $estConnecte=true;\n if ($count_favori=count($favori)==0){\n $estFavori = false;\n }\n else{\n $estFavori=true;\n }\n }\n else {\n $estConnecte=false;\n }\n\n //formulaire pour laisser un commentaire\n $commentaire=new CommentaireEtablissement();\n $form = $this->get('form.factory')->createBuilder(FormType::class, $commentaire)\n ->add('commentaire', TextareaType::class)\n ->add('note', ChoiceType::class, array(\n 'choices' => array(\n '5' => '5',\n '4' => '4',\n '3' => '3',\n '2' => '2',\n '1' => '1',\n )))\n ->add('Laisser un commentaire', SubmitType::class)\n ->getForm();\n\n //On recup le commentaire\n //On recup le commentaire\n if ($request->isMethod('POST')) {\n $form->handleRequest($request);\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n //Prise en compte du vote pour la moyenne\n //maj nb de vote\n $etablissement_maj=$em->getRepository('LDSPlatformBundle:Etablissement')->findOneBySiret($siret);\n $nbvote=$etablissement_maj->getNombreNote()+1;\n $etablissement_maj->setNombreNote($nbvote);\n //maj moy\n $moy=($etablissement_maj->getMoyenne()*($nbvote-1)+$commentaire->getNote())/$etablissement_maj->getNombreNote();\n $etablissement_maj->setMoyenne($moy);\n //maj coeff\n $coeff=$etablissement_maj->getNombreNote()*$etablissement_maj->getMoyenne();\n $etablissement_maj->setCoefficient($coeff);\n //insert dans la table commentaire\n $commentaire->setDate(new \\Datetime());\n $commentaire->setEtablissement($etablissement);\n $commentaire->setParticulier($particulier);\n $em->persist($commentaire);\n $em->flush();\n return $this->redirectToRoute('lds_platform_detail',array('siret' => $siret, 'id' => 1));\n }\n }\n\n\n return $this->render('LDSPlatformBundle:Etablissement:detail.html.twig', array(\n 'etablissement' => $etablissement,\n 'listeEvenement' => $listeEvenement,\n 'listeCommentaire' => $listeCommentaire,\n 'id' => $id,\n 'estFavori' => $estFavori,\n 'estConnecte' => $estConnecte,\n 'form' => $form->createView(),\n 'monCommentaire' => $monCommentaire,\n ));\n }", "title": "" }, { "docid": "d418489e03fc739cfcc32fdd88fd3295", "score": "0.57264787", "text": "public function show(Usuario $usuario)\n {\n //\n }", "title": "" }, { "docid": "d418489e03fc739cfcc32fdd88fd3295", "score": "0.57264787", "text": "public function show(Usuario $usuario)\n {\n //\n }", "title": "" }, { "docid": "9063cccd1697375a3c6794f78d4b7d1a", "score": "0.5724503", "text": "function show(){\n\n\t\t$listaClientes=UnidadesRentaModel::all();\n\t\trequire_once('Views/UnidadesRenta/index.php');\n\n\n\n\t}", "title": "" }, { "docid": "4c33615b59426c0fed733de0cb8e5034", "score": "0.57138526", "text": "public function show(Investimento $investimento)\n {\n //\n }", "title": "" }, { "docid": "b1df6624715ce7f787839ab6c90936b4", "score": "0.57012105", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('IntoPeopleDatabaseBundle:Systemmail')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Systemmail entity.');\n }\n\n\n\n return $this->render('IntoPeopleDatabaseBundle:Systemmail:show.html.twig', array(\n 'entity' => $entity,\n ));\n }", "title": "" }, { "docid": "1bc8168594138b90ba80701edfabbdb4", "score": "0.56979203", "text": "public function show(TipoDocumento $tipoDocumento)\n {\n //\n }", "title": "" }, { "docid": "dca30ca15c9128605219eec39bfc8ea7", "score": "0.5696136", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('QQiRecordappBundle:Estados')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Estados entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('QQiRecordappBundle:Estados:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(), ));\n }", "title": "" }, { "docid": "85c189403d2aef984d4de07f02bbcb23", "score": "0.56950146", "text": "public function show(Pedido $pedido)\n {\n //\n }", "title": "" }, { "docid": "4bc242344c609905debc5f49d4b00aac", "score": "0.5692387", "text": "public function show(Transportadora $transportadora)\n {\n //\n }", "title": "" }, { "docid": "9ec5ef2e66140b2113ba61a94cce20cc", "score": "0.56913114", "text": "public function show(TipusRecurs $theobj)\n {\n // para asociar ( dependencias a objeto )\n // $theobj = TipusRecurs::with('otratabla')->find($theobj->campoenlace);\n return new TipusRecursResource($theobj);\n }", "title": "" }, { "docid": "f0839f73e9257b3d75742d9f920c171e", "score": "0.56868935", "text": "public function show(FolhaRescisao $folhaRescisao)\n {\n //\n }", "title": "" }, { "docid": "a43a0aafd683f5f481bcb3e94d3506e6", "score": "0.5685121", "text": "public function showAction() \n {\n $repository = $this->getDoctrine()->getManager()->getRepository('EPUploadBundle:Client');\n\n $field = null;\n $value = null;\n $user = $this->container->get('security.context')->getToken()->getUser();\n\n $field = $this->getRequest()->query->get(\"type\");\n $value = $this->getRequest()->query->get(\"search\");\n\n $clients = $repository->findByField($field, $value, $user);\n\n return $this->render('EPUploadBundle:Client:showClient.html.twig',array(\n 'clients' => $clients\n )); \n }", "title": "" }, { "docid": "c7172393a1c1674c1769344b0862d416", "score": "0.56818265", "text": "public function show(OrdemServico $ordemServico)\n {\n //\n }", "title": "" }, { "docid": "3076b749a59b175214d5dac97e14f81a", "score": "0.5678625", "text": "public function detail(){\n $auteur = $this->Auteur->findWithFikr($_GET['id']);\n /**\n * Génération de la vue grace à la fonction render (Core\\Controller)\n * Contenir la variable et sa valeur grace à la fonction compact de php\n * @param String la vue\n * @param Array variables à contenir\n */\n $this->render('auteurs.detail', compact('auteur'));\n }", "title": "" }, { "docid": "d9aa6efd34d7de4ad2a5597c53f35139", "score": "0.5674111", "text": "public function show(fournisseur $fournisseur)\n {\n //\n }", "title": "" } ]
a9159f25320872b152e4e61fcae55934
Functions for registering frontend stylesheet
[ { "docid": "58845d13bae496be76bebe2c0066aeaf", "score": "0.0", "text": "function tenup_fpc_frontend_styles()\n\t{\n\n\t\twp_enqueue_style('tenup-fpc-main-frontend', TENUP_FPC_PLUGIN_URL . '/assets/css/main-frontend.css', array(), TENUP_FPC_VERSION, 'all');\n\t}", "title": "" } ]
[ { "docid": "61dfc78e287e38cd8528477bce1e28af", "score": "0.7209195", "text": "public function register_styles() {\n }", "title": "" }, { "docid": "5fd408b1a02ce4e672fcd4da87953aa0", "score": "0.70981735", "text": "public function register_styles() {\n\t\t}", "title": "" }, { "docid": "6763713d5126489e0b76dc289ebff616", "score": "0.70393914", "text": "function add_stylesheets_to_frontend() {\n\t// Add style as selected in options\n\twp_register_style( 'wgGlossaryStyle', WP_PLUGIN_URL . '/wordgallery-glossary/view/style/' . get_option(\"wgGlossary_display_style\") );\n\twp_enqueue_style('wgGlossaryStyle');\n}", "title": "" }, { "docid": "4289b4c0b923dcb9e189fc8c3e78a525", "score": "0.692868", "text": "public function register_admin_styles()\n {\n }", "title": "" }, { "docid": "b6f04ca1798ecdc1311b6b965e364685", "score": "0.6856463", "text": "function SA_tb_register_style($handle, $src, $ver){echo '<link rel=\"stylesheet\" href=\"'.$src.'\" type=\"text/css\" charset=\"utf-8\" />'.\"\\n\";}", "title": "" }, { "docid": "b6d8eb6e9f9aefa0ed4d145c9e33e685", "score": "0.6842989", "text": "public function register_admin_styles() {\n\t\t}", "title": "" }, { "docid": "98146cbe1023b8ba4eb9e61cfe2206c1", "score": "0.6817472", "text": "public function register_frontend_styles() {\n \n $dir = Helper_Functions::get_styles_dir();\n\t\t$suffix = Helper_Functions::get_assets_suffix();\n \n // $is_rtl = is_rtl() ? '-rtl' : '';\n \n wp_register_style(\n 'pixerex-twentytwenty',\n PIXEREX_ELEMENTS_URL . 'assets/frontend/vendor/twentytwenty/' . 'css/twentytwenty' . '.css',\n array(),\n PIXEREX_ELEMENTS_VERSION,\n 'all'\n );\n\n wp_register_style(\n 'pixerex-slick',\n PIXEREX_ELEMENTS_URL . 'assets/frontend/vendor/slick/' . 'slick' . '.css',\n array(),\n PIXEREX_ELEMENTS_VERSION,\n 'all'\n );\n wp_register_style(\n 'pixerex-slick-theme',\n PIXEREX_ELEMENTS_URL . 'assets/frontend/vendor/slick/' . 'slick-theme' . '.css',\n array(),\n PIXEREX_ELEMENTS_VERSION,\n 'all'\n );\n\n \n wp_register_style(\n 'pixerex-elements',\n PIXEREX_ELEMENTS_URL . 'assets/frontend/' . $dir . '/pixerex-elements' . '.css',\n array(),\n PIXEREX_ELEMENTS_VERSION,\n 'all'\n );\n\n /***Card Style**/\n\n wp_register_style(\n 'pixerex-card-element',\n PIXEREX_ELEMENTS_URL . 'assets/frontend/card/' . $dir . '/style' . '.css',\n array(),\n PIXEREX_ELEMENTS_VERSION,\n 'all'\n );\n\n /***Image Compare Style**/\n\n wp_register_style(\n 'pixerex-image-compare-element',\n PIXEREX_ELEMENTS_URL . 'assets/frontend/image-compare/' . $dir . '/style' . $suffix . '.css',\n array(),\n PIXEREX_ELEMENTS_VERSION,\n 'all'\n );\n\n /***Slider & Carousel Style**/\n\n wp_register_style(\n 'pixerex-slider-carousel-element',\n PIXEREX_ELEMENTS_URL . 'assets/frontend/slider/' . $dir . '/style' . $suffix . '.css',\n array(),\n PIXEREX_ELEMENTS_VERSION,\n 'all'\n );\n\n /***Flip Box Style**/\n\n wp_register_style(\n 'pixerex-flipbox-element',\n PIXEREX_ELEMENTS_URL . 'assets/frontend/flipbox/' . $dir . '/style' . $suffix . '.css',\n array(),\n PIXEREX_ELEMENTS_VERSION,\n 'all'\n );\n\n\n /***Team Carousel Style**/\n\n wp_register_style(\n 'pixerex-team-carousel-element',\n PIXEREX_ELEMENTS_URL . 'assets/frontend/team-carousel/' . $dir . '/style' . $suffix . '.css',\n array(),\n PIXEREX_ELEMENTS_VERSION,\n 'all'\n );\n }", "title": "" }, { "docid": "b0f9ee9b0bc58208ab2480c79559e421", "score": "0.6811722", "text": "function backend_style_loader() {\r\n\t\twp_register_style('wphmngt_backend_css', WP_HOME_MNGT_BACKEND_TPL_URL . 'css/backend.css', '', WP_HOME_MNGT_VERSION);\r\n\t\twp_enqueue_style('wphmngt_backend_css');\r\n\t}", "title": "" }, { "docid": "997bdc56550190b986475c7f025c0ac3", "score": "0.6795207", "text": "function prawemysli_register_styles() {\n $theme_version = wp_get_theme()->get('Version');\n wp_enqueue_style('prawemysli-style', get_template_directory_uri() . '/frontend/dist/main.css', '', $theme_version);\n}", "title": "" }, { "docid": "5d5f87d98d6e60f24389ddb2bb9d75ba", "score": "0.67544013", "text": "protected function renderStyleSheet($index = 'global_stylesheet', $value = 'main/main.css')\n\t{\n\t\t//$index = 'global_stylesheet'; \n\t\t//$value = $value; \n\t\tSpine_GlobalRegistry::register('stylesheets', $index, $value); //register the stylesheet to global registry\n\t}", "title": "" }, { "docid": "0e6d04f02050aba210de3c8f5616ae63", "score": "0.6734169", "text": "public function registerStyles()\n\t{\n wp_register_style(TEXTDOMAIN . '-bootstrap-css', ASSETSURL . '/css/bootstrap/css/bootstrap.min.css', '', ASSETS_VERSION);\n wp_register_style(TEXTDOMAIN . '-bootstrap-slider-css', ASSETSURL . '/css/bootstrap/css/bootstrap-slider.min.css', '', ASSETS_VERSION);\n\t\twp_register_style(TEXTDOMAIN . '-main-css', THEMEURL.'/style.css', '', ASSETS_VERSION);\n\t\twp_register_style(TEXTDOMAIN . '-custom-css', ASSETSURL . '/css/custom.css', '', ASSETS_VERSION);\n\t\twp_register_style(TEXTDOMAIN . '-calc', ASSETSURL . '/css/calc.css', '', ASSETS_VERSION);\n wp_register_style(TEXTDOMAIN . '-font-css', ASSETSURL . '/font/font-style.css', '', ASSETS_VERSION);\n wp_register_style(TEXTDOMAIN . '-fontello-css', ASSETSURL . '/fontello/css/icons.css', '', ASSETS_VERSION);\n wp_register_style(TEXTDOMAIN . '-slick-css', ASSETSURL . '/slick/slick.css', '', ASSETS_VERSION);\n\t\twp_register_style(TEXTDOMAIN . '-icon-css', ASSETSURL . '/fontello/css/icons.css', '', ASSETS_VERSION);\n wp_register_style(TEXTDOMAIN . '-datetimepicker-css', ASSETSURL . '/datetimepicker/css/jquery.datetimepicker.min.css', '', ASSETS_VERSION);\n\t}", "title": "" }, { "docid": "c9a6a1b91194050757d55a20189bd03a", "score": "0.6731629", "text": "function mailchimpSF_main_css() {\n require_once(MCSF_DIR . '/views/css/frontend.php');\n}", "title": "" }, { "docid": "559bb45e3cab0f42f3d4db4456278d94", "score": "0.66824335", "text": "function efu_add_stylesheet () {\n\twp_register_style ('Easy_FTP_Upload_css', '/wp-content/plugins/easy-ftp-upload/Easy_FTP_Upload.css');\n\twp_enqueue_style ('Easy_FTP_Upload_css', '/wp-content/plugins/easy-ftp-upload/Easy_FTP_Upload.css');\n}", "title": "" }, { "docid": "f84f6f82c246951244a81ed3db3be56f", "score": "0.6632489", "text": "function admin_css()\r\n{\r\n}", "title": "" }, { "docid": "41276dc768e15d47d496c93270a378aa", "score": "0.66282636", "text": "public function dynamic_css() {\n\t\tinclude_once( ICONIC_WDS_PATH . \"assets/frontend/css/user.css.php\" );\n\t}", "title": "" }, { "docid": "08db9d957d82c19d60f319f938c5288a", "score": "0.6597438", "text": "public function enqueueStyles() {}", "title": "" }, { "docid": "f86a2da35a573e8e15b66598dd1a979b", "score": "0.65957105", "text": "public function registerScripts() {\n $cssFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . \"css/{$this->style}.css\";\n $publishedCss = Yii::app()->assetManager->publish($cssFile);\n Yii::app()->clientScript->registerCssFile($publishedCss);\n }", "title": "" }, { "docid": "5304ab27cf2284a59a3770887e3d0814", "score": "0.65879", "text": "function cr_render_stylesheet(){\n global $SITE_GLOBALS;\n\n if(isset($SITE_GLOBALS['stylesheets'])){\n if(!is_array($SITE_GLOBALS['stylesheets']))\n $SITE_GLOBALS['stylesheets'] = [$SITE_GLOBALS['stylesheets']];\n $SITE_GLOBALS['stylesheets'] = array_unique($SITE_GLOBALS['stylesheets']);\n foreach($SITE_GLOBALS['stylesheets'] as $src){\n echo \"<link rel='stylesheet' type='text/css' href='\" . $src . \"' >\" . PHP_EOL;\n }\n }\n}", "title": "" }, { "docid": "5bebcc0410928d39bbe41af8f694c65a", "score": "0.6585227", "text": "public function loadStyleSheets(){\n //get_template_directory_uri gets the current template Dir + the stylesheet\n //we want to register\n //CSS and CSS folders are from Bootstrap v4.0.0\n\n //BASICS: wp_register_style( [ Name of the stylesheet], [FULL URL OF StyleSheets] , [ DEFUALT: array()--->An array of registered stylesheet handles this stylesheet depends on],[ DEFAULT: null ------> Version - String specifying stylesheet version number], [DEFAULT: 'all' ---> ) The media for which this stylesheet has been defined. ] )\n //SAMPLE: wp_register_style( string $handle, string|bool $src, string[] $deps = array(), string|bool|null $ver = false, string $media = 'all' )\n wp_register_style(\"wpStylesheet\",get_template_directory_uri().'/css/bootstrap.min.css', array(), false,'all' );\n wp_enqueue_style(\"wpStylesheet\");\n\n wp_register_style(\"paulStyleSheet\", get_template_directory_uri().'/style.css',array(), false,'all');\n wp_enqueue_style(\"paulStyleSheet\");\n\n }", "title": "" }, { "docid": "1608cb1f275162b97ac3585a17499c89", "score": "0.6583545", "text": "public function registerStyles() {\n\t\twp_enqueue_style( 'cnc-wcatt-style' , $this->plugin_url . 'assets/style.css');\n\t}", "title": "" }, { "docid": "7f9708902e5e7ba6119a3e2deea4ac2e", "score": "0.6579055", "text": "function theme_admin_stylesheet() { global $der_framework;\n wp_enqueue_style('framework-admin', $der_framework->uri('framework/assets/css/admin.css'), array(), THEME_VERSION);\n wp_enqueue_style('framework-theme-options', $der_framework->uri('framework/theme-options/theme-options.css'), array(), THEME_VERSION);\n wp_enqueue_style('framework-prettyphoto', $der_framework->uri('framework/assets/prettyPhoto/css/prettyPhoto.css'), array(), THEME_VERSION);\n wp_enqueue_style('framework-prettyphoto', $der_framework->uri('framework/assets/prettyPhoto/css/prettyPhoto.css'), array(), THEME_VERSION);\n wp_enqueue_style('framework-colorpicker', $der_framework->uri('framework/assets/colorpicker/css/colorpicker.css'), array(), THEME_VERSION);\n }", "title": "" }, { "docid": "9e58dcb91ebc667d220fbd3c07282fc6", "score": "0.6572899", "text": "public function registerScriptsAndStyles() {\n $this->queStyle($this->baseStyleHandle);\n $this->queStyle($this->iconStyleHandle);\n $this->queScriptWithVersion($this->mainScriptHandle);\n $this->queScript($this->mapScriptHandle);\n }", "title": "" }, { "docid": "95b314fb777fa2e87bab5f50bc1b76ac", "score": "0.65680796", "text": "private function addCssAndJs() {\n\t\t$css = '<link rel=\"stylesheet\" type=\"text/css\" href=\"' .\n\t\t\tt3lib_extMgm::siteRelPath($this->extKey) . 'res/tx_' . $this->extKey . '_style.css\" />';\n\t\tif($GLOBALS['TSFE']->additionalHeaderData[$this->prefixId]){\n\t\t\t$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId] .= $css;\n\t\t} else {\n\t\t\t$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId] = $css;\n\t\t}\n\t\t$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId] .= '<script src=\"' . t3lib_extMgm::siteRelPath($this->extKey) . '/pi1/js/tx_' . $this->extKey . '_pi1.js\" /></script>';\n\t}", "title": "" }, { "docid": "20e3ce33f7f5c822d416aaefc904598d", "score": "0.65579784", "text": "public function enqueue_styles() {\n\n wp_register_style( $this->_token . '-frontend', esc_url( $this->assets_url ) . 'css/frontend' . $this->script_suffix . '.css', array(), $this->_version, false );\n wp_enqueue_style( $this->_token . '-frontend' );\n\n wp_register_style($this->_token . '-dummystyle', esc_url( $this->assets_url ) . 'css/dummystyle' . $this->script_suffix . '.css', array(), $this->_version, false );\n }", "title": "" }, { "docid": "e2f04e371458805b952d2c252fa90002", "score": "0.6556966", "text": "function bbp_register_admin_styles()\n{\n}", "title": "" }, { "docid": "0f88e86855e3211b3248b5bb7cedc528", "score": "0.65520424", "text": "protected function registerCoreCss()\n {\n \tYii::app()->clientScript->registerCssFile($this->getAssetsUrl() . '/css/profile.css');\n }", "title": "" }, { "docid": "7aa75838472cd9c8f371e226a3f1a2fa", "score": "0.65421396", "text": "public function add_dynamic_stylesheet() {\n $mce_css = get_bloginfo('url') . '?custom_styles_trigger=1';\n wp_register_style('custom_styles_css', $mce_css);\n wp_enqueue_style('custom_styles_css');\n }", "title": "" }, { "docid": "c128daf2df1a778dc9354af765ec2739", "score": "0.65367484", "text": "function mm_frontend_style() {\n\tglobal $use_mm_styles;\n\tif( $use_mm_styles ) {\n\t\t?>\n\t\t<link rel='stylesheet' id='mojo-frontent-css' href='<?php echo MM_ASSETS_URL . 'css/front-end.css'; ?>' type='text/css' media='all' />\n\t\t<?php\n\t}\n}", "title": "" }, { "docid": "4fc5d7dad8ab15ffffe6ff476f51e923", "score": "0.65019137", "text": "public function addCSS()\n {\n // $this->addToVar('cssCode', $this->addResource('/twbs/bootstrap/dist/css/bootstrap.min', 'css'));\n // $this->addToVar('cssCode', $this->addResource('/css/alxarafe', 'css'));\n }", "title": "" }, { "docid": "37799eb95bb5838a08975be6785085bc", "score": "0.6493461", "text": "function add_css()\n{\n link_custom_css('/info-page.css');\n link_custom_css('/search.css');\n}", "title": "" }, { "docid": "f25b7016aa80d128cb2c380428ee33d7", "score": "0.6492901", "text": "public function enqueueFrontendStyleAndScripits()\n {\n wp_enqueue_style('gf-theme-settings-front-end-css', plugins_url() . '/gf-image-slider/css/front.css');\n }", "title": "" }, { "docid": "6443899c17125725c5e259b1f75f7f3f", "score": "0.64786327", "text": "function content_add_my_stylesheet(){\n\t\tglobal $ecpt_base_dir;\n\t\t wp_register_style( 'content_add_my_stylesheet',$ecpt_base_dir.'includes/tinymce/css/style.css' );\n\t}", "title": "" }, { "docid": "50568658a8aee71b2ceb01347ea2a6e5", "score": "0.6477823", "text": "public static function registerStyles(): void\n {\n wp_enqueue_style('mt-style', self::assetsPath('stylesheets/main.css'), [], Theme::getVersion());\n //wp_style_add_data('mt-style', 'rtl', 'replace');\n }", "title": "" }, { "docid": "678db1b889ee93cbf9ec9d9e6b31a844", "score": "0.64768475", "text": "function instacalc_load_frontend_styles() {\n\t\t\n\t\twp_enqueue_style( 'instacalc-frontend-styles', plugins_url( 'assets/css/frontend.css', __FILE__ ) );\n\t\t\n\t\t// SCRIPT WITH VARIABLES\n\t\twp_register_script( 'instacalc-frontend-script', plugins_url( 'assets/js/frontend.js', __FILE__ ), array('jquery') );\n\t\t\n\t\t$plugin_url\t\t=\tplugin_dir_url( __DIR__ );\n\t\twp_localize_script( 'instacalc-frontend-script', 'plugin_url', $plugin_url );\n\t\twp_enqueue_script('instacalc-frontend-script');\n\t\t\n\t}", "title": "" }, { "docid": "f32c54fed41e075952fbe70a3b15692e", "score": "0.64738286", "text": "public function addPluginFrontendStylesheets() {\n global $laterpay_version;\n\n wp_register_style(\n 'laterpay-post-view',\n LATERPAY_ASSET_PATH . '/css/laterpay-post-view.css',\n array(),\n $laterpay_version\n );\n wp_register_style(\n 'laterpay-dialogs',\n 'https://static.sandbox.laterpaytest.net/webshell_static/client/1.0.0/laterpay-dialog/css/dialog.css'\n );\n wp_enqueue_style('laterpay-post-view');\n wp_enqueue_style('laterpay-dialogs');\n }", "title": "" }, { "docid": "9f00a28441fdbfbf829023667017ef85", "score": "0.6473447", "text": "protected function loadStylesheets() {\n\t\t$this->pageRenderer->addCssFile($this->stylesheetsPath . 'Taxonomy.css');\n\t}", "title": "" }, { "docid": "9d7201b7025014dd2ad5034589166e77", "score": "0.6462885", "text": "public static function register_css()\n {\n /*$src = plugins_url('css/essay-shop.css',dirname(__FILE__) );\n wp_register_style('essay-shop', $src);\n wp_enqueue_style('essay-shop');*/\n }", "title": "" }, { "docid": "0a86044e30b7369cc5fbf29a834c2579", "score": "0.64163685", "text": "function reg_css($script){\n $i=global_counter('_SCRIPT_COUNTER');\n $cs=Yii::app()->getClientScript();\n $cs->registerCSS(\"registered_script_${i}\", $script, 'screen'); \n }", "title": "" }, { "docid": "bd341ba130096be9f7d570a982c116b3", "score": "0.6413041", "text": "function gsp_registerStyles(){\n\n $version = wp_get_theme()->get('Version');\n wp_enqueue_style('gsp_bootstrap', \"https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css\", array(), '4.5.2', 'all');\n wp_enqueue_style('gsp_fontAwesome', \"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css\", array(), '5.15.3', 'all');\n wp_enqueue_style('gsp_customStyle', get_template_directory_uri() . \"/style.css\", array('gsp_bootstrap'), $version, 'all');\n\n\n}", "title": "" }, { "docid": "e1b24e9a13c3d9720cf78ac7bbad0b7b", "score": "0.64064497", "text": "function registerStyles()\n {\n\n // register stylesheets in queue\n if (is_array($this->stylesheets) && count($this->stylesheets)) {\n\n // sort by priority and loop over\n uasort($this->stylesheets, array($this, 'sortByPriority'));\n foreach ($this->stylesheets as $handle => $stylesheet) {\n\n // skip stylesheets with used handles\n if (in_array($handle, $this->usedStylesheetHandles)) {\n continue;\n }\n\n // hook into WordPress\n wp_register_style($handle, $stylesheet[0], $stylesheet[3], $stylesheet[4], $stylesheet[5]);\n wp_enqueue_style($handle);\n\n // clean up\n $this->usedStylesheetHandles[] = $handle;\n unset($this->stylesheets[$handle]);\n }\n }\n }", "title": "" }, { "docid": "dba920daffb65a8ade2324bfd73b49f0", "score": "0.6397714", "text": "function login_enqueue_scripts()\n {\n echo '<link rel=\"stylesheet\" id=\"sw-login-css\" href=\"' . $this->parent->settings['stylesheet_url'] . '\" type=\"text/css\" media=\"all\" />';\n }", "title": "" }, { "docid": "737736541525ab7c193be7ba48e6673b", "score": "0.6389006", "text": "function load_stylesheets() {\n\n wp_register_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), false,'all');\n wp_enqueue_style('bootstrap');\n\n wp_register_style('style', get_stylesheet_directory_uri() . '/style.css', array(), rand(111,9999), 'all');\n wp_enqueue_style('style');\n\n wp_register_style('my-style', get_stylesheet_directory_uri() . '/page.css', array(), rand(111,9999), 'all');\n wp_enqueue_style('style');\n }", "title": "" }, { "docid": "90493123e768ea4968f2f297dedda0b9", "score": "0.6388923", "text": "function add_my_stylesheet() {\n $myStyleUrl = WP_PLUGIN_URL . '/cleaner-tags/styles.css';\n $myStyleFile = WP_PLUGIN_DIR . '/cleaner-tags/styles.css';\n if ( file_exists($myStyleFile) ) {\n wp_register_style('myStyleSheets', $myStyleUrl);\n wp_enqueue_style('myStyleSheets');\n }\n }", "title": "" }, { "docid": "6079e835a765ea90242ce1dcd90d7e73", "score": "0.63854086", "text": "public function register_styles() {\n\n\t\twp_register_style(\n\t\t\t'agrilifefooter1-styles',\n\t\t\tAF1_DIR_URL . 'css/style.css',\n\t\t\tfalse,\n\t\t\tfilemtime( AF1_DIR_PATH . 'css/style.css' ),\n\t\t\t'screen'\n\t\t);\n\n\t}", "title": "" }, { "docid": "5c5a33484fb78233a7e6a4d685f1571e", "score": "0.6373245", "text": "function stylesheet_book_shortcode() {\n wp_register_style( 'singleBookStyle', plugin_dir_url( __FILE__ ) . 'assets/css/shortcode_book.css' );\n wp_enqueue_style( 'singleBookStyle' );\n }", "title": "" }, { "docid": "3f1f27b836d5cc2f7ca822b55f1b0400", "score": "0.6367911", "text": "public function slcr_vc_iconpicker_base_register_css() { \n wp_register_style('flaticon', SLCR_THEME_CSS_URI . 'flaticon' . SCDS . 'flaticon.css'); \n wp_register_style('wiping', SLCR_THEME_CSS_URI . 'wiping' . SCDS . 'wiping.css'); \n\t}", "title": "" }, { "docid": "6a593fc7ba21656ceddc959aa20bc3c6", "score": "0.63535786", "text": "public function add_css_and_js_to_frontend() {\r\n \t\r\n \tif(!isset($this->main_options['disable_css']) || false == $this->main_options['disable_css']) {\r\n\t\t wp_register_style('pta-sus-style', plugins_url('../assets/css/style.css', __FILE__));\r\n\t\t wp_enqueue_style('pta-sus-style');\r\n\t }\r\n \r\n if ( $this->main_options['enable_signup_search'] && isset($_GET['task_id']) && current_user_can('manage_signup_sheets') ) {\r\n wp_register_style('pta-sus-autocomplete', plugins_url('../assets/css/jquery.autocomplete.css', __FILE__));\r\n wp_enqueue_style('pta-sus-autocomplete');\r\n wp_enqueue_script('jquery-ui-autocomplete');\r\n wp_enqueue_script( 'pta-sus-frontend', plugins_url( '../assets/js/frontend.js' , __FILE__ ));\r\n }\r\n }", "title": "" }, { "docid": "335259e2b2820b2228b5dd311cb8f343", "score": "0.63521093", "text": "function gc15_enqueue_stylesheets(){\n // register stylesheets\n wp_register_style('gc15', gc15_get_stylesheet('app.css'), array(), THEME_VERSION, 'all');\n\n // enqueue stylesheets\n wp_enqueue_style( 'gc15' );\n}", "title": "" }, { "docid": "fe7f7580d8014913f837e0518ed0718d", "score": "0.63513917", "text": "public function getFrontendStyles() {\n }", "title": "" }, { "docid": "28efac3dbc6ef49910ba3ad4e2b57e44", "score": "0.63463825", "text": "public function init() {\n $assetPrefix = Yii::app()->assetManager->publish(dirname(__FILE__) . '/../resources', true, 0, defined('YII_DEBUG'));\n Yii::app()->clientScript->registerCssFile($assetPrefix . '/notes.css');\n //Yii::app()->assetManager->publish(Yii::getPathOfAlias('notes.resources'), true, 0, defined('YII_DEBUG') );\n }", "title": "" }, { "docid": "c83643cf65bdf75b114e15156c3af76d", "score": "0.63420534", "text": "public function wp_varejoecom_register_style_sheets() : void\n {\n wp_register_style('wp_varejoecom-style', plugins_url() . '/wp_varejoecom/dist/css/style.css');\n wp_enqueue_style( 'wp_varejoecom-style' );\n\n wp_register_style('wp_varejoecom-style-bootstrap', plugins_url() . '/wp_varejoecom/dist/css/framework/bootstrap/css/bootstrap.min.css');\n wp_enqueue_style( 'wp_varejoecom-style-bootstrap' );\n }", "title": "" }, { "docid": "86d9381e43b6758fdd1603b77f74fcc6", "score": "0.63392293", "text": "function calendar_admin_init() {\n\t $load_style = false;\n wp_register_style( 'calendar_admin_stylesheet', plugins_url('calendar_admin_stylesheet.css', __FILE__) );\n }", "title": "" }, { "docid": "da572fc0ff682604b03139b936fb9794", "score": "0.63381034", "text": "private function saveStylesheet()\n\t\t{\n\t\t\t$name = FN::sanitise($_REQUEST['name']);\n\t\t\t$fh = fopen(\"css/$name\", \"w+\");\n\t\t\tfwrite($fh, $_REQUEST['content']);\n\t\t\tfclose($fh);\n\t\t}", "title": "" }, { "docid": "da6fee24cec920ff61e1243f4239803e", "score": "0.6296083", "text": "public function stylesheet() {\n\t\tif(Template::exists(Application::getRouter()->getParam('name'))) {\n\t\t\t// Retrieve template\n\t\t\t$_template = Template::get(Application::getRouter()->getParam('name'));\n\t\t\t// Preset headers\n\t\t\theader(\"Cache-Control: public\");\n\t\t\theader('Expires: ' . gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT');\n\t\t\theader(\"Content-type: text/css\");\n\t\t\t// Generate contents; parameter 'minify' minimises output\n\t\t\tif(is_null(Application::getRouter()->getParam('minify')))\n\t\t\t\techo $_template->css;\n\t\t\telse\n\t\t\t\techo self::minifyCSS($_template->css);\n\t\t\texit();\n\t\t} else {\n\t\t\tthrow new \\Exception(\"Stylesheet '\".Application::getRouter()->getParam('uri').\"' cannot be located\");\n\t\t}\n\t}", "title": "" }, { "docid": "0fc22ff374685138856919b464bdf1eb", "score": "0.62902135", "text": "function css_adition(){\n\t\twp_register_style('wiki-headers-extending',plugins_url('/',__FILE__).'css/headers-extending.css');\n\t\twp_enqueue_style('wiki-headers-extending');\t\t\n\t\t\n\t}", "title": "" }, { "docid": "415a8240fecba527b849eba72ad8b7ca", "score": "0.62859946", "text": "function add_css()\r\n\t{\r\n\t\twp_register_style('annonces_css_main', ANNONCES_CSS_URL . 'annonce.css', '', ANNONCE_PLUGIN_VERSION);\r\n\t\twp_enqueue_style('annonces_css_main');\r\n\t\twp_register_style('annonces_css_fileuploader', ANNONCES_CSS_URL . 'fileuploader.css', '', ANNONCE_PLUGIN_VERSION);\r\n\t\twp_enqueue_style('annonces_css_fileuploader');\r\n\t}", "title": "" }, { "docid": "b04405b8b6508db408ab9c801933a933", "score": "0.62857133", "text": "function template_css()\n{\n\ttheme()->template_css();\n}", "title": "" }, { "docid": "1356bba95cea85b02c16296801a6d93b", "score": "0.62817734", "text": "public function addStyles()\n {\n wp_enqueue_style(\n \t'UserAccessManagerAdmin', \n UAM_URLPATH . \"css/uamAdmin.css\", \n false, \n '1.0',\n 'screen'\n );\n \n wp_enqueue_style(\n \t'UserAccessManagerLoginForm', \n UAM_URLPATH . \"css/uamLoginForm.css\", \n false, \n '1.0',\n 'screen'\n );\n }", "title": "" }, { "docid": "14d652e7342a060e70cf7d2a891447c6", "score": "0.62816656", "text": "function phorum_mod_announcements_css_register($data)\n{\n $data['register'][] = array(\n \"module\" => \"announcements\",\n \"where\" => \"after\",\n \"source\" => \"template(announcements::css)\"\n );\n return $data;\n}", "title": "" }, { "docid": "2be122bd4c3c1e65c1f1137a59abb0fc", "score": "0.62722564", "text": "protected function loadStylesheets()\n {\n $files = [\n 'EXT:frontend_editing/Resources/Public/Css/frontend_editing.css',\n 'EXT:backend/Resources/Public/Css/backend.css'\n ];\n foreach ($files as $file) {\n $this->pageRenderer->addCssFile($file);\n }\n }", "title": "" }, { "docid": "55ee520fd86543367fe1a69a84bdb709", "score": "0.6266681", "text": "function si_admin_styles() {\r\n\twp_register_style('si_admin_custom', get_template_directory_uri() . '/functions/css/si-admin.css');\r\n\twp_enqueue_style('si_admin_custom');\r\n}", "title": "" }, { "docid": "b616316fb2c4bcb4956768afdeea4968", "score": "0.6260765", "text": "function cssFile($params) {\n // This stops styles inadvertently clashing with the main site.\n if (strpos($_SERVER['REQUEST_URI'], '/plugins/plugincreationwizard/') === 0) {\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"'.$this->getThemePath().'/css/style.css\" />';\n }\n }", "title": "" }, { "docid": "09581b89c9be920cf6564df834e0bcb7", "score": "0.6257425", "text": "function add_css()\n{\n link_custom_css('/info-page.css');\n}", "title": "" }, { "docid": "09581b89c9be920cf6564df834e0bcb7", "score": "0.6257425", "text": "function add_css()\n{\n link_custom_css('/info-page.css');\n}", "title": "" }, { "docid": "9539c32016f60dd354f6cec347c741fc", "score": "0.6254579", "text": "function load_stylesheets() {\n\n\twp_register_style('bootstrap', get_template_directory_uri() . '/library/bootstrap/css/bootstrap.min.css', array(), 1, 'all');\n\twp_enqueue_style('bootstrap');\n\n\twp_register_style('fontawesome-free', get_template_directory_uri() . '/library/fontawesome-free/css/all.min.css', array(), 1, 'all');\n\twp_enqueue_style('fontawesome-free');\n\n\twp_register_style('clean-blog-font', get_template_directory_uri() . '/css/clean-blog.min.css', array(), 1, 'all');\n\twp_enqueue_style('clean-blog-font');\n\n\twp_register_style('clean-blog', get_template_directory_uri() . '/css/clean-blog.css', array(), 1, 'all');\n\twp_enqueue_style('clean-blog');\n}", "title": "" }, { "docid": "3f246d6c335b295a145dc4d5ba24e233", "score": "0.6246605", "text": "public function importStyleSheet($stylesheet);", "title": "" }, { "docid": "74dc71ffa9bbbf67914ec36c3c0e4c9c", "score": "0.6242359", "text": "function register_styles() {\r\n // Fail silently if this is not a sub-class instance\r\n if( !isset( $this->name ) ) {\r\n return false;\r\n }\r\n \r\n wp_register_style( \"slidedeck-deck-{$this->name}-admin\", SLIDEDECK2_PROFESSIONAL_URLPATH . '/sources/' . $this->name . '/source.css', array( 'slidedeck-admin' ), SLIDEDECK2_PROFESSIONAL_VERSION, 'screen' );\r\n }", "title": "" }, { "docid": "dea875c6a1b58a72bef9bff04650fedd", "score": "0.6235886", "text": "function pf_createCustomStyleSheet()\n{\n $postData = pf_getPostData();\n\n /**\n * Return the content from a field inside a repeater as an array\n *\n * @param string repeater repreter name\n * @param string field field you want to retrive\n * @return string return one or more strings if mutiple fields in repeater\n */\n $data = pf_getRepeaterData('pf_fonts', 'pf_font_name');\n $colors = pf_getRepeaterData('pf_projectColors', 'pf_color');\n\n if (file_exists($postData['currentFilePath'].$postData['fileName'])) {\n unlink($postData['currentFilePath'].$postData['fileName']);\n pf_createCssFile($data, $postData['currentFilePath'], $postData['fileName'], false, \"font-family\");\n pf_createCssFile($colors, $postData['currentFilePath'], $postData['fileName'], true, \"background-color\");\n } else {\n pf_createCssFile($data, $postData['currentFilePath'], $postData['fileName'], false, \"font-family\");\n pf_createCssFile($colors, $postData['currentFilePath'], $postData['fileName'], true, \"background-color\");\n }\n}", "title": "" }, { "docid": "35c71a15a7f6a413f550401aad263cb1", "score": "0.62327266", "text": "function prefix_add_my_stylesheet() {\n wp_register_style( 'prefix-style', plugins_url('/css/yourfooter.css', __FILE__) );\n wp_enqueue_style( 'prefix-style' );\n }", "title": "" }, { "docid": "ef8ba891ce51921b9073dcaa36f99358", "score": "0.6226301", "text": "function SM_RSSPLUGIN_safely_add_stylesheet_to_admin() {\n\n wp_enqueue_style( 'prefix-style', plugins_url('css/style.css', __FILE__) );\n\n }", "title": "" }, { "docid": "1661f0cbd606a66ef6167b88061152ee", "score": "0.6223082", "text": "function insert_css_admin_head() {\r\n\r\n // Ajout du css dans le Header\r\n wp_register_style('form-contact-angular-css-admin', esc_url( plugins_url('webroot/style/form-contact-admin.css', __FILE__ )));\r\n wp_enqueue_style('form-contact-angular-css-admin');\r\n\r\n}", "title": "" }, { "docid": "0f405815db916bfaeee7e58627720df1", "score": "0.622227", "text": "function addStylesheet($add_stylesheet)\n {\n if (trim($add_stylesheet) != \"\") {\n $this->stylesheet = $add_stylesheet;\n }\n }", "title": "" }, { "docid": "2edd9602e95bbdbfd6a097929a2d4f13", "score": "0.6220112", "text": "function addWPAdminStyles(){\n global $DOPBSP;\n \n /*\n * Register Styles.\n */\n wp_register_style('DOPBSP-css-backend-wp-admin', $DOPBSP->paths->url.'assets/gui/css/backend-wp-admin.css');\n wp_register_style('DOPBSP-css-backend-shortcodes', $DOPBSP->paths->url.'assets/gui/css/backend-shortcodes.css');\n \n /*\n * Enqueue Styles.\n */\n wp_enqueue_style('DOPBSP-css-backend-wp-admin');\n wp_enqueue_style('DOPBSP-css-backend-shortcodes');\n }", "title": "" }, { "docid": "15ea8b18df2b20e3bb3d633bbf3125c8", "score": "0.62190086", "text": "public static function registerStylesheet($src)\n\t{\n\t\tarray_push(static::$stylesheets, $src);\n\t}", "title": "" }, { "docid": "59f75701d6e2fd85c97027a34a4634be", "score": "0.6215905", "text": "function jmra_admin_interface_styles( $hook ) {\n\tif( $hook != 'toplevel_page_stagframework' ) return;\n\t\n\twp_register_style( 'stag-admin-interface', plugin_dir_url(__FILE__) . '/assets/css/stag-admin-interface.css', array( 'wp-color-picker' ), JMRA_FRAMEWORK_VERSION );\n\twp_register_script( 'stag-admin-interface', plugin_dir_url(__FILE__) . '/assets/js/stag-admin-interface.js', array( 'jquery', 'wp-color-picker' ), JMRA_FRAMEWORK_VERSION, true );\n\n\twp_enqueue_style( 'stag-admin-interface' );\n\n\twp_enqueue_media();\n\twp_enqueue_script( 'stag-admin-interface' );\n\n}", "title": "" }, { "docid": "5196792bc2b93123338955391e1027a2", "score": "0.62149084", "text": "function ch_gencss()\n\t{\n//\t\techo '<link rel=\"stylesheet\" href=\"' . $cssurl .'\" type=\"text/css\" />' ;\n\t}", "title": "" }, { "docid": "8653b2e53c24991108d8adab74414896", "score": "0.6213387", "text": "function versioned_stylesheet($relative_url, $add_attributes=\"\"){\n echo '<link rel=\"stylesheet\" href=\"'.versioned_resource($relative_url).'\" '.$add_attributes.'>'.\"\\n\";\n}", "title": "" }, { "docid": "a36ca08b64024992e2c58b334d37ed1d", "score": "0.62014884", "text": "function elgg_register_css($name, $url, $priority = null) {\n\treturn elgg_register_external_file('css', $name, $url, 'head', $priority);\n}", "title": "" }, { "docid": "873c04fa2e318758b9edf608dcf3d350", "score": "0.6200363", "text": "private function register_scripts_and_styles() {\n if (is_admin()) {\n $this->load_file(self::slug . '-admin-style', '/css/admin.css');\n $this->load_file( self::slug . '-moment-js', '/js/moment-with-locales.min.js',true );\n \n \n } //is_admin()\n else {\n } // end if/else\n }", "title": "" }, { "docid": "155b765bbd1ba6ee86a9f37c31c0e646", "score": "0.619109", "text": "function addStyles(){\n global $DOPBSP;\n \n /*\n * Register styles.\n */\n wp_register_style('DOPBSP-css-dopselect', $DOPBSP->paths->url.'libraries/css/jquery.dop.Select.css');\n wp_register_style('DOPBSP-css-businesses', $DOPBSP->paths->url.'libraries/css/pinpoint-businesses.css');\n wp_register_style('DOPBSP-css-backend', $DOPBSP->paths->url.'assets/gui/css/backend.css');\n \n wp_register_style('DOPBSP-css-backend-addons', $DOPBSP->paths->url.'assets/gui/css/backend-addons.css');\n wp_register_style('DOPBSP-css-backend-calendar', $DOPBSP->paths->url.'assets/gui/css/jquery.dop.backend.BSPCalendar'.(DOPBSP_DEVELOPMENT_MODE ? '.alpha':'').'.css');\n wp_register_style('DOPBSP-css-backend-coupons', $DOPBSP->paths->url.'assets/gui/css/backend-coupons.css');\n wp_register_style('DOPBSP-css-backend-dashboard', $DOPBSP->paths->url.'assets/gui/css/backend-dashboard.css');\n wp_register_style('DOPBSP-css-backend-discounts', $DOPBSP->paths->url.'assets/gui/css/backend-discounts.css');\n wp_register_style('DOPBSP-css-backend-emails', $DOPBSP->paths->url.'assets/gui/css/backend-emails.css');\n wp_register_style('DOPBSP-css-backend-extras', $DOPBSP->paths->url.'assets/gui/css/backend-extras.css');\n wp_register_style('DOPBSP-css-backend-forms', $DOPBSP->paths->url.'assets/gui/css/backend-forms.css');\n wp_register_style('DOPBSP-css-backend-locations', $DOPBSP->paths->url.'assets/gui/css/backend-locations.css');\n wp_register_style('DOPBSP-css-backend-reservations', $DOPBSP->paths->url.'assets/gui/css/backend-reservations.css');\n wp_register_style('DOPBSP-css-backend-reservations-add', $DOPBSP->paths->url.'assets/gui/css/jquery.dop.backend.BSPReservationsAdd.css');\n wp_register_style('DOPBSP-css-backend-reservations-calendar', $DOPBSP->paths->url.'assets/gui/css/jquery.dop.backend.BSPReservationsCalendar.css');\n wp_register_style('DOPBSP-css-backend-settings', $DOPBSP->paths->url.'assets/gui/css/backend-settings.css');\n wp_register_style('DOPBSP-css-backend-themes', $DOPBSP->paths->url.'assets/gui/css/backend-themes.css');\n wp_register_style('DOPBSP-css-backend-tools', $DOPBSP->paths->url.'assets/gui/css/backend-tools.css');\n wp_register_style('DOPBSP-css-backend-translation', $DOPBSP->paths->url.'assets/gui/css/backend-translation.css');\n\n /*\n * Enqueue styles.\n */\n wp_enqueue_style('thickbox');\n wp_enqueue_style('DOPBSP-css-dopselect');\n wp_enqueue_style('DOPBSP-css-businesses');\n wp_enqueue_style('DOPBSP-css-backend');\n wp_enqueue_style('DOPBSP-css-backend-addons');\n wp_enqueue_style('DOPBSP-css-backend-calendar');\n wp_enqueue_style('DOPBSP-css-backend-coupons');\n wp_enqueue_style('DOPBSP-css-backend-dashboard');\n wp_enqueue_style('DOPBSP-css-backend-emails');\n wp_enqueue_style('DOPBSP-css-backend-discounts');\n wp_enqueue_style('DOPBSP-css-backend-extras');\n wp_enqueue_style('DOPBSP-css-backend-forms');\n wp_enqueue_style('DOPBSP-css-backend-locations');\n wp_enqueue_style('DOPBSP-css-backend-reservations');\n wp_enqueue_style('DOPBSP-css-backend-reservations-add');\n wp_enqueue_style('DOPBSP-css-backend-reservations-calendar');\n wp_enqueue_style('DOPBSP-css-backend-settings');\n wp_enqueue_style('DOPBSP-css-backend-themes');\n wp_enqueue_style('DOPBSP-css-backend-tools');\n wp_enqueue_style('DOPBSP-css-backend-translation');\n }", "title": "" }, { "docid": "66b77f7357f922f8dcd504e723fd1a1b", "score": "0.6185123", "text": "function matty_theme_quickswitch_css () {\n\tif ( ! current_user_can( 'switch_themes' ) ) { return; }\n\n\t$plugin_url = trailingslashit( plugin_dir_url( __FILE__ ) );\n\n\twp_register_style( 'matty-theme-quickswitch', $plugin_url . 'assets/css/style.css', 'screen', '1.2.3' );\n\twp_enqueue_style( 'matty-theme-quickswitch' );\n}", "title": "" }, { "docid": "8614277e32eaf1e55348306fc450f990", "score": "0.61832756", "text": "function msc_prefix_add_stylesheet() {\r\n wp_enqueue_style( 'prefix-style', plugins_url('msc-style.css', __FILE__) );\r\n }", "title": "" }, { "docid": "af5b0f9933577fa9fe912b15f5b30949", "score": "0.6180247", "text": "protected function registerClientCss() {\n\t\tif ($this->cssFile!==false) {\n\t\t\tif (empty($this->cssFile)) {\n\t\t\t\t$assetsUrl = $this->getAssetsUrl();\n\t\t\t\t$this->cssFile = $assetsUrl.'/dropdownbox.css';\n\t\t\t}\n\t\t\tYii::app()->getClientScript()->registerCssFile($this->cssFile);\n\t\t}\n\t}", "title": "" }, { "docid": "dce2b4929fb8348b77c4cc40f2b9b318", "score": "0.61750317", "text": "function _simpletip_include_css() {\n $context = sfContext::getInstance();\n $response = $context->getResponse();\n \n $response->addStylesheet('/trSimpleTipPlugin/css/simpletip.css');\n}", "title": "" }, { "docid": "7ad6b4f74141ef2f8bd16d3dffa3eb81", "score": "0.6164691", "text": "function add_css() {\r\n print \"<style>\\n /* Styles added by \" . $this->pluginName . \" Plugin */\\n\";\r\n\r\n if ($this->options['logo_url']) : ?>\r\nh1 a {background: url(<?php echo $this->options['logo_url'];?>) no-repeat center;}\r\n <?php endif;\r\n\r\n if ($this->options['form_title']) : ?>\r\n.lc_form_title {<?php print $this->options['form_title_style']; ?>}\r\n <?php endif;\r\n\r\n if ($this->options['form_text']) : ?>\r\n.lc_form_text {<?php print $this->options['form_text_style']; ?>}\r\n <?php endif;\r\n\r\n print '</style>';\r\n }", "title": "" }, { "docid": "d3317bbda690a0893658c68044153f79", "score": "0.61615646", "text": "function get_artism_stylesheet() {\n\t$manifest = get_artism_manifest();\n\treturn get_template_directory_uri() . '/frontend/build/' . $manifest['main.css'];\n}", "title": "" }, { "docid": "ce36f0c6038aeb858399f16ae7961f48", "score": "0.6156523", "text": "public function add_styles()\r\n\t{\r\n\t\tglobal $pagenow, $typenow, $plugin_page;\r\n\r\n\t\tif (\r\n\t\t\t(in_array($pagenow, array('post.php', 'post-new.php')) && $typenow == $this->_screen)\r\n\t\t\t|| ($pagenow == 'admin.php' && $plugin_page == $this->_screen)\r\n\t\t) {\r\n\t\t\tICF_Loader::register_css();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c68b6ca9bc442ce636fe9b70f1900895", "score": "0.6151723", "text": "public function render() {\n\t\tforeach ($this->_styles as $style) {\n\t\t\t// @todo Find the bundles that are required for the style.\n\t\t\t$this->_addTag('link', array(\n\t\t\t\t'rel' => 'stylesheet',\n\t\t\t\t'type' => 'text/css',\n\t\t\t\t'href' => \"/css/$style.css\"\n\t\t\t));\n\t\t}\n\t\t$this->_tags();\n\t}", "title": "" }, { "docid": "1fdc57b79dd35abadb959ea585f86516", "score": "0.6147811", "text": "function calendar_css() {\n\twp_register_style( 'cc', plugins_url( '/calendar_stylesheet.css' , __FILE__ ) );\n\twp_enqueue_style('cc', plugins_url( '/calendar_stylesheet.css' , __FILE__ ) );\n\n}", "title": "" }, { "docid": "8bbec660ef8c32ef99a4512bf796e5a2", "score": "0.6147749", "text": "function register_scripts_and_styles() {\n\t\tglobal $pagenow;\n\n\t\t// Only load this on the proper page\n\t\tif ( 'tools.php' != $pagenow || !isset( $_GET['page'] ) || $_GET['page'] != $this->plugin_slug )\n\t\t\treturn;\n\n\t\twp_enqueue_style( 'acm-style', AD_CODE_MANAGER_URL . '/common/css/acm.css' );\n\t\twp_enqueue_script( 'acm', AD_CODE_MANAGER_URL . '/common/js/acm.js', array( 'jquery' ), false, true );\n\t}", "title": "" }, { "docid": "5f6f0c67d8b3cd1a90e4d1109a4761ec", "score": "0.6146187", "text": "private function _browser_css()\n\t{\n\t\tee()->cp->add_to_head(ee()->view->head_link('css/file_browser.css'));\n\t}", "title": "" }, { "docid": "d475265e838201ba3dc4d26bbd652f6b", "score": "0.6144652", "text": "public function the_css() {\n wp_register_style('multiple-header-images', plugins_url('css/style.css', $this->plugin_file()));\n wp_enqueue_style('multiple-header-images');\n }", "title": "" }, { "docid": "376cf8f3cbeebae5220bd4db7866310a", "score": "0.61442834", "text": "function buddyboss_login_stylesheet() {\n\t/**\n\t * Assign the Boss version to a var\n\t */\n\t$theme\t\t\t = wp_get_theme( 'boss' );\n\t$boss_version\t = $theme[ 'Version' ];\n\n\t$css_dest\t\t\t = ( is_rtl() ) ? '/css-rtl' : '/css';\n\t$css_compressed_dest = ( is_rtl() ) ? '/css-rtl-compressed' : '/css-compressed';\n\t$CSS_URL\t\t\t = boss_get_option( 'boss_minified_css' ) ? get_template_directory_uri() . $css_compressed_dest : get_template_directory_uri() . $css_dest;\n\n\tif ( boss_get_option( 'boss_custom_login' ) ) {\n\t\twp_enqueue_style( 'custom-login', $CSS_URL . '/style-login.css', false, $boss_version, 'all' );\n\t}\n}", "title": "" }, { "docid": "3c0e9bfdd9797ea710ed15b06f9e9c64", "score": "0.61436117", "text": "function register_styles()\n {\n wp_enqueue_style('style-lgpd', plugin_dir_url(__FILE__) . 'css/style.css');\n\n wp_enqueue_script('script-lgpd', plugin_dir_url(__FILE__) . 'js/main.js');\n\n wp_register_script('cookie-js', 'https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js');\n\n wp_enqueue_script('cookie-js');\n }", "title": "" }, { "docid": "bdd99ebb72b2e317b213026aedfa1b6e", "score": "0.61371195", "text": "function addCSSFiles()\n\t{\n\t\t$this->pageObject->AddCSSFile(\"jquery.signaturepad.css\");\n\t}", "title": "" }, { "docid": "7607158fe4b168dd7ed87e072d9866ad", "score": "0.61369956", "text": "public static function register_styles() {\n\t\twp_enqueue_style( 'thickbox' );\n\t\t// wp_enqueue_style( 'jquery' );\n \n $styles = array();\n\n \t\n $styles[] =\tarray(\n \t\t'name'\t\t\t => 'jscrollpane',\n \t\t'src'\t\t\t => get_bloginfo( 'stylesheet_directory' ) .'/inc/js/jScrollPane/style/jquery.jscrollpane.css',\n \t\t'deregister' => FALSE,\n \t\t'deps'\t\t\t => FALSE,\n \t\t'version'\t\t => THEME_VERSION,\n \t\t'media'\t\t\t => 'all'\n \t);\n \t\n \t$styles[] =\tarray(\n \t\t'name'\t\t\t => 'layout-css',\n \t\t'src'\t\t\t => get_bloginfo( 'stylesheet_directory' ) .'/layout.css',\n \t\t'deregister' => FALSE,\n \t\t'deps'\t\t\t => FALSE,\n \t\t'version'\t\t => THEME_VERSION,\n \t\t'media'\t\t\t => 'all'\n \t);\n \t\n $styles[] =\tarray(\n \t\t'name'\t\t\t => 'main-css',\n \t\t'src'\t\t\t => get_bloginfo( 'stylesheet_directory' ) .'/style.css',\n \t\t'deregister' => FALSE,\n \t\t'deps'\t\t\t => array('jquery-ui-css', 'layout-css'),\n \t\t'version'\t\t => THEME_VERSION,\n \t\t'media'\t\t\t => 'all'\n \t);\n \t\n $styles[] =\tarray(\n \t\t'name'\t\t\t => 'jquery-ui-css',\n \t\t'src'\t\t\t => get_bloginfo( 'stylesheet_directory' ) .'/inc/js/jquery-ui-1.8.15/css/ui-lightness/jquery-ui-1.8.15.custom.css',\n \t\t'deregister' => FALSE,\n \t\t'deps'\t\t\t => array('avenir'),\n \t\t'version'\t\t => THEME_VERSION,\n \t\t'media'\t\t\t => 'all'\n \t);\n \t\n $styles[] = array(\n 'name' => 'avenir',\n 'src' => 'http://fast.fonts.com/cssapi/14030925-5d26-4bc0-ba43-311f095ec21f.css',\n 'deregister' => FALSE,\n 'deps' => FALSE,\n 'version' => THEME_VERSION,\n 'media' => 'all'\n );\n\t\t\n\t\tself::_register_styles( $styles );\n\t\t\n\t\t// kinda kludgy use of global wp_styles to get CSS conditionals into Wordpress head\n $conditionals = array(\n // array(\n // 'name' => 'ie-lt-8',\n // 'src' => THEME_CSS_URL . '/ie.css',\n // 'deps' => FALSE,\n // 'version' => THEME_VERSION,\n // 'media' => 'all',\n // 'condition' => 'lte IE 8'\n // ),\n // array(\n // 'name' => 'ie-8',\n // 'src' => THEME_CSS_URL . '/ie8.css',\n // 'deps' => FALSE,\n // 'version' => THEME_VERSION,\n // 'media' => 'all',\n // 'condition' => 'IE 8'\n // )\n );\n\t\t\n\t\tself::_register_conditional_styles( $conditionals );\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "1bfe73220e25d2a14ed30d65fdc215ea", "score": "0.6135062", "text": "function add_main_stylesheet(){\n\twp_enqueue_style('anirecs-style', get_stylesheet_uri());\n}", "title": "" }, { "docid": "25cc31d24e3b061b54e1d1e62c46a2a6", "score": "0.61269325", "text": "public function on_vc_base_register_admin_css(){\r\n wp_register_style( 'mcw_ue_admin_css', plugins_url('admin/mcw_userelements_vc.css', __FILE__), array(), '1.0.0' );\r\n }", "title": "" }, { "docid": "63e41582a301894aa2adc43b3273913f", "score": "0.611185", "text": "function css($stylesheet){\n\t\treturn html::stylesheet(DS . c::get('chartridge.root') . DS . $stylesheet);\n\t}", "title": "" }, { "docid": "59393f6f7c83b1cc5340145a76da27a8", "score": "0.610527", "text": "public function registerCss() {\n Yii::app()->clientScript->registerCssFile($this->getAssetsUrl() . '/css/smoothness/jquery-ui-1.8.23.custom.css');\n }", "title": "" }, { "docid": "91734e22bda5f1c01c2f55ed5ecbb14f", "score": "0.6102558", "text": "function getStylesheetFilename() {\n\t\treturn 'custom.css';\n\t}", "title": "" } ]
ef15bb1074082ac3a763d155dd7a0916
Parse an AMQP fieldarray value.
[ { "docid": "5b45f8fcb4a7da3ef33bcab8712c87c5", "score": "0.61694974", "text": "private function parseArray()\n {\n $length = $this->parseUnsignedInt32();\n $stopAt = strlen($this->buffer) - $length;\n $array = [];\n\n while (strlen($this->buffer) > $stopAt) {\n $array[] = $this->parseField();\n }\n\n return $array;\n }", "title": "" } ]
[ { "docid": "e90a69891abe645717fc4e251487d347", "score": "0.5874806", "text": "public function makeArrayFieldValue($value)\n {\n $value = $this->_unserializeValue($value);\n if (!$this->_isEncodedArrayFieldValue($value)) {\n $value = $this->_encodeArrayFieldValue($value);\n }\n return $value;\n }", "title": "" }, { "docid": "04202ec9d76af9f76df918512f94bb91", "score": "0.58553433", "text": "public function parse(array $item);", "title": "" }, { "docid": "20d35fa195e6fd6a388935a07868643d", "score": "0.58182937", "text": "public function makeArrayFieldValue($value)\n {\n $value = $this->unserializeValue($value);\n if (!$this->isEncodedArrayFieldValue($value)) {\n $value = $this->encodeArrayFieldValue($value);\n }\n return $value;\n }", "title": "" }, { "docid": "8f8ecd738660c7e060535d2c19a7bc24", "score": "0.56906605", "text": "protected function _decodeArrayFieldValue(array $value)\n {\n $result = array();\n unset($value['__empty']);\n foreach ($value as $_id => $row) {\n if (!is_array($row) || !array_key_exists('country', $row) || !array_key_exists('price', $row)) {\n continue;\n }\n $country = $row['country'];\n $price =$row['price'];\n $result[$country] = $price;\n }\n return $result;\n }", "title": "" }, { "docid": "7dd2d98ba9d78178e0189f968bbcdf08", "score": "0.5619052", "text": "abstract public function fromArray(array $fields): array;", "title": "" }, { "docid": "a5c8e2857094a192d5c0b59e1d3e91f6", "score": "0.5584678", "text": "abstract public function parse(): array;", "title": "" }, { "docid": "3a33e461b6fcaea8607cf869a4f239d2", "score": "0.5498109", "text": "protected function parseField($field = '')\n {\n empty($field) && $field = $this->options['field'];\n if (empty($field)) {\n return '*';\n }\n \n if (is_array($field)) {\n $arr = array();\n foreach ($field as $key => $data) {\n if (is_array($data)) {\n foreach ($data as $value) {\n $arr[] = \"{$key}.`{$value}`\";\n }\n } else {\n $arr[] = \"`{$data}`\";\n }\n }\n \n empty($arr) || $field = implode(',', $arr);\n }\n \n return $field;\n }", "title": "" }, { "docid": "049b93706a79d2321ba5a3d2a9959bcc", "score": "0.54918134", "text": "function _parse_type($field) {\n if ($field->type == 'array') {\n if (isset($field->items->type)) {\n return '['.$field->items->type.']';\n } else {\n return 'array';\n }\n } else {\n if (isset($field->format)) {\n return $field->format;\n } else {\n return $field->type;\n }\n }\n}", "title": "" }, { "docid": "e9ceb145274ac4216c2f9208cde9e5ad", "score": "0.5489141", "text": "public function validateRequiredArrayField(array $data_to_post, $array_field);", "title": "" }, { "docid": "8fabc1e71c97b240640d433b836d614a", "score": "0.5450889", "text": "public static function fromArray(array $array) : self\n {\n return new self(\n ...array_map(function ($element) : Field {\n if (is_string($element)) {\n $element = ['field_name' => $element];\n }\n\n if (!isset($element['field_name'])) {\n throw new InvalidArgumentException(\n 'The array representation of a field must contain the \"field_name\" element'\n );\n }\n\n if ($element['field_name'] === 'email') {\n return self::createEmailField($element);\n }\n\n return self::createScalarField($element);\n }, $array)\n );\n }", "title": "" }, { "docid": "d9917e04923483188a22f9b1cc07f6a4", "score": "0.5434112", "text": "function parseMySQLFieldData(&$row) {\n $type = $this->parseMySQLFieldType($row['Type']);\n $autoIncrement = (strtolower($row['Extra']) == 'auto_increment');\n $default = NULL;\n if (isset($row['Default'])) {\n if ($type[0] == 'integer') {\n $default = (int)$row['Default'];\n } elseif ($type[0] == 'float') {\n $default = (float)$row['Default'];\n } elseif (empty($row['Default']) && strtolower($row['Null']) == 'yes') {\n $default = NULL;\n } else {\n $default = $row['Default'];\n }\n }\n return array(\n 'name' => $row['Field'],\n 'type' => $type[0],\n 'size' => $type[1],\n 'null' => (strtolower($row['Null']) == 'yes') ? 'yes' : 'no',\n 'default' => isset($default) ? (string)$default : NULL,\n 'autoinc' => $autoIncrement ? 'yes' : 'no'\n );\n }", "title": "" }, { "docid": "e1b0640ea0221146ecce92c8cb6184b5", "score": "0.5402358", "text": "protected function decodeArrayFieldValue(array $value)\n {\n $result = [];\n unset($value['__empty']);\n foreach ($value as $row) {\n if (!is_array($row)\n || !array_key_exists('customer_attribute_code', $row)\n || !array_key_exists('zebreco_field_name', $row)\n ) {\n continue;\n }\n $attributeCode = $row['customer_attribute_code'];\n $zebrecoFieldName = $row['zebreco_field_name'];\n $result[$attributeCode] = $zebrecoFieldName;\n }\n return $result;\n }", "title": "" }, { "docid": "7502cdc4f80e9c604362f8bc6872403e", "score": "0.5390759", "text": "protected function _parse()\n {\n $value = ArrayMethods::clean(\n ArrayMethods::trim(Text::split($this->_raw, \",\"))\n );\n \n $elements = count($value);\n if ($elements > 1) {\n $this->value = new TagValues($this->_parseValue($value));\n } else if ($elements == 1 && strpos($value[0], '=') !== false) {\n $this->value = new TagValues($this->_parseValue($value));\n } else {\n $this->value = reset($value);\n }\n }", "title": "" }, { "docid": "6123c013b9e6cfbcf2912ff6cd4820d9", "score": "0.53766996", "text": "public function testInvalidFieldSetWithMultiDimensionArray()\n {\n $input = [\n 'fields' => ['type' => ['subtype' => 'fields1,fields2']]\n ];\n $this->parser->parse($this->prepareRequest($input));\n }", "title": "" }, { "docid": "6506aea76abaed2b3764b6f2118aa6be", "score": "0.5351759", "text": "public abstract function parse_value($value);", "title": "" }, { "docid": "494a48b21ca62d0e700b8e8dbd947703", "score": "0.53373617", "text": "public function parseValue($value);", "title": "" }, { "docid": "494a48b21ca62d0e700b8e8dbd947703", "score": "0.53373617", "text": "public function parseValue($value);", "title": "" }, { "docid": "225436c7bfb616a9e58a18821cd01a89", "score": "0.5328182", "text": "protected function parseFields() {\n\t\t$queryFields = array();\n\n\t\t//parse mapping\n\t\tforeach ($this->settings['fields.'] as $fieldname => $options) {\n\t\t\t$fieldname = str_replace('.', '', $fieldname);\n\t\t\tif (isset($options) && is_array($options)) {\n\t\t\t\tif(!isset($options['special'])) {\n\t\t\t\t\t$mapping = $options['mapping'];\n\n\t\t\t\t\t//if no mapping default to the name of the form field\n\t\t\t\t\tif (!$mapping) {\n\t\t\t\t\t\t$mapping = $fieldname;\n\t\t\t\t\t}\n\n\t\t\t\t\t$fieldValue = $this->utilityFuncs->getGlobal($mapping, $this->gp);\n\n\t\t\t\t\t//pre process the field value. e.g. to format a date\n\t\t\t\t\tif (isset($options['preProcessing.']) && is_array($options['preProcessing.'])) {\n\t\t\t\t\t\tif(!isset($options['preProcessing.']['value'])) {\n\t\t\t\t\t\t\t$options['preProcessing.']['value'] = $fieldValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$fieldValue = $this->utilityFuncs->getSingle($options, 'preProcessing');\n\t\t\t\t\t}\n\n\t\t\t\t\tif (isset($options['mapping.']) && is_array($options['mapping.'])) {\n\t\t\t\t\t\tif(!isset($options['mapping.']['value'])) {\n\t\t\t\t\t\t\t$options['mapping.']['value'] = $fieldValue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$fieldValue = $this->utilityFuncs->getSingle($options, 'mapping');\n\t\t\t\t\t}\n\n\t\t\t\t\t//process empty value handling\n\t\t\t\t\tif (isset($options['ifIsEmpty']) && strlen($fieldValue) === 0) {\n\t\t\t\t\t\t$fieldValue = $this->utilityFuncs->getSingle($options, 'ifIsEmpty');\n\t\t\t\t\t}\n\n\t\t\t\t\tif (intval($this->utilityFuncs->getSingle($options, 'zeroIfEmpty')) === 1 && strlen($fieldValue) === 0) {\n\t\t\t\t\t\t$fieldValue = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t//process array handling\n\t\t\t\t\tif (is_array($fieldValue)) {\n\t\t\t\t\t\t$separator = ',';\n\t\t\t\t\t\tif ($options['separator']) {\n\t\t\t\t\t\t\t$separator = $this->utilityFuncs->getSingle($options, 'separator');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$fieldValue = implode($separator, $fieldValue);\n\t\t\t\t\t}\n\n\t\t\t\t\t//process uploaded files\n\t\t\t\t\t$files = $this->globals->getSession()->get('files');\n\t\t\t\t\tif (isset($files[$fieldname]) && is_array($files[$fieldname])) {\n\t\t\t\t\t\t$fieldValue = $this->getFileList($files, $fieldname);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tswitch ($options['special']) {\n\t\t\t\t\t\tcase 'saltedpassword':\n\t\t\t\t\t\t\t$field = $this->utilityFuncs->getSingle($options['special.'], 'field');\n\n\t\t\t\t\t\t\t$saltedpasswords = \\TYPO3\\CMS\\Saltedpasswords\\Utility\\SaltedPasswordsUtility::returnExtConf();\n\t\t\t\t\t\t\t$tx_saltedpasswords = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance($saltedpasswords['saltedPWHashingMethod']);\n\t\t\t\t\t\t\t$encryptedPassword = $tx_saltedpasswords->getHashedPassword($this->gp[$field]);\n\n\t\t\t\t\t\t\t$fieldValue = $encryptedPassword;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'files':\n\t\t\t\t\t\t\t$field = $this->utilityFuncs->getSingle($options['special.'], 'field');\n\t\t\t\t\t\t\tif(isset($options['special.']['separator'])) {\n\t\t\t\t\t\t\t\t$separator = $this->utilityFuncs->getSingle($options['special.'], 'separator');\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$separator = ',';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$files = $this->globals->getSession()->get('files');\n\t\t\t\t\t\t\t$filesArray = array();\n\t\t\t\t\t\t\tif(isset($options['special.']['info'])) {\n\t\t\t\t\t\t\t\t$info = $this->utilityFuncs->getSingle($options['special.'], 'info');\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$info = '[uploaded_name]';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$files = $this->globals->getSession()->get('files');\n\t\t\t\t\t\t\tif (isset($files[$field]) && is_array($files[$field])) {\n\t\t\t\t\t\t\t\tforeach ($files[$field] as $idx => $file) {\n\t\t\t\t\t\t\t\t\t$infoString = $info;\n\t\t\t\t\t\t\t\t\tforeach($file as $infoKey=>$infoValue) {\n\t\t\t\t\t\t\t\t\t\t$infoString = str_replace('[' . $infoKey . ']', $infoValue, $infoString);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tarray_push($filesArray, $infoString);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(isset($options['special.']['index'])) {\n\t\t\t\t\t\t\t\t$index = $this->utilityFuncs->getSingle($options['special.'], 'index');\n\t\t\t\t\t\t\t\tif(isset($filesArray[$index])) {\n\t\t\t\t\t\t\t\t\t$fieldValue = $filesArray[$index];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$fieldValue = implode($separator, $filesArray);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'date':\n\t\t\t\t\t\t\t$field = $this->utilityFuncs->getSingle($options['special.'], 'field');\n\t\t\t\t\t\t\t$date = $this->gp[$field];\n\t\t\t\t\t\t\t$dateFormat = 'Y-m-d';\n\t\t\t\t\t\t\tif($options['special.']['dateFormat']) {\n\t\t\t\t\t\t\t\t$dateFormat = $this->utilityFuncs->getSingle($options['special.'], 'dateFormat');\n\t\t\t\t\t\t\t} elseif($options['special.']['format']) {\n\t\t\t\t\t\t\t\t$dateFormat = $this->utilityFuncs->getSingle($options['special.'], 'format');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$fieldValue = $this->utilityFuncs->dateToTimestamp($date, $dateFormat);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'datetime':\n\t\t\t\t\t\t\tif(version_compare(PHP_VERSION, '5.3.0') < 0) {\n\t\t\t\t\t\t\t\t$this->utilityFuncs->throwException('error_datetime');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$field = $this->utilityFuncs->getSingle($options['special.'], 'field');\n\t\t\t\t\t\t\t$date = $this->gp[$field];\n\t\t\t\t\t\t\t$dateFormat = 'Y-m-d H:i:s';\n\t\t\t\t\t\t\tif($options['special.']['dateFormat']) {\n\t\t\t\t\t\t\t\t$dateFormat = $this->utilityFuncs->getSingle($options['special.'], 'dateFormat');\n\t\t\t\t\t\t\t} elseif($options['special.']['format']) {\n\t\t\t\t\t\t\t\t$dateFormat = $this->utilityFuncs->getSingle($options['special.'], 'format');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$fieldValue = $this->utilityFuncs->dateToTimestamp($date, $dateFormat);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'sub_datetime':\n\t\t\t\t\t\t\t$dateFormat = 'Y-m-d H:i:s';\n\t\t\t\t\t\t\tif($options['special.']['dateFormat']) {\n\t\t\t\t\t\t\t\t$dateFormat = $this->utilityFuncs->getSingle($options['special.'], 'dateFormat');\n\t\t\t\t\t\t\t} elseif($options['special.']['format']) {\n\t\t\t\t\t\t\t\t$dateFormat = $this->utilityFuncs->getSingle($options['special.'], 'format');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$fieldValue = date($dateFormat, time());\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'sub_tstamp':\n\t\t\t\t\t\t\t$fieldValue = time();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'ip':\n\t\t\t\t\t\t\t$fieldValue = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::getIndpEnv('REMOTE_ADDR');\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'inserted_uid':\n\t\t\t\t\t\t\t$table = $this->utilityFuncs->getSingle($options['special.'], 'table');\n\t\t\t\t\t\t\tif (is_array($this->gp['saveDB'])) {\n\t\t\t\t\t\t\t\tforeach ($this->gp['saveDB'] as $idx => $info) {\n\t\t\t\t\t\t\t\t\tif ($info['table'] === $table) {\n\t\t\t\t\t\t\t\t\t\t$fieldValue = $info['uid'];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$fieldValue = $options;\n\t\t\t}\n\n\t\t\t//post process the field value after formhandler did it's magic.\n\t\t\tif (isset($options['postProcessing.']) && is_array($options['postProcessing.'])) {\n\t\t\t\tif(!isset($options['postProcessing.']['value'])) {\n\t\t\t\t\t$options['postProcessing.']['value'] = $fieldValue;\n\t\t\t\t}\n\t\t\t\t$fieldValue = $this->utilityFuncs->getSingle($options, 'postProcessing');\n\t\t\t}\n\n\t\t\t$queryFields[$fieldname] = $fieldValue;\n\n\t\t\tif (intval($this->utilityFuncs->getSingle($options, 'nullIfEmpty')) === 1 && strlen($queryFields[$fieldname]) == 0) {\n\t\t\t\tunset($queryFields[$fieldname]);\n\t\t\t}\n\t\t}\n\t\treturn $queryFields;\n\t}", "title": "" }, { "docid": "a1fa6302cba0e029f4d06a5870d8cac6", "score": "0.53184384", "text": "private static function filterArray($arr) {\n if (gettype($arr) == 'array') {\n return $arr;\n }\n $array = filter_var($arr);\n $len = strlen($array);\n $retVal = self::INVALID;\n $arrayValues = [];\n\n if ($len >= 2 && ($array[0] == '[' && $array[$len - 1] == ']')) {\n $tmpArrValue = '';\n\n for ($x = 1 ; $x < $len - 1 ; $x++) {\n $char = $array[$x];\n\n if ($x + 1 == $len - 1) {\n $tmpArrValue .= $char;\n $number = self::checkIsNumber($tmpArrValue);\n $numType = gettype($number);\n\n if ($numType == 'integer' || $numType == 'double') {\n $arrayValues[] = $number;\n continue;\n } else {\n return $retVal;\n }\n } else if ($char == '\"' || $char == \"'\") {\n $tmpArrValue = strtolower(trim($tmpArrValue));\n\n if (strlen($tmpArrValue) != 0) {\n if ($tmpArrValue == 'true') {\n $arrayValues[] = true;\n } else if ($tmpArrValue == 'false') {\n $arrayValues[] = false;\n } else if ($tmpArrValue == 'null') {\n $arrayValues[] = null;\n } else {\n $number = self::checkIsNumber($tmpArrValue);\n $numType = gettype($number);\n\n if ($numType == 'integer' || $numType == 'double') {\n $arrayValues[] = $number;\n continue;\n } else {\n return $retVal;\n }\n }\n } else {\n $result = self::parseStringFromArray($array, $x + 1, $len - 1, $char);\n\n if ($result['parsed'] === true) {\n $x = $result['end'];\n $arrayValues[] = filter_var(strip_tags($result[ParamTypes::STRING]));\n $tmpArrValue = '';\n continue;\n } else {\n return $retVal;\n }\n }\n }\n\n if ($char == ',') {\n $tmpArrValue = strtolower(trim($tmpArrValue));\n\n if ($tmpArrValue == 'true') {\n $arrayValues[] = true;\n } else if ($tmpArrValue == 'false') {\n $arrayValues[] = false;\n } else if ($tmpArrValue == 'null') {\n $arrayValues[] = null;\n } else {\n $number = self::checkIsNumber($tmpArrValue);\n $numType = gettype($number);\n\n if ($numType == 'integer' || $numType == 'double') {\n $arrayValues[] = $number;\n } else {\n return $retVal;\n }\n }\n $tmpArrValue = '';\n } else if ($x + 1 == $len - 1) {\n $arrayValues[] = $tmpArrValue.$char;\n } else {\n $tmpArrValue .= $char;\n }\n }\n $retVal = $arrayValues;\n }\n\n return $retVal;\n }", "title": "" }, { "docid": "c9cc78b923e90c6c2eb20553c0894b1e", "score": "0.5312591", "text": "public function arrayTextDecode($value)\n {\n //remove \"{\", \"}\"\n $data = substr($value, 1, -1);\n if (!$data) {\n return [];\n }\n $data = explode(',', $data);\n foreach ($data as &$item) {\n $item = trim($item, '\"');\n }\n unset($item);\n return $data;\n }", "title": "" }, { "docid": "cc824fed3d2301b054adf00173f478ef", "score": "0.5295453", "text": "public function testProcessDatamapPostProcessFieldArray()\n {\n $this->markTestIncomplete(\n 'This test has not been implemented yet!'\n );\n }", "title": "" }, { "docid": "8b6c740f5a492bb81370024f8491a13c", "score": "0.52814776", "text": "public function isArrayField()\n {\n return $this->arrayField;\n }", "title": "" }, { "docid": "99b05df752f882114aece0b7eca01f97", "score": "0.52792597", "text": "public function toArray(): array\n {\n if (! $this->field) {\n throw new InvalidArgumentException('The \"field\" is required!');\n }\n\n if (! isset($this->body['value'])) {\n throw new InvalidArgumentException('The \"value\" is required!');\n }\n\n $body = $this->body;\n\n if (count($body) === 1) {\n $body = $body['value'];\n }\n\n return [\n 'regexp' => [\n $this->field => $body,\n ],\n ];\n }", "title": "" }, { "docid": "bd00b5304dfd07b8a929cb86229081ca", "score": "0.52546686", "text": "public function getFieldValues(string $fieldName): array;", "title": "" }, { "docid": "f1e3b6ab8b3deeb9d7941034319b5a33", "score": "0.51945937", "text": "function processFieldsToArray( &$fields, $data, $clear_fields, $preserve_indexes )\r\n\t{\r\n\t\t$row = array();\r\n\t\t$c = count( $fields );\r\n\t\t$process_all = false; // process all\r\n\t\tif( !$c ) // array is empty\r\n\t\t{\r\n\t\t\t$c = count( $data );\r\n\t\t\t$process_all = true;// we want to process all fields\r\n\t\t}\r\n\t\r\n\t\tif( $process_all )\r\n\t\t{\r\n\t\t\tif( $clear_fields ) // clean out all fields\r\n\t\t\t{\r\n\t\t\t\tfor($i = 0; $i < $c; $i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t// cut off double quotation marks if there are any\r\n\t\t\t\t\t//if( isset( $data[$i] ) && strlen( $data[$i ]) && ( $data[$i][0]\t == '\"' ) )\r\n\t\t\t\t\tif( isset( $data[$i] ) && strlen( $data[$i]))\t\t\t\t\t\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//$row[$i] = substr( $data[$i], 1, strlen( $data[$i] )-2 );// what is this for?\t\t\t\t\t\t\r\n\t\t\t\t\t\t//$row[$i] = str_replace( '\"\"', '\"', $row[$i] ); // replace double double-quotes with only one double-quote\r\n\t\t\t\t\t\t$row[$i] = str_replace( '\"\"', '\"', $data[$i] ); // replace double double-quotes with only one double-quote\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse // otherwise the value is float/integer\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif( !isset( $data[$i] ) || !strlen($data[$i]) ) // the field is empty so empty it\r\n\t\t\t\t\t\t\t$row[$i] = '';\r\n\t\t\t\t\t\telse // otherwise it must be float or integer\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$row[$i] = ( float )@$data[$i];\r\n\t\t\t\t\t\t\tif( !strcmp( ( int ) $row[$i], $row[$i] ) ) // the number is integer and not float\r\n\t\t\t\t\t\t\t\t$row[$i] = ( int )$row[$i];\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\telse // process all and we doesnt want to clear fields => return unchanged array\r\n\t\t\t{\t\t\t\t\r\n\t\t\t\treturn $data;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse // we process only part of the array\r\n\t\t{\r\n\t\t\tif( $clear_fields )\r\n\t\t\t{\r\n\t\t\t\tfor($i = 0; $i < $c; $i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\t// cut off double quotation marks if there are any\r\n\t\t\t\t\t\tif( isset( $data[$fields[$i]] ) && strlen( $data[$fields[$i]] ) && ( $data[$fields[$i]][0]\t == '\"' ) )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$row[$fields[$i]] = substr( $data[$fields[$i]], 1, strlen( $data[$fields[$i]] )-2 );\r\n\t\t\t\t\t\t\t$row[$fields[$i]] = str_replace( '\"\"', '\"', $row[$fields[$i]] ); // replace double double-quotes with only one double-quote\r\n\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\telse // otherwise the value is float/integer\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$idx = $preserve_indexes ? $fields[$i] : $i; // index in the result array \r\n\t\t\t\t\t\t\tif( !isset( $data[$fields[$i]] ) || !strlen($data[$fields[$i]]) ) // the field is empty so empty it\r\n\t\t\t\t\t\t\t\t$row[$idx] = '';\r\n\t\t\t\t\t\t\telse // otherwise it must be float or integer\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif( empty( $data[$idx] ) )\r\n\t\t\t\t\t\t\t\t\t$row[$idx] = '';\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t$row[$idx] = ( float )$data[$idx];\r\n\t\t\t\t\t\t\t\t\tif( !strcmp( ( int ) @$row[$i], @$row[$i] ) ) // the number is integer and not float\r\n\t\t\t\t\t\t\t\t\t\t$row[$idx] = ( int )@$row[$idx];\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}\r\n\t\t\t}\r\n\t\t\telse // copy only requested fields\r\n\t\t\t{\r\n\t\t\t\tfor($i = 0; $i < $c; $i++)\r\n\t\t\t\t\t$row[$preserve_indexes ? $fields[$i] : $i] = @$data[$fields[$i]];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $row;\r\n\t}", "title": "" }, { "docid": "1fd6f221e154785e3967632d15a95cd1", "score": "0.51844305", "text": "protected function parseFields()\n {\n $data = $this->explodeFields($this->fields);\n\n foreach ($data as $name => $value) {\n $newField = collect();\n foreach ($value as $rule) {\n $newField[] = $this->parseStringFields($rule);\n }\n $this->fields[$name] = $newField->collapse();\n }\n }", "title": "" }, { "docid": "628405657ef8460993e6f297e836afc7", "score": "0.51671904", "text": "public function parseFieldsArr($fields_arr)\n {\n foreach ($fields_arr as $field_name => $create) {\n if (!is_array($create)) {\n // Can parse as string only scalar types, not Enum or Array\n $i = \\strpos($create, ' ');\n if ($i) {\n $create = [\\substr($create, 0, $i), \\substr($create, $i + 1)];\n } else {\n $create = [$create];\n }\n }\n\n // make type_full, default, create strings from $create array\n $type_full = $type_src = $create[0];\n // make type_full, type_name, to_conv, bytes (from type_full)\n $type_name = $to_conv = null;\n $bytes = $this->parseType($type_full, $type_name, $to_conv);\n if ($bytes === false) {\n throw new \\Exception(\"Unrecognized data type '$type_full'\");\n }\n\n if (isset($create[1])) {\n $default = $create[1];\n $create = $type_full . ' DEFAULT ' . $default;\n } else {\n $default = '';\n $create = $type_full;\n }\n\n if (strlen($default)) {\n if (\\substr($default, 0, 8) !== 'DEFAULT ') {\n if ($to_conv) {\n $lp = $to_conv[0];\n $rp = $to_conv[1];\n if (\\substr($default, 0, \\strlen($lp)) != $lp) {\n $default = $lp . $this->quotePar($default) . $rp;\n }\n $create = 'DEFAULT ' . $default;\n } else {\n $default = $this->quotePar($default);\n $create = $type_full . ' DEFAULT ' . $default;\n }\n } else {\n $create = $type_full . ' ' . $default;\n $default = \\substr($default, 8);\n }\n }\n $create = $field_name . ' ' . $create;\n $fields_arr[$field_name] = compact(\n 'create',\n 'type_full',\n 'type_name',\n 'type_src',\n 'default',\n 'bytes'\n );\n }\n return $fields_arr;\n }", "title": "" }, { "docid": "623ddd01439e0d6091605bc37cd49fb5", "score": "0.5159848", "text": "private function parseCustomFields(array $customFields): array\n {\n $array = [];\n\n foreach ($customFields as $field) {\n $name = $this->get('id', $field);\n $value = isset($field['values'][0]['value']) ? $field['values'][0]['value'] : '';\n\n $array[$name] = $value;\n }\n\n return $array;\n }", "title": "" }, { "docid": "dacbfc99791c9375055dc52b28e10941", "score": "0.5133757", "text": "public static function parse($value)\n {\n if (is_array($value)) {\n return static::fromArray((array)$value);\n } elseif (is_string($value)) {\n return static::fromString((string)$value);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "8f554c45b5d27d4933fb979d78f5884a", "score": "0.5131823", "text": "protected function parseFieldData(array $fieldData): void {\n\n if (isset($fieldData['name'])) {\n\n $this->name = $fieldData['name'];\n\n }\n\n if (!empty($fieldData['apply'])) {\n\n foreach ($fieldData['apply'] as $apply) {\n\n $this->apply[] = new ContractApplyDefinition($apply);\n\n }\n\n }\n\n }", "title": "" }, { "docid": "a89b88d7019a59ba5f966a349eb5579f", "score": "0.5105635", "text": "protected function _get_parsed_fields() {\n\t\t$fields = $this->_data['fields'];\n \t\t\n\t\treturn $fields;\n\t}", "title": "" }, { "docid": "50f65edd83a9cd3ed8e2cc02060f9143", "score": "0.5088952", "text": "public function item_get_content_array($content, $field) {\n if (($content != SURVEYPRO_VALUES) && ($content != SURVEYPRO_LABELS)) {\n throw new Exception('Bad parameter passed to item_get_content_array');\n }\n\n $index = ($content == SURVEYPRO_VALUES) ? 1 : 2;\n $options = surveypro_textarea_to_array($this->{$field});\n\n $values = array();\n foreach ($options as $k => $option) {\n if (preg_match('~^(.*)'.SURVEYPRO_VALUELABELSEPARATOR.'(.*)$~', $option, $match)) {\n $values[] = $match[$index];\n } else {\n $values[] = $option;\n }\n }\n\n return $values;\n }", "title": "" }, { "docid": "39f9c9cddb5268dcfff615f958f5adfb", "score": "0.5057563", "text": "public static function parseArray($buffer)\n {\n // split the buffer\n $data = explode(';', $buffer);\n // prepare for parsed data\n $parsed = array();\n\n // iterate on the buffer\n foreach($data as $value) {\n // split value\n $parts = explode(':', $value);\n\n // get the key\n $key = array_shift($parts);\n // join the value\n $val = implode(':', $parts);\n\n // if we don't have key\n if(strlen($key) == 0) {\n continue;\n }\n\n $parsed[$key] = $val;\n }\n\n return $parsed;\n }", "title": "" }, { "docid": "0c4a2ad446ba8fc41d55c67f5e2225c4", "score": "0.50546765", "text": "public function tagParse($tagArray) {\n $tagListFromText = preg_split('/,\\s*/', $tagArray);\n // if($toIDs == true) {\n // $tagIDs = Tags::whereIn('name', $tagListFromText)->lists('id')->toArray();\n // return $tagIDs;\n // }\n // else {\n return $tagListFromText;\n\n\n }", "title": "" }, { "docid": "15d9311a7a562b274427851d25994590", "score": "0.50421566", "text": "function setArrayFromAddress(array $array, $versionField, $textualField, $binaryField) {\n\n if (!empty($versionField)) {\n $version = $this->getVersion();\n if ($version !== false) {\n $array[$versionField] = $version;\n } else {\n $array[$versionField] = \"0\";\n }\n }\n\n if (!empty($textualField)) {\n $textual = $this->getTextual();\n if ($textual !== false) {\n $array[$textualField] = $textual;\n } else {\n $array[$textualField] = \"\";\n }\n }\n\n if (!empty($binaryField)) {\n $binary = $this->getBinary();\n for ($i = 0; $i < 4; ++$i) {\n if ($binary !== false) {\n $array[$binaryField.\"_\".$i] = $binary[$i];\n } else {\n $array[$binaryField.\"_\".$i] = '0';\n }\n }\n }\n return $array;\n }", "title": "" }, { "docid": "ed26fa82e4f65adba0d494d1bd6eab0f", "score": "0.5029691", "text": "public function parse(string $field, array $rules) : array;", "title": "" }, { "docid": "0147b343552050bc5bc3a21524152d60", "score": "0.5027661", "text": "function parseFieldList($fieldConfig)\t{\n\t\t$result = array();\n\t\tif (!is_array($fieldConfig)) return $result;\n\n\t\tforeach ($fieldConfig as $key => $data)\t{\n\t\t\t\t// remove the trailing '.'\n\t\t\tif (substr($key,-1) == '.') {\n\t\t\t\t$result[] = substr($key, 0, -1);\n\t\t\t} else {\n\t\t\t\t$result[] = $key;\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "8ae24a8f4952d1c2211374ea2c372447", "score": "0.50252074", "text": "function from_array(array $data);", "title": "" }, { "docid": "4d26219e9ae07ced2032ae03adab0091", "score": "0.50247365", "text": "function parseQueryFields() {\n\t\t$fields = array();\n\t\tif (isset($_REQUEST['searchfields'])) {\n\t\t\t$fs = sanitize($_REQUEST['searchfields']);\n\t\t\tif (is_numeric($fs)) {\n\t\t\t\t$fields = array_flip($this->numericFields($fs));\n\t\t\t} else {\n\t\t\t\t$fields = explode(',',$fs);\n\t\t\t}\n\t\t} else {\n\t\t\tforeach ($_REQUEST as $key=>$value) {\n\t\t\t\tif (strpos($key, 'SEARCH_') !== false) {\n\t\t\t\t\t$fields[substr($key, 7)] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $fields;\n\t}", "title": "" }, { "docid": "5831d4ab2f47926c5c3c18da1a7b4cf5", "score": "0.5024413", "text": "public function parse($value)\n {\n if (is_array($value)) {\n $value = (object) $value;\n }\n\n return parent::parse($value);\n }", "title": "" }, { "docid": "f45a99d82ef61ac0f9aadb01998f4f7d", "score": "0.5011712", "text": "public function initFromArray(array $o)\n {\n if (isset($o['type'])) {\n $this->type = $o[\"type\"];\n unset($o['type']);\n }\n $this->values = array();\n if (isset($o['values'])) {\n foreach ($o['values'] as $i => $x) {\n $this->values[$i] = new FieldValue($x);\n }\n unset($o['values']);\n }\n parent::initFromArray($o);\n }", "title": "" }, { "docid": "130fef538fcf2c52f2ae7adc3cd51a63", "score": "0.50054616", "text": "private function parseValue($field, $value)\n {\n $regexp = '(\\,|^)(?P<arg1>\\*|%DIGIT%)(\\-(?P<arg2>%DIGIT%))?(\\/(?P<step>%DIGIT%))?';\n\n $digitRegexp = '';\n switch ($field) {\n case 'hour':\n $digitRegexp = '[0-2]?[0-9]+';\n break;\n case 'minute':\n $digitRegexp = '[0-5]?[0-9]+';\n break;\n case 'day':\n $digitRegexp = '[1-3]?[0-9]+';\n break;\n case 'month':\n $digitRegexp = '1?[0-9]+';\n break;\n case 'dayOfWeek':\n $digitRegexp = '[0-6]+';\n break;\n }\n\n $regexp = str_replace('%DIGIT%', $digitRegexp, $regexp);\n preg_match_all(\"/{$regexp}/\", $value, $matches);\n\n $num = count($matches['arg1']);\n if ($num === 0) {\n throw new InvalidArgumentException(\"Bad syntax for '{$field}' (value: '{$value}')\");\n }\n\n $analyze = array();\n for ($i = 0; $i < $num; $i++) {\n $analyze[] = array(\n 'arg1' => $matches['arg1'][$i],\n 'arg2' => $matches['arg2'][$i],\n 'step' => $matches['step'][$i],\n );\n }\n\n $this->getAllowedValues($field, $analyze);\n\n return $value;\n }", "title": "" }, { "docid": "43fb81e78a888bf094d44f42a4bcc2a9", "score": "0.5001809", "text": "public function testAmf3RemoteObjectArrayParameterDeserializedToNativePhpArray()\n {\n $myRequest = file_get_contents(dirname(__FILE__) . '/Request/mock/arrayAmf3Request.bin');\n // send the mock object request to be deserialized\n $this->_request->initialize($myRequest);\n // Make sure the encoding type is properly set.\n $this->assertEquals(0x03, $this->_request->getObjectEncoding());\n // Make sure that no headers where recieved\n $this->assertEquals(0, sizeof($this->_request->getAmfHeaders()));\n // Make sure that the message body was set after deserialization\n $this->assertEquals(1, sizeof($this->_request->getAmfBodies()));\n $bodies = $this->_request->getAmfBodies();\n $this->assertTrue($bodies[0] instanceof Zend_Amf_Value_MessageBody);\n $message = $bodies[0]->getData();\n $this->assertTrue($message instanceof Zend_Amf_Value_Messaging_RemotingMessage);\n // Make sure that our endpoint is properly set.\n $this->assertEquals('returnArray', $message->operation);\n $this->assertEquals('RoundTrip', $message->source);\n $data = $message->body;\n // Make sure that we are dealing with a PHP array\n $this->assertTrue(is_array($data[0]));\n // Make sure that the array was deserialized properly and check its value\n $this->assertEquals('a', $data[0][0]);\n $this->assertEquals('g', $data[0][6]);\n }", "title": "" }, { "docid": "486cecdde244f1326501339bcda04ed8", "score": "0.5000869", "text": "protected function parse($value)\n {\n $a = [];\n foreach ($this->options as $field) {\n if($field->class){\n $key = $field->name;\n $val = isset($value->$key) ? $value->$key : null;\n $class = $field->class;\n $a[$key] = new $class($key, $val, $field->structure);\n }\n }\n return $a;\n }", "title": "" }, { "docid": "fcf4866729d2cd8f748a16a8ec90a5b3", "score": "0.49965852", "text": "protected function _unserialize_fields( $array, $fields = array() ) {\n\n\t\tforeach ( $fields as $field ) {\n\t\t\tif ( ! isset( $array[ $field ] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t/* the serialized fields should be trigger_config and tcb_fields */\n\t\t\t$array[ $field ] = empty( $array[ $field ] ) ? array() : unserialize( $array[ $field ] );\n\t\t\t$array[ $field ] = wp_unslash( $array[ $field ] );\n\n\t\t\t/* extra checks to ensure we'll have consistency */\n\t\t\tif ( ! is_array( $array[ $field ] ) ) {\n\t\t\t\t$array[ $field ] = array();\n\t\t\t}\n\t\t}\n\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "cd809a96ef9a37b19a47d69d97de6409", "score": "0.49911812", "text": "public function getFieldArray()\n {\n return array ();\n }", "title": "" }, { "docid": "6120021659a22cf79092acd2b0761adc", "score": "0.49813932", "text": "private function parse_many($value) {\n $arr = explode(', ', $value);\n if(count($arr) === 1) {\n return $arr[0];\n }else {\n return $arr;\n }\n }", "title": "" }, { "docid": "59314d8c0162a17ab58e5c0ff03f9740", "score": "0.49682707", "text": "public function get_values()\n\t{\n\t\t$values = array();\n\t\tforeach($this->fields as $field_name => $field)\n\t\t{\n\t\t\tif (isset($this->_field_data[$field_name]))\n\t\t\t\t$value = $this->_field_data[$field_name]['postdata'];\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (isset($field['is_array']) && $field['is_array'] && isset($this->_field_data[$field_name . '[]']))\n\t\t\t\t\t$value = $this->_field_data[$field_name . '[]']['postdata'];\n\t\t\t}\n\t\t\t\n\t\t\tif (!is_null($value))\n\t\t\t\t$values[$field_name] = $value;\n\t\t}\n\t\treturn $values;\n\t}", "title": "" }, { "docid": "5371db21a60af5b4622e924a9da33dac", "score": "0.49681017", "text": "public function getValueAsArray() {\n\t\t\n\t\t$aArgs = func_get_args();\n\t\t$sValue = call_user_func_array( array( $this, 'getValue' ), $aArgs );\n\t\t\n\t\treturn Geko_Array::explodeTrimEmpty( \"\\n\", $sValue );\n\t}", "title": "" }, { "docid": "a3de2cc5e3fae3bcd4445b0825667504", "score": "0.49652824", "text": "abstract protected function parse($value);", "title": "" }, { "docid": "acfafc7f184267f9e6d60546d695b25f", "score": "0.49513954", "text": "protected static function convertToArrayValue($value){\n\t\t\n\t\t//Should a comma be found amidst the said string.\n\t\tif (strpos($value, ',') !== false) {\n\n\t\t\t//WARNING: Should there be a space after a certain comma\n\t\t\t//There'll be a space before the subsequent value\n\t\t\t//such as \"v1, v2\" will become [\"v1\", \" v2\"]\n\t\t\treturn explode(',', $value);\n\t\t}\n\n\t\treturn $value;\n\n\t}", "title": "" }, { "docid": "dcff4cf079fedf7bc83a7ea1e3d63322", "score": "0.49437168", "text": "public function setArrayField($b)\n {\n $this->arrayField = $b;\n return $this;\n }", "title": "" }, { "docid": "3a541de8ed48732734344ca07d088df7", "score": "0.4933829", "text": "public function parseFieldSets($value = null) {\n if (empty($value)) {\n return null;\n }\n\n if (!is_array($value)) {\n throw new \\InvalidArgumentException('Field sets value must be an array', 400);\n }\n\n foreach ($value as $resource => $fields) {\n $value[$resource] = explode(',', $fields);\n }\n\n return $value;\n }", "title": "" }, { "docid": "cfdc96b0d86733661f5e2d0c90256d5d", "score": "0.49292222", "text": "function _cals_importer_exporter_get_marc_subfield($arr) {\n $subfields = array();\n foreach ($arr as $code => $value) {\n $subfields[] = new File_MARC_Subfield($code, $value);\n //foreach($values as $value) { }\n }\n return $subfields;\n}", "title": "" }, { "docid": "b49b90eaa2ca8ef9d43988d27033abbd", "score": "0.49284372", "text": "protected function getTextValue($field) {\n\t\t\n\t\tif(is_array($field)) {\n\t\t\t\n\t\t\t$values = array();\n\t\t\tforeach($field as $key => $value) {\n\t\t\t\t$values[$key] = $this->getTextValue($value);\n\t\t\t}\n\t\t\treturn $values;\n\t\t\t\n\t\t}\n\n\t\t//return trim(utf8_decode($field));\n return trim($field);\n\n\t}", "title": "" }, { "docid": "9fc25e5e04f93ff663dbeb37626985de", "score": "0.49253267", "text": "public static function getFieldData($array, $field, $idField = null)\n {\n $_out = array();\n if (is_array($array)) {\n if ($idField === null) {\n foreach ($array as $value) {\n if (isset($value[$field])) {\n $_out[] = $value[$field];\n }\n }\n } else {\n foreach ($array as $value) {\n if (isset($value[$field]) && isset($value[$idField])) {\n $_out[$value[$idField]] = $value[$field];\n }\n }\n }\n }\n return $_out;\n }", "title": "" }, { "docid": "398084a2add3570cf92dc5b4848d7ee8", "score": "0.49241564", "text": "function setToArray($value){\n\t\treturn explode(\",\",$value);\n\t}", "title": "" }, { "docid": "434239e8312c11bcde65e97955a7d084", "score": "0.492379", "text": "protected function _decodeArray() {\n $result = array();\n $starttok = $tok = $this->_getNextToken(); // Move past the '['\n $index = 0;\n\n while ($tok && $tok != self::RBRACKET) {\n $result[$index++] = $this->_decodeValue();\n\n $tok = $this->_token;\n\n if ($tok == self::RBRACKET || !$tok) {\n break;\n }\n\n if ($tok != self::COMMA) {\n throw new except('Missing \",\" in array encoding: ' . $this->_source);\n }\n\n $tok = $this->_getNextToken();\n }\n\n $this->_getNextToken();\n return($result);\n }", "title": "" }, { "docid": "9d1236ea5bd5e3dbd25b20d4ed081c6f", "score": "0.49168402", "text": "public function get_field_values($fields) {\n\t\t \t$field_values = array();\n\t\t \t\n\t\t\tforeach ($fields as $field) {\n\t\t\t\tif ($field->type == \"fstinput\") {\n\t\t\t\t\t$name = $field->name;\n\n\t\t\t\t\tif (!empty($this->$name)) {\n\t\t\t\t\t\t$ids = json_decode($this->$name);\n\t\t\t\t\t\t$values = array();\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach ($ids as $id) {\n\t\t\t\t\t\t\t$value_obj = $field->get_data_by_id($id);\n\t\t\t\t\t\t\t$value = $value_obj['value'];\n\t\t\t\t\t\t\t$values[] = $value; \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$field_values[$name]['name'] = $name;\n\t\t\t\t\t\t$field_values[$name]['data'] = json_encode($values);\n\t\t\t\t\t}\n\t\t\t\t} else if ($field->type == \"finput\") {\n\t\t\t\t $name = $field->name;\n\t\t\t\t \n\t\t\t\t\tif (!empty($this->$name)) {\n\t\t\t\t\t\t$field_values[$name]['name'] = $name;\n\t\t\t\t\t\t$field_values[$name]['data'] = $this->$name;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $field_values;\n\t\t }", "title": "" }, { "docid": "6104ea409ed3551b0e8b0b05e2e7d449", "score": "0.49138436", "text": "public function parseValues($theTable, array $dataArray, $dataValue, $theField, $cmdKey, array $cmdParts)\n\t{\n\t\tif (trim($cmdParts[0]) === 'files') {\n\t\t\t$fieldDataArray = [];\n\t\t\tif (isset($dataValue)) {\n\t\t\t\tif (is_array($dataValue)) {\n\t\t\t\t\t$fieldDataArray = $dataValue;\n\t\t\t\t} else if (is_string($dataValue) && trim($dataValue)) {\n\t\t\t\t\t$fieldDataArray = GeneralUtility::trimExplode(',', $dataValue, true);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $this->processFiles($theTable, $dataArray, $theField, $fieldDataArray, $cmdKey);\n\t\t}\n\t}", "title": "" }, { "docid": "b94dcc2a1470164d07987cd4a2c06d4d", "score": "0.4896225", "text": "protected function getValueArray()\n {\n return explode(',', $this->value);\n }", "title": "" }, { "docid": "6dbe355481bcaa75ca1b9b8108a7e031", "score": "0.48746917", "text": "function parseVersion($version_arr){\n\t\t$rm = array();\n\t\tforeach($version_arr as $version){\n\t\t\t$version_raw = utf8_encode(trim($version['value']));\n\t\t\tif(strlen($version_raw)){\n\t\t\t\t$version_split = preg_split('/\\s+/', $version_raw);\n\t\t\t\t$tmp_version = array();\n\t\t\t\tif(count($version_split)){\n\t\t\t\t\t$tmp_version['versioned_accession'] = $version_split[0];\n\t\t\t\t\t$tmp_version['gi'] = substr($version_split[1], 3);\n\t\t\t\t}\n\t\t\t\t$rm = $tmp_version;\n\t\t\t}else{\n\t\t\t\ttrigger_error(\"Empty version line!\", E_USER_ERROR);\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $rm;\n\t}", "title": "" }, { "docid": "d43d2bb705f479b59d38e8ecd7a2cb59", "score": "0.48513", "text": "protected function parseField(FieldInterface $field, &$string)\n {\n $string .= \"\\n{$this->s(16)}'field' => [\";\n\n foreach ($field->getAttributes() as $key => $value) {\n\n $value = $this->toString($field->getAttribute($key), in_array($key, ['field_name']));\n\n $string .= \"\\n{$this->s(20)}'{$key}' => {$value},\";\n }\n\n $string .= \"\\n{$this->s(16)}],\";\n }", "title": "" }, { "docid": "24ce8382533cc0c3ddf06aab7ebecd15", "score": "0.48427325", "text": "private function parseField()\n {\n $type = $this->buffer[0];\n $this->buffer = substr($this->buffer, 1);\n\n // @todo bench switch vs if vs method map\n switch ($type) {\n case 's': return $this->parseSignedInt16();\n case 'l': return $this->parseSignedInt64();\n case 'x': return $this->parseByteArray();\n case 't': return $this->parseUnsignedInt8() !== 0;\n case 'b': return $this->parseSignedInt8();\n case 'I': return $this->parseSignedInt32();\n case 'f': return $this->parseFloat();\n case 'd': return $this->parseDouble();\n case 'D': return $this->parseDecimal();\n case 'S': return $this->parseLongString();\n case 'A': return $this->parseArray();\n case 'T': return $this->parseUnsignedInt64();\n case 'F': return $this->parseTable();\n case 'V': return null;\n }\n\n throw ProtocolException::create(\n sprintf(\n 'table value type (0x%02x) is invalid or unrecognised.',\n ord($type)\n )\n );\n }", "title": "" }, { "docid": "b5a3b3b2e918daab75629a40a35118f3", "score": "0.48353758", "text": "protected function getRecordFromArray($ar)\n {\n $row = [];\n if (is_array($ar)) {\n foreach ($ar as $fldname => $val) {\n if (array_key_exists($fldname, $this->Fields) && ($this->Fields[$fldname]->Visible || $this->Fields[$fldname]->IsPrimaryKey)) { // Primary key or Visible\n $fld = &$this->Fields[$fldname];\n if ($fld->HtmlTag == \"FILE\") { // Upload field\n if (EmptyValue($val)) {\n $row[$fldname] = null;\n } else {\n if ($fld->DataType == DATATYPE_BLOB) {\n $url = FullUrl(GetApiUrl(Config(\"API_FILE_ACTION\") .\n \"/\" . $fld->TableVar . \"/\" . $fld->Param . \"/\" . rawurlencode($this->getRecordKeyValue($ar))));\n $row[$fldname] = [\"type\" => ContentType($val), \"url\" => $url, \"name\" => $fld->Param . ContentExtension($val)];\n } elseif (!$fld->UploadMultiple || !ContainsString($val, Config(\"MULTIPLE_UPLOAD_SEPARATOR\"))) { // Single file\n $url = FullUrl(GetApiUrl(Config(\"API_FILE_ACTION\") .\n \"/\" . $fld->TableVar . \"/\" . Encrypt($fld->physicalUploadPath() . $val)));\n $row[$fldname] = [\"type\" => MimeContentType($val), \"url\" => $url, \"name\" => $val];\n } else { // Multiple files\n $files = explode(Config(\"MULTIPLE_UPLOAD_SEPARATOR\"), $val);\n $ar = [];\n foreach ($files as $file) {\n $url = FullUrl(GetApiUrl(Config(\"API_FILE_ACTION\") .\n \"/\" . $fld->TableVar . \"/\" . Encrypt($fld->physicalUploadPath() . $file)));\n if (!EmptyValue($file)) {\n $ar[] = [\"type\" => MimeContentType($file), \"url\" => $url, \"name\" => $file];\n }\n }\n $row[$fldname] = $ar;\n }\n }\n } else {\n $row[$fldname] = $val;\n }\n }\n }\n }\n return $row;\n }", "title": "" }, { "docid": "b5a3b3b2e918daab75629a40a35118f3", "score": "0.48353758", "text": "protected function getRecordFromArray($ar)\n {\n $row = [];\n if (is_array($ar)) {\n foreach ($ar as $fldname => $val) {\n if (array_key_exists($fldname, $this->Fields) && ($this->Fields[$fldname]->Visible || $this->Fields[$fldname]->IsPrimaryKey)) { // Primary key or Visible\n $fld = &$this->Fields[$fldname];\n if ($fld->HtmlTag == \"FILE\") { // Upload field\n if (EmptyValue($val)) {\n $row[$fldname] = null;\n } else {\n if ($fld->DataType == DATATYPE_BLOB) {\n $url = FullUrl(GetApiUrl(Config(\"API_FILE_ACTION\") .\n \"/\" . $fld->TableVar . \"/\" . $fld->Param . \"/\" . rawurlencode($this->getRecordKeyValue($ar))));\n $row[$fldname] = [\"type\" => ContentType($val), \"url\" => $url, \"name\" => $fld->Param . ContentExtension($val)];\n } elseif (!$fld->UploadMultiple || !ContainsString($val, Config(\"MULTIPLE_UPLOAD_SEPARATOR\"))) { // Single file\n $url = FullUrl(GetApiUrl(Config(\"API_FILE_ACTION\") .\n \"/\" . $fld->TableVar . \"/\" . Encrypt($fld->physicalUploadPath() . $val)));\n $row[$fldname] = [\"type\" => MimeContentType($val), \"url\" => $url, \"name\" => $val];\n } else { // Multiple files\n $files = explode(Config(\"MULTIPLE_UPLOAD_SEPARATOR\"), $val);\n $ar = [];\n foreach ($files as $file) {\n $url = FullUrl(GetApiUrl(Config(\"API_FILE_ACTION\") .\n \"/\" . $fld->TableVar . \"/\" . Encrypt($fld->physicalUploadPath() . $file)));\n if (!EmptyValue($file)) {\n $ar[] = [\"type\" => MimeContentType($file), \"url\" => $url, \"name\" => $file];\n }\n }\n $row[$fldname] = $ar;\n }\n }\n } else {\n $row[$fldname] = $val;\n }\n }\n }\n }\n return $row;\n }", "title": "" }, { "docid": "3c31d1848a160d57f6eac40cb47ba099", "score": "0.4835162", "text": "public static function parse($line)\n {\n $data = explode(':', $line);\n $filed = $data[0];\n if (isset($data[2])) {\n unset($data[0]);\n $value = implode(':', $data);\n } else {\n $value = $data[1];\n }\n return [rtrim($filed), ltrim($value)];\n }", "title": "" }, { "docid": "63dfa1ef2bb96b2df17be9702d1974cc", "score": "0.4828465", "text": "public function fromArray($data);", "title": "" }, { "docid": "52913144dda51fb8105404decc8e7c52", "score": "0.4822637", "text": "public function ary() {\r\n\t\treturn $this->fields;\r\n\t}", "title": "" }, { "docid": "ff6c90eb556c2cf69b4ef548b8733796", "score": "0.4820289", "text": "public function arrayNumericDecode($value)\n {\n $value = str_replace(['{', '}'], '', $value);\n if ($value === '') {\n return [];\n }\n $value = explode(',', $value);\n return array_map('floatval', $value);\n }", "title": "" }, { "docid": "e084a12e04a3aeb26802fd6573f3bfee", "score": "0.48122868", "text": "public static function parse( $value )\n {\n if ( !$value )\n {\n return array();\n }\n\n $result = array();\n $e = explode( ',', $value );\n foreach ( $e as $v )\n {\n $semi = explode( ';', trim( $v ) );\n $q = isset( $semi[1] ) ? explode( '=', $semi[1] ) : array( 'q', '1' );\n $result[trim( $semi[0] )] = trim( $q[1] );\n }\n\n uasort( $result, 'self::cmpParsedList' );\n\n return $result;\n }", "title": "" }, { "docid": "6fefec9a0ad940efffa6c8c40993c30a", "score": "0.4807998", "text": "public function fromArray($array);", "title": "" }, { "docid": "d70125dcfd82a8e15794877b9008970b", "score": "0.47936085", "text": "static function getArrayField($table, $field)\n {\n $data = DB::table($table)->select($field)->groupBy($field)->lists($field, $field);\n if(!empty($data)) {\n return $data;\n }\n return null;\n }", "title": "" }, { "docid": "2c0d74433f299da8de1192ea580a131d", "score": "0.47923583", "text": "public function parseValue($value)\n {\n \n }", "title": "" }, { "docid": "ff8a9920f37329a8e34827df75edaf88", "score": "0.47908556", "text": "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'values' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setValues($val);\n },\n ]);\n }", "title": "" }, { "docid": "78ab2f99c831fa2900b0f832b79d2359", "score": "0.47732887", "text": "public function parseWhenDataIsNotArrayProvider()\n {\n return [\n [''],\n ['some string'],\n [123],\n ['123'],\n ['0'],\n [0],\n [1],\n [true],\n [false],\n [null],\n [new \\stdClass()],\n ];\n }", "title": "" }, { "docid": "80778a2872ca488eaee5748ec5f2089c", "score": "0.47730222", "text": "static function toMongoArray($value) {\n\t\tif (is_array($value)) {\n\t\t\tarray_walk($value, function(&$val) { if (is_array($val)) { $val = json_encode($val); }});\n\t\t\t$value = array_map('trim', $value); // trim all elements in array\n\t\t\t$value = array_values(array_filter($value, 'strlen')); // remove blank lines\n\t\t\treturn $value;\n\t\t} else if (is_string($value)) {\n\t\t\tif (strpos($value, \",\") !== false) {\n\t\t\t\t$value = explode(\",\", $value);\n\t\t\t\t$value = array_map('trim', $value); // trim all elements in array\n\t\t\t\t$value = array_values(array_filter($value, 'strlen')); // remove blank lines\n\t\t\t\treturn $value;\n\t\t\t} else if (strpos($value, \"\\n\") !== false) {\n\t\t\t\t$value = explode(\"\\n\", $value);\n\t\t\t\t$value = array_map('trim', $value); // trim all elements in array\n\t\t\t\t$value = array_values(array_filter($value, 'strlen')); // remove blank lines\n\t\t\t\treturn $value;\n\t\t\t} else {\n\t\t\t\t$value = array($value);\n\t\t\t\t$value = array_map('trim', $value); // trim all elements in array\n\t\t\t\t$value = array_values(array_filter($value, 'strlen')); // remove blank lines\n\t\t\t\treturn $value;\n\t\t\t}\n\t\t}\n\t\treturn array();\n\t}", "title": "" }, { "docid": "f48230133dfd91cd3d8f5f2505a1d9a4", "score": "0.47561747", "text": "private function value($pArray){\n $valeur = '( ';\n foreach($pArray as $key => $value){\n $valeur.= ':'.$key.' , ' ;\n }\n $valeur =substr ( $valeur , 0 , -3 );\n $valeur.= ')';\n return $valeur;\n }", "title": "" }, { "docid": "bdd070d5a27e2406b7220166027fac2d", "score": "0.47553673", "text": "protected function determineValue($value)\n {\n $retArr = [];\n $parts = array_map(\"trim\", explode(\"|\", $value));\n\n foreach ($parts as $num => $part) {\n if (preg_match(\"/^([0-9]|[0-1][0-9]|2[0-3]):([0-5][0-9])$/\", $part)) {\n $retArr[$num] = array(\n \"type\" => \"singletime\",\n \"value\" => $part\n );\n } elseif (preg_match(\"/^([0-9]|[0-1][0-9]|2[0-3]):([0-5][0-9])-([0-9]|[0-1][0-9]|2[0-3]):([0-5][0-9])$/\", $part)) {\n $timeParts = explode(\"-\", $part);\n $retArr[$num] = [\n \"type\" => \"doubletime\",\n \"value1\" => $timeParts[0],\n \"value2\" => $timeParts[1]\n ];\n } elseif ($part) {\n $retArr[$num] = [\n \"type\" => \"string\",\n \"value\" => $part\n ];\n }\n }\n \n return $retArr;\n }", "title": "" }, { "docid": "36fbe490ef2246667f5994b5eb5b3184", "score": "0.47533017", "text": "public function parseApp($field);", "title": "" }, { "docid": "ac45c66b1052f9d6568efcd831a43103", "score": "0.4752627", "text": "public function parseValue($value)\n {\n // TODO implement validation\n\n return $value;\n }", "title": "" }, { "docid": "0a81c85008fdb633d30c6ab1844633af", "score": "0.4752537", "text": "public function getField($field)\n {\n $value = $this->array[$field];\n if (is_object($value) && !$value instanceof ViewableData) {\n return new ArrayData($value);\n } elseif (ArrayLib::is_associative($value)) {\n return new ArrayData($value);\n } else {\n return $value;\n }\n }", "title": "" }, { "docid": "5db4e2d030356db18a41c0ff7d6ca9c1", "score": "0.47465903", "text": "protected function parseData( $data )\n\t{\n\t\treturn $data instanceof Arrayable ? $data->toArray() : $data;\n\t}", "title": "" }, { "docid": "9a3d5d22251bee8c6ca8839b7242ff2b", "score": "0.47458348", "text": "public function array2($input, $field = null)\n {\n $params = !empty($this->validation_data) ? $this->validation_data : array_merge($this->CI->input->post(), $this->CI->input->get());\n\n if (empty($field)) {\n throw new Exception('The array rule is required an argument.');\n }\n\n $split = explode(':', $field);\n $field = str_replace(['[', ']'], ['.', ''], array_shift($split));\n $parts = explode('.', $field);\n\n // get the sub rules if any\n $subrules = [];\n if (count($split) > 0) {\n // get the sub rules if any\n $subrules = $this->_extractSubRules($split);\n }\n\n // in case the field is not nested\n if (count($parts) === 1) {\n if (empty($subrules)) {\n return array_key_exists($field, $params) && is_array($params[$field]);\n\n }//var_dump($field, $params[$field], $subrules);exit;\n return $this->_validateSubrulesForArray($field, $params[$field], $subrules);\n }\n\n // get the sub rules if any\n //$subrules = $this->_extractSubRules($split);\n\n $firstElement = array_shift($parts);\n $valuesCheck = [$firstElement => $params[$firstElement]];\n\n // in case, inputs are checkboxes or radios\n if (!array_key_exists($firstElement, $params)) {\n return false;\n }\n\n $currentValue = $params[$firstElement];\n\n foreach ($parts as $k => $part) {\n if ($part == '*') {\n $totalElements = count($currentValue);\n $currentValue = $currentValue[array_keys($currentValue)[0]];\n $temp = [];\n for ($s=0; $s < $totalElements; $s++) {\n foreach ($valuesCheck as $rule => $value) {\n $temp[$rule.\"[\".$s.\"]\"] = $value[$s];\n // if it is the last element, check whether it is an array & check the sub rules of it (min, max, size) if any\n if (count($parts) === ($k + 1) && !$this->_validateSubrulesForArray($rule.'['.$s.']', $value[$s], $subrules)) {\n return false;\n }\n }\n }\n $valuesCheck = $temp;\n } else {\n $currentValue = $currentValue[$part];\n $temp = [];\n foreach ($valuesCheck as $rule => $value) {\n $temp[$rule.\"['\".$part.\"']\"] = $value[$part];\n // if it is the last element, check whether it is an array & check the sub rules of it (min, max, size) if any\n if (count($parts) === ($k + 1) && !$this->_validateSubrulesForArray($rule.'['.$part.']', $value[$part], $subrules)) {\n return false;\n }\n }\n $valuesCheck = $temp;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "6362233fb4c044302abc3ec816cf9103", "score": "0.47439212", "text": "public function is_value_submission_array() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6c2f84ea4ac49351f4431f879732f14b", "score": "0.47415528", "text": "public function value2Array($str){\n// var_dump(func_get_args());\n// debug_print_backtrace();\n $r = explode('_',$str);\n if(count($r)>1){\n array_pop($r);\n array_shift($r);\n }\n return $r;\n }", "title": "" }, { "docid": "7434e13b9bc57c012180984fc3068580", "score": "0.47398147", "text": "public function getArray($field = '') {\n\t\t$result = array ();\n\t\tif($this->_link === NULL && $field == '') {\n\t\t\t$result = $this->_records;\n\t\t}\n\t\telse {\n\t\t\t$indexActive = $this->getIndexRecord();\n\t\t\t$this->first();\n\t\t\twhile (!$this->isEOF()) {\n\t\t\t\tif ($field == '') {\n\t\t\t\t\t$result[] = $this->record;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$result[] = $this->record[$field];\n\t\t\t\t}\n\t\t\t\t$this->next();\n\t\t\t}\n\t\t\t$this->gotoIndex($indexActive);\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "d0cd52d421a8fef018837c2346d1f6e1", "score": "0.47382596", "text": "protected function parseFieldParams(): array\n {\n $fields = Helpers::filterFieldsFromRequest($this->request, $this->getDefaultFields()); //$this->getFieldParamSets();\n\n /** @scrutinizer ignore-call */\n $tableColumns = $this->getTableColumns();\n foreach ($fields as $key => $field) {\n if ($field === '*' || in_array($field, $tableColumns)) {\n continue;\n }\n unset($fields[$key]);\n }\n\n return $fields;\n }", "title": "" }, { "docid": "131d66da9e42bf9c0cee29525640db9a", "score": "0.47350812", "text": "function _cals_build_marc_subfield_array($tag, $subfields) {\n if(is_array($subfields) && count($subfields)) {\n return array($tag => array(\n 'subfields' => $subfields,\n ));\n }\n return array();\n}", "title": "" }, { "docid": "dab4a1134d130fbb422d47c73569823a", "score": "0.4734362", "text": "function read_invoice_array_struct($arrStruct, &$offset) {\n\t\t$tag = $arrStruct[$offset];\n\t\tif ($tag[\"tag\"] != \"INVOICE\" || $tag[\"type\"] != \"open\")\n\t\t\treturn NULL;\n\t\t// parse the struct\n\t\t$struct_count = count($arrStruct);\n\t\tfor ($nIndex = $offset + 1; $nIndex < $struct_count; $nIndex++) {\n\t\t\t$tag = $arrStruct[$nIndex];\n\t\t\tif ($tag[\"type\"] == \"cdata\") // ignore NewLine character\n\t\t\t\tcontinue;\n\t\t\telseif ($tag[\"tag\"] == \"ITEMS\") { // start Items parsing\n\t\t\t\tif ($tag[\"type\"] != \"open\" || isset($item))\n\t\t\t\t\treturn NULL;\n\t\t\t\t$items = array();\n\t\t\t\t$item = NULL;\n\t\t\t\tfor (++$nIndex; $nIndex < $struct_count; $nIndex++) {\n\t\t\t\t\t$tag = $arrStruct[$nIndex];\n\t\t\t\t\tif ($tag[\"type\"] == \"cdata\") // ignore NewLine character\n\t\t\t\t\t\tcontinue;elseif (is_null($item)) {\n\t\t\t\t\t\tif ($tag[\"type\"] == \"open\") {\n\t\t\t\t\t\t\tif ($tag[\"tag\"] == \"ITEM\") { // start parsing an Item\n\t\t\t\t\t\t\t\t$item = array();\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\treturn NULL;\n\t\t\t\t\t\t} elseif ($tag[\"type\"] == \"close\") {\n\t\t\t\t\t\t\tif ($tag[\"tag\"] == \"ITEMS\") { // stop Items parsing\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\treturn NULL;\n\t\t\t\t\t\t} elseif ($tag[\"type\"] == \"complete\") // ignore unknow Items/CompleteTag\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn NULL;\n\t\t\t\t\t} elseif ($tag[\"type\"] == \"close\") { // stop parsing an Item\n\t\t\t\t\t\tif ($tag[\"tag\"] == \"ITEM\") { // add item to $items list\n\t\t\t\t\t\t\t$items[] = $item;\n\t\t\t\t\t\t\t$item = NULL;\n\t\t\t\t\t\t} else // never happen because of no open tag\n\t\t\t\t\t\t\treturn $tag[\"tag\"] . $tag[\"type\"] . $item;\n\t\t\t\t\t} elseif ($tag[\"type\"] != \"complete\")\n\t\t\t\t\t\treturn NULL;\n\t\t\t\t\telseif (!isset($tag[\"value\"])) // ignore null Item/CompleteTag\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telseif ($tag[\"tag\"] == \"ITEMID\")\n\t\t\t\t\t\t$item[\"ItemID\"] = $tag[\"value\"];\n\t\t\t\t\telseif ($tag[\"tag\"] == \"NAME\")\n\t\t\t\t\t\t$item[\"Name\"] = $tag[\"value\"];\n\t\t\t\t\telseif ($tag[\"tag\"] == \"DESCRIPTION\")\n\t\t\t\t\t\t$item[\"Description\"] = $tag[\"value\"];\n\t\t\t\t\telseif ($tag[\"tag\"] == \"UNITPRICE\")\n\t\t\t\t\t\t$item[\"UnitPrice\"] = $tag[\"value\"];\n\t\t\t\t\telseif ($tag[\"tag\"] == \"QUANTITY\")\n\t\t\t\t\t\t$item[\"Quantity\"] = $tag[\"value\"];\n\t\t\t\t\telseif ($tag[\"tag\"] == \"TAXABLE\")\n\t\t\t\t\t\t$item[\"Taxable\"] = $tag[\"value\"];\n\t\t\t\t\telse // ignore unknown Item/CompleteTag\n\t\t\t\t\t\tcontinue;\n\t\t\t\t} // end for\n\t\t\t\tif (count($items) == 0 || $tag[\"tag\"] != \"ITEMS\" || $tag[\"type\"] != \"close\")\n\t\t\t\t\treturn NULL;\n\t\t\t} elseif ($tag[\"type\"] == \"close\") { // stop parsing invoice\n\t\t\t\tif ($tag[\"tag\"]) {\n\t\t\t\t\t$offset = $nIndex;\n\t\t\t\t\tbreak;\n\t\t\t\t} else\n\t\t\t\t\treturn NULL;\n\t\t\t} elseif ($tag[\"type\"] != \"complete\") { // stop at unknown Invoice/NonCompleteTag\n\t\t\t\treturn NULL;\n\t\t\t} elseif (!isset($tag[\"value\"])) // ignore empty Invoice/CompleteTag\n\t\t\t\tcontinue;\n\t\t\telseif ($tag[\"tag\"] == \"AMOUNT\")\n\t\t\t\t$amount = $tag[\"value\"];\n\t\t\telseif ($tag[\"tag\"] == \"INVOICEID\")\n\t\t\t\t$invoice_id = $tag[\"value\"];\n\t\t\telseif ($tag[\"tag\"] == \"FROM\")\n\t\t\t\t$from = $tag[\"value\"];\n\t\t\telseif ($tag[\"tag\"] == \"TO\")\n\t\t\t\t$to = $tag[\"value\"];\n\t\t\telseif ($tag[\"tag\"] == \"DESCRIPTION\")\n\t\t\t\t$description = $tag[\"value\"];\n\t\t\telseif ($tag[\"tag\"] == \"TAX\")\n\t\t\t\t$tax = $tag[\"value\"];\n\t\t\telse // ignore unknown Invoice/CompleteTag\n\t\t\t\tcontinue;\n\t\t}\n\t\t// return object\n\t\tif (!isset($amount) || !isset($items))\n\t\t\treturn NULL;\n\t\t$mbvRequest = new MobiviCheckoutRequest();\n\t\t$mbvRequest->InvoiceAmount = $amount;\n\t\t$mbvRequest->InvoiceItems = $items;\n\t\tif (isset($from))\n\t\t\t$mbvRequest->InvoiceFrom = $from;\n\t\tif (isset($to))\n\t\t\t$mbvRequest->InvoiceTo = $to;\n\t\tif (isset($invoice_id))\n\t\t\t$mbvRequest->InvoiceID = $invoice_id;\n\t\tif (isset($description))\n\t\t\t$mbvRequest->InvoiceDescription = $description;\n\t\tif (isset($tax))\n\t\t\t$mbvRequest->InvoiceTax = $tax;\n\t\treturn $mbvRequest;\n\t}", "title": "" }, { "docid": "3ed8b42d9d233e5629eb006422304956", "score": "0.47334233", "text": "public function parseData(array $data)\n {\n $parsedData = [];\n foreach ($this->_keyMap() as $from => $to) {\n if (array_key_exists($from, $data)) {\n $parsedData[$to] = $data[$from];\n }\n }\n\n $parsedData['active'] = (bool)$parsedData['active'];\n $parsedData['createdDate'] = $this->convertDate($parsedData['createdDate']);\n $parsedData['usedDate'] = $this->convertDate($parsedData['usedDate']);\n $parsedData['uses'] = (int)$parsedData['uses'];\n\n return $parsedData;\n }", "title": "" }, { "docid": "620d420185e22580790aa2be2b28dc7e", "score": "0.4729448", "text": "public function testCanDeserializeArray( string $serialized )\n {\n $serializer = new IgbinarySerializer();\n $item = $serializer->deserialize( $serialized );\n\n $this->assertEquals( $item->value, [ 1, 2, 3 ] );\n $this->assertEqualsWithDelta( $item->expires, self::$start_time, 1 );\n }", "title": "" }, { "docid": "08f876eac1b7da2d0b8ef1ae9d23825e", "score": "0.47241566", "text": "public function unserialize(string $value) : array;", "title": "" }, { "docid": "59ea9c4d2cd2f94ac96f8698d1fcdb2c", "score": "0.47213748", "text": "public function parseDatField(string $datfield, ?string $repository = null): array\n {\n $type = $this->isDatField($datfield);\n\n if ($type === 0) {\n throw new UnparsableDatFieldException([$datfield]);\n }\n\n return $type === 1 ?\n $this->_parseDatFieldV1($datfield, $repository) :\n $this->_parseDatFieldV2($datfield, $repository);\n }", "title": "" }, { "docid": "236ecc5fff115260782cc166aed5485b", "score": "0.4720939", "text": "static public function pi_getFFvalue($T3FlexForm_array, $fieldName, $sheet='sDEF', $lang='lDEF', $value='vDEF')\t{\r\n\t\t$sheetArray = '';\r\n\t\tif(is_array($T3FlexForm_array)) {\r\n\t\t\t$sheetArray = $T3FlexForm_array['data'][$sheet][$lang];\r\n\t\t} else {\r\n\t\t\t$sheetArray = '';\r\n\t\t}\r\n\t\tif (is_array($sheetArray))\t{\r\n\t\t\treturn F3_MailformPlusPlus_StaticFuncs::pi_getFFvalueFromSheetArray($sheetArray, t3lib_div::trimExplode('/', $fieldName), $value);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7a81951578d56a78709f91445fd09e90", "score": "0.4711333", "text": "private static function convert($arr)\n\t{\n\t\tif (!Acf::setRawFilter()) {\n\t\t\t$arr = json_decode(json_encode($arr));\n\t\t}\n\t\treturn $arr;\n\t}", "title": "" }, { "docid": "a7c9496608eb90eb448e7f5128795004", "score": "0.46911353", "text": "function radar_shortcode_parse($out, $pairs, $atts) {\n if (!empty($atts['fields'])) {\n $out['fields'] = explode(',', $atts['fields']);\n }\n\n return $out;\n}", "title": "" }, { "docid": "137671cc154288c5c525b940cdd1c587", "score": "0.46902075", "text": "function content_podgroup_fix_multivalue_fields($element, &$form_state) {\n $field_name = $element['#field_name'];\n $delta = $element['#delta'];\n if (isset($form_state['values'][$field_name][$delta][0]) && is_array($form_state['values'][$field_name][$delta][0])) {\n $value = array_merge($form_state['values'][$field_name][$delta][0], array('_remove' => $element['#removed']));\n }\n else {\n $value = array('_remove' => $element['#removed']);\n }\n form_set_value($element, $value, $form_state);\n}", "title": "" }, { "docid": "8f1788a9565709765e815a86aa4193e9", "score": "0.46874785", "text": "function processFieldsFromArray( &$fields, $use_fields = array(), $field_deliminer = ',' )\r\n\t{\r\n\t\t$result = '';\r\n\t\t\r\n\t\t$c = count($use_fields);\r\n\t\tif( $c ) // we specified fields to export\r\n\t\t{\r\n\t\t\t// get only wanted fields\r\n\t\t\t$wanted = array();\r\n\t\t\tfor( $i = 0; $i < $c; $i++ )\r\n\t\t\t\t$wanted[] = $fields[$use_fields[$i]];\r\n\r\n\t\t\t$fields = $wanted;\r\n\t\t}\r\n\t\telse // all fields are processed\r\n\t\t\t$c = count( $fields );\r\n\t\t\r\n\t\t$db = JFactory::getDbo();\r\n\t\t// go through all fields and process them\r\n\t\tfor($i = 0; $i < $c; $i++ )\r\n\t\t{\r\n\t\t\tif( !isset( $fields[$i] ) || !strlen( $fields[$i] ) ) // first of all, check if this property isnt empty\r\n\t\t\t{\r\n\t\t\t\t$result .= $field_deliminer;\r\n\t\t\t\tcontinue; // go to another field\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// second step -> check, if the content is float/integer\r\n\t\t\tif( !strcmp( $fields[$i], ( int )$fields[$i] ) ) // the content is integer?\r\n\t\t\t{\r\n\t\t\t\t$result .= $field_deliminer.( int )$fields[$i];\r\n\t\t\t\tcontinue; // go to another field\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif( !strcmp( $fields[$i], ( float )$fields[$i] ) ) // the content is float?\r\n\t\t\t\t{\r\n\t\t\t\t\t$result .= $field_deliminer.( float )$fields[$i];\r\n\t\t\t\t\tcontinue; // go to another field\r\n\t\t\t\t}\r\n\t\t\t// as the last possibility -> it's a string\r\n\t\t\t// first of all -> double any double-quotes you find\r\n\t\t\t$fields[$i] = str_replace( '\"','\"\"', $fields[$i] );\r\n\t\t\t$result .= $field_deliminer.'\"'.$fields[$i].'\"';\r\n\t\t}\r\n\t\treturn substr($result, strlen( $field_deliminer ) ); // cut off the first deliminer\r\n\t}", "title": "" }, { "docid": "39b776a1fbccbaa3f9b567fa2dc664ac", "score": "0.46844295", "text": "protected static function getValueInQueryValue(array $value){\n\n\t\t//Should the first element of an item belong to\n\t\t//VALID_OPERATORS...\n\t\tif (array_key_exists($value[0], static::VALID_OPERATORS)) {\n\n\t\t\t$value = array_slice($value, 1);\n\n\t\t\t//Items with one-element arrays are turned into their values\n\t\t\t//Such as that col1 => [1] turns to col1 => 1\n\t\t\t$value = count($value) > 1 ? $value : $value[0];\n\n\t\t}\n\n\t\treturn $value;\n\t}", "title": "" } ]
2d3f0470bd91f62533e7ae989d0f62c0
Collects & returns details required for ETA calculation.
[ { "docid": "8f324d519ed9e391a5285c39c01a101b", "score": "0.5060108", "text": "function getETAConfig()\r\n {\r\n $eta_cfg = array();\r\n $eta_cfg['bgp_details'] = $this->getDetails();\r\n $eta_cfg['timezone'] = Date_API::getPreferredTimezone($bgp_details[\"bgp_usr_id\"]);\r\n\r\n return $eta_cfg;\r\n }", "title": "" } ]
[ { "docid": "de04920271fce8738c93ffedd0186841", "score": "0.5563681", "text": "function getETA($record_counter=0, $record_count=0, $cfg=null)\r\n {\r\n $eta = array();\r\n\r\n $utc_date = Date_API::getSimpleDateUTC();\r\n\r\n $records_left = $record_count - $record_counter;\r\n\r\n $time_per_object = Date_API::dateDiff(\"s\", $cfg['bgp_details']['bgp_started'], $utc_date);\r\n $time_per_object = round(($time_per_object / $record_counter), 2);\r\n $eta['time_per_object'] = $time_per_object;\r\n\r\n $exp_finish_time = new Date($utc_date);\r\n $exp_finish_time->addSeconds($time_per_object * $records_left);\r\n $eta['expected_finish'] = Date_API::getFormattedDate($exp_finish_time->getTime(), $cfg['timezone']);\r\n\r\n $eta['progress'] = intval(100 * $record_counter / $record_count);\r\n\r\n return $eta;\r\n }", "title": "" }, { "docid": "b2438aebc1afad4459f252641aa869ee", "score": "0.5414841", "text": "public function getEta()\n {\n return isset($this->eta) ? $this->eta : null;\n }", "title": "" }, { "docid": "3803b8ea4d629861ee03d102f84b773f", "score": "0.5388978", "text": "function amr_derive_for_list_or_eventinfo (&$e) {\n\n\tif (amr_need_this_field('_GEO') and empty($e['GEO']) ) { \n\t\tif (isset ($e['latitude']) and isset( $e['longitude'])) {\n\t\t\t$e['GEO'] = $e['latitude'].', '.$e['longitude'];\n\t\t\t}\n\t}\n\tif (amr_need_this_field('_map')) { \t// just prepare with whatever we ha, leave format to later\n\t\tif ((isset ($e['LOCATION'])) and (!empty($e['LOCATION']))) {\n\t\t\t\t$e['map'] = $e['LOCATION'];\n\t\t}\n\t\telse\t\n\t\tif (isset ($e['GEO'])) {\n\t\t\t$e['map'] = $e['GEO'];\n\t\t\t}\n\t}\n\t\n\t// 'TENTATIVE','DELEGATED','NEEDS_ACTION','DECLINED','COMPLETED','IN-PROCESS'\n\t\n\tif (amr_need_this_field('_Attendee-counts')) {\n\t\tif (isset($e['ATTENDEE'])) { // we have some attendees\n\t\t\t$e['Attendee-counts'] = amr_derive_attendee_counts($e['ATTENDEE']);\n\t\t}\n\t}\n\t\n\tif ($g = add_event_to_google($e))\n\t\t$e['addevent'] = $g;\n\n\tif (function_exists ('amr_subscribe_to_event')) {\n\t\t$g = amr_subscribe_to_event($e);\n\t\tif (!empty($g) ) $e['subscribeevent'] = $g;\n\t}\n\tif (function_exists ('amr_subscribe_to_event_series')) {\n\t\t$g = amr_subscribe_to_event_series($e);\n\t\tif (!empty($g) ) $e['subscribeseries'] = $g;\n\t}\n\tif (function_exists ('amr_indicate_attendance') and !empty($e['id'])) {\n\t\t$e['attending_event'] = amr_indicate_attendance($e['id']);\n\t}\n\tif (function_exists ('amr_register_for_event') and !empty($e['id'])) {\n\t\t$e['register'] = amr_register_for_event($e['id']);\n\t}\n\t$e = apply_filters('amr-derive-custom-fields',$e);\n\treturn ($e);\n\n}", "title": "" }, { "docid": "5a7b92b17d1fc4609f317654ec612fce", "score": "0.5355337", "text": "function calculateOTCompensation($db, $strDate, $strIDEmployee, $strStart, $strFinish, $intDuration = 0)\n{\n $arrResult = [\"meal\" => 0, \"transport\" => 0];\n if ($strDate == \"\" || $strIDEmployee == \"\" || $strStart == \"\" || $strFinish == \"\") {\n return $arrResult;\n }\n $bolHoliday = isHoliday($strDate);\n $strFinish = substr($strFinish, 0, 5);\n $intDuration = (int)($intDuration / 60);\n // ambil info karyawan\n $strSQL = \"SELECT * FROM hrd_employee WHERE flag = 0 AND id = '$strIDEmployee' \";\n $resDb = $db->execute($strSQL);\n if ($rowDb = $db->fetchrow($resDb)) {\n $fltMeal = 0;\n $fltTransport = 0;\n // ambil platform berdasarkan status karyawan\n $strLimitTransport = getSetting(\"ot_transport_normal_limit\");\n $strLimitTransport = ($strLimitTransport == \"\") ? \"21:00\" : substr($strLimitTransport, 0, 5);\n if ($rowDb['employee_status'] == STATUS_OUTSOURCE) {\n if ($bolHoliday) {\n $fltMeal = getSetting(\"ot_meal_holiday_outsource\");\n $fltTransport = getSetting(\"ot_transport_holiday_outsource\");\n } else {\n $fltMeal = getSetting(\"ot_meal_normal_outsource\");\n $fltTransport = getSetting(\"ot_transport_normal_outsource\");\n }\n } else { // permanent dan kontrak\n if ($bolHoliday) {\n $fltMeal = getSetting(\"ot_meal_holiday_permanent\");\n $fltTransport = getSetting(\"ot_transport_holiday_permanent\");\n } else {\n $fltMeal = getSetting(\"ot_meal_normal_permanent\");\n $fltTransport = getSetting(\"ot_transport_normal_permanent\");\n }\n }\n // ambil batas jam untuk uang makan\n $intLimitMeal1 = getSetting(\"ot_meal_limit1\");\n $intLimitMeal2 = getSetting(\"ot_meal_limit2\");\n $intLimitMeal3 = getSetting(\"ot_meal_limit3\");\n // cek validasi\n if (!is_numeric($fltMeal)) {\n $fltMeal = 0;\n }\n if (!is_numeric($fltTransport)) {\n $fltTransport = 0;\n }\n if (!is_numeric($intLimitMeal1)) {\n $intLimitMeal1 = 0;\n }\n if (!is_numeric($intLimitMeal2)) {\n $intLimitMeal2 = 0;\n }\n if (!is_numeric($intLimitMeal3)) {\n $intLimitMeal3 = 0;\n }\n // hitung jatah transport\n if ($bolHoliday) {\n $arrResult['transport'] = $fltTransport;\n } else {\n // hari normal, harus lebih atas\n if ($strFinish >= $strLimitTransport) {\n $arrResult['transport'] = $fltTransport;\n }\n }\n //whether get meal or not ==> based on organization chart\n //--------------------------------------------------------------------------\n $strSQL = \"SELECT t1.get_ot_meal AS division_meal, t2.get_ot_meal AS department_meal, \";\n $strSQL .= \"t3.get_ot_meal AS section_meal, t4.get_ot_meal AS subsection_meal \";\n $strSQL .= \"FROM hrd_employee AS t0 \";\n $strSQL .= \"LEFT JOIN hrd_division AS t1 ON t0.division_code = t1.division_code \";\n $strSQL .= \"LEFT JOIN hrd_department AS t2 ON t0.department_code = t2.department_code \";\n $strSQL .= \"LEFT JOIN hrd_section AS t3 ON t0.section_code = t3.section_code \";\n $strSQL .= \"LEFT JOIN hrd_sub_section AS t4 ON t0.sub_section_code = t4.sub_section_code \";\n $strSQL .= \"WHERE t0.id = '$strIDEmployee'\";\n $resS = $db->execute($strSQL);\n if ($rowS = $db->fetchrow($resS)) {\n if ($rowS['subsection_meal'] == 'f') {\n $bolGetMeal = false;\n } else if ($rowS['subsection_meal'] == 't') {\n $bolGetMeal = true;\n } else if ($rowS['section_meal'] == 'f') {\n $bolGetMeal = false;\n } else if ($rowS['section_meal'] == 't') {\n $bolGetMeal = true;\n } else if ($rowS['department_meal'] == 'f') {\n $bolGetMeal = false;\n } else if ($rowS['department_meal'] == 't') {\n $bolGetMeal = true;\n } else if ($rowS['division_meal'] == 'f') {\n $bolGetMeal = false;\n } else if ($rowS['division_meal'] == 't') {\n $bolGetMeal = true;\n } else {\n $bolGetMeal = false;\n }\n } else {\n $bolGetMeal = false;\n }\n //--------------------------------------------------------------------------\n // hitung jatah makan\n if ($bolGetMeal) {\n if ($intDuration >= ($intLimitMeal1 + $intLimitMeal2 + $intLimitMeal3)) {\n $arrResult['meal'] = $fltMeal * 3;\n } else if ($intDuration >= ($intLimitMeal1 + $intLimitMeal2)) {\n $arrResult['meal'] = $fltMeal * 2;\n } else if ($intDuration >= $intLimitMeal1) {\n $arrResult['meal'] = $fltMeal;\n }\n } else {\n $arrResult['meal'] = \"test\";\n }\n }\n return $arrResult;\n}", "title": "" }, { "docid": "0f6fb2e09634adea25e7d57865b95ae5", "score": "0.5332396", "text": "public function getTA()\n {\n return $this->TA;\n }", "title": "" }, { "docid": "2bdf1384bb28adb66ae54bd63895bb71", "score": "0.5268932", "text": "public\n function getCalculation($product, $product_variation, $cost, $loan_amount, $loan_term_real, $loan_term_search_in_days, $prepayment_percent, $time_type = 2)\n {\n try {\n /*loan Application Fee*/\n $loanApplicationFee = $product->loan_application_absolute_amount;\n\n if (strpos($loanApplicationFee, '%') !== false) {\n\n $loanApplicationFeeFix = 0;\n\n $loanApplicationFeePercent = str_replace('%', '', $loanApplicationFee);\n } else {\n $loanApplicationFeeFix = $loanApplicationFee;\n\n $loanApplicationFeePercent = 0;\n }\n /*loan Application Fee*/\n\n /*loan Service Fee*/\n $loanServiceFee = $product->loan_service_absolute_amount;\n\n if (strpos($loanServiceFee, '%') !== false) {\n\n $loanServiceFeeFix = 0;\n\n $loanServiceFeePercent = str_replace('%', '', $loanServiceFee);\n\n $loanServiceFeePercent = floatval($loanServiceFeePercent);\n } else {\n $loanServiceFeeFix = intval($loanServiceFee);\n\n $loanServiceFeePercent = 0;\n }\n /*loan Service Fee*/\n\n /*loan Collateral Assessment Fee*/\n $loanCollateralAssessmentFee = $product->pledge_assessment_absolute_amount;\n\n if (strpos($loanCollateralAssessmentFee, '%') !== false) {\n\n $loanCollateralAssessmentFeeFix = 0;\n\n $loanCollateralAssessmentFeePercent = str_replace('%', '', $loanCollateralAssessmentFee);\n } else {\n $loanCollateralAssessmentFeeFix = $loanCollateralAssessmentFee;\n\n $loanCollateralAssessmentFeePercent = 0;\n }\n /*loan Collateral Assessment Fee*/\n\n /*loan Cash Service Fee*/\n $loanCashServiceFee = $product->cashing_pay_absolute_amount;\n\n if (strpos($loanCashServiceFee, '%') !== false) {\n\n $loanCashServiceFeeFix = 0;\n\n $loanCashServiceFeePercent = str_replace('%', '', $loanCashServiceFee);\n\n $loanCashServiceFeePercent = floatval($loanCashServiceFeePercent);\n } else {\n $loanCashServiceFeeFix = intval($loanCashServiceFee);\n\n $loanCashServiceFeePercent = 0;\n }\n /*loan Cash Service Fee*/\n\n /*loan Collateral Insurance Fee*/\n $loanCollateralInsuranceFee = $product->pledge_insurance_absolute_amount;\n\n if (strpos($loanCollateralInsuranceFee, '%') !== false) {\n\n $loanCollateralInsuranceFeeFix = 0;\n\n $loanCollateralInsuranceFeePercent = str_replace('%', '', $loanCollateralInsuranceFee);\n } else {\n $loanCollateralInsuranceFeeFix = $loanCollateralInsuranceFee;\n\n $loanCollateralInsuranceFeePercent = 0;\n }\n /*loan Collateral Assessment Fee*/\n\n /*loan Collateral Maintenance Fee*/\n $loanCollateralMaintenanceFee = $product->pledge_keep_absolute_amount;\n\n if (strpos($loanCollateralMaintenanceFee, '%') !== false) {\n\n $loanCollateralMaintenanceFeeFix = 0;\n\n $loanCollateralMaintenanceFeePercent = str_replace('%', '', $loanCollateralMaintenanceFee);\n } else {\n $loanCollateralMaintenanceFeeFix = $loanCollateralMaintenanceFee;\n\n $loanCollateralMaintenanceFeePercent = 0;\n }\n /*loan Collateral Maintenance Fee*/\n\n /*loan Notary Validation Fee*/\n $loanNotaryValidationFee = $product->notarial_ratification_pay;\n\n if (strpos($loanNotaryValidationFee, '%') !== false) {\n\n $loanNotaryValidationFeeFix = 0;\n\n $loanNotaryValidationFeePercent = str_replace('%', '', $loanNotaryValidationFee);\n } else {\n $loanNotaryValidationFeeFix = $loanNotaryValidationFee;\n\n $loanNotaryValidationFeePercent = 0;\n }\n /*loan Notary Validation Fee*/\n\n /*loan Pledge State Fee*/\n $loanPledgeStateFee = $product->pledge_state_registration_pay;\n\n if (strpos($loanPledgeStateFee, '%') !== false) {\n\n $loanPledgeStateFeeFix = 0;\n\n $loanPledgeStateFeePercent = str_replace('%', '', $loanPledgeStateFee);\n\n $loanPledgeStateFeePercent = floatval($loanPledgeStateFeePercent);\n } else {\n $loanPledgeStateFeeFix = $loanPledgeStateFee;\n\n $loanPledgeStateFeeFix = intval($loanPledgeStateFeeFix);\n\n $loanPledgeStateFeePercent = 0;\n }\n /*loan Pledge State Fee*/\n\n /*Loan Borrower Insurance Fee*/\n $loanBorrowerInsuranceFee = $product->borrower_accident_insurance_fee_absolute_amount;\n\n if (strpos($loanBorrowerInsuranceFee, '%') !== false) {\n\n $loanBorrowerInsuranceFeeFix = 0;\n\n $loanBorrowerInsuranceFeePercent = str_replace('%', '', $loanBorrowerInsuranceFee);\n } else {\n $loanBorrowerInsuranceFeeFix = $loanBorrowerInsuranceFee;\n\n $loanBorrowerInsuranceFeePercent = 0;\n }\n /*Loan Borrower Insurance Fee*/\n\n /*Loan Cadastre Fee*/\n $loanCadastreFeeFix = $product->cadastre_related_fee;\n /*Loan Cadastre Fee*/\n\n $map_loan_repayment_period_arr = [2 => 2, 3 => 1, 4 => 3];\n\n $map_loan_percent_repayment_period_arr = [2 => 2, 3 => 1, 4 => 4, 5 => 3];\n\n $repayment_method = $product_variation->repayment_type - 1;\n\n if ($repayment_method == 2) {\n\n $loan_repayment_period = $map_loan_repayment_period_arr[$product_variation->repayment_loan_interval_type_id];\n\n $loan_percent_repayment_period = $map_loan_percent_repayment_period_arr[$product_variation->repayment_percent_interval_type_id];\n } else {\n $loan_repayment_period = 1;\n\n $loan_percent_repayment_period = 1;\n }\n\n $pledge_insurance_pay_type = $product->pledge_insurance_pay_type;\n\n $loan_service_pay_type = $product->loan_service_pay_type;\n\n if (is_null($pledge_insurance_pay_type) || $pledge_insurance_pay_type == 4) {\n $pledge_insurance_pay_type = 1;\n }\n if (is_null($loan_service_pay_type)) {\n $loan_service_pay_type = 1;\n }\n\n if ($loan_term_search_in_days < 30) {\n $loan_term_search_in_days_calculate = 30;\n } else {\n $loan_term_search_in_days_calculate = $loan_term_search_in_days;\n }\n\n if ($time_type == 1) {\n $loan_term_in_months = ceil($loan_term_search_in_days / 30);// dd(fmod(365,365) == 0);\n } else if ($time_type == 3) {\n $loan_term_in_months = $loan_term_real * 12;\n } else if ($time_type == 2) {\n $loan_term_in_months = $loan_term_real;\n }\n\n $r = new Finance();\n\n $r->setLoanpledge($cost);\n\n $r->setLoanamount(intval($loan_amount));\n\n $r->setLoanperiod(intval($loan_term_search_in_days_calculate));\n\n $r->setLoanpercent($product_variation->percentage);\n\n $r->setLoanRepaymentMethod($repayment_method);\n\n $r->setLoanRepaymentPeriod($loan_repayment_period);\n\n $r->setLoanInterestRepaymentPeriod($loan_percent_repayment_period);\n\n if ($product->privileged_term == 1 && $repayment_method == 2) {\n\n if ($product->privileged_term_loan_time_type == 1) {\n\n $privileged_term_loan_months = ceil($product->privileged_term_loan / 30);\n } else if ($product->privileged_term_loan_time_type == 2) {\n\n $privileged_term_loan_months = $product->privileged_term_loan;\n } else if ($product->privileged_term_loan_time_type == 3) {\n\n $privileged_term_loan_months = $product->privileged_term_loan * 12;\n }\n\n if ($product->privileged_term_percentage_time_type == 1) {\n\n $privileged_term_percentage_months = ceil($product->privileged_term_percentage / 30);\n } else if ($product->privileged_term_percentage_time_type == 2) {\n\n $privileged_term_percentage_months = $product->privileged_term_percentage;\n } else if ($product->privileged_term_percentage_time_type == 3) {\n\n $privileged_term_percentage_months = $product->privileged_term_percentage * 12;\n }\n//\n// $r->setLoanGracePeriodPrincipal($privileged_term_loan_months);\n//\n// $r->setLoanGracePeriodInterest($privileged_term_percentage_months);\n }\n\n// dd(array_key_exists('',$product->toArray()));\n\n $loan_service_pay_type = $product->loan_service_pay_type;\n\n $pledge_assessment_pay_once_type = $product->pledge_assessment_pay_once_type;\n\n if (is_null($loan_service_pay_type)) {\n $loan_service_pay_type = 1;\n }\n\n if (is_null($pledge_assessment_pay_once_type)) {\n $pledge_assessment_pay_once_type = 1;\n }\n\n $r->setLoanApplicationFee($loanApplicationFeeFix, $loanApplicationFeePercent, $product->loan_application_survey_pay_from, $product->loan_application_survey_pay_to, 1); // every loanType time is 1\n\n if ($loanServiceFeePercent > 0) {\n $r->setLoanServiceFee($loanServiceFeeFix, $loanServiceFeePercent, $product->loan_service_pay_from, intval($product->loan_service_pay_to), 1);//$loan_service_pay_type\n } else {\n $r->setLoanServiceFee($loanServiceFeeFix);\n }\n\n $r->setLoanCollateralAssessmentFee($loanCollateralAssessmentFeeFix, $loanCollateralAssessmentFeePercent, $product->pledge_assessment_pay_from, $product->pledge_assessment_pay_to, 1); // every loanType time is 1\n\n $r->setLoanCollateralInsuranceFee($loanCollateralInsuranceFeeFix, $loanCollateralInsuranceFeePercent, $product->pledge_insurance_pay_from, $product->pledge_insurance_pay_to, 1);\n\n $r->setLoanCollateralMaintenanceFee($loanCollateralMaintenanceFeeFix, $loanCollateralMaintenanceFeePercent, $product->pledge_keep_pay_from, $product->pledge_keep_pay_to, 1);\n\n $r->setLoanNotaryValidationFee($loanNotaryValidationFeeFix, $loanNotaryValidationFeePercent, $product->notarial_ratification_pay_from, $product->notarial_ratification_pay_to, 1); // every loanType time is 1\n\n if ($loanCashServiceFeePercent > 0) {\n $r->setLoanCashServiceFee($loanCashServiceFeeFix, $loanCashServiceFeePercent, $product->cashing_pay_from, $product->cashing_pay_to, 1); // every loanType time is 1\n } else {\n $r->setLoanCashServiceFee($loanCashServiceFeeFix); // every loanType time is 1\n }\n\n if ($loanPledgeStateFeePercent > 0) {\n $r->setLoanPledgeStateFee($loanPledgeStateFeeFix, $loanPledgeStateFeePercent, $product->pledge_state_registration_pay_from, $product->pledge_state_registration_pay_to, 1); // every loanType time is 1\n } else {\n $r->setLoanPledgeStateFee($loanPledgeStateFeeFix); // case $loanPledgeStateFee is fix\n }\n\n $r->setLoanCadastreFee($loanCadastreFeeFix); // every loan is fix\n\n $r->setLoanBorrowerInsuranceFee($loanBorrowerInsuranceFeeFix, $loanBorrowerInsuranceFeePercent, $product->borrower_accident_insurance_fee_pay_from, $product->borrower_accident_insurance_fee_pay_to, 1); //\n//dd($product->otherPayments);\n\n if ($product->other_payments == 1) {\n\n foreach ($product->otherPayments as $productCurrOtherPayment) {\n\n $loanOtherFee = $productCurrOtherPayment->other_payments_amount;\n\n if (strpos($loanOtherFee, '%') !== false) {\n\n $loanOtherFeeFix = 0;\n\n $loanOtherFeePercent = str_replace('%', '', $loanOtherFee);\n\n $loanOtherFeePercent = floatval($loanOtherFeePercent);\n } else {\n $loanOtherFeeFix = $loanOtherFee;\n\n $loanOtherFeePercent = 0;\n }\n\n $loanOtherFeeType = $productCurrOtherPayment->other_payments_periodicity;\n\n $loanOtherFeeFrom = $productCurrOtherPayment->other_payments_from;\n\n $loanOtherFeeTo = $productCurrOtherPayment->other_payments_to;\n\n $loanOtherFeeLoanType = $productCurrOtherPayment->other_payments_sum_percent_type;\n\n if (is_null($loanOtherFeeLoanType)) {\n $loanOtherFeeLoanType = 1;\n }\n\n $r->setLoanOtherFee($loanOtherFeeFix, $loanOtherFeeType, $loanOtherFeePercent, $loanOtherFeeFrom, $loanOtherFeeTo, $loanOtherFeeLoanType);\n }\n }\n\n// $executionStartTime = microtime(true);\n $result = $r->Calculate();\n// $executionEndTime = microtime(true);\n// $seconds = $executionEndTime - $executionStartTime;\n// dd($seconds);\n $schedules = $result[\"schedule\"];\n\n $main_require_payments = array_sum($result[\"other_fee\"]);\n//\n// if ($main_require_payments > 100) {\n// dd($loanServiceFeeFix);\n// dd($result[\"other_fee\"]);\n// }\n\n $other_require_payments = 0;\n\n $sum_payments = 0;\n\n foreach ($schedules as $currSchedule) {\n\n $currScheduleCopy = $currSchedule; // copy current Schedule for calculating sum payments\n\n unset($currSchedule[\"principal_balance\"], $currSchedule[\"monthly_interest\"], $currSchedule[\"monthly_principal_amount\"], $currSchedule[\"loan_pay_day\"]);\n\n $other_require_payments = $other_require_payments + array_sum($currSchedule);\n\n\n unset($currScheduleCopy[\"principal_balance\"], $currScheduleCopy[\"loan_pay_day\"]);\n\n $sum_payments = $sum_payments + array_sum($currScheduleCopy);\n }\n\n $result[\"require_payments\"] = $main_require_payments + $other_require_payments;\n\n $result[\"sum_payments\"] = $main_require_payments + $sum_payments;\n\n return $result;\n } catch (\\Exception $e) {\n dd($e->getFile(), $e->getLine(), $e->getMessage());\n }\n }", "title": "" }, { "docid": "6dd952fd947f3e0ba72a0c93a0277247", "score": "0.5266284", "text": "public function collectEmailTrackingData() {\n $conversions = 0;\n $analytics = $this->getService();\n $profile = $this->getFirstProfileId($analytics); \n \n // get data from each day\n $next_date = $this->date_from;\n $results = $this->getResultsEvents($analytics, $profile, $next_date, $this->funnel_source);\n if (isset($results)) {\n $rows = $results->getRows();\n $conversions = 0;\n if (count($rows) > 0) {\n foreach ($rows as $row) {\n if ($row[2] > 0) {\n $conversions+=$row[2];\n }\n }\n }\n //Logger::addLog('SOURCE EVENT count ' . count($rows) );\n if ($conversions > 0) {\n //Logger::addLog('SOURCE GA emal events on ' .$next_date . \": \" . $conversions);\n $this->setObjectData($conversions);\n }\n \n } else {\n //Logger::addLog('NO Evnet information on ' .$next_date);\n }\n return $conversions;\n }", "title": "" }, { "docid": "5c7068709f55f4a1094099d2eb9da1e6", "score": "0.52013606", "text": "protected function gatherTimeData()\n\t{\n\t\t$timeTotals = array();\n\t\t$timeTotals['total'] = $this->getReadableTime(microtime(true) - $this->startTime);\n\t\t$timeTotals['allowed'] = ini_get('max_execution_time');\n\t\t$this->totals['time'] = $timeTotals;\n\t}", "title": "" }, { "docid": "800784e631f6926a69c4742552c0ff10", "score": "0.5144153", "text": "function getAssentInfo( $pguid, $token ) {\n global $verbose;\n\n // assent information is stored at baseline\n $baselineEventName = \"baseline_year_1_arm_1\";\n\n $args = array(\n 'token' => $token,\n 'content' => 'record',\n 'format' => 'json',\n 'type' => 'flat',\n 'records' => array($pguid),\n 'fields' => array('asnt_sign','asnt_timestamp','nih_tbx_summary_scores_daic_use_only_complete'),\n 'events' => array($baselineEventName),\n 'rawOrLabel' => 'raw',\n 'rawOrLabelHeaders' => 'raw',\n 'exportCheckboxLabel' => 'false',\n 'exportSurveyFields' => 'false',\n 'exportDataAccessGroups' => 'false',\n 'returnFormat' => 'json'\n );\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, 'https://abcd-rc.ucsd.edu/redcap/api/');\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_VERBOSE, 0);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_AUTOREFERER, true);\n curl_setopt($ch, CURLOPT_MAXREDIRS, 10);\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');\n curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($args, '', '&'));\n $output = curl_exec($ch);\n if ($verbose) echo(\"output:\\n\". json_encode($output, JSON_PRETTY_PRINT).\"\\n\");\n $assented = json_decode($output, true)[0]['asnt_sign'];\n\n if (($assented == \"\") || ($assented == false)) {\n $assented = false;\n } else {\n $assented = true;\n }\n\n $assentDate = json_decode($output, true)[0]['asnt_timestamp'];\n \n $alreadyComplete = json_decode($output, true)[0]['nih_tbx_summary_scores_daic_use_only_complete'];\n \n curl_close($ch);\n \n if ($verbose) echo(\"assented: \" . $assented . \"\\n\");\n if ($verbose) echo(\"assentDate: \" . $assentDate . \"\\n\");\n if ($verbose) echo(\"alreadyComplete: \" . $alreadyComplete . \"\\n\");\n\n return ( array( \"assented\" => $assented, \"assentDate\" => $assentDate, \"alreadyComplete\" => $alreadyComplete ) );\n}", "title": "" }, { "docid": "be6d52e3814a9b5efcb6be458ce10ed7", "score": "0.5127946", "text": "public function index()\n {\n\n try{\n \n $event=$this->specialEventObj->getEvent();\n $user=Auth::user();\n $add=$this->setting->getASP();\n $other['ADVERTISER_SLOT']=['price'=>$add->option_value,'is_purchased'=>$this->advertiseEventSlotPuruchase->isPurchased($user->id)>0?1:0];\n $add=$this->setting->getTMSP();\n $other['TARGET_MARKET']=['price'=>$add->option_value,'is_purchased'=>$this->business->isPurchased($user->id)>0?1:0];\n \n $data=collect(['event'=> $event,'addition'=>$other]);\n return $this->responseManager(Config('statuscodes.request_status.SUCCESS'), 'INFORMATION_FETCH_SUCCESS', 'response', $data);\n \n } catch (\\PDOException $e) {\n \n return $this->responseManager(Config('statuscodes.request_status.ERROR'), 'DB_ERROR', 'error_details', $errorResponse);\n }\n }", "title": "" }, { "docid": "ea970a31500716da1827e50c4975547d", "score": "0.5127926", "text": "public\n function\n getMainRequireFeesSum()\n {\n\n }", "title": "" }, { "docid": "23376d87cba452806aa7c052491a9641", "score": "0.5110713", "text": "protected function initTotalTEUS()\n {\n $shippingReservations = ShippingReservation::with('containerSizes')->get(['id', 'created_at']);\n $this->totalTEUS = $this->countTEUS($shippingReservations);\n\n $dailyShippingReservations = getDailyRecords($shippingReservations);\n $this->dailyTEUS = $this->countTEUS($dailyShippingReservations);\n\n $weeklyShippingReservations = getWeeklyRecords($shippingReservations);\n $this->weeklyTEUS = $this->countTEUS($weeklyShippingReservations);\n\n $monthlyShippingReservations = getMonthlyRecords($shippingReservations);\n $this->monthlyTEUS = $this->countTEUS($monthlyShippingReservations);\n }", "title": "" }, { "docid": "ac0e12659278a26ca02b5dfdfd1aa5f9", "score": "0.50902605", "text": "public function extraPortfolioItemInfo()\n\t{\n\t\t$extraInfo = array();\n\t\t\n\t\t$extraInfo['total_text'] \t= $this->lang->words['global_invested'];\n\t\t$extraInfo['cost'] \t\t \t= $this->caches['ibEco_lts'][ $this->cartItem['p_type_id'] ]['lt_min'];\n\t\t$extraInfo['total'] \t \t= $this->caches['ibEco_lts'][ $this->cartItem['p_type_id'] ]['total_invested'];\n\t\t$extraInfo['total_bought']\t= $this->currencySymbolForSums().$this->registry->getClass('class_localization')->formatNumber( $extraInfo['total'], $this->decimalPlacesForSums());\n\t\t\n\t\treturn $extraInfo;\n\t}", "title": "" }, { "docid": "431015ade2db2b1c68cf241cd7202c3b", "score": "0.50666064", "text": "private function retrieveExpectedAccountTotalData($account){\n $sanity_check_query = DB::table('entries')\n ->select(DB::raw(\"IFNULL( SUM( IF( entries.expense=1, -1*entries.entry_value, entries.entry_value ) ), 0 ) as actual\"))\n ->join('account_types', function($join) use ($account){\n $join->on('entries.account_type_id', '=', 'account_types.id')\n ->where('account_types.account_id', $account->id);\n })\n ->where('entries.disabled', '0')\n ->orderBy(DB::raw('entries.entry_date desc, entries.id'), 'desc');\n /**\n * The above stuff is translated into MySQL here:\n SELECT\n IFNULL( SUM( IF( entries.expense=1, -1*entries.entry_value, entries.entry_value ) ), 0 ) as actual\n FROM entries\n INNER JOIN account_types\n ON entries.account_type_id = account_types.id\n AND account_types.account_id = $account->id\n WHERE entries.disabled = 0\n ORDER BY entries.entry_date DESC, entries.id DESC\n */\n\n $this->notifyInternally(\"Checking account ID:\".$account->id, self::LOG_LEVEL_DEBUG);\n $sanity_check_result = $sanity_check_query->get();\n $sanity_check_object = new SanityCheckAlertObject();\n $sanity_check_object->actual = $sanity_check_result[0]->actual;\n $sanity_check_object->expected = $account->total;\n $sanity_check_object->account_id = $account->id;\n $sanity_check_object->account_name = $account->name;\n return $sanity_check_object;\n }", "title": "" }, { "docid": "defcd7c11a21bd137b01c28d424f85f7", "score": "0.50633705", "text": "public function getLocationTicketTaskEstimationCompletionDate(){\n $tickets=Ticket::all();\n $output=[];\n foreach ($tickets as $ticket){\n $tasks= $ticket->employeeTask()->get();\n foreach ($tasks as $task){\n array_push($output,[\"url\"=>$ticket->id,\"title\"=>\"ticket task Completion\",\n \"startsAt\"=>$task->estimated_completion_date]);\n }\n }\n return $output;\n }", "title": "" }, { "docid": "9993d1d9b2870ac91f0f20c635be6344", "score": "0.5062951", "text": "public function get_eau()\n {\n return $this->_eau;\n }", "title": "" }, { "docid": "e1a2aa2191d7e3824f1de1732c41e8ea", "score": "0.50326794", "text": "protected function _calculateInternalAccumulatedInformationsArray()\n {\n $tree = $this->tree;\n $l10ncfg = $this->l10ncfg;\n $accum = [];\n $sysLang = $this->sysLang;\n // FlexForm Diff data:\n $flexFormDiff = unserialize($l10ncfg['flexformdiff']);\n $flexFormDiff = $flexFormDiff[$sysLang];\n $excludeIndex = array_flip(GeneralUtility::trimExplode(',', $l10ncfg['exclude'], 1));\n // Init:\n /** @var Tools $t8Tools */\n $t8Tools = GeneralUtility::makeInstance(Tools::class);\n $t8Tools->verbose = false; // Otherwise it will show records which has fields but none editable.\n if ($l10ncfg['incfcewithdefaultlanguage'] == 1) {\n $t8Tools->includeFceWithDefaultLanguage = true;\n }\n // Set preview language (only first one in list is supported):\n if ($this->forcedPreviewLanguage != '') {\n $previewLanguage = $this->forcedPreviewLanguage;\n } else {\n $previewLanguage = current(\n GeneralUtility::intExplode(\n ',',\n $this->getBackendUser()->getTSConfig('options.additionalPreviewLanguages')['value'] ?? ''\n )\n );\n }\n if ($previewLanguage) {\n $t8Tools->previewLanguages = [$previewLanguage];\n }\n\n // Traverse tree elements:\n foreach ($tree->tree as $treeElement) {\n $pageId = $treeElement['row']['uid'];\n if (isset($excludeIndex['pages:' . $pageId]) || in_array($treeElement['row']['doktype'], $this->disallowDoktypes)) {\n continue;\n }\n\n $accum[$pageId]['header']['title'] = $treeElement['row']['title'];\n $accum[$pageId]['header']['icon'] = $treeElement['HTML'];\n $accum[$pageId]['header']['prevLang'] = $previewLanguage;\n $accum[$pageId]['items'] = [];\n // Traverse tables:\n foreach ($GLOBALS['TCA'] as $table => $cfg) {\n $fileList = '';\n // Only those tables we want to work on:\n if (!GeneralUtility::inList($l10ncfg['tablelist'], $table)) {\n continue;\n }\n if ($table === 'pages') {\n $accum[$pageId]['items'][$table][$pageId] = $t8Tools->translationDetails(\n 'pages',\n BackendUtility::getRecordWSOL('pages', $pageId),\n $sysLang,\n $flexFormDiff,\n $previewLanguage\n );\n $this->_increaseInternalCounters($accum[$pageId]['items'][$table][$pageId]['fields']);\n } else {\n $allRows = $t8Tools->getRecordsToTranslateFromTable($table, $pageId);\n if (!is_array($allRows)) {\n continue;\n }\n if (empty($allRows)) {\n continue;\n }\n\n // Now, for each record, look for localization:\n foreach ($allRows as $row) {\n BackendUtility::workspaceOL($table, $row);\n if (!is_array($row)) {\n continue;\n }\n if (isset($excludeIndex[$table . ':' . $row['uid']])) {\n continue;\n }\n if ($table === 'sys_file_reference') {\n $fileList .= $fileList ? ',' . (int)$row['uid_local'] : (int)$row['uid_local'];\n }\n $accum[$pageId]['items'][$table][$row['uid']] = $t8Tools->translationDetails(\n $table,\n $row,\n $sysLang,\n $flexFormDiff,\n $previewLanguage\n );\n $this->_increaseInternalCounters($accum[$pageId]['items'][$table][$row['uid']]['fields']);\n }\n }\n\n if ($table === 'sys_file_reference' && !empty($fileList)) {\n $fileList = array_keys(array_flip(GeneralUtility::intExplode(',', $fileList, true)));\n if (empty($fileList)) {\n continue;\n }\n $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('sys_file_metadata');\n $metaData = $queryBuilder->select('uid')\n ->from('sys_file_metadata')\n ->where(\n $queryBuilder->expr()->eq(\n 'sys_language_uid',\n $queryBuilder->createNamedParameter((int)$previewLanguage, \\PDO::PARAM_INT)\n ),\n $queryBuilder->expr()->in(\n 'file',\n $fileList\n )\n )\n ->orderBy('uid')\n ->execute()\n ->fetchAll();\n\n if (empty($metaData)) {\n continue;\n }\n\n $l10ncfg['include'] .= $l10ncfg['include'] ? ',' : '';\n foreach ($metaData as $data) {\n $l10ncfg['include'] .= 'sys_file_metadata:' . $data['uid'] . ',';\n }\n $l10ncfg['include'] = rtrim($l10ncfg['include'], ',');\n }\n }\n }\n\n $includeIndex = array_unique(GeneralUtility::trimExplode(',', $l10ncfg['include'], 1));\n foreach ($includeIndex as $recId) {\n list($table, $uid) = explode(':', $recId);\n $row = BackendUtility::getRecordWSOL($table, $uid);\n if (count($row)) {\n $accum[-1]['items'][$table][$row['uid']] = $t8Tools->translationDetails($table, $row, $sysLang, $flexFormDiff, $previewLanguage);\n $this->_increaseInternalCounters($accum[-1]['items'][$table][$row['uid']]['fields']);\n }\n }\n // debug($accum);\n $this->_accumulatedInformations = $accum;\n }", "title": "" }, { "docid": "ecb52fbf40d2cc07089360b32b78cb46", "score": "0.5026252", "text": "public function getQuotations(){\n $quotes = [];\n foreach ($this->data as $quote) {\n $newQuote = [];\n $newQuote['accounting_id'] = IndexSanityCheckHelper::indexSanityCheck('QuoteID', $quote);\n $newQuote['status'] = $this->parseStatus(IndexSanityCheckHelper::indexSanityCheck('Status', $quote));\n $newQuote['sub_total'] = IndexSanityCheckHelper::indexSanityCheck('SubTotal', $quote);\n $newQuote['total_tax'] = IndexSanityCheckHelper::indexSanityCheck('TotalTax', $quote);\n $newQuote['total'] = IndexSanityCheckHelper::indexSanityCheck('Total', $quote);\n $newQuote['currency'] = IndexSanityCheckHelper::indexSanityCheck('CurrencyCode', $quote);\n $newQuote['quotation_number'] = IndexSanityCheckHelper::indexSanityCheck('QuoteNumber', $quote);\n $newQuote['currency_rate'] = IndexSanityCheckHelper::indexSanityCheck('CurrencyRate', $quote);\n $newQuote['discount_total'] = IndexSanityCheckHelper::indexSanityCheck('TotalDiscount', $quote);\n $newQuote['date'] = IndexSanityCheckHelper::indexSanityCheck('Date', $quote);\n $newQuote['expiry_date'] = IndexSanityCheckHelper::indexSanityCheck('ExpiryDate', $quote);\n $newQuote['updated_at'] = IndexSanityCheckHelper::indexSanityCheck('UpdatedDateUTC', $quote);\n $newQuote['gst_inclusive'] = $this->parseTaxCalculation(IndexSanityCheckHelper::indexSanityCheck('LineAmountTypes', $quote));\n $newQuote['title'] = IndexSanityCheckHelper::indexSanityCheck('Title', $quote);\n $newQuote['terms'] = IndexSanityCheckHelper::indexSanityCheck('Terms', $quote);\n $newQuote['summary'] = IndexSanityCheckHelper::indexSanityCheck('Summary', $quote);\n\n if (IndexSanityCheckHelper::indexSanityCheck('Contact', $quote)) {\n $newQuote = $this->parseContact($quote['Contact'], $newQuote);\n }\n if (IndexSanityCheckHelper::indexSanityCheck('LineItems', $quote)) {\n $newQuote = $this->parseLineItems($quote['LineItems'], $newQuote);\n }\n\n array_push($quotes, $newQuote);\n }\n\n return $quotes;\n }", "title": "" }, { "docid": "5e551162b80b08821dc20ca65750dea0", "score": "0.5025856", "text": "function ciniki_events_priceGet($ciniki) {\n // \n // Find all the required and optional arguments\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'), \n 'event_id'=>array('required'=>'no', 'blank'=>'no', 'name'=>'Event'), \n 'price_id'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Registration'), \n 'customer'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Customer'),\n 'invoice'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Invoice'),\n 'ticketmap'=>array('required'=>'no', 'blank'=>'yes', 'name'=>'Ticket Map Number'),\n )); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n $args = $rc['args'];\n \n // \n // Make sure this module is activated, and\n // check permission to run this function for this tenant\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'events', 'private', 'checkAccess');\n $rc = ciniki_events_checkAccess($ciniki, $args['tnid'], 'ciniki.events.priceGet'); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'intlSettings');\n $rc = ciniki_tenants_intlSettings($ciniki, $args['tnid']);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $intl_timezone = $rc['settings']['intl-default-timezone'];\n $intl_currency_fmt = numfmt_create($rc['settings']['intl-default-locale'], NumberFormatter::CURRENCY);\n $intl_currency = $rc['settings']['intl-default-currency'];\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbQuote');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'users', 'private', 'dateFormat');\n $date_format = ciniki_users_dateFormat($ciniki, 'php');\n\n //\n // Check if event is specified and check for ticketmap\n //\n if( isset($args['event_id']) ) {\n $strsql = \"SELECT ciniki_events.id, \"\n . \"ciniki_events.name, \"\n . \"ciniki_events.permalink, \"\n . \"ciniki_events.flags, \"\n . \"ciniki_events.url, \"\n . \"ciniki_events.description, \"\n . \"ciniki_events.num_tickets, \"\n . \"ciniki_events.reg_flags, \"\n . \"DATE_FORMAT(ciniki_events.start_date, '\" . ciniki_core_dbQuote($ciniki, $date_format) . \"') AS start_date, \"\n . \"DATE_FORMAT(ciniki_events.end_date, '\" . ciniki_core_dbQuote($ciniki, $date_format) . \"') AS end_date, \"\n . \"ciniki_events.times, \"\n . \"ciniki_events.primary_image_id, \"\n . \"ciniki_events.long_description, \"\n . \"CONCAT_WS(':', ciniki_events.object, ciniki_events.object_id) AS oidref, \"\n . \"ciniki_events.object, \"\n . \"ciniki_events.object_id, \"\n . \"ciniki_events.ticketmap1_image_id, \"\n . \"ciniki_events.ticketmap1_ptext, \"\n . \"ciniki_events.ticketmap1_btext \"\n . \"FROM ciniki_events \"\n . \"WHERE ciniki_events.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND ciniki_events.id = '\" . ciniki_core_dbQuote($ciniki, $args['event_id']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.events', 'event');\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.events.78', 'msg'=>'Unable to load event', 'err'=>$rc['err']));\n }\n if( !isset($rc['event']) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.events.82', 'msg'=>'Unable to find requested event'));\n }\n $event = $rc['event'];\n }\n\n if( $args['price_id'] == 0 ) {\n $price = array(\n 'id' => 0,\n 'event_id' => $args['event_id'],\n 'name' => '',\n 'available_to' => 0,\n 'valid_from' => '',\n 'valid_to' => '',\n 'unit_amount' => '',\n 'unit_discount_amount' => '',\n 'unit_discount_percentage' => '',\n 'unit_donation_amount' => '',\n 'taxtype_id' => '',\n 'webflags' => 0,\n 'num_tickets' => 0,\n 'position_num' => 1,\n 'position_x' => '',\n 'position_y' => '',\n 'diameter' => 15,\n 'ticket_format' => 'default',\n 'ticket_image_id' => '0',\n 'ticket_event_name' => '',\n 'ticket_timedate' => '',\n 'ticket_location' => '',\n 'ticket_notes' => '',\n );\n //\n // Get the last ticket price\n //\n if( isset($args['ticketmap']) && $args['ticketmap'] > 0 ) {\n $strsql = \"SELECT name, available_to, \"\n . \"unit_amount, unit_discount_amount, unit_discount_percentage, unit_donation_amount, \"\n . \"taxtype_id, webflags, position_num, position_x, position_y, diameter, \"\n . \"ticket_format, ticket_image_id, ticket_event_name, \"\n . \"ticket_timedate, ticket_location, ticket_notes \"\n . \"FROM ciniki_event_prices \"\n . \"WHERE event_id = '\" . ciniki_core_dbQuote($ciniki, $args['event_id']) . \"' \"\n . \"AND tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND (webflags&0x08) = 0x08 \"\n . \"ORDER BY last_updated \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.events', 'lastprice');\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.events.80', 'msg'=>'Unable to load last price', 'err'=>$rc['err']));\n }\n $last_num = 0;\n if( isset($rc['rows']) ) {\n foreach($rc['rows'] as $row) {\n if( preg_match(\"/([^0-9])([0-9]+)([^0-9]|$)/\", $row['name'], $m) ) {\n if( $m[2] > $last_num ) {\n $price['name'] = preg_replace(\"/[^0-9]([0-9]+)([^0-9]|$)/\", $m[1] . ($m[2]+1) . $m[3], $row['name']);\n $price['position_num'] = $row['position_num'] + 1;\n $rc['lastprice'] = $row;\n $last_num = $m[2];\n }\n }\n }\n }\n if( isset($rc['lastprice']) ) {\n $price['diameter'] = $rc['lastprice']['diameter'];\n $price['available_to'] = $rc['lastprice']['available_to'];\n $price['unit_amount'] = '$' . number_format($rc['lastprice']['unit_amount'], 2);\n if( $rc['lastprice']['unit_discount_amount'] > 0 ) {\n $price['unit_discount_amount'] = '$' . number_format($rc['lastprice']['unit_discount_amount'], 2);\n }\n if( $rc['lastprice']['unit_discount_percentage'] > 0 ) {\n $price['unit_discount_percentage'] = number_format($rc['lastprice']['unit_discount_percentage'], 2) . '%';\n }\n if( $rc['lastprice']['unit_donation_amount'] > 0 ) {\n $price['unit_donation_amount'] = '$' . number_format($rc['lastprice']['unit_donation_amount'], 2);\n }\n $price['taxtype_id'] = $rc['lastprice']['taxtype_id'];\n $price['webflags'] = $rc['lastprice']['webflags'];\n } else {\n $price['webflags'] = 0x08;\n }\n }\n } else {\n $strsql = \"SELECT ciniki_event_prices.id, \"\n . \"ciniki_event_prices.event_id, \"\n . \"ciniki_event_prices.name, \"\n . \"ciniki_event_prices.available_to, \"\n . \"ciniki_event_prices.valid_from, \"\n . \"ciniki_event_prices.valid_to, \"\n . \"ciniki_event_prices.unit_amount, \"\n . \"ciniki_event_prices.unit_discount_amount, \"\n . \"ciniki_event_prices.unit_discount_percentage, \"\n . \"ciniki_event_prices.unit_donation_amount, \"\n . \"ciniki_event_prices.taxtype_id, \"\n . \"ciniki_event_prices.webflags, \"\n . \"ciniki_event_prices.num_tickets, \"\n . \"ciniki_event_prices.position_num, \"\n . \"ciniki_event_prices.position_x, \"\n . \"ciniki_event_prices.position_y, \"\n . \"ciniki_event_prices.diameter, \"\n . \"ciniki_event_prices.ticket_format, \"\n . \"ciniki_event_prices.ticket_image_id, \"\n . \"ciniki_event_prices.ticket_event_name, \"\n . \"ciniki_event_prices.ticket_timedate, \"\n . \"ciniki_event_prices.ticket_location, \"\n . \"ciniki_event_prices.ticket_notes \"\n . \"FROM ciniki_event_prices \"\n . \"WHERE ciniki_event_prices.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND ciniki_event_prices.id = '\" . ciniki_core_dbQuote($ciniki, $args['price_id']) . \"' \"\n . \"\";\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryTree');\n $rc = ciniki_core_dbHashQueryTree($ciniki, $strsql, 'ciniki.events', array(\n array('container'=>'prices', 'fname'=>'id', 'name'=>'price',\n 'fields'=>array('id', 'event_id', 'name', 'available_to', 'valid_from', 'valid_to', \n 'unit_amount', 'unit_discount_amount', 'unit_discount_percentage', 'unit_donation_amount',\n 'taxtype_id', 'webflags', 'num_tickets', 'position_num', 'position_x', 'position_y', 'diameter',\n 'ticket_format', 'ticket_image_id', 'ticket_event_name', \n 'ticket_timedate', 'ticket_location', 'ticket_notes',\n ),\n 'utctotz'=>array('valid_from'=>array('timezone'=>$intl_timezone, 'format'=>$date_format),\n 'valid_to'=>array('timezone'=>$intl_timezone, 'format'=>$date_format),\n ),\n ),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( !isset($rc['prices']) || !isset($rc['prices'][0]) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.events.36', 'msg'=>'Unable to find price'));\n }\n $price = $rc['prices'][0]['price'];\n\n $price['unit_discount_percentage'] = (float)$price['unit_discount_percentage'];\n $price['unit_amount'] = numfmt_format_currency($intl_currency_fmt,\n $price['unit_amount'], $intl_currency);\n $price['unit_discount_amount'] = numfmt_format_currency($intl_currency_fmt,\n $price['unit_discount_amount'], $intl_currency);\n $price['unit_donation_amount'] = numfmt_format_currency($intl_currency_fmt,\n $price['unit_donation_amount'], $intl_currency);\n }\n\n if( isset($event['ticketmap1_image_id']) ) {\n $price['ticketmap1_image_id'] = $event['ticketmap1_image_id'];\n }\n\n $rsp = array('stat'=>'ok', 'price'=>$price);\n\n //\n // Load tickets for this event to draw on image\n //\n if( isset($args['ticketmap']) && $args['ticketmap'] > 0 ) {\n $strsql = \"SELECT id, name, \"\n . \"webflags, \"\n . \"position_num, position_x, position_y, diameter, \"\n . \"ticket_format, ticket_image_id, ticket_event_name, \"\n . \"ticket_timedate, ticket_location, ticket_notes \"\n . \"FROM ciniki_event_prices \"\n . \"WHERE event_id = '\" . ciniki_core_dbQuote($ciniki, $args['event_id']) . \"' \"\n . \"AND (webflags&0x08) = 0x08 \"\n . \"AND tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"\";\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryArrayTree');\n $rc = ciniki_core_dbHashQueryArrayTree($ciniki, $strsql, 'ciniki.events', array(\n array('container'=>'tickets', 'fname'=>'id', \n 'fields'=>array('id', 'name', 'webflags', 'position_num', 'position_x', 'position_y', 'diameter',\n 'ticket_format', 'ticket_image_id', 'ticket_event_name', \n 'ticket_timedate', 'ticket_location', 'ticket_notes',\n )),\n ));\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.events.81', 'msg'=>'Unable to load tickets', 'err'=>$rc['err']));\n }\n $rsp['tickets'] = isset($rc['tickets']) ? $rc['tickets'] : array();\n }\n\n return $rsp;\n}", "title": "" }, { "docid": "9c4e96a38a7239ae837f0e889c534968", "score": "0.5015718", "text": "public function getAverageEta()\n {\n return ($this->getEtaFrom() + $this->getEtaTo()) / 2;\n }", "title": "" }, { "docid": "115a967d39545d03c2a382f26f9ac579", "score": "0.5007759", "text": "function apc_sma_info ($limited = false) {}", "title": "" }, { "docid": "2377c2d8e97c5435244fb70907f7624e", "score": "0.49900973", "text": "public function anecdotal_list(){\r\n\t\tglobal $conn;\r\n\t\t$query = $conn->prepare(\"SELECT * FROM anecdotal\");\r\n\t\t$query->execute();\r\n\t\treturn $query->fetchAll();\t\r\n\t}", "title": "" }, { "docid": "df447aba3d124daa6a29d4b3e0238294", "score": "0.49838644", "text": "public function get_cost() {\n return $this->get_fm_field( 'event_details', 'cost' );\n }", "title": "" }, { "docid": "826ca2264b0cfcee4db2953378967999", "score": "0.49732098", "text": "public function getEventStats() {\n //Get average events\n $num_events = Event::count(\"visible = 1\");\n \n $days_since_start = (time() - 1547758800) / (60 * 60 * 24); //Calculates the number of days since the first event\n $relevant_days = $days_since_start - 100; // Subtract summer vacation and breaks\n $average_num_events = (float)($num_events) / (float)$relevant_days;\n\n //Calculate money saved\n $money_saved_estimate = (float)($num_events) * (float)10;\n\n //Get events today\n $today_events = Event::count(\n array(\"visible = 1 AND date_int = \".date('Ymd'))\n ); \n\n $return = array(\"average\" => round($average_num_events, 1), \"today\" => $today_events, \"saved\" => $this->moneyFormat($money_saved_estimate));\n return $return;\n }", "title": "" }, { "docid": "f44aead296bdad6a8f074860c13c143f", "score": "0.49692923", "text": "public function calculationOrderPersonalInfo()\n {\n $personalInfo = OrdersPersonalInfo::where('order_id', $this->order_id)->first();\n\n $sum = $this->calculationOrder() * config('price.cleaning_type.' . $personalInfo->cleaning_type);\n $sum += config('price.cleaning_date.' . $personalInfo->cleaning_date);\n\n return $sum;\n }", "title": "" }, { "docid": "64b915bfedd70abb32112791f14c4c03", "score": "0.49672836", "text": "function get_product_details($asin)\n{\n require_once 'cloudfusion/cloudfusion.class.php';\n\n $product = new product();\n\n $pas = new AmazonPAS();\n $options = array('IdType'=>'ASIN', 'ResponseGroup' => 'Large');\n $item = $pas->item_lookup($asin, $options);\n foreach ($item->body->Items->Item as $item) \n {\n $product->asin = $item->ASIN;\n $product->url = $item->DetailPageURL;\n $product->title = $item->ItemAttributes->Title;\n $product->image = $item->MediumImage->URL;\n $product->price = $item->OfferSummary->LowestNewPrice->FormattedPrice;\n $product->rating = $item->CustomerReviews->AverageRating;\n $product->num_ratings = $item->CustomerReviews->TotalReviews;\n } \n return $product;\n}", "title": "" }, { "docid": "3e6b068e0884f3569c8e88d48726b048", "score": "0.49618527", "text": "public function obtenerEstados()\n {\n //opcional que retorne las entidades\n }", "title": "" }, { "docid": "07361abfdc73215c27e5c5a456a63ec1", "score": "0.4956161", "text": "protected function getAddEstimatedReadingTimeService()\n {\n }", "title": "" }, { "docid": "de76ef4884a4cf89a61fb5e7b7b99e66", "score": "0.489644", "text": "function cash_in_till_date(){\n\t\treturn total_other_offerings() + total_htg_offerings() + total_regular_offerings() + total_project_offerings() + total_tithes();\n\t}", "title": "" }, { "docid": "b86af3a1c9529034617d4d130de79d9b", "score": "0.48846948", "text": "function get_airmail_info(){\n global $db;\n $airmail = array('discount' => 1, 'extra_times' => 1.1);\n $query = $db->Execute('select discount, extra_times from ' . TABLE_SHIPPING . ' where id = 58');\n if ($query->RecordCount() > 0){\n $airmail = array('discount' => $query->fields['discount'], 'extra_times' => $query->fields['extra_times']);\n }\n return $airmail;\n}", "title": "" }, { "docid": "073c32281e84ccc8f6c573a742e74145", "score": "0.4879482", "text": "public function getMyFeesEstimate($asin, $listingPrice);", "title": "" }, { "docid": "cf2ad5de3036208efd34963d2406808e", "score": "0.48762", "text": "function eth_gasPrice();", "title": "" }, { "docid": "5ec9f4d9c38d960769e45eb288a05a0f", "score": "0.48705587", "text": "public function exec_creditOutstandingPositions() {\n trace('[CMD] '.__METHOD__);\n\n $session = tx_pttools_sessionStorageAdapter::getInstance();\n $relatedDocNo = $session->read(self::SESSION_KEY_RELATEDDOCNO);\n\n $quantityArr= array();\n $priceArr = array();\n $articleUidArr = array();\n \n // get Payment Values from piVars\n #$GLOBALS['trace'] = 1;\n trace ($this->piVars);\n foreach ($this->piVars as $key => $val ) {\n trace($key.':'.$val);\n $fields = explode('_', $key); \n if ($fields[0] == 'articleUid') {\n $articleUidArr[(string)$fields[1].'_'.$fields[2]] = $val;\n }\n if ($fields[0] == 'unitPrice') {\n $priceArr[(string)$fields[1].'_'.$fields[2]] = floatval(str_replace(',','.',$val));\n }\n if ($fields[0] == 'bookit' && $val) {\n $quantityArr[(string)$fields[1].'_'.$fields[2]] = intval($val);\n }\n if ($fields[0] == 'shipping') {\n $shipping = true;\n $amountShipping = floatval(str_replace(',','.',$val));\n } \n if ($fields[0] == 'booktype' && $val == 'credit') {\n $booktype = 'GU';\n } else if ($fields[0] == 'booktype' && $val == 'cancellation') {\n $booktype = 'ST';\n } \n \n }\n foreach ($articleUidArr as $key => $val) {\n \tif ($quantityArr[$key]) {\n \t\t$articleArr['article_uid'] = intval($val);\n \t\t$articleArr['quantity'] = $quantityArr[$key];\n \t}\n }\n trace($quantityArr,0,'$quantityArr'); \n trace($shipping,0,'$shipping'); \n trace($priceArr,0,'$priceArr'); \n trace($booktype,0,'$booktype'); \n trace($articleArr,0,'$articleArr'); \n \n \n\n if ($booktype && !empty($quantityArr)) {\n\t $gsaAccountingTransactionHandlerObj = new tx_ptgsaaccounting_gsaTransactionHandler();\n\t $gsaShopTransactionAccessorObj = tx_ptgsashop_gsaTransactionAccessor::getInstance();\n\t $errorMessage = '';\n\t $infoMessage = '';\n \t$i=0;\n\t $posArr = array();\n\t foreach ($quantityArr as $key => $val ) {\n\t $amountGross = bcadd($amountGross, bcmul($priceArr[$key],$val,self::PRECISSION),self::PRECISSION);\n\t trace($key.':'.$val);\n\t $fields = explode('_',$key);\n\t $posArr[$i]['invoiceId'] = $fields[0]; \n\t $posArr[$i]['posNo'] = $fields[1]; \n\t $posArr[$i]['priceUnit'] = $priceArr[$key]; \n\t $posArr[$i]['noToCredit'] = $val; \n\t $i++;\n\t } \n $documentArr = $gsaShopTransactionAccessorObj->selectTransactionDocumentData($relatedDocNo);\n trace($documentArr,0,'$documentArr');\n\t \n // Add shiiping if exist\n if ($amountShipping) {\n\t $amountGross = bcadd($amountGross,$amountShipping,self::PRECISSION);\n\t if ($documentArr['PRBRUTTO'] == 1) {\n\t $taxrate = tx_ptgsashop_lib::getTaxRate($this->shopConfig['dispatchTaxCode'], $documentArr['DATUM']);\n\t $amountShipping = tx_pttools_finance::getNetPriceFromGross($amountShipping, $taxrate);\n\t } \n\t $amountShipping = tx_pttools_finance::getFormattedPriceString($amountShipping);\n\t }\n\t trace($posArr,0,'$posArr');\n\t // get Document from GSA-DB\n\t $outstandingAmount = $documentArr['ENDPRB'] - $documentArr['GUTSUMME'] - $documentArr['BEZSUMME']-$documentArr['SKONTOBETRAG'];\n $amountGross = round($amountGross,2);\n\t trace($amountGross,0,'$amountGross');\n trace($outstandingAmount,0,'$outstandingAmount');\n if (bcsub($outstandingAmount, $amountGross,self::PRECISSION) >=0) {\n\t trace('book-it '.$booktype); \n\t $gsaAccountingTransactionHandlerObj->bookCreditCancellation($relatedDocNo,$booktype,$amountGross, $amountShipping, $posArr ); \n \n\t // Hooks after GSA Accountinghandling \n\t if ($booktype == 'GU') {\n $erpDocument = new tx_ptgsaaccounting_erpDocument(0,$relatedDocNo);\n\t \tif (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extKey]['outstandingpositions_hooks']['fixCredit'])) { \n\t foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extKey]['outstandingpositions_hooks']['fixCredit'] as $funcName) {\n\t $params = array(\n\t 'erpDocument' => $erpDocument,\n\t 'articleUidArr' => $articleArr,\n\t );\n\t t3lib_div::callUserFunction($funcName, $params, $this, '');\n\t if (TYPO3_DLOG) t3lib_div::devLog(sprintf('Processing hook \"%s\" for \"fixCancellation\"', $funcName), $this->extKey, 1, array('params' => $params));\n\t }\n\t } \n \t\n } else if ($booktype == 'ST'){\n if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extKey]['outstandingpositions_hooks']['fixCancellation'])) { \n foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extKey]['outstandingpositions_hooks']['fixCancellation'] as $funcName) {\n $params = array(\n 'erpDocument' => $erpDocument,\n 'articleUidArr' => $articleArr,\n );\n t3lib_div::callUserFunction($funcName, $params, $this, '');\n if (TYPO3_DLOG) t3lib_div::devLog(sprintf('Processing hook \"%s\" for \"fixCancellation\"', $funcName), $this->extKey, 1, array('params' => $params));\n }\n } \n \t\n }\n }\n }\n $searchArr = $session->read(self::SESSION_KEY_SEARCH);\n $erpDocuments = new tx_ptgsaaccounting_erpDocumentCollection(true,0,'',$searchArr);\n trace($erpDocuments,0,'$erpDocuments');\n \n $content = '';\n $msg = '';\n if($errorMessage) {\n $msgBoxObj = new tx_pttools_msgBox('error', $errorMessage);\n $msg .= $msgBoxObj->__toString();\n } \n if($errorMessage) {\n $msgBoxObj = new tx_pttools_msgBox('info', $infoMessage);\n $msg .= $msgBoxObj->__toString();\n } \n $content = $msg.$this->display_outstandingItemList($erpDocuments);\n\n return $content;\n }", "title": "" }, { "docid": "fca6aa188d68d6c635191ff5b2c3f99d", "score": "0.48701692", "text": "public function getEarned()\n\t{\n\t\t$totalEarned = 0;\n\n\t\tforeach ($this->all() as $record)\n\t\t{\n\t\t\tif (($record->type == \"Sell\") || ($record->type == \"Return Part(s)\"))\n\t\t\t{\n\t\t\t\t$totalEarned += $record->price;\n\t\t\t}\n\t\t}\n\t\treturn $totalEarned;\n\t}", "title": "" }, { "docid": "750e07dc274890499f89137662c73fd0", "score": "0.48548517", "text": "public function addFinalPrice()\n {\n return $this->addPriceData();\n }", "title": "" }, { "docid": "0399f94217a343cb058fce023bee7654", "score": "0.48426545", "text": "protected function calculate()\n {\n $fee = 0;\n $amount = 0;\n //Loop though the transactionlines to get the amount and fee\n foreach ($this->transactionlines as $transactionline) {\n $fee += $transactionline->fee;\n $amount += $transactionline->amount;\n }\n $this->fee = $fee;\n $this->amount = $amount;\n }", "title": "" }, { "docid": "0e4803cd96908105fa354d5cb1d87e6b", "score": "0.4835657", "text": "public function getFees();", "title": "" }, { "docid": "e413f51d6380509f2eeab4cb178a11b4", "score": "0.4826054", "text": "public function useOneAfterAnotherTaxComputationMethod()\n {\n }", "title": "" }, { "docid": "7a8ad3278c7cf727ed8a362c8141f0f6", "score": "0.4824707", "text": "public function getDealInfo()\n {\n $this->highlights = explode(\"\\n\", $this->getProduct()->getHighlights());\n $this->fineprint = explode(\"\\n\", $this->getProduct()->getFinePrint());\n $_productCollection = Mage::getResourceModel('reports/product_collection')\n ->addOrderedQty()\n ->addAttributeToFilter('entity_id', $this->getProduct()->getId())\n ->setOrder('ordered_qty', 'desc')\n ->getFirstItem();\n $this->ordered_qty = (int)$_productCollection->ordered_qty;\n }", "title": "" }, { "docid": "78235b90d797b675de3a40ae230504a5", "score": "0.4821888", "text": "public function calculationExtras()\n {\n $extras = OrdersExtra::where('order_id', $this->order_id)->first();\n \n $sum = 0;\n\n if ($extras) {\n foreach ($extras->getAttributes() as $key => $value) {\n $sum += $this->checkField($key, $value, 'extras');\n }\n }\n\n return $sum;\n }", "title": "" }, { "docid": "4fc1a464fac86a873bca9fcf7a88e018", "score": "0.48127645", "text": "public function getEIAS()\n {\n return $this->eIAS;\n }", "title": "" }, { "docid": "09913087059c11838b71015c98524f92", "score": "0.47937548", "text": "function getForecast() {\n $gtaTime = getGtaTime();\n\n $currentWeather = getWeatherForPeriodTime($gtaTime[\"weatherPeriodTime\"]);\n if ($currentWeather == null) {\n print \"Couldn’t calculate weather\";\n return;\n }\n\n $rainEta = getRainEta($gtaTime[\"weatherPeriodTime\"], $currentWeather);\n if ($rainEta == null) {\n print \"Couldn’t calculate rain ETA\";\n return;\n }\n\n $timeStr = date(\"j F Y H:i:s e\");\n $rainEtaStr = secToVerboseInterval($rainEta[\"etaSec\"]);\n return \"Forecast for $timeStr {$currentWeather[\"emoji\"]} {$currentWeather[\"name\"]}. Rain in {$rainEtaStr}.\";\n}", "title": "" }, { "docid": "12295ab310e179f2f814830218133f44", "score": "0.4774658", "text": "function get_autre_retenue_employes($matricule , $periode){\r\n\r\n $retenues_epargnes = get_retenu_epargnes($matricule,$periode);\r\n $retenues_credits = get_retenu_credits($matricule,$periode);\r\n $retenues_avances = get_retenu_avances($matricule, $periode);\r\n $retenues_assurances = get_retenu_assurances($matricule, $periode);\r\n\r\n\r\n $table_data = [];\r\n if(!empty($retenues_epargnes)){\r\n foreach ($retenues_epargnes as $key => $value) {\r\n $dette = [];\r\n\r\n $variable_name = nameForTable_id($value['variable_id'], 'variables');\r\n\r\n $dette['variable_name'] = $variable_name['name'];\r\n\r\n $dette['montant'] = $value['montant_total'];\r\n\r\n\r\n $table_data[] = $dette;\r\n\r\n }\r\n}\r\n\r\nif(!empty($retenues_assurances)){\r\n foreach ($retenues_assurances as $key => $value) {\r\n $dette = [];\r\n\r\n $variable_name = nameForTable_id($value['variable_id'], 'variables');\r\n\r\n $dette['variable_name'] = $variable_name['name'];\r\n\r\n $dette['montant'] = $value['montant_total'];\r\n\r\n\r\n $table_data[] = $dette;\r\n\r\n }\r\n}\r\n\r\n\r\nif(!empty($retenues_credits)){\r\n foreach ($retenues_credits as $key => $value) {\r\n $dette = [];\r\n\r\n $variable_name = nameForTable_id($value['variable_id'], 'variables');\r\n\r\n $dette['variable_name'] = $variable_name['name'];\r\n\r\n $dette['montant'] = $value['montant_total'];\r\n\r\n\r\n $table_data[] = $dette;\r\n\r\n }\r\n}\r\n\r\n\r\nif(!empty($retenues_avances)){\r\n foreach ($retenues_avances as $key => $value) {\r\n $dette = [];\r\n\r\n $variable_name = nameForTable_id($value['variable_id'], 'variables');\r\n\r\n $dette['variable_name'] = $variable_name['name'];\r\n\r\n $dette['montant'] = $value['montant_total'];\r\n\r\n $table_data[] = $dette;\r\n }\r\n}\r\n\r\n\r\nreturn $table_data;\r\n}", "title": "" }, { "docid": "249afcb41de4b5d5fcbe93b3601b15ff", "score": "0.47718543", "text": "function emp_get_klarna_data($order_id)\n{\n $klarnaData = new \\stdClass();\n $klarnaData->order = new order($order_id);\n $klarnaData->order->products = emp_get_orders_products($order_id);\n\n $totals = emp_get_orders_totals_values($order_id);\n\n $taxes = emp_get_klarna_data_from_totals($totals, 'ot_tax');\n $shipping = emp_get_klarna_data_from_totals($totals, 'ot_shipping');\n\n $klarnaData->order->info['tax'] = $taxes['value'];\n $klarnaData->order->info['shipping_cost'] = $shipping['value'];\n $klarnaData->order->info['shipping_method'] = $shipping['title'];\n\n return $klarnaData;\n}", "title": "" }, { "docid": "033fabd22fc86c9ea9fe3dc0904427b3", "score": "0.47629002", "text": "protected function obtainData()\n\t{\n\t\t$this->obtainDataReferences();\n\t\t$this->obtainDataOrders();\n\t}", "title": "" }, { "docid": "7478dc22e547550d617a70d207cdfbdb", "score": "0.47605282", "text": "public function getEmpData($eid, $from, $to){\n $query = \"SELECT\n DATE_FORMAT(`Date`, '%d-%m-%Y') AS `date`,\n SUM(`Coffee Cups`) AS `cCups`,\n SUM(`Tea Cups`) AS `tCups`,\n SUM(\n IF(\n `Coffee Cups` > `Coffee Cup Allowance`,\n `Coffee Cups` - `Coffee Cup Allowance`,\n 0\n ) *(\n SELECT\n `price`\n FROM\n `cost`\n WHERE\n `drink` = 'Coffee'\n )\n ) AS `cCost`,\n SUM(\n IF(\n `Tea Cups` > `Tea Cup Allowance`,\n `Tea Cups` - `Tea Cup Allowance`,\n 0\n ) *(\n SELECT\n `price`\n FROM\n `cost`\n WHERE\n `drink` = 'Tea'\n )\n ) AS `tCost`,\n SUM(\n (\n IF(\n `Coffee Cups` > `Coffee Cup Allowance`,\n `Coffee Cups` - `Coffee Cup Allowance`,\n 0\n ) *(\n SELECT\n `price`\n FROM\n `cost`\n WHERE\n `drink` = 'Coffee'\n )\n ) +(\n IF(\n `Tea Cups` > `Tea Cup Allowance`,\n `Tea Cups` - `Tea Cup Allowance`,\n 0\n ) *(\n SELECT\n `price`\n FROM\n `cost`\n WHERE\n `drink` = 'Tea'\n )\n )\n ) AS `total`,\n `Machine Name` as `machine`,\n `Time` as `time`\n FROM\n `EMPLOYEE`\n WHERE\n (\n `ID Code NO.` = '$eid' AND(`Date` BETWEEN '$from' AND '$to')\n )\n GROUP BY\n `Date`\";\n\n $stmt = $this->connection->prepare($query);\n\n $stmt->execute();\n\n return $stmt;\n }", "title": "" }, { "docid": "55dc2b92d68fd3c6955c06035e9f6cba", "score": "0.47503245", "text": "public function getChangedSummary()\n {\n $changedSummary = [];\n $changedAttributes = $this->getChangedAttributes();\n $deliveryRequirementsTemplate = LanguageRequirements::getDeliverySpecsRequirements();\n\n foreach ($changedAttributes as $changedAttributeName) {\n $changedAttributeSummary = \"\";\n\n if (isset($deliveryRequirementsTemplate[$changedAttributeName])) {\n $element = $deliveryRequirementsTemplate[$changedAttributeName];\n switch ($element['type']) {\n case LanguageRequirements::DROPDOWN:\n $oldValue = \"N/A\";\n $currentValue = \"N/A\";\n $availableValues = $element['values'];\n\n if (isset($availableValues[$this->getOldAttributeValue($changedAttributeName)])) {\n $oldValue = $availableValues[$this->getOldAttributeValue($changedAttributeName)];\n }\n\n if(isset($availableValues[$this->$changedAttributeName])) {\n $currentValue = $availableValues[$this->$changedAttributeName];\n }\n\n $changedAttributeSummary = $this->getAttributeLabel($changedAttributeName).\": \".$oldValue.\" -> \".$currentValue;\n break;\n\n case LanguageRequirements::TEXTFIELD:\n $changedAttributeSummary = $this->getChangedAttributeSummaryDescription($changedAttributeName);\n break;\n\n case LanguageRequirements::MULTIOPTION:\n $multiOptionChanges = [];\n $label = DeliverySpecTerritoryRequirement::model()->getAttributeLabel($changedAttributeName);\n\n foreach ($element['values'] as $subAttributeName => $subAttributeStructure) {\n $subLabel = $subAttributeStructure['label'];\n $availableValues = $subAttributeStructure['values'];\n $oldValue = \"N/A\";\n $newValue = \"N/A\";\n\n if ($this->getOldObject() && isset($availableValues[$this->getOldObject()->$element['method']($subAttributeStructure['param'])])) {\n $oldValue = $availableValues[$this->getOldObject()->$element['method']($subAttributeStructure['param'])];\n }\n\n if (isset($availableValues[$this->$element['method']($subAttributeStructure['param'])])) {\n $newValue = $availableValues[$this->$element['method']($subAttributeStructure['param'])];\n }\n\n //if subAttribute changed\n if ($oldValue != $newValue) {\n $multiOptionChanges[] = $label.\"(\".$subLabel.\"): \".$oldValue.\" -> \".$newValue;\n }\n }\n\n //add changes directly to summary array\n if(!empty($multiOptionChanges)) {\n $changedSummary = array_merge($changedSummary, [$label.\" changed\"], $multiOptionChanges);\n }\n break;\n\n default:\n $changedAttributeSummary = $this->getChangedAttributeSummaryDescription($changedAttributeName);\n }\n }else {\n $changedAttributeSummary = $this->getChangedAttributeSummaryDescription($changedAttributeName);\n }\n\n if ($changedAttributeSummary)\n $changedSummary[] = $changedAttributeSummary;\n }\n\n return $changedSummary;\n }", "title": "" }, { "docid": "6fbed5a632babb8cc38aa5b0c46bb785", "score": "0.47494066", "text": "public function obtenerCostos();", "title": "" }, { "docid": "894568c92300dfe4ad477b5163eace1f", "score": "0.47431052", "text": "public function getDescription()\n {\n return Craft::t('Calculates tax rates with Avalara AvaTax');\n }", "title": "" }, { "docid": "2cc71fe7303ab01ae5fadda31e21f3e2", "score": "0.47427675", "text": "public function getOrderEstimate()\n {\n return $this->send(Orders::estimate(\n (array) Request::input('products'),\n (array) Request::input('shipping_address')\n ));\n }", "title": "" }, { "docid": "24fb8825edd32265fb334c8a2b3a5016", "score": "0.47408468", "text": "private function retrieve_pagetotal()\n {\n }", "title": "" }, { "docid": "ed7819cb923791cf51fe01b5fd2c9856", "score": "0.47392413", "text": "public function quotationExtras (){\n\t\t$data['reqid'] = $data['rid'] = $rid = $this -> uri -> segment(3);\n\t\t$data['table'] = $this -> uri -> segment(4);\n\t\t$data['table2'] = $this -> uri -> segment(5);\n\t\t$data['table3'] = $this -> uri -> segment(6);\n\t\n\t\t//Get data\n\t\t$data['extras'] = Quotations_final::getQuotationExtras($rid);\n\n\t\t//Get Signatory\n\t\t$data['signatory'] = Quotations_final::getSignatory($rid);\n\n\t\t//Get Extra Billing Columns\n\t\t$sql = \"SELECT COLUMN_NAME as 'column', COLUMN_COMMENT as 'comment' FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'enqcl' AND TABLE_NAME = 'quotations' AND COLUMN_COMMENT <> '';\";\t\n\t\t$query = $this->db->query($sql);\n\t\t$data['extra_columns'] = $query->result_array();\n\n\t\t$client = Quotations_final::getClient($rid);\n\t\t$data['client_id'] = $client_id = $client[0]['client_id'];\n\n\t\t//Get all client info\n\t\t$data['client_info'] = $this->getAllClientInfo($client_id);\n\n\t\t//Get Quotation No\n\t\t$data['quotation_no'] = $rid;\n\n\t\t//Get list of eligible signatories\n\t\t$data['signatories'] = User::getSignatories();\n\n\t\t//Get Currency\n\t\t$data['currency'] = Quotations_final::getCurrency($rid);\n\n\t\t//Get Multicomponent Status\n\t\t//$data['sample_mstatus'] = Quotations_components::getMulticomponentStatus($rid);\n\t\t$data['multi_tests'] = $this->getMulticTests();\n\n\t\t//Get quotation summary\n\t\t$data['quotation_summary']= Quotations::getQuotationSummary($rid);\n\n\t\t//Get Total of this Quotation\n\t\t$data['quotation_total'] = Quotations::getTotalPerClient($client_id, $rid);\n\n\t\t//Get All Notes\n\t\t$data['quotation_notes'] = Quotation_notes::getAllQuotationNotes($rid);\t\t\n\n\t\t//Set view\n\t\t$data['content_view'] = \"quotation_extras\";\n $this->load->view('template1', $data);\n\t}", "title": "" }, { "docid": "2f8089ba63f15c2312a7441c029dc228", "score": "0.47300923", "text": "protected function estimate()\n {\n $this->estimate = [\n 'minutes' => $this->calculateMinutes(),\n 'seconds' => $this->omitSeconds ? 0 : $this->calculateSeconds(),\n 'read_time' => $this->formatReadTime(),\n ];\n }", "title": "" }, { "docid": "df5ac4795f6ccee2421cadbe2aae58c8", "score": "0.471852", "text": "public function fetchTTCDetails($year_amount, $where, $groupFieldName, $havingName, $geoList, $tierValue){\r\n $db = Zend_Db_Table_Abstract::getDefaultAdapter ();\r\n $output = array (); \r\n $helper = new Helper2();\r\n \r\n $tierText = $helper->getLocationTierText($tierValue);\r\n $locationNames = $helper->getLocationNames($geoList);\r\n //var_dump($locationNames); exit;\r\n \r\n //get the last DHIS2 pull date from commodity table and use the year for year here\r\n $latestDate = $helper->getPreviousMonthDates(1);\r\n $year = date('Y', strtotime($latestDate[0]));\r\n\r\n if($where == '')\r\n $locationWhereClause = ' 1=1 ';\r\n else{\r\n $locationFacsList = $helper->getLocationFacilityIDs($where);\r\n $locationWhereClause = 'f.id IN (' . $locationFacsList . ')';\r\n }\r\n\r\n $coverageHelper = new CoverageHelper();\r\n $larcCoverage = $coverageHelper->trainedHWCoverage('larc', $year,$year_amount, $locationWhereClause, $locationNames, $groupFieldName, $havingName, $geoList, $tierText);\r\n $fpCoverage = $coverageHelper->trainedHWCoverage('fp', $year,$year_amount, $locationWhereClause, $locationNames, $groupFieldName, $havingName, $geoList, $tierText);\r\n \r\n return array(\r\n 'location_names' => $locationNames,\r\n 'fp_data' => $fpCoverage,\r\n 'larc_data' => $larcCoverage,\r\n );\r\n }", "title": "" }, { "docid": "c005f40370d53045d52d16fef699a310", "score": "0.47182164", "text": "function scrape_analyst_estimates($symbol){\n\t\n\t\n\t\t\n\t\t\t//echo \"symbol=$symbol \\r\\n\";\n\t\t\t$packtBook= array(); //Declaring array to store sraped website data\n\n\t\t\t$packtPage = curlGet(\"https://uk.finance.yahoo.com/q/ae?s=$symbol\"); //Calling function curlGET and storing returned results in $yahooPage variable\n\t\t\t\n\t\t\t//echo $packtPage ;\n\t\t\t\n\t\t\t//scrape between Earnings Est and Revenue Est\n\t\t\t$packtPage = scrapeBetween ($packtPage,'Earnings Est','Revenue Est');\n\t\t\t\n\t\t\t$packtPageXpath = returnXPathObject($packtPage); //Instatiating new XPath DOM object\n\t\t\t\n\t\t\t\n\t\t\t//Earnings Estimate\t\t\t\n\t\t\t/*$query='//tr/th[@class=\"yfnc_tablehead1\"]/strong';\n\t\t\t$category=$packtPageXpath -> query($query); //Querying for Earnings Estimate\n\t\t\tprint_r($category);\n\t\t\tif ($category->length>0){\n\t\t\t\t//For each category - search for Earnings est and then stop\n\t\t\t\t/*$i=0;\n\t\t\t\t$found=false;\n\t\t\t\twhile ($i<$category->length&&$found==false){ \n\t\t\t\t\tif ($category->item($i)->nodeValue==$type) //Check if this category is Earnings Est\n\t\t\t\t\t\t$found=true; \t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$i++;\n\t\t\t\t}\t\n\t\t\t\tif ($found){ //Earnings est found so get values\n\t\t\t\t\t*/\n\t\t\t\t\t$query='//tr/td';\n\t\t\t\t\t$rowData=$packtPageXpath -> query($query); //Querying for Earnings Estimate\n\t\t\t\t\t//print_r($rowData);\t\n\t\t\t\t\tif ($rowData->length>0)\n\t\t\t\t\t\t//For each row data item\n\t\t\t\t\t\tfor ($i=0;$i<$rowData->length;$i++)\n\t\t\t\t\t\t\tif (strlen($rowData->item($i)->nodeValue)>0)\n\t\t\t\t\t\t\t\t$packtBook['rowData'][]=trim($rowData->item($i)->nodeValue); //Add period ending to 2nd dimension of array\n\t\t\t\t\n\t\t\t\t\t//Got the rowdata but we only interested in Year ago EPS in column 4 and 5\n\t\t\t\t\t//return [\"current\"=>$packtBook['rowData'][3],\"next_year\"=>$packtBook['rowData'][4]];\n\t\t\t\t//}\n\t\t\t\t\n\t\t\t\t/* $query='//tr/td[@class=\"yfnc_tablehead1\"]';\n\t\t\t\t\t$rowData=$packtPageXpath -> query($query); //Querying for Earnings Estimate\n\t\t\t\t\tprint_r($rowData);\t\n\t\t\t\t\tif ($rowData->length>0)\n\t\t\t\t\t\t//For each row data item\n\t\t\t\t\t\tfor ($i=0;$i<$rowData->length;$i++)\n\t\t\t\t\t\t\tif (strlen($rowData->item($i)->nodeValue)>0)\n\t\t\t\t\t\t\t\t$packtBook['rowData'][]=trim($rowData->item($i)->nodeValue); //Add period ending to 2nd dimension of array\n\t\t\t\t*/\n\t\t\t\t\t\n\t\t\t\t\t//Got the rowdata and now get the values for last_eps\n\t\t\t\t\t$estimates=[];\n\t\t\t\t\t$item_values=getValues($packtBook['rowData'],'Year Ago EPS');\n\t\t\t\t\tarray_push($estimates,['indicator'=>'last_eps','value'=>$item_values[2]]);\n\t\t\t\t\t\n\t\t\t\t\t//Got the rowdata and now get the values for eps_est_nxt_year\n\t\t\t\t\t$item_values=getValues($packtBook['rowData'],'Avg. Estimate');\n\t\t\t\t\tarray_push($estimates,['indicator'=>'eps_est_nxt_year','value'=>$item_values[3]]);\n\t\t\t\t\t\n\t\t\t\t\t//return EPS Estimates\n\t\t\t\t\treturn $estimates;\n\t\t\t\t\n\t\t\t\n\t\t\t//}\n\t\t\n\t}", "title": "" }, { "docid": "7c9fe67a11074f26b606e7071e19ce3c", "score": "0.4717291", "text": "public function get_info()\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'name'=>'exchangeratesapi.io',\n\t\t\t\t'description'=>'A free API for current and historical foreign exchange rates published by the European Central Bank.'\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "ddac5249dad986d72cafea4b42ac07fd", "score": "0.47133303", "text": "function ciniki_sapos_expenseUpdateTotals($ciniki, $tnid, $expense_id) {\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQuery');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashIDQuery');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'objectAdd');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'objectUpdate');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'objectDelete');\n\n //\n // Get the expense details, so we know what taxes are applicable for the expense date\n //\n $strsql = \"SELECT invoice_date, \"\n . \"paid_date, \"\n . \"total_amount \"\n . \"FROM ciniki_sapos_expenses \"\n . \"WHERE ciniki_sapos_expenses.id = '\" . ciniki_core_dbQuote($ciniki, $expense_id) . \"' \"\n . \"AND ciniki_sapos_expenses.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.sapos', 'expense');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( !isset($rc['expense']) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.sapos.18', 'msg'=>'Unable to find expense'));\n }\n $expense = $rc['expense'];\n\n //\n // Get the items from the expense\n //\n $strsql = \"SELECT id, \"\n . \"amount \"\n . \"FROM ciniki_sapos_expense_items \"\n . \"WHERE ciniki_sapos_expense_items.expense_id = '\" . ciniki_core_dbQuote($ciniki, $expense_id) . \"' \"\n . \"AND ciniki_sapos_expense_items.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.sapos', 'item');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $items = isset($rc['rows']) ? $rc['rows'] : array();\n\n //\n // Add the totals for the expense items\n //\n $expense_total_amount = 0;\n if( count($items) > 0 ) {\n foreach($items as $iid => $item) {\n $expense_total_amount = bcadd($expense_total_amount, $item['amount'], 4);\n }\n }\n \n $args = array();\n if( $expense_total_amount != floatval($expense['total_amount']) ) {\n $args['total_amount'] = $expense_total_amount;\n }\n if( count($args) > 0 ) {\n $rc = ciniki_core_objectUpdate($ciniki, $tnid, 'ciniki.sapos.expense', \n $expense_id, $args, 0x04);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n }\n\n return array('stat'=>'ok');\n}", "title": "" }, { "docid": "7a2e1063744bdbfcc3ea95fa392b314e", "score": "0.4712386", "text": "public function getAnalysisDetails() {\n return $this->details;\n }", "title": "" }, { "docid": "922ef1d61ee230d411fe0e3016c6552d", "score": "0.47055742", "text": "function getEstimate() {\n\t\treturn $this->data['INFO_ESTIMATE']*60;\n\t}", "title": "" }, { "docid": "bfb3e2163fa4d4d942f0332f2da9c5d9", "score": "0.47022653", "text": "function getTaxCost();", "title": "" }, { "docid": "c357cbf799ef6c66f492a58ba1b38ba8", "score": "0.47016922", "text": "public function calculate(): array\n {\n $servicesResponses = array_map(function ($service) {\n return $this->getHttp()->get(ServiceUrl::CALC_PRICE_DEADLINE, [\n 'query' => $this->payload($service),\n ]);\n }, $this->services);\n\n $services = array_map([\n $this,\n 'fetchCorreiosService',\n ], $servicesResponses);\n\n return array_map([\n $this,\n 'transformCorreiosService',\n ], $services);\n }", "title": "" }, { "docid": "2d58f7544dc5e0c91f8c24ccb79aa552", "score": "0.47016156", "text": "protected function getData()\n {\n for($year = $this->fr_year; $year <= $this->to_year; $year++) {\n\n $this->sum_year[$year] = 0;\n\n $deposits = (new ReceiptRepository)->depositByMonth($year);\n\n foreach ($deposits as $deposit) {\n\n $this->deposit_arr[$year][$deposit->mth] = $deposit->total;\n\n $this->sum_year[$year] += $this->deposit_arr[$year][$deposit->mth];\n\n }\n }\n\n }", "title": "" }, { "docid": "6bb251aab9eea5d141f9c7d456010cbf", "score": "0.47012508", "text": "public function getDetails();", "title": "" }, { "docid": "6bb251aab9eea5d141f9c7d456010cbf", "score": "0.47012508", "text": "public function getDetails();", "title": "" }, { "docid": "5e2cf3499e9b96cec2d7e833efddf2b2", "score": "0.46952876", "text": "function getTiempoAntecedente($CodPersona, $FlagAntVacacion=NULL) {\r\n\t$filtro = \"\";\r\n\tif ($FlagAntVacacion) $filtro .= \" AND FlagAntVacacion = '\".$FlagAntVacacion.\"'\";\r\n\t$sql = \"SELECT\r\n\t\t\t\tFechaDesde,\r\n\t\t\t\tFechaHasta\r\n\t\t\tFROM rh_empleado_experiencia\r\n\t\t\tWHERE\r\n\t\t\t\tCodPersona = '\".$CodPersona.\"' AND\r\n\t\t\t\tTipoEnte = '02'\r\n\t\t\t\t$filtro\r\n\t\t\tORDER BY FechaDesde\";\r\n\t$field = getRecords($sql);\r\n\tforeach($field as $f) {\r\n\t\tlist($Anios, $Meses, $Dias) = getEdad(formatFechaDMA($f['FechaDesde']), formatFechaDMA($f['FechaHasta']));\r\n\t\t$TotalTiempoD += $Dias;\r\n\t\t$TotalTiempoM += $Meses;\r\n\t\t$TotalTiempoA += $Anios;\r\n\t}\r\n\tlist($A, $M, $D) = totalTiempo($TotalTiempoA, $TotalTiempoM, $TotalTiempoD);\r\n\treturn array($A, $M, $D);\r\n}", "title": "" }, { "docid": "82974900fda6dcc062f00e2e6790ea66", "score": "0.46875262", "text": "function getFieldValues()\n {\n $tid = $this->m_tid;\n if($tid == NULL)\n {\n die('Cannot get field values when tid is NULL!');\n }\n $oWL = new \\raptor\\WorklistData($this->m_oContext);\n $aOneRow = $oWL->getDashboardMap($tid);\n $nSiteID = $this->m_oContext->getSiteID();\n $nIEN = $tid;\n $nUID = $this->m_oContext->getUID();\n\n $oDD = new \\raptor\\DashboardData($this->m_oContext);\n $aDD = $oDD->getDashboardDetails(); \n $oPSD = new \\raptor\\ProtocolSupportingData($this->m_oContext);\n \n //die('LOOKNOW>>>>' . print_r($aDD,TRUE));\n \n if($this->m_oCIE == NULL)\n {\n $aLatestVitals = $oPSD->getVitalsDetailOnlyLatest();\n $aEGFR = $oPSD->getEGFRDetail();\n \n $aPatientInfoForCIE = array(); //TODO move this code elsewhere\n $aPatientInfoForCIE['GENDER'] = $aDD['PatientGender'];\n $aPatientInfoForCIE['AGE'] = $aDD['PatientAge'];\n $aPatientInfoForCIE['WEIGHT_KG'] = isset($aLatestVitals['Weight']) ? $aLatestVitals['Weight'] : NULL;\n $aPatientInfoForCIE['LATEST_EGFR'] = $aEGFR['LATEST_EGFR'];\n $aPatientInfoForCIE['MIN_EGFR_10DAYS'] = $aEGFR['MIN_EGFR_10DAYS'];\n $aPatientInfoForCIE['MIN_EGFR_15DAYS'] = $aEGFR['MIN_EGFR_15DAYS'];\n $aPatientInfoForCIE['MIN_EGFR_30DAYS'] = $aEGFR['MIN_EGFR_30DAYS'];\n $aPatientInfoForCIE['MIN_EGFR_45DAYS'] = $aEGFR['MIN_EGFR_45DAYS'];\n $aPatientInfoForCIE['MIN_EGFR_60DAYS'] = $aEGFR['MIN_EGFR_60DAYS'];\n $aPatientInfoForCIE['MIN_EGFR_90DAYS'] = $aEGFR['MIN_EGFR_90DAYS'];\n try\n {\n $oCIE = new \\raptor\\ContraIndEngine($aPatientInfoForCIE); \n } catch (\\Exception $ex) {\n $oCIE = NULL;\n drupal_set_message('Failed to create the contraindications engine because ' . $ex->getMessage(), 'error');\n }\n $this->m_oCIE = $oCIE;\n }\n \n \n //drupal_set_message(print_r($aOneRow,TRUE),'warning');\n $prev_protocolnotes_tx = $this->m_oUtility->getSchedulerNotesMarkup($nSiteID,$nIEN);\n $prev_protocolnotes_tx .= $this->m_oUtility->getCollaborationNotesMarkup($nSiteID,$nIEN);\n $prev_protocolnotes_tx .= $this->m_oUtility->getPreviousNotesMarkup('raptor_ticket_protocol_notes',$nSiteID,$nIEN,'core-protocol-note');\n $prev_exam_notes_tx = $this->m_oUtility->getPreviousNotesMarkup('raptor_ticket_exam_notes',$nSiteID,$nIEN,'exam-note');\n $prev_interpret_notes_tx = $this->m_oUtility->getPreviousNotesMarkup('raptor_ticket_interpret_notes',$nSiteID,$nIEN,'interpret-note');\n $prev_qa_notes_tx = $this->m_oUtility->getPreviousNotesMarkup('raptor_ticket_qa_notes',$nSiteID,$nIEN,'qa-note');\n $prev_suspend_notes_tx = $this->m_oUtility->getPreviousNotesMarkup('raptor_ticket_suspend_notes',$nSiteID,$nIEN,'suspend-note');\n $prev_unsuspend_notes_tx = $this->m_oUtility->getPreviousNotesMarkup('raptor_ticket_unsuspend_notes',$nSiteID,$nIEN,'unsuspend-note');\n \n //drupal_set_message('abcPREVNOTES>>>> <ol>' . $prev_protocolnotes_tx . '</ol>');\n \n //Get app existing protocol data\n $myvalues = array();\n ProtocolInfoPage::setAllValuesNull($myvalues); //Initialize all values to NULL first.\n $myvalues['tid'] = $tid;\n $myvalues['procName'] = $aOneRow['Procedure'];\n $myvalues['prev_protocolnotes_tx'] = $prev_protocolnotes_tx;\n $myvalues['prev_exam_notes_tx'] = $prev_exam_notes_tx;\n $myvalues['prev_interpret_notes_tx'] = $prev_interpret_notes_tx;\n $myvalues['prev_qa_notes_tx'] = $prev_qa_notes_tx;\n $myvalues['prev_suspend_notes_tx'] = $prev_suspend_notes_tx;\n $myvalues['DefaultValues'] = null;\n $myvalues['protocolnotes_tx'] = '';\n $myvalues['exam_notes_tx'] = '';\n $myvalues['qa_notes_tx'] = '';\n \n $this->loadProtocolFieldValues($nSiteID,$nIEN,$myvalues);\n $this->loadExamFieldValues($nSiteID,$nIEN,$myvalues);\n \n //Get existing checklist data.\n $myvalues['questions'] = array();\n $query = db_select('raptor_ticket_checklist', 't');\n $query->leftJoin('raptor_checklist_question', 'q', 't.question_shortname = q.question_shortname');\n $query->fields('t');\n $query->fields('q', array('relative_position','type_cd'))\n ->condition('q.type_cd', 'SC','=')\n ->condition('siteid', $nSiteID,'=')\n ->condition('IEN', $nIEN,'=')\n ->orderBy('t.author_uid', 'ASC')\n ->orderBy('q.relative_position', 'ASC');\n \n //->condition('author_uid', $nUID,'=')\n\n $result = $query->execute();\n while($record = $result->fetchAssoc())\n {\n $shortname = $record['question_shortname'];\n if($record['author_uid'] == $nUID) //20140810\n {\n //Answer from this user.\n $myvalues['questions']['thisuser'][$shortname] = array();\n $myvalues['questions']['thisuser'][$shortname]['response'] = $record['answer_tx'];\n $myvalues['questions']['thisuser'][$shortname]['comment'] = $record['comment_tx'];\n } else {\n //Answer from a different user.\n $author = $record['author_uid'];\n $myvalues['questions']['otheruser'][$author][$shortname] = array();\n $myvalues['questions']['otheruser'][$author][$shortname]['response'] = $record['answer_tx'];\n $myvalues['questions']['otheruser'][$author][$shortname]['comment'] = $record['comment_tx'];\n }\n //drupal_set_message('LOOK GOT CHECLIST Q'.$record['question_shortname'].'>>>'.print_r($myvalues['questions'][$shortname],TRUE));\n }\n \n //drupal_set_message('LOOK>>>'.print_r($myvalues,TRUE));\n \n return $myvalues;\n }", "title": "" }, { "docid": "cc30bd7589c8d640644df1565bd9e1dc", "score": "0.46860301", "text": "function ViewDetailsTrans(){\r\n$supplier_id= getRequest('supplier_id');\r\n $sql = \"SELECT\r\n\tsupplier_id,\r\n\tcompany_name,\r\n\tcontact_person,\r\n\taddress,\r\n\tmobile,\r\n\temail,\r\n\tacc_no\r\nFROM\r\n\tinv_supplier_info where supplier_id= $supplier_id\";\r\n\t$res = mysql_query($sql);\r\n\t$row = mysql_fetch_array($res);\r\n\t$company_name=$row['company_name'];\r\n\t$mobile= $row['mobile'];\r\n\t$address= $row['address'];\r\n\r\n \r\n \r\n \t $sql3=\"select sum(dr) as drAmnt, sum(cr) as crAmnt\r\n\t\t\t\tFROM view_detail_account where supplier_id= $supplier_id\";\r\n\t\t\r\n\t \t $ros3 = mysql_query($sql3);\r\n\t\t\t\r\n\t\twhile($res3 = mysql_fetch_array($ros3)){\r\n\t\t\t\t$drAmnt\t\t\t\t= $res3['drAmnt'];\r\n\t\t\t\t$crAmnt\t\t\t= $res3['crAmnt'];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$balance = ($drAmnt-$crAmnt);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t$CollectionFetch = $this->CollectionReport($supplier_id);\r\n\t\trequire_once(ACCOUNTS_TRANSACTION_VIEW_SKIN); \r\n\r\n\t\t\t\t\r\n\t}", "title": "" }, { "docid": "78b9b78411d37b2b64956e05a5690e6a", "score": "0.46804756", "text": "private function getData()\n\t{\n\t\t// get articles\n\t\t$this->items = FrontendEventsModel::getAll(30);\n\n\t\t// get settings\n\t\t$this->settings = FrontendModel::getModuleSettings('events');\n\t}", "title": "" }, { "docid": "2970976160288c4b9e196b7fe4164669", "score": "0.4677717", "text": "public function getIVA_VENTAS(){\n return $this->IVA_VENTAS;\n }", "title": "" }, { "docid": "03805c40873c541ba2820ab1679ade0b", "score": "0.4671394", "text": "public function escalation_summary(Request $request) {\n\n $response = $request->all();\n $ann_start_dt = request('ann_start_date');\n $ann_end_dt = request('ann_end_date');\n\n $ann_start_dt = str_replace(\"/\",\"-\",$response['ann_start_date']);\n $ann_end_dt = str_replace(\"/\",\"-\",$response['ann_end_date']);\n $ann_start_dt = date(\"Y-m-d\", strtotime($ann_start_dt)).' 00:00:00';;\n $ann_end_dt = date('Y-m-d',strtotime($ann_end_dt)).' 23:59:59';\n\n $cmpny_id = $response['cmpny_id'];\n $query_type_data = array();\n $query_types_array = QueryTypes::orderBy('query_type')->where('cmpny_id',$cmpny_id)->where('status',config('constant.ACTIVE'))->where('type',config('constant.TICKET'))->pluck('query_type', 'id')->all();\n $query_type_data['query_type_names'] = array_values($query_types_array);\n\n $query_type_ids = array_keys($query_types_array);\n\n // master status array\n $query_status = QueryStatusRelation::select('ori_mast_query_status.id','ori_mast_query_status.name')\n ->leftjoin('ori_mast_query_status','ori_mast_query_status.id','=','ori_mast_query_status_relation.query_status_id')\n ->where('ori_mast_query_status_relation.status',config('constant.ACTIVE'))\n ->whereIn('ori_mast_query_status_relation.query_type_id', $query_type_ids)\n ->where('ori_mast_query_status_relation.status',config('constant.ACTIVE'))\n ->where('ori_mast_query_status_relation.cmpny_id',$cmpny_id)\n ->where('ori_mast_query_status.cmpny_id',$cmpny_id)\n ->groupBy('ori_mast_query_status.id')\n ->groupBy('ori_mast_query_status.name')\n ->where('ori_mast_query_status_relation.deleted_at', '=', Null)\n ->get();\n $query_status_array = $query_status->pluck('name', 'id')->all();\n\n $query_type_data['query_status_names'] = array_values($query_status_array);\n $query_status_ids = array_keys($query_status_array);\n\n $query_type_counts = Helpdesk::select(DB::raw('count(query_type) as counts'),'ori_helpdesk.query_status','query_type')\n ->join('ori_customer_profiles', 'ori_customer_profiles.id', '=', 'ori_helpdesk.customer_id')\n ->whereNull('ori_customer_profiles.deleted_at')\n ->where('ori_helpdesk.status',config('constant.ACTIVE'))\n ->whereIn('ori_helpdesk.query_type', $query_type_ids)\n ->whereIn('ori_helpdesk.query_status', $query_status_ids)\n ->where('ori_helpdesk.escalate','!=',0)\n ->where('ori_helpdesk.escalation_status',1)\n ->where('ori_helpdesk.cmpny_id', $cmpny_id);\n\n // if (isset($ann_start_dt) && !empty($ann_start_dt) && isset($ann_end_dt) && !empty($ann_end_dt))\n // {\n // $query_type_counts->whereBetween('ori_helpdesk.created_at', [$ann_start_dt, $ann_end_dt]);\n // }\n\n $query_type_counts = $query_type_counts->groupBy('ori_helpdesk.query_status')\n ->groupBy('query_type')\n ->orderBy('ori_helpdesk.query_status')\n ->orderBy('query_type')\n ->get();\n\n foreach ($query_type_counts as $query_type_status_count)\n {\n $query_type = $query_type_status_count->query_type;\n $query_status = $query_type_status_count->query_status;\n $query_type_counts_data[$query_types_array[$query_type]][$query_status_array[$query_status]] = $query_type_status_count->counts;\n }\n\n $i = 0;\n $j = 0;\n\n $query_type_status_array = array();\n\n foreach ($query_types_array as $query_type_id => $query_type_name)\n {\n $j = 0;\n foreach ($query_status_array as $query_status_id => $query_status_name)\n {\n if (isset($query_type_counts_data[$query_type_name]))\n {\n if (isset($query_type_counts_data[$query_type_name][$query_status_name]))\n {\n $query_count = $query_type_counts_data[$query_type_name][$query_status_name];\n $query_type_status_array[] = [$i,$j,$query_count];\n }\n else\n {\n $query_type_status_array[] = [$i,$j,0];\n }\n }\n else\n {\n $query_type_status_array[] = [$i,$j,0];\n }\n $j++;\n }\n $i++;\n }\n $query_type_data['value'] = $query_type_status_array;\n return json_encode($query_type_data);\n \n }", "title": "" }, { "docid": "b7c8d01cb599bc17ab477d0ef47983e6", "score": "0.4664024", "text": "function _empowersbc_get_preliminary_estimates($contactId, $contractorId) {\n if(empty($contactId) || empty($contractorId)) {\n return false;\n }\n\n $preliminary_estimate_details = array();\n //Return values : Upgrade Type, Estimated Rebate Value,Estimated Total Cost & Estimated emPower Monthly Payment & Is Viewed field\n $params = array(\n 'version' => 3,\n 'sequential' => 1,\n 'contact_id_a' => $contractorId,\n 'contact_id_b' => $contactId,\n 'relationship_type_id' => 13,\n 'is_active' => 1,\n 'return' => \"id, custom_404,custom_405, custom_408, custom_412, custom_475\"\n );\n\n $resultRelationshipBA = civicrm_api('Relationship', 'get', $params);\n if ( $resultRelationshipBA['is_error'] == 0 && ! empty( $resultRelationshipBA['values']) ) {\n $preliminary_estimate_details = $resultRelationshipBA['values'];\n }\n\n return $preliminary_estimate_details;\n}", "title": "" }, { "docid": "502eb58ec3002554c008006151bc2621", "score": "0.46639356", "text": "function anularFactura(){\n \t\t\t$this->procedimiento='vef.ft_facturacion_externa_ime';\n \t\t\t$this->transaccion='VEF_ANU_FAC_EXT_ELI';\n \t\t\t$this->tipo_procedimiento='IME';\n\n \t\t\t//Define los parametros para la funcion\n \t\t\t$this->setParametro('id_venta','id_venta','int4');\n\n \t\t\t//Ejecuta la instruccion\n \t\t\t$this->armarConsulta();\n \t\t\t$this->ejecutarConsulta();\n\n \t\t\t//Devuelve la respuesta\n \t\t\treturn $this->respuesta;\n \t}", "title": "" }, { "docid": "0e479bfcea345b223fd81eed14abc964", "score": "0.46602964", "text": "public function getAsalData()\n {\n return $this->asal_data;\n }", "title": "" }, { "docid": "5c45db75c8606b689ac838d9d4c4a07f", "score": "0.46466726", "text": "public static function geoCart_other_detailsProcess()\n {\n }", "title": "" }, { "docid": "9bcdc6211aeed1a88b9a2a92360b50c0", "score": "0.46460235", "text": "protected function getEstimatedReadingTimeService()\n {\n }", "title": "" }, { "docid": "618f9a9a6812fc6f8c42a847eb9d1368", "score": "0.46456653", "text": "public function finishPurchase() {\n\n $total = 0;\n\n foreach ($this->tickets as $ticket) {\n $total += $ticket->getPrice($this->hasGroupDiscount());\n }\n\n // Apply pricing rules\n $this->apply3DSurcharge($total);\n $this->applyOverlengthSurcharge($total);\n $this->applyWeekendSurcharge($total);\n $this->applyLogeSurcharge($total);\n $this->applyMovieDayDiscount($total);\n\n return $total;\n\n }", "title": "" }, { "docid": "4e7d2b7358fab310943fb5755171fc8c", "score": "0.464436", "text": "function calcularTarifa($data, $dias, $P, $E){\n\t$data = (array) $data;\n\t$id=$data['codigo_unico'];\n\t$total = array_sum($E);\n\tglobal $conn;\n\t\n\t$tarifa = array(\n\t\t'oferta' => \"3.0\",\n\t\t'oferta1' => \"2.1\",\n\t\t'oferta2' => \"2.0\",\n\t\t'oferta3' => \"3.1\",\n\t);\n\t$peajes = Peaje::all();\n\t$peaje = $peajes->last();\n\t\n\t$peaje_punta['oferta'] = $peaje->peaje_punta_15;\n\t$peaje_llano['oferta'] = $peaje->peaje_llano_15;\n\t$peaje_valle['oferta'] = $peaje->peaje_valle_15;\n\t$peaje_punta['oferta1'] = $peaje->peaje_punta_10_1;\n\t$peaje_punta_1['oferta1'] = $peaje->peaje_punta_10_2;\n\t$peaje_llano['oferta1'] = $peaje->peaje_llano_10;\n\t$peaje_punta['oferta2'] = $peaje->peaje_punta_0_1;\n\t$peaje_punta_1['oferta2'] = $peaje->peaje_punta_0_2;\n\t$peaje_llano['oferta2'] = $peaje->peaje_llano_0;\n\t$peaje_punta['oferta3'] = $peaje->peaje_punta_15n;\n\t$peaje_llano['oferta3'] = $peaje->peaje_llano_15n;\n\t$peaje_valle['oferta3'] = $peaje->peaje_valle_15n;\n\t$resultado = $row = $data;\n\n\t//Costo Energia\n\tif(isset($row['diferencia'])){\n\t\tif($row['diferencia'] == 1){\n\t\t\tif($row['precio_peaje'] != 1){\n\t\t\t\t$resultado['p_e_punta_c_peaje'] = $row['p_e_punta_s_peaje'] + $peaje_punta_1[$row['dato']];\n\t\t\t\t$resultado['p_e_llano_c_peaje'] = $row['p_e_llano_s_peaje'] + $peaje_llano[$row['dato']];\n\t\t\t\t$resultado['p_e_valle_c_peaje'] = 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$resultado['p_e_punta_c_peaje'] = $row['p_e_punta_s_peaje'];\n\t\t\t\t$resultado['p_e_llano_c_peaje'] = $row['p_e_llano_s_peaje'];\n\t\t\t\t$resultado['p_e_valle_c_peaje'] = 0;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif($row['precio_peaje'] != 1){\n\t\t\t\t$resultado['p_e_punta_c_peaje'] = $row['p_e_punta_s_peaje'] + $peaje_punta[$row['dato']];\n\t\t\t\t$resultado['p_e_llano_c_peaje'] = 0;\n\t\t\t\t$resultado['p_e_valle_c_peaje'] = 0;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$resultado['p_e_punta_c_peaje'] = $row['p_e_punta_s_peaje'];\n\t\t\t\t$resultado['p_e_llano_c_peaje'] = 0;\n\t\t\t\t$resultado['p_e_valle_c_peaje'] = 0;\n\t\t\t}\n\t\t}\n\t}\n\telse{\n\t\tif($row['precio_peaje'] != 1){\n\t\t\t$resultado['p_e_punta_c_peaje'] = $row['p_e_punta_s_peaje'] + $peaje_punta[$row['dato']];\n\t\t\t$resultado['p_e_llano_c_peaje'] = $row['p_e_llano_s_peaje'] + $peaje_llano[$row['dato']];\n\t\t\t$resultado['p_e_valle_c_peaje'] = $row['p_e_valle_s_peaje'] + $peaje_valle[$row['dato']];\n\t\t}\n\t\telse{\n\t\t\t$resultado['p_e_punta_c_peaje'] = $row['p_e_punta_s_peaje'];\n\t\t\t$resultado['p_e_llano_c_peaje'] = $row['p_e_llano_s_peaje'];\n\t\t\t$resultado['p_e_valle_c_peaje'] = $row['p_e_valle_s_peaje'];\n\t\t}\n\t}\n\t\n\t$resultado['E1'] = $E[0];\n\t$resultado['E2'] = $E[1];\n\t$resultado['E3'] = $E[2];\n\n\t$resultado['P1'] = $P[0];\n\t$resultado['P2'] = $P[1];\n\t$resultado['P3'] = $P[2];\n\n\t$resultado['dias'] = $dias;\n\n\n\t$resultado['coste_energia_punta'] = $resultado['p_e_punta_c_peaje'] * $E[0];\n\t$resultado['coste_energia_llano'] = $resultado['p_e_llano_c_peaje'] * $E[1];\n\tif(isset($resultado['p_e_valle_c_peaje'])){\n\t\t$resultado['coste_energia_valle'] = $resultado['p_e_valle_c_peaje'] * $E[2];\n\t}\n\telse{\n\t\t$resultado['coste_energia_valle'] = 0;\n\t\t$resultado['valle_final_dto'] = 0;\n\t}\n\t$resultado['subtotal_coste_energia'] = $resultado['coste_energia_punta'] + $resultado['coste_energia_llano'] + $resultado['coste_energia_valle'];\n\t$resultado['descuento'] = ($resultado['subtotal_coste_energia']/100)*$row['descuento'];\n\t$resultado['total_coste_energia'] = $resultado['subtotal_coste_energia'] - $resultado['descuento'];\n\t$resultado['descuento'] = number_format($resultado['descuento'],2,\",\",\".\");\n\n\t//Costo Potencia\t\t\t\t\t\n\t$resultado['coste_potencia_punta'] = $row['p_p_punta'] * $dias * $P[0];\n\t$resultado['coste_potencia_llano'] = $row['p_p_llano'] * $dias * $P[1];\n\t$resultado['coste_potencia_valle'] = $row['p_p_valle'] * $dias * $P[2];\n\t$resultado['total_coste_potencia'] = $resultado['coste_potencia_punta'] + $resultado['coste_potencia_llano'] + $resultado['coste_potencia_valle'];\n\t$resultado['total_potencia_energia'] = $resultado['total_coste_potencia'] + $resultado['total_coste_energia'] + $resultado['exceso_potencia'] + $resultado['ajustes'] + $resultado['energia_reactiva'];\n\t$resultado['total_coste_energia'] = number_format($resultado['total_coste_energia'],2,\",\",\".\");\n\t$resultado['total_coste_potencia'] = number_format($resultado['total_coste_potencia'],2,\",\",\".\");\n\t$resultado['iee'] = $resultado['total_potencia_energia'] * 0.0510851124;\n\t$resultado['total_sin_iva'] = $resultado['total_sin_iva1'] = $resultado['total_potencia_energia'] + $resultado['iee'];\n\t$resultado['total_sin_iva'] += $resultado['alquiler_equipo'];\n\t$resultado['total_sin_iva'] += $resultado['otros'];\n\tif($resultado['provincia'] == 5){\n\t\t$resultado['iva'] = round($resultado['total_sin_iva'] * 0.04,2);\n\t}\n\telse{\n\t\t$resultado['iva'] = round($resultado['total_sin_iva'] * 0.21,2);\n\t}\n\t$resultado['total_con_iva'] = round($resultado['total_sin_iva'] + $resultado['iva'],2);\n\t$resultado['total_sin_iva'] = number_format(round($resultado['total_sin_iva'],2),2,\",\",\".\");\n\t$resultado['total_sin_iva1'] = number_format(round($resultado['total_sin_iva1'],2),2,\",\",\".\");\n\t$resultado['iva'] = number_format(round($resultado['iva'],2),2,\",\",\".\");\n\t//$resultado['total_con_iva'] = number_format(round($resultado['total_con_iva'],2),2,\",\",\".\");\n\t$resultado['rango_consumo'] = round($row['rango1'],0).' '.round($row['rango2'],0);\n\t$resultado['punta'] = number_format( round($row['p_e_punta_s_peaje'],6),6,\",\",\".\");\n\t$resultado['llano'] = number_format( round($row['p_e_llano_s_peaje'],6),6,\",\",\".\");\n\t$resultado['valle'] = number_format(round($row['p_e_valle_s_peaje'],6),6,\",\",\".\");\n\t$resultado['cepunta'] = number_format(round($resultado['coste_energia_punta'],2),2,\",\",\".\");\n\t$resultado['cellano'] = number_format(round($resultado['coste_energia_llano'],2),2,\",\",\".\");\n\t$resultado['cevalle'] = number_format(round($resultado['coste_energia_valle'],2),2,\",\",\".\");\n\t$resultado['cedto'] = number_format(round($resultado['descuento'],2),2,\",\",\".\");\n\t$resultado['ppunta'] = $resultado['p_e_punta_c_peaje'] = number_format($resultado['p_e_punta_c_peaje'],6,\",\",\".\");\n\t$resultado['pllano'] = $resultado['p_e_llano_c_peaje'] = number_format($resultado['p_e_llano_c_peaje'],6,\",\",\".\");\n\tif(isset($resultado['p_e_valle_c_peaje'])){\n\t\t$resultado['pvalle'] = $resultado['p_e_valle_c_peaje'] = number_format($resultado['p_e_valle_c_peaje'],6,\",\",\".\");\n\t}\n\t$resultado['iee'] = number_format(round($resultado['iee'],2),2,\",\",\".\");\n\t$resultado['dto'] = round($row['descuento'],0);\n\t$resultado['total'] = number_format(round($resultado['total_sin_iva'],2),2,\",\",\".\");\n\t\n\t$resultado['cppunta'] = number_format($row['p_p_punta'],6,\",\",\".\");\n\t$resultado['cpllano'] = number_format($row['p_p_llano'],6,\",\",\".\");\n\t$resultado['cpvalle'] = number_format($row['p_p_valle'],6,\",\",\".\");\n\t$resultado['cptotalpunta'] = number_format(round($resultado['coste_potencia_punta'],2),2,\",\",\".\");\n\t$resultado['cptotalllano'] = number_format(round($resultado['coste_potencia_llano'],2),2,\",\",\".\");\n\t$resultado['cptotalvalle'] = number_format(round($resultado['coste_potencia_valle'],2),2,\",\",\".\");\n\t$resultado['scsubtotal'] = number_format(round($resultado['total_potencia_energia'],2),2,\",\",\".\");\n\t/** este dato no contiene relacion, siendo 1 entonces:'Url Sitio' sino 'Archivo' **/\n\tif($row['idtipoenlace']==1){\n\t\t\n\t\t$resultado['tipoenlace'] = 'Url Sitio'; \n\t\t$resultado['linkcontrato'] = 'http://'.$row['linkcontrato'];\n\t}\n\telseif($row['idtipoenlace']==2){\n\t\t\n\t $resultado['tipoenlace'] = 'Archivo'; \n\t $resultado['linkcontrato'] = URL::to('/').\"documentos/contratos/\".$row['linkcontrato'];\n\t}\n\telseif($row['idtipoenlace']==3){\n\t\t\n\t $resultado['tipoenlace'] = 'Contrataci&oacute;n Online'; \n\t $resultado['linkcontrato'] = URL::to('/').\"contratacion/\".$row['codigo_unico'];\n\t}\n\t$resultado['nombre_comerc'] = $row['nombre_comercial'];\n\t$resultado['tipooferta'] = $row['tipo_oferta'];\n\t$resultado['valido'] = (($row['valido']==1)?\"Nuevo aviso\":implode('/', array_reverse(explode('-', $row['valido_fecha']))));\n\t$resultado['comentarios'] = $row['comentarios'];\n\t$resultado['link'] = (isset($row['link']))?$row['link']:'';\n\t$resultado['rango1'] = round($row['rango1'],0);\n\t$resultado['botoncontrato'] = $row['botoncontrato'];\n\t$resultado['imagen1'] = $row['imagen1'];\n\t$resultado['dato'] = $row['dato'];\n\tif(isset($row['diferencia'])){\n\t\t$resultado['diferencia'] = $row['diferencia'];\n\t}\n\tif($resultado['energia_reactiva'] != \"\"){\n\t\t$resultado['energia_reactiva'] = number_format(round($row['energia_reactiva'],2),2,\",\",\".\");\n\t}\n\tif($resultado['ajustes'] != \"\"){\n\t\t$resultado['ajustes'] = number_format(round($row['ajustes'],2),2,\",\",\".\");\n\t}\n\tif($resultado['alquiler_equipo'] != \"\"){\n\t\t$resultado['alquiler_equipo'] = number_format(round($row['alquiler_equipo'],2),2,\",\",\".\");\n\t}\n\tif($resultado['exceso_potencia'] != \"\"){\n\t\t$resultado['exceso_potencia'] = number_format(round($row['exceso_potencia'],2),2,\",\",\".\");\n\t}\n\tif($resultado['otros'] != \"\"){\n\t\t$resultado['otros'] = number_format(round($row['otros'],2),2,\",\",\".\");\n\t}\n\t/*$sqlTer1=\"SELECT nombre\n\t\t\t FROM territorio\n\t\t\t WHERE id='\".$territorio[0].\"'\";\n\t$resultTer = mysql_query($sqlTer1,$conn);\n\t$nombre_territorio = array();\n\twhile($rowTer1 = mysql_fetch_array($resultTer)){\n\t\t$nombre_territorio[]=$rowTer1['nombre'];\n\t}\n\t$resultado['nombre_territorio'] = implode(\",\",$nombre_territorio);*/\n\treturn $resultado;\n}", "title": "" }, { "docid": "11fcbf31ccc5557ab72c2e655ddde880", "score": "0.4644309", "text": "public function getTasaIVA()\n {\n return $this->tasaIVA;\n }", "title": "" }, { "docid": "7afc76d7ebf8e5d1a74bf413301f2b72", "score": "0.46405122", "text": "function adelservice_calc($from,$to,$weight,$vol,$insPrice,$client_lang,$transport_lang, $base_curr, $client_curr,\n\t\t $cargoCountryFrom, $cargoCountryTo, $cargoStateFrom, $cargoStateTo)\n {\n\n\t\t$calc = new calculator_adelservice();\n\t\t$calc->Calculate($from,$to,$weight,$vol,$insPrice,$client_lang,$client_curr,$cargoCountryFrom, $cargoCountryTo, $cargoStateFrom, $cargoStateTo);\n\t\t\n\t\texit(0);\n\n }", "title": "" }, { "docid": "77852cecb021f8ef5f40e7e38d740ca0", "score": "0.46356753", "text": "public function getSaleDetails() {\n\t\t$db = new DBManager();\n\t\t//$lastMonth = date('m-Y', strtotime(\"-1 month\"));\n\t\t$sql = \"SELECT * from ems_invoices, ems_invoice_amount where MONTH(ems_invoices.invoice_paid_date) = MONTH(CURRENT_DATE() - INTERVAL 1 MONTH) AND YEAR(ems_invoices.invoice_paid_date) = YEAR(CURRENT_DATE() - INTERVAL 1 MONTH) and ems_invoices.status = 1 and ems_invoices.invoice_id = ems_invoice_amount.invoice_id order by ems_invoices.id desc\";\n\n $data = $db->getAllRecords($sql);\n $total = $db->getNumRow($sql);\n while ($row = $db->getNextRow()) {\n $this->invoice_id[] = $row['invoice_id'];\n $this->client_name[] = $row['name'];\n $this->gstin[] = $row['gstin'];\n $this->invoice_date[] = $row['invoice_date'];\n $this->invoice_paid_date[] = $row['invoice_paid_date'];\n $this->desc_of_service[] = $row['desc_of_service'];\n $this->sac_code[] = $row['sac_code'];\n $this->quantity[] = $row['quantity'];\n $this->price[] = $row['price'];\n $this->sgst[] = $row['sgst'];\n $this->cgst[] = $row['cgst'];\n $this->igst[] = $row['igst'];\n $this->currency_type[] = $row['currency_type'];\n $this->invoice_amount[] = $row['net_amount'];\n $this->status[] = $row['status'];\n }\n \n return $total;\n\t}", "title": "" }, { "docid": "54792bf4434c74d93a0dacff023c4ef3", "score": "0.46313065", "text": "function get_tickets($user) {\n $output = array();\n // Unused tickets\n $result = @get(\"https://atm-be.sg.engitel.com/v2/it/ticketing/wallet\", $user);\n if ($result != FALSE) {\n $data = json_decode($result, TRUE);\n foreach ($data as $ticket) {\n array_push($output, array(\"description\" => $ticket[\"Description\"],\n \"duration\" => $ticket[\"DurationDescription\"],\n \"journeys\" => $ticket[\"MaxValidationsAllowed\"],\n \"pnr\" => $ticket[\"MobileTicketId\"],\n \"price\" => $ticket[\"Price\"],\n \"validated\" => FALSE,\n \"validation_date\" => NULL,\n \"expiration_date\" => NULL));\n }\n }\n // Already used tickets\n $result = @get(\"https://atm-be.sg.engitel.com/v2/it/ticketing/walletHistory\", $user);\n if ($result != FALSE) {\n $data = json_decode($result, TRUE);\n foreach ($data as $ticket) {\n array_push($output, array(\"description\" => $ticket[\"Description\"],\n \"duration\" => $ticket[\"DurationDescription\"],\n \"journeys\" => $ticket[\"MaxValidationsAllowed\"],\n \"pnr\" => $ticket[\"MobileTicketId\"],\n \"price\" => $ticket[\"Price\"],\n \"validated\" => TRUE,\n \"validation_date\" => $ticket[\"ValidationTimeStamp\"],\n \"expiration_date\" => $ticket[\"ExpirationTimeStamp\"]));\n }\n }\n return $output;\n}", "title": "" }, { "docid": "d84a4a0d9655347e3ee3611a20f29d20", "score": "0.46269622", "text": "public function getExtras()\n {\n $extras = CarExtras::find()->where(['not', ['price' => null]])->all();\n $return = [];\n foreach ($extras as $extra) {\n $value = $extra->name;\n $value .= '<span class=\"pull-right\" data-price=\"' . $extra->price . '\" data-day=\"' . $extra->is_price_by_day . '\"><pr>' . $extra->price . '</pr>'. Yii::t('main', ' Euro').' /';\n $value .= $extra->is_price_by_day ? Yii::t('main', 'for a day') : Yii::t('main', 'total') . '</span>';\n $return[$extra->id] = $value;\n }\n return $return;\n }", "title": "" }, { "docid": "3fc9e144542e370871d3e98b6f51346c", "score": "0.46226954", "text": "public function calculate()\n {\n }", "title": "" }, { "docid": "3fc9e144542e370871d3e98b6f51346c", "score": "0.46226954", "text": "public function calculate()\n {\n }", "title": "" }, { "docid": "5838374b9216bb27d89efa3bf1586ae8", "score": "0.46207282", "text": "abstract function getSummary();", "title": "" }, { "docid": "02cefea5da3fda1c735a82128f639d0c", "score": "0.4620161", "text": "public function computeQuotation()\n {\n //$letterpress_price + $binding_price + $diecut_price = $unit_price\n //$total_price == $unit_price * $qty\n\n }", "title": "" }, { "docid": "5a50fee1c3823b9218fc8bc13b06a1d6", "score": "0.46102443", "text": "public static function calcSessionQuotationCurrentValue($upTo){\n $price = 0;\n\n // Init stage\n $layout = \\Laravel\\Session::get('quote_layout');\n $price = $layout->cost;\n $deliveryData = self::calcDeliver();\n $price = $price + $deliveryData['price'];\n if($upTo == \"init\") return (float)$price;\n\n // Customise stage - Stage 1\n $price = $price + \\Laravel\\Session::get('quote_customise_swap_window', 0) * QuotationPriceAdjustments::getPrice('swap_window_wall');\n $price = $price + \\Laravel\\Session::get('quote_customise_swap_wall', 0) * QuotationPriceAdjustments::getPrice('swap_wall_window');\n $price = $price + \\Laravel\\Session::get('quote_customise_extra_door', 0) * QuotationPriceAdjustments::getPrice('add_extra_door');\n $price = $price + \\Laravel\\Session::get('quote_customise_fanlight', 0) * QuotationPriceAdjustments::getPrice('add_fanlight_window');\n $price = $price + \\Laravel\\Session::get('quote_customise_half_window', 0) * QuotationPriceAdjustments::getPrice('add_half_window');\n $price = $price + \\Laravel\\Session::get('quote_customise_picture_window', 0) * QuotationPriceAdjustments::getPrice('add_1820_window');\n if($upTo == \"customise\") return (float)$price;\n\n // Decking / Flyover stage - Stage 2\n $price = $price + \\Laravel\\Session::get('quote_decking_composite_deck_910_910', 0) * QuotationPriceAdjustments::getPrice('composite_deck_910_910');\n $price = $price + \\Laravel\\Session::get('quote_decking_composite_deck_910_1820', 0) * QuotationPriceAdjustments::getPrice('composite_deck_910_1820');\n $price = $price + \\Laravel\\Session::get('quote_decking_composite_deck_910_2730', 0) * QuotationPriceAdjustments::getPrice('composite_deck_910_2730');\n $price = $price + \\Laravel\\Session::get('quote_decking_flyover_roof_910_910', 0) * QuotationPriceAdjustments::getPrice('flyover_roof_910_910');\n $price = $price + \\Laravel\\Session::get('quote_decking_flyover_roof_910_1820', 0) * QuotationPriceAdjustments::getPrice('flyover_roof_910_1820');\n $price = $price + \\Laravel\\Session::get('quote_decking_flyover_roof_910_2730', 0) * QuotationPriceAdjustments::getPrice('flyover_roof_910_2730');\n if($upTo == \"deckingflyover\") return (float)$price;\n\n // Electrics stage - Stage 3\n $price = $price + \\Laravel\\Session::get('quote_electrics_double_sockets_450', 0) * QuotationPriceAdjustments::getPrice('electrics_double_sockets_450');\n $price = $price + \\Laravel\\Session::get('quote_electrics_double_sockets_1150', 0) * QuotationPriceAdjustments::getPrice('electrics_double_sockets_1150');\n $price = $price + \\Laravel\\Session::get('quote_electrics_light_switch', 0) * QuotationPriceAdjustments::getPrice('electrics_light_switch');\n $price = $price + \\Laravel\\Session::get('quote_electrics_panel_heater', 0) * QuotationPriceAdjustments::getPrice('electrics_panel_heater');\n $price = $price + \\Laravel\\Session::get('quote_electrics_double_floor_socket', 0) * QuotationPriceAdjustments::getPrice('electrics_double_floor_socket');\n $price = $price + \\Laravel\\Session::get('quote_electrics_fused_spur_socket', 0) * QuotationPriceAdjustments::getPrice('electrics_fused_spur_socket');\n if($upTo == \"electrics\") return (float)$price;\n\n // Electrics stage - Stage 4\n $price = $price + \\Laravel\\Session::get('quote_internals_silver_aluminium_venitian_blind_no_screws', 0) * QuotationPriceAdjustments::getPrice('silver_aluminium_venitian_blind_no_screws');\n $price = $price + \\Laravel\\Session::get('quote_internals_recessed_blinds', 0) * QuotationPriceAdjustments::getPrice('recessed_blinds');\n $price = $price + \\Laravel\\Session::get('quote_internals_internal_910_partition_wall', 0) * QuotationPriceAdjustments::getPrice('internal_910_partition_wall');\n $price = $price + \\Laravel\\Session::get('quote_internals_internal_door_dividing_studio', 0) * QuotationPriceAdjustments::getPrice('internal_door_dividing_studio');\n $price = $price + \\Laravel\\Session::get('quote_internals_internal_wall_corner_post', 0) * QuotationPriceAdjustments::getPrice('internal_wall_corner_post');\n if($upTo == \"interior\") return (float)$price;\n\n // Other stage - Stage 5\n $price = $price + \\Laravel\\Session::get('quote_other_decoupled_floor', 0) * QuotationPriceAdjustments::getPrice('other_decoupled_floor');\n $price = $price + \\Laravel\\Session::get('quote_other_aquastep_oak_floor', 0) * QuotationPriceAdjustments::getPrice('other_aquastep_oak_floor');\n $price = $price + \\Laravel\\Session::get('quote_other_walls_to_timber', 0) * QuotationPriceAdjustments::getPrice('other_walls_to_timber');\n $price = $price + \\Laravel\\Session::get('quote_other_taller_walls', 0) * QuotationPriceAdjustments::getPrice('other_taller_walls');\n $price = $price + \\Laravel\\Session::get('quote_other_entry_steps', 0) * QuotationPriceAdjustments::getPrice('other_entry_steps');\n $price = $price + \\Laravel\\Session::get('quote_other_entry_handrail', 0) * QuotationPriceAdjustments::getPrice('other_entry_handrail');\n $price = $price + \\Laravel\\Session::get('quote_other_skirt', 0) * QuotationPriceAdjustments::getPrice('other_skirt');\n if($upTo == \"other\") return (float)$price;\n\n return $price;\n }", "title": "" }, { "docid": "c3a4e6b05ea1a01360342575836d25d9", "score": "0.46042293", "text": "public function getTotalInventory() \n {\n static $day = null;\n static $currentMonth = null;\n $month = $this->getMonth();\n if($day === null){\n $now = new \\DateTime();\n $day = (int)$now->format(\"d\");\n $currentMonth = (int)$now->format(\"m\");\n }\n \n $total = 0.0;\n if($month == $currentMonth){\n $total = $this->getYesterDay();\n }else{\n $total = $this->getLastDay();\n }\n return $total;\n }", "title": "" }, { "docid": "67b9872a898369e3040fa97a2bcb714c", "score": "0.4598796", "text": "public function totalDurationProvider(): array\n {\n // load data from file\n $fileUtility = new GpxFileUtility();\n $gpx = $fileUtility->loadTrackFromFile(\"C:\\\\Temp\\\\test.gpx\");\n // get track points\n $track = $gpx->listTracks()[0];\n // return test data\n return [\n [$track, 3278.0]\n ];\n }", "title": "" }, { "docid": "96746fb692779436b21fda3b50233291", "score": "0.45980468", "text": "function getEC($y,$pid,$em_id){\n if($y==1){\n $select = \"select `payday`, `sss` from `posted_summary` where `posted_id` = '\" . $pid . \"' and `em_id` = '\" . $em_id . \"'\";\n $result = mysql_query($select, connect());\n $row = mysql_fetch_array($result,MYSQL_ASSOC);\n $s = explode(\"@\",$row['payday']);\n $ec = getsss($row['sss']);\n\n if($s[0] == 'w1'){\n return array($ec[0],$ec[1]);\n }\n else{\n $pastpayid = 'w1@' . $s[1];\n $select1 = \"select `payday`, `sss` from `posted_summary` where `payday` = '\" . $pastpayid . \"' and `em_id` = '\" . $em_id . \"' and post_type = 'REGULAR'\";\n $result1 = mysql_query($select1, connect());\n $row1 = mysql_fetch_array($result1,MYSQL_ASSOC);\n $ec1 = getsss($row1['sss']+$row['sss']);\n $ec2 = getsss($row1['sss']);\n return array($ec1[0] - $ec2[0], $ec1[1] - $ec2[1]);\n }\n }\n }", "title": "" }, { "docid": "5fb3559df20b011a1fa4d849d50dd309", "score": "0.45892623", "text": "public function firstGlobalAnalysis(){\n\t\t$this->updateAvailableMentalNumbers();\n\t\t$this->findFinalAnswer();\n\t\t$this->find_simpl_for();\n\t}", "title": "" }, { "docid": "cf7e9c67224185443a7a82d9e78a0c40", "score": "0.45892042", "text": "public function fetchData(): array\n {\n $this->calcDegrees();\n $this->calcMinutes();\n $this->calcSeconds();\n $this->calcSign();\n return parent::fetchData();\n }", "title": "" }, { "docid": "385756cfbe9d4bdb8d9219f1746eea2d", "score": "0.45891684", "text": "function getUpdatedDataBookResultObject($spaid, $adults = 1, $child = 0, $infant = 0, $extras) {\n $this->ci->load->library('currconverter');\n $result = array();\n $curr = $this->ci->currconverter;\n $extratotal = $this->extrasFee($extras);\n $extTotal = $extratotal['extrasTotalFee'];\n $paymethodTotal = 0; //$this->paymethodFee($this->ci->input->post('paymethod'),$total);\n $this->set_id($spaid);\n $this->spa_short_details();\n $adultPrice = $this->adultPrice * $adults;\n $childPrice = $this->childPrice * $child;\n $infantPrice = $this->infantPrice * $infant;\n $totalSum = $adultPrice + $childPrice + $infantPrice;\n $total = $curr->convertPriceFloat($extTotal) + $curr->convertPriceFloat($adultPrice) + $curr->convertPriceFloat($childPrice) + $curr->convertPriceFloat($infantPrice);\n $this->setTax($total);\n $taxAmount = $curr->addComma($this->taxamount);\n $grandTotal = $total + $paymethodTotal + $this->taxamount;\n $this->setDeposit($grandTotal);\n $depositAmount = $this->deposit;\n $price = $grandTotal;\n//$perNight = $curr->convertPrice($roomprice['perNight'],0);\n $extrasHtml = \"\";\n foreach ($extratotal['extrasInfo'] as $einfo) {\n $extrasHtml .= \"<tr class='allextras'><td>\" . $einfo['title'] . \"</td>\n \t\t\t\t\t<td class='text-right'>\" . $curr->code . \" \" . $curr->symbol . $curr->addComma($einfo['price']) . \"</td></tr>\";\n }\n $adultsSubitem = array(\"price\" => $curr->convertPriceFloat($this->adultPrice), \"count\" => $adults);\n if ($child > 0) {\n $childSubitem = array(\"price\" => $curr->convertPriceFloat($this->childPrice), \"count\" => $child);\n }\n else {\n $childSubitem = \"\";\n }\n if ($infant > 0) {\n $infantSubitem = array(\"price\" => $curr->convertPriceFloat($this->infantPrice), \"count\" => $infant);\n }\n else {\n $infantSubitem = \"\";\n }\n $subitem = array(\"adults\" => $adultsSubitem, \"child\" => $childSubitem, \"infant\" => $infantSubitem);\n $result = (object) array('grandTotal' => $price, 'taxAmount' => $taxAmount, 'depositAmount' => $depositAmount, 'extrashtml' => $extrasHtml, 'bookingType' => \"spa\", 'currCode' => $curr->code, 'stay' => 1, 'currSymbol' => $curr->symbol, 'subitem' => $subitem, 'extrasInfo' => $extratotal);\n//end spa details for booking page\n return json_encode($result);\n }", "title": "" }, { "docid": "2d86a1519c977ac91c8269b02dc5753d", "score": "0.4588934", "text": "function getPayTotal();", "title": "" }, { "docid": "f6fcfbfc0c2c03e6439bdd91c486eb8f", "score": "0.45871368", "text": "public function CalculatePrice_Assembly_TotalAverage($barcode=0, $assembly_bom='')\r {\r # NOTE :: Usually this is used when making an adjustment - to calculate value of each adjustment item\r # NOTE :: For each barcode - if it can't get a calculated cost - it will go to the default velue\r # METHOD :: TotalAverage - Takes an average of all physical purchases (purchase orders) in the system - no date restriction\r #\r # P-CODE :: Break apart each assembly item to its raw inventory barcode - then calculate the average for each barcode\r \r \r $assy_barcode = ($barcode != 0) ? $barcode : $this->Barcode;\r $return = 1;\r $show_debug = false;\r \r \r if (!$assy_barcode) {\r $error = \"No assy_barcode provided\";\r $this->AddError($this->Classname, __FUNCTION__, $error);\r $this->EchoError($this->Classname, __FUNCTION__, $error, true);\r exit();\r }\r \r // ----- Check to see if we passed in a BOM or build record - use that\r // ----- If no build record - get the default build record (by using the Inventory_AssemblyExplode Class)\r if (!$assembly_bom) {\r $Obj_Explode = new Inventory_AssemblyExplode(); // Instantiate the assembly explode class\r $Obj_Explode->Barcode = $assy_barcode; // Set barcode for the assembly we want to explode\r $Obj_Explode->Quantity = 1; // Set count for a single assembly\r $Obj_Explode->Execute(); // Run the function\r $assembly_bom = $Obj_Explode->BOM; // Store the BOM for this assembly Array(barcode => quantity, barcode => quantity, etc...)\r }\r \r $this->Build_Record = $assembly_bom;\r \r #$this->EchoVar('assembly_bom', $assembly_bom);\r #exit();\r \r $value_array_temp = array(); // initialize temp array variable\r $price_total_temp = 0;\r $ship_total_temp = 0;\r \r $sku = $this->GetInventoryItemRetailerCodeFromBarcode($assy_barcode);\r \r if ($show_debug) {$this->EchoVar('', '<div style=\"border:1px solid green; padding:10px; margin:10px;\">');}\r if ($show_debug) {$this->EchoVar('Notice', 'BEGINNING LOOP', 'blue');}\r if ($show_debug) {$this->EchoVar('Master Barcode', $assy_barcode);}\r if ($show_debug) {$this->EchoVar('sku', $sku);}\r if ($show_debug) {$this->EchoVar('assembly_bom', $assembly_bom);}\r \r foreach ($assembly_bom as $barcode => $quantity) {\r \r if ($show_debug) {$this->EchoVar('', '');}\r if ($show_debug) {$this->EchoVar('barcode', $barcode);}\r if ($show_debug) {$this->EchoVar('quantity', $quantity);}\r \r $this->Value_Array = array(); // reset the variable\r $result = $this->CalculatePrice_Barcode_TotalAverage($barcode); // Get the average cost for this barcode\r \r if (!$result) {\r if ($show_debug) {$this->EchoVar('Notice', 'Trying for default value', 'blue');}\r $result = $this->CalculatePrice_Barcode_DefaultCost($barcode); // Get the default cost for this barcode\r if ($result) {\r if ($show_debug) {$this->EchoVar('Notice', 'Default Value Found');}\r }\r }\r \r if ($result) {\r \r $price_total = ($this->Price_Calculated_Each * $quantity); // Calc total for this barcode given qty in assembly\r $ship_total = ($this->Price_Calculated_Shipping_Each * $quantity); // Calc ship total for this barcode given qty in assembly\r \r $price_total_temp += $price_total; // Store value\r $ship_total_temp += $ship_total; // Store value\r $value_array_temp[$barcode] = $this->Value_Array; // Store the value_array for this barcode - shows how barcode cost was calculated\r $value_array_temp[$barcode]['function'] = 'CalculatePrice_Assembly_TotalAverage';\r \r if ($show_debug) {$this->EchoVar('Price Each', $this->Price_Calculated_Each);}\r if ($show_debug) {$this->EchoVar('Ship Each', $this->Price_Calculated_Shipping_Each);}\r if ($show_debug) {$this->EchoVar('Price Total', $price_total);}\r if ($show_debug) {$this->EchoVar('Ship Total', $ship_total);}\r \r } else {\r // ----- FAILED to get any cost for this barcode in assembly\r $notice = \"Couldn't calculate average for barcode. Barcode: {$barcode}\";\r $this->AddNotice($this->Classname, __FUNCTION__, $notice);\r $this->EchoNotice($this->Classname, __FUNCTION__, $notice, false);\r $return = 0; // any failure will cause this whole function to return FALSE (0)\r }\r }\r \r if ($show_debug) { $this->EchoVar('', '</div>');}\r \r $this->Price_Calculated_Each = $price_total_temp;\r $this->Price_Calculated_Shipping_Each = $ship_total_temp;\r $this->Value_Array = $value_array_temp;\r \r return $return;\r }", "title": "" }, { "docid": "71717e97fb4b8fb2661ca861093f7fd2", "score": "0.45869902", "text": "public function getIVA()\r\n {\r\n return $this->IVA;\r\n }", "title": "" }, { "docid": "2ebf137e28c229025f82a1eed1befc2d", "score": "0.4584931", "text": "public function collect(Mage_Sales_Model_Quote_Address $address)\n {\n $helper = Mage::helper('klarna');\n $helper->log('Preparing to collect totals');\n\n parent::collect($address);\n\n /**\n * Reset previous values\n */\n $this->_setAmount(0);\n $this->_setBaseAmount(0);\n\n /**\n * Fetch the quote\n */\n $quote = $address->getQuote();\n\n if ($quote->getId()) {\n try {\n\n $payment = $quote->getPayment();\n\n if (is_object($payment)) {\n $paymentCode = $payment->getMethodInstance()->getCode();\n } else {\n $paymentCode = false;\n }\n\n $helper->log('Quote found with ID ' . $quote->getId());\n\n /**\n * Make sure it's a payment that has a fee and it's a shipping\n * address, otherwise the invoice fee won't be added.\n */\n if ($address->getAddressType() == 'shipping'\n && $paymentCode == 'klarna_invoice'\n ) {\n $helper->log(\n 'Updating quote since we\\'re using ' . $paymentCode\n );\n\n /**\n * Fetch payment method invoice fee\n */\n $fee = $helper->getConfig('fee', $payment->getCode());\n\n /**\n * Add store view currency amount\n */\n $this->_addAmount($fee);\n\n /**\n * Add base currency amount\n */\n $this->_addBaseAmount($fee);\n\n /**\n * Also store in address for later reference in fetch()\n */\n $address->setKlarnaTotal($fee);\n $address->setBaseKlarnaTotal($fee);\n\n /**\n * Add the fee to the quote object\n */\n $address->getQuote()\n ->setKlarnaTotal($fee)\n ->setBaseKlarnaTotal($fee);\n\n Mage::helper('klarna')->log('Set fee ' . $fee);\n }\n\n /**\n * Remove fee if any other payment option\n */\n if ($payment->getCode() !== 'klarna_invoice') {\n $address->setKlarnaTotal(null);\n $address->setBaseKlarnaTotal(null);\n\n $address->getQuote()\n ->setKlarnaTotal(null)\n ->setBaseKlarnaTotal(null);\n }\n } catch (Exception $e) {\n $helper->log(\n 'Exception when calling collect: ' . $e->getMessage()\n );\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "7bda7857caec51045c3aca85f2310152", "score": "0.4578455", "text": "public function getSalida()\n {\n if ($this->tiempo <=0){\n $this->total = number_format(0,2);\n $this->fecha_fin = '';\n }\n else{\n $this->fecha_fin = Carbon::now()->addMonths($this->tiempo)->format('d-m-Y');\n $tarifa = Tarifa::where('tiempo', 'MES')->select('costo')->first();\n\n if ($tarifa->count())\n {\n //calcular total meses*tarifa\n $this->total = $this->tiempo * $tarifa->costo;\n }\n }\n }", "title": "" }, { "docid": "4d4521ffe384a743b37d8de18eddd5d9", "score": "0.45782065", "text": "private function showDurationEstimate()\n {\n $duration = microtime(true) - $this->start;\n $avgSeconds = ($duration / $this->perPage);\n $estTotalHours = round(($this->statsToImportCount * $avgSeconds) / 60 / 60, 2);\n $this->io->out(\"Estimated time to import all stats: $estTotalHours hours\");\n }", "title": "" }, { "docid": "ea7a7ac1242a1948aadd29801b72fddf", "score": "0.45736942", "text": "public function run()\n {\n\t $created_by_erp_user_id = 157;\n\t /*參考資料為 即期賣出匯率*/\n\t $datas = [\n\t '201804' => [\n\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.6441'\n\t //],\n\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.271'\n\t ],\n\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '29.3375'\n\t ]\n\t ],\n\t '201805' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.664'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2703'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '29.8182'\n\t\t ]\n\t ],\n\t '201806' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.6253'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2714'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '30.0163'\n\t\t ]\n\t ],\n\t '201807' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.5165'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2722'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '30.5032'\n\t\t ]\n\t ],\n\t '201808' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.4561'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2747'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '30.55'\n\t\t ]\n\t ],\n\t '201809' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.4565'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2728'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '30.6921'\n\t\t ]\n\t ],\n\t '201810' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.433'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2718'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '30.48'\n\t\t ]\n\t ],\n\t '201811' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.4212'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2702'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '30.7957'\n\t\t ]\n\t ],\n\t '201812' => [\n\t //[\n\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.4466'\n\t //],\n\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2726'\n\t ],\n\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '30.7660'\n\t ]\n\t ],\n\t '201901' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.5102'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2811'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '30.7737'\n\t\t ]\n\t ],\n\t '201902' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.5442'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2769'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '30.762'\n\t\t ]\n\t ],\n\t '201903' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.567'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2756'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '30.7995'\n\t\t ]\n\t ],\n\t '201904' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.5656'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2745'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '30.8025'\n\t\t ]\n\t ],\n\t '201905' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.5149'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2822'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '31.18954545'\n\t\t ]\n\t ],\n\t '201906' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.5068'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2879'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '31.2692'\n\t\t ]\n\t ],\n\t '201907' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.491'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2852'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '31.0261'\n\t\t ]\n\t ],\n\t '201908' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.4099'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.2934'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '31.3468'\n\t\t ]\n\t ],\n\t '201909' => [\n\t\t //[\n\t\t // 'currency' => 'CNY',\n\t\t // 'rate' => '4.4099'\n\t\t //],\n\t\t [\n\t\t 'currency' => 'JPY',\n\t\t 'rate' => '0.287825'\n\t\t ],\n\t\t [\n\t\t 'currency' => 'USD',\n\t\t 'rate' => '31.06925'\n\t\t ]\n\t ],\n '201910' => [\n //[\n // 'currency' => 'CNY',\n // 'rate' => '4.4099'\n //],\n [\n 'currency' => 'JPY',\n 'rate' => '0.2803'\n ],\n [\n 'currency' => 'USD',\n 'rate' => '30.44'\n ]\n ],\n '201911' => [\n //[\n // 'currency' => 'CNY',\n // 'rate' => '4.4099'\n //],\n [\n 'currency' => 'JPY',\n 'rate' => '0.2806'\n ],\n [\n 'currency' => 'USD',\n 'rate' => '30.55'\n ]\n ],\n '201912' => [\n [\n 'currency' => 'JPY',\n 'rate' => '0.278'\n ],\n [\n 'currency' => 'USD',\n 'rate' => '30.03'\n ]\n ],\n '202001' => [\n [\n 'currency' => 'JPY',\n 'rate' => '0.279'\n ],\n [\n 'currency' => 'USD',\n 'rate' => '30.24'\n ]\n ],\n\t ];\n\t \n\t foreach( $datas as $setDate => $data){\n\t\t foreach ($data as $datum) {\n\t\t\t $date = new DateTime($setDate.'01');\n\t\t\t $date = $date->format('Y-m-01');\n\t\t\t $datum['set_date'] = $date;\n\t\t\t $datum['created_by_erp_user_id'] = $created_by_erp_user_id;\n\t\t\t\n\t\t\t ExchangeRate::create($datum);\n\t \t}\n\t }\n\t \n }", "title": "" } ]
35d70889afb5202e4d3451d65e95ecaa
Set up starting record parameters
[ { "docid": "ff02ff20d9e1ac49f21ce73fbd84c756", "score": "0.0", "text": "function SetUpStartRec() {\r\n\t\tif ($this->DisplayRecs == 0)\r\n\t\t\treturn;\r\n\t\tif ($this->IsPageRequest()) { // Validate request\r\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\r\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\r\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\r\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\r\n\t\t\t\tif (is_numeric($PageNo)) {\r\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\r\n\t\t\t\t\tif ($this->StartRec <= 0) {\r\n\t\t\t\t\t\t$this->StartRec = 1;\r\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\r\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->StartRec = $this->getStartRecordNumber();\r\n\r\n\t\t// Check if correct start record counter\r\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\r\n\t\t\t$this->StartRec = 1; // Reset start record counter\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\r\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\r\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "df48592ff857209b368b555fb8c5c218", "score": "0.649372", "text": "public function setupParameters() {\n $this->_paramInfo = array(\n array(\n 'name' => 'uiconfID',\n 'label' => 'UI Configuration ID',\n 'description' => 'The id of the UI configuration set up in Kaltura',\n 'type' => 'string',\n //'value' => '', //for enum type only\n 'required' => 'true',\n 'default' => '8129212'\n ),\n array(\n 'name' => 'entryID',\n 'label' => 'Entry ID',\n 'description' => 'The entry id which identifies the item in Kaltura',\n 'type' => 'string',\n //'value' => '',\n 'required' => 'true',\n 'default' => ''\n ),\n array(\n 'name' => 'width',\n 'label' => 'Width',\n 'description' => 'The width in pixels of the BookReader panel through which the public views the content of this book.',\n 'type' => 'int',\n //'value' => '',\n 'required' => 'false',\n 'default' => '600'\n ),\n array(\n 'name' => 'height',\n 'label' => 'Height',\n 'description' => 'The height in pixels of the BookReader panel through which the public views the content of this book.',\n 'type' => 'int',\n //'value' => '',\n 'required' => 'false',\n 'default' => '400'\n )\n );\n }", "title": "" }, { "docid": "5e19e7e1d2dee3a35729b844148baee4", "score": "0.64385504", "text": "protected function set_params() {}", "title": "" }, { "docid": "4dcd904d231dc29166aaceeb1efd8dd1", "score": "0.6340977", "text": "protected function initDatabaseRecord() {}", "title": "" }, { "docid": "a8cef4a575559f9b6511a2f7feaa66cf", "score": "0.61318564", "text": "protected function setDefaultParameters() {\n // Vendor token of the business that done the request.\n $this->setParameter('vendor_token', $this->getLydiaVendorToken()) ;\n\n // UUID of the remote payment request.\n $this->setParameter('request_uuid', $this->requestUUID) ;\n }", "title": "" }, { "docid": "bd03be60f98a6cee9abe50da73e580c3", "score": "0.61313194", "text": "abstract protected function getInitiateParams();", "title": "" }, { "docid": "addfd1eb34093424dff674df4d3a271d", "score": "0.607851", "text": "private function init() {\n // Set environment variables MUST BE DONE IN THIS ORDER!\n self::initDefaultFormValues(); // Assign default values to forms\n self::initTablePriorityHash();\n self::initTableTypePriorityHash();\n self::initTableHash(); // assign tables.\n self::initTableColumnsHash(); // assign hash with column details.\n #self::initSurveyHash(); // Assign Surveys TODO Place this back in when surveys are merged.\n self::initAstroFilterHash(); // Assign Filters\n self::initQualityFlags(); // assign hash with column details for all quality flag tables.\n }", "title": "" }, { "docid": "0374c13c66809e05570fcab59bf92a1b", "score": "0.6065935", "text": "private function __construct() {\n $this->constructParameters();\n }", "title": "" }, { "docid": "80b8dde07a0e43887677d483fa8ff538", "score": "0.60575145", "text": "public function startup()\n {\n if (!empty($this->params['config'])) {\n $this->_config = $this->params['config'];\n }\n\n if (!empty($this->params['subject'])) {\n $this->_subject = $this->params['subject'];\n }\n\n if (!empty($this->params['message'])) {\n $this->_message = $this->params['message'];\n }\n if (!empty($this->args[0])) {\n $this->_email = $this->args[0];\n }\n\n parent::startup();\n }", "title": "" }, { "docid": "7098814fcfd48348bfd64d7fee61d428", "score": "0.60283744", "text": "public function initialise() {\r\n\r\n $this->primary_consumer_key = NULL;\r\n $this->primary_resource_link_id = NULL;\r\n $this->length = NULL;\r\n $this->life = NULL;\r\n $this->auto_approve = FALSE;\r\n $this->expires = NULL;\r\n\r\n }", "title": "" }, { "docid": "24c39097811c36ee5b640881a1334e36", "score": "0.5935552", "text": "function init() {\n\t\t\n\t\tif($this->getData(\"pagingRecordsPerPage\")!='')\n\t\t{\n\t\t\t$this->internal['results_at_a_time'] = $this->getData(\"pagingRecordsPerPage\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->internal['results_at_a_time'] = 2;\n\t\t}\n\t\t// Settings for paging starts here\n\t\t\n\t\t$this->internal['maxPages'] = 7;\n\t\t$this->internal['dontLinkActivePage'] = true;\n\t\t$this->internal['pagefloat'] = 'center';\n\t\t// Settings for paging ends here\n\n\t}", "title": "" }, { "docid": "352d7f7c5ae06b03c60a6f004cb6e0ec", "score": "0.5918172", "text": "public function initialise() {\r\n\r\n $this->lti_context_id = NULL;\r\n $this->lti_resource_id = NULL;\r\n $this->title = '';\r\n $this->settings = array();\r\n $this->group_sets = NULL;\r\n $this->groups = NULL;\r\n $this->primary_consumer_key = NULL;\r\n $this->primary_resource_link_id = NULL;\r\n $this->share_approved = NULL;\r\n $this->created = NULL;\r\n $this->updated = NULL;\r\n\r\n }", "title": "" }, { "docid": "8c79c61e24a53923cf1a38aa425359d5", "score": "0.59109426", "text": "public function __construct() {\r\n\t\t\t//assign the variables\r\n\t\t\t\t$this->app_name = 'call_recordings';\r\n\t\t\t\t$this->app_uuid = '56165644-598d-4ed8-be01-d960bcb8ffed';\r\n\t\t\t\t$this->name = 'call_recording';\r\n\t\t\t\t$this->table = 'call_recordings';\r\n\t\t\t\t$this->description_field = 'call_recording_description';\r\n\t\t\t\t$this->location = 'call_recordings.php';\r\n\t\t}", "title": "" }, { "docid": "75ed73ce5933f608fc4a4b2ca5bfae9b", "score": "0.5907199", "text": "public function individual_init()\n {\n $sql_params = $this->config->item('sql_params');\n \n // Get name of services table\n $this->sql_services_table = $this->config->item('sql_table');\n \n // Class sql params variables initialization\n $this->sql_init($sql_params);\n }", "title": "" }, { "docid": "08087f9196b66c01cd84b35998590f2c", "score": "0.5902392", "text": "function setupInitialVars() {\n\t\tparent::setupInitialVars();\n\t\t\n\t\t$this->getEngine()->assign('uploadUri', $this->getController()->buildUriPath(uploadController::ACTION_UPLOAD));\n\t\t$this->getEngine()->assign('doUploadUri', $this->getController()->buildUriPath(uploadController::ACTION_DO_UPLOAD));\n\t\t$this->getEngine()->assign('doMovieSave', $this->getController()->buildUriPath(uploadController::ACTION_MOVIE_SAVE));\n\t}", "title": "" }, { "docid": "1da0bf7fa3ae3415a1874b52f24dd146", "score": "0.5890256", "text": "protected function setupMasterParms()\n\t{\n\n\t\t// Hide foreign keys\n\t\t$masterTblVar = $this->getCurrentMasterTable();\n\t\tif ($masterTblVar == \"contract\") {\n\t\t\t$this->ContractNo->Visible = FALSE;\n\t\t\tif ($GLOBALS[\"contract\"]->EventCancelled)\n\t\t\t\t$this->EventCancelled = TRUE;\n\t\t}\n\t\t$this->DbMasterFilter = $this->getMasterFilter(); // Get master filter\n\t\t$this->DbDetailFilter = $this->getDetailFilter(); // Get detail filter\n\t}", "title": "" }, { "docid": "e95019b9fa390c85ba84aecfba622f72", "score": "0.5841209", "text": "private function init()\n {\n $this->initVars();\n $this->initInstances();\n $this->initDrs();\n $this->initPid();\n }", "title": "" }, { "docid": "ebd2552d43b81c295509ca3f2fff27e3", "score": "0.5827176", "text": "private function init() {\n\t\tlist(, $this->db, $this->table) = explode('_', get_called_class(), 3);\n\t\t$this->db = defined('static::DB') ? static::DB : $this->db;\n\t\t$this->table = defined('static::TABLE') ? static::TABLE : $this->table;\n\t\t$this->pk = defined('static::PK') ? static::PK : 'id';\n\t}", "title": "" }, { "docid": "c4f81bc4f7678757aa59163766163c43", "score": "0.5823012", "text": "public function init()\n\t{\n\t\t$this->_init = true;\n\t\t$db = $this->getDbConnection();\n\t\t$this->preload = $this->preprocessParams($this->preload);\n\t\tif (!empty($this->preload) || $this->autoLoad)\n\t\t{\n\t\t\t$sql = 'SELECT option_name, option_value FROM '.$this->paramsTableName;\n\t\t\tif (sizeof($this->preload))\n\t\t\t\t$sql .= ' WHERE option_name IN (\\''.implode('\\',\\'', $this->preload).'\\')';\n\t\t\t$cmd = $db->createCommand($sql);\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$reader = $cmd->query();\n\t\t\t\tforeach ($reader as $row)\n\t\t\t\t{\n\t\t\t\t\t$this->add($row['option_name'], $row['option_value']);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (CException $e)\n\t\t\t{\n\t\t\t\t//table is not present\n\t\t\t\t$createTable = true;\n\t\t\t\t//if there is no table, then attributes are empty.\n\t\t\t\tfor ($i = 0, $s = sizeof($this->preload); $i < $s; $i++)\n\t\t\t\t{\n\t\t\t\t\t$this->add($this->preload[$i], null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//check if table exist\n\t\t\tif ($db->createCommand('SHOW TABLES LIKE \\''.$this->paramsTableName.'\\'')->query()->rowCount <= 0)\n\t\t\t\t$createTable = true;\n\t\t}\n\t\tif ($createTable === true)\n\t\t{\n\t\t\tif($this->autoCreateParamsTable)\n\t\t\t\t$this->createParamsTable($db,$this->paramsTableName);\n\t\t\telse\n\t\t\t\tthrow new CException(Yii::t('xparam','Params table \"{tableName}\" does not exist.',\n\t\t\t\t\tarray('{tableName}'=>$this->paramsTableName)));\n\t\t}\n\t}", "title": "" }, { "docid": "7a42ebe3b3d46f5a13c7cc71428ed7e2", "score": "0.5819847", "text": "protected function initGeneratorParameters() {\r\n\t\tif (!$this->generator_parameters) {\r\n\t\t\t$gen_file = sfConfig::get('sf_module_cache_dir') . '/auto' . ucfirst($this->getModuleName()) . '/surface_generator.yml.php';\r\n\t\t\tif (file_exists($gen_file)) {\r\n\t\t\t\tinclude $gen_file;\r\n\t\t\t\t$this->generator_parameters = new PropelConfiguration($generator_params);\r\n\t\t\t} else {\r\n\t\t\t\t$this->generator_parameters = new PropelConfiguration(array());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7478907bb98b6141df889715d9039175", "score": "0.57531655", "text": "public function __construct($record = null)\n {\n $this->init($record);\n }", "title": "" }, { "docid": "2c08dca127ed7e4336ba5203158e08c1", "score": "0.57251656", "text": "public function init ()\r\n\t{\r\n\t\t// or can use this to set default valuse\r\n\t\t\r\n\t\tif($this->queryFromBatchJob) {\r\n\t\t\t$fieldsArray = array_merge($this->BATCH_JOB_FIELDS, $this->BATCH_JOB_COMMON_FIELDS);\r\n\t\t\t$this->fields = kArray::makeAssociativeDefaultValue ($fieldsArray , NULL );\r\n\t\t\t$this->allowed_order_fields = array (\r\n\t\t\t\t\t\"created_at\",\r\n\t\t\t\t\t\"updated_at\",\r\n\t\t\t\t\t\"status\",\r\n\t\t\t\t\t\"queue_time\",\r\n\t\t\t\t\t\"finish_time\");\r\n\t\t} else {\r\n\t\t\t$fieldsArray = array_merge($this->BATCH_JOB_LOCK_FIELDS, $this->BATCH_JOB_COMMON_FIELDS);\r\n\t\t\t$this->fields = kArray::makeAssociativeDefaultValue ( $fieldsArray , NULL );\r\n\t\t\t$this->allowed_order_fields = array (\r\n\t\t\t\t\t\"lock_expiration\",\r\n\t\t\t\t\t\"execution_attempts\",\r\n\t\t\t\t\t\"lock_version\",\r\n\t\t\t\t\t\"status\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6e711ed6943102359815d886d9b4211c", "score": "0.56919634", "text": "private function init() {\n $apiParts = $this->request->getApiParts();\n $this->requestedId = array_shift($apiParts);\n $this->apiParts = $apiParts;\n \n $this->siteDriver = Datastore::getSiteDriver();\n }", "title": "" }, { "docid": "61a0bb77bbe44c7ac95669fa7d655952", "score": "0.56782687", "text": "public function initializeArguments() {\n\t\tparent::initializeArguments();\n\t\t$this->registerArgument ( 'family', 'Tx_Timekeeping_Domain_Model_Family', '', TRUE );\n\t\t$this->registerArgument ( 'user' , 'Tx_Timekeeping_Domain_Model_User' , '', TRUE );\n\t}", "title": "" }, { "docid": "a3e3a21924bf44b3ca1e36d7de002e99", "score": "0.56483257", "text": "abstract protected function _initAddRecordState();", "title": "" }, { "docid": "8be04315541e349625933ce84f874d0d", "score": "0.56461936", "text": "public function init()\n {\n $this->rootPageUid = $this->filterConfig->getSettings('rootPageUid');\n $this->respectEnableFields = $this->filterConfig->getSettings('respectEnableFields');\n $this->respectDeletedField = $this->filterConfig->getSettings('respectDeletedField');\n }", "title": "" }, { "docid": "dd6eee77c3d5fe31929271e81a74010b", "score": "0.5640564", "text": "public function setup() {\n\t\t$this->db->loadSQLFile($this->moduleName, \"quote\");\n\t\t$this->settingManager->add($this->moduleName, \"quote_stat_count\", \"Number of users shown in stats\", \"edit\", \"number\", \"10\");\n\t}", "title": "" }, { "docid": "e6a80fdc7638f91a4bd75fded1e75e9a", "score": "0.56358355", "text": "function generalPrepare()\n {\n $tableName = $this->ask('Table Name:');\n $modelName = $this->ask('Model Name:');\n $fieldCount = $this->ask('Field Count:');\n $i = 1;\n $fields = [];\n while ( $i <= $fieldCount) {\n $field = trim($this->ask($i . '.Column Specs:'));\n $field = explode(':', $field);\n $type = array_splice($field, 1);\n if( count($type) == 0 ){\n $type = array('string');\n }\n $fields[$field[0]] = $type;\n $i++;\n }\n $resource = camel_case($modelName);\n $this->conf = (object)compact('resource','tableName','modelName','fields');\n }", "title": "" }, { "docid": "fb336b43b1d716a9a6e2f83952092739", "score": "0.5617864", "text": "function SetUpStartRec() {\n\t\tglobal $patient_detail;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\t\t\t\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$patient_detail->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$patient_detail->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $patient_detail->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$patient_detail->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$patient_detail->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$patient_detail->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "title": "" }, { "docid": "0f526510d18200db97d7194b581e4086", "score": "0.56157595", "text": "function setParam()\n {\n $this->rFromDate = '0000-00-00';\n $this->rToDate = date('Y-m-d');\n $this->rAllDate = false;\n $this->rColumns = array();\n }", "title": "" }, { "docid": "e140df609af038a452bb584a2287e334", "score": "0.56144553", "text": "protected function set_form_values() {\n $this->starting_values = $this->params_with_defaults();\n }", "title": "" }, { "docid": "9682b4acb79327385690c71ae8e2fc77", "score": "0.56078726", "text": "public function setup()\n {\n \t// rtConfig::set('your-key', $your_value);\n }", "title": "" }, { "docid": "ff5500bd81d1ff9ee2a3fe9093de32db", "score": "0.56030303", "text": "protected function setDefaults()\n {\n $this->options['dsn'] = null;\n $this->options['table'] = 'HTTP_Session2_Container_Doctrine_Record';\n $this->options['autooptimize'] = false;\n }", "title": "" }, { "docid": "92331f9ddde97c31b3a297b157c7d2d5", "score": "0.56028545", "text": "protected function init() {\n $this->data['objecttable'] = 'elang_check';\n $this->data['crud'] = 'c';\n $this->data['edulevel'] = self::LEVEL_PARTICIPATING;\n }", "title": "" }, { "docid": "43d1632c0d1f9e32782d15422da7ebd9", "score": "0.55926657", "text": "public function __construct() { \n require __DIR__ . '/Config/parameters.php'; //⚠️️ DIR = cste magiq qui retourne chemin du doss ds lequel on est depuis la racine\n $this -> parameters = $parameters; // je mets ça ds ' protected $parameters; '\n /*⚠️️ Au moment où j'instancie cette classe, je récupère le fichier parameters.php, \n et je stocke tous les parameters de mon application dans la propriété $parameters */\n }", "title": "" }, { "docid": "9f1c629f129450feb1fdaf5f38780029", "score": "0.5579056", "text": "protected function initParametersRequired()\n {\n $this->parametersRequired = [\n //Ingresa aquí el identificador del pagador.\n PayUParameters::PAYER_ID,\n //Ingresa aquí el identificador del token.\n PayUParameters::TOKEN_ID\n ];\n\n $this->parametersMissing = $this->parametersRequired;\n }", "title": "" }, { "docid": "eb7779efbe3a066958a1a2b1965fe34d", "score": "0.55771303", "text": "public function initialize()\r\n {\r\n $this->setSchema(\"test\");\r\n $this->setSource(\"general_log\");\r\n }", "title": "" }, { "docid": "3ab0e6955565096c0fe29e99d774acac", "score": "0.5569661", "text": "public static function init()\n {\n self::$staticParams = new \\StdClass();\n }", "title": "" }, { "docid": "daf60f0dc75c0f66701b68686af95d2e", "score": "0.55668056", "text": "public static function init() {\n\t\tself::setupBaseConfiguration();\n\t\tself::setTimeZone();\n\t\tself::iniSet();\n\t\tself::setupErrorHandler();\n\t\tself::startSession();\n\t}", "title": "" }, { "docid": "43d273d3396e2cbff0bb79ee5632c482", "score": "0.554443", "text": "public function init() {\n\t\t//$this->fillFromConfig(['mode']);\n\t}", "title": "" }, { "docid": "178391c05897b40a4543f56b45b52572", "score": "0.554214", "text": "function medical_records_init(&$options, $memberInfo, &$args){\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "4df31eb3e9d82625c2696d0c569c4f1c", "score": "0.55335325", "text": "protected function initVars() {\n\n\t\t}", "title": "" }, { "docid": "8741fcb10c0abee8e22674dd527f02ee", "score": "0.5528463", "text": "public function initialize()\n {\n // this function should me overided with the set fields \n }", "title": "" }, { "docid": "433b17305c24acec536e12f7a099f424", "score": "0.55261564", "text": "public function init() {\n\t\trequire_once(dirname(__FILE__) . DS . 'utils.php');\n\t\t$this->fields = FixtureUtils::getFieldsFromSchema($this->table);\n\t\tparent::init();\n\t}", "title": "" }, { "docid": "ec56f41501c3efc01127f04cb11d20d9", "score": "0.5514405", "text": "public function init() {\n\t\t// use this method to initialize default values.\n\t}", "title": "" }, { "docid": "2d2f36b82d1cd4eab5ce541d36d0383e", "score": "0.55137986", "text": "private function setStartRecord($start){\n\t\t$this->startRecord = $start;\n\t}", "title": "" }, { "docid": "ee95393b87e6070530e3240855fda5d1", "score": "0.55125105", "text": "function SetUpStartRec() {\n\t\tglobal $planilla;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\t\t\t\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$planilla->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$planilla->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $planilla->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$planilla->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$planilla->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$planilla->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "title": "" }, { "docid": "7fc51b0a79b645de044b0e8fdbf18c6f", "score": "0.5509354", "text": "public function __construct() {\r\n $this->template = new Template();\r\n $this->settingsModel = new settingsModel();\r\n $this->dbUtil = new DBUtil();\r\n $this->combovalue = $this->settingsModel->populatetypeValues();\r\n $this->logger = Logger::getLogger(\"========= Metadata Controller =========== \");\r\n }", "title": "" }, { "docid": "90a97001692314f2457e01ca2da17ef7", "score": "0.5508196", "text": "private function initialize() {\n // Lecture de la config du batch\n $this->load_config();\n $GLOBALS['config'] = $this->config;\n // Initialisation du logger\n if (strcasecmp(\"DEBUG\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::DEBUG;\n }\n else if(strcasecmp(\"INFO\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::INFO;\n }\n else if(strcasecmp(\"WARN\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::WARN;\n }\n else if(strcasecmp(\"ERROR\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::ERROR;\n }\n else if(strcasecmp(\"FATAL\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::FATAL;\n }\n else if(strcasecmp(\"OFF\", $this->config->debug_level) == 0) {\n $debug_const = KLogger::OFF;\n }\n $this->log = new KLogger ( $this->config->log_file , $debug_const );\n $GLOBALS['logger'] = $this->log;\n $this->check_conf();\n $this->log->LogDebug(\"Init...OK\");\n\n }", "title": "" }, { "docid": "e6d6940960cb29a1eda4c1a5811a5578", "score": "0.5506674", "text": "protected function specifyParameters()\n {\n $this->addOption('account', 'a', InputOption::VALUE_OPTIONAL, '');\n $this->addOption('type', 't', InputOption::VALUE_OPTIONAL, '');\n $this->addOption('start-date', 's', InputOption::VALUE_OPTIONAL, '');\n }", "title": "" }, { "docid": "0a9edffaaf7d88a193eca8e942aefe30", "score": "0.55062103", "text": "public function __construct(&$params)\n {\n parent::__construct();\n\n // Configuration & other initializations\n }", "title": "" }, { "docid": "951739ef2d3eab3d40f54b1474cefa1b", "score": "0.55010945", "text": "public function initRuntimeVars() {\n //the server master process ID\n $this->sm->set('pid', 0);\n\n //the server starting time\n $this->sm->set('start_at', time());\n\n //the worker process count\n $this->sm->set('workers', 0);\n\n //alive connection count\n $this->sm->set('current_connections', 0);\n\n //failed connection count\n $this->sm->set('failed_connections', 0);\n\n //the totol connection count, including the alive, the failed and the closed\n $this->sm->set('total_connections', 0);\n }", "title": "" }, { "docid": "351be4ce51657980cdc415cd1a3011ec", "score": "0.55003506", "text": "public function initialise() {\r\n\r\n $this->key = NULL;\r\n $this->name = NULL;\r\n $this->secret = NULL;\r\n $this->lti_version = NULL;\r\n $this->consumer_name = NULL;\r\n $this->consumer_version = NULL;\r\n $this->consumer_guid = NULL;\r\n $this->css_path = NULL;\r\n $this->protected = FALSE;\r\n $this->enabled = FALSE;\r\n $this->enable_from = NULL;\r\n $this->enable_until = NULL;\r\n $this->last_access = NULL;\r\n $this->id_scope = LTI_Tool_Provider::ID_SCOPE_ID_ONLY;\r\n $this->defaultEmail = '';\r\n $this->created = NULL;\r\n $this->updated = NULL;\r\n\r\n }", "title": "" }, { "docid": "5ee9df8a525467749f3a1f97574dcf18", "score": "0.5482827", "text": "protected function setUp() {\r\n\t\t$this->argument = new Tx_Extracache_Domain_Model_Argument('argumentName', 'argumentType', 'argumentValue');\r\n\t}", "title": "" }, { "docid": "7e836a59c8d6ccc5378161a5eee49ceb", "score": "0.5481681", "text": "private function __construct() {\n\t\t$this->setup_props();\n\t}", "title": "" }, { "docid": "73d4ddba036ae091ee94b6d67b714d87", "score": "0.5477819", "text": "protected function initialize() {\n\n\t\t$this->option_name = self::ID . '-options';\n\t\t$this->db_option_name = self::ID . '-db-version';\n\n\t\t//Check if db updates need to be run.\n\t\t$this->check_current_db_version();\n\n\t\t$this->get_options();\n\n\t}", "title": "" }, { "docid": "8e423a812c6ef5cd6afff44a5b011e25", "score": "0.5473061", "text": "public function wprm_init() {\n\t\tdo_action( 'wprm_init' );\n\t}", "title": "" }, { "docid": "b712494571c7fb09a680a16bee5db810", "score": "0.54674494", "text": "public function init()\r\n\t{\r\n\t\t$this->dbFields = array(\r\n\t\t\t'hash'=>'',\r\n\t\t\t'duration'=>86400,\r\n\t\t\t'cachehome'=>false,\r\n\t\t\t'compressfile'=>true\r\n\t\t);\r\n\t\t\r\n\t\t// Disable default form buttons\r\n\t\t//$this->formButtons = false;\r\n\r\n\t}", "title": "" }, { "docid": "ef91b20f17cc5e4a70120e3ec8a7d20e", "score": "0.5463821", "text": "private function init(){\r\n\t\t$this->readDescriptionConfig();\r\n\t\t$this->readKeywordsConfig();\r\n\t\t$this->readMetaConfig();\r\n\t\t$this->readLinksConfig();\r\n\t\t$this->readScriptsConfig();\r\n\t}", "title": "" }, { "docid": "59af16f7c62e9c6a5da8774d1004509e", "score": "0.5463648", "text": "private function __construct() {\n $app = pradoGetApplication();\n \n // Read all defined aliases from the config\n foreach ($app->getUserParameter('alias') as $alias) {\n $this->alias[(string) $alias['name']] = (string) $alias['value'];\n }\n\n // Read all persistence settings from the settings\n foreach ($app->getUserParameter('persistence') as $persistence) {\n \n $name = (string) $persistence['name'];\n $this->persistence[$name] = array();\n \n foreach ($persistence->attributes() as $a => $b) {\n if ($a !== 'name') {\n $this->persistence[$name][(string) $a] = (string) $b;\n }\n }\n }\n \n // Read the language settings.\n $language = $app->getUserParameter('language');\n $this->stdLanguage = (string) $language->standard['lang'];\n $this->languages = explode(',', (string) $language->available['lang']);\n }", "title": "" }, { "docid": "cd7669f3cd284e1bb141ca4887d291db", "score": "0.5458322", "text": "function SetUpStartRec() {\n\t\tglobal $NhatKyGD;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$NhatKyGD->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$NhatKyGD->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $NhatKyGD->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$NhatKyGD->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$NhatKyGD->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$NhatKyGD->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "title": "" }, { "docid": "26ca76819b5a3da3abda9030aa5034bc", "score": "0.5455512", "text": "private function __initialisation(){\n //$this->_create_unique_visitor();\n \n //set variables\n $this->_ip_address = $this->input->ip_address();\n \n //ensure log folder exists\n $this->_create_log_folder();\n \n //create log filename based on date\n $this->_log_filename = sprintf($this->_log_filename_template, date('Ymd'));\n \n //create init log\n //$this->write_log('Init application is running');\n }", "title": "" }, { "docid": "15ad02d78686e087e8e4605553edf092", "score": "0.5446985", "text": "function initializer() {\n init_env();\n }", "title": "" }, { "docid": "53bccc9449f3c027d178cff2bf949a58", "score": "0.5441771", "text": "public static function preSetup();", "title": "" }, { "docid": "9f2dce9f1bb82f185153bcfd6f40d809", "score": "0.5431464", "text": "public function init($params);", "title": "" }, { "docid": "5d8653533dfb0ea7d24879c21bb88390", "score": "0.54299414", "text": "protected function setupDisplayRecords()\n\t{\n\t\t$wrk = Get(Config(\"TABLE_REC_PER_PAGE\"), \"\");\n\t\tif ($wrk != \"\") {\n\t\t\tif (is_numeric($wrk)) {\n\t\t\t\t$this->DisplayRecords = (int)$wrk;\n\t\t\t} else {\n\t\t\t\tif (SameText($wrk, \"all\")) { // Display all records\n\t\t\t\t\t$this->DisplayRecords = -1;\n\t\t\t\t} else {\n\t\t\t\t\t$this->DisplayRecords = 20; // Non-numeric, load default\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->setRecordsPerPage($this->DisplayRecords); // Save to Session\n\n\t\t\t// Reset start position\n\t\t\t$this->StartRecord = 1;\n\t\t\t$this->setStartRecordNumber($this->StartRecord);\n\t\t}\n\t}", "title": "" }, { "docid": "8d700ead9f1a025c83811a3c35124fb6", "score": "0.5427346", "text": "function SetUpStartRec() {\n\t\tglobal $nature_tbl;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$nature_tbl->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$nature_tbl->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $nature_tbl->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$nature_tbl->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$nature_tbl->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$nature_tbl->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "title": "" }, { "docid": "046278e17af7be36ee159e5f07acbba2", "score": "0.5426893", "text": "function SetUpStartRec() {\n\t\tglobal $members;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$members->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$members->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $members->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$members->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$members->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$members->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "title": "" }, { "docid": "3e2cc9f192433b4a3a0a49009c56193e", "score": "0.5426202", "text": "public function setInitParams($params)\n {\n $this->initParams=$params; \n }", "title": "" }, { "docid": "39b4fc0174c29b2016a8c101eddb5a5c", "score": "0.5423658", "text": "public function setup()\n {\n $this->setValidData(array('key' => $this->_key, \n 'value' => $this->_value));\n }", "title": "" }, { "docid": "8da7527b755ef25d5de093ad5d0aa7e8", "score": "0.5419411", "text": "public function init() {\n //TODO override and put config intialization code here\n }", "title": "" }, { "docid": "5e9ee18df9ce69c09c0e247686df3a2f", "score": "0.54164976", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $data_source;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($data_source)) {\n $this->data_source = $data_source;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "66d0394efb21b2bbe8416a2ade27a465", "score": "0.541572", "text": "protected function initialize() {}", "title": "" }, { "docid": "66d0394efb21b2bbe8416a2ade27a465", "score": "0.5415669", "text": "protected function initialize() {}", "title": "" }, { "docid": "66d0394efb21b2bbe8416a2ade27a465", "score": "0.5415669", "text": "protected function initialize() {}", "title": "" }, { "docid": "da22a43824c6f42b62c79d0639945409", "score": "0.5415305", "text": "public function __construct()\r\n\t{\r\n\t\t$this->setEnvironmentId();\r\n\t\t$this->detectEnvType();\r\n\t}", "title": "" }, { "docid": "6106e7262d315ba154cbcaa4ae60de46", "score": "0.54146886", "text": "function SetUpStartRec() {\n\t\tglobal $daftar_pelanggan;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$daftar_pelanggan->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$daftar_pelanggan->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $daftar_pelanggan->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$daftar_pelanggan->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$daftar_pelanggan->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$daftar_pelanggan->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "title": "" }, { "docid": "cccb8afbca7d57da7e87705d29882d79", "score": "0.540349", "text": "public function __construct($record)\n {\n $this->record = $record;\n }", "title": "" }, { "docid": "dd580a3573d8d480fb801d03c40e923f", "score": "0.54016346", "text": "protected function defineSettings(){ \n $this->settings(array());\n }", "title": "" }, { "docid": "bcd8ac5b31a0b27f732df383a01e79e1", "score": "0.53936744", "text": "public function onBeforeStart()\n\t{\n\t\t// Load the tables that will contain the data\n\t\t$this->loadCustomFields();\n\t}", "title": "" }, { "docid": "4127d044d88acd5f9d64a7e0c90bd0eb", "score": "0.53922176", "text": "protected function init()\n {\n parent::init();\n if(empty($_SERVER['argv']))\n die('This script must be run from the command line.');\n $this->_args = $this->_remainingArgs = $_SERVER['argv'];\n }", "title": "" }, { "docid": "d12f92b7b5300a1378484e2fe866dabb", "score": "0.5392104", "text": "public function setupData();", "title": "" }, { "docid": "bdde82ec1923a32063531f42bb95131c", "score": "0.53912693", "text": "public function init()\n {\n $this->_helper->db->setDefaultModelName('Reports_Report');\n $this->_jobDispatcher = Zend_Registry::get('bootstrap')->getResource('jobs');\n }", "title": "" }, { "docid": "d6c8fec038077151bc7d238507016c51", "score": "0.53865", "text": "function setup() {\r\n // Prepare the class variables\r\n $this->prepare_vars();\r\n }", "title": "" }, { "docid": "f28b119cf8b790f339a1703f950808e3", "score": "0.538283", "text": "public function __construct()\n {\n self::_dbSettings();\n self::_svcSetting();\n if ($_REQUEST['node'] == 'schema') {\n self::_initSetting();\n }\n }", "title": "" }, { "docid": "909c379d817ddd498e8f9b105e203b7a", "score": "0.53827184", "text": "public static function init()\n\t{\n\t\tself::initSettings();\n\t\tself::setupSettings();\n\t\tself::validateSettings();\n\t}", "title": "" }, { "docid": "c7b19c9490923870e6f6edcb53de8265", "score": "0.53752995", "text": "public function init()\n {\n\n // initialize the prepared statements\n $this->eavEntityTypeStmt =\n $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ENTITY_TYPES));\n $this->eavEntityTypeByEntityTypeACodeStmt =\n $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::EAV_ENTITY_TYPE_BY_ENTITY_TYPE_CODE));\n }", "title": "" }, { "docid": "6feff0b93fc0ff6ea28ea0a0add328ea", "score": "0.53733075", "text": "public function initialize()\n {\n $this->setSchema(\"time_tracking\");\n $this->setSource(\"works\");\n }", "title": "" }, { "docid": "263f4f4f80023c8a5f76b660b60cda3d", "score": "0.5372534", "text": "private function init() {\n $this->initCronIntervalDescriptions();\n $this->initLastSaves();\n $this->initTotals();\n $this->initLastCronRunInfo();\n $this->initNextCronRunInfo();\n $this->initCurrentlyBeingDone();\n $this->initActiveSites();\n }", "title": "" }, { "docid": "51936e9cc2f0e7667079fcc55d738662", "score": "0.53614944", "text": "private function defaultInit()\n {\n // 载入设置\n $settings = require _ROOT . '/app/settings.php';\n //\n // 启动设置\n $container = new \\Slim\\Container($settings);\n $settings['logger']();\n $this->_beginTime = microtime(true);\n $this->config = $container->get('config');\n $this->redis = $container->get('redis');\n }", "title": "" }, { "docid": "6b4109dff6e8c40a7a75c9dce6d40e6d", "score": "0.5360806", "text": "protected function init()\n {\n $this->P = GeneralUtility::_GP('P');\n // Used for the return URL to FormEngine so that we can close the window.\n $this->doClose = GeneralUtility::_GP('doClose');\n }", "title": "" }, { "docid": "227dd70ed61d4e9f89f9a9880a2a67ff", "score": "0.5359243", "text": "public function initializeArguments() {}", "title": "" }, { "docid": "227dd70ed61d4e9f89f9a9880a2a67ff", "score": "0.5359243", "text": "public function initializeArguments() {}", "title": "" }, { "docid": "227dd70ed61d4e9f89f9a9880a2a67ff", "score": "0.5359243", "text": "public function initializeArguments() {}", "title": "" }, { "docid": "227dd70ed61d4e9f89f9a9880a2a67ff", "score": "0.5359243", "text": "public function initializeArguments() {}", "title": "" }, { "docid": "e05423d47316bf4841875b746602fe76", "score": "0.5359083", "text": "protected function initValues(){\n\t\t//set job type by default\n\t\t$this->setJobType(JobType::TYPE_CONFORM);\n\n\t\t$this->setOutputFileType($this->getDataProcessor()->getOutputFileFormat());\n\t\t$this->setService($this->getDataProcessor()->getOurService());\n\t\t$this->setQc($this->getDataProcessor()->getQC());\n\t\t$this->setDueDate($this->getDataProcessor()->getDueDate());\n\t\t$this->setIsForced($this->getDataProcessor()->getIsForced());\n\t\t$this->setJobKey($this->getDataProcessor()->getJobKey());\n\t\t$this->setOutputFrameRate($this->getDataProcessor()->getOurServiceFrm());\n\t\t$this->setOutputSupportedFile($this->getDataProcessor()->getProjectSupportedFile());\n\t\t$this->setOutputFileName($this->getDataProcessor()->getJobsValuesByColumnName(JobExcelSource::COLUMN_VENDOR_FILE_NAME));\n\t\t$this->setOutputAspect($this->getDataProcessor()->getAspect());\n\t\t$this->setOutputAspectRatio($this->getDataProcessor()->getAspectRatio());\n\t\t$this->setOutputPositioningType($this->getDataProcessor()->getPositioningSettingsType());\n\t\t$this->setDeliveryFormat($this->getDataProcessor()->getDeliveryFormat());\n\t\t$this->setAssetVersionId($this->getDataProcessor()->getJobAssetVersionId());\n\n\t\t$prmLanguage = $this->getDataProcessor()->getServiceLanguageInExcel();\n\n\t\t$languageId = $this->getDataProcessor()->getLanguage($prmLanguage)->id;\n\n\t\t//by default set the same source and target language\n\t\t$this->setSourceLanguage($languageId);\n\t\t$this->setTargetLanguage($languageId);\n\t}", "title": "" }, { "docid": "b0f2b84be827c1a168401364148d3455", "score": "0.53588545", "text": "public function init() {\n\n if (!isset($_SESSION['name'])) {\n $this->_redirect('user/login');\n }\n\n $this->params = $this->generateParams();\n $this->view->params = $this->generateParams();\n }", "title": "" }, { "docid": "0da3d1b24870386e47539754deaf6ae1", "score": "0.5355563", "text": "function setUp()\n\t{\n\t\tglobal $config;\n\t\tDb::init($config);\n\t\t$this->db = Db::get_instance();\n\t\t$this->sql = SqlObject::get_instance();\n\t}", "title": "" }, { "docid": "ca4a424eb3223ad915c9b8978ab6c140", "score": "0.5354851", "text": "public function initialize($params)\n\t{\n\t}", "title": "" }, { "docid": "1538c5df9d7fc51684e784d71e2631ba", "score": "0.5354326", "text": "protected function setExceptionParams()\n {\n org_glizy_Exception::$applicationName = __Config::get('APP_NAME');\n org_glizy_Exception::$debugMode = __Config::get('DEBUG')==true;\n }", "title": "" }, { "docid": "9484f454a649479970613c05806f5c11", "score": "0.53529376", "text": "function preProcess() {\n $this->_vid = CRM_Utils_Request::retrieve('vid', 'Positive', $this, TRUE);\n $this->_batchInfo['item_count'] = 10;\n\n $resources = CRM_Core_Resources::singleton();\n $resources->addScriptFile('org.civicrm.volunteer', 'templates/CRM/Volunteer/Form/Log.js');\n\n $params = array('project_id' => $this->_vid);\n $this->_volunteerData = CRM_Volunteer_BAO_Assignment::retrieve($params);\n\n\n $projects = CRM_Volunteer_BAO_Project::retrieve(array('id' => $this->_vid));\n $project = $projects[$this->_vid];\n\n $this->_entityID = $project->entity_id;\n $this->_entityTable = $project->entity_table;\n $this->_title = $project->title;\n\n }", "title": "" }, { "docid": "1f850f5177f87ea1041fee27ee903ff7", "score": "0.5347741", "text": "public function initParams()\n {\n foreach ($this->cmds as $key => $parseValues) {\n $this->params[$key] = array();\n }\n }", "title": "" } ]
fdc110bb7bee326366009d6b5fb22691
Change 'Posts' to 'Recipes' in WP Admin nav
[ { "docid": "214f6bf211c28c86c3e33a4864f665ea", "score": "0.69554454", "text": "function change_admin_post_label() {\n\tglobal $menu;\n\tglobal $submenu;\n\t$menu[5][0] = 'Recipes';\n\t$submenu['edit.php'][5][0] = 'Recipes';\n\t$submenu['edit.php'][10][0] = 'Add Recipe';\n\t$submenu['edit.php'][16][0] = 'Tags';\n\techo '';\n}", "title": "" } ]
[ { "docid": "2dff9048b1c0f04c9368c412cf3610c7", "score": "0.6695356", "text": "function wooadmin_rename_post_menu() {\n\n global $menu;\n\n global $submenu;\n\n $menu[5][0] = 'Blog'; // Change Users to Customers main id\n\n $submenu['edit.php'][5][0] = 'Posts';\n\n $submenu['edit.php'][10][0] = 'Add a Customer';\n\n $submenu['edit.php'][15][0] = 'Blog Categories';\n\n $submenu['edit.php'][16][0] = 'Blog Tags';\n\n}", "title": "" }, { "docid": "d09aaed545a8a938101559adfaf6f4f3", "score": "0.63956827", "text": "function sr_admin_actions() { \n\tadd_options_page(\"Standards Reader\", \"Standards Reader\", \"edit_published_posts\", \"sr_options\", \"sr_admin\");\n}", "title": "" }, { "docid": "b305c223ea5d36671047f2a35d44cd2b", "score": "0.6360222", "text": "function revcon_change_post_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'Artists';\n $submenu['edit.php'][5][0] = 'Artists';\n $submenu['edit.php'][10][0] = 'Add Artist';\n $submenu['edit.php'][16][0] = 'Artist Tags';\n}", "title": "" }, { "docid": "082545f3fdf7647c0afb9136e5ccba30", "score": "0.62901765", "text": "public static function simple_recipes_create_menu() {\n\t\t\tadd_options_page( 'Recipe Settings', 'Recipes', 'administrator', 'simple_recipes' , __CLASS__ . '::simple_recipes_settings_page' );\n\t\n\t\t\t//call register settings function\n\t\t\tadd_action( 'admin_init', __CLASS__ . '::register_mysettings' );\n\t\n\t\t}", "title": "" }, { "docid": "33f8a1b47af8e1a36a0bb07aa18e7322", "score": "0.62324524", "text": "function admin_bar_change_type_label() {\n global $wp_admin_bar;\n global $post;\n\n // Removes Options that aren't needed anymore\n $wp_admin_bar->remove_menu('customize');\n $wp_admin_bar->remove_menu('updates');\n $wp_admin_bar->remove_menu('comments');\n\n // Remove WordPress Menu Items.\n $wp_admin_bar->remove_menu('wp-logo');\n $wp_admin_bar->remove_menu('wp-logo-external');\n $wp_admin_bar->remove_menu('about');\n $wp_admin_bar->remove_menu('wporg');\n $wp_admin_bar->remove_menu('documentation');\n $wp_admin_bar->remove_menu('support-forums');\n $wp_admin_bar->remove_menu('feedback');\n\n if (!isset($post->post_type)) {\n return;\n }\n\n $type = str_replace('-', ' ', $post->post_type);\n $change_edit = $wp_admin_bar->get_node('edit');\n $change_view = $wp_admin_bar->get_node('view');\n if ($change_edit !== NULL) {\n $change_edit->title = __('Edit ' . ucwords($type), 'bramble');\n $wp_admin_bar->add_node($change_edit);\n }\n elseif ($change_view !== NULL) {\n $change_view->title = __('View ' . ucwords($type), 'bramble');\n $wp_admin_bar->add_node($change_view);\n }\n\n}", "title": "" }, { "docid": "54d65e25d563cee4b5e974aba17b974d", "score": "0.6230012", "text": "function changeDefaultPostLabel() {\n\t\tglobal $menu;\n\t\tglobal $submenu;\n\t\t$menu[5][0] = 'Stories';\n\t\t$submenu['edit.php'][5][0] = 'Stories';\n\t\t$submenu['edit.php'][10][0] = 'Add Stories';\n\t\t$submenu['edit.php'][16][0] = 'Stories Tags';\n\t}", "title": "" }, { "docid": "74f150cd0bd59c3ebd20851912e76597", "score": "0.62144774", "text": "public function admin_menu()\n\t{\n\t\tadd_theme_page( 'Theme Git Info', 'Theme Git Info', 'edit_posts', 'go-git', array( $this, 'theme_page' ) );\n\t}", "title": "" }, { "docid": "e26edfc6c00be5f527422d500aff5f06", "score": "0.61331296", "text": "function tutorials_submenu_page(){\n\tadd_submenu_page(\n\t\t'edit.php?post_type=tutorials',\n\t\t'Order tutorials',\n\t\t'Order Tutorials',\n\t\t'order_posts',\n\t\t'order-posts-page',\n\t\t'post_order_submenu_page' );\n}", "title": "" }, { "docid": "cad36139c8858b8a01f4c049a839d29e", "score": "0.6130194", "text": "function posts_submenu_page(){\n\tadd_submenu_page(\n\t\t'edit.php',\n\t\t'Order posts',\n\t\t'Order Posts',\n\t\t'order_posts',\n\t\t'order-posts-page',\n\t\t'post_order_submenu_page' );\n}", "title": "" }, { "docid": "f766c3e361b906a2cf05aa8c0838671d", "score": "0.61209524", "text": "function change_post_menu_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'Articles';\n $submenu['edit.php'][5][0] = 'Articles';\n $submenu['edit.php'][10][0] = 'Add Article';\n echo '';\n}", "title": "" }, { "docid": "b6bcfac0c15ee5bdc1a4e224a5db09f3", "score": "0.6120769", "text": "function change_post_menu_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = \"Blog\";\n $submenu['edit.php'][5][0] = \"Blog\";\n // $submenu['edit.php'][10][0] = 'Add Contacts';\n // $submenu['edit.php'][15][0] = 'Status'; // Change name for categories\n // $submenu['edit.php'][16][0] = 'Labels'; // Change name for tags\n echo '';\n}", "title": "" }, { "docid": "548bf1174a982307375b6317e186c62f", "score": "0.60868204", "text": "public function add_menu() {\n\t\tadd_submenu_page(\n\t\t\t'edit.php?post_type=blicki',\n\t\t\t__( 'Suggestion Review', 'blicki' ),\n\t\t\t__( 'Suggestion Review', 'blicki' ),\n\t\t\t'edit_others_posts',\n\t\t\t'blicki-show-diff',\n\t\t\tarray( $this, 'admin_suggestion_viewer' )\n\t\t);\n\t\tremove_submenu_page( 'edit.php?post_type=blicki', 'blicki-show-diff' );\n\t}", "title": "" }, { "docid": "337ca46ad33a853b49f79346e9435add", "score": "0.60644424", "text": "public function custom_admin_menu() {\n\t\tadd_submenu_page(\n\t\t\tAdmin::PARENT_MENU_SLUG,\n\t\t\t_x( 'Playlists', '', 'wpp-youtube' ),\n\t\t\t_x( 'Playlists', '', 'wpp-youtube' ),\n\t\t\t'manage_options',\n\t\t\t'edit-tags.php?taxonomy=' . self::TAXONOMY,\n\t\t\tnull\n\t\t);\n\t}", "title": "" }, { "docid": "c3ac95b72cad093e65010f222c066912", "score": "0.6043209", "text": "function admin_menu_alters() {\n global $submenu;\n\n // Our content parent menu item.\n add_menu_page(\n 'Content',\n 'Content',\n 'read',\n 'content',\n '',\n 'dashicons-admin-page',\n 4\n );\n\n // Taxonomy parent menu and children.\n add_menu_page(\n 'Taxonomy',\n 'Taxonomy',\n 'read',\n 'taxonomy',\n '',\n 'dashicons-tag',\n 5\n );\n add_submenu_page('taxonomy', 'Categories', 'Categories', 'edit_posts', 'edit-tags.php?taxonomy=category' );\n add_submenu_page('taxonomy', 'Tags', 'Tags', 'edit_posts', 'edit-tags.php?taxonomy=post_tag' );\n\n // Removes the first Taxonomy menu item in the sub menu.\n unset($submenu[\"taxonomy\"][0][1]);\n}", "title": "" }, { "docid": "626612b84e1591539c7ef657dad97318", "score": "0.6037829", "text": "function change_post_menu_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'News';\n $submenu['edit.php'][5][0] = 'News';\n $submenu['edit.php'][10][0] = 'Add News Item';\n $submenu['edit.php'][15][0] = 'News Category'; // Change name for categories\n //$submenu['edit.php'][16][0] = 'Labels'; // Change name for tags\n echo '';\n}", "title": "" }, { "docid": "da68e6584bd488cbc18d38784fc3b293", "score": "0.60098386", "text": "function glass_change_post_menu_label() {\n\tglobal $menu;\n\tglobal $submenu;\n\t$menu[5][0] = 'News';\n\t$submenu['edit.php'][5][0] = 'News';\n\t$submenu['edit.php'][10][0] = 'Add News';\n\t$submenu['edit.php'][16][0] = 'News Tags';\n\techo '';\n}", "title": "" }, { "docid": "93403394a8b4b63e5414b6b5d5df03d5", "score": "0.5997863", "text": "function mytheme_admin_bar_render() {\n global $wp_admin_bar;\n $wp_admin_bar->remove_menu('comments');\n $wp_admin_bar->remove_menu('new-post');\n}", "title": "" }, { "docid": "127e22e216cc5efde1f78d947985b755", "score": "0.5997738", "text": "function revcon_change_post_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'Aktualności';\n // $submenu['edit.php'][5][0] = 'Blog';\n // $submenu['edit.php'][10][0] = 'Add News';\n // $submenu['edit.php'][16][0] = 'News Tags';\n}", "title": "" }, { "docid": "bfcd32a506296b0d54856a179f13a8ef", "score": "0.5997733", "text": "function wooadmin_rename_product_menu() {\n\n global $menu;\n\n global $submenu;\n\n $menu[20][0] = 'Catalogue'; // Change Users to Customers main id\n\n $submenu['edit.php?post_type=product'][5][0] = 'Posts';\n\n $submenu['edit.php?post_type=product'][10][0] = 'Add a Customer';\n\n $submenu['edit.php?post_type=product'][15][0] = 'Blog Categories';\n\n $submenu['edit.php?post_type=product'][16][0] = 'Blog Tags';\n\n}", "title": "" }, { "docid": "a1250dba729481c3d0ae41ba6a3d49d6", "score": "0.5995812", "text": "function change_post_menu_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'News';\n $submenu['edit.php'][5][0] = 'News';\n $submenu['edit.php'][10][0] = 'Add News Item';\n //$submenu['edit.php'][15][0] = 'Status'; // Change name for categories\n //$submenu['edit.php'][16][0] = 'Labels'; // Change name for tags\n echo '';\n}", "title": "" }, { "docid": "284d346e17f952610b82c9c8a8e73aa7", "score": "0.59865457", "text": "function types_rename_build_in_post_types_menu() {\n\n $custom_types = get_option( WPCF_OPTION_NAME_CUSTOM_TYPES, array() );\n\n if ( !empty( $custom_types ) ) {\n global $menu, $submenu;\n\n foreach( $custom_types as $post_type => $data ) {\n if(\n isset( $data['_builtin'] )\n && $data['_builtin']\n && isset( $data['slug'] )\n && isset( $data['labels']['name'] )\n ) {\n // post\n if( $data['slug'] == 'post' ) {\n $post_edit_page = 'edit.php';\n $post_new_page = 'post-new.php';\n // page\n } elseif( $data['slug'] == 'page' ) {\n $post_edit_page = 'edit.php?post_type=page';\n $post_new_page = 'post-new.php?post_type=page';\n // attachment (Media)\n } elseif( $data['slug'] == 'attachment' ) {\n $post_edit_page = 'upload.php';\n $post_new_page = 'media-new.php';\n // abort\n } else {\n continue;\n }\n\n $post_menu_key = false;\n\n // find menu key\n $post_menu_key = types_get_array_key_search_in_sub( $menu, $post_edit_page );\n\n if( !$post_menu_key )\n continue;\n\n // change menu name\n $menu[$post_menu_key][0] = $data['labels']['name'];\n\n\n if( isset( $submenu[$post_edit_page] ) && $post_edit_page != 'upload.php' ) {\n $submenu_overview_key = $submenu_new_key = false;\n\n // post/page rename overview\n $submenu_overview_key = types_get_array_key_search_in_sub( $submenu[$post_edit_page], $post_edit_page );\n\n if( $submenu_overview_key )\n $submenu[$post_edit_page][$submenu_overview_key][0] = $data['labels']['name'];\n\n // post/page rename add new\n $submenu_new_key = types_get_array_key_search_in_sub( $submenu[$post_edit_page], $post_new_page );\n\n if( $submenu_new_key )\n $submenu[$post_edit_page][$submenu_new_key][0] = isset( $data['labels']['singular_name'] )\n ? 'Add ' . $data['labels']['singular_name']\n : 'Add ' . $data['labels']['name'];\n\n }\n }\n }\n }\n}", "title": "" }, { "docid": "9f3f26248f79945fbded8d4814a96ed7", "score": "0.5978879", "text": "function fes_remove_posts_admin_bar() {\n global $wp_admin_bar;\n $wp_admin_bar->remove_menu('new-post');\n}", "title": "" }, { "docid": "8c256a2a8fea712df83d9ef1111086c8", "score": "0.5947255", "text": "public static function modify_admin_menu_links() {\n\t\t$post_type = Registrations::get_post_type();\n\t\t$path = 'edit.php?post_type=' . $post_type;\n\n\t\t// Remove 'Add New' link.\n\t\tremove_submenu_page( $path, 'post-new.php?post_type=' . $post_type );\n\n\t\t// Add 'Queue' link.\n\t\t$post_type_obj = get_post_type_object( $post_type );\n\t\tadd_submenu_page(\n\t\t\t$path,\n\t\t\t__( 'Photos In Moderation', 'wporg-photos' ),\n\t\t\t__( 'Queue', 'wporg-photos' ),\n\t\t\t$post_type_obj->cap->edit_posts,\n\t\t\tesc_url( add_query_arg( [ 'post_status' => 'pending' ], $path ) ),\n\t\t\t'',\n\t\t\t1\n\t\t);\n\t}", "title": "" }, { "docid": "95631adf37006f8fcf1f998f4a1fa645", "score": "0.59471047", "text": "function admin_menu() {\n\t\t// The designation of add_MANAGEMENT_page causes the menu item to be listed under the Tools menu!\n\t\tadd_management_page('Revitalize Orders Output', 'Revitalize Orders', 'edit_posts', basename(__FILE__), array(&$this, 'page_handler'));\n\t}", "title": "" }, { "docid": "bda526bd7a0d22763033806280e808d4", "score": "0.592657", "text": "public static function admin()\n {\n HRHarvardTheme::get_template_part( 'admin', 'nav-widget' );\n }", "title": "" }, { "docid": "edd5128e23e2dccbd0ea2e65e05c619c", "score": "0.592554", "text": "function spsn_admin_tab() {\n\n add_menu_page('Share blog post with social network', 'Share blog post with social network', 'manage_options', __FILE__, 'spsn_admin_page');\n}", "title": "" }, { "docid": "f4ea265dcf9ad57534ffc00ff00c7b89", "score": "0.58957493", "text": "function maker_4ym_menu_posts_label() {\n global $menu;\n global $submenu;\n\n $menu[5][0] = 'Blog 4YM';\n $submenu['edit.php'][5][0] = 'Artículos del Blog';\n $submenu['edit.php'][10][0] = 'Agregar un Nuevo Artículo'; \n}", "title": "" }, { "docid": "a2ac5d26b77357a8294f9d5dcbd8a53c", "score": "0.5889045", "text": "function revcon_change_post_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'Videos';\n $submenu['edit.php'][5][0] = 'All Videos';\n $submenu['edit.php'][10][0] = 'Add Video';\n $submenu['edit.php'][16][0] = 'Video Tags';\n echo '';\n}", "title": "" }, { "docid": "3a8b22803dcd0a1fa66fad8540454405", "score": "0.58560777", "text": "function ptif_admin_menu() {\n\tadd_options_page('Post Thumbnails in Feed', 'Post Thumbnails in Feed', 'manage_options', 'ptif-post-thumbnails-in-feed', 'ptif_admin_page');\n}", "title": "" }, { "docid": "ffc8f22027c4ebd2c227a23fa7375362", "score": "0.5855437", "text": "function gallery() {\n $labels = array(\n 'name' => _x( 'galleries', 'Post Type General Name', 'sage' ),\n 'singular_name' => _x( 'gallery', 'Post Type Singular Name', 'sage' ),\n 'menu_name' => __( 'Галлерея', 'sage' ),\n 'name_admin_bar' => __( 'Галлереи', 'sage' ),\n 'archives' => __( 'Архив', 'sage' ),\n 'attributes' => __( 'Атрибуты', 'sage' ),\n 'parent_item_colon' => __( 'Родительская галерея:', 'sage' ),\n 'all_items' => __( 'Все галлереи', 'sage' ),\n 'add_new_item' => __( 'Добавить новую галерею', 'sage' ),\n 'add_new' => __( 'Добавить новую галерею', 'sage' ),\n 'new_item' => __( 'Новая галерея', 'sage' ),\n 'edit_item' => __( 'Редактировать галерею', 'sage' ),\n 'update_item' => __( 'Обновить галерею', 'sage' ),\n 'view_item' => __( 'Посмотреть галерею', 'sage' ),\n 'view_items' => __( 'Посмотреть галереи', 'sage' ),\n 'search_items' => __( 'Поиск галереи', 'sage' ),\n 'not_found' => __( 'Галерея не найдена', 'sage' ),\n 'not_found_in_trash' => __( 'Not found in Trash', 'sage' ),\n 'featured_image' => __( 'Featured Image', 'sage' ),\n 'set_featured_image' => __( 'Set featured image', 'sage' ),\n 'remove_featured_image' => __( 'Remove featured image', 'sage' ),\n 'use_featured_image' => __( 'Use as featured image', 'sage' ),\n 'insert_into_item' => __( 'Insert into Gallery', 'sage' ),\n 'uploaded_to_this_item' => __( 'Uploaded to this Gallery', 'sage' ),\n 'items_list' => __( 'Galleries list', 'sage' ),\n 'items_list_navigation' => __( 'Galleries list navigation', 'sage' ),\n 'filter_items_list' => __( 'Filter Galleries list', 'sage' ),\n );\n $args = array(\n 'label' => __( 'gallery', 'sage' ),\n 'description' => __( 'gallery pages', 'sage' ),\n 'labels' => $labels,\n 'supports' => array( 'editor' ),\n 'taxonomies' => array( 'category', 'post_tag' ),\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n 'menu_icon' => 'dashicons-format-gallery',\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'capability_type' => 'page',\n );\n register_post_type( 'gallery', $args );\n\n }", "title": "" }, { "docid": "b9b9bf89d41e6013b42f806686f8c950", "score": "0.5849812", "text": "function admin_bar_item(WP_Admin_Bar $admin_bar)\n{\n if (!current_user_can('manage_options')) {\n return;\n }\n\n $args = array(\n 'id' => 'cia_menu',\n 'title' => __('<span class=\"cia-logo\"> <img src=\"' . get_template_directory_uri().'/core/assets/img/criacao-de-sites.png\"></span>'),\n 'href' => 'http://www.ciawebsites.com.br'\n );\n $admin_bar->add_node($args);\n\n $args = array(\n 'id' => 'cia_menu_criacao',\n 'parent' => 'cia_menu',\n 'title' => __('Criação de Sites'),\n 'href' => 'http://www.ciawebsites.com.br/solucoes/criacao-de-sites/'\n );\n $admin_bar->add_node($args);\n\n $args = array(\n 'id' => 'cia_menu_otimizacao',\n 'parent' => 'cia_menu',\n 'title' => __('Otimização de Sites'),\n 'href' => 'http://www.ciawebsites.com.br/solucoes/otimizacao-de-sites-seo/'\n );\n $admin_bar->add_node($args);\n\n $args = array(\n 'id' => 'cia_menu_lojas',\n 'parent' => 'cia_menu',\n 'title' => __('Lojas Virtuais'),\n 'href' => 'http://www.ciawebsites.com.br/solucoes/criacao-de-lojas-virtuais/'\n );\n $admin_bar->add_node($args);\n\n}", "title": "" }, { "docid": "536413a849e39f49949a9ee276fe5c0b", "score": "0.5849037", "text": "public function activateCustomPostTypeFix()\n {\n add_filter('wp_nav_menu_objects', array($this, 'fixMenuItemsForCustomPostTypes'), 5, 1);\n }", "title": "" }, { "docid": "72da5070a0d28ab766760b1d7bff112d", "score": "0.5847937", "text": "function adjust_the_wp_menu() {\r\n\tremove_submenu_page(\r\n\t\t'edit.php',\r\n\t\t'edit-tags.php?taxonomy=destinationinterest'\r\n\t);\r\n\tremove_submenu_page(\r\n\t\t'edit.php',\r\n\t\t'edit-tags.php?taxonomy=destinationseason'\r\n\t);\r\n\tremove_submenu_page(\r\n\t\t'edit.php?post_type=hotel',\r\n\t\t'edit-tags.php?taxonomy=destinations&amp;post_type=hotel'\r\n\t);\r\n\tremove_submenu_page(\r\n\t\t'edit.php?post_type=restaurant',\r\n\t\t'edit-tags.php?taxonomy=destinations&amp;post_type=restaurant'\r\n\t);\r\n\tremove_submenu_page(\r\n\t\t'edit.php?post_type=shop',\r\n\t\t'edit-tags.php?taxonomy=destinations&amp;post_type=shop'\r\n\t);\r\n\tremove_submenu_page(\r\n\t\t'edit.php?post_type=activity',\r\n\t\t'edit-tags.php?taxonomy=destinations&amp;post_type=activity'\r\n\t);\r\n\tremove_submenu_page(\r\n\t\t'edit.php?post_type=itinerary',\r\n\t\t'edit-tags.php?taxonomy=destinations&amp;post_type=itinerary'\r\n\t);\r\n\tremove_submenu_page(\r\n\t\t'edit.php?post_type=library',\r\n\t\t'edit-tags.php?taxonomy=destinations&amp;post_type=library'\r\n\t);\r\n\tremove_submenu_page(\r\n\t\t'edit.php?post_type=article',\r\n\t\t'edit-tags.php?taxonomy=destinations&amp;post_type=article'\r\n\t);\r\n\tremove_submenu_page(\r\n\t\t'edit.php?post_type=offer',\r\n\t\t'edit-tags.php?taxonomy=destinations&amp;post_type=offer'\r\n\t);\r\n\tremove_submenu_page(\r\n\t\t'edit.php?post_type=insidertrip',\r\n\t\t'edit-tags.php?taxonomy=destinations&amp;post_type=insidertrip'\r\n\t);\r\n\tremove_submenu_page(\r\n\t\t'upload.php',\r\n\t\t'edit-tags.php?taxonomy=destinations&amp;post_type=attachment'\r\n\t);\r\n\tadd_menu_page(__('Destinations','indagare'), __('Destinations','indagare'), 'edit_posts', 'edit-tags.php?taxonomy=destinations', '', '', '37.5');\r\n\r\n\t\tadd_submenu_page( 'edit-tags.php?taxonomy=destinations', __('Destinations','indagare'), __('Destinations','indagare'), 'manage_options', 'edit-tags.php?taxonomy=destinations');\r\n\t\tadd_submenu_page( 'edit-tags.php?taxonomy=destinations', __('Destination Interests','indagare'), __('Destination Interests','indagare'), 'manage_options', 'edit-tags.php?taxonomy=destinationinterest');\r\n\t\tadd_submenu_page( 'edit-tags.php?taxonomy=destinations', __('Destination Seasons','indagare'), __('Destination Seasons','indagare'), 'manage_options', 'edit-tags.php?taxonomy=destinationseason');\r\n\r\n//\tadd_submenu_page('edit-tags.php?taxonomy=destinations',__('Destination Interest','indagare'), __('Destination Interest','indagare'), 'edit-tags.php?taxonomy=destinationinterest', '', '', '36.51');\r\n//\tadd_submenu_page('edit-tags.php?taxonomy=destinations',__('Destination Season','indagare'), __('Destination Season','indagare'), 'edit-tags.php?taxonomy=destinationseason', '', '', '36.52');\r\n\r\n}", "title": "" }, { "docid": "d19624bae156f498ff9bbe9636702bfc", "score": "0.5843629", "text": "function euforia_multimedia() {\n\n $labels = array(\n 'name' => _x( 'Euforia Multimedia', 'Post Type General Name', 'euforia' ),\n 'singular_name' => _x( 'Euforia Multimedia', 'Post Type Singular Name', 'euforia' ),\n 'menu_name' => __( 'Euforia Multimedia', 'euforia' ),\n 'name_admin_bar' => __( 'Euforia Multimedia', 'euforia' ),\n 'archives' => __( 'Euforia Multimedia historico', 'euforia' ),\n 'attributes' => __( 'Euforia Multimedia atributos', 'euforia' ),\n 'parent_item_colon' => __( 'Euforia Multimedia padre:', 'euforia' ),\n 'all_items' => __( 'Euforia Multimedia todos', 'euforia' ),\n 'add_new_item' => __( 'agregar Nuevo Euforia Multimedia', 'euforia' ),\n 'add_new' => __( 'Agregar Euforia Multimedia', 'euforia' ),\n 'new_item' => __( 'Nuevo Euforia Multimedia', 'euforia' ),\n 'edit_item' => __( 'Editar Euforia Multimedia', 'euforia' ),\n 'update_item' => __( 'Actualizar Euforia Multimedia', 'euforia' ),\n 'view_item' => __( 'Ver Euforia Multimedia', 'euforia' ),\n 'view_items' => __( 'Ver todos Euforia Multimedia', 'euforia' ),\n 'search_items' => __( 'Buscar Euforia Multimedia', 'euforia' ),\n 'not_found' => __( 'No se encuentra', 'euforia' ),\n 'not_found_in_trash' => __( 'No se encuentra en papelera', 'euforia' ),\n 'featured_image' => __( 'Imagen destacada', 'euforia' ),\n 'set_featured_image' => __( 'Colocar imagen destacada', 'euforia' ),\n 'remove_featured_image' => __( 'Remover imagen destacada', 'euforia' ),\n 'use_featured_image' => __( 'Use como imagen destacada', 'euforia' ),\n 'insert_into_item' => __( 'Insertar en Euforia Multimedia', 'euforia' ),\n 'uploaded_to_this_item' => __( 'Subido a Euforia Multimedia', 'euforia' ),\n 'items_list' => __( 'Euforia Multimedia Listado', 'euforia' ),\n 'items_list_navigation' => __( 'Euforia Multimedia listado navegacion', 'euforia' ),\n 'filter_items_list' => __( 'Filtro Euforia Multimedia lista', 'euforia' ),\n );\n $rewrite = array(\n 'slug' => 'euforia-multimedia',\n 'with_front' => true,\n 'pages' => true,\n 'feeds' => true,\n );\n $args = array(\n 'label' => __( 'Euforia Multimedia', 'euforia' ),\n 'description' => __( 'Sección multimedia del sitio para Euforia', 'euforia' ),\n 'labels' => $labels,\n 'supports' => array( 'title', 'excerpt', 'thumbnail', 'post-formats' ),\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n 'menu_icon' => get_template_directory_uri() . '/images/favicon-16x16.png',\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => true,\n 'publicly_queryable' => true,\n 'query_var' => 'multimedia',\n 'rewrite' => $rewrite,\n 'capability_type' => 'post',\n );\n register_post_type( 'euforia_mm', $args );\n\n}", "title": "" }, { "docid": "9e12aaebfe3c460889b0eb50fefecfe9", "score": "0.5829378", "text": "function reorder_admin_menu( $__return_true ) {\n return array(\n\t\t'index.php', // Dashboard\n\t\t'edit.php?post_type=camps', // Camps\n\t\t'edit.php?post_type=itineraries', // Itineraries\n\t\t'edit.php?post_type=information', // Information\n\t\t'separator1', // --Space--\n\t\t'edit.php', // Posts\n\t\t'edit.php?post_type=page', // Pages\n\t\t'upload.php', // Media\n\t\t'separator2', // --Space--\n\t\t'themes.php', // Appearance\n\t\t'plugins.php', // Plugins\n\t\t'users.php', // Users\n\t\t'tools.php', // Tools\n\t\t'options-general.php', // Settings\n\t\t'wpcf7', // Contact Form 7\n\n );\n}", "title": "" }, { "docid": "fcf7e5be192fda964eea07d28c174085", "score": "0.58290505", "text": "function wcfm_view_manage_posts() {\n\t\tglobal $WCFM, $typenow;\n\n\t\tif ( in_array( $typenow, wc_get_order_types( 'order-meta-boxes' ) ) ) {\n\t\t\techo '<a style=\"float: right;\" href=\"' . get_wcfm_orders_url() . '\"><img src=\"' . $WCFM->plugin_url . '/assets/images/wcfm-30x30.png\" alt=\"' . __( 'WCFM Home', 'wc-frontend-manager' ) . '\" /></a>';\n\t\t} elseif ( 'product' == $typenow ) {\n\t\t\techo '<a style=\"float: right;\" href=\"' . get_wcfm_products_url() . '\"><img src=\"' . $WCFM->plugin_url . '/assets/images/wcfm-30x30.png\" alt=\"' . __( 'WCFM Home', 'wc-frontend-manager' ) . '\" /></a>';\n\t\t} elseif ( 'shop_coupon' == $typenow ) {\n\t\t\techo '<a style=\"float: right;\" href=\"' . get_wcfm_coupons_url() . '\"><img src=\"' . $WCFM->plugin_url . '/assets/images/wcfm-30x30.png\" alt=\"' . __( 'WCFM Home', 'wc-frontend-manager' ) . '\" /></a>';\n\t\t}\n\t}", "title": "" }, { "docid": "683728bf18fe4bb3043471e0ae6deac2", "score": "0.58276385", "text": "function jlt_setup_menu() {\n\t add_submenu_page( 'edit.php?post_type=testimonial', 'Testimonials Settings', 'Testimonials Settings', 'manage_options', 'testimonials-settings', 'jlt_testimonials_settings_page' );\n }", "title": "" }, { "docid": "e3d4fd5744f4ca3b99dff8ba8e508665", "score": "0.5805462", "text": "function my_custom_init() {\n\t$labels = array(\n\t'name' => _x( 'Marcas', 'post type general name' ),\n 'singular_name' => _x( 'Marca', 'post type singular name' ),\n 'add_new' => _x( 'Añadir nuevo', 'marca' ),\n 'add_new_item' => __( 'Añadir nueva Marca' ),\n 'edit_item' => __( 'Editar Marca' ),\n 'new_item' => __( 'Nueva Marca' ),\n 'view_item' => __( 'Ver Marca' ),\n 'search_items' => __( 'Buscar Marca' ),\n 'not_found' => __( 'No se han encontrado Marcas' ),\n 'not_found_in_trash' => __( 'No se han encontrado Marcas en la papelera' ),\n 'parent_item_colon' => ''\n );\n\n // Creamos un array para $args\n $args = array( 'labels' => $labels,\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => true,\n 'capability_type' => 'post',\n 'hierarchical' => false,\n 'menu_position' => null,\n 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )\n );\n\n register_post_type( 'Marca', $args );\n}", "title": "" }, { "docid": "213df70149875a7ccd69de939e3e8a24", "score": "0.5792209", "text": "function santo_flickr_menu() {\r\n\t//create new top-level menu\r\n add_menu_page( 'Flickr Gallery', 'Flickr Gallery', 'administrator',__FILE__, 'santo_flickr_page' ,plugins_url('/flicker.png', __FILE__ ));\r\n \r\n \r\n //call register settings function\r\n add_action( 'admin_init', 'register_santo_flickr_feed' );\r\n}", "title": "" }, { "docid": "98d1399b1276be5fdab47a0dc5b10f4f", "score": "0.5792149", "text": "function ada_add_pages() {\n\nadd_submenu_page('edit.php?post_type=horse', __('Options','wp_horse'), __('Options','wp_horse'), 'manage_options', 'horse_options_page', 'horse_options_page' );\n}", "title": "" }, { "docid": "98f842394a7cb380b79075935bd8efba", "score": "0.5774574", "text": "function otm_admin_bar_customizations( $wp_admin_bar ) {\n\t$wp_admin_bar->remove_node( 'wp-logo' );\n\t$wp_admin_bar->remove_menu('comments');\n\t$wp_admin_bar->remove_menu('customize');\n\tif(!is_admin()):\n $args = array(\n 'id' => 'current-page-id',\n 'title' => 'Current Page ID: ' . get_the_ID(),\n 'href' => get_edit_post_link(),\n 'meta' => false\n );\n $wp_admin_bar->add_node( $args );\n\tendif;\n}", "title": "" }, { "docid": "04c8e88757c55b94feb2743cc58b45d5", "score": "0.57634985", "text": "function sale_admin_menu() {\n global $submenu;\n $url = '/wp-admin/post.php?post=11088&action=edit';\n $submenu['edit.php?post_type=page'][] = array('Apps on Sale', 'manage_options', $url);\n}", "title": "" }, { "docid": "b154a76d9760854b9a62425e8c52ab28", "score": "0.57626694", "text": "function book_add_page() {\n add_submenu_page('edit.php?post_type=book', 'Book Admin', 'Book Settings', 'edit_posts', basename(__FILE__), 'book_s');\n}", "title": "" }, { "docid": "d38ee6113bf243fdb29a03060431f564", "score": "0.5760859", "text": "function products_type() {\n\n $labels = array(\n 'name' => 'Productos',\n 'singular_name' => 'Producto',\n 'menu_name' => 'Productos',\n );\n\n $args = array(\n 'label' => 'Productos',\n 'description' => 'Productos de Platzi',\n 'labels' => $labels,\n 'supports' => array('title', 'editor', 'thumbnail', 'revisions'),\n 'public' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n 'menu_icon' => 'dashicons-cart',\n 'can_export' => true,\n 'publicly' => true,\n 'rewrite' => true,\n 'show_in_rest' => true,\n );\n\n register_post_type('producto', $args);\n}", "title": "" }, { "docid": "fbd2951954048d83f418c023b86a2687", "score": "0.57536894", "text": "public function adminUi()\n\t{\n\t\tif(empty($_GET['post_type'])) return;\n\n\t\t$this->postType = esc_attr($_GET['post_type']);\n\t\t$this->tax = (isset($_GET['reorder_tax']) ? esc_attr($_GET['reorder_tax']) : false);\n\t\t$this->term = (isset($_GET['reorder_term']) ? esc_attr($_GET['reorder_term']) : false);\n\n\t\t$typeObj = get_post_type_object($this->postType);\n\t\t$title = $typeObj->labels->name;\n\n\t\t$this->getOptions();\n\n\t\trequire_once( $this->viewDir . '/list.php' );\n\t}", "title": "" }, { "docid": "7722670dbe8f3531d5ad661533367658", "score": "0.5747848", "text": "function change_post_menu_label() {\n global $menu;\n $menu[5][0] = 'Blog';\n echo '';\n}", "title": "" }, { "docid": "83e9d6d167bc71dd55f7e1338a61ae70", "score": "0.5743516", "text": "public function renderAdminShortcuts() {\n\t\n\t\t$user = $this->wire('user');\n\t\t$config = $this->wire('config');\n\t\t\n\t\tif($user->isGuest() || !$user->hasPermission('page-edit')) return '';\n\t\n\t\t$language = $user->language && $user->language->id && !$user->language->isDefault() ? $user->language : null;\n\t\t$url = $config->urls->admin . 'page/add/';\n\t\t$out = '';\n\t\n\t\tforeach(wire('templates') as $template) {\n\t\t\t$parent = $template->getParentPage(true); \n\t\t\tif(!$parent) continue; \n\t\t\tif($parent->id) {\n\t\t\t\t// one parent possible\t\n\t\t\t\t$qs = \"?parent_id=$parent->id\";\n\t\t\t} else {\n\t\t\t\t// multiple parents possible\n\t\t\t\t$qs = \"?template_id=$template->id\";\n\t\t\t}\n\t\t\t$label = $template->label;\n\t\t\tif($language) $label = $template->get(\"label$language\");\n\t\t\tif(empty($label)) $label = $template->name; \n\t\t\t$out .= \"<li><a href='$url$qs'>$label</a></li>\";\n\t\t}\n\t\n\t\tif(empty($out)) return '';\n\t\n\t\t$label = $this->_('Add New'); \n\t\n\t\t$out =\t\"<div id='head_button'>\" . \t\n\t\t\t\"<button class='ui-button dropdown-toggle'><i class='fa fa-angle-down'></i> $label</button>\" . \n\t\t\t\"<ul class='dropdown-menu shortcuts'>$out</ul>\" . \n\t\t\t\"</div>\";\n\t\n\t\treturn $out; \n\t}", "title": "" }, { "docid": "597ac4c58c9fe5ea42909c34d7ca9d4f", "score": "0.57400906", "text": "function types_rename_build_in_post_types() {\n global $wp_post_types;\n $custom_types = get_option( WPCF_OPTION_NAME_CUSTOM_TYPES, array() );\n\n if ( !empty( $custom_types ) ) {\n foreach ( $custom_types as $post_type => $data ) {\n // only for build_in\n if (\n isset( $data['_builtin'] )\n && $data['_builtin']\n && isset( $data['slug'] )\n && isset( $data['labels']['name'] )\n ) {\n // check if slug (post/page) exists\n if( isset( $wp_post_types[$data['slug']] ) ) {\n // refer $l to post labels\n $l = &$wp_post_types[$data['slug']]->labels;\n\n // change name\n $l->name = isset( $data['labels']['name'] ) ? $data['labels']['name'] : $l->name;\n\n // change singular name\n $l->singular_name = isset( $data['labels']['singular_name'] ) ? $data['labels']['singular_name'] : $l->singular_name;\n\n // change labels\n $l->add_new_item = 'Add New';\n $l->add_new = 'Add New ' . $l->singular_name;\n $l->edit_item = 'Edit ' . $l->singular_name;\n $l->new_item = 'New ' . $l->name ;\n $l->view_item = 'View ' . $l->name;\n $l->search_items = 'Search '. $l->name;\n $l->not_found = 'No ' . $l->name . ' found';\n $l->not_found_in_trash = 'No ' . $l->name . ' found in Trash';\n $l->parent_item_colon = 'Parent '. $l->name;\n $l->all_items = 'All ' . $l->name;\n $l->menu_name = $l->name;\n $l->name_admin_bar = $l->name;\n\n }\n }\n }\n }\n}", "title": "" }, { "docid": "8409e7f53f91ea15432afba3b8e43922", "score": "0.5732565", "text": "function fes_remove_posts_admin_menus() {\n remove_menu_page( 'edit.php' );\n}", "title": "" }, { "docid": "c14deff6461192bf091e1ca38e1f85e1", "score": "0.5721451", "text": "function gutenberg_fix_template_part_admin_menu_entry() {\n\tif ( ! gutenberg_supports_block_templates() ) {\n\t\treturn;\n\t}\n\n\tglobal $submenu;\n\tif ( ! isset( $submenu['themes.php'] ) ) {\n\t\treturn;\n\t}\n\t$post_type = get_post_type_object( 'wp_template_part' );\n\tif ( ! $post_type ) {\n\t\treturn;\n\t}\n\tforeach ( $submenu['themes.php'] as $key => $submenu_entry ) {\n\t\tif ( $post_type->labels->all_items === $submenu['themes.php'][ $key ][0] ) {\n\t\t\t$submenu['themes.php'][ $key ][0] = $post_type->labels->menu_name; // phpcs:ignore WordPress.WP.GlobalVariablesOverride\n\t\t\tbreak;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "efeea3e71209a421e4398ab6426d45fc", "score": "0.5715204", "text": "function create_post_type(){\n register_post_type('recipes', [ \n 'labels' => [\n 'name' => 'Recipes', //Etikett i plural Etikett i singular\n 'singular_name' => 'Recipe', //Vad som ska stå i ”Lägg till...” knappen\n 'add_new' => 'New Recipe', //Vad som ska stå i ”Lägg till ny...” knappen\n 'add_new_item' => 'New Recipe', //Vad som ska stå i ”Ny...” länken\n 'edit_item' => 'Edit Recipe', //Vad som ska stå i ”Redigera...” länken\n 'new_item' => 'New Recipe', //Vad som ska stå i ”Ny...” länken\n 'search_items' => 'Search for Recipe', //Vad som ska stå i sökrutan i listningen\n 'not_found' => 'No Recipe Found', \n 'all_items' => 'All Recipes', //Vad som ska stå i ”Alla...” länken\n ],\n 'supports' => array( 'thumbnail' ),\n 'description' => 'The Big Tasty!', //En kort beskrivning av posttypen\n 'public' => true, //Om och hur posttypen ska visas för olika användare\n 'exclude_from_search' => false, //Om posttypens poster ska exkluderas vid sökning\n 'show_ui' => true, //Om posttypen ska kunna hanteras från admin\n 'show_in_nav_menus' => true, //Om poster av posttypen ska kunna läggas till i menyer\n 'show_in_menu' => true, //Vart posttypen ska listas i admin (vänster eller topp)\n 'show_in_admin_bar' => true, //Om posttypen ska visas i toppbar’en\n 'menu_position' => 10, //Vart i vänstermenyn posttypen ska visas\n 'hierarchical' => false, //Om poster i posttypen ska kunna ha föräldrar, likt Sidor\n 'menu_icon' => 'dashicons-food', //Ikon för posttypen\n 'supports' => array('title' , 'editor'), //Vad som ska synas när man skapar/redigerar en post \n 'taxonomies' => array('category'), //Vilka taxonomier som ska tillhöra posttypen\n 'has_archive' => true, //Om posttypen ska ha arkivsida\n 'rewrite' => [ //Hur posttypens rewrites ska hanteras...\n 'slug' => 'recipe', //Permalänkstrukturen för posttypen\n 'with_front' => true //Om permalänkarna ska låta föregås av sluggen\n ] \n ]);\n\n}", "title": "" }, { "docid": "a8654dfe55aa25fbc5bb646d83cd4b4f", "score": "0.5707893", "text": "function bvt_sfa_feed_admin_menu () {\n\n add_menu_page(\n 'PostRank feeds settings',\n 'PostRank feeds',\n 'manage_categories',\n 'bvt_sfa_feed_admin',\n 'bvt_sfa_feed_admin_screen',\n 'http://www.postrank.com/favicon.ico'\n );\n}", "title": "" }, { "docid": "03e5b192fc6a5478974c8342ef1c6d1a", "score": "0.57063407", "text": "function templ_add_admin_menu_()\r\n{\r\n\tdo_action('templ_add_admin_menu_');\r\n}", "title": "" }, { "docid": "1e1f83d6caa8d7d67ed1044d5efdcd4e", "score": "0.5704811", "text": "function custom_post_types(){\n\t\n // CPT Portfolio\n $labels = array(\n 'name' => __('Formation'),\n 'all_items' => 'LA FORMATION ', // affiché dans le sous menu\n 'singular_name' => 'Formation',\n 'add_new_item' => 'add new formation ',\n 'edit_item' => 'Modify the diploma',\n 'menu_name' => 'Formation'\n );\n\n\t$args = array(\n 'labels' => $labels,\n 'public' => true,\n 'show_in_rest' => true,\n 'has_archive' => true,\n 'supports' => array( 'title', 'editor','thumbnail', 'excerpt' ),\n 'menu_position' => 2, \n 'menu_icon' => 'dashicons-welcome-learn-more',\n\t);\n\n\tregister_post_type( 'formation', $args );\n}", "title": "" }, { "docid": "581ff76aca5b070ae26b480958991bd1", "score": "0.57042027", "text": "function alter_types_menu_location($args, $post_type) {\n $skip = [\n 'acf-field',\n 'acf-field-group',\n 'attachment',\n 'custom_css',\n 'customize_changeset',\n 'elementor_library',\n 'media',\n 'nav_menu_item',\n 'oembed_cache',\n 'product',\n 'product_variation',\n 'revision',\n 'scheduled-action',\n 'shop_coupon',\n 'shop_order',\n 'shop_order_refund',\n 'user_request',\n 'wp_block',\n ];\n\n // Skip this as we don't want them in our menu.\n if (in_array($post_type, $skip)) {\n return $args;\n }\n\n // Changes the titles as it will render the secondary all items.\n if (isset($args[\"labels\"]) && is_array($args[\"labels\"])) {\n $name = isset($args[\"labels\"][\"name\"]) ? $args[\"labels\"][\"name\"] : $args[\"labels\"][\"name_admin_bar\"];\n $menu[\"labels\"][\"name\"] = $name;\n }\n\n // Change which menu.\n $menu['show_in_menu'] = 'content';\n\n // Slap it together.\n return array_merge($args, $menu);\n\n}", "title": "" }, { "docid": "4b4a1e994ec68329004250714028ffbe", "score": "0.5700023", "text": "public function admin_menu() {\n // Duplicate link into properties mgmt\n \tadd_submenu_page(\n \t\tself::SLUG,\n \t\t__('Settings'),\n \t\t__('Settings'),\n \t\t'manage_options',\n \t\tself::SLUG,\n \t\t1\n \t);\n }", "title": "" }, { "docid": "5a37c9ca17efa4d992ee20e496c8cb57", "score": "0.56853646", "text": "function ks_disable_posts_admin_bar() {\n global $wp_admin_bar;\n $wp_admin_bar->remove_menu('new-post');\n}", "title": "" }, { "docid": "7df465224dc8bb3feda2d21c81ea3563", "score": "0.56784505", "text": "function admin_menu()\n {\n }", "title": "" }, { "docid": "7df465224dc8bb3feda2d21c81ea3563", "score": "0.56784505", "text": "function admin_menu()\n {\n }", "title": "" }, { "docid": "7df465224dc8bb3feda2d21c81ea3563", "score": "0.56784505", "text": "function admin_menu()\n {\n }", "title": "" }, { "docid": "602f10591f03f2d66d04d16e54f827ef", "score": "0.5677719", "text": "function on_admin_bar_menu ($wp_admin_bar)\n{\n global $cap_collation_name;\n\n if (!is_admin () && current_user_can ('edit_pages')) {\n $args = array (\n 'id' => 'cap_collation_open',\n 'title' => _x ('Collation', 'Admin bar button caption', 'capitularia'),\n 'href' => '/wp-admin/index.php?page=' . DASHBOARD_PAGE_ID,\n 'meta' => array ('class' => 'cap-collation',\n 'title' => $cap_collation_name),\n );\n $wp_admin_bar->add_node ($args);\n }\n}", "title": "" }, { "docid": "7eefc32917a771650c00b629c35e5e25", "score": "0.56744295", "text": "function wp_admin_bar_new_content_menu($wp_admin_bar)\n {\n }", "title": "" }, { "docid": "a0db55d7860260a086969553ac7d7f19", "score": "0.5672527", "text": "function maker_4ym_change_menu_order() {\n return array(\n 'index.php',\n 'edit.php',\n 'edit.php?post_type=story',\n\t'upload.php'\n );\n}", "title": "" }, { "docid": "932c1da4eebb821b360ce3ce46ff6d34", "score": "0.5670989", "text": "function register_handy_admin_bar_submenu( $wp_admin_bar ) {\n if ( is_admin() ) {\n return;\n }\n\n $wp_admin_bar->add_group(\n array(\n 'parent' => 'site-name',\n 'id' => 'handy',\n )\n );\n $wp_admin_bar->add_node(\n array(\n 'parent' => 'handy',\n 'id' => 'posts',\n 'title' => 'News',\n 'href' => admin_url( 'edit.php' ),\n )\n );\n $wp_admin_bar->add_node(\n array(\n 'parent' => 'handy',\n 'id' => 'pages',\n 'title' => 'Pages',\n 'href' => admin_url( 'edit.php?post_type=page' ),\n )\n );\n $wp_admin_bar->add_node(\n array(\n 'parent' => 'handy',\n 'id' => 'events',\n 'title' => 'Events',\n 'href' => admin_url( 'edit.php?post_type=event' ),\n )\n );\n $wp_admin_bar->add_node(\n array(\n 'parent' => 'handy',\n 'id' => 'media',\n 'title' => 'Media',\n 'href' => admin_url( 'upload.php' ),\n )\n );\n $wp_admin_bar->add_node(\n array(\n 'parent' => 'handy',\n 'id' => 'tags',\n 'title' => 'Topics',\n 'href' => admin_url( 'edit-tags.php?taxonomy=post_tag' ),\n )\n );\n $wp_admin_bar->add_node(\n array(\n 'parent' => 'handy',\n 'id' => 'tags',\n 'title' => 'Projects',\n 'href' => admin_url( 'edit-tags.php?taxonomy=category' ),\n )\n );\n}", "title": "" }, { "docid": "e7855662749a00d659fcd44531a34beb", "score": "0.5665949", "text": "function pgm_register_custom_admin_titles() {\n add_filter('the_title','pgm_custom_admin_titles',99,2);\n}", "title": "" }, { "docid": "adb9cd633f078d9cd3a5b4c8cdaa8d96", "score": "0.5665876", "text": "function mw_register_taxonomies() {\n\n $taxonomies = array(\n array(\n 'slug' => 'featured',\n 'single_name' => 'Featured',\n 'plural_name' => 'Featured',\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'hierarchical' => true,\n 'post_type' => array( 'post', 'page' ),\n 'rewrite' => array( 'slug' => 'featured' ),\n ),\n );\n\n foreach( $taxonomies as $taxonomy ) {\n $labels = array(\n 'name' => $taxonomy['plural_name'],\n 'singular_name' => $taxonomy['single_name'],\n 'search_items' => 'Search ' . $taxonomy['plural_name'],\n 'all_items' => 'All ' . $taxonomy['plural_name'],\n 'parent_item' => 'Parent ' . $taxonomy['single_name'],\n 'parent_item_colon' => 'Parent ' . $taxonomy['single_name'] . ':',\n 'edit_item' => 'Edit ' . $taxonomy['single_name'],\n 'update_item' => 'Update ' . $taxonomy['single_name'],\n 'add_new_item' => 'Add New ' . $taxonomy['single_name'],\n 'new_item_name' => 'New ' . $taxonomy['single_name'] . ' Name',\n 'menu_name' => $taxonomy['plural_name']\n );\n\n $rewrite = isset( $taxonomy['rewrite'] ) ? $taxonomy['rewrite'] : array( 'slug' => $taxonomy['slug'] );\n $hierarchical = isset( $taxonomy['hierarchical'] ) ? $taxonomy['hierarchical'] : true;\n $show_admin_column = isset( $taxonomy['show_admin_column'] ) ? $taxonomy['show_admin_column'] : false;\n $show_ui = isset( $taxonomy['show_ui'] ) ? $taxonomy['show_ui'] : true;\n\n register_taxonomy( $taxonomy['slug'], $taxonomy['post_type'], array(\n 'hierarchical' => $hierarchical,\n 'labels' => $labels,\n 'show_ui' => $show_ui,\n 'query_var' => true,\n 'show_admin_column' => $show_admin_column,\n 'rewrite' => $rewrite,\n ));\n }\n\n}", "title": "" }, { "docid": "fd0e7ed02c9a979a1dcc6d7fd13274dc", "score": "0.5649628", "text": "function om_cars_features() {\n $labels = array(\n 'name' => _x( 'Cars Features', 'taxonomy general name' ),\n 'singular_name' => _x( 'Cars Feature', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Cars Features' ),\n 'all_items' => __( 'All Cars Features' ),\n 'parent_item' => __( 'Parent Cars Feature' ),\n 'parent_item_colon' => __( 'Parent Cars Feature:' ),\n 'edit_item' => __( 'Edit Cars Feature' ), \n 'update_item' => __( 'Update Cars Feature' ),\n 'add_new_item' => __( 'Add New Cars Feature' ),\n 'new_item_name' => __( 'New Cars Feature' ),\n 'menu_name' => __( 'Cars Features' ),\n );\n $args = array(\n 'labels' => $labels,\n 'hierarchical' => true,\n );\n register_taxonomy( 'cars_feature', 'om-car', $args );\n}", "title": "" }, { "docid": "db05c2c440b47ce4bc932574c8298ee9", "score": "0.5643441", "text": "function theme_add_admin_page() {\r\n\tadd_menu_page(\r\n\t\t'Theme Options', // page_title\r\n\t\t'Site Data', // menu_title\r\n\t\t'manage_options', // capability\r\n\t\t'vw-slug', // menu_slug\r\n\t\t'theme_create_admin_page', // function\r\n\t\t'dashicons-welcome-write-blog', // icon_url\r\n\t\t110 // position\r\n\t);\r\n\r\n\tadd_action( 'admin_init', 'theme_custom_settings' );\r\n}", "title": "" }, { "docid": "001478ffc46ff8227c7dea72b7ef26e8", "score": "0.5634327", "text": "function my_first_coffee() {\n $args = array (\n\n 'labels' => array(\n 'name' => 'Coffees',\n 'singular_name' => 'Coffee'\n ),\n 'hierarchical' => true, //we want to behave like a page if false it behaves like a post\n 'public' => true,\n 'has_archive' => true,\n 'menu_icon' => 'dashicons-store',\n 'supports' => array ('title', 'editor', 'thumbnail', 'custom-fields', 'comments', 'excerpt'),\n 'rewrite' => array('slug' => 'our-coffees'),\n );\n\n register_post_type( 'coffees', $args );\n}", "title": "" }, { "docid": "a8a439b656d54193f142fa60b637e504", "score": "0.5627155", "text": "function edit_post_change_title() {\r\n\r\n global $post;\r\n\r\n if( $post->post_type == 'products' ) {\r\n\r\n add_filter( 'the_title', 'products_title', 10, 2 );\r\n\r\n }\r\n\r\n}", "title": "" }, { "docid": "8f56173f71a690f160dbe9f8416e34f1", "score": "0.5626164", "text": "function restrict_manage_posts() {\n\t\tglobal $post;\n\t\tif ( 'location' != get_query_var( 'post_type' ) )\n\t\t\treturn;\n\t\t$post_parent = isset( $_GET['post_parent'] ) ? $_GET['post_parent'] : '';\n\t\techo wp_dropdown_pages( array(\n\t\t\t'echo' => 0,\n\t\t\t'name' => 'post_parent',\n\t\t\t'post_type' => 'locationregion',\n\t\t\t'selected' => $post_parent,\n\t\t\t'show_option_none' => __( 'View all locations', 'loc' ),\n\t\t\t'option_none_value' => ''\n\t\t) );\n\t}", "title": "" }, { "docid": "36defec2c14628443e35b55949009ce0", "score": "0.5625335", "text": "function wph_post_types() { ?>\n\t<ul>\n\t\t<li><strong><a href=\"/\">Home</a></strong></li>\n\t\t<li><strong><a href=\"/sites/\">Sites</a></strong></li>\n\t\t<li><strong><a href=\"/plugins/\">Plugins</a></strong></li>\n\t\t<li><strong><a href=\"/themes/\">Themes</a></strong></li>\n\t\t<li><strong><a href=\"/personalities/\">Personalities</a></strong></li>\n\t\t<li><strong><a href=\"/sponsors/\">Sponsors</a></strong></li>\n\t\t<li><strong><a href=\"/blog/\">Blog</a></strong></li>\n\t\t<li><strong><a href=\"/contact/\">Contact</a></strong></li>\n\t</ul>\n<?php\n}", "title": "" }, { "docid": "12584216c7e6179d78dcef6f8ddb61a7", "score": "0.5623673", "text": "function mpp_Add_Admin_Link()\n{\n add_menu_page(\n 'Moses Post Piglatin page', // Title of the page\n 'Moses Post Piglatin', // Text to show on the menu link\n 'manage_options', // Capability requirement to see the link\n 'includes/mpp-post-piglatin-cp.php' // The 'slug' - file to display when clicking the link\n );\n}", "title": "" }, { "docid": "681afb38144b41efe790105b7ac446af", "score": "0.56220835", "text": "function wp_admin_bar_wp_menu($wp_admin_bar)\n {\n }", "title": "" }, { "docid": "d49d4e12427fdfc85a1dc387c2dd41b2", "score": "0.56087255", "text": "public static function init() {\n\t\t\tadd_action( 'admin_menu', __CLASS__ . '::simple_recipes_create_menu' );\n\t\t\n\t\t}", "title": "" }, { "docid": "0347498225ff69c56f744d675634a6f8", "score": "0.5608162", "text": "function atkore_post_type_events() {\n $admin_img_path = '//atkore.com/assets/img/atkore-admin-icon.png';\n \t$labels = array(\n \t\t'name' => _x( 'Events', 'Post Type General Name', 'atkore' ),\n \t\t'singular_name' => _x( 'Event', 'Post Type Singular Name', 'atkore' ),\n \t\t'menu_name' => __( 'Events', 'atkore' ),\n \t\t'parent_item_colon' => __( 'Parent Event:', 'atkore' ),\n \t\t'all_items' => __( 'All Events', 'atkore' ),\n \t\t'view_item' => __( 'View Event', 'atkore' ),\n \t\t'add_new_item' => __( 'Add New Event', 'atkore' ),\n \t\t'add_new' => __( 'New Event', 'atkore' ),\n \t\t'edit_item' => __( 'Edit Event', 'atkore' ),\n \t\t'update_item' => __( 'Update Event', 'atkore' ),\n \t\t'search_items' => __( 'Search Events', 'atkore' ),\n \t\t'not_found' => __( 'Nothing found', 'atkore' ),\n \t\t'not_found_in_trash' => __( 'Nothing found in Trash', 'atkore' ),\n \t);\n\n \t$rewrite = array(\n \t'slug' => 'events',\n \t);\n\n \t$args = array(\n \t\t'label' => __( 'Events', 'atkore' ),\n \t\t'description' => __( 'Events', 'atkore' ),\n \t\t'labels' => $labels,\n \t\t'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes', ),\n \t\t//'taxonomies' => array( '',),\n \t\t'rewrite' => $rewrite,\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'show_in_nav_menus' => true,\n \t\t'show_in_admin_bar' => false,\n \t\t'menu_position' => 5,\n \t\t'menu_icon' => $admin_img_path,\n \t\t'can_export' => true,\n \t\t'has_archive' => false,\n \t\t'exclude_from_search' => true,\n \t\t'publicly_queryable' => false,\n \t\t'capability_type' => 'post',\n \t);\n\n \tregister_post_type( 'event', $args );\n\n}", "title": "" }, { "docid": "295e9eb2d2e1d3bcc80920d8a08d2e92", "score": "0.5605809", "text": "public function admin_menu() {\n add_theme_page(__('Customize', 'sofa'), __('Customize', 'sofa'), 'edit_themes', 'customize.php');\n }", "title": "" }, { "docid": "b74f4f2f685fc5b5ff9b7f1dd6f5c5e8", "score": "0.56040055", "text": "function law_firm_posts_and_pages($wp_customize)\n{\n\n /*=================== Posts and page section ====================*/\n $wp_customize->add_section(\n 'posts_and_pages',\n array(\n 'title' => __('Posts and Page Section', 'kriti_law_firm'),\n 'capability' => 'edit_theme_options',\n 'priority' => 10,\n 'panel' => 'general_settings'\n )\n );\n\n // Show related posts checkbox\n $wp_customize->add_setting(\n 'show_related_posts',\n array(\n 'priority' => 10,\n 'type' => 'theme_mod',\n 'capability' => 'edit_theme_options',\n 'transport' => 'refresh',\n 'default' => 0,\n 'sanitize_callback' => 'kriti_law_firm_sanitize_checkbox'\n )\n );\n\n $wp_customize->add_control(\n 'show_related_posts',\n array(\n 'label' => __('Show Relates Posts', 'kriti_law_firm'),\n 'section' => 'posts_and_pages',\n 'settings' => 'show_related_posts',\n 'type' => 'checkbox'\n )\n );\n\n // show related posts title\n\n $wp_customize->add_setting(\n 'show_related_post_title',\n array(\n 'priority' => 20,\n 'type' => 'theme_mod',\n 'capability' => 'edit_theme_options',\n 'transport' => 'refresh',\n 'default' => __('Related Posts', 'kriti_law_firm'),\n 'sanitize_callback' => 'wp_filter_nohtml_kses'\n )\n );\n\n $wp_customize->add_control(\n 'show_related_post_title',\n array(\n 'label' => __('Read more Button', 'kriti_law_firm'),\n 'section' => 'posts_and_pages',\n 'settings' => 'show_related_post_title',\n 'type' => 'text'\n )\n );\n}", "title": "" }, { "docid": "787ff0e220d7312d68f517515bc8a38c", "score": "0.5601675", "text": "function training_section(){\r\n\t$singular='Training Show';\r\n\t$plural='Training Shows';\r\n\r\n\t$labels=array(\r\n 'name'=>$plural,\r\n 'singular_name'=>$singular,\r\n 'add_name'=>'Add New',\r\n 'add_new_item'=>'Add New' . $singular,\r\n 'edit'=>'Edit',\r\n 'edit_item' =>'Edit' . $singular,\r\n 'new_item' =>'New' . $singular,\r\n 'view'=>'View' . $singular,\r\n 'view_item'=>'View' . $singular,\r\n 'search_item'=>'Search' . $plural,\r\n 'parent'=>'Parent' . $singular,\r\n 'not_found'=>'No' . $plural .'found',\r\n 'not_found_in_trash'=>'No' . $plural .'in Trash'\r\n\t\t);\r\n\t$args =array(\r\n 'labels' =>$labels,\r\n 'public' =>true,\r\n 'menu_position'=>10,\r\n 'has_archive'=>true,\r\n 'capability_type'=>'post',\r\n 'map_meta_cap'=>true,\r\n 'supports'=>array(\r\n 'title',\r\n 'editor',\r\n 'custom-fields',\r\n 'thumbnail'\r\n \t)\r\n\t\t);\r\n\tregister_post_type('training_show',$args);\r\n}", "title": "" }, { "docid": "d83f475aeb2cd507c9f7687893067cfb", "score": "0.5600739", "text": "function honeycomb_post_nav() {\n\t\t$args = array(\n\t\t\t'next_text' => '%title',\n\t\t\t'prev_text' => '%title',\n\t\t\t);\n\t\tthe_post_navigation( $args );\n\t}", "title": "" }, { "docid": "5a19f6d2ce332d4d171c3106f2395339", "score": "0.559656", "text": "function add_admin_menu() {\r\n\t\tadd_management_page( __( 'RegenThumbs Stamina', 'regenthumbs-stamina' ), __( 'RegenThumbs Stamina', 'regenthumbs-stamina' ), 'manage_options', 'regenthumbs-stamina', array(&$this, 'regenerate_interface') );\r\n\t}", "title": "" }, { "docid": "bc4aa49eae909e2f9ba5cbe2d7379c13", "score": "0.5594144", "text": "function post_type_labels( $singular, $plural = '' )\n{\n if( $plural == '') $plural = $singular .'s';\n \n return array(\n 'name' => _x( $plural, 'post type general name' ),\n 'singular_name' => _x( $singular, 'post type singular name' ),\n 'add_new' => __( 'Add New' ),\n 'add_new_item' => __( 'Add New '. $singular ),\n 'edit_item' => __( 'Edit '. $singular ),\n 'new_item' => __( 'New '. $singular ),\n 'view_item' => __( 'View '. $singular ),\n 'search_items' => __( 'Search '. $plural ),\n 'not_found' => __( 'No '. $plural .' found' ),\n 'not_found_in_trash' => __( 'No '. $plural .' found in Trash' ),\n 'parent_item_colon' => ''\n );\n}", "title": "" }, { "docid": "e7da743defd1f39e81c4f8d2238b279b", "score": "0.55930334", "text": "public function adminHeadAction() {\n add_filter('display_post_states', array($this, 'setPostState'), 10, 2);\n }", "title": "" }, { "docid": "1a2c2c1bda060162c5f98a40b43a12c9", "score": "0.5592017", "text": "function menu() {\n\t\tadd_theme_page( __( 'Color Style Options', 'color-style-options' ), __( 'Color Style Options', 'color-style-options' ), 'edit_posts', __CLASS__, array( &$this, 'page' ) );\n\t}", "title": "" }, { "docid": "8d4972bda39cf10701f5c282c03ac778", "score": "0.558182", "text": "function storefront_post_nav() {\n $args = array(\n 'next_text' => '<span class=\"screen-reader-text\">' . esc_html__( 'Next post:', 'storefront' ) . ' </span>%title',\n 'prev_text' => '<span class=\"screen-reader-text\">' . esc_html__( 'Previous post:', 'storefront' ) . ' </span>%title',\n );\n // the_post_navigation( $args );\n}", "title": "" }, { "docid": "139fae851aad845b06439536845d659a", "score": "0.5579363", "text": "function sonoma_recipe_post_type() {\n\n\t$labels = array(\n\t\t'name' => 'Recipes',\n\t\t'singular_name' => 'Recipe',\n\t\t'menu_name' => 'Recipes',\n\t\t'parent_item_colon' => 'Parent Recipe:',\n\t\t'all_items' => 'All Recipes',\n\t\t'view_item' => 'View Recipe',\n\t\t'add_new_item' => 'Add New Recipe',\n\t\t'add_new' => 'Add New',\n\t\t'edit_item' => 'Edit Recipe',\n\t\t'update_item' => 'Update Recipe',\n\t\t'search_items' => 'Search Recipes',\n\t\t'not_found' => 'Not found',\n\t\t'not_found_in_trash' => 'Not found in Trash',\n\t);\n\t$args = array(\n\t\t'label' => 'recipe',\n\t\t'description' => 'A custom post type to enter and organize your recipes',\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'comments', 'revisions', ),\n\t\t'taxonomies' => array( 'recipe_ingredient', 'recipe_collection', 'recipe_allergy', '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'show_in_nav_menus' => true,\n\t\t'show_in_admin_bar' => true,\n\t\t'menu_position' => 5,\n\t\t'menu_icon' => 'dashicons-media-document',\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( 'recipe', $args );\n\n}", "title": "" }, { "docid": "b5220b7cc8183a649e59d5fc388b6547", "score": "0.557729", "text": "function tyreconnect_testimonials_post_type() {\n $args = [\n 'name' => 'testimonials',\n 'label' => 'testimonials',\n 'singular_name' => 'Testimonials',\n 'show_in_rest' => true,\n 'menu_icon' => 'dashicons-chart-pie',\n 'show_in_menu ' => true,\n 'public' => true,\n 'hierarchical' => false,\n 'menu_position' => 50,\n 'supports' => array('title', 'editor', 'thumbnail'),\n 'show_ui' => true\n\n ];\n register_post_type('testimonials', $args );\n}", "title": "" }, { "docid": "347bfb7368a875122ab716cc1eb67107", "score": "0.55769265", "text": "function create_post_type_gon_services_menu() {\n register_post_type( 'gon_services_menu',\n array(\n 'labels' => array(\n 'name' => __( 'Products' ),\n 'singular_name' => __( 'Product' )\n ),\n 'public' => true,\n\t'menu_icon' => 'dashicons-list-view',\n 'has_archive' => false,\n\t 'show_in_rest' => true,\n\t 'menu_position' => 5,\n\t 'capability_type' => 'post',\n\t 'supports' => array('title', 'editor','page-attributes','thumbnail'),\n\t 'rewrite' => array( 'slug' => 'products' )\n )\n );\n \n}", "title": "" }, { "docid": "1f8e884408f965e6fe8686db07a74dc7", "score": "0.5576134", "text": "function register_quickmenu_post_type() {\n // Set various pieces of text, $labels is used inside the $args array\n $labels = array(\n 'name' => _x( 'Menus rápido', 'post type general name' ),\n 'singular_name' => _x( 'Menu rápido', 'post type singular name' ),\n 'menu_name' => _x( 'Menus rápidos', 'Admin Menu text', 'textdomain' ),\n\n \n );\n // Set various pieces of information about the post type\n $args = array(\n 'labels' => $labels,\n 'description' => 'My custom post type',\n 'public' => true,\n 'menu_icon' => 'dashicons-editor-insertmore',\n 'supports' => array( 'title', 'editor', 'author', 'thumbnail','custom-fields', 'page-attributes'),\n );\n // Register the movie post type with all the information contained in the $arguments array\n register_post_type( 'QuickMenus', $args );\n}", "title": "" }, { "docid": "fcb1731d13454322c43270f7b313e829", "score": "0.5571423", "text": "public function admin_menus() {\n\t\t// this is an empty title because we do not want it to display.\n\t\tadd_dashboard_page( '', '', 'manage_options', 'wsal-setup', '' );\n\t\t// hide it via CSS as well so screen readers pass over it.\n\t\tadd_action(\n\t\t\t'admin_head',\n\t\t\tfunction() {\n\t\t\t\t?>\n\t\t\t\t<style>\n\t\t\t\t.wp-submenu a[href=\"wsal-setup\"]{\n\t\t\t\t\tdisplay: none !important;\n\t\t\t\t}\n\t\t\t\t</style>\n\t\t\t\t<?php\n\t\t\t}\n\t\t);\n\t}", "title": "" }, { "docid": "54b6aaca9ebdb699922c833d478d8cfb", "score": "0.5570144", "text": "function my_admin_bar_render() {\n global $wp_admin_bar;\n $wp_admin_bar->remove_menu('comments');\n}", "title": "" }, { "docid": "54b6aaca9ebdb699922c833d478d8cfb", "score": "0.5570144", "text": "function my_admin_bar_render() {\n global $wp_admin_bar;\n $wp_admin_bar->remove_menu('comments');\n}", "title": "" }, { "docid": "4ec35fa62fe55f02d1c2df669b2155ef", "score": "0.5566994", "text": "function admin_links()\n\t{\n\t\techo '<a href=\"modules.php?mod=customcats\">Custom Cats</a>';\n\t}", "title": "" }, { "docid": "7b4e9b22ffdc5030fafe9b22565136cf", "score": "0.55598086", "text": "function yks_reorder_admin_menu( $__return_true ) {\n\treturn array(\n\t\t'index.php', // This represents the dashboard link.\n\t\t'edit.php?post_type=page', // This is the default page menu.\n\t\t'edit.php', // This is the default POST admin menu.\n\t\t// 'edit.php?post_type=cpt_cat', // This is for a CPT.\n\t\t'edit-comments.php', // Comments.\n\t\t'separator1', // First separator.\n\t\t'themes.php', // Appearance.\n\t\t'upload.php', // Media tab.\n\t);\n}", "title": "" }, { "docid": "8e44077653227d820853a54323be1fa4", "score": "0.55598015", "text": "function thirdtheme_resort_overview()\n {\n add_theme_support('post-thumbnails');\n add_image_size('medium',278,281);\n $args = array(\n 'labels' => array('name' =>__('resort detail'),\n 'add_new' =>__('add new detail')),\n \n 'public' => true,\n 'menu_icon' => 'dashicons-format-aside',\n 'show_in_menu' => true,\n 'has_archive' => true,\n 'supports' => array( 'title', 'editor', 'author', 'thumbnail','custom-fields','excerpt')); \n register_post_type('resortdetail',$args);\n }", "title": "" }, { "docid": "c94bfe01d90d8b66f24fe617d11251e1", "score": "0.5558237", "text": "function customize_dashboard_menu() {\n\t// Examples:\n\t// Removes the \"Comments\" item from the admin menu\n\t// remove_menu_page( 'edit-comments.php' );\n\t// Swaps the position of the \"Pages\" and \"Posts\" admin menu items\n\t// swap_admin_menu_sections('Pages','Posts');\n}", "title": "" }, { "docid": "6f18dab7d905906ab3b2534a89b1258c", "score": "0.55562615", "text": "function admin_menu() {\n\t\t\n\t\t// Bail early if ACF is hidden.\n\t\tif( !acf_get_setting('show_admin') ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Vars.\n\t\t$slug = 'edit.php?post_type=acf-field-group';\n\t\t$cap = acf_get_setting('capability');\n\t\t\n\t\t// Add menu items.\n\t\tadd_menu_page( __(\"Custom Fields\",'acf'), __(\"Custom Fields\",'acf'), $cap, $slug, false, 'dashicons-welcome-widgets-menus', '80.025' );\n\t\tadd_submenu_page( $slug, __('Field Groups','acf'), __('Field Groups','acf'), $cap, $slug );\n\t\tadd_submenu_page( $slug, __('Add New','acf'), __('Add New','acf'), $cap, 'post-new.php?post_type=acf-field-group' );\n\t\t\n\t\t// Only register info page when needed.\n\t\tif( isset($_GET['page']) && $_GET['page'] === 'acf-settings-info' ) {\n\t\t\tadd_submenu_page( $slug, __('Info','acf'), __('Info','acf'), $cap,'acf-settings-info', array($this,'info_page_html') );\n\t\t}\n\t}", "title": "" }, { "docid": "c748c3a58b2890a7f02fb33a80dc59da", "score": "0.55531216", "text": "function qanat_custom_post_type() {\n\n $labels = array(\n 'name' => _x( 'Clientes', 'Post Type General Name', 'qanat' ),\n 'singular_name' => _x( 'Cliente', 'Post Type Singular Name', 'qanat' ),\n 'menu_name' => __( 'Clientes', 'qanat' ),\n 'name_admin_bar' => __( 'Clientes', 'qanat' ),\n 'archives' => __( 'Archivo de Clientes', 'qanat' ),\n 'attributes' => __( 'Atributos de Clientes', 'qanat' ),\n 'parent_item_colon' => __( 'Cliente Padre:', 'qanat' ),\n 'all_items' => __( 'Todos los Clientes', 'qanat' ),\n 'add_new_item' => __( 'Agregar Nuevo Cliente', 'qanat' ),\n 'add_new' => __( 'Agregar Cliente', 'qanat' ),\n 'new_item' => __( 'Nuevo Cliente', 'qanat' ),\n 'edit_item' => __( 'Editar Cliente', 'qanat' ),\n 'update_item' => __( 'Actualizar Cliente', 'qanat' ),\n 'view_item' => __( 'Ver Cliente', 'qanat' ),\n 'view_items' => __( 'Ver Clientes', 'qanat' ),\n 'search_items' => __( 'Buscar Cliente', 'qanat' ),\n 'not_found' => __( 'No hay resultados', 'qanat' ),\n 'not_found_in_trash' => __( 'No hay resultados en Papelera', 'qanat' ),\n 'featured_image' => __( 'Logo del Cliente', 'qanat' ),\n 'set_featured_image' => __( 'Colocar Logo del Cliente', 'qanat' ),\n 'remove_featured_image' => __( 'Remover Logo del Cliente', 'qanat' ),\n 'use_featured_image' => __( 'Usar como Logo del Cliente', 'qanat' ),\n 'insert_into_item' => __( 'Insertar en Cliente', 'qanat' ),\n 'uploaded_to_this_item' => __( 'Cargado a este Cliente', 'qanat' ),\n 'items_list' => __( 'Listado de Clientes', 'qanat' ),\n 'items_list_navigation' => __( 'Navegación del Listado de Clientes', 'qanat' ),\n 'filter_items_list' => __( 'Filtro del Listado de Clientes', 'qanat' ),\n );\n $args = array(\n 'label' => __( 'Cliente', 'qanat' ),\n 'description' => __( 'Clientes dentro de la Empresa', 'qanat' ),\n 'labels' => $labels,\n 'supports' => array( 'title', 'editor', 'thumbnail' ),\n 'hierarchical' => false,\n 'public' => true,\n 'rewrite' => array('with_front' => false, 'slug' => 'clientes'),\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n 'menu_icon' => 'dashicons-buddicons-buddypress-logo',\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => true,\n 'publicly_queryable' => true,\n 'capability_type' => 'post',\n 'show_in_rest' => true,\n );\n register_post_type( 'clientes', $args );\n\n /* PUBLICACIONES */\n $labels_pub = array(\n 'name' => _x( 'Publicaciones', 'Post Type General Name', 'qanat' ),\n 'singular_name' => _x( 'Publicación', 'Post Type Singular Name', 'qanat' ),\n 'menu_name' => __( 'Publicaciones', 'qanat' ),\n 'name_admin_bar' => __( 'Publicación', 'qanat' ),\n 'archives' => __( 'Archivo de Publicaciones', 'qanat' ),\n 'attributes' => __( 'Atributos de Publicación', 'qanat' ),\n 'parent_item_colon' => __( 'Publicación Padre:', 'qanat' ),\n 'all_items' => __( 'Todas las Publicaciones', 'qanat' ),\n 'add_new_item' => __( 'Agregar Nueva Publicación', 'qanat' ),\n 'add_new' => __( 'Agregar Nueva', 'qanat' ),\n 'new_item' => __( 'Nueva Publicación', 'qanat' ),\n 'edit_item' => __( 'Editar Publicación', 'qanat' ),\n 'update_item' => __( 'Actualizar Publicación', 'qanat' ),\n 'view_item' => __( 'Ver Publicación', 'qanat' ),\n 'view_items' => __( 'Ver Publicaciones', 'qanat' ),\n 'search_items' => __( 'Buscar Publicación', 'qanat' ),\n 'not_found' => __( 'No hay resultados', 'qanat' ),\n 'not_found_in_trash' => __( 'No hay resultados en Papelera', 'qanat' ),\n 'featured_image' => __( 'Imagen de Publicación', 'qanat' ),\n 'set_featured_image' => __( 'Colocar Imagen de Publicación', 'qanat' ),\n 'remove_featured_image' => __( 'Remover Imagen de Publicación', 'qanat' ),\n 'use_featured_image' => __( 'Usar como Imagen de Publicación', 'qanat' ),\n 'insert_into_item' => __( 'Insertar en Publicación', 'qanat' ),\n 'uploaded_to_this_item' => __( 'Cargado en esta Publicación', 'qanat' ),\n 'items_list' => __( 'Listado de Publicaciones', 'qanat' ),\n 'items_list_navigation' => __( 'Navegación del Listado de Publicaciones', 'qanat' ),\n 'filter_items_list' => __( 'Filtro del Listado de Publicaciones', 'qanat' ),\n );\n $args_pub = array(\n 'label' => __( 'Publicación', 'qanat' ),\n 'description' => __( 'Publicaciones disponibles para descarga', 'qanat' ),\n 'labels' => $labels_pub,\n 'supports' => array( 'title', 'editor' ),\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'rewrite' => array('with_front' => false, 'slug' => 'publicaciones'),\n 'menu_position' => 5,\n 'menu_icon' => 'dashicons-megaphone',\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'capability_type' => 'page',\n 'show_in_rest' => true,\n );\n register_post_type( 'publicaciones', $args_pub );\n\n\n $labels_act = array(\n 'name' => _x( 'Actividades', 'Post Type General Name', 'qanat' ),\n 'singular_name' => _x( 'Actividad', 'Post Type Singular Name', 'qanat' ),\n 'menu_name' => __( 'Actividades', 'qanat' ),\n 'name_admin_bar' => __( 'Actividad', 'qanat' ),\n 'archives' => __( 'Archivo de Actividades', 'qanat' ),\n 'attributes' => __( 'Atributos de Actividad', 'qanat' ),\n 'parent_item_colon' => __( 'Actividad Padre:', 'qanat' ),\n 'all_items' => __( 'Todas las Actividades', 'qanat' ),\n 'add_new_item' => __( 'Agregar Nueva Actividad', 'qanat' ),\n 'add_new' => __( 'Agregar Nueva', 'qanat' ),\n 'new_item' => __( 'Nueva Actividad', 'qanat' ),\n 'edit_item' => __( 'Editar Actividad', 'qanat' ),\n 'update_item' => __( 'Actualizar Actividad', 'qanat' ),\n 'view_item' => __( 'Ver Actividad', 'qanat' ),\n 'view_items' => __( 'Ver Actividades', 'qanat' ),\n 'search_items' => __( 'Buscar Actividad', 'qanat' ),\n 'not_found' => __( 'No hay resultados', 'qanat' ),\n 'not_found_in_trash' => __( 'No hay resultados en Papelera', 'qanat' ),\n 'featured_image' => __( 'Imagen de Actividad', 'qanat' ),\n 'set_featured_image' => __( 'Colocar Imagen de Actividad', 'qanat' ),\n 'remove_featured_image' => __( 'Remover Imagen de Actividad', 'qanat' ),\n 'use_featured_image' => __( 'Usar como Imagen de Actividad', 'qanat' ),\n 'insert_into_item' => __( 'Insertar en Actividad', 'qanat' ),\n 'uploaded_to_this_item' => __( 'Cargada a esta Actividad', 'qanat' ),\n 'items_list' => __( 'Listado de Actividades', 'qanat' ),\n 'items_list_navigation' => __( 'Navegación del Listado de Actividades', 'qanat' ),\n 'filter_items_list' => __( 'Filtro del Listado de Actividades', 'qanat' ),\n );\n $args_act = array(\n 'label' => __( 'Actividad', 'qanat' ),\n 'description' => __( 'Actividades de la Empresa', 'qanat' ),\n 'labels' => $labels_act,\n 'supports' => array( 'title', 'editor', 'thumbnail' ),\n 'taxonomies' => array( 'tipo-actividades' ),\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'rewrite' => array('with_front' => false, 'slug' => 'actividades'),\n 'menu_position' => 5,\n 'menu_icon' => 'dashicons-analytics',\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'capability_type' => 'page',\n 'show_in_rest' => true,\n );\n register_post_type( 'actividades', $args_act );\n\n // Register Custom Taxonomy\n\n $labels_tipo = array(\n 'name' => _x( 'Tipos de Actividades', 'Taxonomy General Name', 'qanat' ),\n 'singular_name' => _x( 'Tipo de Actividad', 'Taxonomy Singular Name', 'qanat' ),\n 'menu_name' => __( 'Tipos de Actividades', 'qanat' ),\n 'all_items' => __( 'Agregar Todos', 'qanat' ),\n 'parent_item' => __( 'Tipo Padre', 'qanat' ),\n 'parent_item_colon' => __( 'Tipo Padre:', 'qanat' ),\n 'new_item_name' => __( 'Nuevo Tipo', 'qanat' ),\n 'add_new_item' => __( 'Agregar Nuevo Tipo', 'qanat' ),\n 'edit_item' => __( 'Editar Tipo', 'qanat' ),\n 'update_item' => __( 'Actualizar Tipo', 'qanat' ),\n 'view_item' => __( 'Ver Tipo', 'qanat' ),\n 'separate_items_with_commas' => __( 'Separar tipos por comas', 'qanat' ),\n 'add_or_remove_items' => __( 'Agregar o Remover tipos', 'qanat' ),\n 'choose_from_most_used' => __( 'Escoger de los más usados', 'qanat' ),\n 'popular_items' => __( 'Tipos Populares', 'qanat' ),\n 'search_items' => __( 'Buscar tipos', 'qanat' ),\n 'not_found' => __( 'no hay resultados', 'qanat' ),\n 'no_terms' => __( 'No hay Tipos', 'qanat' ),\n 'items_list' => __( 'Listado de Tipos', 'qanat' ),\n 'items_list_navigation' => __( 'Navegación del Listado de Tipos', 'qanat' ),\n );\n $args_tipo = array(\n 'labels' => $labels_tipo,\n 'hierarchical' => true,\n 'public' => true,\n 'rewrite' => array( 'slug' => 'tipo-actividades' ),\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'show_in_nav_menus' => true,\n 'show_tagcloud' => true,\n 'show_in_rest' => true,\n );\n register_taxonomy( 'tipo-actividades', array( 'actividades' ), $args_tipo );\n\n}", "title": "" }, { "docid": "0309d1c6d279c909a0f4ef6b9718bd32", "score": "0.55516475", "text": "public function onWpAdminMenu() {\n\t}", "title": "" }, { "docid": "85c3e69d1909445b8a47d3544bc010f2", "score": "0.55514646", "text": "function wp_admin_bar_my_sites_menu($wp_admin_bar)\n {\n }", "title": "" } ]
9029159a6fb9b9cab694a12845f1186d
Delete transients on multisite.
[ { "docid": "478ca0d22e024c503615bba4276341e3", "score": "0.7403247", "text": "protected function delete_network_transients(): void {\n\t\tglobal $wpdb;\n\n\t\t// phpcs:ignore WordPress.DB.DirectDatabaseQuery\n\t\t$transients = $wpdb->get_col(\n\t\t\t$wpdb->prepare(\n\t\t\t\t\"SELECT meta_key FROM $wpdb->sitemeta WHERE meta_key LIKE %s OR meta_key LIKE %s\",\n\t\t\t\t'_site_transient_' . self::PREFIX,\n\t\t\t\t'_site_transient_timeout_' . self::PREFIX\n\t\t\t)\n\t\t);\n\n\t\tif ( ! empty( $transients ) ) {\n\t\t\tarray_map( 'delete_site_option', (array) $transients );\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "33df7d36ace24f1fd83556f4be081a2f", "score": "0.74060875", "text": "function rock_star_flush_post_transients(){\n\tdelete_transient( 'rock_star_featured_content' );\n\n\tdelete_transient( 'rock_star_news_ticker' );\n\n\tdelete_transient( 'rock_star_featured_slider' );\n\n\tdelete_transient( 'rock_star_featured_image' );\n\n\tdelete_transient( 'all_the_cool_cats' );\n}", "title": "" }, { "docid": "b1ad6be97264ca4fc3891265897fc721", "score": "0.70886296", "text": "function pewc_delete_transients() {\n\n\t$cleared = get_option( 'pewc_cleared_transients', false );\n\n\t// Clear the transients\n\tif( isset( $_GET['pewc_delete_transients'] ) ) {\n\n\t\tpewc_reset_all_transients();\n\n\t\tupdate_option( 'pewc_cleared_transients', 1 ); ?>\n\n\t\t<div class=\"notice notice-success\">\n\t\t\t<p>Database updated. Thanks.</p>\n\t\t</div>\n\n\t<?php return;\n\t}\n\n}", "title": "" }, { "docid": "b5ef5b79a2b334e5f127b7884e3ea0e3", "score": "0.7002201", "text": "public function delete_transients() {\n delete_transient( $this->restricted_items_transient_name );\n delete_transient( $this->restricted_users_transient_name );\n }", "title": "" }, { "docid": "60c9f4a9df2d9a7741868873bc38ffdd", "score": "0.6713133", "text": "public function reset_all_transients() {\n\t\tglobal $wpdb;\n\t\t// Build the query to delete all transients and execute the required SQL\n\t\t$sql = \"DELETE FROM $wpdb->options WHERE option_name LIKE '_transient_rella_dynamic_css_%'\";\n\t\t$wpdb->query( $sql );\n\t}", "title": "" }, { "docid": "655448a1d5d858fd403c84c47979ee36", "score": "0.6664992", "text": "public static function delete_ig_transient( $transient_name ){\n\t\tif( is_multisite() ){\n\t\t\treturn delete_site_transient( $transient_name );\n\t\t}\n\t\telse{\n\t\t\treturn delete_transient( $transient_name );\n\t\t}\n\t}", "title": "" }, { "docid": "5f87ee2a9c731f7588115b79e979553b", "score": "0.64703655", "text": "function learndash_purge_transients() {\n\t\tif ( function_exists( '_deprecated_function' ) ) {\n\t\t\t_deprecated_function( __FUNCTION__, '3.1', 'LDLMS_Transients::purge_all()' );\n\t\t}\n\n\t\treturn LDLMS_Transients::purge_all();\n\t}", "title": "" }, { "docid": "b71e32a685ece08691b7acbbe9567dba", "score": "0.64427775", "text": "public static function remove_expired_transient() {\n\t\t$options = array(\n\t\t\t'return' => true,\n\t\t\t'parse' => 'json',\n\t\t\t'launch' => true,\n\t\t\t'exit_error' => true,\n\t\t);\n\t\t\\WP_CLI::runcommand( \"transient delete --expired\", $options );\n\t}", "title": "" }, { "docid": "d016f273a8e402a8073c1c571a1823c9", "score": "0.643282", "text": "function rock_star_flush_transients(){\n\tdelete_transient( 'rock_star_featured_content' );\n\n\tdelete_transient( 'rock_star_news_ticker' );\n\n\tdelete_transient( 'rock_star_featured_slider' );\n\n\tdelete_transient( 'rock_star_custom_css' );\n\n\tdelete_transient( 'rock_star_footer_content' );\n\n\tdelete_transient( 'rock_star_featured_image' );\n\n\tdelete_transient( 'rock_star_social_icons' );\n\n\tdelete_transient( 'all_the_cool_cats' );\n\n\t//Add Rock Star default themes if there is no values\n\tif ( !get_theme_mod('rock_star_theme_options') ) {\n\t\tset_theme_mod( 'rock_star_theme_options', rock_star_get_default_theme_options() );\n\t}\n}", "title": "" }, { "docid": "bddcc3106eca2352f3bbd7bf5d2d6a09", "score": "0.6393842", "text": "function delete_unique_menu_transients() {\n\n\tif (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {\n\t\treturn;\n\t}\n\n global $wpdb;\n\n // The main menu transient prefix\n $prefix = esc_sql('main_menu_');\n\n $options = $wpdb->options;\n\n $t = esc_sql(\"_transient_$prefix%\");\n\n $sql = $wpdb->prepare(\n \"\n SELECT option_name\n FROM $options\n WHERE option_name LIKE '%s'\n \",\n $t\n );\n\n $transients = $wpdb->get_col($sql);\n\n // For each transient...\n foreach($transients as $transient) {\n\n // Strip away the WordPress prefix in order to arrive at the transient key.\n $key = str_replace('_transient_', '', $transient);\n\n // Now that we have the key, use WordPress core to the delete the transient.\n delete_transient($key);\n }\n\n // Also flush the object cache\n wp_cache_flush();\n\n}", "title": "" }, { "docid": "8ba7bec08b40ac288f8f0d8e2763346f", "score": "0.6369342", "text": "function my_delete_transient()\n{\n delete_transient('locations_update_geodata');\n}", "title": "" }, { "docid": "446b1a500c28256ab1eb6cf6e3202875", "score": "0.63134116", "text": "function rock_star_flush_category_transients(){\n\tdelete_transient( 'all_the_cool_cats' );\n}", "title": "" }, { "docid": "5d1c3cca7e0941be990f3bd078d175a3", "score": "0.6243459", "text": "function pewc_reset_all_transients( $force_reset = false ) {\n\n\tif( isset( $_GET['pewc_delete_transients'] ) || $force_reset ) {\n\n\t\tglobal $wpdb;\n\t\t$sql = 'DELETE FROM ' . $wpdb->options . ' WHERE option_name LIKE \"_transient_pewc_%\"';\n\t\t$wpdb->query( $sql );\n\n\t\t$sql = 'DELETE FROM ' . $wpdb->options . ' WHERE option_name LIKE \"_transient_timeout_pewc_%\"';\n\t\t$wpdb->query( $sql );\n\n\t\t$sql = 'DELETE FROM ' . $wpdb->options . ' WHERE option_name LIKE \"_transient_pewc_rules_%\"';\n\t\t$wpdb->query( $sql );\n\n\t}\n\n}", "title": "" }, { "docid": "09348c8e8d97535483c49c4e69e6cda2", "score": "0.6225659", "text": "function delete_menu_transients() {\n\n\tif (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {\n\t\treturn;\n\t}\n\n delete_transient('main_menu_query');\n}", "title": "" }, { "docid": "4ed5accb8f1819c841bc974548a2eb4b", "score": "0.611299", "text": "final public function delete_transient( $transient ) {\n\t\t\tdo_action( 'delete_post_transient_' . $transient, $transient, $this->ID );\n\n\t\t\tif ( wp_using_ext_object_cache() ) {\n\t\t\t\t$result = wp_cache_delete( \"{$transient}-{$this->ID}\", 'post_transient' );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$result = delete_post_meta( $this->ID, \"_transient_{$transient}\" );\n\t\t\t\tif ( $result )\n\t\t\t\t\tdelete_post_meta( $this->ID, \"_transient_timeout_{$transient}\" );\n\t\t\t}\n\n\t\t\tif ( $result )\n\t\t\t\tdo_action( 'deleted_post_transient', $transient );\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "0614ff82c958bd708f0da556d2b78257", "score": "0.6103506", "text": "private function delete_plugins_redirect_transients() {\n\t\t$transients = array(\n\t\t\t'wpforms_activation_redirect',\n\t\t\t'_tribe_events_activation_redirect',\n\t\t);\n\n\t\tforeach ( $transients as $transient ) {\n\t\t\t$response = delete_transient( $transient );\n\t\t}\n\t}", "title": "" }, { "docid": "db971e55cafa41a700ad4844bbd2cd81", "score": "0.6052963", "text": "public function delete_transient($grid_name) {\r\n\t\t\r\n\t\tglobal $wpdb;\r\n\t\t\r\n\t\t// transient SQL\r\n\t\t$sql = \"SELECT `option_name` AS `name`, `option_value` AS `value`\r\n\t\t\t\tFROM $wpdb->options\r\n\t\t\t\tWHERE `option_name` LIKE '%transient_%'\r\n\t\t\t\tORDER BY `option_name`\";\r\n\t\t\t\t\r\n\t\t$results = $wpdb->get_results($sql);\r\n\t\t$transients = array();\r\n\t\t\r\n\t\t// loop through each transient option\r\n\t\tforeach ($results as $result) {\r\n\t\t\t// if transient option name matched then delete it\r\n\t\t\tif (strpos($result->name, $grid_name)) {\r\n\t\t\t\t$name = str_replace('_transient_','',$result->name);\r\n\t\t\t\tdelete_transient($name);\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bb78b8d0ff22704473de7a04311b9e56", "score": "0.5902259", "text": "function delete_cache() {\n\t\tif ( 'plugins' === get_current_screen()->id && isset($_SERVER['QUERY_STRING']) && 'plugin_status=mustuse' === $_SERVER['QUERY_STRING'] ){\n\t\t\tdelete_site_transient( 'subdir_wpmu_plugins' );\n\t\t}\n\t}", "title": "" }, { "docid": "363f938fdaee2205d9eb0af769e0780f", "score": "0.5883128", "text": "function ninja_forms_clear_transient() {\n\tninja_forms_delete_transient();\n}", "title": "" }, { "docid": "244c4cff79b8ca6fc81f6772f266e959", "score": "0.5859922", "text": "function delete_async_transient( $transient ) {\n\treturn Transient::instance()->delete( $transient );\n}", "title": "" }, { "docid": "ef14afeba89853a1c66f3ad6308012c1", "score": "0.58435", "text": "function category_transient_flusher() {\n // Like, beat it. Dig?\n delete_transient('all_cats');\n}", "title": "" }, { "docid": "1d73527533acfbeb29980a879c555ecd", "score": "0.5810859", "text": "public function on_plugin_uninstall(): void {\n\t\tif ( wp_using_ext_object_cache() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! is_multisite() ) {\n\t\t\t$this->delete_transients();\n\t\t\treturn;\n\t\t}\n\n\t\t$this->delete_network_transients();\n\t\t$site_ids = get_sites(\n\t\t\t[\n\t\t\t\t'fields' => 'ids',\n\t\t\t\t'number' => 0,\n\t\t\t\t'update_site_cache' => false,\n\t\t\t\t'update_site_meta_cache' => false,\n\t\t\t]\n\t\t);\n\n\t\tforeach ( $site_ids as $site_id ) {\n\t\t\t// phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.switch_to_blog_switch_to_blog\n\t\t\tswitch_to_blog( $site_id );\n\n\t\t\t$this->delete_transients();\n\t\t}\n\n\t\trestore_current_blog();\n\t}", "title": "" }, { "docid": "053d582672339c12bc71063732f75317", "score": "0.5809032", "text": "function noctilucent_category_transient_flusher() {\n\t// Like, beat it. Dig?\n\tdelete_transient( 'all_the_cool_cats' );\n}", "title": "" }, { "docid": "0c8bc7f245ecc67070faf573d8b4f42d", "score": "0.5764024", "text": "function viral_news_category_transient_flusher() {\n if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {\n return;\n }\n // Like, beat it. Dig?\n delete_transient('viral_news_categories');\n}", "title": "" }, { "docid": "3f025c1906d78a9acccafed70e659e3d", "score": "0.57515484", "text": "function molecular_category_transient_flusher() {\n\t// Like, beat it. Dig?\n\tdelete_transient( 'all_the_cool_cats' );\n}", "title": "" }, { "docid": "80eecf92f7fb619bc2c8c96a7a9f6aac", "score": "0.5726631", "text": "function hobbes_category_transient_flusher() {\r\n // Like, beat it. Dig?\r\n delete_transient( 'hobbes_categories' );\r\n}", "title": "" }, { "docid": "e7ec5f118dfe1fcb9ff22272547a7dbe", "score": "0.5702932", "text": "function delete_ao_transient( $post_id, $post ) {\r\n\t\tif ( 'profile_cct' !== $post->post_type ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdelete_transient( $this->transient_key );\r\n\t}", "title": "" }, { "docid": "8e724e6a99bd7b856fde37fcd452b8eb", "score": "0.56675965", "text": "public static function delete_font_transients() {\r\n\t\t\tdelete_transient( 'tt_font_default_fonts' );\r\n\t\t\tdelete_transient( 'tt_font_google_fonts_list' );\r\n\t\t\tdelete_transient( 'tt_font_google_fonts' );\r\n\t\t}", "title": "" }, { "docid": "3fc063529a3309385e4d5a06e3443f79", "score": "0.56437093", "text": "function tidy_category_transient_flusher() {\n\t// Like, beat it. Dig?\n\tdelete_transient( 'all_the_cool_cats' );\n}", "title": "" }, { "docid": "30067f087ea7b20e3b79177f90d1bf99", "score": "0.5612401", "text": "function tdwriter_category_transient_flusher() {\n\tdelete_transient( 'all_the_cool_cats' );\n}", "title": "" }, { "docid": "f3dccb566ffb7405c9420389c9d22bbc", "score": "0.5611087", "text": "static public function uninstall_removedata () {\n\t\tglobal $wpdb ;\n\t\t// DELETE OPTIONS\n\t\tdelete_option('my_plugin'.'_options') ;\n\t\tif (is_multisite()) {\n\t\t\tdelete_site_option('my_plugin'.'_options') ;\n\t\t}\n\t\t\n\t\t// DELETE SQL\n\t\tif (function_exists('is_multisite') && is_multisite()){\n\t\t\t$old_blog = $wpdb->blogid;\n\t\t\t$old_prefix = $wpdb->prefix ; \n\t\t\t// Get all blog ids\n\t\t\t$blogids = $wpdb->get_col($wpdb->prepare(\"SELECT blog_id FROM \".$wpdb->blogs));\n\t\t\tforeach ($blogids as $blog_id) {\n\t\t\t\tswitch_to_blog($blog_id);\n\t\t\t\t$wpdb->query(\"DROP TABLE \".str_replace($old_prefix, $wpdb->prefix, $wpdb->prefix . \"pluginSL_\" . 'my_plugin')) ; \n\t\t\t}\n\t\t\tswitch_to_blog($old_blog);\n\t\t} else {\n\t\t\t$wpdb->query(\"DROP TABLE \".$wpdb->prefix . \"pluginSL_\" . 'my_plugin' ) ; \n\t\t}\n\t\t\n\t\t// DELETE FILES if needed\n\t\t//SLFramework_Utils::rm_rec(WP_CONTENT_DIR.\"/sedlex/my_plugin/\"); \n\t\t$plugins_all = \tget_plugins() ; \n\t\t$nb_SL = 0 ; \t\n\t\tforeach($plugins_all as $url => $pa) {\n\t\t\t$info = pluginSedlex::get_plugins_data(WP_PLUGIN_DIR.\"/\".$url);\n\t\t\tif ($info['Framework_Email']==\"[email protected]\"){\n\t\t\t\t$nb_SL++ ; \n\t\t\t}\n\t\t}\n\t\tif ($nb_SL==1) {\n\t\t\tSLFramework_Utils::rm_rec(WP_CONTENT_DIR.\"/sedlex/\"); \n\t\t}\n\t}", "title": "" }, { "docid": "b84210edd1e071bd3e470462b81df0b2", "score": "0.55975956", "text": "public function _deleteAll()\n {\n $identity = $this->session->get('auth-identity');\n $identityChild = $this->session->get('subdomain-child');\n if (!empty($identity)) {\n if (!empty($identityChild)) {\n $subdomainChildId = $identityChild['subdomain_id'];\n $redisSubchilds = $this->redis->keys('*sub'. $subdomainChildId .':*');\n if (!empty($redisSubchilds)) {\n $this->redis->del($redisSubchilds);\n }\n\n if ($identity['subdomain_id'] != $identityChild['subdomain_id']) {\n $subdomainId = $identity['subdomain_id'];\n $redisSubs = $this->redis->keys('*sub'. $subdomainId .':*');\n if (!empty($redisSubs)) {\n $this->redis->del($redisSubs);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "b32c432ce29d3490322b1d79083086da", "score": "0.5564527", "text": "public function uninstall()\n {\n // Clear any persistent data set by plugin.\n Persistence::deleteAll();\n }", "title": "" }, { "docid": "36b98e6837931e479a7bb53e8738da47", "score": "0.5551563", "text": "public function deleteAllSeobility()\n {\n Seo::deleteAll($this->owner);\n }", "title": "" }, { "docid": "f387d564b83755518c63492f8f8ab488", "score": "0.5550649", "text": "function gridbox_flush_magazine_post_ids() {\r\n\tdelete_transient( 'gridbox_magazine_post_ids' );\r\n}", "title": "" }, { "docid": "33d5e4de8538b11057861af32657720a", "score": "0.5544545", "text": "function pk_stt2_db_cleanup( $days ){\n\tglobal $wpdb;\n\t$result = $wpdb->query('DELETE FROM '.$wpdb->prefix.'stt2_meta WHERE (meta_count < 10) AND (date(last_modified) < date(now()-interval '.$days.' day));');\n\t$opt = $wpdb->query('OPTIMIZE TABLE '.$wpdb->prefix.'stt2_meta;');\n\treturn $result;\n}", "title": "" }, { "docid": "d2a4fac9a6d07ade5a55e08498f21bbe", "score": "0.5498431", "text": "public static function uninstall() {\n\t\tforeach ( self::$registry as $template => $instance ) {\n\t\t\t$page_id = self::_get_page_id( $template );\n\n\t\t\tif ( ! $page_id ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\twp_delete_post( $page_id, true );\n\n\t\t\t$instance->page_id = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "7a7e0c4ec5f5f9421bd5bbdbb4037de9", "score": "0.5472484", "text": "function sheru_category_transient_flusher() {\n if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\n return;\n }\n // Like, beat it. Dig?\n delete_transient( 'sheru_categories' );\n}", "title": "" }, { "docid": "6d3dbf591ca7a6f2dd0ce2495d163930", "score": "0.5468838", "text": "function writ_category_transient_flusher() {\n\t// Like, beat it. Dig?\n\tdelete_transient( 'all_the_cool_cats' );\n}", "title": "" }, { "docid": "c33c1b5b498244c557a589cc676408a8", "score": "0.546134", "text": "function uninstall()\n{\n global $wpdb;\n\n if (is_multisite()) {\n if (isset($_GET['networkwide']) && ($_GET['networkwide'] == 1)) {\n $current_blog = $wpdb->blogid;\n $blogids = $wpdb->get_col('SELECT blog_id FROM '.$wpdb->blogs);\n foreach ($blogids as $blog_id) {\n switch_to_blog($blog_id);\n uninstall_for_current_blog();\n }\n switch_to_blog($current_blog);\n } else {\n activate_for_current_blog();\n }\n } else {\n uninstall_for_current_blog();\n }\n}", "title": "" }, { "docid": "706dfd05bbd5408496ff6a140c4b58e2", "score": "0.5455011", "text": "public static function uninstall() {\n\n\t\tforeach ( [ 'genres-mpte', 'actors-mpte' ] as $taxonomy ) {\n\t\t\t$terms = get_terms( $taxonomy, [\n\t\t\t\t'hide_empty' => false,\n\t\t\t\t'fields' => 'ids',\n\t\t\t] );\n\n\t\t\tforeach ( $terms as $term_id ) {\n\t\t\t\twp_delete_term( $term_id, $taxonomy );\n\t\t\t}\n\t\t}\n\n\t\t$posts = get_posts([\n\t\t\t'post_type' => 'mpte',\n\t\t\t'post_status' => 'all',\n\t\t\t'showposts' => -1,\n\t\t\t'fields' => 'ids',\n\t\t]);\n\n\t\tforeach ( $posts as $post_id ) {\n\t\t\twp_delete_post( $post_id, true );\n\t\t}\n\n\t}", "title": "" }, { "docid": "50fc34487d3de4ce0d99f8ffed11add2", "score": "0.5425321", "text": "function publish_data_delete_db($params)\n {\n foreach($params['entry_ids'] as $i => $entry_id)\n {\n $this->EE->db->where('entry_id', $entry_id);\n $this->EE->db->delete('seolite_content');\n }\n }", "title": "" }, { "docid": "556d50e6826a14f287073317b9b1a3d2", "score": "0.54090446", "text": "function drush_provision_cdn_provision_delete() {\n if (d()->type === 'site') {\n d()->service('cdn')->delete_config('site');\n }\n}", "title": "" }, { "docid": "849679ffa69cb20603ee08c61ce9187d", "score": "0.5387184", "text": "function wikilv_delete_instance($id) {\n global $DB;\n\n if (!$wikilv = $DB->get_record('wikilv', array('id' => $id))) {\n return false;\n }\n\n $result = true;\n\n # Get subwikilv information #\n $subwikilvs = $DB->get_records('wikilv_subwikilvs', array('wikilvid' => $wikilv->id));\n\n foreach ($subwikilvs as $subwikilv) {\n # Get existing links, and delete them #\n if (!$DB->delete_records('wikilv_links', array('subwikilvid' => $subwikilv->id), IGNORE_MISSING)) {\n $result = false;\n }\n\n # Get existing pages #\n if ($pages = $DB->get_records('wikilv_pages', array('subwikilvid' => $subwikilv->id))) {\n foreach ($pages as $page) {\n # Get locks, and delete them #\n if (!$DB->delete_records('wikilv_locks', array('pageid' => $page->id), IGNORE_MISSING)) {\n $result = false;\n }\n\n # Get versions, and delete them #\n if (!$DB->delete_records('wikilv_versions', array('pageid' => $page->id), IGNORE_MISSING)) {\n $result = false;\n }\n }\n\n # Delete pages #\n if (!$DB->delete_records('wikilv_pages', array('subwikilvid' => $subwikilv->id), IGNORE_MISSING)) {\n $result = false;\n }\n }\n\n # Get existing synonyms, and delete them #\n if (!$DB->delete_records('wikilv_synonyms', array('subwikilvid' => $subwikilv->id), IGNORE_MISSING)) {\n $result = false;\n }\n\n # Delete any subwikilvs #\n if (!$DB->delete_records('wikilv_subwikilvs', array('id' => $subwikilv->id), IGNORE_MISSING)) {\n $result = false;\n }\n }\n\n # Delete any dependent records here #\n /** @lvs remove notas, avaliações e configuração do wikilv */\n $cursolv = new Moodle2CursoLv($wikilv->course);\n $gerenciadorWikis = new WikisLv( new Moodle2CursoLv($wikilv->course) );\n $cursolv->getGerenciador('wikilv')->removerAtividade($wikilv->id);\n // lvs fim\n \n if (!$DB->delete_records('wikilv', array('id' => $wikilv->id))) {\n $result = false;\n }\n\n return $result;\n}", "title": "" }, { "docid": "1957798f489007441fe868f30dd812f8", "score": "0.5387107", "text": "public function deleteAll() {\n Cache::forget($this->entity);\n }", "title": "" }, { "docid": "7355cc6b90f6db59956f9782c86983c7", "score": "0.5383148", "text": "public static function uninstall() : void\n {\n if (static::bundle() === null) return;\n\n\n // Chunk delete\n static::all()->chunk(200, function(Collection $nodes)\n {\n $node_ids = $nodes->map(\n function(Node $node) { return $node->id(); }\n );\n\n node_delete_multiple($node_ids);\n });\n\n\n static::uninstall_fields();\n\n\n node_type_delete(static::bundle());\n\n field_purge_batch(1000);\n }", "title": "" }, { "docid": "71c7830cfc1cf6fcec7eaffd78c62cf2", "score": "0.53623915", "text": "function fromphorum_delete_metas()\n{\n\tglobal $spipbb_fromphorum;\n\n\tif (isset($GLOBALS['meta']['spipbb_fromphorum']) or isset($GLOBALS['spipbb_fromphorum'])) {\n\t\tinclude_spip('inc/meta');\n\t\teffacer_meta('spipbb_fromphorum');\n\t\tecrire_metas();\n\t\tunset($GLOBALS['spipbb_fromphorum']);\n\t\tunset($GLOBALS['meta']['spipbb_fromphorum']);\n\t\tunset($spipbb_fromphorum);\n\t\tspipbb_log('OK',3,\"A_fp_delete_metas\");\n\t}\n}", "title": "" }, { "docid": "1865c4fa3d0c2d8dc7cdca134b6b2add", "score": "0.5332019", "text": "public function delete()\r\n {\r\n $db = DB::connect();\r\n\r\n $db->exec(\"DELETE FROM inlink WHERE url LIKE '%$this->domain%'\");\r\n $db->exec(\"DELETE FROM page_data WHERE page_id IN (SELECT id FROM page WHERE url LIKE '%$this->domain%')\");\r\n $db->exec(\"DELETE FROM page WHERE url LIKE '%$this->domain%'\");\r\n $db->exec(\"DELETE FROM site WHERE id = $this->id LIMIT 1\");\r\n }", "title": "" }, { "docid": "36c37cc9a3c4b5c2a7d1633ba104a35f", "score": "0.5316458", "text": "public function delete() {\n $time = time();\n $this->gatsbyLogger->deleteExpiredLoggedEntities($time);\n\n // Store the log time in order to validate future syncs.\n $this->state->set('gatsby_fastbuilds.last_logtime', $time);\n }", "title": "" }, { "docid": "acab218b5a96f893f912c554dea5436d", "score": "0.53040946", "text": "private function purgeOrphanTags() {\n $orphan_taxonomy = new SQLExecutor($GLOBALS['cli']->dbconn);\n $orphan_taxonomy->sql(\"DELETE FROM taxonomy WHERE taxonomy.aid NOT IN (SELECT article.aid FROM article)\")->run(TRUE);\n }", "title": "" }, { "docid": "c2e743509aa0014112eb8e0851c9124d", "score": "0.53032124", "text": "function n41_recipes_delete_images(){\n\tglobal $wpdb;\n\t$postmetas = $wpdb->get_results(\n \"SELECT * FROM $wpdb->postmeta WHERE meta_key = 'n41_recipes'\");\n\t// booléen pour indiquer à la fonction wp_delete_post, la suppression des fichiers\n\t// et la suppression des informations dans les tables posts et postmeta\n\t$force_delete = true;\n\tforeach ($postmetas as $postmeta) {\n\t\tif ($postmeta->meta_value === 'img') {\n\t\t\twp_delete_post( $postmeta->post_id, $force_delete );\n\t\t}\n\t}\n}", "title": "" }, { "docid": "4e054a05619cf45e4e2617ceb151098d", "score": "0.5301674", "text": "function trac_embeds_uninstall() {\n\tif ( trac_embeds_get_post_id() ) {\n\t\twp_delete_post( trac_embeds_get_post_id() );\n\t}\n\n\tdelete_option( 'trac_embeds_post_id' );\n}", "title": "" }, { "docid": "4d6022c9281613e3b84ac3d1973016da", "score": "0.529353", "text": "public function cleanupRunsheetTeasers()\n {\n $storage = \\Drupal::entityTypeManager()->getStorage('runsheet_teaser');\n $ids = $storage->getQuery()->condition('title', 'teaser', 'STARTS_WITH')->execute();\n $entities = $storage->loadMultiple($ids);\n $storage->delete($entities);\n }", "title": "" }, { "docid": "3c1adaffe3dfb9c93cdba9ad53b64de2", "score": "0.5290275", "text": "public function ensureSiteRemoved() {\n if ($this->siteIsEnabled()) {\n $this->ensureSiteDisabled();\n $this->restart();\n }\n $this->site['system']->ensureDeleted($site['server.host_conf_path']);\n }", "title": "" }, { "docid": "93d2ef1853163965bdd936ce7ae5555c", "score": "0.5289865", "text": "public function delete_all_posts() {\n\t\t\t\n\t\t\t// get all table name from current site\n\t\t\t$sql = \"SHOW TABLES LIKE '%'\";\n\t\t\t$results = self::$curr_dbhandler->get_results( $sql, ARRAY_A );\n\t\t\t\n\t\t\tfor ( $i = 0; $i < count($results); $i++ ) {\n\t\t\t\n\t\t\t\tforeach ( $results[$i] as $table_name ) {\n\t\t\t\t\t\n\t\t\t\t\t$check_table = $this->check_table( $table_name );\n\t\t\t\t\t\t\n\t\t\t\t\tif ( $check_table ) {\n\t\t\t\t\t\n\t\t\t\t\t\techo \"deleting content from : $table_name<br>\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t$sql = \"DELETE FROM \" . $table_name;\n\t\t\t\t\t\tself::$db_conn->query( $sql ) or print(\"failed to delete the content from $table_name table<br>\");\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}", "title": "" }, { "docid": "cf77083432e3cdae3ea5bb104aaed686", "score": "0.5286136", "text": "public function delete()\n {\n $this->delete_cache();\n $this->update_sitemap();\n \n parent::delete();\n }", "title": "" }, { "docid": "971ff094603532d1089a9308f4469cd3", "score": "0.52823967", "text": "function weepeeswiss_category_transient_flusher() {\n\t// Like, beat it. Dig?\n\tdelete_transient( 'weepeeswiss_category_count' );\n}", "title": "" }, { "docid": "da6630b19921a0c7709cd833813667b8", "score": "0.5277749", "text": "function pippin_clear_caches_on_save($post_id) {\n\tif(get_post_type($post_id) == 'notices') {\n\t\tdelete_transient('pippin_notices');\n\t}\n}", "title": "" }, { "docid": "95a68a22a7be734d27e5de1b1915b1ca", "score": "0.52692145", "text": "public function delete_notice() {\n\n\t\t$notice = get_transient( '_wpmoly_reset_permalinks_notice' );\n\t\tif ( 1 !== $notice ) {\n\t\t\tdelete_transient( '_wpmoly_reset_permalinks_notice' );\n\t\t}\n\t}", "title": "" }, { "docid": "cea1f71e59e15d59eeda2096488e79e5", "score": "0.52665645", "text": "public function cleanup_import() {\n\n\t\twp_suspend_cache_invalidation( false );\n\t\twp_cache_flush();\n\n\t}", "title": "" }, { "docid": "85580f66cd0cb6cff6f6d4540fe5008e", "score": "0.5266481", "text": "function fromphpbb_delete_metas()\n{\n\tglobal $spipbb_fromphpbb;\n\n\tif (isset($GLOBALS['meta']['spipbb_fromphpbb']) or isset($GLOBALS['spipbb_fromphpbb'])) {\n\t\tinclude_spip('inc/meta');\n\t\teffacer_meta('spipbb_fromphpbb');\n\t\tecrire_metas();\n\t\tunset($GLOBALS['spipbb_fromphpbb']);\n\t\tunset($GLOBALS['meta']['spipbb_fromphpbb']);\n\t\tunset($spipbb_fromphpbb);\n\t\tspipbb_log('OK',3,\"A_f_delete_metas\");\n\t}\n}", "title": "" }, { "docid": "4a53154d636f005082a890e0b36a26db", "score": "0.5258653", "text": "function wpstarter_category_transient_flusher() {\n\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\n\t\treturn;\n\t}\n\t// Like, beat it. Dig?\n\tdelete_transient( 'wpstarter_categories' );\n}", "title": "" }, { "docid": "cc531fb0f9efa5bb241425d66d964881", "score": "0.525718", "text": "protected function deleteSiteState() {\n return $this->siteState->deleteMultiple($this->siteStateKeys);\n }", "title": "" }, { "docid": "ffb21e66542dec59e34e6e5cb5b2910b", "score": "0.52563936", "text": "public function deleteMulti() {}", "title": "" }, { "docid": "3cbd06740847ebde199953c7877c3739", "score": "0.5255204", "text": "public function deleteForce(array $ids): void\n {\n $records = $this->makeQuery()->withTrashed()->whereIn('id', $ids)->get();\n\n foreach ($records as $record) {\n /** @var HCGalleryCategory $record */\n $record->translations()->forceDelete();\n $record->forceDelete();\n }\n }", "title": "" }, { "docid": "e0483cad1f1ddb183b8a074d14c4432f", "score": "0.523252", "text": "function maizi_category_transient_flusher() {\r\n\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\r\n\t\treturn;\r\n\t}\r\n\t// Like, beat it. Dig?\r\n\tdelete_transient( 'maizi_categories' );\r\n}", "title": "" }, { "docid": "21c2f391a10d3cb45aef00f4a9477423", "score": "0.5229608", "text": "public function deleteAllSettings();", "title": "" }, { "docid": "430fe6a67c0ff0d62b8267708f09367e", "score": "0.52217084", "text": "public function __destruct() {\n\t\tglobal $CONFIG;\n\n\t\tforeach ($this->entities as $e) {\n\t\t\t$e->delete();\n\t\t}\n\n\t\t// manually remove subtype entries since there is no way\n\t\t// to using the API.\n\t\t$subtype_arr = array();\n\t\tforeach ($this->subtypes as $type => $subtypes) {\n\t\t\tforeach ($subtypes as $subtype) {\n\t\t\t\tremove_subtype($type, $subtype);\n\t\t\t}\n\t\t}\n\n\t\tparent::__destruct();\n\t}", "title": "" }, { "docid": "870fb12e2c54fabd2e72910e2ccc09e4", "score": "0.5219895", "text": "public function __destruct() {\n if (rand(0,999) == 500) {\n // delete all temporary entries that are more then an hour old\n mysql_query($this->db, \"delete from storage where key like '%:nonce%' and created < \".time() - 60 * 60);\n mysql_query($this->db, \"delete from storage where key like '%:originalUrl%' and created < \".time() - 60 * 60);\n }\n }", "title": "" }, { "docid": "f9ba1051629c84ee449833a2156bf6af", "score": "0.5211692", "text": "function studynotes_delete_instance($id) {\n\n if (! $studynotes = get_record(\"studynotes\", \"id\", \"$id\")) {\n return false;\n }\n\n $result = true;\n\n # Delete any dependent records here #\n\n if (! delete_records(\"studynotes\", \"id\", \"$studynotes->id\")) {\n $result = false;\n }\n\n return $result;\n}", "title": "" }, { "docid": "6d5699d3c1fee5c215e24f5701bfb840", "score": "0.5207937", "text": "public function cleanup()\n {\n $this->deleteAllTermsEntityStep->run();\n }", "title": "" }, { "docid": "adc83464c9edb5a28cf28a05e9377352", "score": "0.52045393", "text": "public function delete()\n {\n // Remove all children categories\n foreach($this->children() as $category) {\n $category->delete();\n }\n\n // Remove all containing media\n foreach($this->media as $media) {\n $media->delete();\n }\n\n\n parent::delete();\n }", "title": "" }, { "docid": "0bb80958cea0229476acf4877f73f978", "score": "0.5204539", "text": "function unplugged_category_transient_flusher() {\n\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\n\t\treturn;\n\t}\n\t// Like, beat it. Dig?\n\tdelete_transient( 'unplugged_categories' );\n}", "title": "" }, { "docid": "39070f0420dd03c131f25ecd8012c625", "score": "0.51877695", "text": "function lucid_slider_delete_all_posts() {\n\t$posts = get_posts( array(\n\t\t'numberposts' => -1,\n\t\t'post_type' => Lucid_Slider_Core::get_post_type_name(),\n\t\t'post_status' => 'any'\n\t) );\n\n\tif ( is_array( $posts ) ) :\n\t\tforeach ( $posts as $post )\n\t\t\twp_delete_post( $post->ID, true );\n\tendif;\n}", "title": "" }, { "docid": "e45fe95880b5012009bed1510d156276", "score": "0.5185162", "text": "public function delete()\n\t{\n\t\t\\IPS\\Lang::deleteCustom( 'core', $this->configuration['language_key'] );\n\t}", "title": "" }, { "docid": "4813f69039bc89edef461d9d895aed26", "score": "0.5177536", "text": "function uninstall()\n\t{\n\t\t$GLOBALS['SITE_DB']->drop_if_exists('activities');\n\t}", "title": "" }, { "docid": "c74bb1ca1e18ce08abfc23c31dc95dd7", "score": "0.5161228", "text": "function nanogong_delete_instance($id) {\n if (! $nanogong = get_record(\"nanogong\", \"id\", \"$id\")) {\n return false;\n }\n\n $result = true;\n\n # Delete any dependent records here #\n\n if (!delete_records(\"nanogong\", \"id\", \"$nanogong->id\")) {\n $result = false;\n }\n if ($nanogong_messages = get_records(\"nanogong_message\", \"nanogongid\", \"$nanogong->id\")) {\n global $CFG;\n foreach ($nanogong_messages as $nanogong_message) {\n $soundfile = $CFG->dataroot.$nanogong_message->path;\n if (file_exists($soundfile)) unlink($soundfile);\n }\n }\n if (!delete_records(\"nanogong_message\", \"nanogongid\", \"$nanogong->id\")) {\n $result = false;\n }\n\n return $result;\n}", "title": "" }, { "docid": "a1a0128459fc0c4452639432aed37358", "score": "0.51578295", "text": "public function dontHaveTransientInDatabase($transient)\n {\n $this->dontHaveOptionInDatabase('_transient_' . $transient);\n }", "title": "" }, { "docid": "1d573c5099ec8bab7cb2369a1e86396a", "score": "0.5141977", "text": "public function DestroyPersistence();", "title": "" }, { "docid": "36f1f59cd2e2beb91725de1e1c56350c", "score": "0.51405287", "text": "public function clear_transients( $post_id, $prefix, $settings ) {\n\t\tif ( isset( $_POST['ibx_wpfomo_conversions_source'] ) && 'edd' == $_POST['ibx_wpfomo_conversions_source'] ) {\n\t\t\tdelete_transient( 'ibx_wpfomo_edd_orders_' . $post_id );\n\n\t\t\t// cache data.\n\t\t\t$this->get_data( $post_id, $settings );\n\t\t}\n\t}", "title": "" }, { "docid": "8196f87c48b8973a6c03a76e0bdf9d37", "score": "0.5133215", "text": "function eliminar_productos_n_web() {\n\tglobal $wpdb;\n\n\t$productos = $_POST['productos'];\n\n\tfor ($i=0; $i < count($productos); $i++) { \n\t\t/*\n\t\t$wpdb->delete( \"{$wpdb->prefix}posts\", array( 'ID' => $productos[$i] ) );\n\t\t$wpdb->delete( \"{$wpdb->prefix}mis_productos\", array( 'wp' => $productos[$i] ) );\n\t\t*/\n\t\t$wpdb->update( \n\t\t\t\t\"{$wpdb->prefix}posts\",\n\t\t\t\tarray( \n\t\t\t\t\t'post_status' \t=> 'trash' \n\t\t\t\t), \n\t\t\t\tarray( \n\t\t\t\t\t'ID' \t=> $productos[$i]\n\t\t\t\t)\n\t\t\t);\n\n\t\techo \"**Eliminado el producto {$productos[$i]} ***\";\n\t}\n\n\twp_die();\n}", "title": "" }, { "docid": "ef0fea3269bedc8f94f84168f75d03ff", "score": "0.51294374", "text": "public static function uninstall() {\n\n\t\tif ( is_multisite() ) {\n\t\t\tdelete_network_option( null, 'editor-options-replace' );\n\t\t\tdelete_network_option( null, 'tinymce-editor-allow-sites' );\n\t\t}\n\n\t\tdelete_option( 'editor-options-replace' );\n\t\tdelete_option( 'editor-options-allow-users' );\n\t}", "title": "" }, { "docid": "61480bde847c4ff4a4751cb0b2418728", "score": "0.51275736", "text": "function _delete_all_posts()\n {\n }", "title": "" }, { "docid": "475f1cbe59c0f4298ca22745e171f148", "score": "0.5120884", "text": "function delete_cache() {\n //empty cache first\n if ($this->has_theme) {\n $c_dir = get_option(\"imagestorage_path\");\n if ($c_dir) {\n foreach (glob($c_dir . '*') AS $filename) {\n @unlink($filename);\n }\n }\n }\n\n if ($this->has_plugin)\n $this->STWWT_cache_emptyCache_plugin(false);\n \n //clear portfolio cache\n if($this -> has_portfolio_plugin){\n\n\t\t\t$dir_c= WPPortfolio_getThumbPathActualDir();\n\t\t\tif ($dir_c) {\n foreach (glob($dir_c . '*') AS $filename) {\n @unlink($filename);\n }\n\t\t\t\n\t\t}\n\t}\n\t\t\t\n\t\t\t\n }", "title": "" }, { "docid": "64077f964d4b818b07e7d34de1e0347b", "score": "0.51151", "text": "public function deleteImages()\n {\n foreach($this->images()->get() as $image)\n {\n $image->delete();\n }\n }", "title": "" }, { "docid": "7bd06c730dc5a37939a130f9c317f5e5", "score": "0.51089215", "text": "function remove_service_meta() {\n}", "title": "" }, { "docid": "02517efaef2966368ee00c24f1b5b0a3", "score": "0.51065755", "text": "function jclic_delete_instance($id) {\n/// this function will permanently delete the instance \n/// and any data that depends on it.\n\n\n if (! $jclic = get_record(\"jclic\", \"id\", \"$id\")) {\n return false;\n }\n $result = true;\n \n # Delete any dependent records here #\n $rs = get_record(\"jclic_sessions\", \"jclicid\", \"$id\");\n foreach($rs as $session){\n delete_records(\"jclic_activities\", \"session_id\", \"$rs->session_id\");\n\t }\n\n delete_records(\"jclic_sessions\", \"jclicid\", \"$id\");\n \n if (! delete_records(\"jclic\", \"id\", \"$id\")) {\n $result = false;\n }\n \n \n return $result;\n}", "title": "" }, { "docid": "bc07c884b6a4573d38c572f27dd3d199", "score": "0.51051915", "text": "public function beforeDelete()\n {\n ServerPilot::dbs($this->api_id)->delete();\n }", "title": "" }, { "docid": "83488b4324b1990ab125cea085d843c2", "score": "0.51037776", "text": "public function delete_all_sidebar_instances() {\n\n\t\t\t// Make sure user has the required access level\n\t\t\tif ( ! current_user_can( 'edit_theme_options' ) ) {\n\t\t\t\twp_die( -1 );\n\t\t\t}\n\n\t\t\t// Check admin nonce for security\n\t\t\tcheck_ajax_referer( 'ecs_delete_sidebar_instance', 'ecs_delete_sidebar_instance_nonce' );\n\n\t\t\t// Get posttype data structure\n\t\t\t$data = ECS_Posttype::get_instance();\n\n\t\t\t// Refresh transients and delete all sidebars\n\t\t\tdo_action( 'ecs-trigger-transient-refresh' );\n\t\t\t$data->delete_all_sidebar_instances();\n\n\t\t\t// Kill function and return to client\n\t\t\twp_die();\n\t\t}", "title": "" }, { "docid": "58e3fb986517a44316f2e4558c575629", "score": "0.5100384", "text": "function nsquared_uninstall(){\n\tdelete_option('nsquared_options'); \n\t$page_id = get_option('nsquared_page_id');\n\twp_delete_post( $page_id , true); // this will delete completely, not just trash\n\tdelete_option('nsquared_page_id');\n}", "title": "" }, { "docid": "c15ccbbb335f27ef3f77a78f98eed996", "score": "0.50982565", "text": "public function remove() {\r\n\t\t global $wpdb;\r\n\t\t global $wp_rewrite;\r\n\r\n\t\t \t//Clear out any rewrite rules associated with the plugin\r\n\t\t \t$this->ihfRewriteRules->flushRules();\r\n\t\t \t//Delete the authentication token\r\n\t\t \t$this->ihfAdmin->deleteAuthenticationToken() ;\r\n\t\t \t\r\n\t\t \twp_clear_scheduled_hook( array(IHomefinderCleaner::getInstance(), 'removeExpiredIhfTransients') );\r\n\t\t}", "title": "" }, { "docid": "eebbb8ee834d8a58ef8f0a27a3c18ccd", "score": "0.5096386", "text": "function WPBC_category_transient_flusher() {\n\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\n\t\treturn;\n\t}\n\t// Like, beat it. Dig?\n\tdelete_transient( 'wpbc_categories' );\n}", "title": "" }, { "docid": "925f0c8e6a2112b1ee9905f4c53a9dcf", "score": "0.5092671", "text": "function delete_all_freshfrom_posts() {\r\n\t\tglobal $wpdb;\r\n\t\t$posts = $wpdb->get_results(\"SELECT post_id FROM {$wpdb->postmeta} WHERE meta_key='FreshFrom' AND post_id<>0\");\r\n\t\tif (is_array($posts)) {\r\n\t\t\tforeach ($posts AS $post) {\r\n\t\t\t\t$wp_id = $post->post_id;\r\n\t\t\t\t$this->timelog(\"Deleting post {$wp_id}\");\r\n\t\t\t\t// remove this custom field so this delete does not get picked up by ffff_deleted\r\n\t\t\t\tdelete_post_meta($wp_id, \"_ffff_external_id\");\r\n\t\t\t\twp_delete_post($wp_id);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "5a56e75c32cd3cb98ac372b54c270dbf", "score": "0.50921863", "text": "function cptr_uninstall() {\n\tglobal $wpdb;\n\t$wpdb->query( $wpdb->prepare( \"DELETE FROM $wpdb->postmeta WHERE meta_key = %s\", CI_CPTR_POST_RELATED ) );\n\tdelete_option( CI_CPTR_PLUGIN_OPTIONS );\n}", "title": "" }, { "docid": "995be493aec5d52bda34a17a6298768b", "score": "0.5086073", "text": "function removeAllContent() \n{\n include \"db_config.php\";\n\n $conn = mysqli_connect($servername, $username, $password, $dbname);\n if (!$conn) {\n die(\"MySQL connection failed: \" . mysqli_connect_error());\n }\n \n mysqli_query($conn, \"SET SQL_SAFE_UPDATES = 0;\");\n mysqli_query($conn, \"DELETE FROM content;\");\n mysqli_query($conn, \"SET SQL_SAFE_UPDATES = 1;\");\n\n mysqli_close($conn);\n}", "title": "" }, { "docid": "25b8fc39ad05334c4059f9e1aeb41719", "score": "0.5084303", "text": "public function all() {\n\t\t$this->delete_options( 'site' );\n\t\t$this->delete_user_options( 'site' );\n\n\t\tif ( $this->context->is_network_mode() ) {\n\t\t\t$this->delete_options( 'network' );\n\t\t\t$this->delete_user_options( 'network' );\n\t\t}\n\n\t\twp_cache_flush();\n\t}", "title": "" }, { "docid": "845fc375124950bb51fafe906a0b2b79", "score": "0.5070027", "text": "public function deleteAllImagery()\n\t{\n\t\t$uploads = App::make('Faiz\\Cms\\Uploads\\UploadsInterface');\n\t\t$uploads->deleteByIdType($this->id, $this->getTableName());\n\t}", "title": "" }, { "docid": "4823566f0fdbde08c041288f40d379c7", "score": "0.5069375", "text": "function deleteAllExperience()\n {\n if( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n \n $CVID = $this->ID;\n\n $this->dbInit();\n \n $this->Database->array_query(\n $itemArray,\n \"\n SELECT\n ExperienceID AS ID\n FROM\n eZCV_CVExperienceDict\n WHERE\n CVID='$CVID'\n \" );\n foreach( $itemArray as $item )\n {\n $itemID = $item[\"ID\"];\n $this->Database->query( \"DELETE FROM eZCV_Experience WHERE ID='$itemID'\" );\n $this->Database->query( \"DELETE FROM eZCV_CVExperienceDict WHERE ExperienceID='$itemID'\" );\n $this->update();\n } \n }", "title": "" }, { "docid": "807da36dbafcab13bdacfc0ff9cd8262", "score": "0.50686336", "text": "public function delete()\n {\n $this->request->request(\n sprintf(\n 'organizations/%s/tags/%s/sites?entity=%s',\n $this->org_site_membership->organization->id,\n $this->id,\n $this->org_site_membership->site->id\n ),\n ['method' => 'delete',]\n );\n }", "title": "" }, { "docid": "910c98e56a7641868306995c44e882ff", "score": "0.50532293", "text": "public function clean_translations() {\n $delete = db_delete('i18n_path')\n ->condition('tsid', $this->tsid)\n ->condition('language', array_keys($this->get_translations()), 'NOT IN')\n ->execute();\n }", "title": "" }, { "docid": "5f7f476fc1b1a4724dbd2667dc329ec4", "score": "0.5044237", "text": "function lingotek_batch_disassociate_content($remove_from_TMS) {\n $doc_ids = LingotekSync::getAllLocalDocIds();\n $api = LingotekApi::instance();\n $operations = array();\n\n /*\n //one at a time\n foreach ($doc_ids as $doc_id) {\n $operations[] = array('lingotek_batch_disassociate_content_worker', array($api, $doc_id));\n }\n */\n\n // all at once\n $operations[] = array('lingotek_batch_disassociate_content_worker', array($api, $doc_ids));\n\n\n $operations[] = array('LingotekSync::disassociateAllEntities', array());\n $operations[] = array('LingotekSync::disassociateAllSets', array());\n drupal_set_message(t('All local translations have been disassociated from Lingotek.'));\n\n $batch = array(\n 'title' => t('Disassociating Translations'),\n 'operations' => $operations,\n );\n\n batch_set($batch);\n batch_process('admin/settings/lingotek/settings');\n}", "title": "" } ]
b72e1d07aed61e42e2a32c6a04e814a8
Set the password for a given user This causes the on disk password file to be updated
[ { "docid": "eb0e05c77ad9c315056c00c15ef46d40", "score": "0.6488093", "text": "static public function setPassword(string $sUsername,string $sOldPassword,string $sPassword): void\n\t{\n\t\t//Test old password\n\t\tif(!AuthPluginFile::login($sUsername,$sOldPassword,NULL,NULL)){\n\t\t\tthrow new Exception(\"Old password was incorrect.\");\n\t\t}\t\n\t\t//Set new password \n\t\tif(array_key_exists(strtoupper($sUsername),AuthPluginFile::$aUsers)){\n\t\t\tif(is_null($sPassword)){\n\t\t\t\tAuthPluginFile::$aUsers[strtoupper($sUsername)]['password']=NULL;\n\t\t\t}else{\n\t\t\t\tswitch(config::getValue('security_plugin_file_default_crypt')){\n\t\t\t\t\tcase 'plain':\n\t\t\t\t\t\tAuthPluginFile::$aUsers[strtoupper($sUsername)]['password']='plain-'.$sPassword;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'sha1':\n\t\t\t\t\t\tAuthPluginFile::$aUsers[strtoupper($sUsername)]['password']='sha1-'.sha1($sPassword);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'md5':\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tAuthPluginFile::$aUsers[strtoupper($sUsername)]['password']='md5-'.md5($sPassword);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tAuthPluginFile::_writeOutUserFile();\n\t}", "title": "" } ]
[ { "docid": "617c1c86b860638d634b87f96ec10c6c", "score": "0.7914088", "text": "public function setPassword(\\Gems_User_User $user, $password);", "title": "" }, { "docid": "fe9915cbdc5d91f885777a1fbc945808", "score": "0.71985865", "text": "public function testSetPassword()\n {\n $user = $this->testAddUser();\n\n $this->_backend->setPassword($user, Tinebase_Record_Abstract::generateUID());\n \n $testUser = $this->_backend->getUserById($user, 'Tinebase_Model_FullUser');\n \n $this->assertNotEquals($user->accountLastPasswordChange, $testUser->accountLastPasswordChange);\n }", "title": "" }, { "docid": "a175d9f12f0ff5570738110f29c52635", "score": "0.7139356", "text": "function set_user_password($user, $password) {\n $this->_username = $user;\n $this->_password = $password;\n }", "title": "" }, { "docid": "ecee0d153cab099e510b94e54a74cc37", "score": "0.711707", "text": "public function change_pw()\r\n {\r\n\r\n }", "title": "" }, { "docid": "58fe91ab47ca4e4f02b8fd237a1bdc27", "score": "0.7021286", "text": "public function doChangePwAction($user)\n\t\t{\n\t\t\t$now = date(DATE_RFC2822);\n\t\t\t\n\t\t\t$this->users->save([\n\t\t\t'id'\t\t=> $user['id'],\n\t\t\t'password'\t=> password_hash($user['password'], PASSWORD_DEFAULT),\n\t\t\t'updated'\t=> $now,\n\t\t]);\n\t\t}", "title": "" }, { "docid": "4ea9d181cd1c07a02a2c583ae0b2b24c", "score": "0.70209295", "text": "public function updatePassword($user, $new_password);", "title": "" }, { "docid": "1fa7a7a240e629ab014986b117dbe374", "score": "0.6989714", "text": "public function changeUserPassword($userName, $newPassword);", "title": "" }, { "docid": "08ac20149d087ee42d142c58afafcea2", "score": "0.69838643", "text": "public function testSetPassword()\n {\n // add smtp user\n $user = $this->testAddUser();\n \n $this->_backend->setPassword($user, Tinebase_Record_Abstract::generateUID());\n \n //$this->assertEquals(md5('password'), $updatedUser->emailPassword);\n }", "title": "" }, { "docid": "f74548af126c3158cd0e64d2c50742df", "score": "0.69761044", "text": "protected function setUserPassword($user, $password)\n {\n $user->password = $password;\n }", "title": "" }, { "docid": "f74548af126c3158cd0e64d2c50742df", "score": "0.69761044", "text": "protected function setUserPassword($user, $password)\n {\n $user->password = $password;\n }", "title": "" }, { "docid": "1f049f2471c3616194fa09a199e76eea", "score": "0.69305116", "text": "function setPassword( $value )\r\n {\r\n $this->Password = $value;\r\n }", "title": "" }, { "docid": "ef0315976750fdfe76487c32117df2a7", "score": "0.69228387", "text": "public function updatePassword(CdtUser $oCdtUser);", "title": "" }, { "docid": "a2c0fe8570c9fce7617f9548e3a898fc", "score": "0.69196415", "text": "function setPassword($password);", "title": "" }, { "docid": "1117897e6f5ce480f18c0ca1de4441e5", "score": "0.6915231", "text": "private function change_user_password() {\n\t\t\t\t$user_name = $_POST['user_name'];\n\t\t\t\t$user_password = $_POST['user_password'];\t\n\t\t\t\t$user_password_hash = password_hash($user_password, PASSWORD_DEFAULT);\n\t\t\t\n\t\t\t\t$sql = \"UPDATE staff \n\t\t\t\t\t\t\t\tSET password = :password \n\t\t\t\t\t\t\t\tWHERE staffname = :name\";\n\t\t\t\t\n\t\t\t\tglobal $db;\n\t\t\t\t$db->connectDB();\n\t\t\t\t$tuples = array (\n\t\t\t\t\t\":name\" => $user_name,\n\t\t\t\t\t\":password\" => $user_password_hash\n\t\t\t\t);\n\t\t\t\t$result = $db->executeBoundSQL($sql, $tuples);\n\t\t\t\tif(oci_num_rows($result) == 1) {\n\t\t\t\t\t$this->messages[] = \"Password successfully updated\";\n\t\t\t\t}\n\t\t\t\t$db->disconnectDB();\n\t\t}", "title": "" }, { "docid": "6c7084ae827cb86933f84fcd28df0aaa", "score": "0.689854", "text": "public function setPassword($newPassword);", "title": "" }, { "docid": "f11ac0bbaaec3d629b3ef004c6a8f965", "score": "0.6860424", "text": "public function setPassword($new_password);", "title": "" }, { "docid": "e1dd23f10875598bad549a8d3ce690bb", "score": "0.68505216", "text": "public function setPassword($userid, $password) {\r\n $sql = 'UPDATE $this->tableName SET password = ? WHERE id = ?';\r\n $pdo = $this->pdo();\r\n $pdo->prepare($sql);\r\n $pdo->execute(array($password, $userid, ));\r\n }", "title": "" }, { "docid": "2e3ef29c2cdbf094f92eb6360fbf3ca3", "score": "0.6841973", "text": "public function updatePassword(UserInterface $user);", "title": "" }, { "docid": "a0cda4b9ad43774e811d8fcaa4efa79f", "score": "0.67644477", "text": "public function testSetPassword()\n {\n }", "title": "" }, { "docid": "18d412c7f7111d25173763e1abe40457", "score": "0.6762882", "text": "public function canSetPassword(\\Gems_User_User $user = null);", "title": "" }, { "docid": "5182294d3512c77b3d447a118aa3a22a", "score": "0.6760211", "text": "public function setPassword($value) {\n\t\t\t$this->password=$value;\n\t\t}", "title": "" }, { "docid": "f1c509e93d2609caa08914692a658f90", "score": "0.67599773", "text": "public function setPassword($value);", "title": "" }, { "docid": "9fe94720a6bbaa9e48b9a609c48a268c", "score": "0.67420185", "text": "public function updateUserPassword(User $user){\n\t\t$this->users->findOneAndUpdate([\"_id\" => $user->getUserID()], ['$set' => [\"password\" => $user->getPasswd()]]);\n\t}", "title": "" }, { "docid": "5b6b90ab719ed2bc3f15402fefaef88c", "score": "0.67312443", "text": "public function updatePassword($user, $password, $salt);", "title": "" }, { "docid": "88ae6f8208e583ced5f644697c183ab0", "score": "0.6718755", "text": "public function setpasswd($passwd)\n {\n $this->passwd = Yii::$app->security->generatePasswordHash($passwd);\n }", "title": "" }, { "docid": "f270aa20becf0431904876789b287618", "score": "0.6707643", "text": "public function password(string|User $user, string|Secret $password): void {\n $this->conn->update(\n 'user set hash = %s where username = %s',\n $this->hash($password),\n $user instanceof User ? $user->username() : $user,\n );\n }", "title": "" }, { "docid": "a186651ce802a90488fb5760793e09e4", "score": "0.67073524", "text": "public function setPassword()\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($this->password_hash);\n }", "title": "" }, { "docid": "5cb751b233eea4288d0d450537fd733e", "score": "0.67066056", "text": "function set_password($password) {\n $this->password = $password;\n }", "title": "" }, { "docid": "9632d7274d38834fd7848ef640d415f7", "score": "0.66750413", "text": "public function setPassword($value)\n {\n $this->password = $value;\n }", "title": "" }, { "docid": "d96207e18a9bd72d89997a5729373312", "score": "0.662824", "text": "public function set_password($username, $password)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n Validation_Exception::is_valid($this->validate_username($username));\n Validation_Exception::is_valid($this->validate_password($password));\n\n try {\n $options = array();\n $options['env'] = 'LANG=en_US'; \n $args = \"-b -c \" . self::FILE_USER_CONFIG . \" \" . $username . \" \" . $password;\n $shell = new Shell();\n $shell->Execute(\n self::COMMAND_HTPASSWD, $args, FALSE, $options\n );\n } catch (Engine_Exception $e) {\n throw new Engine_Exception($e);\n }\n\n }", "title": "" }, { "docid": "9f32f018a8f2d91669355f8039aabba0", "score": "0.65820587", "text": "public function set_password($password) {\n $data = UserCrypt::prepare_password($password);\n $this->password_hash = $data['hash'];\n $this->password_salt = $data['salt'];\n }", "title": "" }, { "docid": "9111b9959ec49c55a3f798f0c0c28ade", "score": "0.6576321", "text": "public function setPassword ( $uid, $password ) {\n\t\tOC_Log::write('OC_USER_WEBDAVAUTH', 'Not possible to change password for users from web frontend using WebDAV user backend', 3);\n\t\treturn false;\n\t}", "title": "" }, { "docid": "51ac9040180a50cf41745fda244b90b2", "score": "0.6568725", "text": "public function setPassword(string $value)\n {\n $this->mustEncodePassword = true;\n $this->user->setPassword($value);\n }", "title": "" }, { "docid": "bff880ae3bc2402c481b0cb542d22c2a", "score": "0.65491056", "text": "public function set_password($password)\r\n\t{\r\n\t\t//Set params directly so that we don't get caught in a loop\r\n\t\t$this->params['password'] = md5($password);\r\n\t}", "title": "" }, { "docid": "550229afff1c22bf8c3ea5e0a748f588", "score": "0.6541966", "text": "public function setPassword($pass) {\n\t\tif (Library\\Validate::password($pass)) {\n\t\t\t$reset_key = Auth::getNewResetKey();\n\t\t\t$pass = Auth::hash($pass);\n\t\t\ttry {\n\t\t\t\t$pdo = DB::getHandle();\n\t\t\t\t$stmt = $pdo->prepare(\"UPDATE users SET pass = :pass, reset_key = :resetkey WHERE pid = :pid\");\n\t\t\t\t$stmt->bindParam(\":pass\", $pass);\n\t\t\t\t$stmt->bindParam(\":resetkey\", $reset_key);\n\t\t\t\t$stmt->bindParam(\":pid\", $this->pid);\n\t\t\t\t$stmt->execute();\n\t\t\t} catch (\\PDOException $e) {\n\t\t\t\tthrow new \\Exception(\"Unable to save password.\");\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new \\InvalidArgumentException(\"Invalid password supplied as argument.\");\n\t\t}\n\t}", "title": "" }, { "docid": "e01ecd22b7bdc0e50de33395b64e167e", "score": "0.65376216", "text": "public function password()\n {\n $users = TableRegistry::get('Users');\n\n $default = $users->findByUsername('Jacob')->first();\n $default->password = 'TestMe';\n\n if (!$users->save($default)) {\n $this->out('User Password Reset Failed.');\n\n return;\n }\n $this->out('User Password Reset Succeeded.');\n }", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.6520132", "text": "public function setPassword($password);", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.6520132", "text": "public function setPassword($password);", "title": "" }, { "docid": "e3a5b09bc57a19869e9e40a1ef95dbbb", "score": "0.6519257", "text": "public function changePassword($user, $password) {\n $sth = $this->prepare(\"UPDATE users SET password = ? WHERE user = ?;\");\n $sth->execute(array(md5($password),$user));\n }", "title": "" }, { "docid": "3330f7c62c8d27722279427318c6538c", "score": "0.6508523", "text": "public function setPassword($password)\n {\n $this->password = Yii::$app->getSecurity()->generatePasswordHash($password);\n // $this->password = $password; // l'hash viene generato befor-save\n }", "title": "" }, { "docid": "977f117ce05ba0b88428e20869e3fe72", "score": "0.64892125", "text": "public function changePassword() {\n\t\t$userId = $this->UserAuth->getUserId();\n\t\tif ($this->request -> isPost()) {\n\t\t\t$this->User->set($this->data);\n\t\t\tif ($this->User->RegisterValidate()) {\n\t\t\t\t$this->User->id=$userId;\n\t\t\t\t$this->request->data['User']['password'] = $this->UserAuth->makePassword($this->request->data['User']['password']);\n\t\t\t\t$this->User->save($this->request->data,false);\n\t\t\t\t$this->Session->setFlash(__('Password changed successfully'));\n\t\t\t\t$this->redirect('/dashboard');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "477233938146f58865111eeff8c28a1f", "score": "0.6484993", "text": "public function password_put(){\n $response = $this->MitraM->update_mitra(\n $this->put('id'),\n $this->put('password'),\n );\n $this->response($response);\n }", "title": "" }, { "docid": "a3ba84ee22f7e530413ff7668f0ef766", "score": "0.6469586", "text": "public function testSetPassword()\n {\n // Test set returns true\n $this->assertTrue($this->user->set('password', '12345678'));\n\n // Handle invalid password (must be at least 8 chars length)\n $this->assertFalse($this->user->set('password', '1234567'));\n $this->assertFalse($this->user->set('password', ''));\n\n // Setting as null should set value as null, not hash of nothing\n $this->assertTrue($this->user->set('password', null));\n $this->assertNull($this->user->get('password'));\n\n // Check get value is not the raw password and is the hash\n $this->user->set('password', 'somelongpassword123');\n $this->assertNotEquals('somelongpassword123', $this->user->get('password'));\n $this->assertNotEmpty($this->user->get('password'));\n\n // Check hash of same password doesn't match\n $raw_password = '!testingpassword!';\n $this->user->set('password', $raw_password);\n $hash_1 = $this->user->get('password');\n $this->user->set('password', $raw_password);\n $hash_2 = $this->user->get('password');\n $this->assertNotEquals($hash_1, $hash_2);\n }", "title": "" }, { "docid": "8848983ca5a407ae4257ddf5d6db2423", "score": "0.6435371", "text": "public function setPassword($password)\n {\n //$this->password = Yii::$app->security->generatePasswordHash($password . \"shop666\");\n $this->password = md5($password . \"shop666\");\n }", "title": "" }, { "docid": "2d0c2b2d3c03e0e488887577544d730a", "score": "0.6433259", "text": "public function updatePwd(User $user) {\n $userData = array(\n 'user_pwd' => $user->getPassword(),\n 'user_salt' => $user->getSalt(),\n );\n if($user->getId()) {\n // Update if user already registered\n $this->getDb()->update('t_user', $userData, array('user_id' => $user->getId()));\n }\n }", "title": "" }, { "docid": "ce16db70b6f85d4b3907931a2caf4a56", "score": "0.64235485", "text": "public function change_password(){\n change_password();\n }", "title": "" }, { "docid": "4e6cf89f7177806691a7df4b63759897", "score": "0.6418833", "text": "function change_password($usr, $pwd) {\n\t// try it by yourself...\n}", "title": "" }, { "docid": "41e3cc900919346442d84b88d14188b2", "score": "0.64035404", "text": "function change_password($password, $setnow=false) {\n global $CURMAN;\n if (!empty($CURMAN->passwordnothashed)) {\n $this->password = $password;\n } else {\n $this->password = hash_internal_user_password($password);\n }\n\n if ($setnow) {\n $CURMAN->db->set_field($this->table, 'password', $this->password, 'id', $this->id);\n }\n }", "title": "" }, { "docid": "d89e172ebd7971b4a1ff8e8c8d3b4541", "score": "0.6383934", "text": "public function setPassword()\r\n\t{\r\n\t\t// Get models\r\n\t\t$userModel = BluApplication::getModel('user');\r\n\t\t// Get user ID\r\n\t\tif(isset($this->_args[0])) {\r\n\t\t\t$userId = (int)$this->_args[0];\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn $this->_redirect($this->_baseUrl);\r\n\t\t}\r\n\t\t\r\n\t\t$user = $userModel->getUser($userId);\r\n\t\t\r\n\t\t$success = false;\r\n\t\t// Update password\r\n\t\tif(Request::getBool('update')) {\r\n\t\t\t$newPassword = Request::getString('newPassword');\r\n\t\t\t$sendEmail = Request::getBool('updateSendEmail');\r\n\t\t\t$validation = true;\r\n\t\t\tif(strlen($newPassword)<6) {\r\n\t\t\t\t$validation = false;\r\n\t\t\t\tMessages::addMessage('Password cannot be shorter than 6 characters', 'error'); \r\n\t\t\t}\r\n\t\t\tif($validation) {\r\n\t\t\t\t$success = $userModel->editUser($userId, $newPassword);\r\n\t\t\t\tif($success) {\r\n\t\t\t\t\tMessages::addMessage('Password updated successfully', 'info'); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Reset password\r\n\t\telseif(Request::getBool('reset')) {\r\n\t\t\t// Generate new password and apply\r\n\t\t\t$newPassword = Utility::createRandomPassword();\r\n\t\t\t$sendEmail = Request::getBool('resetSendEmail');\r\n\t\t\t$success = $userModel->editUser($userId, $newPassword);\r\n\t\t\tif($success) {\r\n\t\t\t\tMessages::addMessage('Password reset successfully', 'info'); \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif($success && $sendEmail && $user['email']) {\r\n\t\t\t// Send email\r\n\t\t\t$email = new Email();\r\n\t\t\t$vars = array(\r\n\t\t\t\t'firstName' => $user['firstname'],\r\n\t\t\t\t'lastName' => $user['lastname'],\r\n\t\t\t\t'email' => $user['email'],\r\n\t\t\t\t'password' => $newPassword\r\n\t\t\t);\r\n\t\t\t//$email->addBcc('[email protected]', 'Recipe4living Forgot Password: '.$user['username']);\r\n\t\t\tif($email->quickSend($user['email'], $user['fullname'], Text::get('global_forgotpass_email_subject'), 'passwordreminder', $vars)) {\r\n\t\t\t\tMessages::addMessage('New password was sent to '.$user['email'], 'info'); \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif($success) {\r\n\t\t\t// Redirect\r\n\t\t\t$urlArgsArray = Session::get('userListDisplayArgs');\r\n\t\t\t$redirectUrl = $this->_baseUrl . '?' . http_build_query($urlArgsArray);\r\n\t\t\treturn $this->_redirect($redirectUrl);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif(Request::getBool('update')) {\r\n\t\t\t\tTemplate::set('newPassword', $newPassword);\r\n\t\t\t\tTemplate::set('updateSendEmail', $sendEmail);\r\n\t\t\t}\r\n\t\t\t$this->userDetails();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "461fbb8c8bf29bdc16f6a2a175571513", "score": "0.637797", "text": "public function setPassword(string $value) {\n\n }", "title": "" }, { "docid": "de5aa739e51ee0cb2bb820b3fdcb61d0", "score": "0.6360196", "text": "public function setPasswordAttribute( $value ){\n\t\t\t$this->attributes['password'] = Hash::make( $value );\n\t\t}", "title": "" }, { "docid": "e7449e9ba766768df30908df8e9fa05f", "score": "0.6354809", "text": "function sr_user_passchangereset_submit($form, &$form_state) {\r\n // change user password\r\n global $user;\r\n \r\n $userData = array(\r\n 'pass' => (trim($form_state['values']['password']))\r\n );\r\n user_save($user, $userData);\r\n \r\n //drupal_set_message(t('Thank you. Your password was successfully changed.'));\r\n //drupal_goto('profile/' . urlencode($form_state['values']['screen_name']));\r\n if (!sr_user_isAdmin($user)) {\r\n\tdrupal_goto('timereading');\r\n }\r\n else {\r\n\tdrupal_goto('administer');\r\n }\r\n}", "title": "" }, { "docid": "47da3005b68d288eac4a1afd434afcec", "score": "0.6348373", "text": "private function configure_users(){\n\t\tforeach($this->data->users->user as $user){\n\t\t\tif($user['name'] != 'root'){\n\t\t\t\tif($user->group == 'ROOT'){\n\t\t\t\t\t$group = 'wheel';\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$group = 'nobody';\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t *\tUse popen directly instead of Functions::shellCommand because we need to write the\n\t\t\t\t *\tpre-encrypted password to the shell stream to set it.\n\t\t\t\t *\tSecurity measures and all that, see man pw(8) for details\n\t\t\t\t */\n\t\t\t\t$cmd = 'pw useradd -n '.(string)$user['name'].' -g '.$group.' -s /bin/csh -d /nonexistent -H 0';\n\t\t\t\tLogger::getRootLogger()->debug('Running: '.$cmd);\n\t\t\t\t$fd = popen($cmd,\"w\");\n\t\t\t\tfwrite($fd,$user->password);\n\t\t\t\tpclose($fd);\n\t\t\t}\t\n\t\t}\n\t}", "title": "" }, { "docid": "9111a4f62d1695c5e925862ad7b95246", "score": "0.6347296", "text": "private function _updatePassword() {\n $this->_usersModel->update(array('Password' => Hash::make($this->_newPasswordInput)), array('UserId', $this->_userId));\n }", "title": "" }, { "docid": "baa9efd40ab6ab9939b340f3dd0595f1", "score": "0.63393354", "text": "public function changePasswordPath()\n {\n return property_exists($this, 'passwordPath') ? $this->passwordPath : '/user/change-password';\n }", "title": "" }, { "docid": "ff48d9405e18ce2865af100a8d57f087", "score": "0.6329897", "text": "public function changeUserPassword() {\n\t\t$postdata = file_get_contents('php://input');\n\t\t$request = json_decode($postdata, TRUE);\n\t\t\n\t\t$response = $this->Admin_model->changeUserPassword($request);\n\t\t$this->output->set_content_type('application/json')->set_output(json_encode($response));\n\t}", "title": "" }, { "docid": "259176208f45412fc032743668545983", "score": "0.6328514", "text": "public function setRandomPassword() {\n $this->setUserPassword(rand());\n }", "title": "" }, { "docid": "7d857892027bb828f2e99ea8d0d9c3fe", "score": "0.63237286", "text": "public function set_password($password) {\n\t\t$this->_password = password;\n\t}", "title": "" }, { "docid": "3dcf12c14d770cf0a51d2a4688b9a2ba", "score": "0.63189495", "text": "public function modifyPassword($db, $password){\n $user_id = $_SESSION['auth']->id;\n\n //Encrypt the user's password and update the password in the database\n $password = password_hash($password, PASSWORD_BCRYPT);\n $db->query('UPDATE users SET password = ? WHERE id = ?', [$password, $user_id]);\n }", "title": "" }, { "docid": "a17cbaf9ca3b2848541726d2bd984c59", "score": "0.6311768", "text": "function change_password($password)\n {\n // Check if we are passing an already crypted password\n if(substr($password, 0, 7) == '{crypt}')\n {\n $this->userldaparray['userPassword'] = $password;\n }else\n {\n $this->userldaparray['userPassword'] = '{crypt}'.createPasswordHash($password);\n }\n $this->messages[] = \"Password changed\";\n\n // Just update ldap?\n // $this->update_ldap();\n }", "title": "" }, { "docid": "73a6c58ebd3bf59039687d1e17e1546d", "score": "0.63054013", "text": "public function setPassword($password)\n {\n $this->_password = $paswword;\n\t}", "title": "" }, { "docid": "84d2bb753aaf3e3e3570fb6fc1c3a6d8", "score": "0.6302053", "text": "public function setPassword($password)\n {\n $this->admin_password = Yii::$app->getSecurity()->generatePasswordHash($this->admin_password);\n }", "title": "" }, { "docid": "4d83f2c561327ebdf6d1183c543790f6", "score": "0.6300938", "text": "public function setPlainPassword($password);", "title": "" }, { "docid": "7f686cb4598f0df971d193a9a55b57db", "score": "0.6300566", "text": "public function setValidPassword() {\n //check if we have a password\n if ($this->getUserPassword()) {\n //hash the password\n $this->setPassword($this->hashPassword($this->getUserPassword()));\n } else {\n //check if the object is new\n if ($this->getId() === NULL) {\n //new object set a random password\n $this->setRandomPassword();\n //hash the password\n $this->setPassword($this->hashPassword($this->getUserPassword()));\n }\n }\n }", "title": "" }, { "docid": "33bd492a6894b29e14bed5b5128d7e6d", "score": "0.62909764", "text": "function changePassword($username, $password)\r\n {\r\n \r\n }", "title": "" }, { "docid": "e079d2f8b8d394243175bf0357bac653", "score": "0.6289321", "text": "public function changeUserPassword()\n\t{\n\t\tif( Input::get('forgotten') ) {\n\t\t\treturn App::make( 'ForgottenPasswordResponseMaker' )->make(Input::all());\t\n\t\t}\n\t\telse {\n\t\t\treturn App::make( 'PasswordChangeResponseMaker' )->make(Input::all());\t\n\t\t}\n\t}", "title": "" }, { "docid": "7693362ebae7aeff9eb0b502644d304a", "score": "0.628411", "text": "private function setPassword(User $user, ObjectManager $em, $password)\n {\n $passwordCheck = $user->getPasswordCheck();\n if (!$passwordCheck) {\n // We need to create a check\n $passwordCheck = new Check();\n $passwordCheck->setAttribute('Cleartext-Password');\n $passwordCheck->setUser($user);\n $passwordCheck->setOp(':=');\n }\n\n // Just set the check we have\n $passwordCheck->setValue($password);\n $em->persist($passwordCheck);\n }", "title": "" }, { "docid": "b0383e1c98fd9f14e1824a2bcbe8ced2", "score": "0.62786937", "text": "public function setPasswordAttribute($value) {\n $this->attributes['password'] = encrypt($value);\n }", "title": "" }, { "docid": "00c773f94a50ffde3db5fa61efd0d362", "score": "0.62746596", "text": "public function changePassword()\n {\n\n GeneralUtility::checkReqFields(array(\"password\", \"password_again\"), $_POST);\n\n if ($_POST[\"password\"] !== $_POST[\"password_again\"])\n GeneralUtility::kill(\"The passwords don't match!\");\n\n $user = new User($_SESSION[\"uuid\"]);\n $user->update(\"password\", sha1($_POST[\"password\"]));\n\n }", "title": "" }, { "docid": "34ef6fca72915fd36f7c70e04a3fe415", "score": "0.62735265", "text": "public function setPassword(string $password): void\n {\n $this->options['password'] = $password;\n }", "title": "" }, { "docid": "a840cab168e64200919d361ae1926e0c", "score": "0.62721634", "text": "public function setSecurePassword($value = NULL){\n\t\t\t//Save current existing password before making a change\n\t\t\t$this->current_password = $this->password;\n\n\t\t\tif(!is_null($value) || !empty($value)){\n\t\t\t\t$hash = password_hash($value, PASSWORD_BCRYPT);\n\t\t\t\t$this->password = $hash;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "206afe99b4275f57b2247a222884ca20", "score": "0.6269978", "text": "public function set_password($password)\n\t{\n\t\t$this->set_attribute('password', \\Hash::make($password));\n\t}", "title": "" }, { "docid": "46c75178318e548979333f3fb4d8f80a", "score": "0.62649906", "text": "public function setPassword($val)\n {\n if ($this->regDate === null) {\n $this->regDate = Yii::$app->timeService->getCurrentDateTime();\n }\n $this->passwordHash = $this->createPasswordHash($val);\n }", "title": "" }, { "docid": "2f6b80c3e52530cb0ce81b5587cf7ab8", "score": "0.6260116", "text": "public function changeUserPassword($userInstance, $oldPassword, $newPassword){\n\n\t}", "title": "" }, { "docid": "96bf98fb99e127f1187cb8387927422a", "score": "0.6254218", "text": "public function changepassword($userid,$oldpassword,$newpassword);", "title": "" }, { "docid": "7d9aca8309980d912c16fdf268b706c2", "score": "0.6248962", "text": "public function setPasswordAttribute($value)\n {\n $this->attributes['password'] = Hash::needsRehash($value) ? Hash::make($value) : $value;\n }", "title": "" }, { "docid": "5fe6cad08ecc1c7648b99ae17193c92e", "score": "0.62312496", "text": "public function setPasswordAttribute($value) {\n $this->attributes['password'] = Hash::make($value);\n }", "title": "" }, { "docid": "3bc26af8ea1eaa242c35730bb708391f", "score": "0.6224709", "text": "function setPassword($unhashed_password)\n {\n BaseUser::setPasswordHash(password_hash($unhashed_password,PASSWORD_DEFAULT));\n }", "title": "" }, { "docid": "6c61261951d3d8da01c7f8dc0cda4cd5", "score": "0.6224352", "text": "function setPassword($password)\n\t\t{\n\n\t\t\t$this->password=$password;\n\t\t}", "title": "" }, { "docid": "9dae889a2ac2dd5ec1eba8ea70a43839", "score": "0.62069684", "text": "public function setPasswordAttribute($value) {\n $this->attributes['password'] = Crypt::encryptString($value);\n }", "title": "" }, { "docid": "4b67dd689e7544256fa3ea156e89b07d", "score": "0.6202059", "text": "public function doChangePass() {\n\t\ttry {\n\t\t\t\n\t\t\t$errorsflg = \"\";\n\t\t\t\n\t\t\tif ($this->request->is(array('post', 'put'))) {\n\t\t\t\t$this->title = $this->scrFieldLabels['SCR_USER_PROFILE'];\n\t\t\t\t$this->urlHistories = array($this->scrFieldLabels['MENU_USER'], $this->title);\n\t\t\t\t$user_id = $this->Session->read(RwsConstant::SESSION_LOGIN_USER_KEY);\n\t\t\t\t$user = $this->TUser->find('first', array(\n\t\t\t\t\t\t'conditions' => array(\n\t\t\t\t\t\t\t\t'TUser.USER_ID' => $user_id\n\t\t\t\t\t\t)\n\t\t\t\t));\n\t\t\t\t$this->set('userlanguage', $user['TUser']['LANGUAGE']);\n\t\t\t\t\n\t\t\t\t$user_password_old = isset($this->request->data['TUser']['USER_PASSWORD_OLD']) ? $this->request->data['TUser']['USER_PASSWORD_OLD'] : '';\n\t\t\t\t$user_password_new = isset($this->request->data['TUser']['USER_PASSWORD_NEW']) ? $this->request->data['TUser']['USER_PASSWORD_NEW'] : '';\n\t\t\t\t$user_password_new_confirm = isset ($this->request->data['TUser']['USER_PASSWORD_NEW_CONFIRM']) ? $this->request->data['TUser']['USER_PASSWORD_NEW_CONFIRM'] : '';\n\t\t\t\t\n\t\t\t\tif (empty ($user_password_old)){\n\t\t\t\t\t$this->Session->setFlash($this->messages['USERSETTING_ERR_000000'], 'message', array('message_type' => RwsConstant::MSG_ERROR));\n\t\t\t\t\t$errorsflg = \"true\";\n\t\t\t\t}\n\t\t\t\telse if (!$this->checkPassword($user_id, $user_password_old)) {\n\t\t\t\t\t$this->Session->setFlash($this->messages['USERSETTING_ERR_000001'], 'message', array('message_type' => RwsConstant::MSG_ERROR));\n\t\t\t\t\t$errorsflg = \"true\";\n\t\t\t\t}\n\t\t\t\telse if (empty ($user_password_new)){\n\t\t\t\t\t$this->Session->setFlash($this->messages['USERSETTING_ERR_000002'], 'message', array('message_type' => RwsConstant::MSG_ERROR));\n\t\t\t\t\t$errorsflg = \"true\";\n\t\t\t\t}\n\t\t\t\telse if (strlen($user_password_new) > 32 || strlen($user_password_new_confirm) > 32){\n\t\t\t\t\t$this->Session->setFlash($this->messages['USERSETTING_ERR_000004'], 'message', array('message_type' => RwsConstant::MSG_ERROR));\n\t\t\t\t\t$errorsflg = \"true\";\n\t\t\t\t}\n\t\t\t\telse if (empty ($user_password_new_confirm)){\n\t\t\t\t\t$this->Session->setFlash($this->messages['USERSETTING_ERR_000006'], 'message', array('message_type' => RwsConstant::MSG_ERROR));\n\t\t\t\t\t$errorsflg = \"true\";\n\t\t\t\t}\n\t\t\t\telse if ($user_password_new != $user_password_new_confirm){\n\t\t\t\t\t$this->Session->setFlash($this->messages['USERSETTING_ERR_000003'], 'message', array('message_type' => RwsConstant::MSG_ERROR));\n\t\t\t\t\t$errorsflg = \"true\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($errorsflg == \"true\"){\n\t\t\t\t\t$this->set('user_password_old', $user_password_old);\n\t\t\t\t\t$this->set('user_password_new', $user_password_new);\n\t\t\t\t\t$this->set('user_password_new_confirm', $user_password_new_confirm);\n\t\t\t\t\treturn $this->render('/Edits/user_personal_setting');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Begin transaction\n// \t\t\t\t$encrypt_pass = md5(MD5_SALT.$user_password_new);\n\n\t\t\t\t$this->TUser->begin();\n\t\t\t\t$this->TUser->updateAll(\n\t\t\t\t\t\tarray('TUser.USER_PASSWORD' => \"'$user_password_new'\"),\n\t\t\t\t\t\tarray('TUser.USER_ID' => $user_id)\n\t\t\t\t);\n\t\t\t\t$this->TUser->commit();\n\n\t\t\t}\n\t\t\t\n\t\t\t$this->Session->setFlash($this->messages['USERSETTING_SEC_000001'], 'message', array('message_type' => RwsConstant::MSG_SUCCESS));\n\n\t\t} catch (Exception $e) {\n\t\t\t// Rollback\n\t\t\t$this->TUser->rollback();\n\t\t\t// Set error\n\t\t\t$this->errors = array(\n\t\t\t\t\t'0' => $e->getMessage()\n\t\t\t);\n\t\t}\n\t\t\n\t\treturn $this->render('/Edits/user_personal_setting');\n\t}", "title": "" }, { "docid": "351fff5ea5db8ab52bde95539cd3b0a9", "score": "0.62007844", "text": "public function set_password($password)\n\t{\n\t\t$salt = md5(\\Str::random(64) . time());\n\t\t$hashed = \\Hash::make($salt . $password);\n\n\t\t$this->set_attribute('password', $hashed);\n\t\t$this->set_attribute('salt', $salt);\n\t}", "title": "" }, { "docid": "9d05b3b9258c75920cf13c9d9e635db7", "score": "0.6180707", "text": "public static function setPassword($password)\n {\n self::$_password = $password;\n }", "title": "" }, { "docid": "d73db187ed6916137e860101c013778a", "score": "0.6180191", "text": "public function setPasswordAttribute($value)\n {\n $this->attributes['password'] = encrypt($value);\n }", "title": "" }, { "docid": "4fcb570c3a6befe3a0319e5d05014805", "score": "0.6165693", "text": "public function setPasswordAttribute($value)\n {\n $this->attributes['password'] = Hash::make($value);\n }", "title": "" }, { "docid": "4fcb570c3a6befe3a0319e5d05014805", "score": "0.6165693", "text": "public function setPasswordAttribute($value)\n {\n $this->attributes['password'] = Hash::make($value);\n }", "title": "" }, { "docid": "4fcb570c3a6befe3a0319e5d05014805", "score": "0.6165693", "text": "public function setPasswordAttribute($value)\n {\n $this->attributes['password'] = Hash::make($value);\n }", "title": "" }, { "docid": "4fcb570c3a6befe3a0319e5d05014805", "score": "0.6165693", "text": "public function setPasswordAttribute($value)\n {\n $this->attributes['password'] = Hash::make($value);\n }", "title": "" }, { "docid": "4fcb570c3a6befe3a0319e5d05014805", "score": "0.6165693", "text": "public function setPasswordAttribute($value)\n {\n $this->attributes['password'] = Hash::make($value);\n }", "title": "" }, { "docid": "4fcb570c3a6befe3a0319e5d05014805", "score": "0.6165693", "text": "public function setPasswordAttribute($value)\n {\n $this->attributes['password'] = Hash::make($value);\n }", "title": "" }, { "docid": "4fcb570c3a6befe3a0319e5d05014805", "score": "0.6165693", "text": "public function setPasswordAttribute($value)\n {\n $this->attributes['password'] = Hash::make($value);\n }", "title": "" }, { "docid": "55af302905292fc43a2c7738701795e6", "score": "0.6165367", "text": "public function setPassword($password)\n\t{\n\t\t$this->update([\n\t\t\t'password' => password_hash($password, PASSWORD_DEFAULT)\n\t\t]);\n\t}", "title": "" }, { "docid": "c8bf9941f48caa8a794e5051a30b8328", "score": "0.6164166", "text": "public function setPassword($password)\n {\n $this->usuapass = base64_encode($password);\n }", "title": "" }, { "docid": "4fd5cc91deac09da8c55ad843b99d089", "score": "0.61573863", "text": "protected function testPassProtection() {\n $protected_account = $this->createProtectedUser(array('user_pass'));\n\n // Remember the user's pass.\n $expected_pass = $protected_account->pass_raw;\n\n $new_pass = $this->randomMachineName();\n $edit = array(\n 'pass[pass1]' => $new_pass,\n 'pass[pass2]' => $new_pass,\n );\n $this->userprotectPostForm('user/' . $protected_account->id() . '/edit', $edit, t('Save'));\n\n // Try to login as this user with the expected password.\n $protected_account = entity_load('user', $protected_account->id(), TRUE);\n $protected_account->pass_raw = $expected_pass;\n $this->drupalLogout();\n $this->drupalLogin($protected_account);\n }", "title": "" }, { "docid": "2c4356d26ee24ef37b8ea41cc2275772", "score": "0.6150296", "text": "public function userUpdatePassword(){\n\t\treturn $this->controller->update(\n\t\t\t\"UPDATE user_tbl SET password = ? WHERE user_id = ?\",\n\t\t\t[\n\t\t \t'password' => password_hash($this->password, PASSWORD_DEFAULT),\n\t\t \t'user_id' => $_SESSION['userID']\n\t\t ]\n\t\t);\n\t}", "title": "" }, { "docid": "fb6a38a0a359dd5cb66b1d65b3fa48ca", "score": "0.6144514", "text": "public function setDefaultPassword($value = NULL){\n\t\t\tif(!is_null($value) || !empty($value)){\n\t\t\t\t$this->current_password = $this->password;\n\t\t\t\t$this->password = $value;\n\t\t\t}else{\n\t\t\t\t$this->password = bin2hex(random_bytes(30));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "54362575ac4acd26476db7c801980540", "score": "0.6142278", "text": "public function setPassword($password): void\n {\n $this->password = $password;\n }", "title": "" }, { "docid": "54362575ac4acd26476db7c801980540", "score": "0.6142278", "text": "public function setPassword($password): void\n {\n $this->password = $password;\n }", "title": "" }, { "docid": "4d5386a7f2ad9f66ef2e0c2063fa2773", "score": "0.6141677", "text": "public function setPassword($password)\n {\n $this->password = ($password);\n }", "title": "" }, { "docid": "79573a84e200879c352efdd8d16f0587", "score": "0.61413324", "text": "public function setPassword($password)\n {\n $this->password = $this->passWithSalt($password, $this->saltGenerator());\n }", "title": "" } ]
60e78142b0c61bc989a5c4bff029dd89
Checks if negative profit is allowed. If true, negative profit is not allowed
[ { "docid": "a81638ffaa3aa3ef3f77249b512d288f", "score": "0.78078276", "text": "private function isDisabledNegativeProfit()\n {\n return $this->_scopeConfig->getValue(\n 'cart2quote_advanced/negativeprofit/disable_negative_profit',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n }", "title": "" } ]
[ { "docid": "c839deff69ccabd9f7a0dbddb19ef751", "score": "0.8158799", "text": "private function isDisabledNegativeProfit()\n {\n\t\tif(\\Cart2Quote\\License\\Model\\License::getInstance()->isValid()) {\n\t\t\treturn $this->scopeConfig->getValue(\n 'cart2quote_advanced/negativeprofit/disable_negative_profit',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n\t\t}\n\t}", "title": "" }, { "docid": "4ce77efa1f2ec390ae29a55206aa1891", "score": "0.7271655", "text": "public function isCashflowNegative()\n {\n if ($this->isCashPaid()) {\n return true;\n }\n }", "title": "" }, { "docid": "8f3c1dedeef2bd8677920cd4dafb9eb5", "score": "0.71911156", "text": "public function isNegative() : bool {\n return $this->amount->getNumber() < 0;\n }", "title": "" }, { "docid": "44b9b92d28552fdef3c096f42ddc3206", "score": "0.69652057", "text": "protected function _negative()\n {\n return $this->value < 0;\n }", "title": "" }, { "docid": "d49a2a46ed0c77dfa820d20a82186b73", "score": "0.6831281", "text": "public function isNegative();", "title": "" }, { "docid": "25d43fae58ea619f1b6a3db229f68e29", "score": "0.654491", "text": "function sell_no_more_than_0($sell_in){\n return ($sell_in < 0);\n }", "title": "" }, { "docid": "9652065b45b0d32df6a341eb5d66292d", "score": "0.64666694", "text": "public function isPositive();", "title": "" }, { "docid": "6780d16abfef079f35e12df8b7a2ce81", "score": "0.6439325", "text": "public function positive_balance(){\n if ($this->balance > 0){\n return True;\n }\n else {\n return False;\n }\n }", "title": "" }, { "docid": "5ba1e941b3bc787d461ba4e52ae3fe0c", "score": "0.6422484", "text": "public function isNegated();", "title": "" }, { "docid": "5ba1e941b3bc787d461ba4e52ae3fe0c", "score": "0.6422484", "text": "public function isNegated();", "title": "" }, { "docid": "be38651e32cc429c3ff8f15625056cf7", "score": "0.63312006", "text": "public function testPriceValidationWithNegative()\n {\n $this->json('POST', '/search', ['price' => ['from'=>-100,'to'=>105]])\n ->seeJson([\n 'success' => false,\n ]);\n }", "title": "" }, { "docid": "512871d834925b57c84341efc1bde1e4", "score": "0.6302035", "text": "public function isPositive() : bool {\n return $this->amount->getNumber() >= 0;\n }", "title": "" }, { "docid": "4ee2133327f5b871a0679ca14786c64f", "score": "0.62841797", "text": "public function check_valid_buy_price() {\r\n\t\tif($this->input->post('buy_price') <= 0) {\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\treturn TRUE;\r\n\t}", "title": "" }, { "docid": "3ea1e7c64c5cae0fb8effe4dd8ef34df", "score": "0.6258013", "text": "public function getAllowNegative()\n {\n return ($this->_allowNegative);\n }", "title": "" }, { "docid": "07c5a9bf1e0c492844931cbafeafa733", "score": "0.6186078", "text": "public function testNegativeFalse()\n {\n $a = rand(2, 50);\n\n $result = IntegerValidator::negative($a);\n\n $this->assertFalse($result);\n }", "title": "" }, { "docid": "2356378b951249afef6a32dd1bf81645", "score": "0.6142603", "text": "public function testNegativeTrue()\n {\n $a = rand(-2, -50);\n\n $result = IntegerValidator::negative($a);\n\n $this->assertTrue($result);\n }", "title": "" }, { "docid": "7fe1f175068e54f8f33e1cf7748dec35", "score": "0.61310303", "text": "public function isNegative(): bool\n {\n return $this->counter < 0;\n }", "title": "" }, { "docid": "eb6a34b7f55472bc58831743e9dce704", "score": "0.6113337", "text": "public function testPositiveFalse()\n {\n $a = rand(-1, -50);\n\n $result = IntegerValidator::positive($a);\n\n $this->assertFalse($result);\n }", "title": "" }, { "docid": "31083627db3498b86cb43c0648ba0760", "score": "0.60993093", "text": "public function getNegative()\n {\n return isset($this->negative) ? $this->negative : false;\n }", "title": "" }, { "docid": "e22c6ae227b8dfed80e19bbc02fbbcde", "score": "0.60594213", "text": "public function testWithNegativeValues()\n {\n $code = Config('constants.STATUS_CODE.REQUEST_VALIDATION');\n $this->register();\n $login = $this->login();\n \n $this->amount = -100;\n $this->term = 3;\n\n $loan = $this->createLoan($login);\n $loan->assertStatus($code)\n ->assertJson([\n \"status\" => false,\n \"code\" => $code,\n \"messages\" => [\n \"amount\" => [\"The amount must be greater than 0.\"]\n ]\n ],$code);\n }", "title": "" }, { "docid": "5a6f596c05ce7aad38493be8cca7e470", "score": "0.6015433", "text": "private function exibirNotaProjetada() {\n\n if ( $this->oAvaliacaoPeriodica->getFormaDeAvaliacao()->getTipo() == 'NOTA' &&\n $this->oAvaliacaoPeriodica->getOrdemSequencia() > 2 &&\n $this->oAvaliacaoPeriodica == $this->getUltimoPeriodoAvaliacao()\n ) {\n\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "137b1b0d24b8747b4b2e4a01b8e341f5", "score": "0.5980096", "text": "function wf_crm_is_positive($val) {\n return is_numeric($val) && $val > 0 && round($val) == $val;\n}", "title": "" }, { "docid": "a4e1c1a176aed3f3b1bb2e01dd532153", "score": "0.5955852", "text": "protected function _positive()\n {\n return $this->value > 0;\n }", "title": "" }, { "docid": "55243b6efc73836b5a98040c98584e90", "score": "0.590618", "text": "public function isFree(): bool\n {\n return (float)$this->price <= 0.00;\n }", "title": "" }, { "docid": "76537266fae210daac7ba7b062d50c8e", "score": "0.58732283", "text": "public function non_negative($value) \r\n\t{\r\n\t\treturn (isset($value) && is_numeric($value) && ($value >= 0));\r\n\t}", "title": "" }, { "docid": "1672373947f24070ca163ba87a7299fb", "score": "0.58167845", "text": "public function isFraudRiskDetected() {\r\n return $this->root->getAttribute('score') == 'negatif';\r\n }", "title": "" }, { "docid": "7496330c2a2fd6d308fa17986ff3c3e2", "score": "0.57785785", "text": "function pmw_is_negative( $value )\r\n{\r\n\tif ( ! is_numeric( $value ) )\r\n\t{\r\n\t\treturn FALSE;\r\n\t}\r\n\t$value = intval( $value );\r\n\tif ( ( $value + abs( $value ) ) == 0 )\r\n\t{\r\n\t\treturn TRUE;\r\n\t}\r\n\r\n\treturn FALSE;\r\n}", "title": "" }, { "docid": "73367d7dbf4a7f98c3d09c875d637006", "score": "0.57724583", "text": "public function isNegative($value)\n\t{\n\t\tif ($value < 0) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4ab429cc1cefa24d5b94f4b966ea20d5", "score": "0.57699615", "text": "function isSuspended($prices){\n return (number_format($prices[1],2) === \"0.00\" || $prices[1] === \"0\") && (number_format($prices[3],2) === \"0.00\" || $prices[3] === \"0\") && (number_format($prices[4],2) === \"0.00\" || $prices[4] === \"0\") && (number_format($prices[5],2) === \"0.00\" || $prices[5] === \"0\");\n }", "title": "" }, { "docid": "3931915467f9667d1c243a44b3d305b5", "score": "0.5769463", "text": "public function moneyAreReserved();", "title": "" }, { "docid": "3bc21a738e8c0268817583b04c5dc87c", "score": "0.5744536", "text": "public function checkPolicies()\n {\n $previousAdvances = 0;\n $employee = Employee::findOrFail($this->employee_id);\n\n if ($this->getPolicy(Advance::ALLOW_MULTIPLE_ADVANCES)->value == 'false' && $previousAdvances > 0) {\n flash('Sorry, an employee can only be given one advance', 'error');\n return false;\n }\n\n if ($this->getPolicy(Advance::ALLOW_MORE_THAN_BASIC)->value == 'false') {\n $basicSalary = $employee->contract->first()->current_basic_salary;\n if ($basicSalary < $this->amount) {\n flash('Sorry, an employee cannot get an advance that is more than his basic pay', 'error');\n\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "2adc4a404c399d3c883b77ca5b033d08", "score": "0.5743166", "text": "public function isRisky();", "title": "" }, { "docid": "c8bdba17b22e1036a9aad083c4f96481", "score": "0.5672758", "text": "public function takeProfit($bar) {\n\t\tif ($this->takeProfit > $bar['low'] && $this->takeProfit < $bar['high']) {\n\t\t\treturn $this->takeProfit;\n\t\t}\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "568516607f38f0067eaee6f04636bfad", "score": "0.56537837", "text": "function isSuspended($prices){\n return ($prices[4] === \"0.00\" || $prices[4] === \"0\") && ($prices[5] === \"0.00\" || $prices[5] === \"0\");\n }", "title": "" }, { "docid": "cc927ef31642e2144f898f13902e3502", "score": "0.5652772", "text": "public function getNegativeable() { return $this->data['negativeable']; }", "title": "" }, { "docid": "9a36e256578f2bacc527570b7b396711", "score": "0.5646565", "text": "public function isNegativeTreatmentRequired($profileid,$flagParameters='')\n\t{\n\t\tif($profileid)\n\t\t\t$this->whereConditionArr[]=\"PROFILEID='$profileid'\";\n\t\tif($flagParameters)\n\t\t\t$this->generateWhereConditionsFromParameters($flagParameters);\n\t\tif($this->whereConditionArr)\n\t\t\t$whereCondition=implode(\" AND \",$this->whereConditionArr);\n\n\t\t$sql=\"SELECT COUNT(*) as CNT FROM $this->table WHERE $whereCondition\";\n\t\t$result = $this->mysql->executeQuery($sql,$this->db);\n\t\t$myrow =$this->mysql->fetchAssoc($result);\n\t\tif($myrow[\"CNT\"]>0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "title": "" }, { "docid": "b5b63a24a1d51106640a8a9ef151a14d", "score": "0.5634165", "text": "public static function isNegative(float $number) : bool\n {\n return $number < 0;\n }", "title": "" }, { "docid": "ba75f4d85a539d9c352e4c930f0d243f", "score": "0.56236637", "text": "public function canAvailSpecialDiscount (): bool\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7067624f69e3e95f112b5d5c47f02b07", "score": "0.56227404", "text": "public function setNegative($var)\n {\n GPBUtil::checkBool($var);\n $this->negative = $var;\n\n return $this;\n }", "title": "" }, { "docid": "fc347eff7c2b39c7a1fc965abf2aaffc", "score": "0.5601986", "text": "public function testValidateNegativeDecision(array $response): void\n {\n $this->assertFalse(\n $this->validateResponse($response, false, false, $this->once())->isValid()\n );\n }", "title": "" }, { "docid": "92f7e5b76f8363c07633e49e810e74eb", "score": "0.5594385", "text": "public function setAllowNegative($allowNegative)\n {\n $this->_allowNegative = (boolean)$allowNegative;\n return ($this);\n }", "title": "" }, { "docid": "e63420b0a54e4c8b26cb98fa7df12b3f", "score": "0.5594236", "text": "function check_item_data()\n{\n\tif (input_num('qty') == 0 || !check_num('qty', 0))\n\t{\n\t\tdisplay_error(_(\"The quantity entered is negative or invalid.\"));\n\t\tset_focus('qty');\n\t\treturn false;\n\t}\n\n\tif (!check_num('std_cost', 0))\n\t{\n\t\tdisplay_error(_(\"The entered standard cost is negative or invalid.\"));\n\t\tset_focus('std_cost');\n\t\treturn false;\n\t}\n\n \treturn true;\n}", "title": "" }, { "docid": "2cc990434f21bc41fd771932a968f7bb", "score": "0.5588962", "text": "public function checkNumericValueNotNegative($value){\n return (double)$value >= 0;\n }", "title": "" }, { "docid": "c19e57e625baca5c5e9d0f67356da2d0", "score": "0.5560135", "text": "public static function isNegativePrice($price)\n {\n return preg_match('/^[-]?[0-9]{1,10}(\\.[0-9]{1,9})?$/', $price);\n }", "title": "" }, { "docid": "50d3a74889fa1a0137a7c12903600398", "score": "0.55471945", "text": "protected function _verifyCostAmount(&$cost)\n\t{\n\t\tif ($cost <= 0)\n\t\t{\n\t\t\t$this->error(new XenForo_Phrase('BRS_please_enter_an_product_cost_greater_than_zero'), 'cost_amount');\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "2f1ad453e5181922bcd1aea20b8a6756", "score": "0.55379635", "text": "public function testDecreaseToTargetDisabled()\n {\n $pricer = $this->getFeesPricer()\n ->setNoCompetitorPolicy(Pricer::BASE_PRICE);\n\n $price = $pricer->getWinningPrice(35.00, 6.00);\n $this->assertEquals(WinningPrice::BASE, $price->type);\n }", "title": "" }, { "docid": "dc00201ebae1f58a75c5a5e0fa429cae", "score": "0.5523356", "text": "public function withdrawal($amount) {\n if(parent::getBalance() - $amount < 0){\n\n return false;\n\n } else {\n\n parent::deposit(-$amount);\n return true;\n\n }\n }", "title": "" }, { "docid": "de6101dda769018e1efba4192e341607", "score": "0.55178005", "text": "public function denied(){\n\t\treturn !$this->allowed();\n\t}", "title": "" }, { "docid": "c97b95c77e66183d4118525345b4e14c", "score": "0.54731834", "text": "public function requiresTransaction() \n {\n return ($this->getAmount() > 0 || $this->getAmountAfterTrial() > 0);\n }", "title": "" }, { "docid": "d458da99afcd70f5541d567420d5279b", "score": "0.5463331", "text": "public function canMemberChangeSubAmount()\n {\n return in_array($this->attributes['payment_method'], ['gocardless-variable', 'balance']);\n }", "title": "" }, { "docid": "5a13ddb9cebc2234f8327ae0564a2ff0", "score": "0.5459421", "text": "public function isOverdrawn()\n {\n return $this->current < 0 || (\n $this->overdraft > 0 &&\n ($this->current - $this->overdraft < 0)\n );\n }", "title": "" }, { "docid": "ca5d062cc07db2c1d6b68c70c74dc153", "score": "0.5452435", "text": "public function canCancel()\n {\n if ($this->status == 'fraud')\n return false;\n\n foreach ($this->items as $sellerOrderItem) {\n if ($sellerOrderItem->item->qty_to_cancel > 0) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "60a9d9e338d967e0fb76d645645a0764", "score": "0.54264665", "text": "public function isDenied(){\n return $this->offsetGet('payment_status') == 'Denied';\n }", "title": "" }, { "docid": "e8d278b4a924297b97e5ea5f5f8b2e30", "score": "0.54132515", "text": "private function exibirNotaParcial() {\n\n if ( $this->oAvaliacaoPeriodica->getFormaDeAvaliacao()->getTipo() == 'NOTA' &&\n $this->oAvaliacaoPeriodica->getOrdemSequencia() > 2 ) {\n\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "c591b528dbddd76d3085695c3b2b5f64", "score": "0.54115605", "text": "public function isPenalty()\n {\n return 1 == intval($this->getProperty('is_penalty'));\n }", "title": "" }, { "docid": "ac9c32722237c4e91d1f022c025d842c", "score": "0.54030055", "text": "public function isNegated()\n {\n return $this->isNegated;\n }", "title": "" }, { "docid": "094dc63cf2af5c73e2846e71481d9d9b", "score": "0.53922623", "text": "public function canWithdraw($amount, bool $allowZero = null): bool\n {\n $math = app(Mathable::class);\n\n /**\n * Allow to buy for free with a negative balance\n */\n if ($allowZero && !$math->compare($amount, 0)) {\n return true;\n }\n\n return $math->compare($this->balance, $amount) >= 0;\n }", "title": "" }, { "docid": "4aa9215929017a55f6c4da659ec10590", "score": "0.53858477", "text": "public function isDebit()\n {\n return $this->amount < 0;\n }", "title": "" }, { "docid": "6d60be677c87754c36db6987982d8cb4", "score": "0.5369906", "text": "public function calcCantMoneyForMovie()\n {\n }", "title": "" }, { "docid": "6b1db5b72757595e695fb9d2cd381d90", "score": "0.5366175", "text": "private function requirementsWoEpayment()\n {\n $conf = $this->pObj->conf;\n $isEpayment = $conf[ 'api.' ][ 'options.' ][ 'payment.' ][ 'options.' ][ $this->paymentId . '.' ][ 'e-payment' ];\n\n if ( !$isEpayment )\n {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "75b8dcf84ab666e8ec2936b6a717a8fd", "score": "0.53654075", "text": "public function isSufficient()\n {\n $userGiftQty = 0;\n $userGift = $this->cashoutRequest->user->gifts()->where('id', $this->gift->id)->first();\n\n if($userGift) {\n $userGiftQty = $userGift->pivot->count;\n }\n\n return $this->cashoutRequest->isProcessed() || $this->quantity <= $userGiftQty;\n }", "title": "" }, { "docid": "920ed9998b78faff43afa085b8e6d0c6", "score": "0.536055", "text": "public function testFreeAmountIsIgnored()\n {\n $this->request->setFreeAmount(1);\n $this->request->setFixedValues('[\"250\", \"500\", \"1000\"]');\n $this->request->setMinAmount(200);\n $this->request->setMaxAmount(9000);\n\n $data = $this->request->getData();\n $this->assertArrayNotHasKey('minamount', $data);\n $this->assertArrayNotHasKey('maxamount', $data);\n }", "title": "" }, { "docid": "3ffba0c9c31e51544d4679eeab5744cf", "score": "0.53598094", "text": "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Webkul_MpAuction::auc_pro_cancel');\n }", "title": "" }, { "docid": "f92f343ad411cfc7b9e264aa19e845bd", "score": "0.53418726", "text": "public function testShippingCostNoFees()\n {\n // coeff fees = 1.176470588\n // pour un montant entre 20 et 70\n // shipping = 3.4485\n // 18*1.428571429*1.176470588 + 3.4485\n\n $pricer = $this->getFeesPricer();\n $pricer->setFeeOnShipping(false);\n $price = $pricer->getWinningPrice(35.00, 18.00);\n $this->assertEquals(WinningPrice::TARGET, $price->type);\n $this->assertPrice(33.70, $price);\n }", "title": "" }, { "docid": "f7815bb19578c09cac8770e08a5f12a5", "score": "0.53251904", "text": "public function not_zero($value)\n\t{\n\t\tif (intval($value) <= 0)\n\t\t{\n\t\t\t$this->form_validation->set_message('not_zero', lang('form_validation_isset'));\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "6320693776eb4d1edd6e87c58a3ca8e7", "score": "0.53244996", "text": "public function isFree()\n {\n return $this->paymentOptions()->filter(function (PaymentOption $paymentOption) {\n return $paymentOption->price() != 0;\n })->isEmpty();\n }", "title": "" }, { "docid": "f3a9636081b8303c3a7b1d6c00a84e0f", "score": "0.532264", "text": "public function testSetNegativeBalance(){\n\t\t\t// Arrange\n\t\t\t$pm = new PortfolioManager(14);\n\t\t\t// Act\n\t\t\t$pm->setBalance(-1);\n\t\t\t// Assert\n\t\t\t$this->assertEquals(0, $pm->getBalance());\n\t\t}", "title": "" }, { "docid": "a0098c1ab86c69f6294d70e3257acb08", "score": "0.53208876", "text": "public function testPurchasePriceNoCompetitor()\n {\n $price = $this->getNoshippingPricer()->getWinningPrice(19.35, 8.00);\n $this->assertPrice(11.43, $price);\n }", "title": "" }, { "docid": "09d476ef45ef6781b77130341a123f4e", "score": "0.5304777", "text": "public function getItemProfit() {\n $amountSold = $this->getAmountSold();\n $moneyIn = $amountSold * $this->priceSell;\n $moneyOut = $amountSold * $this->priceBuy;\n $moneyLeft = $this->inStock * $this->priceBuy;\n $total = $moneyIn - $moneyOut - $moneyLeft;\n return $total;\n }", "title": "" }, { "docid": "acc074b9cb9b9d6e0b0f51f3c39fe808", "score": "0.5296256", "text": "public function IsPastCart()\n {\n return ! (bool) $this->IsInCart();\n }", "title": "" }, { "docid": "901ca1eaad018393a9d657f4340d4c73", "score": "0.52714074", "text": "function isBonusEligible() {\n\n\t\t$obj_id = $this->guide_id;\n\n $query = \"SELECT `bonus_eligible`\n FROM `guide_details`\n WHERE `user_id_fk` = :user_id_fk \n AND `bonus_eligible` = 'Y'\";\n\n $result = $this->db->select($query, array( 'user_id_fk' => $obj_id));\n\n\t\tif (count($result) > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "ee432e9bd90c926d36f1de020b9353aa", "score": "0.5270344", "text": "function isWithdrawn() {\n\t\tif ($this->active==0) { return false; }\n\t\treturn $this->dateWithdrawn > 0;\n\t}", "title": "" }, { "docid": "e2d035a51986881641f61b35a9527075", "score": "0.5265783", "text": "public static function isNegativeNumber(File $phpcsFile, $start, $end, $supportsPHP5, $allowFloats = false)\n {\n $number = self::isNumber($phpcsFile, $start, $end, $supportsPHP5, $allowFloats);\n\n if ($number === false) {\n return false;\n }\n\n return ($number < 0);\n }", "title": "" }, { "docid": "c5870a973461a38227f32d5275cd3cc1", "score": "0.52633226", "text": "public static function isNegative(IRatio\\Type $x) : IBool\\Type {\n\t\t\t$a = IInt32\\Module::isNegative($x->numerator())->unbox();\n\t\t\t$b = IInt32\\Module::isNegative($x->denominator())->unbox();\n\t\t\treturn IBool\\Type::box(($a || $b) && ($a != $b));\n\t\t}", "title": "" }, { "docid": "8758a62db6fb9c50d0f413d9af91cf26", "score": "0.52619684", "text": "public function validate()\n {\n // valida que la comision sea un valor numerico en coma flotante\n return filter_var($this->commission, FILTER_VALIDATE_FLOAT);\n }", "title": "" }, { "docid": "18f70510b37ef0cc8cf9ef7a75a09692", "score": "0.5259681", "text": "public function deny(): bool\n {\n if (!$this->isPending()) {\n return false;\n }\n\n return $this->update(['status' => 'denied']);\n }", "title": "" }, { "docid": "d987e2da21e35a925026e194ad702439", "score": "0.5258519", "text": "public function testNegativeRate()\n {\n new GeometricWeighted($this->weightGeneratorStub, 1, 10, -2);\n }", "title": "" }, { "docid": "0b2e5a2775e73cff856f931464348817", "score": "0.5255015", "text": "public function testUnlimitedOverdraft()\n {\n $account = new DebitAccount();\n $account->applyOverdraft(new UnlimitedOverdraft());\n\n for ($i = 0; $i < 3; $i++) {\n $withdrawal = $account->withdraw(Money::fromAmount(PHP_INT_MAX));\n $this->assertEquals(\n PHP_INT_MAX * -1,\n $withdrawal->amount()->amount()\n );\n }\n }", "title": "" }, { "docid": "3539167f8ae4d691254467cd07a30e67", "score": "0.52500576", "text": "public function requiresPayment()\n {\n return $this->getTotal() > 0;\n }", "title": "" }, { "docid": "40f80d49c30a3148b186e4cee6dcb816", "score": "0.52460295", "text": "public function testPrivateWithdrawCharge()\n {\n $this->assertEquals(\n 0.3,\n $this->rules->privateWithdrawCharge()\n );\n }", "title": "" }, { "docid": "48f01bde153447fc931b5649ea4b4755", "score": "0.52440715", "text": "public function negate();", "title": "" }, { "docid": "ff2f6f251020249dc341e42c34437a49", "score": "0.5239493", "text": "public function checkDisbursable()\n {\n $application = Application::find($this->id);\n if(!$application->repaymentCheques->isEmpty()){\n if($application->bank_name!='' && $application->bank_customer_name!='' && $application->bank_account_number!='' && $application->bank_account_type!='' && $application->bank_ifsc_code!='' && $application->mode_of_payment!=''){\n return true;\n } else {\n return false;\n } \n } else {\n return false;\n }\n }", "title": "" }, { "docid": "726569d898fb2ba9bc46691b6a9176c0", "score": "0.5238827", "text": "public function testFreeAmountNotIgnored()\n {\n $this->request->setFreeAmount(1);\n $this->request->setMinAmount(200);\n $this->request->setMaxAmount(9000);\n\n $data = $this->request->getData();\n $this->assertArrayHasKey('minamount', $data);\n $this->assertArrayHasKey('maxamount', $data);\n }", "title": "" }, { "docid": "028b1e9125e63362df92eb6e5b042820", "score": "0.52338797", "text": "public function is_positive($value) \r\n\t{\r\n\t\treturn (isset($value) && is_numeric($value) && ($value > 0));\r\n\t}", "title": "" }, { "docid": "4de37d8551157d005654c9bd61af9507", "score": "0.5232705", "text": "public function isRejected()\r\n\t{\r\n\t\treturn ($this->st_moderation == 'rejected');\r\n\t}", "title": "" }, { "docid": "546c4a80b33fe276a32e04ee7662f561", "score": "0.52266943", "text": "public function abs(): void\n {\n $this->isNegative = false;\n }", "title": "" }, { "docid": "d25b04937541f4d60721a0feef1d0a04", "score": "0.5226148", "text": "public function isHabilToIngresar(){\n return (!$this->hasExpedientesPendientes() && !$this->isEliminado() && \n $this->isInFinalStage() && !$this->isAdmitido());\n}", "title": "" }, { "docid": "49cba89c446e455b48ae5d42a953be75", "score": "0.52260715", "text": "private function checkExclusivePriceRule(&$priceRules)\n {\n $delete = false;\n\n foreach($priceRules as $key => $priceRule) {\n // An exclusive rule has been found. \n if($delete) {\n\t// Deletes the rest of the price rule array.\n\tunset($priceRules[$key]);\n\tcontinue;\n }\n\n // In case of exclusive rule, the rest of the price rule array has to be deleted.\n if($priceRule->behavior == 'XOR') {\n\t$delete = true;\n }\n }\n }", "title": "" }, { "docid": "d041480906cc8436e2f32664ee35fd38", "score": "0.5225475", "text": "public function check_pl_eligible(){\n\t\t$data = $this->Home->findById(CakeSession::read('USER.Login.id'), array('fields'=> 'doj'));\t\t\n\t\t// get diff b/w date\n\t\t$next_year =date('Y-m-d',strtotime($data['Home']['doj'] . \" + 364 day\"));\n\t\t$cur_date = date('Y-m-d');\n\t\tif($cur_date <= $next_year && $this->data['HrLeave']['hr_leave_type_id'] == '2'){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "426357b2102a20721df858d9e00554ee", "score": "0.52254105", "text": "public function isSalable($product)\n {\n if ($this->helper->getRemainingAmount($product) <= 0) {\n return false;\n } else {\n return parent::isSalable($product);\n }\n }", "title": "" }, { "docid": "4865910e2a7809428918d0bc57f593fb", "score": "0.5221931", "text": "public function wantsToRedeemFreelunch()\n {\n return $this->get('free_lunch') == 1;\n }", "title": "" }, { "docid": "82265c6a6ee0c78c7d194277eeacd412", "score": "0.5220771", "text": "public function isDenied(): bool\n {\n return $this->status === 'denied';\n }", "title": "" }, { "docid": "c09473532742a432c620ab6b603d0659", "score": "0.5211305", "text": "public function isPositive(): bool\n {\n return $this->counter > 0;\n }", "title": "" }, { "docid": "03adeb1d3ad14004ff3af8458859ac72", "score": "0.521073", "text": "public function isUrgent();", "title": "" }, { "docid": "4bb54715a7f028729f891ea05d2aae30", "score": "0.52083147", "text": "public function test_Minus100_amount() {\n\n // Define function\n $this->orderstep->defineTestProperties(__FUNCTION__);\n\n // What kind of order\n $orderData = $this->withDiscountMinus100(\"Cash On Delivery\", false, \"selenium\");\n\n // Go to Shop env url\n $this->wd->get(self::$baseUrl);\n\n // Start the process\n try {\n // Order step results, to check assertions\n $results = $this->orderstep->completeOrder($orderData['productDetails'], $orderData['orderDetails'], $orderData['correctTotalValues'], $orderData['correctThankYouPageTotalValues'], $orderData['correctFunnelValues']);\n }\n catch (\\Exception $e) {\n SlackAlerter::webdriverException(basename(__FILE__, \".php\"), __FUNCTION__, $e, self::SLACK_CHANNEL_WEBDRIVER_ERRORS);\n }\n\n // Check for the correct value assertions\n if ($results) {\n foreach ($results as $res):\n try {\n // Assertions\n $this->{$res['assert']}($res['correct_values'], $res['returned_values'], $res['message']);\n }\n catch (\\Exception $e) {\n SlackAlerter::assertException(basename(__FILE__, \".php\"),$this->getName(), $e);\n }\n endforeach;\n }\n }", "title": "" }, { "docid": "5cc7507a310a86e4503bce8cf90d9235", "score": "0.5206724", "text": "public function canDegradeFurther(): bool\n {\n return $this->quality >= $this->getDegradationAmount();\n }", "title": "" }, { "docid": "88768030d2800aee96b77398571c1b8f", "score": "0.52052265", "text": "public function getIsNeedApprove()\n {\n return $this->checkApprove && ($this->isLesson() || $this->isLessonBatchPayment()) && (($this->amount + $this->fee) >= static::MIN_NEEDS_APPROVE_SUM);\n }", "title": "" }, { "docid": "bffe80ef0876cf40fc7647e3fcea0dcc", "score": "0.5205184", "text": "public function overUnderPaid(User $user): bool\n {\n return $user->isAdminOrMore();\n }", "title": "" }, { "docid": "1ae4f11021c285f1c69c9af68a144de8", "score": "0.5200743", "text": "public function isEligible(): bool\n {\n return $this->eligible;\n }", "title": "" }, { "docid": "c7ebcc04c190d6a0e286c98be85b5787", "score": "0.5200438", "text": "public function getProfitAttribute() {\n $profit = $this->sale_price - $this->purchase_price;\n return $profit;\n }", "title": "" } ]
17a1cab502f09bdc6246dde1d55291ec
Get customer defined field values
[ { "docid": "a1953e005f138fe4ac323ae6df1e37bd", "score": "0.0", "text": "public function getCustomerConfig();", "title": "" } ]
[ { "docid": "dccbf56e994e27fda8763a9f149e61e5", "score": "0.73167765", "text": "public function get_fields() {\n\t\treturn apply_filters( 'wpcd_get_custom_fields', $this->custom_fields );\n\t}", "title": "" }, { "docid": "3076dd75ce6a42e7258d222a7788488a", "score": "0.7312045", "text": "public function getContactDataFields();", "title": "" }, { "docid": "cdc3c25d8fd8696c3eaaeb43bdb49e21", "score": "0.7310003", "text": "public function fieldValues()\n {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, \"https://crm.zoho.com/crm/private/xml/Leads/getSearchRecordsByPDC?authtoken=\". config('app.ZOHO_KEY') .\"&scope=crmapi\");\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_TIMEOUT, '50');\n\n $content = curl_exec($ch);\n return $content;\n curl_close($ch);\n }", "title": "" }, { "docid": "82369edb3256db6e323a5aa6aacce9c1", "score": "0.7175914", "text": "function getFields();", "title": "" }, { "docid": "33e93b5f32fb2bad94506250a33e2c09", "score": "0.7165613", "text": "public function getFields() {}", "title": "" }, { "docid": "33e93b5f32fb2bad94506250a33e2c09", "score": "0.7165613", "text": "public function getFields() {}", "title": "" }, { "docid": "33e93b5f32fb2bad94506250a33e2c09", "score": "0.7165613", "text": "public function getFields() {}", "title": "" }, { "docid": "9ba0c7b6cfac0c5057262a72bdc5915c", "score": "0.7161984", "text": "public function getFields();", "title": "" }, { "docid": "9ba0c7b6cfac0c5057262a72bdc5915c", "score": "0.7161984", "text": "public function getFields();", "title": "" }, { "docid": "9ba0c7b6cfac0c5057262a72bdc5915c", "score": "0.7161984", "text": "public function getFields();", "title": "" }, { "docid": "9ba0c7b6cfac0c5057262a72bdc5915c", "score": "0.7161984", "text": "public function getFields();", "title": "" }, { "docid": "9ba0c7b6cfac0c5057262a72bdc5915c", "score": "0.7161984", "text": "public function getFields();", "title": "" }, { "docid": "9ba0c7b6cfac0c5057262a72bdc5915c", "score": "0.7161984", "text": "public function getFields();", "title": "" }, { "docid": "4d98683585c3434329b75110eb05ac45", "score": "0.7128771", "text": "public function getCustomFields() {\n }", "title": "" }, { "docid": "4d98683585c3434329b75110eb05ac45", "score": "0.7128771", "text": "public function getCustomFields() {\n }", "title": "" }, { "docid": "e43b78deda3364440b2e228e2e2f4b2c", "score": "0.71281964", "text": "function getFieldValues()\n {\n $myvalues = $this->m_oPageHelper->getFieldValues($this->m_protocol_shortname);\n return $myvalues;\n }", "title": "" }, { "docid": "02f136d4fb5e13a6a44e74f09089d171", "score": "0.7056538", "text": "function getFieldValue($field);", "title": "" }, { "docid": "25161e92665b9c569d5059d6bdf0b1ca", "score": "0.70219946", "text": "public function getField();", "title": "" }, { "docid": "25161e92665b9c569d5059d6bdf0b1ca", "score": "0.70219946", "text": "public function getField();", "title": "" }, { "docid": "25161e92665b9c569d5059d6bdf0b1ca", "score": "0.70219946", "text": "public function getField();", "title": "" }, { "docid": "ec534e47a5ee8082fe1d8acf9fbb16f0", "score": "0.6981143", "text": "public function fields()\n {\n $fullResult = $this->client->call(\n 'crm.invoice.fields'\n );\n return $fullResult;\n }", "title": "" }, { "docid": "96c60c754a1b9d7f8cb14878fca661c1", "score": "0.6972904", "text": "public static function get_fields()\n {\n }", "title": "" }, { "docid": "8acdc63f629773c93bbd8001a752086b", "score": "0.69125515", "text": "public function getFrontendFields();", "title": "" }, { "docid": "53d0548f69334b568b4a9cf9de781d80", "score": "0.68968827", "text": "abstract public function getFields();", "title": "" }, { "docid": "53d0548f69334b568b4a9cf9de781d80", "score": "0.68968827", "text": "abstract public function getFields();", "title": "" }, { "docid": "993d368d5380af7c65cb15f1dc379af1", "score": "0.6845778", "text": "abstract protected function getFields();", "title": "" }, { "docid": "b03fb134d67e29132e56836b1c6f2ad0", "score": "0.68320453", "text": "function my_custom_field($field, $value){\n\tprint_r($field);\n\tprint_r($value);\n\n}", "title": "" }, { "docid": "687aaf2d60124338c1a5dc815e57f510", "score": "0.68275803", "text": "public function get_custom_fields() {\n\t\treturn apply_filters( 'dev_get_custom_fields', $this->options );\n\t}", "title": "" }, { "docid": "281d42eca942041af282b7d0de0a637a", "score": "0.67949784", "text": "protected function getCompleteFieldInformation() {}", "title": "" }, { "docid": "557afad5fb0e110335541c289d7bd776", "score": "0.67891335", "text": "public function getCustomFields() {\n return Doctrine::getTable('ArticleCustomFieldValue')->getCustomFields($this);\n }", "title": "" }, { "docid": "820f365edf330e73ded1d4e8b29a6b22", "score": "0.6786559", "text": "function my_custom_field($field, $value){\r\n\tprint_r($field);\r\n\tprint_r($value);\r\n\r\n}", "title": "" }, { "docid": "77d4873ffba80d190a23297fd98ead82", "score": "0.67841", "text": "public function fields();", "title": "" }, { "docid": "77d4873ffba80d190a23297fd98ead82", "score": "0.67841", "text": "public function fields();", "title": "" }, { "docid": "77d4873ffba80d190a23297fd98ead82", "score": "0.67841", "text": "public function fields();", "title": "" }, { "docid": "77d4873ffba80d190a23297fd98ead82", "score": "0.67841", "text": "public function fields();", "title": "" }, { "docid": "77d4873ffba80d190a23297fd98ead82", "score": "0.67841", "text": "public function fields();", "title": "" }, { "docid": "7ce7a04e7b38f96cefa095955a2ecd7b", "score": "0.67294985", "text": "public function getFields(): array;", "title": "" }, { "docid": "7ce7a04e7b38f96cefa095955a2ecd7b", "score": "0.67294985", "text": "public function getFields(): array;", "title": "" }, { "docid": "7ce7a04e7b38f96cefa095955a2ecd7b", "score": "0.67294985", "text": "public function getFields(): array;", "title": "" }, { "docid": "aab644794bff3a1484136d7a152be576", "score": "0.67186725", "text": "public function fetchField();", "title": "" }, { "docid": "1ac8ffc909d797493b348f63266f4265", "score": "0.66950715", "text": "public function fetch_fields() {}", "title": "" }, { "docid": "65bb8bde50564662ff86c8dea5785174", "score": "0.6689997", "text": "public function get_fields()\n {\n return [\n \"isys_catg_invoice_list__denotation\" => \"LC__CMDB__CATG__TITLE\",\n \"isys_catg_invoice_list__amount\" => \"LC__CMDB__CATG__INVOICE__AMOUNT\",\n \"isys_catg_invoice_list__date\" => \"LC__CMDB__CATG__INVOICE__DATE\",\n \"isys_catg_invoice_list__edited\" => \"LC__CMDB__CATG__INVOICE__EDITED\",\n \"isys_catg_invoice_list__financial_accounting_delivery\" => \"LC__CMDB__CATG__INVOICE__FINANCIAL_ACCOUNTING_DELIVERY\",\n \"isys_catg_invoice_list__charged\" => \"LC__CMDB__CATG__INVOICE__CHARGED\",\n ];\n }", "title": "" }, { "docid": "c9e6b0ae597593dd370fc725c506a763", "score": "0.667926", "text": "public function providerFieldValues()\n {\n return [\n ['non_existent_field', []],\n ['empty_field', []],\n ['empty_field_2', []],\n [\n 'acf_value_field',\n [\n ['test-1' => 'test 1'],\n ['test-1' => 'test 2'],\n ['test-1' => 'test 3'],\n ],\n ],\n [\n 'acf_option_field',\n [\n [\n 'label' => 'test 1',\n 'slug' => 'test-1',\n ],\n [\n 'label' => 'test 2',\n 'slug' => 'test-2',\n ],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "2e40bfbf52968308feaa96a26803cd35", "score": "0.6664421", "text": "public function getCustomFields()\n {\n return $this->customFields;\n }", "title": "" }, { "docid": "2e40bfbf52968308feaa96a26803cd35", "score": "0.6664421", "text": "public function getCustomFields()\n {\n return $this->customFields;\n }", "title": "" }, { "docid": "9b668a2b50339b212723ade865082f2e", "score": "0.6657963", "text": "public function fetchFields();", "title": "" }, { "docid": "9df5f658d1edeed43ce86b2eeac3671f", "score": "0.6621156", "text": "public function getCustomFields()\n\t{\n\t\t$all_customs = array();\n\t\t$results = $this->grApiInstance->getCustomFields();\n\t\tif ( !empty($results))\n\t\t{\n\t\t\tforeach ($results as $ac)\n\t\t\t{\n\t\t\t\tif (isset($ac->name) && isset($ac->customFieldId)) {\n\t\t\t\t\t$all_customs[$ac->name] = $ac->customFieldId;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $all_customs;\n\t}", "title": "" }, { "docid": "ef603666ce8fd4a07ca869c4a98c8a23", "score": "0.6598014", "text": "public function get_field(/* .... */)\n {\n return $this->_field;\n }", "title": "" }, { "docid": "b9e6ec3ea14c2c6054118683532f37ce", "score": "0.6589791", "text": "public function fields()\n {\n $fullResult = $this->client->call(\n 'crm.dealcategory.fields'\n );\n return $fullResult;\n }", "title": "" }, { "docid": "2a15aec75ff9531380d4759ee904d207", "score": "0.6581416", "text": "public function get_custom_fields(){\n $items = array();\n $success = $this->new_request( \"GET\", \"$this->account_id/custom_field_identifiers\" );\n if( ! $success ){\n return array();\n }\n $response = json_decode( $this->ironman->get_response_body(), true );\n $fields = isset( $response['custom_field_identifiers'] ) ? $response['custom_field_identifiers'] : array();\n foreach( $fields as $field ){\n $items[$field] = $field;\n }\n return $items;\n }", "title": "" }, { "docid": "c32e0405657f2f37d47477253952ff0f", "score": "0.6570917", "text": "public function &getFields();", "title": "" }, { "docid": "c02bf77f14975ad37c5b94bdf7c360de", "score": "0.6537694", "text": "public function getFormCustomFields(){\n\t}", "title": "" }, { "docid": "dd4e35a708ea3b540d72d1b20e390193", "score": "0.65371966", "text": "public function getFields(): array\n {\n return [\n 'user_id' => 'text',\n 'api_key' => 'text',\n 'shop_id' => 'text',\n 'secret_key' => 'password',\n ];\n }", "title": "" }, { "docid": "f0cf6a5645c2fe0e1ad55f7c77b1b3fd", "score": "0.65347314", "text": "public static function getFields(){\n\t\treturn self::$fields;\n\t}", "title": "" }, { "docid": "cfe0538656c4c9a973985b41a04ecacd", "score": "0.65345716", "text": "public function getCustomFields()\n {\n # GET /accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}/fields\n }", "title": "" }, { "docid": "2650a07e6f9ec7ae7defc84096fe0802", "score": "0.6534363", "text": "public function getFields(){ return $this->field_map; }", "title": "" }, { "docid": "9ab13633f4210b898e68ba0f3d1c7e0d", "score": "0.6520966", "text": "function get_fields() {\n global $Tainacan_Item_Metadata;\n return $Tainacan_Item_Metadata->fetch($this, 'OBJECT');\n\n }", "title": "" }, { "docid": "b3cf32eff74cdfd26eb74d1107f58010", "score": "0.65031445", "text": "public function getUserfield();", "title": "" }, { "docid": "c3a7eeff0945e0236b243facb869890e", "score": "0.6475145", "text": "function ywccp_get_all_custom_fields(){\r\n\t\t\r\n\t\t$fields = array();\r\n\t\t// get billing\r\n\t\t$fields['billing'] = ywccp_get_custom_fields('billing');\r\n\t\t// get shipping\r\n\t\t$fields['shipping'] = ywccp_get_custom_fields('shipping');\r\n\t\t// get additional\r\n\t\t$fields['additional'] = ywccp_get_custom_fields('additional');\r\n\t\t\r\n\t\treturn $fields;\r\n\t}", "title": "" }, { "docid": "b6734d8dc2ec59c822e12fbec7302a2a", "score": "0.6467607", "text": "function field_data()\n\t{\n\t\t$retval = array();\n\t\tforeach(sqlsrv_field_metadata($this->result_id) as $offset => $field)\n\t\t{\n\t\t\t$F \t\t\t\t= new stdClass();\n\t\t\t$F->name \t\t= $field['Name'];\n\t\t\t$F->type \t\t= $field['Type'];\n\t\t\t$F->max_length\t= $field['Size'];\n\t\t\t$F->primary_key = 0;\n\t\t\t$F->default\t\t= '';\n\t\t\t\n\t\t\t$retval[] = $F;\n\t\t}\n\t\t\n\t\treturn $retval;\n\t}", "title": "" }, { "docid": "ca56fadc695478248bdeacedeff13a40", "score": "0.6465747", "text": "public function fields()\n {\n $fullResult = $this->client->call(\n 'crm.requisite.fields'\n );\n return $fullResult;\n }", "title": "" }, { "docid": "e21e3d0f2cccf8f6f6046bd5b16a98e7", "score": "0.64545804", "text": "protected function get_fields() {\n\t\treturn rwmb_get_registry( 'field' )->get_by_object_type( 'post' );\n\t}", "title": "" }, { "docid": "2cc5cd0d9a74b9667126eec145b42a94", "score": "0.645123", "text": "function get_fields( ) {\n\t\treturn $this->fields_list;\n\t\t}", "title": "" }, { "docid": "8fb1b7cc04c59b0f51bd7e40d7e22b03", "score": "0.64309084", "text": "public function fields(){\n\t\treturn array();\n\t}", "title": "" }, { "docid": "1dc8d9e67d5b0917e558b31b0ae734c8", "score": "0.64290273", "text": "public function __get ($field) {\n return $this->__fields[$field]['data'];\n }", "title": "" }, { "docid": "62cc78c6a53109f8aaebd178e26e23e5", "score": "0.642794", "text": "public function getAllFields();", "title": "" }, { "docid": "0bd9913ceafb7869674500e39c678c3c", "score": "0.64139795", "text": "abstract public function fields();", "title": "" }, { "docid": "631ca27d41b1f0135c21e39c3525c86f", "score": "0.64099544", "text": "function get_fields()\n\t{\n\t\t$fields=new ocp_tempcode();\n\t\t$fields->attach(form_input_line(do_lang_tempcode('MAIL_DOMAIN'),do_lang_tempcode('DESCRIPTION_MAIL_DOMAIN'),'dpop3','',true));\n\t\t$fields->attach(form_input_integer(do_lang_tempcode('MAIL_COST'),do_lang_tempcode('_DESCRIPTION_MAIL_COST'),'pop3',NULL,true));\n\t\treturn $fields;\n\t}", "title": "" }, { "docid": "a1521dfc524044217583eeac10cb84b3", "score": "0.64069206", "text": "public function getField(){\n return $this->field;\n }", "title": "" }, { "docid": "c4678a435e0c24b18b90d6f33d36bea3", "score": "0.6405248", "text": "public function get_fields() {\n return $this->fields;\n }", "title": "" }, { "docid": "1dc11d359ee0c80e9bbac547d842956b", "score": "0.6404437", "text": "public function getCustomFields()\n {\n return $this->_customFields ?: array();\n }", "title": "" }, { "docid": "6c5de1969ea3a95251b94f6d8fc1be4a", "score": "0.64019597", "text": "public function getFieldValues()\n {\n if($this->isNewRecord){\n return []; //TODO: LOAD DEFAULT FIELDS OF TYPE\n }\n\n //pull meta values from DB\n $table = self::tablePrefix().'cms_post_field';\n $strSql = \"SELECT id, field_id, value \n\t\t\t\t\tFROM {$table}\n\t\t\t\t\tWHERE post_id = :pid\n\t\t\t\t \";\n $cmd = self::getDb()->createCommand($strSql);\n $cmd->bindValue(\":pid\",$this->id,\\PDO::PARAM_STR);\n $arrResults = $cmd->queryAll();\n\n return ArrayHelper::index($arrResults, 'id', 'field_id');\n }", "title": "" }, { "docid": "fe65c2194a4716f485e90fa06272c842", "score": "0.63997656", "text": "function getCustomFields( $entity, $id, $cache_values = true, $editable_by = '' )\n\t{\n\t\tTienda::load( 'TiendaModelEavAttributes', 'models.eavattributes' );\n\t\tTienda::load( 'TiendaHelperEav', 'helpers.eav' );\n\t\t\n\t\t$eavs = TiendaHelperEav::getAttributes( $entity, $id, false, $editable_by );\n\t\t\n\t\t$fields = array( );\n\t\tforeach ( @$eavs as $eav )\n\t\t{\n\t\t\t$key = $eav->eavattribute_alias;\n\n\t\t\t$value = TiendaHelperEav::getAttributeValue( $eav, $entity, $id, false, $cache_values );\n\t\t\t\n\t\t\t$fields[] = array(\n\t\t\t\t'attribute' => $eav, 'value' => $value\n\t\t\t);\n\t\t}\n\t\t\n\t\treturn $fields;\n\t}", "title": "" }, { "docid": "3031a5999c392f3de41db686c7e77a6f", "score": "0.63931614", "text": "public function get_fields() {\r\n\t\treturn $this->fields;\r\n\t}", "title": "" }, { "docid": "33d611cec9f96fd51a151397d785fa93", "score": "0.6379297", "text": "public function getFieldsList(){\n return $this->_get(1);\n }", "title": "" }, { "docid": "144f62860563a904f6e5088aaa2e32e8", "score": "0.6369391", "text": "abstract public function getFields(): array;", "title": "" }, { "docid": "58614ad5028bb49c6947cbda53245582", "score": "0.63671815", "text": "function fields($fldname) {\n\t\treturn $this->fields[$fldname];\n\t}", "title": "" }, { "docid": "a6175a25f88f34dbc1ca01c7be59c5f2", "score": "0.6357852", "text": "public function getFields() {\r\n\r\n $fields = array();\r\n\r\n $fields['userid'] = $this->userid;\r\n $fields['itemid'] = $this->itemid;\r\n\r\n $fields['type'] = $this->type;\r\n $fields['detail'] = $this->detail;\r\n $fields['date'] = $this->date;\r\n\r\n $fields['location_simple'] = $this->location_simple;\r\n $fields['location_latlong'] = $this->location_latlong;\r\n\r\n foreach ($this->extra as $key => $value) {\r\n $fields[$key] = $value;\r\n }\r\n\r\n return $fields;\r\n }", "title": "" }, { "docid": "565d748714ea3c88f26cbb9c48b6f4a7", "score": "0.635647", "text": "public function getField($field_name);", "title": "" }, { "docid": "2d41261080baa010511300196f135bf4", "score": "0.6354575", "text": "protected function getFields()\n {\n return $this->fields;\n }", "title": "" }, { "docid": "2d41261080baa010511300196f135bf4", "score": "0.6354575", "text": "protected function getFields()\n {\n return $this->fields;\n }", "title": "" }, { "docid": "8d0e1af53a5bf607a245b89fe0c975b9", "score": "0.63532615", "text": "protected function _getFields()\r\n\t{\r\n\t\treturn array(\r\n\t\t\t'xf_resource_purchased' => array(\r\n\t\t\t\t'resource_purchased_id'\t=> array('type' => self::TYPE_UINT, 'autoIncrement' => true),\r\n\t\t\t\t'resource_id'\t\t\t=> array('type' => self::TYPE_UINT, 'required' => true),\r\n\t\t\t\t'user_id'\t\t\t\t=> array('type' => self::TYPE_UINT, 'required' => true),\r\n\t\t\t\t'resource_version_id'\t=> array('type' => self::TYPE_UINT, 'default' => 0),\r\n\t\t\t\t'purchased_date'\t\t=> array('type' => self::TYPE_UINT, 'default' => XenForo_Application::$time),\r\n\t\t\t\t'resource_price'\t\t=> array('type' => self::TYPE_FLOAT, 'default' => 0),\r\n\t\t\t\t'active'\t\t\t\t=> array('type' => self::TYPE_UINT, 'default' => 1),\r\n\t\t\t)\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "832641b9deceda5128f91d09ecb1917c", "score": "0.6352835", "text": "public function getField(): string;", "title": "" }, { "docid": "50340488360491e8096287bb7a5853ff", "score": "0.63494956", "text": "public function fields()\n {\n return array_map(\n function (array $field) {\n return Field::fromArray($field);\n },\n $this->client->get('field')\n );\n }", "title": "" }, { "docid": "c42fd660ff20dccb4359dfe071280a5f", "score": "0.6346352", "text": "public function get_fields() {\n\t\treturn $this->fields;\n\t}", "title": "" }, { "docid": "86994709d21eb3fed42a3d143761ea0d", "score": "0.63366866", "text": "function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}", "title": "" }, { "docid": "418dce5e8d150fd7905f466948053bdb", "score": "0.63287187", "text": "function get_field_data($usr, $field)\n\t{\n\t\t$campos = array(\n\t\t\t'usr_dir' => $usr->getDireccion(),\n\t\t\t'usr_email' => $usr->getEmail(),\n\t\t\t'usr_name' => $usr->getName(),\n\t\t\t'usr_resp' => $usr->getRespuesta(),\n\t\t\t'usr_cod_postal' => $usr->getCod_Postal(),\n\t\t\t'usr_dir' => $usr->getDireccion(),\n\t\t\t'usr_pw' => $usr->getPass());\n\t\t$data = '';\n\n\t\tforeach ($campos as $key => $value) {\n\t\t\tif( $field == $key )\n\t\t\t\t$data = $value;\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "4ea02e6e92534519926261c0316f4276", "score": "0.6326947", "text": "public function __get($field){\n if ($field == 'ENTIDAD_ID'){\n return $this->codigo;\n }\n else{\n return $this->fields;\n }\n }", "title": "" }, { "docid": "4fe665b88868d22d8e33523d99c4e709", "score": "0.63266087", "text": "protected function getExplicitAuthFieldValues() {}", "title": "" }, { "docid": "cdb18c54d7dc84ff7b65a27372d77e9f", "score": "0.6325313", "text": "public static function getFields() {\n return self::$fields;\n }", "title": "" }, { "docid": "c67dc89f52422f180160ee42207f2f44", "score": "0.63246804", "text": "public function &getFields() { return $this->fields; }", "title": "" }, { "docid": "7542f9426dd70943119afc889138870a", "score": "0.63242304", "text": "function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }", "title": "" }, { "docid": "1deed400a7c62eac714ac7c633eb638a", "score": "0.6321047", "text": "public function getFields() {\n $field = $this->get('field');\n return null !== $field ? $field : array();\n }", "title": "" }, { "docid": "d54469cd224f40652c044c23536846ab", "score": "0.6319649", "text": "public function get_values() {\n\t\t$values = [];\n\n\t\tforeach ( $this->fields as $field ) {\n\t\t\t$values[$field->name] = $field->get_value();\n\t\t}\n\n\t\treturn $values;\n\t}", "title": "" }, { "docid": "11143c72013ca96dc09737235bc478ae", "score": "0.6319606", "text": "protected function get_registered_fields()\n {\n }", "title": "" }, { "docid": "f42bedab85c352cdfc013e24fd1b6b96", "score": "0.63125086", "text": "public function getFields(){\n\t\treturn $this->Fields;\n\t}", "title": "" }, { "docid": "a110cfac33d0c513411797cfea3909b9", "score": "0.6305558", "text": "public function fields()\n {\n $fields = array();\n\n foreach ($this->_data as $field => $row)\n {\n $fields[$field] = $row['value'];\n }\n\n return $fields;\n }", "title": "" }, { "docid": "acf1696eaa7d442f5fe424924e86125b", "score": "0.63017446", "text": "public function fields() {\n return $this->fields;\n }", "title": "" }, { "docid": "1f83b1e61ba0fbab7f7bf9c6d7c5971f", "score": "0.62978846", "text": "public function getFields()\n {\n return $this->arr_defined_fields;\n }", "title": "" }, { "docid": "928371e1dddeea9d5c5025c7a2e36e95", "score": "0.62959576", "text": "public function fields()\r\n {\r\n return $this->fields;\r\n }", "title": "" }, { "docid": "0b2d6dc96074945a454300b54fe4429b", "score": "0.62952524", "text": "public static function getExplicitAuthFieldValues() {}", "title": "" } ]
f06054d0f13ece27d6d0397db34a8d4d
Detach the Profiler's event
[ { "docid": "54529d07c2010f9e6e3b5d42042edaba", "score": "0.6565555", "text": "public static function detach()\n\t{\n\t\tEvent::clear('laravel.done');\n\t\tEvent::clear('laravel.log');\n\t\tEvent::clear('laravel.query');\n\t}", "title": "" } ]
[ { "docid": "380b65a9f72b89aaff7f50746eaf71a2", "score": "0.63216215", "text": "public function detach()\n {\n }", "title": "" }, { "docid": "0def0dcd4095bca3c0d1141ea136e60d", "score": "0.62705815", "text": "public function detach(EventManagerInterface $events)\n {\n \tforeach ($this->callbacks as $index => $callback) {\n if ($events->detach($callback)) {\n unset($this->callbacks[$index]);\n }\n }\n }", "title": "" }, { "docid": "3f6dc1ba22db954d177d28d4edad7797", "score": "0.6229283", "text": "protected function tearDown() {\r\n\t\tunset ( $this->event );\r\n\t}", "title": "" }, { "docid": "6c0db27a80d90ea7c03cf17f97bbf095", "score": "0.6223464", "text": "public function __destruct()\n {\n $this->skipEvents(false);\n }", "title": "" }, { "docid": "80e1d3af54ba968e044045882fe1b1e0", "score": "0.61020356", "text": "public function detach(SplObserver $observer)\n {\n }", "title": "" }, { "docid": "eadb00ca18ee29fb08ce3341b805f6ff", "score": "0.6094132", "text": "public static function unsetEventDispatcher();", "title": "" }, { "docid": "20c1bb6b8cbbf382eb1efd73b19f2f5e", "score": "0.60681957", "text": "protected function _unsubscribeFromEngineEvents()\n {\n $controller = $this->getController();\n $controller->removeEventListener(\n Streamwide_Engine_Events_Event::TIMEOUT,\n array( 'callback' => array( $this, 'onTimeout' ) )\n );\n }", "title": "" }, { "docid": "c860c1893ab78981b8b2fbe933163b7a", "score": "0.6067123", "text": "public function detach(string $eventType, $handler): void;", "title": "" }, { "docid": "6a64509d92b461daae271433c8c1e708", "score": "0.60438836", "text": "public function detach_observer( hooks\\helper\\observer_abstract $OBSERVER )\n {\n $this->_store->detach( $OBSERVER );\n }", "title": "" }, { "docid": "106188104f29cb867d3482c51bb9a918", "score": "0.60126525", "text": "public function detach(EventManagerInterface $events)\n {\n }", "title": "" }, { "docid": "81a9c27448fc2e7a57a9afa7481a7909", "score": "0.5971315", "text": "public function __destruct()\n {\n unset($this->keyEvent);\n }", "title": "" }, { "docid": "8fc2ad3a54bd97ec3b29218046bb586d", "score": "0.59483355", "text": "public function detach(EventManagerInterface $events)\n {\n foreach ($this->listeners as $index => $callback) {\n if ($events->detach($callback)) {\n unset($this->listeners[$index]);\n }\n }\n }", "title": "" }, { "docid": "dd3d20ff0b844eaef86fd0d571f67797", "score": "0.5947127", "text": "public function detach(AbstractObserver $observer_in) \n {\n foreach($this->observers as $key => $val) \n {\n \t if ($val == $observer_in) \n \t {\n \t unset($this->observers[$key]);\n \t }\n \t}\n }", "title": "" }, { "docid": "470910700669014f6e57fb4b50e07c18", "score": "0.59223956", "text": "public function detach(EventManagerInterface $events)\n\t{\n\t\tforeach ($this->_listeners as $index => $listener) {\n\t\t\tif ($events->detach($listener)) {\n\t\t\t\tunset($this->_listeners[$index]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "515ccbeae66b52add104caccb80df21b", "score": "0.5905286", "text": "final public function detach(ixarEventObserver $obs)\n {\n $id = $obs->module;\n if (isset($this->observers[$id]))\n unset($this->observers[$id]); \n }", "title": "" }, { "docid": "a52e6ad2030e121514f99abe14807f7d", "score": "0.58502287", "text": "public function detachEvent($event)\n {\n return $this->events()->detach($event);\n }", "title": "" }, { "docid": "fc67a2565da9a063101bd08295787bff", "score": "0.58497316", "text": "public function detach(EventManagerInterface $events)\n {\n foreach ($this->listeners as $index => $listener) {\n if ($events->detach($listener)) {\n unset($this->listeners[$index]);\n }\n }\n }", "title": "" }, { "docid": "fc67a2565da9a063101bd08295787bff", "score": "0.58497316", "text": "public function detach(EventManagerInterface $events)\n {\n foreach ($this->listeners as $index => $listener) {\n if ($events->detach($listener)) {\n unset($this->listeners[$index]);\n }\n }\n }", "title": "" }, { "docid": "fc67a2565da9a063101bd08295787bff", "score": "0.58497316", "text": "public function detach(EventManagerInterface $events)\n {\n foreach ($this->listeners as $index => $listener) {\n if ($events->detach($listener)) {\n unset($this->listeners[$index]);\n }\n }\n }", "title": "" }, { "docid": "a17c983de5091d9686e383b3168585b5", "score": "0.57998675", "text": "public function stopEvent()\n {\n $this->_stopEvent = true;\n }", "title": "" }, { "docid": "0b3fec9f1af3da0c425b9579b603f3e4", "score": "0.57513595", "text": "public function detachObserver(Observer $observer): void\n {\n $hashKey = spl_object_hash($observer);\n unset($this->_observers[$hashKey]);\n\n }", "title": "" }, { "docid": "a575ccf8db2df49c93defcc66b844f63", "score": "0.5743965", "text": "public function detach (SplObserver $observer)\n {\n if ($key = array_search($observer, $this->_observers)) {\n unset($this->_observers[$key]);\n }\n }", "title": "" }, { "docid": "63ec0a51c00d50b37004b84fe5d41670", "score": "0.5733753", "text": "public function testDetachListener2()\n {\n $l = new \\stdClass();\n $this->object->detachListener($l);\n }", "title": "" }, { "docid": "5f7401c878cfe51c9628797416e1b22b", "score": "0.57232344", "text": "public function detach(SplObserver $observer) {\n\t\t$this->_observers->detach($observer);\n\t}", "title": "" }, { "docid": "d33182b79f2365ecbc70f1d121a78450", "score": "0.5701868", "text": "public static function onDeActivate()\n {\n return;\n }", "title": "" }, { "docid": "717f39ca3416538c20762263914d6376", "score": "0.5676097", "text": "public function unsubscribed(): void;", "title": "" }, { "docid": "59abc51020fec526d41dc1899184049d", "score": "0.56375194", "text": "function detach(AbstractObserver $observerIn)\n {\n foreach ($this->observers as $observerKey => $observerVal)\n {\n if($observerVal == $observerIn)\n unset($this->observers[$observerKey]);\n }\n\n }", "title": "" }, { "docid": "2c5e4cb3dea14ecba4d9b9623c24ce4d", "score": "0.5618733", "text": "public function detachShared(SharedEventManagerInterface $events)\n {\n foreach ($this->listeners as $index => $listener) {\n $events->detach(self::EVENT_MANAGER_ID, $listener);\n }\n }", "title": "" }, { "docid": "ca4a722d2ad0713ca53d9f20cad267ee", "score": "0.55998975", "text": "function onUnload()\n\t{\n\t\t$this->disableApplicationEvents();\n\t\t$this->disableDedicatedEvents();\n\t\t$this->disableStorageEvents();\n\t\t$this->disableTickerEvent();\n\t\t$this->disablePluginEvents();\n\n\t\t$this->unregisterAllChatCommands();\n\n\t\t$this->methods = array();\n\t}", "title": "" }, { "docid": "4f8c7bac3ecbd80b758ff838cf8e825b", "score": "0.5589534", "text": "private function detachEmployee(): void\n {\n $this->skill->employees()->detach($this->data['employee_id']);\n }", "title": "" }, { "docid": "ff08cfb06414c9fc618fe6026ef2f4af", "score": "0.55880904", "text": "public function detach(EventManager\\EventManagerInterface $events)\n {\n // TODO: Implement detach() method.\n }", "title": "" }, { "docid": "817d384c3457c459a4947ea1b2783cc8", "score": "0.55742395", "text": "public function __destruct() {\n $this->endPerformanceMeasurements();\n }", "title": "" }, { "docid": "64a5e8e714b7a177daeab41f818b4949", "score": "0.5562599", "text": "public function detach(Observer $observer) {\n foreach ($this->observers as $key => $obs) {\n if ($observer == $obs) {\n unset($this->observers[$key]);\n break;\n }\n }\n }", "title": "" }, { "docid": "a72aebc7e048db1e3f93b8251e909481", "score": "0.5555881", "text": "public function removeEventListener(EventListener $eventListener);", "title": "" }, { "docid": "e72f3c4a45a8481c9a11cca7ed1c78d1", "score": "0.5551794", "text": "public function detach(Observer $observer) {\n\t\t// $this->observers = array_diff($this->observers, array($observer));\n\t\t\n\t\t$newObservers = array();\n\t\t\n\t\tforeach ($this->observers as $oldObserver) {\n\t\t\tif ($oldObserver === $observer) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$newObservers[] = $oldObserver;\n\t\t}\n\t\t$this->observers = $newObservers;\t\t\n\t}", "title": "" }, { "docid": "898d82a213e88eded0805cbc718aaff5", "score": "0.5533304", "text": "public function destroy(){\n $this->conn->removeListener('data', $this->ondata);\n $this->conn->removeListener('error', $this->onerror);\n $this->conn->removeListener('close', $this->onclose);\n $this->decoder->removeListener('decoded', $this->ondecoded);\n }", "title": "" }, { "docid": "5f7656f8d12754f3753c460894d3cad7", "score": "0.5518822", "text": "public static function unsetEventDispatcher()\n {\n static::$dispatcher = null;\n }", "title": "" }, { "docid": "dcd70ac8b7d8201016b3d86107e58c79", "score": "0.55142605", "text": "function __destruct()\n {\n $this->subject->detach($this);\n }", "title": "" }, { "docid": "6e514fa69a37528feab037511100237c", "score": "0.55108464", "text": "public function testDetachEventHandler()\n {\n $request = Curl\\Request::newRequest('http://www.google.com');\n $callback = function() {\n $this->fail('An error occurred. This callback must not be executed');\n };\n $request->on('beforeSend', $callback)->off('beforeSend', $callback);\n $request->send();\n }", "title": "" }, { "docid": "44ef10a766a24fcd87b3ab3d8a0cafe1", "score": "0.54933494", "text": "public function detachAllObserversForEvent($event)\n {\n if (!isset($this->_observers[$event])) {\n return;\n }\n\n unset($this->_observers[$event]);\n\n }", "title": "" }, { "docid": "f2ba4114187b30361d7bfdd9f9e4809f", "score": "0.548169", "text": "public function detach($event, IObserver $observer)\n {\n if (!isset($this->_observers[$event])) {\n return;\n }\n\n foreach ($this->_observers[$event] as $key=> $attachedObserver) {\n if ($attachedObserver === $observer) {\n array_splice($this->_observers[$event], $key, 1);\n }\n }\n }", "title": "" }, { "docid": "007add5d5c814ceed02e5ce0cddfd38b", "score": "0.5480828", "text": "public function deinitPlugin()\n {\n $dispatcher = $this->client->getEventDispatcher();\n if (is_subclass_of($dispatcher, '\\Symfony\\Component\\EventDispatcher\\EventDispatcherInterface')) {\n $dispatcher->removeListener(Events::PRE_EXECUTE_REQUEST, [$this, 'preExecuteRequest']);\n }\n }", "title": "" }, { "docid": "6ccd1bee09dd41008de8ce9eb47cd680", "score": "0.54679173", "text": "public function __destruct(){ $this->unloadLogs(); }", "title": "" }, { "docid": "10f79745513031f27f846951cfafeed3", "score": "0.5467884", "text": "public static function shutdown()\n {\n // Don't do anything if the profiler has already been stopped.\n $profiler = self::load();\n if (!$profiler->isRunning()) {\n return;\n }\n $profiler->stop();\n if (!DApplicationMode::isProductionMode()\n // Check that the router allows reporting.\n // @todo Do this in a better way, profiler shouldn't know about router!\n && (!DRouter::$router || DRouter::$router->profile())\n ) {\n $reportGenerator = DProfilerReportGenerator::decorate($profiler);\n $report = $reportGenerator->generateReport();\n DErrorHandler::$profiling[] =& $report;\n }\n }", "title": "" }, { "docid": "a730acb721ef7d228fe3ca96dee9f886", "score": "0.5463951", "text": "static public function off($event, $group = null)\r\n {\r\n if ($group === null) {\r\n unset(self::$handlers[$event]);\r\n } else {\r\n unset(self::$handlers[$event][$group]);\r\n }\r\n }", "title": "" }, { "docid": "10044d0d6df8fbdfef64aa5a98368444", "score": "0.544374", "text": "public function clear()\n {\n $this->events = [];\n }", "title": "" }, { "docid": "b3e34cedd5adacf51567927013c849c2", "score": "0.5438578", "text": "public function detach(SplObserver $observer) {\n $count = $this->observers->count();\n for ($i = 0; $i < $count; $i++) {\n if ($this->observers->offsetGet($i) == $observer) {\n $this->observers->offsetUnset($i);\n }\n }\n }", "title": "" }, { "docid": "9dd48b30e47ee162dd22a6736a143717", "score": "0.54250526", "text": "public function removeEventHandler() {\n\t}", "title": "" }, { "docid": "298bec999fe17e1d3f3f4190b71bf1d9", "score": "0.5412046", "text": "public function clearAuditEvents()\n\t{\n\t\t$this->collAuditEvents = null; // important to set this to NULL since that means it is uninitialized\n\t}", "title": "" }, { "docid": "394fbfd699d2244b83885d75d136c2b9", "score": "0.53797424", "text": "public function tearDown() {\n $this->subscriber = null;\n }", "title": "" }, { "docid": "7c10447d487490c84bf08f2cdbbc283a", "score": "0.5366557", "text": "public function deactivation() {\n\n\t\t}", "title": "" }, { "docid": "bf6c8a655e964dac2e0b3a0b6e4b5b43", "score": "0.5365523", "text": "public function detach(OLPBlackbox_Rule_IObserver $observer)\n\t{\n\t\t$key = array_search($observer, $this->observers);\n\t\tif ($key !== FALSE)\n\t\t{\n\t\t\tunset($this->observers[$key]);\n\t\t}\n\t}", "title": "" }, { "docid": "d2e7686106c9ee8b2b0b0306dbb96c63", "score": "0.5362013", "text": "public function forget($name)\n {\n if (isset($this->events[$name])) {\n unset($this->events[$name]);\n }\n }", "title": "" }, { "docid": "035a1f1242ad443b69ca2d2a6761d179", "score": "0.5351808", "text": "public function __destruct() {\n\t\t\t$this->logSubscriptionData();\n\t\t\t$this->mailer->disconnect();\n\t\t}", "title": "" }, { "docid": "b6df00faa560ed2cd0d0f37f9f84ea33", "score": "0.5341455", "text": "public function disableLifecycleEvents()\n {\n $this->lifecycleEventsActive = false;\n }", "title": "" }, { "docid": "d57c62db8f0bcd49f814eea832e225bb", "score": "0.5337495", "text": "public function unsubscribe($event, $callback);", "title": "" }, { "docid": "e1d696c708584cbf94c23ec588bc0dde", "score": "0.53282726", "text": "final public function clearRecordedEvents(): void\n {\n $this->latestRecordedEvents = [];\n }", "title": "" }, { "docid": "145a41658788b6dc81bb3d470df6c037", "score": "0.53160226", "text": "public function detach(ProgressObserverInterface $observer)\n {\n $observerIndex = array_search($observer, $this->observers);\n if (false !== $observer) {\n unset($this->observers[$observerIndex]);\n }\n }", "title": "" }, { "docid": "087aa85c9e0b6d7e6ae571d2abcfcbee", "score": "0.5302417", "text": "public function suspendEvents();", "title": "" }, { "docid": "2e66287fa24b9a5513d42ec094adde40", "score": "0.52937865", "text": "public function detach(SplObserver $observer)\n {\n foreach ($this->observers as $key => $attached) {\n if ($attached === $observer) {\n unset($this->observers[$key]);\n return;\n }\n }\n }", "title": "" }, { "docid": "80ceb17ce4dee233c0e62be7cd2be045", "score": "0.52833724", "text": "protected function clearProcessedEvent() {\n\t\tif ( !$this->baseEvent ) {\n\t\t\treturn;\n\t\t}\n\t\t$conds = array( 'eeb_user_id' => $this->mUser->getId(), 'eeb_event_hash' => $this->bundleHash );\n\n\t\t$conds[] = 'eeb_event_id <= ' . intval( $this->baseEvent->getId() );\n\n\t\t$dbw = MWEchoDbFactory::newFromDefault()->getEchoDb( DB_MASTER );\n\t\t$dbw->delete(\n\t\t\t'echo_email_batch',\n\t\t\t$conds,\n\t\t\t__METHOD__\n\t\t);\n\t}", "title": "" }, { "docid": "c642b9552d0a5f9d1d4e705aa8aea56b", "score": "0.5277676", "text": "public function detach( \\SplObserver $event ) { \n\t\tif ( $this->has( $event ) ) {\n\t\t\t$this->observers->detach( $event );\t\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "caf2c6395da338dd2934114551e62c7d", "score": "0.5276628", "text": "function unsubscribe (IObservable $observable, $eventName);", "title": "" }, { "docid": "08cf3920ddfe1ed8bb803a4a2fdc513b", "score": "0.5271112", "text": "public function unsuspend()\r\n\t{\r\n\t}", "title": "" }, { "docid": "67c29d602d5cd246ce112c174aaa3eee", "score": "0.5254499", "text": "public function onDeactivate()\n {\n }", "title": "" }, { "docid": "c926492a4660fc598c44b3e5f346baed", "score": "0.52541023", "text": "public function off($event, $callback);", "title": "" }, { "docid": "58a68b7a6ff5be1693933037f61ba4ba", "score": "0.5250597", "text": "public function __destruct()\n {\n $this->unregister();\n }", "title": "" }, { "docid": "58a68b7a6ff5be1693933037f61ba4ba", "score": "0.5250597", "text": "public function __destruct()\n {\n $this->unregister();\n }", "title": "" }, { "docid": "d3d3ff09b0d2bc0f6ac5ac5ca035bc55", "score": "0.5245404", "text": "static function off($ev_name, $callback = null)\n {\n if ($callback === null) {\n unset(s::$ev_listeners[$ev_name]);\n } else {\n if (is_string($callback)) {\n unset(s::$ev_listeners[$ev_name][$callback]);\n } else {\n s::$ev_listeners[$ev_name] = array_diff(s::$ev_listeners[$ev_name], array($callback));\n }\n }\n }", "title": "" }, { "docid": "179a37796b90550b716897acd5dc8333", "score": "0.5245228", "text": "public static function deactivate() {\t\n\n\t\t//find out when the last event was scheduled\n\t\t$timestamp = wp_next_scheduled('woomr_cron');\n\n\t\t//unschedule previous event if any\n\t\twp_unschedule_event($timestamp,'woomr_cron');\n\t}", "title": "" }, { "docid": "1737b4edc8968ae4317de12092be041d", "score": "0.52370584", "text": "public function tear_down() {\n\n\t\tparent::tear_down();\n\t\tremove_filter( 'llms_rest_webhook_deliver_async', '__return_false' );\n\t\tremove_action( 'llms_rest_webhook_delivery', array( $this, 'watch_for_delivery' ), 10 );\n\t\tglobal $wpdb;\n\t\t$wpdb->query( \"TRUNCATE TABLE {$wpdb->prefix}lifterlms_webhooks\" );\n\n\t}", "title": "" }, { "docid": "61c529f1850d55ff262c302cca7d0f78", "score": "0.52333283", "text": "public function tearDown()\n\t{\n\t\tView::$shared = array();\n\t\tunset(Event::$events['composing: test.basic']);\n\t}", "title": "" }, { "docid": "41c27000e91750cccdedcfb138a3712d", "score": "0.52203137", "text": "public function testDetachListener4()\n {\n $callable = function(Event $evt) {\n $evt->setProperty('xxx', 'bingo');\n return 10;\n };\n\n // detach a callable directly\n $this->object->attachListener($callable, 'xSpecialEvent');\n $this->assertTrue(1 === count($this->object->getEventNames()));\n $this->object->detachListener($callable);\n $this->assertTrue(0 === count($this->object->getEventNames()));\n }", "title": "" }, { "docid": "3eb7cd28a0f5a838e3715ed859e9bd7e", "score": "0.520337", "text": "function deactivateFunction() {\n\t//REMOVE the cron\n\twp_clear_scheduled_hook('ehD_event');\n}", "title": "" }, { "docid": "1dda08ae566a8ad5aee6f2a751124906", "score": "0.5180195", "text": "public function awaitDetached(ContextInterface $ctx): DetachedEvent;", "title": "" }, { "docid": "c9c2645f86613fa51b25c98c3580919a", "score": "0.5168547", "text": "public function __destruct ()\n {\n BotManager :: getInstance () -> unregister ($this);\n }", "title": "" }, { "docid": "7f0a5710ef7c20d46ec9711b0d58745b", "score": "0.5163626", "text": "protected function clearListeners()\n\t{\n\t\t$this->listeners = [];\n\t}", "title": "" }, { "docid": "fd8829f2f49f756f80665490ab3a0253", "score": "0.51610106", "text": "public function __destruct()\n {\n $this->PDO = null;\n }", "title": "" }, { "docid": "9c98deb1cdb6d63a75c506038c449491", "score": "0.5156952", "text": "function remove_traces(){\n\t\tself::$fields = null;\n\t}", "title": "" }, { "docid": "ff0291cd278028306ebd1f2e1e914bf2", "score": "0.5149367", "text": "public function removeQueryCacheProfile()\n {\n $this->queryCacheProfile = null;\n }", "title": "" }, { "docid": "29ae17e8da3b2f5d84930612bd451b11", "score": "0.5146293", "text": "function onUnregistration($participantId)\n\t{\n\t}", "title": "" }, { "docid": "eb8221a7472398cc40b4b4b4dd64500a", "score": "0.5124598", "text": "public function unbind($events = null);", "title": "" }, { "docid": "7ef2623077d6dbea7c92b43afdb1165b", "score": "0.51126736", "text": "public function destroy() {\n\t\t$this->active = false;\n\t\t$this->callable = null;\n\t}", "title": "" }, { "docid": "91fe5df168a78811ad29c2d6d2d461c1", "score": "0.51119226", "text": "public function deleteEvent() \n {\n EventDAC::deleteEvent($this);\n }", "title": "" }, { "docid": "1f298d20acdfdd4e41f716ba085b3cfd", "score": "0.51002187", "text": "protected function _deinit() {}", "title": "" }, { "docid": "5e7f3375d920dd556941751d9abab746", "score": "0.5097721", "text": "public function detach(object $obj): void;", "title": "" }, { "docid": "40b0fd33a34386e4bcd12f63d9a00436", "score": "0.5096709", "text": "public function testRemoveEventListener() {\n $eventId = uniqid('event_');\n $callback = array($this, 'eventDispatched');\n\n $this->eventDispatcher->addEvent($eventId);\n $this->eventDispatcher->addEventListener($eventId, $callback);\n\n // Dispatch the event and make sure it fired correctly\n $this->eventDispatcher->dispatch($eventId);\n $this->assertEquals(1, $this->calls);\n\n // Remove the event and dispatch the event again\n $this->eventDispatcher->removeEventListener($eventId, $callback);\n $this->eventDispatcher->dispatch($eventId);\n $this->assertEquals(1, $this->calls);\n }", "title": "" }, { "docid": "a2edfea05fcf614d99aba137f51c0d8b", "score": "0.50886726", "text": "public function __destruct()\n {\n $this->memory('Last Memory Usage');\n\n $content = \"\\n \" . $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'] . ' [' . date('Y-m-d H:i:s', time()) . \"] ---------------\\n\";\n\n foreach (self::$marks as $key => $val) {\n $content = $content . \"\\n # \" . ucfirst($key) . \" #\";\n if (is_array($val)) {\n foreach ($val as $k => $v) {\n $content = $content . \"\\n\" . $v;\n }\n }\n }\n\n file_put_contents(PROFILER_LOG_FILE, \"{$content}\\n\\n\", FILE_APPEND | LOCK_EX);\n }", "title": "" }, { "docid": "04631c0299856c7819f4c17240fb3f4c", "score": "0.50852495", "text": "public function __destruct() {\n // when the test is complete... is is currently\n // useful to leave for debuging\n // $this->getAccount()->remove();\n }", "title": "" }, { "docid": "20517a306c9a2ab4a25f875b2c2c0d8a", "score": "0.5083623", "text": "public function tearDown() {\n $this->request = null;\n $this->response = null;\n $this->event = null;\n $this->listener = null;\n }", "title": "" }, { "docid": "d55e7b9d7df74d8c6f07b5a39e018ed7", "score": "0.5083008", "text": "public function _deactivate() {\n\t\t// Add deactivation cleanup functionality here.\n\t}", "title": "" }, { "docid": "412e89357e7653f00a023052d85ae31d", "score": "0.5075953", "text": "public function unregisterEmitter(EventEmitterInterface $emitter);", "title": "" }, { "docid": "a24f02f22a9f9fd63865970f75a4379e", "score": "0.5065828", "text": "protected function clearLog()\n {\n $this->mock->events = array();\n }", "title": "" }, { "docid": "538a5abb5839603eb168ac47e7ba6bd9", "score": "0.50653696", "text": "public function detach($object);", "title": "" }, { "docid": "9abc5f4a3d2c8304f4c7c696c41c55e7", "score": "0.50595856", "text": "function on_deactivation ()\n{\n}", "title": "" }, { "docid": "b57f4eac96c7c104aaaeee3a74ad137d", "score": "0.5050926", "text": "function profiler_leave($section) {\n\tif (isset($GLOBALS['_profiler_instance']))\n\t\t$GLOBALS['_profiler_instance']->leaveSection($section);\n}", "title": "" }, { "docid": "577bea4112c600805f21a6b53838561b", "score": "0.50476086", "text": "public function __destruct()\n {\n $this->stop();\n }", "title": "" }, { "docid": "1c2f2d1bdf1b635e905669591b4874d9", "score": "0.5042633", "text": "function off() {\r\n $this->debugging = false;\r\n }", "title": "" }, { "docid": "a124e25d07ddd3f3ef4975d259c6d09f", "score": "0.50401133", "text": "function detachElement();", "title": "" }, { "docid": "75ceacc9a4d25c683b0bb6748eb89ca2", "score": "0.5039575", "text": "public function decStackPointer()\n {\n if (!$this->isEnabled) {\n return;\n }\n unset($this->tsStack[$this->tsStackPointer]);\n $this->tsStackPointer--;\n }", "title": "" } ]
8e7cc7dc0f1c98aaa9c655f7a94bb9e0
Return the role of the user.
[ { "docid": "56dc5ee6d077b66d57e7610863d57cf6", "score": "0.0", "text": "public function getUserRole($user): array\n {\n if ($user instanceof WP_User && isset($user->{$this->database->getPrefix() . 'capabilities'}) === true) {\n $capabilities = (array) $user->{$this->database->getPrefix() . 'capabilities'};\n } else {\n $capabilities = [];\n }\n\n return (count($capabilities) > 0) ? array_keys($capabilities) : [AbstractUserGroup::NONE_ROLE];\n }", "title": "" } ]
[ { "docid": "a7ecd8ef929d09a24fc87f365bfacd5a", "score": "0.8355274", "text": "public function getRole() {\n if($this->getUser() == true) {\n $this->_role = $this->getUser()->role;\n } \n return $this->_role;\n }", "title": "" }, { "docid": "d540f46f48b0785aec3f4302aa1dae5d", "score": "0.8337982", "text": "public function getUserRole()\n {\n return $this->user_role;\n }", "title": "" }, { "docid": "3533c3f6d361e986175e17bf6a56d60c", "score": "0.817892", "text": "public function getRole() {\n if ((int) $this->_id_user === 0) {\n $rol = '';\n } else {\n $role = $this->Users_model->get($this->_id_user);\n $rol = $role->user_role_id;\n }\n return $rol;\n }", "title": "" }, { "docid": "bdde105f66decd8a91aed0a01e811374", "score": "0.8102507", "text": "public function getRoleByUser() {\n\t\treturn $this->userId;\n\t}", "title": "" }, { "docid": "3ccffd02d4c2fc26d3ddaf078cbc922d", "score": "0.8097275", "text": "public function getUserRole()\n {\n switch ($this->user_type) {\n case $this::USER_ADMINISTRATOR:\n $role = \"administrator\";\n break;\n case $this::USER_SUPERVISOR:\n $role = \"supervisor\";\n break;\n case $this::USER_OPERATOR:\n $role = \"operator\";\n break;\n case $this::USER_CLIENT:\n $role = \"client\";\n break;\n default:\n $role = \"guest\";\n break;\n }\n\n return $role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "6182f854a9579eba7bca2311af3e621d", "score": "0.8061486", "text": "public function getRole()\n {\n return $this->role;\n }", "title": "" }, { "docid": "3c01582b16c76de88b09ca0f662434f6", "score": "0.8038266", "text": "public function getRole() {\n $this->_role = $this->getUser()->getPerson()->role;\n return $this->_role;\n }", "title": "" }, { "docid": "269e1ffbb5682050a5cccc14a9d2fa44", "score": "0.8029538", "text": "public function getRole() {\n return $this->role;\n }", "title": "" }, { "docid": "11f57ac2e521f7f3895ae8f49242a0ee", "score": "0.80219793", "text": "public function getRole()\n {\n return $this->get('role', 'NONE');\n }", "title": "" }, { "docid": "0508a4b418f102cb7a8e89cbd5ac6d73", "score": "0.80156976", "text": "public function getRole()\r\n {\r\n return $this->role;\r\n }", "title": "" }, { "docid": "0508a4b418f102cb7a8e89cbd5ac6d73", "score": "0.80156976", "text": "public function getRole()\r\n {\r\n return $this->role;\r\n }", "title": "" }, { "docid": "0d3c19a1bfb1b6e86ed1d00e0bf71858", "score": "0.80071205", "text": "public function getRole() {\n if($this->_auth->hasIdentity()) {\n $user = $this->_auth->getIdentity();\n $role = $user->role;\n\t} else {\n $role = 'member';\n\t}\n return $role;\n }", "title": "" }, { "docid": "bd936225c291cf1a8f3a9e6e3ab46cf8", "score": "0.80034685", "text": "public function getRole()\n {\n return current( \\Yii::$app->authManager->getRolesByUser( $this->id ) );\n }", "title": "" }, { "docid": "1e30a4c9d861f940acfe9cbb133ec14d", "score": "0.79710615", "text": "function getRole() {\n\t\treturn $this->getData('role');\n\t}", "title": "" }, { "docid": "87b8072ca414425e0bd87a93f2b89659", "score": "0.7967691", "text": "public static function role() {\n\t\treturn self::getInstance()->role;\n\t}", "title": "" }, { "docid": "35105ba9600fb2983ed9e1152e6bab66", "score": "0.7965304", "text": "public function getUserRole()\n {\n \treturn $this->_userRole;\n }", "title": "" }, { "docid": "aef63af1222700c06e1b5693e8de00b5", "score": "0.79568464", "text": "public function getRole()\n {\n return $this->_role;\n }", "title": "" }, { "docid": "aef63af1222700c06e1b5693e8de00b5", "score": "0.79568464", "text": "public function getRole()\n {\n return $this->_role;\n }", "title": "" }, { "docid": "d7195257ad053e87d2db3cf4ff218a44", "score": "0.7915209", "text": "public function getUserRole() {\n require_once(LIB_PATH . \"/Library/common.inc.php\"); //for UserId\n global $sessionHandler;\n\n $systemDatabaseManager = SystemDatabaseManager::getInstance();\n\n $query = \"SELECT roleName\n FROM role,user\n WHERE role.roleId=user.roleId AND user.userId=\".$sessionHandler->getSessionVariable('UserId');\n return $systemDatabaseManager->executeQuery($query,\"Query: $query\");\n }", "title": "" }, { "docid": "c2239c970dd135236ab8203138fc69f8", "score": "0.78985316", "text": "function getUserRole()\n\t{\n\t\treturn $this->mUserRole;\n\t}", "title": "" }, { "docid": "a5929655d80564b79c6e22e2c51a7acd", "score": "0.7844679", "text": "public function getRole(): string\n {\n return $this->role;\n }", "title": "" }, { "docid": "740dbd2208ff83fde0c6e2eacbc90af8", "score": "0.7841595", "text": "public function getRole()\n {\n return $this->hasOne(User::className(), ['user_id' => 'id']);\n }", "title": "" }, { "docid": "9ae744514c619a72b073d1dc85ed58c6", "score": "0.77535886", "text": "public function getRole(){\n\n return Role::find($this->role_id);\n }", "title": "" }, { "docid": "34e381d6f1bf6b24093d21cd5824869f", "score": "0.7745491", "text": "public function getRole() {\n\tif($this->_auth->hasIdentity())\t{\n\t$user = $this->_auth->getIdentity();\n\t$role = $user->role;\n\t} else {\n\t$role = 'public';\n\t}\t\n\treturn $role;\n\t}", "title": "" }, { "docid": "0614162b6b0b3d93dada5cff76f5c2cd", "score": "0.77149624", "text": "public function getRole()\n {\n if (sizeof($this->roles) > 0) {\n return $this->roles[0];\n } else {\n return \"\";\n }\n }", "title": "" }, { "docid": "e0eda4e58b86b611b2aaff147197b2b5", "score": "0.76692975", "text": "function get_role() {\n\t\treturn $this->session_get_dec('role_id');\n\t}", "title": "" }, { "docid": "96267c04d5e584fd2aee6a58b94c47f3", "score": "0.7663341", "text": "public function getRole()\n {\n \ttry {\n \tif (is_null($this->_role)) {\n \t\tif ($this->_uid > 0) {\n \t\t\t$select = new Zend_Db_Select($this->_adapter);\n \t\t\n \t\t\t$select->from('acl_roles', array('name'));\n \t\t\t$select->joinInner('users', 'acl_roles.id = users.role_id', NULL);\n \t\t\t$select->where('users.id=?', $this->_uid);\n \t\t\t\n \t\t\t$this->_role = $this->_adapter->fetchOne($select);\n \t\t\t\n \t\t\tif (empty($this->_role)) $this->_role = \"anonymous\";\n \t\t} else {\n \t\t\t$this->_role = \"anonymous\";\n \t\t}\n \t}\t\n \t} catch (Exception $e) {\n \t\techo $e->message();exit(0);\n \t}\n \t\n \treturn $this->_role;\n }", "title": "" }, { "docid": "5fccfc67cc97bef0f1f61f2fdf4bd0f9", "score": "0.76552117", "text": "public function getRole()\n {\n return $this->getId();\n }", "title": "" }, { "docid": "76e0800a6f0bc35751b0ec412dc11daa", "score": "0.7629717", "text": "public function userCurrentRole()\n {\n $session = $this->container->get('sessionHandler');\n return $session->getData('role');\n }", "title": "" }, { "docid": "97fe36124483c7d6e3d6c19787b20142", "score": "0.76119274", "text": "function getRole(){\n\t\treturn $this->role;\n\t}", "title": "" }, { "docid": "16d7ee814769df1c9546fa73fdcdcf42", "score": "0.7591797", "text": "public function getRole()\n {\n return isset($this->Role) ? $this->Role : null;\n }", "title": "" }, { "docid": "4d7ecc3318b547350b6a681313d650a5", "score": "0.75890595", "text": "protected function userRole() {\n\t\tif (isset ( $_SESSION ) && array_key_exists ( self::user, $_SESSION )) {\n\t\t\treturn $_SESSION [self::role];\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0857e0bab4f6b9277382701b8720d9e0", "score": "0.7567883", "text": "public function getRole()\n {\n $roles = Yii::$app->authManager->getRolesByUser($this->getId());\n $roleNames = array_keys($roles);\n\n return count($roleNames) ? $roles[$roleNames[0]] : null;\n }", "title": "" }, { "docid": "53ac36abc9b6fdee5ca6cdf789395bfc", "score": "0.75629014", "text": "public function getRole() {\n\t\treturn $this->getName();\n\t}", "title": "" }, { "docid": "9104bb44fbd2fbf574a64d67f4b88b94", "score": "0.75425863", "text": "public function GetRole() {\n\n if ($this->\n role === null) {\n\n return false;\n }\n\n return $this->\n role;\n }", "title": "" }, { "docid": "959650d28cfd85b9c589dad83d3697d8", "score": "0.7483499", "text": "public function getRole()\n {\n return $this->getName();\n }", "title": "" }, { "docid": "1e2509559190cbbfb5bf9154cdd6e41d", "score": "0.7474242", "text": "public function getRole(): string;", "title": "" }, { "docid": "1e2509559190cbbfb5bf9154cdd6e41d", "score": "0.7474242", "text": "public function getRole(): string;", "title": "" }, { "docid": "1e2509559190cbbfb5bf9154cdd6e41d", "score": "0.7474242", "text": "public function getRole(): string;", "title": "" }, { "docid": "ebad553e88f6d9317d568f64d7997a8f", "score": "0.747105", "text": "public function getRole()\n {\n return $this->nb_role;\n }", "title": "" }, { "docid": "81b28e86b776d7c1013019284d87dc3d", "score": "0.7447213", "text": "public function getRole () : ?string\n {\n return $this->role;\n }", "title": "" }, { "docid": "f58be8241160f86affc0633c9190de16", "score": "0.743236", "text": "public function role()\n {\n return $this->hasOne(\\App\\Roles::class, 'user_id');\n }", "title": "" }, { "docid": "839b856bc9d51f801d2285e4293270b5", "score": "0.742957", "text": "public function getRoleId() {\n return $this->role;\n }", "title": "" }, { "docid": "fae0870b7ff25d13eff3f8ea92c5555b", "score": "0.74168056", "text": "#[API\\Field(type: 'UserRole')]\n public function getRole(): string\n {\n return $this->role;\n }", "title": "" }, { "docid": "e3b7926c61abc533fc46d1ae46917e1f", "score": "0.7404704", "text": "public function getRoleName() {\n $role = $this->Auth->user($this->settings['roleField']);\n return $role !== null ? $role : 'public';\n }", "title": "" }, { "docid": "c27cd727b52d233cc0e1728cae382bd2", "score": "0.73569846", "text": "protected function getRoleOfUser($user_id){\n \n $user = new User();\n $user = $user->where('id',$user_id)->first();\n return $user->role;\n }", "title": "" }, { "docid": "eb0b06b3ac6cd5f351c2ff6ab99918b1", "score": "0.7324979", "text": "protected function get_role() {\n\n\t\t$roles = array_keys( get_editable_roles() );\n\t\t$roles[] = 'wpforms_unapproved';\n\t\t$role = false;\n\n\t\tif ( isset( $_REQUEST['role'] ) && in_array( $_REQUEST['role'], $roles, true ) ) {\n\t\t\t$role = $_REQUEST['role'];\n\t\t}\n\n\t\treturn $role;\n\t}", "title": "" }, { "docid": "6a1db42d0dd5617238b0ff3e03b984d4", "score": "0.73185396", "text": "function getRole()\n{\n if (Auth::guard()->check()) {\n return Auth::user()->role;\n }\n return '';\n}", "title": "" }, { "docid": "6a4d24bbe6daad27f12e14dab049d4c0", "score": "0.72966754", "text": "public function role()\n {\n \treturn $this->hasOne(Role::class, 'user_id');\n }", "title": "" }, { "docid": "8fc2fef9308e04b128e6a7239d1170a9", "score": "0.7290698", "text": "public function get_current_user_role()\n {\n if (is_user_logged_in()) {\n $user = wp_get_current_user();\n $role = (array)$user->roles;\n return $role[0];\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "2f30019ec1e2c77a19bf04ec03885d70", "score": "0.728117", "text": "public function getRoleId()\n {\n return $this->role_id;\n }", "title": "" }, { "docid": "6f60f6d8610e6eb79cbe03b949add4d9", "score": "0.72750384", "text": "public function getRoleId()\n {\n return $this->roleId;\n }", "title": "" }, { "docid": "6f60f6d8610e6eb79cbe03b949add4d9", "score": "0.72750384", "text": "public function getRoleId()\n {\n return $this->roleId;\n }", "title": "" }, { "docid": "c2fd4a4d31a893f41d61ba81a5db6db6", "score": "0.7254465", "text": "function get_user_role($user_id = \"\")\n{\n $data = get_user_data($user_id);\n\n return $data['role'];\n}", "title": "" }, { "docid": "cc8b2b3ac59ba514eb1a6050a3f5d0d1", "score": "0.7203317", "text": "function auth_role($onlyname = true) {\n $user = Auth::user();\n if (!$user) {\n return null;\n }\n return $onlyname ? $user->getRolename() : $user->mainrole;\n }", "title": "" }, { "docid": "bd8fb6711af222c78e4eaab8bd300641", "score": "0.7170886", "text": "public static function getCurrentRole()\n {\n $prj_id = self::getCurrentProject();\n $usr_id = self::getUserID();\n if ((!empty($prj_id)) && (!empty($usr_id))) {\n return User::getRoleByUser($usr_id, $prj_id);\n } else {\n return 1;\n }\n }", "title": "" }, { "docid": "55c8bdd2df235051ea532fd29ba6e211", "score": "0.7158342", "text": "function km_get_user_role( $user = null ) {\n $user = $user ? new WP_User( $user ) : wp_get_current_user();\n\n return $user->roles ? $user->roles[0] : 'guest';\n}", "title": "" }, { "docid": "6530a9ca62e2174ed1ad6966c4c61bea", "score": "0.71564275", "text": "public function getRoleId() {\n // Get token that has the user\n $token = $this->securityContext->getToken();\n\n if (!$token) {\n // Not logged in user\n return NULL;\n }\n\n // Get user\n $user = $token->getUser();\n if (!$user || !$this->securityContext->isGranted('IS_AUTHENTICATED_FULLY')) {\n // User not found in token\n return NULL;\n }\n\n // Get role\n $role = $user->getUserRole();\n if (is_array($role)) {\n // Staff role\n $roleId = 2;\n }\n else {\n $roleId = $role->getId();\n }\n\n return $roleId;\n }", "title": "" }, { "docid": "7a3592153de1c3926a13d26cce81e534", "score": "0.7146684", "text": "public function getCurrentRole()\n {\n return $this->_current_role;\n }", "title": "" }, { "docid": "6da071d6f07d62e133a17e31fbdd9d6f", "score": "0.7141832", "text": "public function role()\n\t{\n\n\t\tif ( ! $this->_role)\n\t\t{\n\t\t\t$this->_role = $this->roles->order_by('id', 'desc')->find()->as_array();\n\t\t}\n\n\t\treturn $this->_role;\n\t}", "title": "" }, { "docid": "908f5873fef7e1090b6e9b3e4e3dda2d", "score": "0.71280104", "text": "public function getRole()\r\n\t{\r\n\t\tif(!isset($this->roleId) || $this->roleId === null)\r\n\t\t{\r\n\t\t\t$this->roleId = $this->getXml()->getElementsByTagName('RoleID')->item(0)->nodeValue;\r\n\t\t}\r\n\t\treturn $this->roleId;\r\n\t}", "title": "" }, { "docid": "8fc084d1bd9092bdc4543370b5b3463b", "score": "0.7118308", "text": "public function getRoleId()\n\t{\n\t\treturn $this->_roleId;\n\t}", "title": "" }, { "docid": "a52c57bdffcedd6722d9da342d460618", "score": "0.711812", "text": "public function getRoleType();", "title": "" }, { "docid": "8441d0858c62c316818806c1eb1f843f", "score": "0.71157706", "text": "public function getRole($user)\r\n\t{\r\n\t\tswitch ($user)\r\n\t\t{\r\n\t\t\tcase 'user1' : return 'role1';\r\n\t\t\t\t\t\t break;\r\n\t\t\tcase 'user2' : return 'role2';\r\n\t\t\t\t\t\t break;\r\n\t\t\tcase 'user3' : return 'role3';\r\n\t\t\t\t\t\t break;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b5ad607e5770e726e381e932a323b9ef", "score": "0.70809853", "text": "public function getIdRole()\n {\n return $this->id_role;\n }", "title": "" }, { "docid": "3c8c1cb9f30059716f58641533d40549", "score": "0.7072223", "text": "public function getAclRole()\n {\n return $this->_aclRole;\n }", "title": "" }, { "docid": "3c08ad685d0b83d2720dc2bc0988fe2f", "score": "0.7054321", "text": "public function userType()\n\t{\n\t\treturn $this->role;\n\t}", "title": "" }, { "docid": "05143d80d12902562bc4d02d98fab54b", "score": "0.7041945", "text": "function inosencio_userroles_current_role() {\n\treturn INOSENCIOROLES()->current_role;\n}", "title": "" }, { "docid": "be9c44a13661accce5ac8e84f02fa0d1", "score": "0.7039475", "text": "public static function user()\n {\n return static::getRole(static::USER);\n }", "title": "" }, { "docid": "cab5fbffbdb5ae9b044e70345c5d6204", "score": "0.70382386", "text": "function getRole($user_id = 0)\n {\n \n if($user_id)\n return getUserRecord($user_id)->roles()->first()->name;\n else {\n $roles = Auth::user()->roles()->first();\n if ($roles)\n return $roles->name;\n }\n return redirect('logout');\n }", "title": "" }, { "docid": "ce3969185d5f57582c58e5f372e15cb9", "score": "0.70376086", "text": "public function role(){\n $role = \"guest\";\n if(Auth::check())\n {\n $role=\"user\";\n $loggedEmail = Auth::user()->email;\n if(Administrator::where('email', $loggedEmail)->exists())\n $role=\"administrator\";\n }\n return $role;\n }", "title": "" }, { "docid": "ce3969185d5f57582c58e5f372e15cb9", "score": "0.70376086", "text": "public function role(){\n $role = \"guest\";\n if(Auth::check())\n {\n $role=\"user\";\n $loggedEmail = Auth::user()->email;\n if(Administrator::where('email', $loggedEmail)->exists())\n $role=\"administrator\";\n }\n return $role;\n }", "title": "" }, { "docid": "ed2983120593fb699ce83135ffde460f", "score": "0.7028952", "text": "public function role();", "title": "" }, { "docid": "0635385d148070a04529f801175c30f3", "score": "0.7027261", "text": "public function getRoleAttribute()\n {\n return $this->roles->first();\n }", "title": "" }, { "docid": "88a54fe760e977cc11bdf1511e93b023", "score": "0.7022584", "text": "protected function wpvp_get_current_user_role() {\n\t\tglobal $wp_roles;\n\t\t$current_user = wp_get_current_user();\n\t\t$roles = $current_user->roles;\n\t\t$role = array_shift($roles);\n\t\treturn isset($wp_roles->role_names[$role]) ? translate_user_role($wp_roles->role_names[$role]) : false;\n\t}", "title": "" }, { "docid": "d72c5df4ff04261b5bba289f6fab8320", "score": "0.7006882", "text": "public function getUserRoleId()\n {\n return $this->getXml()->getElementsByTagName('RoleID')->item(0)->nodeValue;\n }", "title": "" } ]
d0e2566b1aaadb1423936c8613e6b7bc
Conditionally loads the OptinMonster optin based on the query filter detection.
[ { "docid": "e2b600052757812111754c9b9b60e3e6", "score": "0.70915", "text": "public function maybe_load_optinmonster() {\n\n\t\t// If a URL suffix is set to not load optinmonster, don't do anything.\n\t\t$bool = apply_filters( 'optin_monster_query_filter', false ); // Deprecated.\n\t\t$bool = apply_filters( 'optin_monster_api_query_filter', false );\n\t\tif ( $bool ) {\n\t\t\t// Default the global cookie to 30 days.\n\t\t\t$global_cookie = 30;\n\t\t\t$global_cookie = apply_filters( 'optin_monster_query_cookie', $global_cookie ); // Deprecated.\n\t\t\t$global_cookie = apply_filters( 'optin_monster_api_query_cookie', $global_cookie );\n\t\t\tif ( $global_cookie ) {\n\t\t\t\tsetcookie( 'om-global-cookie', 1, time() + 3600 * 24 * (int) $global_cookie, COOKIEPATH, COOKIE_DOMAIN, false );\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Add the hook to allow OptinMonster to process.\n\t\tadd_action( 'pre_get_posts', array( $this, 'load_optinmonster_inline' ), 9999 );\n\t\tadd_action( 'wp_footer', array( $this, 'load_optinmonster' ) );\n\n\t}", "title": "" } ]
[ { "docid": "685b85d5e8e30405aed0e31726c180e7", "score": "0.7016712", "text": "public function load_optinmonster() {\n\n\t\t// Prepare variables.\n\t\tglobal $post;\n\t\t$post_id = get_queried_object_id();\n\t\tif ( ! $post_id ) {\n\t\t\tif ( 'page' == get_option( 'show_on_front' ) ) {\n\t\t\t\t$post_id = get_option( 'page_for_posts' );\n\t\t\t}\n\t\t}\n\t\t$optins = $this->base->get_optins();\n\t\t$init = array();\n\t\t$fields = array();\n\n\t\t// If no optins are found, return early.\n\t\tif ( ! $optins ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Loop through each optin and optionally output it on the site.\n\t\tforeach ( $optins as $optin ) {\n\n\t\t\t// Grab all the fields to check against.\n\t\t\tforeach ( (array) $this->fields as $field ) {\n\t\t\t\t$fields[ $field ] = get_post_meta( $optin->ID, '_omapi_' . $field, true );\n\t\t\t}\n\n\t\t\t// Ensure the optin is enabled. If not, pass over it.\n\t\t\tif ( empty( $fields['enabled'] ) || ! $fields['enabled'] ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If in legacy test mode but not logged in, skip over the optin.\n\t\t\tif ( isset( $fields['test'] ) && $fields['test'] && ! is_user_logged_in() ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the type is a sidebar or after post optin, pass over it.\n\t\t\tif ( isset( $fields['type'] ) && ( 'post' == $fields['type'] || 'sidebar' == $fields['type'] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the optin is to be shown only to logged in users but is not logged in, pass over it.\n\t\t\tif ( isset( $fields['users'] ) && 'in' == $fields['users'] && ! is_user_logged_in() ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the optin is to be shown only to visitors but is logged in, pass over it.\n\t\t\tif ( isset( $fields['users'] ) && 'out' == $fields['users'] && is_user_logged_in() ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Check to see if we need to load the WP API helper script.\n\t\t\tif ( isset( $fields['mailpoet'] ) && $fields['mailpoet'] ) {\n\t\t\t\t$this->wp_helper();\n\t\t\t}\n\n\t\t\t// Prepare the optin campaign.\n\t\t\t$html = trim( html_entity_decode( stripslashes( $optin->post_content ), ENT_QUOTES ), '\\'' );\n\t\t\t$global = true;\n\n\t\t\t// If the optin is only to be shown on specific post IDs, get the code and break.\n\t\t\tif ( ! empty( $fields['only'] ) ) {\n\t\t\t\t// Set flag for possibly not loading globally.\n\t\t\t\t$values = array_filter( array_values( $fields['only'] ) );\n\t\t\t\tif ( ! empty( $values ) ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t}\n\n\t\t\t\tif ( $post_id && in_array( $post_id, (array) $fields['only'] ) ) {\n\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Exclude posts/pages from optin display.\n\t\t\tif ( ! empty( $fields['never'] ) ) {\n\t\t\t\t// No global check on purpose. Global is still true if only this setting is populated.\n\t\t\t\tif ( $post_id && in_array( $post_id, (array) $fields['never'] ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If the optin is only to be shown on particular categories, get the code and break.\n\t\t\tif ( ! empty( $fields['categories'] ) ) {\n\t\t\t\t// Set flag for possibly not loading globally.\n\t\t\t\t$values = array_filter( array_values( $fields['categories'] ) );\n\t\t\t\tif ( ! empty( $values ) ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t}\n\n\t\t\t\t// Only load for the main \"post\" post type.\n\t\t\t\tif ( 'post' == get_post_type() ) {\n\t\t\t\t\t// Don't try to load on the blog home page even if a category that is selected appears in the loop.\n\t\t\t\t\tif ( is_home() ) {\n\t\t\t\t\t\t// Run a check for archive-type pages.\n\t\t\t\t\t\tif ( ! empty( $fields['show'] ) ) {\n\t\t\t\t\t\t\t// If showing on index pages and we are on an index page, show the optin.\n\t\t\t\t\t\t\tif ( in_array( 'index', (array) $fields['show'] ) ) {\n\t\t\t\t\t\t\t\tif ( is_front_page() || is_home() || is_search() ) {\n\t\t\t\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t\t\t\t$this->set_slug( $optin );\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\n\t\t\t\t\t\t\t// Check if we should show on the 'post' post type.\n\t\t\t\t\t\t\tif ( in_array( 'post', (array) $fields['show'] ) && ! ( is_front_page() || is_home() || is_search() ) ) {\n\t\t\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$categories = wp_get_object_terms( $post_id, 'category', array( 'fields' => 'ids' ) );\n\n\t\t\t\t\t// Check againts singular.\n\t\t\t\t\tforeach ( (array) $categories as $category_id ) {\n\t\t\t\t\t\tif ( $category_id && in_array( $category_id, $fields['categories'] ) ) {\n\t\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Check archives.\n\t\t\t\t\tif ( is_category( $fields['categories'] ) ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If the optin is only to be shown on particular taxonomies, get the code and break.\n\t\t\tif ( ! empty( $fields['taxonomies'] ) ) {\n\t\t\t\t// Set flag for possibly not loading globally.\n\t\t\t\t$values = array_filter( array_values( $fields['taxonomies'] ) );\n\t\t\t\tif ( ! empty( $values ) ) {\n\t\t\t\t\tforeach ( $values as $i => $value ) {\n\t\t\t\t\t\t$value = array_filter( array_values( $value ) );\n\t\t\t\t\t\tif ( $value ) {\n\t\t\t\t\t\t\t$global = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// If this is the home page, check to see if they have decided to load on certain archive pages.\n\t\t\t\tif ( is_home() ) {\n\t\t\t\t\t// Run a check for archive-type pages.\n\t\t\t\t\tif ( ! empty( $fields['show'] ) ) {\n\t\t\t\t\t\t// If showing on index pages and we are on an index page, show the optin.\n\t\t\t\t\t\tif ( in_array( 'index', (array) $fields['show'] ) ) {\n\t\t\t\t\t\t\tif ( is_front_page() || is_home() || is_search() ) {\n\t\t\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Check if we should show on the 'post' post type.\n\t\t\t\t\t\tif ( in_array( 'post', (array) $fields['show'] ) && ! ( is_front_page() || is_home() || is_search() ) ) {\n\t\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t\t$this->set_slug( $optin );\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}\n\n\t\t\t\t$taxonomies = get_taxonomies( array( 'public' => true, '_builtin' => false ) );\n\t\t\t\t$taxonomies['post_tag'] = 'post_tag';\n\t\t\t\t$taxonomies['post_format'] = 'post_format';\n\t\t\t\t$taxonomies \t\t\t = wp_get_object_terms( $post_id, $taxonomies, array( 'fields' => 'ids' ) );\n\t\t\t\tforeach ( $fields['taxonomies'] as $taxonomy => $taxonomy_id ) {\n\t\t\t\t\t$tax_ids = explode(',', $taxonomy_id[0] );\n\t\t\t\t\tforeach ( $tax_ids as $tax_id ) {\n\t\t\t\t\t\tif ( $post_id && $tax_id && has_term( $tax_id, $taxonomy, $post_id ) ) {\n\t\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t\t$this->set_slug( $optin );\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\tforeach ( $tax_ids as $tax_id ) {\n\t\t\t\t\t\tif ( is_tag($tax_id) ) {\n\t\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t\t$this->set_slug( $optin );\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}\n\n\t\t\t// Run a check for archive-type pages.\n\t\t\tif ( ! empty( $fields['show'] ) ) {\n\t\t\t\t// Set flag for possibly not loading globally.\n\t\t\t\t$values = array_filter( array_values( $fields['show'] ) );\n\t\t\t\tif ( ! empty( $values ) ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t}\n\n\t\t\t\t// If showing on index pages and we are on an index page, show the optin.\n\t\t\t\tif ( in_array( 'index', (array) $fields['show'] ) ) {\n\t\t\t\t\tif ( is_front_page() || is_home() || is_search() ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Check if we should show on a selected post type.\n\t\t\t\tif ( in_array( get_post_type(), (array) $fields['show'] ) && ! ( is_front_page() || is_home() || is_search() ) ) {\n\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If WooCommerce is enabled we can look for WooCommerce specific settings.\n\t\t\tif ( $this->base->is_woocommerce_active() ) {\n\n\t\t\t\t// Separate never checks for WooCommerce pages that don't ID match\n\t\t\t\tif ( ! empty( $fields['never'] ) ) {\n\t\t\t\t\t// No global check on purpose. Global is still true if only this setting is populated.\n\t\t\t\t\tif ( in_array( wc_get_page_id( 'shop' ), (array) $fields['never'] ) && is_shop() ) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_woocommerce\n\t\t\t\tif ( isset( $fields['show_on_woocommerce'] ) && $fields['show_on_woocommerce'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_woocommerce() ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_shop\n\t\t\t\tif ( isset( $fields['is_wc_shop'] ) && $fields['is_wc_shop'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_shop() ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_product\n\t\t\t\tif ( isset( $fields['is_wc_product'] ) && $fields['is_wc_product'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_product() ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_cart\n\t\t\t\tif ( isset( $fields['is_wc_cart'] ) && $fields['is_wc_cart'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_cart() ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_checkout\n\t\t\t\tif ( isset( $fields['is_wc_checkout'] ) && $fields['is_wc_checkout'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_checkout() ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_account_page\n\t\t\t\tif ( isset( $fields['is_wc_account'] ) && $fields['is_wc_account'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_account_page() ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url\n\t\t\t\tif ( isset( $fields['is_wc_endpoint'] ) && $fields['is_wc_endpoint'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url() ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'order-pay' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_order_pay'] ) && $fields['is_wc_endpoint_order_pay'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'order-pay' ) ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'order-received' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_order_received'] ) && $fields['is_wc_endpoint_order_received'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'order-received' ) ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'view-order' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_view_order'] ) && $fields['is_wc_endpoint_view_order'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'view-order' ) ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'edit-account' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_edit_account'] ) && $fields['is_wc_endpoint_edit_account'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'edit-account' ) ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'edit-address' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_edit_address'] ) && $fields['is_wc_endpoint_edit_address'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'edit-address' ) ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'lost-password' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_lost_password'] ) && $fields['is_wc_endpoint_lost_password'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'lost-password' ) ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'customer-logout' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_customer_logout'] ) && $fields['is_wc_endpoint_customer_logout'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'customer-logout' ) ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// is_wc_endpoint_url( 'add-payment-method' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_add_payment_method'] ) && $fields['is_wc_endpoint_add_payment_method'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'add-payment-method' ) ) {\n\t\t\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t\t// If we should be loading globally, do it now.\n\t\t\tif ( $global ) {\n\t\t\t\t$init[ $optin->post_name ] = $html;\n\t\t\t\t$this->set_slug( $optin );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Allow devs to filter the final output for more granular control over optin targeting.\n\t\t\t// Devs should return the value for the slug key as false if the conditions are not met.\n\t\t\t$init = apply_filters( 'optinmonster_output', $init ); // Deprecated.\n\t\t\t$init = apply_filters( 'optin_monster_output', $init, $optin, $fields, $post_id ); // Deprecated.\n\t\t\t$init = apply_filters( 'optin_monster_api_output', $init, $optin, $fields, $post_id );\n\t\t}\n\n\t\t// Run a final filter for all items.\n\t\t$init = apply_filters( 'optin_monster_api_final_output', $init, $post_id );\n\n\t\t// If the init code is empty, do nothing.\n\t\tif ( empty( $init ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Load the optins.\n\t\tforeach ( (array) $init as $optin ) {\n\t\t\tif ( $optin ) {\n\t\t\t\techo $optin;\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "bf921097d5bbb39cb4f6d30f8609f625", "score": "0.557527", "text": "public function initialize_optin_option() {\n\t\t$stellar_slug = Config::get_stellar_slug();\n\t\t$opt_in_template = $this->container->get( Opt_In_Template::class );\n\t\t$opt_in_status = $this->container->get( Status::class );\n\n\t\t// Check if plugin slug exists within array.\n\t\tif ( ! $opt_in_status->plugin_exists( $stellar_slug ) ) {\n\t\t\t$opt_in_status->add_plugin( $stellar_slug );\n\n\t\t\tupdate_option( $opt_in_template->get_option_name(), '1' );\n\t\t}\n\t}", "title": "" }, { "docid": "c964e597a9de6111532aed29ec8130f0", "score": "0.54400885", "text": "public function load_optinmonster_inline( $query ) {\n\n\t\t// If we are not on the main query or if in an rss feed, do nothing.\n\t\tif ( ! $query->is_main_query() || $query->is_feed() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$priority = apply_filters( 'optin_monster_post_priority', 999 ); // Deprecated.\n\t\t$priority = apply_filters( 'optin_monster_api_post_priority', 999 );\n\t\tadd_filter( 'the_content', array( $this, 'load_optinmonster_inline_content' ), $priority );\n\n\t}", "title": "" }, { "docid": "4d643882f772c52e9fe667d2851a162e", "score": "0.47702304", "text": "public function load_optinmonster_inline_content( $content ) {\n\n\t\tglobal $post;\n\n\t\t// If the global $post is not set or the post status is not published, return early.\n\t\tif ( empty( $post ) || isset( $post->ID ) && 'publish' !== get_post_status( $post->ID ) ) {\n\t\t\t return $content;\n\t\t}\n\n\t\t// Don't do anything for excerpts.\n\t\t// This prevents the optin accidentally being output when get_the_excerpt() or wp_trim_excerpt() is\n\t\t// called by a theme or plugin, and there is no excerpt, meaning they call the_content and break us.\n\t\tglobal $wp_current_filter;\n\n\t\tif ( in_array( 'get_the_excerpt', (array) $wp_current_filter ) ) {\n\t\t\treturn $content;\n\t\t}\n\n\t\tif ( in_array( 'wp_trim_excerpt', (array) $wp_current_filter ) ) {\n\t\t\treturn $content;\n\t\t}\n\n\t\t// Prepare variables.\n\t\t$post_id = get_queried_object_id();\n\t\tif ( ! $post_id ) {\n\t\t\tif ( 'page' == get_option( 'show_on_front' ) ) {\n\t\t\t\t$post_id = get_option( 'page_for_posts' );\n\t\t\t}\n\t\t}\n\t\t$optins = $this->base->get_optins();\n\t\t$fields\t= array();\n\n\t\t// If no optins are found, return early.\n\t\tif ( ! $optins ) {\n\t\t\treturn $content;\n\t\t}\n\n\t\t// Loop through each optin and optionally output it on the site.\n\t\tforeach ( $optins as $optin ) {\n\t\t\t// Grab all the fields to check against.\n\t\t\tforeach ( (array) $this->fields as $field ) {\n\t\t\t\t$fields[ $field ] = get_post_meta( $optin->ID, '_omapi_' . $field, true );\n\t\t\t}\n\n\t\t\t// Ensure the optin is enabled. If not, pass over it.\n\t\t\tif ( empty( $fields['enabled'] ) || ! $fields['enabled'] ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If in legacy test mode but not logged in, skip over the optin.\n\t\t\tif ( isset( $fields['test'] ) && $fields['test'] && ! is_user_logged_in() ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the type is a sidebar or after post optin, pass over it.\n\t\t\tif ( isset( $fields['type'] ) && 'post' !== $fields['type'] ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the optin is to be shown only to logged in users but is not logged in, pass over it.\n\t\t\tif ( isset( $fields['users'] ) && 'in' == $fields['users'] && ! is_user_logged_in() ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the optin is to be shown only to visitors but is logged in, pass over it.\n\t\t\tif ( isset( $fields['users'] ) && 'out' == $fields['users'] && is_user_logged_in() ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Check to see if we need to load the WP API helper script.\n\t\t\tif ( isset( $fields['mailpoet'] ) && $fields['mailpoet'] ) {\n\t\t\t\t$this->wp_helper();\n\t\t\t}\n\n\t\t\t// Prepare the optin campaign.\n\t\t\t$html = trim( html_entity_decode( stripslashes( $optin->post_content ), ENT_QUOTES ), '\\'' );\n\n\t\t\t// If the optin is only to be shown on specific post IDs, get the code and break.\n\t\t\tif ( ! empty( $fields['only'] ) ) {\n\t\t\t\tif ( $post_id && in_array( $post_id, (array) $fields['only'] ) ) {\n\t\t\t\t\t$content .= $html;\n\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Exclude posts/pages from optin display.\n\t\t\tif ( ! empty( $fields['never'] ) ) {\n\t\t\t\tif ( $post_id && in_array( $post_id, (array) $fields['never'] ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If the optin is only to be shown on particular categories, get the code and break.\n\t\t\tif ( ! empty( $fields['categories'] ) && ( 'post' == get_post_type() ) ) {\n\t\t\t\t// If this is the home page, check to see if they have decided to load on certain archive pages.\n\t\t\t\tif ( is_home() ) {\n\t\t\t\t\t// Run a check for archive-type pages.\n\t\t\t\t\tif ( ! empty( $fields['show'] ) ) {\n\t\t\t\t\t\t// If showing on index pages and we are on an index page, show the optin.\n\t\t\t\t\t\tif ( in_array( 'index', (array) $fields['show'] ) ) {\n\t\t\t\t\t\t\tif ( is_front_page() || is_home() || is_archive() || is_search() ) {\n\t\t\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Check if we should show on a selected post type.\n\t\t\t\t\t\tif ( in_array( 'post', (array) $fields['show'] ) && ! ( is_front_page() || is_home() || is_archive() || is_search() ) ) {\n\t\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t\t$this->set_slug( $optin );\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}\n\n\t\t\t\t$categories = wp_get_object_terms( $post_id, 'category', array( 'fields' => 'ids' ) );\n\t\t\t\tforeach ( (array) $categories as $category_id ) {\n\t\t\t\t\tif ( $category_id && in_array( $category_id, $fields['categories'] ) && ! is_archive() ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If the optin is only to be shown on particular taxonomies, get the code and break.\n\t\t\tif ( ! empty( $fields['taxonomies'] ) && ( is_singular() ) ) {\n\t\t\t\t// If this is the home page, check to see if they have decided to load on certain archive pages.\n\t\t\t\tif ( is_home() ) {\n\t\t\t\t\t// Run a check for archive-type pages.\n\t\t\t\t\tif ( ! empty( $fields['show'] ) ) {\n\t\t\t\t\t\t// If showing on index pages and we are on an index page, show the optin.\n\t\t\t\t\t\tif ( in_array( 'index', (array) $fields['show'] ) ) {\n\t\t\t\t\t\t\tif ( is_front_page() || is_home() || is_archive() || is_search() ) {\n\t\t\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Check if we should show on a selected post type.\n\t\t\t\t\t\tif ( in_array( 'post', (array) $fields['show'] ) && ! ( is_front_page() || is_home() || is_archive() || is_search() ) ) {\n\t\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t\t$this->set_slug( $optin );\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}\n\n\t\t\t\t$taxonomies = get_taxonomies( array( 'public' => true, '_builtin' => false ) );\n\t\t\t\t$taxonomies['post_tag'] = 'post_tag';\n\t\t\t\t$taxonomies['post_format'] = 'post_format';\n\t\t\t\t$taxonomies \t\t\t = wp_get_object_terms( $post_id, $taxonomies, array( 'fields' => 'ids' ) );\n\t\t\t\tforeach ( $fields['taxonomies'] as $taxonomy => $taxonomy_id ) {\n\t\t\t\t\t$tax_ids = explode(',', $taxonomy_id[0] );\n\t\t\t\t\tforeach ( $tax_ids as $tax_id ) {\n\t\t\t\t\t\tif ( $post_id && $tax_id && has_term( $tax_id, $taxonomy, $post_id ) ) {\n\t\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t\t$this->set_slug( $optin );\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}\n\n\t\t\t// Run a check for specific post types.\n\t\t\tif ( ! empty( $fields['show'] ) ) {\n\t\t\t\t// Check if we should show on a selected post type.\n\t\t\t\tif ( in_array( get_post_type(), (array) $fields['show'] ) && ! ( is_front_page() || is_home() || is_search() ) ) {\n\t\t\t\t\t$content .= $html;\n\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If WooCommerce is enabled we can look for WooCommerce specific settings.\n\t\t\tif ( $this->base->is_woocommerce_active() ) {\n\n\t\t\t\t// is_woocommerce anything\n\t\t\t\tif ( isset( $fields['show_on_woocommerce'] ) && $fields['show_on_woocommerce'] ) {\n\t\t\t\t\tif( is_woocommerce() ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// is_product\n\t\t\t\tif ( isset( $fields['is_wc_product'] ) && $fields['is_wc_product'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_product() ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_cart\n\t\t\t\tif ( isset( $fields['is_wc_cart'] ) && $fields['is_wc_cart'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_cart() ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_checkout\n\t\t\t\tif ( isset( $fields['is_wc_checkout'] ) && $fields['is_wc_checkout'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_checkout() ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_account_page\n\t\t\t\tif ( isset( $fields['is_wc_account'] ) && $fields['is_wc_account'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_account_page() ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url\n\t\t\t\tif ( isset( $fields['is_wc_endpoint'] ) && $fields['is_wc_endpoint'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url() ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'order-pay' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_order_pay'] ) && $fields['is_wc_endpoint_order_pay'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'order-pay' ) ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'order-received' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_order_received'] ) && $fields['is_wc_endpoint_order_received'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'order-received' ) ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'view-order' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_view_order'] ) && $fields['is_wc_endpoint_view_order'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'view-order' ) ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'edit-account' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_edit_account'] ) && $fields['is_wc_endpoint_edit_account'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'edit-account' ) ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'edit-address' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_edit_address'] ) && $fields['is_wc_endpoint_edit_address'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'edit-address' ) ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'lost-password' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_lost_password'] ) && $fields['is_wc_endpoint_lost_password'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'lost-password' ) ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// is_wc_endpoint_url( 'customer-logout' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_customer_logout'] ) && $fields['is_wc_endpoint_customer_logout'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'customer-logout' ) ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// is_wc_endpoint_url( 'add-payment-method' )\n\t\t\t\tif ( isset( $fields['is_wc_endpoint_add_payment_method'] ) && $fields['is_wc_endpoint_add_payment_method'] ) {\n\t\t\t\t\t$global = false;\n\t\t\t\t\tif( is_wc_endpoint_url( 'add-payment-method' ) ) {\n\t\t\t\t\t\t$content .= $html;\n\t\t\t\t\t\t$this->set_slug( $optin );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\n\t\t\t}\n\n\t\t\t// If the optin is set to be automatically displayed, show it.\n\t\t\tif ( isset( $fields['automatic'] ) && $fields['automatic'] && is_singular( 'post' ) ) {\n\t\t\t\t$content .= $html;\n\t\t\t\t$this->set_slug( $optin );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t}\n\n\t\t// Return the content.\n\t\treturn $content;\n\n\t}", "title": "" }, { "docid": "239f404c673ed680fc3773cd25af7321", "score": "0.4679193", "text": "public function load_settings() {\n\t\tglobal $monsterinsights_settings;\n\t\trequire_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/options.php';\n\t\trequire_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/helpers.php';\n\t\trequire_once MONSTERINSIGHTS_PLUGIN_DIR . 'includes/deprecated.php';\n\t\t$monsterinsights_settings = monsterinsights_get_options();\n\t}", "title": "" }, { "docid": "fed378072e07fa0171b19ce123877f50", "score": "0.4653437", "text": "private function loadFilterOptions()\n {\n $objTempConfig = $this->getOtherConfig();\n $objTempConfig->setFields(array($this->getPropertyName()));\n\n $objFilterOptions = $this\n ->getEnvironment()\n ->getDataProvider()\n ->getFilterOptions($objTempConfig);\n\n $arrOptions = array();\n /** @var ModelInterface $objOption */\n foreach ($objFilterOptions as $filterKey => $filterValue) {\n $arrOptions[(string) $filterKey] = $filterValue;\n }\n\n $this->arrfilterOptions = $arrOptions;\n }", "title": "" }, { "docid": "1d96b40f6d4339735e4302b8f347b4eb", "score": "0.460036", "text": "abstract protected function initFilterByGpVars();", "title": "" }, { "docid": "bbbca33690e086e2d05d6229b189622a", "score": "0.4582161", "text": "public function pre_query() {\n $this->query->add_where('', $this->definition['trovequery']['arg'], $this->definition['trovequery']['value']);\n }", "title": "" }, { "docid": "135c23033a664d6d0d06dc27dc636359", "score": "0.45483565", "text": "public function externFilter(){\r\n\t\t\t$this->externQuery = true;\r\n\t\t\t$this->isPesistance = false;\r\n\t\t\t$this->filter();\r\n\t\t}", "title": "" }, { "docid": "91408ffd6cfbb7c6c39d1641c2a4dfcc", "score": "0.45232457", "text": "protected function load() {\n $this->setup_filters();\n }", "title": "" }, { "docid": "d1aa54083c1923c7b25c50ec1da03bff", "score": "0.44807088", "text": "public function set() {\n\n\t\tself::$instance = $this;\n\t\t$this->base \t= OMAPI::get_instance();\n\t\t$this->view = isset( $_GET['optin_monster_api_view'] ) ? stripslashes( $_GET['optin_monster_api_view'] ) : $this->base->get_view();\n\t\t$this->optin_id = isset( $_GET['optin_monster_api_id'] ) ? absint( $_GET['optin_monster_api_id'] ) : false;\n\n\t}", "title": "" }, { "docid": "d1b610cb5349e7b5b45277302d57399b", "score": "0.44732517", "text": "protected function load_pedestal() {\n parent::load();\n parent::setup_filters();\n }", "title": "" }, { "docid": "7b951fb07330bc9a32d75daba36d7b79", "score": "0.44680366", "text": "public function opt_in() {\n\t\t$this->container->get( Status::class )->set_status( true );\n\n\t\ttry {\n\t\t\t$this->container->get( Telemetry::class )->register_site();\n\t\t\t$this->container->get( Telemetry::class )->register_user();\n\t\t} catch ( \\Error $e ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch\n\t\t\t// We don't want to throw errors if the server cannot be reached.\n\t\t}\n\t}", "title": "" }, { "docid": "d54d9caf579d78f5880a912dcdacc3b4", "score": "0.44557446", "text": "function fl_bwp_minify_is_loadable_filter( $args ) {\n\tif ( FLBuilderModel::is_builder_active() ) {\n\t\treturn false;\n\t}\n\treturn $args;\n}", "title": "" }, { "docid": "e5b51570bcefd5979e5eec71a49911ae", "score": "0.44075453", "text": "protected function condition()\n {\n return apply_filters(\n 'soil/load-module/' . $this->provides(),\n $this->options->enabled && (!is_admin() || wp_doing_ajax())\n );\n }", "title": "" }, { "docid": "d2b8cb972d7b2538d56f106ce13ce4fb", "score": "0.4388239", "text": "function wpgmza_pro_preload_is_in_developer_mode()\r\n{\r\n\t$globalSettings = get_option('wpgmza_global_settings');\r\n\t\t\r\n\tif(empty($globalSettings))\r\n\t\treturn !empty($_COOKIE['wpgmza-developer-mode']);\r\n\t\r\n\tif(!($globalSettings = json_decode($globalSettings)))\r\n\t\treturn false;\r\n\t\r\n\treturn isset($globalSettings->developer_mode) && $globalSettings->developer_mode == true;\r\n}", "title": "" }, { "docid": "096c81f4ca663b157dd663faf75f2d43", "score": "0.43858284", "text": "function opt_army_match_response_global_start()\n{\n global $opt_mrs;\n $opt_mrs = '<!--opt_match_response_system-->';\n}", "title": "" }, { "docid": "47ecb646391ca506e5a414d7ad70773e", "score": "0.43770054", "text": "public static function parse_query( $wp_query ){\n\t if( !$wp_query->is_main_query() ) return;\n\t\tif( $wp_query->is_tax(self::$taxonomy_name) || !empty($wp_query->{'em_'.self::$option_name.'_id'}) ){\n\t\t\tself::static_binding();\n\t\t\treturn parent::parse_query( $wp_query );\n\t\t}\n\t}", "title": "" }, { "docid": "ee920ab760bd12d7d01df20c2ffc02e4", "score": "0.436868", "text": "public function set_optin_status() {\n\n\t\t// We're not attempting an action.\n\t\tif ( empty( $_POST['_wpnonce'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$nonce = sanitize_text_field( $_POST['_wpnonce'] );\n\n\t\tif ( ! wp_verify_nonce( $nonce, 'stellarwp-telemetry' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// We're not attempting a telemetry action.\n\t\tif ( isset( $_POST['action'] ) && 'stellarwp-telemetry' !== $_POST['action'] ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// The user did not respond to the opt-in modal.\n\t\tif ( ! isset( $_POST['optin-agreed'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// User agreed to opt-in to Telemetry.\n\t\tif ( 'true' === $_POST['optin-agreed'] ) {\n\t\t\t$this->opt_in();\n\t\t}\n\n\t\t// Don't show the opt-in modal again.\n\t\tupdate_option( $this->container->get( Opt_In_Template::class )->get_option_name(), '0' );\n\t}", "title": "" }, { "docid": "a25302f3befacabbbe34e27b9b0b9589", "score": "0.43649885", "text": "function qa_opt_if_loaded($name)\n{\n\tglobal $qa_options_cache;\n\n\treturn @$qa_options_cache[$name];\n}", "title": "" }, { "docid": "715fd5b44099e8e99745ac9b974504a3", "score": "0.43390405", "text": "protected function initGenericFilterByGPVars()\n {\n if ($this->filterConfig->getInvertable()) {\n if (isset($this->gpVarFilterData['invert'])) {\n $this->invert = $this->gpVarFilterData['invert'] ? true : false;\n }\n }\n }", "title": "" }, { "docid": "fb2d253d67585773fa832ee648e05216", "score": "0.43267196", "text": "public function filter_request_query( $query ) {\n\t if( !(is_admin() AND $query->is_main_query()) ){\n\t return $query;\n\t }\n\t //we want to modify the query for the targeted custom post and filter option\n\t if( ! ( (\n\t EM_POST_TYPE_EVENT == $query->query['post_type'] ||\n\t 'event-recurring' == $query->query['post_type'] ) && \n\t isset($_REQUEST['vmat_org']) ) ) {\n return $query;\n }\n //for the default value of our filter no modification is required\n if(0 == $_REQUEST['vmat_org']){\n return $query;\n }\n // modify the meta query_vars. to parse the serialized _vmat_organizations\n // array by using LIKE with the org_id preceded by : and followed by ;\n $query->query_vars['meta_query'][] = array(array(\n 'key' => '_vmat_organizations',\n 'value' => ':' . $_REQUEST['vmat_org'] . ';',\n 'compare' => 'LIKE',\n ));\n return $query;\n }", "title": "" }, { "docid": "2bc0664445e5e9eaa6b122a6f9ce9de7", "score": "0.4289385", "text": "private static function _load_settings_if_needed(){\n if(!is_null(DataAccess::$data_server_url)) return(true);\n $url = Settings::get(\"raw_data_url\");\n if(is_null($url)) return(false);\n DataAccess::$data_server_url = $url;\n return(true);\n }", "title": "" }, { "docid": "061d8eca6a93637e04871d5bbd0fe818", "score": "0.42815056", "text": "protected function loadSourceFilter()\r\n\t{\r\n\t\t$filter_string = \"\";\r\n\t\tif(!empty($this->filter)) {\r\n\t\t\t$break = strpos($this->filter, \"_\");\r\n\t\t\t$field = substr($this->filter, 0, $break);\r\n\t\t\t$value = substr($this->filter, $break+1, strlen($this->filter) - strlen($field));\r\n\t\t\t$filter_string = $field . \"='$value'\";\r\n\t\t}\t\r\n\r\n\t\t$search_string = \"\";\r\n\t\t/*if(!empty($this->search)) {\r\n\t\t\t$search = array();\r\n\t $SNG = singleton($this->sourceClass); \t\t\t\r\n\t\t\tforeach(parent::Headings() as $field) {\r\n\t\t\t\tif($SNG->hasDatabaseField($field->Name))\t\r\n\t\t\t\t\t$search[] = \"UPPER($field->Name) LIKE '%\".strtoupper($this->search).\"%'\";\r\n\t\t\t}\r\n\t\t\t$search_string = \"(\".implode(\" OR \", $search).\")\";\r\n\t\t}\r\n\t\t*/\r\n\t\t/*$and = (!empty($this->filter) && !empty($this->search)) ? \" AND \" : \"\";\r\n\t\t$source_filter = $filter_string.$and.$search_string;*/\r\n\t\t$source_filter = $filter_string;\r\n\t\tif(!$this->sourceFilter) $this->sourceFilter = $source_filter;\r\n\t\telse if($this->sourceFilter && !empty($source_filter)) $this->sourceFilter .= \" AND \" . $source_filter;\t\t\r\n\t}", "title": "" }, { "docid": "9122340a59a4479b84d23c2be4389aea", "score": "0.42735398", "text": "abstract protected function initQuery(Builder $query);", "title": "" }, { "docid": "9b5753e5725c87e2e3715794b80bb01e", "score": "0.4245636", "text": "public function loadObject($query, array $options = array());", "title": "" }, { "docid": "92ca7f05d71e0ff2e79c778c192c3e9d", "score": "0.42443857", "text": "function LoadAdvancedSearchDefault() {\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "bf6488674bf29388009013847c800ecf", "score": "0.42264965", "text": "function prepareLoadQuery() {\n if(isset($this->id) && ($this->id > 0)) {\n $sql = sprintf(\"SELECT q.id, q.name, q.loc_type_id, q.parent_id, lt.name loctypeName\n FROM locations q JOIN location_types lt ON q.loc_type_id = lt.id\n WHERE q.id = %d\", $this->id);\n $this->conn->setsql($sql);\n $this->conn->getTableRow();\n if ($this->conn->error) {\n $this->Error = $this->conn->error;\n return false;\n }\n return true;\n } else {\n $this->Error[\"Application Error ClssLctnPrprLdQry-Invalid Argument\"] = \"Class Location: In prepareLoadQuery Location_ID is not present\";\n return false;\n }\n }", "title": "" }, { "docid": "1fa7fc1c3650195a0726b2638db81e04", "score": "0.42072365", "text": "public function should_load( $query = null ) {\n\t\tif ( ! $query instanceof WP_Query ) {\n\t\t\t$query = tribe_get_global_query_object();\n\t\t}\n\n\t\tif ( ! $query instanceof WP_Query ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t/**\n\t\t * Bail if we are not dealing with our Post Type\n\t\t *\n\t\t * @todo needs support for Venues and Template\n\t\t */\n\t\tif ( ! in_array( TEC::POSTTYPE, (array) $query->get( 'post_type' ) ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e4068ed7845dcea3c06de6a190e576df", "score": "0.41975522", "text": "public function loadOperatorOptions()\n {\n parent::loadOperatorOptions();\n $this->setOperatorOption(array(\n '==' => Mage::helper('bronto_reminder')->__('found'),\n '!=' => Mage::helper('bronto_reminder')->__('not found')\n ));\n return $this;\n }", "title": "" }, { "docid": "ad3a6e64ef487b903936156b75ef41cc", "score": "0.41789854", "text": "abstract protected function initFilter();", "title": "" }, { "docid": "b3f0d34f2898d17177a54d339ec9bf4a", "score": "0.41736516", "text": "public function reduce_query_load() {\n\t\tif ( ! isset( $_SERVER['REQUEST_URI'] ) ) {\n\t\t\treturn;\n\t\t}\n\t\t$request = sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) );\n\t\t$extension = substr( $request, -4 );\n\t\tif ( Str::contains( 'sitemap', $request ) && in_array( $extension, [ '.xml', '.xsl' ], true ) ) {\n\t\t\tremove_all_actions( 'widgets_init' );\n\t\t}\n\t}", "title": "" }, { "docid": "e5ab639a9ac4e7d6af704e91cf77269d", "score": "0.41724896", "text": "public function setIsSearch() {\n $component = 'path';\n $resource = $this->parseResourceIdentifier($component);\n\n $levels = explode('/', $resource);\n $levels_count = count($levels);\n\n // Not a search.\n $is_search = 0;\n\n if (count($levels_count) > 0) {\n $top_level = strtolower(trim($levels[ $levels_count - 1 ]));\n $level_below = strtolower(trim($levels[ $levels_count - 2 ]));\n\n if ($top_level == 'search' || $level_below == 'search') {\n $is_search = 1;\n }\n }\n\n $this->is_search = $is_search;\n }", "title": "" }, { "docid": "0becfdcd9707ef0b86875e07d0eb1b16", "score": "0.41722593", "text": "public static function init() {\n add_filter( 'inventor_filter_fields', array( __CLASS__, 'filter_fields' ) );\n add_filter( 'inventor_filter_field_plugin_dir', array( __CLASS__, 'filter_field_plugin_dir' ), 10, 3 );\n add_filter( 'inventor_filter_query_taxonomies', array( __CLASS__, 'filter_query_taxonomies' ), 10, 2 );\n add_filter( 'inventor_filter_query_meta', array( __CLASS__, 'filter_query_meta' ), 10, 2 );\n add_filter( 'inventor_filter_query_ids', array( __CLASS__, 'filter_query_ids' ), 10, 2 );\n add_filter( 'inventor_filter_query_ids', array( __CLASS__, 'filter_query_ids_of_multicheck_values' ), 10, 2 );\n\n add_filter( 'inventor_packages_metabox_permissions', array( __CLASS__, 'metabox_permissions' ), 11 );\n }", "title": "" }, { "docid": "00eee76b8477ac1b30c54e07fa6b7490", "score": "0.41721162", "text": "public function addInLandingPageFilter()\n {\n return $this->getSelect()->where('main_table.in_landingpage = 1');\n }", "title": "" }, { "docid": "8c338a5272184f3d33ff2a077d389cae", "score": "0.41685134", "text": "protected function setUpQuery()\n {\n $this->query = app(Query::class)->activate();\n }", "title": "" }, { "docid": "3ccb16eb92abd1d69c602572640de170", "score": "0.41585836", "text": "public function load_filter( $filter )\n\t{\n\t\tif ( ! isset( $this->filters[ $filter ] ) )\n\t\t{\n\t\t\tinclude_once dirname( __DIR__ ) . '/filters/class-go-xpost-filter-' . $filter . '.php';\n\t\t\t$classname = 'GO_XPost_Filter_' . ucfirst( $filter );\n\n\t\t\tif ( class_exists( $classname ) )\n\t\t\t{\n\t\t\t\t$this->filters[ $filter ] = new $classname;\n\t\t\t}//end if\n\t\t}// end if\n\t}", "title": "" }, { "docid": "2c65ccc187d6461625695e2729d434be", "score": "0.4158476", "text": "abstract protected function loadFilters();", "title": "" }, { "docid": "cf6b9917ec40efb8de180c3630672f2f", "score": "0.4148615", "text": "private function load() {\n\n\t\t$this->templateFile = Relation::getSingle('pagemodule', 'templatefile', $this->oPageModule);\n\n\t\tif ($this->templateFile === null) {\n\t\t\t$this->templateFile = new TemplateFile();\n\t\t}\n\n\t\t$module = current(Module::getForTemplates('searchresult'));\n\t\t$this->options = TemplateFile::findByModule($module);\n\n\t}", "title": "" }, { "docid": "b6e8687d6114cbf4d252ea6e45e4b3ea", "score": "0.41437697", "text": "function should_load() {\n\t\treturn (\n\t\t\tstrcmp( wp_get_theme(), 'Divi' ) === 0 ||\n\t\t\tis_plugin_active( 'divi-builder/divi-builder.php' )\n\t\t);\n\t}", "title": "" }, { "docid": "00b98aa9b72b45ffefb38c59a0a2c1bc", "score": "0.41428292", "text": "function infoamazonia_home_query($query) {\n\tif($query->is_main_query() && $query->is_home) {\n\t\t$query->set('without_map_query', 1);\n\t}\n}", "title": "" }, { "docid": "bb38fef4bddc8782a945609ab0eebc89", "score": "0.4136577", "text": "protected function InitFilter() {\n\t\tforeach ($this->ItemOptions->vFilters as $filter) {\n\t\t\t$this->AddFilter($filter);\n\t\t}\n\t}", "title": "" }, { "docid": "9ad65c4fd483e91aaa93d5756e9be877", "score": "0.41328397", "text": "public function __construct() {\n\t\t\t$this->options = get_option( 'wpseo_local' );\n\t\t}", "title": "" }, { "docid": "2849494023f0b25051885dc78d994d93", "score": "0.41101262", "text": "protected function initSearchObject()\n {\n // Build a new search object:\n $this->searchObject = $this->resultsManager->get($this->searchClassId);\n $this->searchObject->getOptions()->spellcheckEnabled(false);\n $this->searchObject->getOptions()->disableHighlighting();\n }", "title": "" }, { "docid": "100b9909fe40150a5d74f87cbaf6fecc", "score": "0.41096982", "text": "function change_search_hotel_arg($query) {\n /**\n * Global Search Args used in Element list and map display\n * @since 1.0\n */\n global $ts_search_args;\n if (!$ts_search_args) $ts_search_args = $_REQUEST;\n $post_type = get_query_var('post_type');\n $posts_per_page = 12;\n if ($post_type == 'ts_hotel') {\n $query->set('author', '');\n if (get('item_name')) {\n $query->set('s', get('item_name'));\n }\n if ((empty($_REQUEST['is_search_map']) && empty($query->query['is_ts_location_list_hotel'])) or !empty($_REQUEST['is_search_page'])) {\n $query->set('posts_per_page', $posts_per_page);\n }\n $has_tax_in_element = [];\n if (is_array($ts_search_args)) {\n foreach ($ts_search_args as $key => $val) {\n if (strpos($key, 'taxonomies--') === 0 && !empty($val)) {\n $has_tax_in_element[$key] = $val;\n }\n }\n }\n if (!empty($has_tax_in_element)) {\n $tax_query = [];\n foreach ($has_tax_in_element as $tax => $value) {\n $tax_name = str_replace('taxonomies--', '', $tax);\n if (!empty($value)) {\n $value = explode(',', $value);\n $tax_query[] = [\n 'taxonomy' => $tax_name,\n 'terms' => $value,\n 'operator' => 'IN',\n ];\n }\n }\n if (!empty($tax_query)) {\n $type_filter_option_attribute = 'and';\n array_push($tax_query,array('relation' => $type_filter_option_attribute));\n $query->set('tax_query', $tax_query);\n }\n }\n $tax = request('taxonomy');\n if (!empty($tax) and is_array($tax)) {\n $tax_query = [];\n foreach ($tax as $key => $value) {\n if ($value) {\n $value = explode(',', $value);\n if (!empty($value) and is_array($value)) {\n foreach ($value as $k => $v) {\n if (!empty($v)) {\n $v = post_origin($v, $key);\n $ids[] = $v;\n }\n }\n }\n if (!empty($ids)) {\n $tax_query[] = [\n 'taxonomy' => $key,\n 'terms' => $ids,\n //'COMPARE'=>\"IN\",\n 'operator' => 'IN',\n ];\n }\n $ids = [];\n }\n }\n $query->set('tax_query', $tax_query);\n }\n /**\n * Post In and Post Order By from Element\n * @since 1.2.5\n * @author quandq\n */\n if (!empty($ts_search_args['ts_number_ht'])) {\n $query->set('posts_per_page', $ts_search_args['ts_number_ht']);\n }\n if (!empty($ts_search_args['ts_ids'])) {\n $query->set('post__in', explode(',', $ts_search_args['ts_ids']));\n $query->set('orderby', 'post__in');\n }\n if (!empty($ts_search_args['posts_per_page'])) {\n $query->set('posts_per_page', $ts_search_args['posts_per_page']);\n }\n if (!empty($ts_search_args['ts_orderby']) and $ts_orderby = $ts_search_args['ts_orderby']) {\n if ($ts_orderby == 'sale') {\n $query->set('meta_key', 'total_sale_number');\n $query->set('orderby', 'meta_value_num');\n }\n if ($ts_orderby == 'rate') {\n $query->set('meta_key', 'rate_review');\n $query->set('orderby', 'meta_value');\n }\n if ($ts_orderby == 'discount') {\n $query->set('meta_key', 'discount_rate');\n $query->set('orderby', 'meta_value_num');\n }\n if ($ts_orderby == 'featured') {\n $query->set('meta_key', 'is_featured');\n $query->set('orderby', 'meta_value');\n $query->set('order', 'DESC');\n }\n }\n if (!empty($ts_search_args['sort_taxonomy']) and $sort_taxonomy = $ts_search_args['sort_taxonomy']) {\n if (isset($ts_search_args[\"id_term_\" . $sort_taxonomy])) {\n $id_term = $ts_search_args[\"id_term_\" . $sort_taxonomy];\n $tax_query[] = [\n [\n 'taxonomy' => $sort_taxonomy,\n 'field' => 'id',\n 'terms' => explode(',', $id_term),\n 'include_children' => false\n ],\n ];\n }\n }\n if (!empty($meta_query)) {\n $query->set('meta_query', $meta_query);\n }\n if (!empty($tax_query)) {\n $query->set('tax_query', $tax_query);\n }\n }\n}", "title": "" }, { "docid": "3a1cf3666931c42c01603d8b3cc88a33", "score": "0.41021174", "text": "function configureLoadQuery(ModelTableQuery $query);", "title": "" }, { "docid": "f0e00ca65ff809b3380f7177fdc461a3", "score": "0.4083484", "text": "public function loadConditions(): void\n\t{\n\t\tforeach ($this->wizardMap as $id => &$map) {\n\t\t\t$map['id'] = $id;\n\t\t\tif (isset($map['conditionsStatus'])) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (isset($map['conditions'])) {\n\t\t\t\t$map['conditionsStatus'] = \\App\\Condition::checkConditions($map['conditions'], $this->recordModel);\n\t\t\t\tif ($map['conditionsStatus']) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4f784146f91200738a6ddb31ae74bffa", "score": "0.40756255", "text": "function opt_in(){\n if ($this->referer() != '/accounts/validate_user/return:opt_in' && !isset($this->request->data)) {\n $this->redirect(array('action'=>'validate_user', 'return'=>'opt_in'));\n }\n $this->set('optins', $this->Optin->find('all',array('conditions'=> array('live'=>'1'))));\n $this->set('selections', $this->User->OptinUser->find('all', array('conditions'=> array('OptinUser.user_id'=>$this->userid))));\n if (isset($this->request->data)) {\n // got posted data\n $records = array();\n $this->User->OptinUser->deleteAll(\"OptinUser.user_id=\".$this->userid);\n foreach($this->request->data['OptinUser']['optin_id'] as $key => $val){\n array_push($records, array('user_id'=>$this->userid,'optin_id'=>$val));\n }\n $this->set('records',$records);\n $this->User->OptinUser->saveAll($records);\n $this->redirect(array('action'=>'index'));\n }\n }", "title": "" }, { "docid": "8769d013621a467f1419631c55d1569f", "score": "0.4074707", "text": "function main_query_script_and_style_loader( $query ) {\n if ( $query->is_main_query() || is_preview() )\n \t\t\t\tadd_filter( 'the_posts', 'cond_load_js_and_css', 100 ); // the_posts gets triggered before wp_head\n else\n \t\t\t\tremove_filter( 'the_posts', 'cond_load_js_and_css', 100 ); // the_posts gets triggered before wp_head \n }", "title": "" }, { "docid": "7a438f0f18f6510a6a0ea7bbcb1d2877", "score": "0.4071647", "text": "private function initFractal(){\n $this->fractal = new Manager;\n\n if (isset($_GET['include'])) {\n $this->fractal->parseIncludes($_GET['include']);\n }\n }", "title": "" }, { "docid": "74dc838ed522ffb40d455bbadd15cf31", "score": "0.40698564", "text": "private function setupOptInDialog() {\n\t\t// Ensure current user can enable tracking\n\t\t$this->allowCurrentUserToEnableTracking();\n\n\t\t// Ensure setting is not set\n\t\t$this->usage_tracking->set_tracking_enabled( false );\n\t}", "title": "" }, { "docid": "a9cd8dbcdb62537107f7b0fda319cbe8", "score": "0.4063508", "text": "public function initQuery() {\n\t\t// make a default query\n\t\t$this->defaultQuery = new Query($this->D, array('name' =>\t\t$this->tableName.'.default',\n\t\t\t\t\t\t\t\t'description' =>\t$this->tableDescription,\n\t\t\t\t\t\t\t\t'columns' =>\t\tarray($this->tableName => null)));\n\t\t// make a search query\n\t\t$this->searchQuery = new Query($this->D, array( 'name' =>\t\t$this->tableName.'.search',\n\t\t\t\t\t\t\t\t'description' =>\t$this->tableDescription,\n\t\t\t\t\t\t\t\t'columns' =>\t\tarray(\t$this->tableName =>\n\t\t\t\t\t\t\t\t \t\t\t\tarray_merge(\tarray($this->priKey,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->defName),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->searchColumns\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t'orderBy' =>\t\t$this->tableName.'.'.$this->defName\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\n\t\treturn(true);\n\t}", "title": "" }, { "docid": "4e75c6c9ca7a175a45240ea168f188c9", "score": "0.40475368", "text": "public function load(): self\r\n\t{\r\n\t\tif ($this->network) {\r\n\t\t\tif (function_exists('get_network_option')) {\r\n\t\t\t\t$values = get_network_option($this->network, $this->id, []);\r\n\t\t\t} else {\r\n\t\t\t\t$values = get_site_option($this->id, []);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$values = get_option($this->id, []);\r\n\t\t}\r\n\r\n\t\tif (!empty($values)) {\r\n\t\t\t$this->fill($values);\r\n\t\t}\r\n\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "4bd311c619a5b9f730dc6e405811692e", "score": "0.40443748", "text": "function pre_query() { }", "title": "" }, { "docid": "f9d61fe4a3ba115cf06829b8b1c20257", "score": "0.40398103", "text": "public function extend_pre_query( $query ) {\r\n\t\tif ( isset( $query->query_vars['orderby'] ) && $query->query_vars['orderby'] === 'post_rating' )\r\n\t\t\t$query->post_ratings = true;\r\n\t}", "title": "" }, { "docid": "b0f62afc5c06b18c2715f4154c7c52ac", "score": "0.40386978", "text": "protected function conditionals_are_met($class)\n {\n }", "title": "" }, { "docid": "cf850f997f40850c8dd343d3627fce3f", "score": "0.40350446", "text": "function qa_preload_options()\n{\n\tglobal $qa_options_loaded;\n\n\tif (!@$qa_options_loaded) {\n\t\t$selectspecs = array(\n\t\t\t'options' => array(\n\t\t\t\t'columns' => array('title', 'content'),\n\t\t\t\t'source' => '^options',\n\t\t\t\t'arraykey' => 'title',\n\t\t\t\t'arrayvalue' => 'content',\n\t\t\t),\n\n\t\t\t'time' => array(\n\t\t\t\t'columns' => array('title' => \"'db_time'\", 'content' => 'UNIX_TIMESTAMP(NOW())'),\n\t\t\t\t'arraykey' => 'title',\n\t\t\t\t'arrayvalue' => 'content',\n\t\t\t),\n\t\t);\n\n\t\t// fetch options in a separate query before everything else\n\t\tqa_load_options_results(qa_db_multi_select($selectspecs));\n\t}\n}", "title": "" }, { "docid": "cc4d52f0316c6c85a7226989334de5f1", "score": "0.40334624", "text": "public function load($options, $prod);", "title": "" }, { "docid": "2cde3bcbdc253e65696ae6f1347d316b", "score": "0.40323994", "text": "public function loadQuery($request)\n {\n $permittedParams = ['doctor_id', 'service_type', 'clinic_id', 'start_at'];\n\n $query = Appointment::query()->where('reserved', false);\n\n foreach ($permittedParams as $param) {\n if ($value = $request->get($param)) {\n $query->where($param, $value);\n }\n }\n\n if ($request->get('range')) {\n return $query->whereBetween('start_at', $request->get('range'));\n }\n\n return $query;\n }", "title": "" }, { "docid": "8dd3876f98a8c93eb5d6738436cfaf78", "score": "0.40311342", "text": "public static function bootHttpQueryTrait()\n {\n if (static::$parent === true) {\n static::setHttpQuery();\n static::setParentScopes();\n static::setIncludeScopes();\n static::setHasScopes();\n\n static::$parent = false;\n }\n }", "title": "" }, { "docid": "bcd0949b70b3a450d80a0b12a48f6ae0", "score": "0.40301555", "text": "public function loadObject($opt = false){\n $app =JFactory::getApplication();\n\n $supplier_id = (int)$app->input->get('supplier_id');\n if ($supplier_id && JeproshopTools::isUnsignedInt($supplier_id)) {\n if (!$this->supplier)\n $this->supplier = new JeproshopSupplierModelSupplier($supplier_id);\n if (JeproshopTools::isLoadedObject($this->supplier, 'supplier_id'))\n return $this->supplier;\n // throw exception\n JError::raiseError(500, 'The supplier cannot be loaded (or found)');\n return false;\n } elseif ($opt) {\n if (!$this->supplier)\n $this->supplier = new JeproshopSupplierModelSupplier();\n return $this->supplier;\n } else {\n $this->errors[] = Tools::displayError('The supplier cannot be loaded (the identifier is missing or invalid)');\n return false;\n }\n }", "title": "" }, { "docid": "c6c67676f5af2f60265503bda10d277d", "score": "0.40231803", "text": "public function init()\n {\n $restaurant = new Restaurant();\n $restaurant->fetch($this->restaurant_id); // restaurant_id comes from sub class\n $this->restaurant = $restaurant;\n\n Logger::info(__METHOD__ . \" initializing menu import for restaurant {$restaurant->name} id {$restaurant->id}\");\n\n\n $this->is_import_needed = (DB::inst()->getOne(\"SELECT COUNT(id) FROM meals\n WHERE restaurant_id = {$this->restaurant->id} AND\n day >= '\" . $this->getWeekStartDay() . \"' AND\n day <= '\" . $this->getWeekEndDay() . \"'\") == 0);\n }", "title": "" }, { "docid": "fc39d47d1daae0f82e7493ef3f3e7061", "score": "0.40173808", "text": "public function load_filters()\n\t{\n\t\t$settings = $this->get_settings();\n\n\t\tforeach ( $settings as $setting )\n\t\t{\n\t\t\tif ( $setting['filter'] )\n\t\t\t{\n\t\t\t\t$this->load_filter( $setting['filter'] );\n\t\t\t\t$this->filters[ $setting['filter'] ]->endpoint = $setting['endpoint'];\n\t\t\t}// end if\n\t\t}// end foreach\n\t}", "title": "" }, { "docid": "b255ab65f86399cb45c7ca79e5e2974f", "score": "0.40155432", "text": "protected function __construct( ) {\n\n\t\t\t// Set up our filters real late after other plugins have been loaded\n\t\t\tadd_action( 'plugins_loaded', array( $this, 'pluginsLoaded'), 100 );\n\n\t\t\tif( isset( $_GET['rhp-tribe-filter'] ) ) {\n\t\t\t\t$this->filterType = $_GET['rhp-tribe-filter'];\n\t\t\t} else {\n\t\t\t\t$this->filterType = 'upcoming';\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "0fac23c9090fd41cfe6274de39b75a2d", "score": "0.4000747", "text": "protected function _construct()\n {\n parent::_construct();\n $this->_init(\\Magento\\AdvancedSalesRule\\Model\\ResourceModel\\Rule\\Condition\\Filter::class);\n }", "title": "" }, { "docid": "da8194029af42dbbeb53943f158aca07", "score": "0.3999993", "text": "private function parse_lazy_load_settings() {\n\t\t$previous_settings = $this->get_setting( WP_SMUSH_PREFIX . 'lazy_load' );\n\n\t\t$args = array(\n\t\t\t'format' => array(\n\t\t\t\t'filter' => FILTER_VALIDATE_BOOLEAN,\n\t\t\t\t'flags' => FILTER_REQUIRE_ARRAY,\n\t\t\t),\n\t\t\t'output' => array(\n\t\t\t\t'filter' => FILTER_VALIDATE_BOOLEAN,\n\t\t\t\t'flags' => FILTER_REQUIRE_ARRAY,\n\t\t\t),\n\t\t\t'animation' => array(\n\t\t\t\t'filter' => FILTER_SANITIZE_STRING,\n\t\t\t\t'flags' => FILTER_REQUIRE_ARRAY,\n\t\t\t),\n\t\t\t'include' => array(\n\t\t\t\t'filter' => FILTER_VALIDATE_BOOLEAN,\n\t\t\t\t'flags' => FILTER_REQUIRE_ARRAY,\n\t\t\t),\n\t\t\t'exclude-pages' => FILTER_SANITIZE_STRING,\n\t\t\t'exclude-classes' => FILTER_SANITIZE_STRING,\n\t\t\t'footer' => FILTER_VALIDATE_BOOLEAN,\n\t\t\t'native' => FILTER_VALIDATE_BOOLEAN,\n\t\t\t'noscript' => FILTER_VALIDATE_BOOLEAN,\n\t\t);\n\n\t\t$settings = filter_input_array( INPUT_POST, $args );\n\n\t\t// Fade-in settings.\n\t\t$settings['animation']['fadein']['duration'] = 0;\n\t\tif ( isset( $settings['animation']['duration'] ) ) {\n\t\t\t$settings['animation']['fadein']['duration'] = absint( $settings['animation']['duration'] );\n\t\t\tunset( $settings['animation']['duration'] );\n\t\t}\n\n\t\t$settings['animation']['fadein']['delay'] = 0;\n\t\tif ( isset( $settings['animation']['delay'] ) ) {\n\t\t\t$settings['animation']['fadein']['delay'] = absint( $settings['animation']['delay'] );\n\t\t\tunset( $settings['animation']['delay'] );\n\t\t}\n\n\t\t/**\n\t\t * Spinner and placeholder settings.\n\t\t */\n\t\t$items = array( 'spinner', 'placeholder' );\n\t\tforeach ( $items as $item ) {\n\t\t\t$settings['animation'][ $item ]['selected'] = isset( $settings['animation'][ \"{$item}-icon\" ] ) ? $settings['animation'][ \"{$item}-icon\" ] : 1;\n\t\t\tunset( $settings['animation'][ \"{$item}-icon\" ] );\n\n\t\t\t// Custom spinners.\n\t\t\tif ( ! isset( $previous_settings['animation'][ $item ]['custom'] ) || ! is_array( $previous_settings['animation'][ $item ]['custom'] ) ) {\n\t\t\t\t$settings['animation'][ $item ]['custom'] = array();\n\t\t\t} else {\n\t\t\t\t// Remove empty values.\n\t\t\t\t$settings['animation'][ $item ]['custom'] = array_filter( $previous_settings['animation'][ $item ]['custom'] );\n\t\t\t}\n\n\t\t\t// Add uploaded custom spinner.\n\t\t\tif ( isset( $settings['animation'][ \"custom-{$item}\" ] ) ) {\n\t\t\t\tif ( ! empty( $settings['animation'][ \"custom-{$item}\" ] ) && ! in_array( $settings['animation'][ \"custom-{$item}\" ], $settings['animation'][ $item ]['custom'], true ) ) {\n\t\t\t\t\t$settings['animation'][ $item ]['custom'][] = $settings['animation'][ \"custom-{$item}\" ];\n\t\t\t\t\t$settings['animation'][ $item ]['selected'] = $settings['animation'][ \"custom-{$item}\" ];\n\t\t\t\t}\n\t\t\t\tunset( $settings['animation'][ \"custom-{$item}\" ] );\n\t\t\t}\n\t\t}\n\n\t\t// Custom color for placeholder.\n\t\tif ( ! isset( $settings['animation']['color'] ) ) {\n\t\t\t$settings['animation']['placeholder']['color'] = $previous_settings['animation']['placeholder']['color'];\n\t\t} else {\n\t\t\t$settings['animation']['placeholder']['color'] = $settings['animation']['color'];\n\t\t\tunset( $settings['animation']['color'] );\n\t\t}\n\n\t\t/**\n\t\t * Exclusion rules.\n\t\t */\n\t\t// Convert to array.\n\t\tif ( ! empty( $settings['exclude-pages'] ) ) {\n\t\t\t$settings['exclude-pages'] = preg_split( '/[\\r\\n\\t ]+/', $settings['exclude-pages'] );\n\t\t} else {\n\t\t\t$settings['exclude-pages'] = array();\n\t\t}\n\t\tif ( ! empty( $settings['exclude-classes'] ) ) {\n\t\t\t$settings['exclude-classes'] = preg_split( '/[\\r\\n\\t ]+/', $settings['exclude-classes'] );\n\t\t} else {\n\t\t\t$settings['exclude-classes'] = array();\n\t\t}\n\n\t\t$this->set_setting( WP_SMUSH_PREFIX . 'lazy_load', $settings );\n\t}", "title": "" }, { "docid": "221a773dbe4aee28c4b5d63c77ef79c5", "score": "0.39942405", "text": "public function initialize() {\n parent::initialize();\n // コンポーネントの呼び出し\n // $this->loadComponent('Paginator');\n $this->loadComponent('RequestHandler');\n\n // Seasonフィルターの設定値\n $this->season_filter = array(\n \"2018\" => [\n 'season' => 2018,\n 'value' => './match-results-graph',\n 'text' => '2018',\n 'selected' => false,\n ],\n \"2017\" => [\n 'season' => 2017,\n 'value' => './match-results-graph?season=2017',\n 'text' => '2017',\n 'selected' => false,\n ],\n \"2016\" => [\n 'season' => 2016,\n 'value' => './match-results-graph?season=2016',\n 'text' => '2016',\n 'selected' => false,\n ],\n \"2015\" => [\n 'season' => 2015,\n 'value' => './match-results-graph?season=2015',\n 'text' => '2015',\n 'selected' => false,\n ],\n \"2014\" => [\n 'season' => 2014,\n 'value' => './match-results-graph?season=2014',\n 'text' => '2014',\n 'selected' => false,\n ],\n \"2013\" => [\n 'season' => 2013,\n 'value' => './match-results-graph?season=2013',\n 'text' => '2013',\n 'selected' => false,\n ],\n \"2012\" => [\n 'season' => 2012,\n 'value' => './match-results-graph?season=2012',\n 'text' => '2012',\n 'selected' => false,\n ],\n \"2011\" => [\n 'season' => 2011,\n 'value' => './match-results-graph?season=2011',\n 'text' => '2011',\n 'selected' => false,\n ],\n \"2010\" => [\n 'season' => 2010,\n 'value' => './match-results-graph?season=2010',\n 'text' => '2010',\n 'selected' => false,\n ],\n \"2009\" => [\n 'season' => 2009,\n 'value' => './match-results-graph?season=2009',\n 'text' => '2009',\n 'selected' => false,\n ],\n \"2008\" => [\n 'season' => 2008,\n 'value' => './match-results-graph?season=2008',\n 'text' => '2008',\n 'selected' => false,\n ],\n \"2007\" => [\n 'season' => 2007,\n 'value' => './match-results-graph?season=2007',\n 'text' => '2007',\n 'selected' => false,\n ],\n \"2006\" => [\n 'season' => 2006,\n 'value' => './match-results-graph?season=2006',\n 'text' => '2006',\n 'selected' => false,\n ],\n \"2005\" => [\n 'season' => 2005,\n 'value' => './match-results-graph?season=2005',\n 'text' => '2005',\n 'selected' => false,\n ],\n );\n\n // Model呼び出しをインスタンス化\n if ($this->request->getQuery('season') == null || $this->request->getQuery('season') == 2018) { // get取得\n // JleageD1Matchdata2018テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2018');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2018');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2018]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2017) { // get取得\n // JleageD1Matchdata2017テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2017');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2017');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2017]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2016) { // get取得\n // JleageD1Matchdata2016テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2016');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2016');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2016]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2015) { // get取得\n // JleageD1Matchdata2015テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2015');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2015');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2015]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2014) { // get取得\n // JleageD1Matchdata2014テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2014');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2014');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2014]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2013) { // get取得\n // JleageD1Matchdata2013テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2013');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2013');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2013]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2012) { // get取得\n // JleageD1Matchdata2012テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2012');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2012');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2012]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2011) { // get取得\n // JleageD1Matchdata2011テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2011');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2011');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2011]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2010) { // get取得\n // JleageD1Matchdata2010テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2010');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2010');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2010]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2009) { // get取得\n // JleageD1Matchdata2009テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2009');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2009');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2009]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2008) { // get取得\n // JleageD1Matchdata2008テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2008');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2008');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2008]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2007) { // get取得\n // JleageD1Matchdata2007テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2007');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2007');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2007]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2006) { // get取得\n // JleageD1Matchdata2006テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2006');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2006');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2006]['selected'] = true;\n } else if ($this->request->getQuery('season') == 2005) { // get取得\n // JleageD1Matchdata2005テーブルを呼び出しインスタンス化\n $this->JleageMatchdata = TableRegistry::get('JleageD1Matchdata2005');\n $this->JleageMatchResults = TableRegistry::get('JleageD1MatchResults2005');\n\n // Seasonフィルターの選択済み設定値をtrueへ変更\n $this->season_filter[2005]['selected'] = true;\n }\n }", "title": "" }, { "docid": "ed2e432bb044fb0ad37d88ffdd7fa5cd", "score": "0.3984744", "text": "public function preprocess(&$query)\n\t{\n\t\t$query['testrule'] = 'yes';\n\t}", "title": "" }, { "docid": "3c7d158a77a2df4dfd564abb1671d5cf", "score": "0.39843562", "text": "public function get_load_special();", "title": "" }, { "docid": "fafbb0ae0c528ddb8e08214be303fb79", "score": "0.39792132", "text": "public function beforeFind($queryData) \r\n\t{\r\n\t\tif (Configure::read('Runtime.mode') == 'front')\r\n\t\t{\r\n\t\t\t$queryData['conditions']['Product.active'] = 1;\r\n\t\t}\r\n\t\t\r\n\t\treturn $queryData;\r\n\t}", "title": "" }, { "docid": "7598ba7b6f9771b08c16cd0b871c1330", "score": "0.3975879", "text": "private function populate() {\n if (isset($this->sqlFromWhere))\n return;\n\n $this->sqlFromWhere = [];\n $this->fromWhereParamFilters = [];\n\n if ($this->a & self::A_LOOKUP_TABLE == 0) {\n $this->whereParams = [];\n return;\n }\n\n $this->parseWheres();\n $this->whereParams[self::FILTER_LIMIT] = [$this->offset, $this->count];\n $this->whereParams[self::FILTER_LIMIT_SUM] = [$this->offset + $this->count];\n\n\n if ($this->a & self::A_BLOCK_TABLE) {\n /** @var string[] $wheres */\n $wheres = [self::FILTER_TIME, self::FILTER_USER, self::FILTER_WORLD, self::FILTER_COORDS, self::FILTER_ROLLBACK];\n /** @var string $sql */\n $sql = \"FROM `\" . $this->prefix . \"block` AS c\"\n . \" LEFT JOIN `\" . $this->prefix . \"user` AS u ON c.user = u.rowid LEFT JOIN `\" . $this->prefix . \"world` AS w ON c.wid = w.rowid\";\n\n if ($this->a & (self::A_BLOCK_MATERIAL)) {\n $sql .= \" LEFT JOIN `\" . $this->prefix . \"material_map` AS mm ON c.action<>3 AND c.type=mm.rowid\";\n if ($this->useBlockdata)\n $sql .= \" LEFT JOIN `\" . $this->prefix . \"blockdata_map` AS dm ON c.data<>0 AND c.action<>3 AND c.data=dm.rowid\";\n $wheres[] = self::FILTER_MATERIAL;\n }\n if ($this->a & self::A_KILL) {\n $sql .= \" LEFT JOIN `\" . $this->prefix . \"entity_map` AS em ON c.action=3 AND c.type<>0 AND c.type=em.rowid\";\n $sql .= \" LEFT JOIN `\" . $this->prefix . \"user` AS um ON c.data<>0 AND c.action=3 AND c.type=0 AND c.data=um.rowid\";\n $wheres[] = self::FILTER_ENTITY;\n }\n\n // If action=0, 1, 2, and 3 are not on at the same time\n $a = null;\n if (($this->a & self::A_BLOCK_TABLE) != self::A_BLOCK_TABLE) {\n $aList = [];\n if ($this->a & self::A_BLOCK_MINE)\n $aList[] = \"0\";\n if ($this->a & self::A_BLOCK_PLACE)\n $aList[] = \"1\";\n if ($this->a & self::A_CLICK)\n $aList[] = \"2\";\n if ($this->a & self::A_KILL)\n $aList[] = \"3\";\n $a = \"c.action IN (\" . join(\",\", $aList) . \")\";\n }\n\n $this->sqlFromWhere[self::BLOCK] = $sql . $this->generateWhere(self::BLOCK, $wheres, $a);\n }\n\n if ($this->a & self::A_CONTAINER_TABLE) {\n /** @var string[] $wheres */\n $wheres = [self::FILTER_TIME, self::FILTER_USER, self::FILTER_WORLD, self::FILTER_COORDS, self::FILTER_ROLLBACK, self::FILTER_MATERIAL];\n /** @var string $sql */\n $sql = \"FROM `\" . $this->prefix . \"container` AS c\"\n . \" LEFT JOIN `\" . $this->prefix . \"user` AS u ON c.user=u.rowid LEFT JOIN `\" . $this->prefix . \"world` AS w ON c.wid=w.rowid\"\n . \" LEFT JOIN `\" . $this->prefix . \"material_map` AS mm ON c.action<>3 AND c.type=mm.rowid\";\n $a = null;\n if (($this->a & self::A_CONTAINER_TABLE) != self::A_CONTAINER_TABLE) {\n if ($this->a & self::A_CONTAINER_OUT)\n $a = \"c.action=0\";\n if ($this->a & self::A_CONTAINER_IN)\n $a = \"c.action=1\";\n }\n\n $this->sqlFromWhere[self::CONTAINER] = $sql . $this->generateWhere(self::CONTAINER, $wheres, $a);\n }\n\n if ($this->a & self::A_CHAT) {\n /** @var string[] $wheres */\n $wheres = [self::FILTER_TIME, self::FILTER_USER, self::W_KEYWORD_MESSAGE];\n /** @var string $sql */\n $sql = \"FROM `\" . $this->prefix . \"chat` AS c\"\n . \" LEFT JOIN `\" . $this->prefix . \"user` AS u ON c.user=u.rowid\";\n\n $this->sqlFromWhere[self::CHAT] = $sql . $this->generateWhere(self::CHAT, $wheres);\n }\n\n if ($this->a & self::A_COMMAND) {\n /** @var string[] $wheres */\n $wheres = [self::FILTER_TIME, self::FILTER_USER, self::W_KEYWORD_MESSAGE];\n /** @var string $sql */\n $sql = \"FROM `\" . $this->prefix . \"command` AS c\"\n . \" LEFT JOIN `\" . $this->prefix . \"user` AS u ON c.user=u.rowid\";\n\n $this->sqlFromWhere[self::COMMAND] = $sql . $this->generateWhere(self::COMMAND, $wheres);\n }\n\n if ($this->a & self::A_SESSION) {\n /** @var string[] $wheres */\n $wheres = [self::FILTER_TIME, self::FILTER_USER, self::FILTER_WORLD, self::FILTER_COORDS];\n /** @var string $sql */\n $sql = \"FROM `\" . $this->prefix . \"session` AS c\"\n . \" LEFT JOIN `\" . $this->prefix . \"user` AS u ON c.user=u.rowid LEFT JOIN `\" . $this->prefix . \"world` AS w ON c.wid=w.rowid\";\n\n $this->sqlFromWhere[self::SESSION] = $sql . $this->generateWhere(self::SESSION, $wheres);\n }\n\n if ($this->a & self::A_USERNAME) {\n /** @var string[] $wheres */\n $wheres = [self::FILTER_TIME, self::FILTER_USER, self::W_KEYWORD_USER];\n /** @var string $sql */\n $sql = \"FROM `\" . $this->prefix . \"username_log` AS c\"\n . \" LEFT JOIN `\" . $this->prefix . \"user` AS u ON c.uuid=u.uuid\";\n\n $this->sqlFromWhere[self::USERNAME] = $sql . $this->generateWhere(self::USERNAME, $wheres);\n }\n }", "title": "" }, { "docid": "2dbb7aea71ef943c8e28b972c28d5d45", "score": "0.3971561", "text": "public function add_option_filters()\n {\n }", "title": "" }, { "docid": "2dbb7aea71ef943c8e28b972c28d5d45", "score": "0.3970967", "text": "public function add_option_filters()\n {\n }", "title": "" }, { "docid": "2dbb7aea71ef943c8e28b972c28d5d45", "score": "0.3970967", "text": "public function add_option_filters()\n {\n }", "title": "" }, { "docid": "e7fe7856917a2d81ef4b7637d4a56248", "score": "0.3963705", "text": "public function __construct($where){\n parent::__construct();\n \n if ($where == \"toAirport\") {\n $this->requestsToAirport = new \\Rideorama\\Entity\\Requeststoairport();\n $this->requestsToAirportBookingManifest = new \\Rideorama\\Entity\\Requeststoairportbookmanifest();\n\n }\n else if ($where == \"fromAirport\"){\n $this->requestsFromAirport = new \\Rideorama\\Entity\\Requestsfromairport();\n $this->requestsFromAirportBookingManifest = new \\Rideorama\\Entity\\Requestsfromairportbookmanifest();\n }\n \n $this->airport = new Admin_Model_AirportService();\n $this->user = new Account_Model_UserService();\n $this->OnlyAlnumFilter = new Zend_Filter_Alnum(true);\n\n }", "title": "" }, { "docid": "8c857884a0be98fbe140e18dfe329654", "score": "0.39635795", "text": "function usof_load_options_once() {\r\n\tglobal $usof_options;\r\n\tif ( isset( $usof_options ) ) {\r\n\t\treturn;\r\n\t}\r\n\t$theme = wp_get_theme();\r\n\tif ( is_child_theme() ) {\r\n\t\t$theme = wp_get_theme( $theme->get( 'Template' ) );\r\n\t}\r\n\t$theme_name = $theme->get( 'Name' );\r\n\t$usof_options = get_option( 'usof_options_' . $theme_name );\r\n\tif ( $usof_options === FALSE ) {\r\n\t\t// Trying to fetch the old good SMOF options\r\n\t\t$usof_options = get_option( $theme_name . '_options' );\r\n\t\tif ( $usof_options !== FALSE ) {\r\n\t\t\t// Disabling the old options autoload\r\n\t\t\tupdate_option( $theme_name . '_options', $usof_options, FALSE );\r\n\t\t} else {\r\n\t\t\t// Not defined yet, using default values\r\n\t\t\t$usof_options = usof_defaults();\r\n\t\t}\r\n\t\tupdate_option( 'usof_options_' . $theme_name, $usof_options, TRUE );\r\n\t}\r\n}", "title": "" }, { "docid": "00785c989e4a3d9338abe7da108e8971", "score": "0.3959541", "text": "function ristretto_run_options_once() {\n\t$check = get_option('ristretto_activation_check');\n\tif ( $check != \"set\" ) {\n\n\t\t// initial menu location assignment\n\t\tristretto_menus_to_locations();\n\n\t\t// set permalinks\n\t\tglobal $wp_rewrite;\n\t\t$wp_rewrite->set_permalink_structure( '/%postname%/' );\n\t\t$wp_rewrite->flush_rules();\n\n\t\t// Add marker so it doesn't run in future\n\t\tadd_option('ristretto_activation_check', \"set\");\n\t}\n}", "title": "" }, { "docid": "d165d6bf21002017f4a5029cdee78da6", "score": "0.3958781", "text": "function _loadOptions() {\n if (false === ( $options = get_option($this->optionName) )) {\n $this->options = $this->defaultOptions;\n return false;\n } else {\n $this->options = $options;\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "4c3da9dc8ef84e1e0d038019d7e7ad1e", "score": "0.39536372", "text": "protected function loadRelated()\n {\n if($this->param('filter')){\n\n if(\n $this->param('filter')!=='tag' &&\n $this->param('filter')!=='category' &&\n $this->param('filter')!=='author' &&\n $this->param('filter')!=='search' &&\n $this->param('filter')!=='cannonical' &&\n !is_numeric($this->param('filter'))\n ){\n $slug = $this->param('slug')?$this->param('slug'):$this->param('filter');\n $BlogPost = BlogPost::where('slug','=',$slug)->first();\n \n $tagModel = new TagModel;\n $tagModel = $tagModel->getRelatedTagsBaseQuery();\n /*\n * base this query for tags on the current post\n */\n\n if(!$BlogPost)\n return false;\n\n $tagModel->where('radiantweb_blog_posts.id','!=', $BlogPost->id);\n \n \n if ($this->property('series')){\n\t\t $series = $this->property('series');\n\t\t $tagModel->where('radiantweb_blog_posts.series_id','!=', $series);\n\t\t }\n\n if($BlogPost->tags){\n $i = 0;\n $tagIDs = array();\n /*\n * loop through each of the current posts tags\n */\n foreach($BlogPost->tags as $t){\n $tagIDs[] = $t->id;\n $i++;\n }\n /*\n * filter posts by each tag id\n */\n $tagModel->whereIn(\"radiantweb_blog_post_tags.tag_id\",$tagIDs);\n /*\n * do not repeat post id's\n */\n\n $query = $tagModel->groupBy('id')->orderBy('impressions', 'desc')->limit($this->property('postsPerPage'));\n //dd($query->toSql());\n return $query->get()->all();\n }\n }else{\n return false;\n }\n\n }\n return false;\n }", "title": "" }, { "docid": "fc2180099519c375ba2eb0f0401d1ef7", "score": "0.39513397", "text": "function ironbwp_action_override_main_query( $query ) {\n\n\t$query->set( 'update_post_meta_cache', false );\n\t$query->set( 'update_post_term_cache', false );\n\n\tif ( is_admin() ) {\n\t\treturn;\n\t}\n\n\t// This query is not on the home page\n\tif ( ! $query->is_home() ) {\n\n\t\tif ( is_search() ) {\n\n\t\t\t// $query->set( 'posts_per_page', '10' );\n\n\t\t\treturn;\n\t\t}\n\n\t\tif ( is_tax() ) {\n\n\t\t\t$arr = $query->tax_query->queries;\n\n\t\t\treturn;\n\t\t}\n\n\t\treturn;\n\t}\n\n\tif ( ! $query->is_main_query() ) {\n\t\treturn;\n\t}\n\n\t$query->set( 'ignore_sticky_posts', true );\n\t$query->set( 'update_post_meta_cache', false );\n\t$query->set( 'update_post_term_cache', false );\n\t$query->set( 'posts_per_page', '2' );\n\n\treturn;\t\n}", "title": "" }, { "docid": "19d10d58b7e61d5f437af3057af645c2", "score": "0.39496905", "text": "protected function initOptions() {\n }", "title": "" }, { "docid": "983aca2e2fcaef4ee700972fddea3b89", "score": "0.39465997", "text": "function SearchFilter($query) {\n if (isset($_GET['s']) && empty($_GET['s']) && $query->is_main_query()){\n $query->is_search = true;\n $query->is_home = false;\n }\n return $query;\n }", "title": "" }, { "docid": "58ff11c1b86c61c1a0acb24d46b0683a", "score": "0.39431456", "text": "public function initTournament() {\n\t\t\n\t\t$this->locations[\"Super Missile (yellow Maridia)\"]->setRequirements(function($location, $items) {\n\t\t\treturn $items->canPassBombPassages() && ($items->has('Gravity') || $items->has('Ice') || ($items->has('HiJump') && $items->canSpringBallJump()));\n\t\t});\n\n\t\t$this->locations[\"Missile (yellow Maridia super missile)\"]->setRequirements(function($location, $items) {\n\t\t\treturn $items->canPassBombPassages() && ($items->has('Gravity') || $items->has('Ice') || ($items->has('HiJump') && $items->canSpringBallJump()));\n\t\t});\n\n\t\t$this->locations[\"Missile (yellow Maridia false wall)\"]->setRequirements(function($location, $items) {\n\t\t\treturn $items->canPassBombPassages() && ($items->has('Gravity') || $items->has('Ice') || ($items->has('HiJump') && $items->canSpringBallJump()));\n\t\t});\n\n $this->locations[\"Plasma Beam\"]->setRequirements(function($location, $items) {\n\t\t\treturn $items->canDefeatDraygon()\n\t\t\t\t&& (($items->has('Charge') && $items->hasEnergyReserves(3)) || $items->has('ScrewAttack') || $items->has('Plasma') || $items->has('SpeedBooster'))\n\t\t\t\t&& ($items->has('HiJump') || $items->canSpringBallJump() || $items->canFlySM() || $items->has('SpeedBooster'));\n\t\t});\n\n\t\t$this->locations[\"Missile (left Maridia sand pit room)\"]->setRequirements(function($location, $items) {\n\t\t\treturn $items->has('Super')\n\t\t\t\t&& (($items->has('HiJump') && ($items->has('SpaceJump') || $items->canSpringBallJump())) || $items->has('Gravity'));\n\t\t});\n\n\t\t$this->locations[\"Reserve Tank, Maridia\"]->setRequirements(function($location, $items) {\n\t\t\treturn $items->has('Super')\n\t\t\t\t&& (($items->has('HiJump') && ($items->has('SpaceJump') || $items->canSpringBallJump())) || $items->has('Gravity'));\n\t\t});\n\n\t\t$this->locations[\"Missile (right Maridia sand pit room)\"]->setRequirements(function($location, $items) {\n\t\t\treturn $items->has('Super') && ($items->has('HiJump') || $items->has('Gravity'));\n\t\t});\n\t\t\n $this->locations[\"Power Bomb (right Maridia sand pit room)\"]->setRequirements(function($location, $items) {\n\t\t\treturn $items->has('Super')\n\t\t\t\t&& (($items->has('HiJump') && $items->canSpringBallJump()) || $items->has('Gravity'));\n\t\t});\n\n $this->locations[\"Missile (pink Maridia)\"]->setRequirements(function($location, $items) {\n return $items->has('Gravity');\n\t\t});\n\n $this->locations[\"Super Missile (pink Maridia)\"]->setRequirements(function($location, $items) {\n return $items->has('Gravity');\n\t\t});\n\n $this->locations[\"Spring Ball\"]->setRequirements(function($location, $items) {\n\t\t\treturn $items->has('Grapple') \n\t\t\t\t&& $items->canUsePowerBombs()\n\t\t\t\t&& $items->has('Super')\n\t\t\t\t&& (($items->has('Gravity') && ($items->canFlySM() || $items->has('HiJump')))\n\t\t\t\t|| ($items->has('Ice') && $items->has('HiJump') && $items->canSpringBallJump() && $items->has('SpaceJump')));\n\t\t});\n\n $this->locations[\"Missile (Draygon)\"]->setRequirements(function($location, $items) {\n\t\t\treturn $items->canDefeatBotwoon() && $items->has('Gravity');\n\t\t});\n\n $this->locations[\"Energy Tank, Botwoon\"]->setRequirements(function($location, $items) {\n return $items->canDefeatBotwoon();\n\t\t});\n\n $this->locations[\"Space Jump\"]->setRequirements(function($location, $items) {\n return $items->canDefeatDraygon();\n\t\t});\n\n $this->can_enter = function($locations, $items) {\n return ($this->world->getRegion('West Norfair')->canEnter($locations, $items)\n\t\t\t\t && $items->canUsePowerBombs()\n\t\t\t\t && $items->has('Super')\n\t\t\t\t && ($items->has('Gravity') || ($items->has('HiJump') && ($items->has('Ice') || $items->canSpringBallJump()) && $items->has('Grapple'))))\n\t\t\t\t|| $items->canAccessMaridiaPortal();\n };\n\t\t\n\t\t$this->can_complete = function($locations, $items) {\n\t\t\treturn ($this->canEnter($locations, $items) && $items->canDefeatBotwoon() && $items->canDefeatDraygon());\n\t\t};\n\n\t\t$this->prize_location->setRequirements($this->can_complete);\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "4448b8fd6b60660cccf8a1749ae384a7", "score": "0.39430588", "text": "public function initializeObject()\n {\n $gpVarAdapter = $this->gpVarsAdapterFactory->getInstance();\n $gpVarsForFilterbox = $gpVarAdapter->extractGpVarsByNamespace($this->getObjectNamespaceWithoutSuffix());\n\n if (count($gpVarsForFilterbox) > 0) {\n $this->isSubmittedFilterbox = true;\n }\n }", "title": "" }, { "docid": "68e67498c8f70f1ee5a9782b96e09097", "score": "0.3942521", "text": "function conditional_script_home_livesearch() {\n if (is_front_page())\n\t\t{\n\t\t\t\twp_enqueue_script( 'select2-home-livesearch', get_template_directory_uri() . '/inc/select2/select2-home-livesearch.js', array('jquery'), '20130219', true );\n } \n}", "title": "" }, { "docid": "87d0a57f8a035a56df1273b409ec88e3", "score": "0.39399", "text": "public function loadPosttypes(){\n\n\t\t$opts = apply_filters( 'wpopal_themer_load_posttypes', get_option( 'wpopal_themer_posttype' ) );\n\n\n\t if( !empty($opts) ){\n\n\t foreach( $opts as $opt => $key ){\n\n\t $file = str_replace( 'enable_', '', $opt );\n\t $filepath = WPOPAL_THEMER_PLUGIN_THEMER_DIR.'posttypes/'.$file.'.php';\n\t if( file_exists($filepath) ){\n\t require_once( $filepath );\n\t }\n\t }\n\t }\n\t}", "title": "" }, { "docid": "d9316cc9b07037b4cd7fe71c35d0c245", "score": "0.39336613", "text": "public function initSpeedRunner() {\n\t\t$this->initGlitched();\n\n\t\t$this->can_enter = function($locations, $items) {\n\t\t\treturn $items->has('MoonPearl')\n\t\t\t\t&& $items->canLiftDarkRocks()\n\t\t\t\t&& $items->has('Crystal1')\n\t\t\t\t&& $items->has('Crystal2')\n\t\t\t\t&& $items->has('Crystal3')\n\t\t\t\t&& $items->has('Crystal4')\n\t\t\t\t&& $items->has('Crystal5')\n\t\t\t\t&& $items->has('Crystal6')\n\t\t\t\t&& $items->has('Crystal7');\n\t\t};\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "56477f4d58e10166995b8c5dc969435d", "score": "0.39291105", "text": "abstract protected function initFilterByTsConfig();", "title": "" }, { "docid": "38117cda25e9951b57a8e9f28d77dc1d", "score": "0.3928892", "text": "protected function _buildWhere(&$query)\r\n {\r\n \tif($this->_featured_id!=null)\r\n \t{\r\n \t\t$query->where('f.ddcbookit_featuredapartment_id = \"'.$this->_featured_id.'\"');\r\n \t}\r\n return $query;\r\n }", "title": "" }, { "docid": "7d4fc6820c7fc47dbfa4e88a0755ac6d", "score": "0.3925059", "text": "public function testLoad() {\n $submission = (object) ['nid' => $this->node->nid];\n $submissions = [$submission];\n campaignion_opt_in_webform_submission_load($submissions);\n $this->assertNotEmpty($submission->opt_in);\n $this->assertInstanceOf(Values::class, $submission->opt_in);\n }", "title": "" }, { "docid": "c9f4afe6b029d6763a4c45959205f3e4", "score": "0.39124432", "text": "protected function _initPluginLoaderCache()\n\t{\n\t\tif ('production' == $this->getEnvironment()) {\n\t\t\t$classFileInCache = APPLICATION_PATH . '/../temp/cache/pluginLoaderCache.php';\n\t\t\tif (file_exists($classFileInCache))\n\t\t\t{\n\t\t\t\tinclude_once $classFileInCache;\n\t\t\t}\n\t\t\tZend_Loader_PluginLoader::setIncludeFileCache($classFileInCache);\n\t\t}\n\t}", "title": "" }, { "docid": "4a942adecb0b6e377c4b6bf21e335b69", "score": "0.39108694", "text": "protected function init()\n {\n $this->_handleOptions();\n }", "title": "" }, { "docid": "1112a615dabd42856ad76f30ae304398", "score": "0.39104426", "text": "public function init() {\n\t\t\t// All checks for local locations have already been done in the \"prepare\" method\n\t\treturn true;\n\t}", "title": "" }, { "docid": "dad3eec24124730af1a5699ac448eda8", "score": "0.39088178", "text": "public function init() {\n\t\t\tadd_filter( 'posts_where', array( $this, 'where_clause' ), 20, 2 );\n\t\t\tadd_filter( 'get_next_post_where', array( $this, 'post_navigation_clause' ), 20, 1 );\n\t\t\tadd_filter( 'get_previous_post_where', array( $this, 'post_navigation_clause' ), 20, 1 );\n\t\t\tadd_action( 'wp_head', array( $this, 'hide_post_from_searchengines' ) );\n\t\t\tadd_filter( 'comments_clauses', array( $this, 'comments_clauses' ), 20, 2 );\n\t\t\tadd_filter( 'wp_list_pages_excludes', array( $this, 'wp_list_pages_excludes' ) );\n\t\t}", "title": "" }, { "docid": "928c4e6711e694c34a2257fe2af053fa", "score": "0.39076507", "text": "function archive_query_init($wp)\r\n\t{\r\n\t\t\r\n\t\tglobal $searchandfilter;\r\n\t\tglobal $wp_query;\r\n\r\n\t\tif(!is_admin()){\r\n\r\n if(isset($wp->query_vars['sfid']))\r\n\t\t\t{\r\n\t\t\t\t$sfid = (int)$wp->query_vars['sfid'];\r\n\t\t\t\t$searchandfilter->set_active_sfid($sfid);\r\n\t\t\t\t$searchandfilter->set($sfid);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//extra stuff\r\n\t\t\t//grab any search forms before woocommerce had a chance to modify the query\r\n\t\t\t$search_form_query = new WP_Query('post_type=search-filter-widget&fields=ids&post_status=publish&posts_per_page=-1');\r\n\t\t\t$this->all_search_form_ids = $search_form_query->get_posts();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "06d9987868120e5d7cda39bec2f88bdd", "score": "0.39074242", "text": "public function loadRequest()\n {\n $new_value = filter_input($input,$this->name,FILTER_SANITIZE_STRING);\n if(!is_null($new_value)) {\n $this->value = $new_value;\n }\n }", "title": "" }, { "docid": "4583ced6e16ca32ddf0f5199ec381d1e", "score": "0.39055797", "text": "public static function load_walker() {\n\t\t\trequire_once ASTRA_EXT_NAV_MENU_DIR . 'classes/class-astra-custom-nav-walker.php';\n\t\t}", "title": "" }, { "docid": "51844e5d02641f2da0b9e07920d01f79", "score": "0.39005885", "text": "public function beforeFilter()\n {\n parent::beforeFilter();\n if (empty($this->request->params['requested'])) {\n $this->require_admin();\n }\n }", "title": "" }, { "docid": "7eca6841228fae7d80b8328cda89677e", "score": "0.3899812", "text": "function beforeLoad($m,$q=null){\n if(is_null($q))return; // manual load\n\n if($this->m2 && $this->m2 != $this->owner->id_field){\n $q->field($this->m2,$this->m1,$this->short_name);\n }elseif($this->m2){\n $q->field($this->f2,$this->fa?:$this->f1,$this->short_name);\n }\n }", "title": "" }, { "docid": "13292cc13334e60f890e52c8fcca3ef9", "score": "0.38853928", "text": "public function init() {\n \t$this->sTime = microtime(true);\n \tif($this->checkAppVersion() >= 4){\n \t\t//初始化过滤\n \t\t$package = $this->getInput('client_pkg');\n \t\t//访问客户端设备\n \t\t$client = $this->getRequestClient($package);\n \t\t//根据访问客户端设备初始化过滤游戏id\n \t\t$this->filter = $this->getFilterGame($client);\n \t}else{\n \t\t//根据访问客户端设备初始化过滤游戏id\n \t\t$this->filter = $this->getFilterGame();\n \t\t\n \t}\n \t\n \t//注册一个全局sp版本数据\n \t$request = $this->getInput('sp');\n \tif($request){\n \t\t$sp = explode('_', $request);\n \t\tYaf_Registry::set(\"apkVersion\", $sp[1]);\n \t\tYaf_Registry::set(\"androidVersion\", $sp[3]);\n \t}\n \n\t Yaf_Dispatcher::getInstance()->disableView();\n }", "title": "" } ]
1b044833e389a1576dbcebe18b9c2056
standard config form function all field names must be prefixed by 'config_' which is stripped off in data received in block_news::instance_config_save()
[ { "docid": "1fa9ee146cf2b6fd90d91d492cdf2bc5", "score": "0.6029196", "text": "protected function specific_definition($mform) {\n $blockinstanceid=$this->block->instance->id;\n $bns=$this->block->bns;\n $urls_txt='';\n\n // set feeds for text area\n $frecs=$bns->get_feeds();\n foreach ($frecs as $frec) {\n $urls_txt.=$frec->feedurl;\n $urls_txt.=\"\\n\";\n }\n\n // Fields for editing block title and contents.\n // 'Block settings'\n $mform->addElement('header', 'configheader', get_string('blocksettings', 'block'));\n\n $mform->addElement('text', 'config_title', get_string('configtitle', 'block_news'));\n $mform->setType('config_title', PARAM_TEXT);\n $mform->setDefault('config_title', $bns->get_title());\n $mform->addRule('config_title', null, 'maxlength', 40, 'server');\n\n $choices_nm=array(\n '1'=>'Latest message only',\n '2'=>'2 most recent',\n '3'=>'3 most recent',\n '4'=>'4 most recent',\n '5'=>'5 most recent'\n );\n $mform->addElement('select', 'config_nummessages',\n get_string('confignummessages', 'block_news'), $choices_nm);\n $mform->setDefault('config_nummessages', $bns->get_nummessages());\n\n $choices_sl=array(\n '0'=>'None',\n '40'=>'Short',\n '100'=>'Medium',\n '500'=>'Long'\n );\n $mform->addElement('select', 'config_summarylength',\n get_string('configsummarylength', 'block_news'), $choices_sl);\n $mform->setDefault('config_summarylength', $bns->get_summarylength());\n\n $mform->addElement('textarea', 'config_feedurls',\n get_string(\"configfeedurls\", \"block_news\"), 'wrap=\"virtual\" rows=\"5\" cols=\"128\"');\n $mform->setType('config_title', PARAM_TEXT);\n $mform->setDefault('config_feedurls', $urls_txt);\n\n $mform->addElement('selectyesno', 'config_hidetitles',\n get_string('confighidetitles', 'block_news'));\n $mform->setDefault('config_hidetitles', $bns->get_hidetitles());\n\n $mform->addElement('selectyesno', 'config_hidelinks',\n get_string('confighidelinks', 'block_news'));\n $mform->setDefault('config_hidelinks', $bns->get_hidelinks());\n\n $mform->addElement('selectyesno', 'config_groupingsupport',\n get_string('configgroupingsupport', 'block_news'));\n $mform->setDefault('config_groupingsupport', $bns->get_groupingsupport());\n $mform->addHelpButton('config_groupingsupport', 'configgroupingsupport', 'block_news');\n }", "title": "" } ]
[ { "docid": "390db43f0246ad7cccbeeefa5891c9f3", "score": "0.7717508", "text": "public function config_form();", "title": "" }, { "docid": "fd8993e4d3734fc7db0094aa367a6d1a", "score": "0.6869431", "text": "function config_form($frm) {\n global $CFG;\n\n $vars = array('enrol_dbhost', 'enrol_dbuser', 'enrol_dbpass',\n 'enrol_dbname', 'enrol_dbtable',\n 'enrol_localcoursefield', 'enrol_localuserfield',\n 'enrol_remotecoursefield', 'enrol_remoteuserfield',\n 'enrol_db_autocreate', 'enrol_db_category', 'enrol_db_template',\n 'enrol_db_localrolefield', 'enrol_db_remoterolefield',\n 'enrol_remotecoursefield', 'enrol_remoteuserfield',\n 'enrol_db_ignorehiddencourse', 'enrol_db_defaultcourseroleid');\n\n foreach ($vars as $var) {\n if (!isset($frm->$var)) {\n $frm->$var = '';\n }\n }\n include(\"$CFG->dirroot/enrol/database/config.html\");\n}", "title": "" }, { "docid": "4a52ea4dfb838b179fa4cc715922feb9", "score": "0.6746739", "text": "protected function getConfigFormInternal()\n {\n return [\n 'title' => 'dmail_dovsk_crFromNL',\n 'news' => $this->getNews(),\n 'cshItem' => BackendUtility::cshItem($this->cshTable, 'select_newsletter'),\n ];\n }", "title": "" }, { "docid": "e0e442275b503c3f4e13c48437e8c916", "score": "0.674527", "text": "function plugin_initconfig_nexform()\r\n{\r\n global $CONF_FE, $CONF_FE_DEFAULT;\r\n @include_once ($_CONF['path'] . 'plugins/nexform/config.php');\r\n\r\n if (is_array($CONF_FE) && (count($CONF_FE) > 1)) {\r\n $CONF_FE_DEFAULT = array_merge($CONF_FE_DEFAULT, $CONF_FE);\r\n }\r\n\r\n $c = config::get_instance();\r\n if (!$c->group_exists('nexform')) {\r\n\r\n $c->add('sg_main', NULL, 'subgroup', 0, 0, NULL, 0, true, 'nexform');\r\n $c->add('fs_main', NULL, 'fieldset', 0, 0, NULL, 0, true, 'nexform');\r\n $c->add('fs_layout', NULL, 'fieldset', 0, 1, NULL, 0, true, 'nexform');\r\n $c->add('fs_attachments', NULL, 'fieldset', 0, 2, NULL, 0, true, 'nexform');\r\n\r\n $c->add('debug', $CONF_FE_DEFAULT['debug'],\r\n 'select', 0, 0, 0, 5, true, 'nexform');\r\n $c->add('post_url', $CONF_FE_DEFAULT['post_url'],\r\n 'text', 0, 0, NULL, 10, true, 'nexform');\r\n $c->add('public_url', $CONF_FE_DEFAULT['public_url'],\r\n 'text', 0, 0, NULL, 20, true, 'nexform');\r\n $c->add('image_url', $CONF_FE_DEFAULT['image_url'],\r\n 'text', 0, 0, NULL, 30, true, 'nexform');\r\n $c->add('export_dir', $CONF_FE_DEFAULT['export_dir'],\r\n 'text', 0, 0, NULL, 40, true, 'nexform');\r\n $c->add('load_editor',$CONF_FE_DEFAULT['load_editor'],\r\n 'select',0,0,0,50,true,'nexform');\r\n $c->add('fckeditor_toolbar', $CONF_FE_DEFAULT['fckeditor_toolbar'],\r\n 'text', 0, 0, NULL, 60, true, 'nexform');\r\n $c->add('result_summary_fields', $CONF_FE_DEFAULT['result_summary_fields'],\r\n 'text', 0, 0, NULL, 70, true, 'nexform');\r\n\r\n $c->add('field_mandatory_default',$CONF_FE_DEFAULT['field_mandatory_default'],\r\n 'select',0,1,0,100,true,'nexform');\r\n $c->add('defaultattributes',$CONF_FE_DEFAULT['defaultattributes'],'**placeholder',0,1,NULL,110,TRUE,'nexform');\r\n\r\n $c->add('fieldstyles',$CONF_FE_DEFAULT['fieldstyles'],'**placeholder',0,1,NULL,120,TRUE,'nexform');\r\n $c->add('templates',$CONF_FE_DEFAULT['templates'],'**placeholder',0,1,NULL,130,TRUE,'nexform');\r\n\r\n $c->add('field_defaultspacing', $CONF_FE_DEFAULT['field_defaultspacing'],\r\n 'text', 0, 1, NULL, 140, true, 'nexform');\r\n $c->add('field_defaultrightpadding', $CONF_FE_DEFAULT['field_defaultrightpadding'],\r\n 'text', 0, 1, NULL, 150, true, 'nexform');\r\n $c->add('field_defaultlabelpadding', $CONF_FE_DEFAULT['field_defaultlabelpadding'],\r\n 'text', 0, 1, NULL, 160, true, 'nexform');\r\n\r\n\r\n $c->add('uploadpath', $CONF_FE_DEFAULT['uploadpath'],\r\n 'text', 0, 2, NULL, 200, true, 'nexform');\r\n $c->add('downloadURL', $CONF_FE_DEFAULT['downloadURL'],\r\n 'text', 0, 2, NULL, 210, true, 'nexform');\r\n $c->add('max_uploadimage_width', $CONF_FE_DEFAULT['max_uploadimage_width'],\r\n 'text', 0, 2, NULL, 220, true, 'nexform');\r\n $c->add('max_uploadimage_height', $CONF_FE_DEFAULT['max_uploadimage_height'],\r\n 'text', 0, 2, NULL, 230, true, 'nexform');\r\n $c->add('max_uploadfile_size', $CONF_FE_DEFAULT['max_uploadfile_size'],\r\n 'text', 0, 2, NULL, 240, true, 'nexform');\r\n\r\n $c->add('allowablefiletypes',array(\r\n 'application/x-gzip-compressed' => array('.tar.gz' => 1,'.tgz' => 1),\r\n 'application/x-zip-compressed' => array('.zip' => 1),\r\n 'application/x-tar' => array('.tar' => 1),\r\n 'text/plain' => array('.php' => 1,'.txt' => 1),\r\n 'text/html' => array('.html' => 1,'.htm' => 1),\r\n 'image/bmp' => array('.bmp' => 1,'.ico' => 1),\r\n 'image/gif' => array('.gif' => 1),\r\n 'image/png' => array('.png' => 1),\r\n 'image/pjpeg' => array('.jpg' => 1,'.jpeg' => 1),\r\n 'image/jpeg' => array('.jpg' => 1,'.jpeg' => 1),\r\n 'audio/mpeg' => array('.mp3' => 1),\r\n 'audio/wav' => array('.wav' => 1),\r\n 'application/pdf' => array('.pdf' => 1),\r\n 'application/x-shockwave-flash' => array('.swf' => 1),\r\n 'application/msword' => array('.doc' => 1),\r\n 'application/vnd.ms-msexcel' => array('.xls' => 1),\r\n 'application/vnd.ms-powerpoint' => array('.ppt' => 1),\r\n 'application/vnd.ms-project' => array('.mpp' => 1),\r\n 'application/vnd.vision' => array('.vsd' => 1),\r\n 'application/octet-stream' => array('.vsd' => 1,'.fla' => 1, '.psd' => 1, '.pdf' => 1, '.jpg' => 1, '.png' => 1, '.doc' => 1, '.xls' => 1)),\r\n '**placeholder',0,2,NULL,250,TRUE,'nexform');\r\n\r\n\r\n }\r\n\r\n return true;\r\n}", "title": "" }, { "docid": "708514cd54ea3ab6dce8a6ae18775cf7", "score": "0.6685687", "text": "function config_form(&$mform)\t{\n \t \t\n \t \t$this->config_text_element($mform,'mis_misc_fees_table',get_string('ilp_mis_misc_fees_table', 'block_ilp'),get_string('ilp_mis_misc_fees_tabledesc', 'block_ilp'),'');\n \t \t\n \t \t$this->config_text_element($mform,'mis_misc_fees_studentid',get_string('ilp_mis_misc_fees_studentid', 'block_ilp'),get_string('ilp_mis_misc_fees_studentiddesc', 'block_ilp'),'studentID');\n \t \t\n \t \t$this->config_text_element($mform,'mis_misc_fees_totalfees',get_string('ilp_mis_misc_fees_totalfees', 'block_ilp'),get_string('ilp_mis_misc_fees_totalfeesdesc', 'block_ilp'),'totalFees');\n\n \t \t$this->config_text_element($mform,'mis_misc_fees_feesdue',get_string('ilp_mis_misc_fees_feesdue', 'block_ilp'),get_string('ilp_mis_misc_fees_feesduedesc', 'block_ilp'),'feesDue');\n \t \t\n \t \t$this->config_text_element($mform,'mis_misc_fees_totalpaid',get_string('ilp_mis_misc_fees_totalpaid', 'block_ilp'),get_string('ilp_mis_misc_fees_totalpaiddesc', 'block_ilp'),'totalPaid');\n \t \t\n \t \t$this->config_text_element($mform,'mis_misc_fees_outstanding',get_string('ilp_mis_misc_fees_outstanding', 'block_ilp'),get_string('ilp_mis_misc_fees_outstandingdesc', 'block_ilp'),'outstanding');\n \t \t\n \t \t$this->config_text_element($mform,'mis_misc_fees_overdue',get_string('ilp_mis_misc_fees_overdue', 'block_ilp'),get_string('ilp_mis_misc_fees_overduedesc', 'block_ilp'),'overdue');\n\n $this->config_text_element($mform,'mis_misc_fees_prelimcalls',get_string('ilp_mis_misc_fees_prelimcalls', 'block_ilp'),get_string('ilp_mis_misc_fees_prelimcallsdesc', 'block_ilp'),'');\n\n $options = array(\n ILP_DISABLED => get_string('disabled', 'block_ilp'),\n ILP_ENABLED => get_string('enabled', 'block_ilp')\n );\n\n $this->config_select_element($mform, 'mis_misc_fees_yearfilter', $options, get_string('ilp_mis_misc_fees_yearfilter', 'block_ilp'), get_string('ilp_mis_misc_fees_yearfilterdesc', 'block_ilp'), 0);\n\n $this->config_text_element($mform, 'mis_misc_fees_yearfilter_field', get_string('ilp_mis_misc_fees_yearfilter_fielddesc', 'block_ilp'), 'year');\n\n $this->config_text_element($mform, 'mis_misc_fees_yearfilter_year', get_string('ilp_mis_misc_fees_yearfilter_year', 'block_ilp'), get_string('ilp_mis_misc_fees_yearfilter_yeardesc', 'block_ilp'), date('Y'));\n\n\n \t \t$options = array(\n \t\t ILP_IDTYPE_STRING \t=> get_string('stringid','block_ilp'),\n \t\t ILP_IDTYPE_INT\t\t=> get_string('intid','block_ilp') \n \t);\n \t \t\n \t \t$this->config_select_element($mform,'mis_misc_fees_idtype',$options,get_string('idtype', 'block_ilp'),get_string('idtypedesc', 'block_ilp'),1);\n \t \t \t \t\n \t \t\n \t \t$options = array(\n \t\t ILP_MIS_TABLE => get_string('table','block_ilp'),\n \t\t ILP_MIS_STOREDPROCEDURE\t=> get_string('storedprocedure','block_ilp') \n \t);\n \t \t\n \t \t$this->config_select_element($mform,'mis_misc_fees_tabletype',$options,get_string('ilp_mis_misc_fees_tabletype', 'block_ilp'),get_string('ilp_mis_misc_fees_tabletypedesc', 'block_ilp'),1);\n \t \t\n \t \t$options = array(\n \t\tILP_ENABLED => get_string('enabled','block_ilp'),\n \t\tILP_DISABLED => get_string('disabled','block_ilp')\n \t);\n \t\n \t \t$this->config_select_element($mform,'ilp_mis_misc_fees_pluginstatus',$options,get_string('ilp_mis_misc_fees_pluginstatus', 'block_ilp'),get_string('ilp_mis_misc_fees_pluginstatusdesc', 'block_ilp'),0);\n \t \t\n \t }", "title": "" }, { "docid": "415a481eeea7eddcd60966a1b82dd6b0", "score": "0.66708404", "text": "public function get_config_form() {\n die();\n }", "title": "" }, { "docid": "c9b66bc2f088133a336cfdda9517d520", "score": "0.6669942", "text": "public function page_submit_config()\n\t{\n\t\t$data = array();\n\t\tforeach ($_POST AS $key => $value)\n\t\t{\n\t\t\tif (Fsb::$cfg->exists($key) && $value != Fsb::$cfg->get($key))\n\t\t\t{\n\t\t\t\t$data[$key] = $value;\n\t\t\t\tif (method_exists($this, 'get_' . $key))\n\t\t\t\t{\n\t\t\t\t\t$data[$key] = $this->{'get_' . $key}();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Validation des informations\n\t\t$data = $this->config->validate($data, 'config_handler', 'cfg_name', 'cfg_type');\n\n\t\t// Mise a jour dans la base de donnee\n\t\tforeach ($data AS $k => $v)\n\t\t{\n\t\t\tFsb::$cfg->update($k, $v, false);\n\t\t}\n\t\tFsb::$cfg->destroy_cache();\n\n\t\tLog::add(Log::ADMIN, 'config_log_change');\n\t\tDisplay::message('adm_config_well_submit', 'index.' . PHPEXT . '?p=general_config&amp;module=' . $this->module, 'general_config');\n\t}", "title": "" }, { "docid": "d8b63de58d91bf1935a01aceae8cbb6b", "score": "0.66332966", "text": "public function form()\n {\n $this->text('id')->readonly();\n $this->text('key', __('admin.config.key'))->readonly();\n $this->keyValue('value', __('admin.config.value'))->required();\n $this->text('comment', __('admin.config.comment'))->required();\n }", "title": "" }, { "docid": "033a6204a7b825e893dcedbba92517a3", "score": "0.6616701", "text": "public abstract function config_form($preferences);", "title": "" }, { "docid": "c6e8880ba3d3a240ba551e66c878502e", "score": "0.66074014", "text": "private function _displayConfigForm(){\n \n // BASIC CONFIG FORM\n \n $sliderEffects = array(\"sliceDown\",\"sliceDownLeft\",\"sliceUp\",\"sliceUpLeft\",\"sliceUpDown\",\"sliceUpDownLeft\",\"fold\",\"fade\",\"random\",\"slideInRight\",\"slideInLeft\",\"boxRandom\",\"boxRain\",\"boxRainReverse\",\"boxRainGrow\",\"boxRainGrowReverse\");\n \n $this->_output .= '<fieldset><legend>';\n $this->_output .= '<img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'img/t/AdminPreferences.gif\" />'.$this->l('Basic Configuration');\n $this->_output .= '</legend>';\n \n $this->_output .= '<form action=\"'.Tools::safeOutput($_SERVER['REQUEST_URI']).'\" method=\"post\">';\n \n $this->_output .= '<label>'.$this->l('Slider Effect').':</label>';\n $this->_output .= '<div class=\"margin-form\">';\n $this->_output .= '<select name=\"AUTUMN_SLIDER_EFFECT\">';\n \n $selected = Configuration::get('AUTUMN_SLIDER_EFFECT');\n foreach($sliderEffects as $sliderEffect){\n $this->_output .= '<option';\n if ($sliderEffect == $selected){\n $this->_output .= ' selected=\"selected \"';\n }\n $this->_output .= '>' . $sliderEffect . '</option>';\n } \n \n $this->_output .= '</select>';\n $this->_output .= '</div>';\n \n $this->_output .= '<label>'.$this->l('Animation Speed').':</label>';\n $this->_output .= '<div class=\"margin-form\">';\n $this->_output .= '<input type=\"text\" name=\"AUTUMN_SLIDER_ANI_SPEED\" value=\"'.Configuration::get('AUTUMN_SLIDER_ANI_SPEED').'\"> ms';\n $this->_output .= '</div>';\n \n $this->_output .= '<label>'.$this->l('Pause Time').':</label>';\n $this->_output .= '<div class=\"margin-form\">';\n $this->_output .= '<input type=\"text\" name=\"AUTUMN_SLIDER_PAUSE_TIME\" value=\"'.Configuration::get('AUTUMN_SLIDER_PAUSE_TIME').'\"> ms';\n $this->_output .= '</div>';\n \n $this->_output .= '<div class=\"margin-form\">';\n $this->_output .= '<input type=\"submit\" class=\"button\" name=\"saveConfig\" value=\"'.$this->l('Save').'\">';\n $this->_output .= '</div>';\n \n $this->_output .= '</form></fieldset>';\n \n $this->_output .= '<br /><br />';\n \n \n \n // SLIDE LIST\n \n //check if uri has \"lang\" value, if not set it to the prestashop default language\n if (Tools::isSubmit('lang')){\n $lang_id = (int)Tools::getValue('lang');\n }\n else{\n $lang_id = (int)Configuration::get('PS_LANG_DEFAULT');\n }\n \n //get all languages\n $languages = Language::getLanguages(false);\n \n //get the current shop id\n $context = Context::getContext();\n $shop_id = $context->shop->id;\n \n $this->_output .= '<fieldset><legend>';\n $this->_output .= '<img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'img/t/AdminImages.gif\" />'.$this->l('Slides');\n $this->_output .= '</legend>';\n \n //$this->_output .= '<label style=\"float:left;margin-top:4px;\">'.$this->l('Languages:').'</label>';\n //$this->_output .= '<div class=\"margin-form\">';\n $this->_output .= '<table class=\"table tableDnD cms\"><thead><tr>';\n \n //print language links\n foreach ($languages as $language) {\n if ($lang_id == $language['id_lang']){\n $active = 'color:#bf4242\";';\n }\n else{\n $active = '';\n }\n \n \n $flag = '<div class=\"displayed_flag\"><img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'/img/l/'.$language['id_lang'].'.jpg\" class=\"pointer\" id=\"language_'.$language['id_lang'].'\" alt=\"\" /></div>';\n \n $this->_output .= '<th>';\n $this->_output .= $flag;\n $this->_output .= '<a style=\"text-decoration:none;'.$active.'\" href=\"'.AdminController::$currentIndex.'&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules').'&lang='.$language['id_lang'].'\">';\n $this->_output .= $language['name'];\n $this->_output .= '</a>';\n $this->_output .= '&nbsp;&nbsp;';\n $this->_output .= '<a style=\"text-decoration:none;'.$active.'\" href=\"'.AdminController::$currentIndex.'&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules').'&addSlide&lang='.$language['id_lang'].'\">';\n $this->_output .= '<img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'img/admin/add.gif\" title=\"'.$this->l('Add New Slide').'\"/>';\n $this->_output .= '</a>';\n \n $this->_output .= '</th>';\n }\n \n $this->_output .= '</tr></thead></table>';\n //$this->_output .= '</div>';\n \n \n //get the slides\n $slides = $this->_getSlides($lang_id, $shop_id);\n \n if (!$slides){\n $this->_output .= '<br /><br /><strong>'.$this->l('You have not added any slide yet!').'</strong><br /><br />';\n }\n else{\n $this->_output .= '<br /><br />';\n //$this->_output .= '<div class=\"margin-form\">';\n $this->_output .= '<table class=\"table\" cellpadding=0 cellspacing=0 style=\"width:85%;padding:10px;\"><tbody>';\n \n $fe_counter = 1;\n foreach ($slides as $slide) {\n \n $slides_count = count($slides);\n \n if ($slide['is_active'] == \"1\"){\n $stat = \"0\";\n $stat_text = $this->l('Deactivate');\n $stat_title = $this->l('Click here to hide this slide');\n $stat_image = '<img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'modules/'.$this->name.'/assets/img/active.png\" title=\"'.$stat_title.'\"/>';\n }\n else{\n $stat = \"1\";\n $stat_text = $this->l('Activate');\n $stat_title = $this->l('Click here to show this slide');\n $stat_image = '<img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'modules/'.$this->name.'/assets/img/passive.png\" title=\"'.$stat_title.'\"/> ';\n }\n \n $this->_output .= '<tr style=\"background:#fbfbfb;\"><td>';\n $this->_output .= '<img style=\"height:100px;\" src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'modules/'.$this->name.'/slides/'.$slide['image'].'\" />';\n $this->_output .= '</td><td align=\"right\" width=340><div style=\"float:right;\"><div style=\"float:left;margin-right:15px;\">';\n $this->_output .= '<a href=\"'.AdminController::$currentIndex.'&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules').'&changeStat&slideid='.$slide['slide_id'].'&stat='.$stat.'&lang='.$lang_id.'\" title=\"'.$stat_title.'\">';\n $this->_output .= $stat_image.$stat_text.'</a>';\n $this->_output .= '</div><div style=\"float:left;margin-right:15px;\">';\n $this->_output .= '<a title=\"'.$this->l('Edit Slide').'\" href=\"'.AdminController::$currentIndex.'&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules').'&addSlide&slideid='.$slide['slide_id'].'\">';\n $this->_output .= '<img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'img/admin/edit.gif\" title=\"'.$this->l('Edit Slide').'\"/> '.$this->l('Edit').'</a>';\n $this->_output .= '</div><div style=\"float:left;margin-right:25px;\">';\n $this->_output .= '<a title=\"'.$this->l('Delete Slide').'\" href=\"'.AdminController::$currentIndex.'&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules').'&deleteSlide&slideid='.$slide['slide_id'].'\">';\n $this->_output .= '<img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'img/admin/delete.gif\" title=\"'.$this->l('Delete Slide').'\"/> '.$this->l('Delete').'</a>';\n $this->_output .= '</div>';\n \n if ($slides_count > 1){\n if ( $fe_counter == 1 ){\n\n $this->_output .= '<div style=\"float:left;margin-right:40px;\">';\n $this->_output .= '<a href=\"'.AdminController::$currentIndex.'&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules').'&lang='.$lang_id.'&movedown&slideid='.$slide['slide_id'].'\">';\n $this->_output .= '<img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'img/admin/arrow-down.png\" title=\"'.$this->l('Down').'\"/></a>';\n $this->_output .= '</div>';\n\n }else if( $fe_counter == count($slides) ){\n\n $this->_output .= '<div style=\"float:left;margin-right:40px;\">';\n $this->_output .= '<a href=\"'.AdminController::$currentIndex.'&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules').'&lang='.$lang_id.'&moveup&slideid='.$slide['slide_id'].'\">';\n $this->_output .= '<img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'img/admin/arrow-up.png\" title=\"'.$this->l('Up').'\"/></a>';\n $this->_output .= '</div>';\n\n }else{\n\n $this->_output .= '<div style=\"float:left;margin-right:5px;\">';\n $this->_output .= '<a href=\"'.AdminController::$currentIndex.'&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules').'&lang='.$lang_id.'&moveup&slideid='.$slide['slide_id'].'\">';\n $this->_output .= '<img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'img/admin/arrow-up.png\" title=\"'.$this->l('Up').'\"/></a>';\n $this->_output .= '</div>';\n\n $this->_output .= '<div style=\"float:left;margin-right:15px;\">';\n $this->_output .= '<a href=\"'.AdminController::$currentIndex.'&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules').'&lang='.$lang_id.'&movedown&slideid='.$slide['slide_id'].'\">';\n $this->_output .= '<img src=\"'._PS_BASE_URL_.__PS_BASE_URI__.'img/admin/arrow-down.png\" title=\"'.$this->l('Down').'\"/></a>';\n $this->_output .= '</div>';\n } \n }\n \n \n $this->_output .= '<div style=\"float:left;margin-right:15px;\">';\n $this->_output .= $slide['position']; \n $this->_output .= '</div>';\n \n $this->_output .= '</div></div></td></tr>';\n $fe_counter++;\n \n }\n $this->_output .= '</tbody></table>';\n //$this->_output .= '</div>';\n \n //$this->_output .= '<div class=\"margin-form\">';\n $this->_output .= '<br />';\n $this->_output .= '<p><h3>'.$this->l('Notes:').'</h3></p>';\n $this->_output .= '<p> &bull; '.$this->l('Deleting the slide does not delete the image file from the server. After delete the slide here, you have to manually delete the image from \"modules/autumnslider/slides\" directory.').'</p>';\n //$this->_output .= '</div>';\n }\n \n $this->_output .= '</fieldset>';\n $this->_output .= '<br /><br />';\n }", "title": "" }, { "docid": "ff6b874ad212ca6db16d3e817cbe1e53", "score": "0.65984166", "text": "function edit_component_tool_configfiles_configfile(&$form) {\n // use current time as form_key to enable webform component clone.\n $form['form_key']['#default_value'] = 'form_key_' . time();\n\n unset($form['validation']);\n unset($form['display']);\n\n $form = array_merge($form, get_edit_component_base_form_elements($form, 'configfile'));\n\n // form field to edit attributes, available attributes for command includes:\n $form['extra']['attributes']['name'] = [\n '#type' => 'textfield',\n '#title' => t('Name'),\n '#description' => t('Cheetah variable used to reference the path to the file \n created with this directive.'),\n ];\n $form['extra']['attributes']['XML_VALUE'] = [\n '#type' => 'textarea',\n '#title' => t('XML value'),\n '#description' => t('The value will be placed within the XML tag pair.'),\n ];\n\n // grab populated data from 'extra' column from webform_component table and\n // fill it as default values for edit component form fields.\n edit_component_form_fields_default_value($form);\n}", "title": "" }, { "docid": "1a31e99cb8a26dc50fbef3af58892ce8", "score": "0.65926325", "text": "private function setupFields(){\n $coreModelConfig = new Mage_Core_Model_Config();\n\n //business name\n $value = Mage::getStoreConfig($this->signup_config_prefix . 'businessname');\n $coreModelConfig->saveConfig($this->account_detail_config_prefix . 'business_name', $value, 'default', 0);\n\n //website\n $value = Mage::getStoreConfig($this->signup_config_prefix . 'website');\n $coreModelConfig->saveConfig($this->account_detail_config_prefix . 'website', $value, 'default', 0);\n\n //email\n if( $this->isLoginIn() ){\n $value = Mage::getStoreConfig($this->login_config_prefix . 'email');\n }else{\n $value = Mage::getStoreConfig($this->contact_billing_config_prefix . 'email');\n }\n $coreModelConfig->saveConfig($this->account_detail_config_prefix . 'email_address', $value, 'default', 0);\n\n //phone\n $value = Mage::getStoreConfig($this->contact_billing_config_prefix . 'phone');\n $coreModelConfig->saveConfig($this->account_detail_config_prefix . 'phone', $value, 'default', 0);\n\n //donation\n $value = Mage::getStoreConfig($this->donation_config_prefix . 'donation_percentage');\n $coreModelConfig->saveConfig($this->settings_config_prefix . 'donation', $value, 'default', 0);\n }", "title": "" }, { "docid": "af04bf42369c4928f3f20931d7285091", "score": "0.6589576", "text": "protected function getConfigForm()\n {\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Settings'),\n 'icon' => 'icon-cogs',\n ),\n 'input' => array(\n array(\n 'type' => 'switch',\n 'label' => $this->l('Live mode'),\n 'name' => 'MYCONFIGURATOR_LIVE_MODE',\n 'is_bool' => true,\n 'desc' => $this->l('Use this module in live mode'),\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Enabled')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('Disabled')\n )\n ),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-envelope\"></i>',\n 'desc' => $this->l('Enter a valid email address'),\n 'name' => 'MYCONFIGURATOR_ACCOUNT_EMAIL',\n 'label' => $this->l('Email'),\n ),\n array(\n 'type' => 'password',\n 'name' => 'MYCONFIGURATOR_ACCOUNT_PASSWORD',\n 'label' => $this->l('Password'),\n ),\n ),\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n ),\n );\n }", "title": "" }, { "docid": "7c638aba6c46aa5b8a994ed6c7fcab17", "score": "0.6580511", "text": "function _setInputField($n){\n global $tpl, $aPMConfig;\n \n $rtn = $t = '';\n $p = array();\n if(preg_match('/^([^\\(]+)(\\([^\\)]*\\))?$/',$this->aC[$n]['type'],$m)>0){\n $t = $m[1]; $p = isset($m[2]) ? explode(',',trim($m[2],'( )')) : array();\n }\n for($i=0;$i<count($p);$i++){ $p[$i] = explode('=',trim($p[$i])); if(!isset($p[$i][1])) $p[$i][1]=''; }\n $aPMConfig['sFid'] = $n;\n $aPMConfig['sAlt'] = $this->aC[$n]['alt'];\n $aPMConfig['sDisabled'] = ($this->aC[$n]['disable']===true) ? \"disabled='disabled'\" : '';\n switch($t){\n case 'checkbox':\n $aPMConfig['sFid'] .= \"[]\";\n for($i=0;$i<count($p);$i++){\n $aPMConfig['sLabel'] = $p[$i][1];\n $aPMConfig['sValue'] = $p[$i][0];\n $aPMConfig['sPicked'] = in_array( $p[$i][0], $this->aC[$n]['value'] ) ? \"checked='checked'\" : '';\n $rtn .= $tpl->tbHtml( $this->sTemplate, 'PLUGINS_CONFIG_CHECKBOX' );\n }\n break;\n case 'radio':\n for($i=0;$i<count($p);$i++){\n $aPMConfig['sLabel'] = $p[$i][1];\n $aPMConfig['sValue'] = $p[$i][0];\n $aPMConfig['sPicked'] = $p[$i][0] == $this->aC[$n]['value'] ? \"checked='checked'\" : '';\n $rtn .= $tpl->tbHtml( $this->sTemplate, 'PLUGINS_CONFIG_RADIO' );\n }\n break;\n case 'select':\n $rtn .= $tpl->tbHtml( $this->sTemplate, 'PLUGINS_CONFIG_SELECT_START' );\n for($i=0;$i<count($p);$i++){\n $aPMConfig['sLabel'] = $p[$i][1] != '' ? $p[$i][1] : $p[$i][0];\n $aPMConfig['sValue'] = $p[$i][0];\n $aPMConfig['sPicked'] = $p[$i][0] == $this->aC[$n]['value'] ? \"selected='selected'\" : '';\n $rtn .= $tpl->tbHtml( $this->sTemplate, 'PLUGINS_CONFIG_SELECT_OPTION' );\n }\n $rtn .= $tpl->tbHtml( $this->sTemplate, 'PLUGINS_CONFIG_SELECT_END' );\n break;\n case 'textarea':\n $aPMConfig['sRows'] = isset($p[0][0]) ? $p[0][0] : 4;\n $aPMConfig['sCols'] = isset($p[1][0]) ? $p[1][0] : 40;\n $aPMConfig['sValue'] = htmlspecialchars($this->aC[$n]['value']);\n $rtn .= $tpl->tbHtml( $this->sTemplate, 'PLUGINS_CONFIG_TEXTAREA' );\n break;\n case 'input':\n default:\n $aPMConfig['sSize'] = isset($p[0][0]) ? $p[0][0] : 50;\n $aPMConfig['sValue'] = htmlspecialchars($this->aC[$n]['value']);\n $rtn .= $tpl->tbHtml( $this->sTemplate, 'PLUGINS_CONFIG_INPUT' );\n }\n unset($m); unset($p); unset($t);\n return $rtn;\n }", "title": "" }, { "docid": "545177d03d37cb4601c8cbe7d076122d", "score": "0.6572407", "text": "function process_config($config)\n {\n if ($data = data_submitted() and confirm_sesskey()) {\n\n if (admin_write_settings($data)) {\n $statusmsg = get_string('changessaved');\n }\n }\n return true;\n // set to defaults if undefined\n if (!isset($config->hostname)) {\n $config->hostname = 'http://';\n } else {\n // remove trailing slash\n $config->hostname = rtrim($config->hostname, '/');\n }\n if (!isset($config->endpoint)) {\n $config->endpoint = '';\n } else {\n if ((substr($config->endpoint, 0, 1) != '/')) {\n //no preceding slash! Add one!\n $config->endpoint = '/' . $config->endpoint;\n }\n // remove trailing slash\n $config->endpoint = rtrim($config->endpoint, '/');\n }\n if (!isset($config->remote_user)) {\n $config->remote_user = '';\n }\n if (!isset($config->remote_pw)) {\n $config->remote_pw = '';\n }\n if (!isset($config->removeuser)) {\n $config->removeuser = AUTH_REMOVEUSER_KEEP;\n }\n if (!isset($config->cohorts)) {\n $config->cohorts = 0;\n }\n if (!isset($config->cohort_view)) {\n $config->cohort_view = '';\n }\n // Lock the idnumber as this is the drupal uid number\n // NOT WORKING!\n $config->field_lock_idnumber = 'locked';\n // save settings\n set_config('hostname', $config->hostname, 'auth_drupalservices');\n set_config('cookiedomain', $config->cookiedomain, 'auth_drupalservices');\n set_config('endpoint', $config->endpoint, 'auth_drupalservices');\n set_config('remote_user', $config->remote_user, 'auth_drupalservices');\n set_config('remote_pw', $config->remote_pw, 'auth_drupalservices');\n set_config('cohorts', $config->cohorts, 'auth_drupalservices');\n set_config('cohort_view', $config->cohort_view, 'auth_drupalservices');\n set_config('removeuser', $config->removeuser, 'auth_drupalservices');\n set_config('field_lock_idnumber', $config->field_lock_idnumber, 'auth_drupalservices');\n return true;\n }", "title": "" }, { "docid": "0c709fc2850b8b742a31b7181034a418", "score": "0.64586145", "text": "protected function getConfigForm()\n {\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Settings'),\n 'icon' => 'icon-cogs',\n ),\n 'input' => array(\n array(\n 'type' => 'switch',\n 'label' => $this->l('Live mode'),\n 'name' => 'PS_CITIES_LIVE_MODE',\n 'is_bool' => true,\n 'desc' => $this->l('Use this module in live mode'),\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Enabled')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('Disabled')\n )\n ),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-envelope\"></i>',\n 'desc' => $this->l('Enter a valid email address'),\n 'name' => 'PS_CITIES_ACCOUNT_EMAIL',\n 'label' => $this->l('Email'),\n ),\n array(\n 'type' => 'password',\n 'name' => 'PS_CITIES_ACCOUNT_PASSWORD',\n 'label' => $this->l('Password'),\n ),\n ),\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n ),\n );\n }", "title": "" }, { "docid": "5fceab3fa53675f784e70df1b761c9b3", "score": "0.6456163", "text": "public function createConfiguration()\n {\n $form = $this->Form();\n $form->setElement('text', 'site_token',\n array(\n 'label' => 'Site Token',\n 'description' => 'Ihr Site Token von stetic.com',\n 'required' => true\n )\n );\n\n $form->setElement('boolean', 'identifyLoggedin',\n array('label' => 'Eingeloggte Benutzer identifizieren', 'value' => true)\n );\n\n $form->setElement('boolean', 'userMustAllowidentify',\n array(\n 'label' => 'Einwilligung zur Identifizierung bei Registrierung', \n 'description' => 'Wenn Sie diese Option aktivieren, wird dem Benutzer bei Registierung eine Checkbox angezeigt, über die er der Nutzung personenbezogener Daten zur Webanalyse zustimmen kann. Der Text kann über einen Textbaustein in der Registrierung angepasst werden.',\n 'value' => false)\n );\n\n $form->setElement('boolean', 'cartTracking',\n array('label' => 'Warenkorb Tracking', 'value' => true)\n );\n\n $form->setElement('boolean', 'orderTracking',\n array(\n 'label' => 'Order Tracking', \n 'description' => 'Erforderlich für E-Commerce Analytics.',\n 'value' => true\n )\n );\n\n $form->setElement('boolean', 'wishlistTracking',\n array(\n 'label' => 'Wishlist Tracking', \n 'value' => true\n )\n );\n\n\n $form->setElement('boolean', 'productReviewTracking',\n array(\n 'label' => 'Product Review Tracking', \n 'value' => true\n )\n );\n\n $form->setElement('boolean', 'productCompareTracking',\n array(\n 'label' => 'Product Compare Tracking', \n 'value' => true\n )\n );\n\n $form->setElement('boolean', 'sendfriendTracking',\n array(\n 'label' => 'Tell a friend Tracking', \n 'value' => true\n )\n );\n\n $form->setElement('boolean', 'searchTracking',\n array(\n 'label' => 'Search Tracking', \n 'value' => true\n )\n );\n\n $form->setElement('boolean', 'contactFormTracking',\n array(\n 'label' => 'Contact form Tracking', \n 'value' => true\n )\n );\n\n $form->setElement('boolean', 'newsletterTracking',\n array(\n 'label' => 'Newsletter Tracking', \n 'value' => true\n )\n );\n\n $form->setElement('boolean', 'accountCreateTracking',\n array(\n 'label' => 'Account Register Tracking', \n 'value' => true\n )\n );\n\n $form->setElement('boolean', 'loginTracking',\n array(\n 'label' => 'Login Tracking', \n 'value' => true\n )\n );\n\n $form->setElement('boolean', 'forgotPasswordTracking',\n array(\n 'label' => 'Forgot Password Tracking', \n 'value' => true\n )\n );\n\n $shopRepository = Shopware()->Models()->getRepository('\\Shopware\\Models\\Shop\\Locale');\n \n $translations = array\n (\n 'en_GB' => array(\n 'site_token' => array(\"label\" => \"Site Token\", \"description\" => \"Your Site Token from stetic.com\"),\n 'identifyLoggedin' => array(\"label\" => \"Identify logged in users\", \"description\" => \"Required for Ecommerce Analytics.\"),\n 'userMustAllowidentify' => array(\"label\" => \"Agreement of identifying on registration\", \"description\" => \"If you activate this option, a checkbox appears in the user registration, on which the user can agree to the use of personal data for Web Analytics. The text can be adjusted via snippets.\"),\n ),\n );\n\n foreach($translations as $locale => $snippets)\n {\n $localeModel = $shopRepository->findOneBy(array(\n 'locale' => $locale\n ));\n\n if($localeModel === null)\n {\n continue;\n }\n\n foreach($snippets as $element => $snippet)\n {\n $elementModel = $form->getElement($element);\n\n if($elementModel === null)\n {\n continue;\n }\n\n $translationModel = new \\Shopware\\Models\\Config\\ElementTranslation();\n $translationModel->setLabel($snippet['label']);\n $translationModel->setDescription($snippet['description']);\n $translationModel->setLocale($localeModel);\n\n $elementModel->addTranslation($translationModel);\n\n }\n }\n\n }", "title": "" }, { "docid": "34d4b335f7259287dfa59c189581bbe4", "score": "0.64451677", "text": "function config_form($config, $err, $user_fields) {\n include 'config.html';\n\n }", "title": "" }, { "docid": "c7dba09adb0293b06d768cfe425a7ef0", "score": "0.64061093", "text": "protected function getConfigForm()\n {\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Settings'),\n 'icon' => 'icon-cogs',\n ),\n 'input' => array(\n array(\n 'type' => 'switch',\n 'label' => $this->l('Production mode'),\n 'name' => 'COCOLIS_LIVE_MODE',\n 'is_bool' => true,\n 'desc' => $this->l('Use this module in development (sandbox) or production mode?'),\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Production mode enabled')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('Production mode disabled')\n )\n ),\n ),\n array(\n 'type' => 'switch',\n 'label' => $this->l('Debug mode'),\n 'name' => 'COCOLIS_DEBUG_MODE',\n 'is_bool' => true,\n 'desc' => $this->l('In case of problems you can activate this option to help the Cocolis development team to solve anomalies'),\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Debug mode enabled')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('Debug mode disabled')\n )\n ),\n ),\n array(\n 'col' => 1,\n 'type' => 'text',\n 'name' => 'COCOLIS_WIDTH',\n 'label' => $this->l('Average width (in cm)'),\n ),\n array(\n 'col' => 1,\n 'type' => 'text',\n 'name' => 'COCOLIS_HEIGHT',\n 'label' => $this->l('Average height (in cm)'),\n ),\n array(\n 'col' => 1,\n 'type' => 'text',\n 'name' => 'COCOLIS_LENGTH',\n 'label' => $this->l('Average length (in cm)'),\n 'desc' => $this->l(\"Permet de calculer les frais en l'absence du volume renseigné \n dans la fiche produit\")\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'name' => 'COCOLIS_ADDRESS',\n 'label' => $this->l('Your address'),\n ),\n array(\n 'col' => 1,\n 'type' => 'text',\n 'name' => 'COCOLIS_ZIP',\n 'label' => $this->l('Your postal code'),\n ),\n array(\n 'col' => 1,\n 'type' => 'text',\n 'name' => 'COCOLIS_CITY',\n 'label' => $this->l('Your city'),\n ),\n array(\n 'col' => 1,\n 'type' => 'text',\n 'name' => 'COCOLIS_COUNTRY',\n 'label' => $this->l('Your country'),\n ),\n array(\n 'col' => 4,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-terminal\"></i>',\n 'desc' => $this->l(\"Enter the app-id provided to you\"),\n 'name' => 'COCOLIS_APPID',\n 'label' => $this->l(\"Application ID\"),\n ),\n array(\n 'type' => 'password',\n 'name' => 'COCOLIS_PASSWORD',\n 'label' => $this->l('Password'),\n )\n ),\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n ),\n );\n }", "title": "" }, { "docid": "537ce7da61419a1b9a65da022578a8da", "score": "0.6399496", "text": "function edit_config($widget){\n\t\t$CI =& get_instance();\n\t\tif(is_string($widget)){\n\t\t\tif(!isset($this->widgets[$widget])) return;\n\t\t\telse $widget =& $this->widgets[$widget];\n\t\t}\n\t\t$config = @file_get_contents($widget['config_path']);\n\t\tif(!$config){\n\t\t title(t('!widgets '.$widget['name']));\n\t\t info(t('!sidebar no_config'));\n\t\t}\n\t\telse {\n\t\t\t$CI->form->set('widget_config')\n\t\t\t->title('!widgets '.$widget['name'],FALSE,FALSE,TRUE)\n\t\t\t->textarea('params',array('validation'=>'required','js_validation'=>'required','value'=>$config))\n\t\t\t->buttons('save');\n\t\t\tif($result = $CI->form->result()){\n\t\t\t\tif(@file_put_contents($widget['config_path'],$result['params'])){\n\t\t\t\t\tmsg('!form saved');\n\t\t\t\t}\n\t\t\t\telse msg('!form saved_failure',FALSE);\n\t\t\t}\n\t\t\t$CI->form->set_values($result)->compile();\n\t\t}\n\t}", "title": "" }, { "docid": "0e13cbafb1a98b56ce5de89e39071e2e", "score": "0.6377717", "text": "protected function configAction() {\n\t\t$config = $this->_configMapper->getConfigParams();\n\n\t\t$form = new Forms_Config();\n\t\tif ($this->_request->isPost()) {\n\t\t\tif ($form->isValid($this->_requestedParams)) {\n\t\t\t\tforeach ($form->getValues() as $key => $subFormValues) {\n\t\t\t\t\t$this->_configMapper->save($subFormValues);\n\t\t\t\t}\n\t\t\t\t$this->_jsonHelper->direct($form->getValues());\n\t\t\t} else {\n\t\t\t\t$this->_jsonHelper->direct($form->getMessages());\n\t\t\t}\n\t\t}\n\t\t$form->populate($config);\n\t\t$this->_view->form = $form;\n\t\t$this->_view->configTabs = Tools_Plugins_Tools::getEcommerceConfigTabs();\n\t\t$this->_layout->content = $this->_view->render('config.phtml');\n\t\t$this->_layout->sectionId = Tools_Misc::SECTION_STORE_CONFIG;\n\t\techo $this->_layout->render();\n\t}", "title": "" }, { "docid": "b20ce14f2763b635688629974a5db5a7", "score": "0.6372689", "text": "protected function getConfigForm()\n {\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Settings'),\n 'icon' => 'icon-cogs'\n ),\n 'input' => array(\n array(\n 'type' => 'textarea',\n 'name' => 'UEBIX_MINIMALPURCHASE_TEXT',\n 'label' => $this->l('Message'),\n 'desc' => $this->l('Enter a valid text message. Use %amount% placeholder for the minimal purchase total, %total% for the current cart total and %discounts% for the current discounts total in cart.'),\n 'lang' => true,\n 'cols' => 60,\n 'rows' => 5\n ),\n array(\n 'type' => 'text',\n 'name' => 'UEBIX_VOUCHER_STARTSEQ',\n 'label' => $this->l('Initial characters sequence of the voucher'),\n 'desc' => $this->l('If a discount voucher starts with this character sequence, the order total will be calculated without discount codes.')\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-eur\"></i>',\n 'desc' => $this->l('Minimum purchase total required in order to validate the order'),\n 'name' => 'PS_PURCHASE_MINIMUM',\n 'label' => $this->l('Minimum purchase total')\n )\n ),\n 'submit' => array(\n 'title' => $this->l('Save')\n )\n )\n );\n }", "title": "" }, { "docid": "284b2f6b741a8c3925b2f5183ba3fe70", "score": "0.6356465", "text": "function config_form(&$mform)\n {\n\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_table', get_string('ilp_mis_learner_skillsbuilder_table', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_tabledesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_studentid', get_string('ilp_mis_learner_skillsbuilder_studentid', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_studentiddesc', 'block_ilp'), '');\n\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_forskills_id', get_string('ilp_mis_learner_skillsbuilder_forskills_id', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_forskills_iddesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_first_name', get_string('ilp_mis_learner_skillsbuilder_first_name', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_first_namedesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_last_name', get_string('ilp_mis_learner_skillsbuilder_last_name', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_last_namedesc', 'block_ilp'), '');\n /*\n * studentid does this.\n * $this->config_text_element($mform, 'mis_learner_skillsbuilder_learner_ref', get_string('ilp_mis_learner_skillsbuilder_learner_ref', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_learner_refdesc', 'block_ilp'), '');\n */\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_date_enrolled_engish', get_string('ilp_mis_learner_skillsbuilder_date_enrolled_engish', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_date_enrolled_engishdesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_date_completed_eng_ia', get_string('ilp_mis_learner_skillsbuilder_date_completed_eng_ia', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_date_completed_eng_iadesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_eng_ia_level', get_string('ilp_mis_learner_skillsbuilder_eng_ia_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_eng_ia_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_eng_ia_reading_level', get_string('ilp_mis_learner_skillsbuilder_eng_ia_reading_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_eng_ia_reading_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_eng_ia_punctuation_level', get_string('ilp_mis_learner_skillsbuilder_eng_ia_punctuation_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_eng_ia_punctuation_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_eng_ia_spelling_level', get_string('ilp_mis_learner_skillsbuilder_eng_ia_spelling_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_eng_ia_spelling_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_eng_ia_grammar_level', get_string('ilp_mis_learner_skillsbuilder_eng_ia_grammar_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_eng_ia_grammar_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_date_enrolled_maths', get_string('ilp_mis_learner_skillsbuilder_date_enrolled_maths', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_date_enrolled_mathsdesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_date_completed_mat_ia', get_string('ilp_mis_learner_skillsbuilder_date_completed_mat_ia', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_date_completed_mat_iadesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_mat_ia_level', get_string('ilp_mis_learner_skillsbuilder_mat_ia_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_mat_ia_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_mat_ia_numer_level', get_string('ilp_mis_learner_skillsbuilder_mat_ia_numer_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_mat_ia_numer_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_mat_ia_hd_level', get_string('ilp_mis_learner_skillsbuilder_mat_ia_hd_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_mat_ia_hd_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_mat_ia_mss_level', get_string('ilp_mis_learner_skillsbuilder_mat_ia_mss_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_mat_ia_mss_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_date_completed_eng_diag', get_string('ilp_mis_learner_skillsbuilder_date_completed_eng_diag', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_date_completed_eng_diagdesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_eng_diag_level', get_string('ilp_mis_learner_skillsbuilder_eng_diag_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_eng_diag_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_date_completed_mat_diag', get_string('ilp_mis_learner_skillsbuilder_date_completed_mat_diag', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_date_completed_mat_diagdesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_mat_diag_level', get_string('ilp_mis_learner_skillsbuilder_mat_diag_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_mat_diag_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_date_enrolled_ict', get_string('ilp_mis_learner_skillsbuilder_date_enrolled_ict', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_date_enrolled_ictdesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_date_completed_ict', get_string('ilp_mis_learner_skillsbuilder_date_completed_ict', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_date_completed_ictdesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_ict_diag_level', get_string('ilp_mis_learner_skillsbuilder_ict_diag_level', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_ict_diag_leveldesc', 'block_ilp'), '');\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_enrolled_to_site', get_string('ilp_mis_learner_skillsbuilder_enrolled_to_site', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_enrolled_to_sitedesc', 'block_ilp'), '');\n\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_prelimcalls', get_string('ilp_mis_learner_skillsbuilder_prelimcalls', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_prelimcallsdesc', 'block_ilp'), '');\n\n $options = array(\n ILP_DISABLED => get_string('disabled', 'block_ilp'),\n ILP_ENABLED => get_string('enabled', 'block_ilp')\n );\n\n $this->config_select_element($mform, 'mis_learner_skillsbuilder_yearfilter', $options, get_string('ilp_mis_learner_skillsbuilder_yearfilter', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_yearfilterdesc', 'block_ilp'), 0);\n\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_yearfilter_field', get_string('ilp_mis_learner_skillsbuilder_yearfilter_field', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_yearfilter_fielddesc', 'block_ilp'), 'year');\n\n $this->config_text_element($mform, 'mis_learner_skillsbuilder_yearfilter_year', get_string('ilp_mis_learner_skillsbuilder_yearfilter_year', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_yearfilter_yeardesc', 'block_ilp'), date('Y'));\n\n\n $options = array(\n ILP_IDTYPE_STRING => get_string('stringid', 'block_ilp'),\n ILP_IDTYPE_INT => get_string('intid', 'block_ilp')\n );\n\n $this->config_select_element($mform, 'mis_learner_skillsbuilder_idtype', $options, get_string('idtype', 'block_ilp'), get_string('idtypedesc', 'block_ilp'), 1);\n\n\n $options = array(\n ILP_MIS_TABLE => get_string('table', 'block_ilp'),\n ILP_MIS_STOREDPROCEDURE => get_string('storedprocedure', 'block_ilp')\n );\n\n $this->config_select_element($mform, 'mis_learner_skillsbuilder_tabletype', $options, get_string('ilp_mis_learner_skillsbuilder_tabletype', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_tabletypedesc', 'block_ilp'), 1);\n\n $options = array(\n ILP_ENABLED => get_string('enabled', 'block_ilp'),\n ILP_DISABLED => get_string('disabled', 'block_ilp')\n );\n\n $this->config_select_element($mform, 'ilp_mis_learner_skillsbuilder_pluginstatus', $options, get_string('ilp_mis_learner_skillsbuilder_pluginstatus', 'block_ilp'), get_string('ilp_mis_learner_skillsbuilder_pluginstatusdesc', 'block_ilp'), 0);\n }", "title": "" }, { "docid": "5d5bf7e54244a6f83728a1c3aa378276", "score": "0.6356094", "text": "protected function getConfigForm()\n {\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Settings'),\n 'icon' => 'icon-cogs',\n ),\n 'input' => array(\n array(\n 'col' => 3,\n 'type' => 'text',\n 'desc' => $this->l('Enter a valid Monetivo login'),\n 'name' => 'MONETIVO_LOGIN',\n 'label' => $this->l('Monetivo login'),\n ),\n array(\n 'col' => 3,\n 'type' => 'password',\n 'desc' => $this->l('Enter a valid Monetivo password'),\n 'name' => 'MONETIVO_PASSWORD',\n 'label' => $this->l('Monetivo Password'),\n ),\n array(\n 'col' => 5,\n 'type' => 'text',\n 'desc' => $this->l('Enter a valid Monetivo token'),\n 'name' => 'MONETIVO_APP_TOKEN',\n 'label' => $this->l('Monetivo token'),\n ),\n ),\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n ),\n );\n }", "title": "" }, { "docid": "94f6d7d7d7203d6cf7279734e860b1f8", "score": "0.6355906", "text": "public function dlgConfig() {\n \tglobal $parser;\n \tglobal $dbWScfg;\n\t\t$SQL = sprintf(\t\"SELECT * FROM %s WHERE NOT %s='%s' ORDER BY %s\",\n\t\t\t\t\t\t\t\t\t\t$dbWScfg->getTableName(),\n\t\t\t\t\t\t\t\t\t\tdbWatchSiteCfg::field_status,\n\t\t\t\t\t\t\t\t\t\tdbWatchSiteCfg::status_deleted,\n\t\t\t\t\t\t\t\t\t\tdbWatchSiteCfg::field_name);\n\t\t$config = array();\n\t\tif (!$dbWScfg->sqlExec($SQL, $config)) {\n\t\t\t$this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $dbWScfg->getError()));\n\t\t\treturn false;\n\t\t}\n\t\t$count = array();\n\t\t$items = sprintf(\t'<tr><th>%s</th><th>%s</th><th>%s</th></tr>',\n\t\t\t\t\t\t\t\t\t\t\tws_header_cfg_identifier,\n\t\t\t\t\t\t\t\t\t\t\tws_header_cfg_value,\n\t\t\t\t\t\t\t\t\t\t\tws_header_cfg_description );\n\t\t$row = '<tr><td>%s</td><td>%s</td><td>%s</td></tr>';\n\t\t// bestehende Eintraege auflisten\n\t\tforeach ($config as $entry) {\n\t\t\t$id = $entry[dbWatchSiteCfg::field_id];\n\t\t\t$count[] = $id;\n\t\t\t$label = constant($entry[dbWatchSiteCfg::field_label]);\n\t\t\t(isset($_REQUEST[dbWatchSiteCfg::field_value.'_'.$id])) ?\n\t\t\t\t$val = $_REQUEST[dbWatchSiteCfg::field_value.'_'.$id] :\n\t\t\t\t$val = $entry[dbWatchSiteCfg::field_value];\n\t\t\t\t// Hochkommas maskieren\n\t\t\t\t$val = str_replace('\"', '&quot;', stripslashes($val));\n\t\t\t$value = sprintf(\t'<input type=\"text\" name=\"%s_%s\" value=\"%s\" />', dbWatchSiteCfg::field_value, $id,\t$val);\n\t\t\t$desc = constant($entry[dbWatchSiteCfg::field_description]);\n\t\t\t$items .= sprintf($row, $label, $value, $desc);\n\t\t}\n\t\t$items_value = implode(\",\", $count);\n\t\t// Mitteilungen anzeigen\n\t\tif ($this->isMessage()) {\n\t\t\t$intro = sprintf('<div class=\"message\">%s</div>', $this->getMessage());\n\t\t}\n\t\telse {\n\t\t\t$intro = sprintf('<div class=\"intro\">%s</div>', ws_intro_cfg);\n\t\t}\n\t\t$data = array(\n\t\t\t'form_name'\t\t\t\t\t\t=> 'konfiguration',\n\t\t\t'form_action'\t\t\t\t\t=> $this->page_link,\n\t\t\t'action_name'\t\t\t\t\t=> self::request_action,\n\t\t\t'action_value'\t\t\t\t=> self::action_config_check,\n\t\t\t'items_name'\t\t\t\t\t=> self::request_items,\n\t\t\t'items_value'\t\t\t\t\t=> $items_value,\n\t\t\t'header'\t\t\t\t\t\t\t=> ws_header_cfg,\n\t\t\t'intro'\t\t\t\t\t\t\t\t=> $intro,\n\t\t\t'items'\t\t\t\t\t\t\t\t=> $items,\n\t\t\t'btn_ok'\t\t\t\t\t\t\t=> ws_btn_ok,\n\t\t\t'btn_abort'\t\t\t\t\t\t=> ws_btn_abort,\n\t\t\t'abort_location'\t\t\t=> $this->page_link\n\t\t);\n\t\treturn $parser->get($this->template_path.'backend.cfg.htt', $data);\n\t}", "title": "" }, { "docid": "b95714f520bb009d43c8ecf6c7a56961", "score": "0.63525504", "text": "protected function getConfigForm()\n {\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Settings'),\n 'icon' => 'icon-cogs',\n ),\n\n 'input' => array(\n\n array(\n 'col' => 3,\n 'type' => 'text',\n 'required' => true,\n 'desc' => $this->l('Enter a Lat Ex: 40.40926169999999'),\n 'name' => 'MYMODULE_LOCATION_LAT',\n 'hint' => $this->l('Invalid characters:').' <>;=#{}',\n 'label' => $this->l('Lat'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'required' => true,\n 'desc' => $this->l('Enter a Lng Ex: 49.86709240000005'),\n 'name' => 'MYMODULE_LOCATION_LNG',\n 'hint' => $this->l('Invalid characters:').' <>;=#{}',\n 'label' => $this->l('Lng'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'required' => true,\n 'desc' => $this->l('Enter a icon '),\n 'name' => 'MYMODULE_LOCATION_ICON',\n 'hint' => $this->l('Invalid characters:').' <>;=#{}',\n 'label' => $this->l('Icon'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'required' => true,\n 'desc' => $this->l('Enter a center location Lat Ex: 40.100'),\n 'name' => 'MYMODULE_LOCATION_CENTER_LAT',\n 'hint' => $this->l('Invalid characters:').' <>;=#{}',\n 'label' => $this->l('Center Lng'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'required' => true,\n 'desc' => $this->l('Enter a center location Lng Ex: 47.500'),\n 'name' => 'MYMODULE_LOCATION_CENTER_LNG',\n 'hint' => $this->l('Invalid characters:').' <>;=#{}',\n 'label' => $this->l('Center Lat'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'required' => true,\n 'desc' => $this->l('Enter a map zoom'),\n 'name' => 'MYMODULE_LOCATION_ZOOM',\n 'hint' => $this->l('Invalid characters:').' <>;=#{}',\n 'label' => $this->l('Zoom'),\n ),\n ),\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n ),\n );\n\n }", "title": "" }, { "docid": "4054b6629a4b6868d0d227e861057bbf", "score": "0.6301807", "text": "function process_config($config) {\n // Set to defaults if undefined.\n \tif (!isset ($config->googleclientid)) {\n \t\t$config->googleclientid = '';\n \t}\n \tif (!isset ($config->googleclientsecret)) {\n \t\t$config->googleclientsecret = '';\n \t}\n \tif (!isset ($config->createuser)) {\n \t\t$config->createuser = '';\n \t}\n \tif (!isset($config->domain)) {\n \t\t$config->domain = '';\n \t}\n\n // Save settings.\n set_config('googleclientid', $config->googleclientid, self::COMPONENT_NAME);\n set_config('googleclientsecret', $config->googleclientsecret, self::COMPONENT_NAME);\n set_config('createuser', $config->createuser, self::COMPONENT_NAME);\n set_config('domain', $config->domain, self::COMPONENT_NAME);\n \n return true;\n }", "title": "" }, { "docid": "5e0f9b89e1e3c04267233ccf9b3b1759", "score": "0.62811154", "text": "protected function getConfigForm()\n {\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Settings'),\n 'icon' => 'icon-cogs',\n ),\n 'input' => array(\n array(\n 'type' => 'switch',\n 'label' => $this->l('Move on hover'),\n 'name' => 'SOCIALSIDEBAR_HOVER',\n 'is_bool' => true,\n 'desc' => $this->l('Disable hover animations'),\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n array(\n 'type' => 'switch',\n 'label' => $this->l('Hide on mobile'),\n 'name' => 'SOCIALSIDEBAR_MOBILE',\n 'is_bool' => true,\n 'desc' => $this->l('Disable on mobile'),\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n array(\n 'type' => 'radio',\n 'prefix' => '<i class=\"icon icon-envelope\"></i>',\n 'desc' => $this->l('Select sidebar position'),\n 'name' => 'SOCIALSIDEBAR_POSITION',\n 'label' => $this->l('Sidebar Position'),\n 'values' => array(\n array(\n 'id' => 'left',\n 'value' => null,\n 'label' => $this->getTranslator()->trans('Left', array(), 'Modules.Socialsidebar.Admin'),\n ),\n array(\n 'id' => 'right',\n 'value' => true,\n 'label' => $this->getTranslator()->trans('Right', array(), 'Modules.Socialsidebar.Admin'),\n ),\n ),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-envelope\"></i>',\n 'desc' => $this->l('Enter a Facebook profile address '),\n 'name' => 'SOCIALSIDEBAR_FACEBOOK',\n 'label' => $this->l('Facebook'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-envelope\"></i>',\n 'desc' => $this->l('Enter a Instagram profile address '),\n 'name' => 'SOCIALSIDEBAR_INSTAGRAM',\n 'label' => $this->l('Instagram'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-envelope\"></i>',\n 'desc' => $this->l('Enter a Youtube chanel address'),\n 'name' => 'SOCIALSIDEBAR_YOUTUBE',\n 'label' => $this->l('Youtube'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-envelope\"></i>',\n 'desc' => $this->l('Enter a Twitter profile addres'),\n 'name' => 'SOCIALSIDEBAR_TWITTER',\n 'label' => $this->l('Twitter'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-envelope\"></i>',\n 'desc' => $this->l('Enter a Tumbrl profile addres'),\n 'name' => 'SOCIALSIDEBAR_TUMBRL',\n 'label' => $this->l('Tumbrl'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-envelope\"></i>',\n 'desc' => $this->l('Enter a Printerest profile addres'),\n 'name' => 'SOCIALSIDEBAR_PRINTEREST',\n 'label' => $this->l('PRINTEREST'),\n ),\n array(\n 'col' => 3,\n 'type' => 'text',\n 'prefix' => '<i class=\"icon icon-envelope\"></i>',\n 'desc' => $this->l('Enter a LinkedIn profile addres'),\n 'name' => 'SOCIALSIDEBAR_LINKEDIN',\n 'label' => $this->l('Linkedin'),\n ),\n ),\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n ),\n );\n }", "title": "" }, { "docid": "a52967045627aaede2c95bcddf8e9c6e", "score": "0.62683475", "text": "function hook_cmtls_app_config($config) {\r\n // form API fields \r\n $form['example_app_type'] = array(\r\n '#type' => 'fieldset',\r\n '#title' => t('Example settings'),\r\n '#collapsible' => TRUE,\r\n '#collapsed' => TRUE,\r\n );\r\n\r\n $form['example_app_type']['example_field'] = array(\r\n '#type' => 'radios',\r\n '#title' => t('Example field'),\r\n '#options' => array(\r\n ),\r\n );\r\n \r\n return $form;\r\n}", "title": "" }, { "docid": "9eeb869276cd58aaddc56d2f9975d033", "score": "0.62585336", "text": "function ev_configuration_form(){\n\t\tglobal $wpdb;\n\t\tif($_POST){\n\t\t\t$configuration_id=array_shift($_POST);\n\n\t\t\tif($configuration_id!='')\n\t\t\t$wpdb->query(\"update \".$wpdb->prefix.\"ev_configurations set client_id='\".$_POST['client_id'].\"',client_secret='\".$_POST['client_secret'].\"',redirect_url='\".$_POST['redirect_url'].\"',error_url='\".$_POST['error_url'].\"' where configuration_id=\".$configuration_id);\n\t\t\telse\n\t\t\t$wpdb->insert($wpdb->prefix.\"ev_configurations\",$_POST);\n\t\t\twp_redirect(site_url().\"/wp-admin/admin.php?page=email_verificaiton\");\n\t\t}\n\n\t\t$configuration_details=$wpdb->get_results(\"select * from \".$wpdb->prefix.\"ev_configurations\");\n\t\tinclude(\"configuration_form.php\");\n\t}", "title": "" }, { "docid": "a4c46f3bde46730f421e0595c1521ed4", "score": "0.62163204", "text": "public function configForm( $event, $arguments = array( ) )\r\n\t{\r\n\t\t$config = $event['form'];\r\n\t\t\r\n\t\t// add XML params path\r\n\t\t$config->addElementPath($this->app->path->path('zoolingual:fields'));\r\n\t}", "title": "" }, { "docid": "93b1446b7186ae5ce25ebac85eedcb9d", "score": "0.61999005", "text": "protected function getConfigForm()\n {\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Configuracion del cupon descuento INDIVIDUAL'),\n 'icon' => 'icon-cogs',\n 'id'=> 'formemail',\n 'method'=> $_POST,\n ),\n\n 'input' => array(\n \n array(\n 'type' => 'html',\n 'label' => $this->l('Importe en € a gastar'),\n 'name' => 'moneydiscount',\n 'desc' => $this->l('El importe que el cliente debe gastar para que se genere el cupón descuento'),\n 'html_content' => '<input type=\"number\" name=\"moneydiscount\">',\n 'suffix'=>'€',\n 'required'=> true,\n ),\n array(\n 'type' => 'html',\n 'label' => $this->l('€ de Descuento'),\n 'desc' => $this->l('Descuento en € que se le hará al usuario cuando llegue a la cantidad establecida'),\n 'name' => 'discount',\n 'html_content'=> '<input type=\"number\" name=\"discount\">',\n 'suffix'=>'€',\n 'required'=> true,\n \n ),\n\n ),\n 'submit' => array(\n 'title' => $this->l('Guardar'),\n 'name'=> 'guardar',\n ),\n ),\n );\n }", "title": "" }, { "docid": "98f1344995e54a7cee72230798505a8c", "score": "0.6197902", "text": "protected function getConfigForm()\n {\n $employees = Db::getInstance()->executeS('\n SELECT `email`, `firstname`, `lastname`\n FROM `'._DB_PREFIX_.'employee`\n '.($active_only ? ' WHERE `active` = 1' : '').'\n ORDER BY `lastname` ASC\n ');\n // var_dump($employees);\n\n $employees_opts = array();\n\n foreach ($employees as $emp) {\n // var_dump($emp);\n $employees_opts[] = array( 'email'=> $emp['email'],\n 'name' => $emp['firstname'] . ' ' . $emp['lastname']\n );\n }\n\n // if(Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE')) {\n $shops = Shop::getShops();\n // var_dump($shops);\n\n $shops_opts = array();\n\n foreach ($shops as $shop) {\n $shops_opts[] = array( 'id'=> $shop['id_shop'],\n 'name' => $shop['name']\n );\n }\n // }\n \n\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('Settings'),\n 'icon' => 'icon-cogs',\n ),\n 'input' => array(\n // array(\n // 'type' => 'switch',\n // 'label' => $this->l('Live mode'),\n // 'name' => 'AUTOLOGINBACKOFFICE_LIVE_MODE',\n // 'is_bool' => true,\n // 'desc' => $this->l('Use this module in live mode'),\n // 'values' => array(\n // array(\n // 'id' => 'active_on',\n // 'value' => true,\n // 'label' => $this->l('Enabled')\n // ),\n // array(\n // 'id' => 'active_off',\n // 'value' => false,\n // 'label' => $this->l('Disabled')\n // )\n // ),\n // ),\n array(\n 'type' => 'select',\n 'label' => $this->l('Login as Employee'),\n 'desc' => $this->l('Auto Login as this employee'),\n 'name' => 'AUTOLOGINBACKOFFICE_EMPLOYEE',\n 'required' => true,\n 'default_value' => $this->context->employee->id,\n 'options' => array(\n 'query' => $employees_opts,\n 'id' => 'email',\n 'name' => 'name',\n )\n ),\n array(\n 'type' => 'select',\n 'label' => $this->l('Login to Shop'),\n 'desc' => $this->l('Auto Login to this shop. Useful for Multi shop environment.'),\n 'name' => 'AUTOLOGINBACKOFFICE_SHOP',\n 'required' => true,\n 'default_value' => $this->context->shop->id,\n 'options' => array(\n 'query' => $shops_opts,\n 'id' => 'id',\n 'name' => 'name',\n )\n ),\n ),\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n ),\n );\n }", "title": "" }, { "docid": "170a505e9e6b545cd4fcbf4ae5baf09a", "score": "0.61964184", "text": "function config_form($frm) {\n global $CFG;\n\n $paypalcurrencies = array( 'IRR' => get_string('iranian_rial', 'enrol_joomdle'),// mahdi agnelli\n 'IRT' => get_string('iranian_toman', 'enrol_joomdle'),// mahdi agnelli\n 'AFN' => get_string('afghan_afghani', 'enrol_joomdle'),// mahdi agnelli\n 'IQD' => get_string('iraqi_dinar', 'enrol_joomdle'),// mahdi agnelli\n 'USD' => 'US Dollars',\n 'EUR' => 'Euros',\n 'JPY' => 'Japanese Yen',\n 'GBP' => 'British Pounds',\n 'CAD' => 'Canadian Dollars',\n 'AUD' => 'Australian Dollars',\n\t\t\t\t\t\t\t\t'CNY' => 'China Yuan Renminbi'\n );\n\n $vars = array('enrol_cost', 'enrol_currency', 'enrol_message');\n foreach ($vars as $var) {\n if (!isset($frm->$var)) {\n $frm->$var = '';\n }\n }\n\n include (\"$CFG->dirroot/enrol/joomdle/config.html\");\n}", "title": "" }, { "docid": "50c5e9dc23061750aceefa53b2f4cfad", "score": "0.61884224", "text": "protected function postProcess()\n {\n $form_values = $this->getConfigFormValues();\n foreach (array_keys($form_values) as $key) {\n Configuration::updateValue($key, trim(Tools::getValue($key)));\n }\n }", "title": "" }, { "docid": "55f5371bfae7a0ed776454e9c2587712", "score": "0.6188241", "text": "function process_config($config) {\n if (!isset ($config->db)) {\n $config->db = '';\n }\n if (!isset ($config->url)) {\n $config->url = '';\n }\n if (!isset ($config->password)) {\n $config->password = '';\n }\n if (!isset ($config->user)) {\n $config->password = '';\n }\n\n // save settings \n set_config('db', $config->db, 'auth/odoo');\n set_config('url', $config->url, 'auth/odoo');\n set_config('password', $config->password, 'auth/odoo');\n set_config('user', $config->user, 'auth/odoo');\n\n return true;\n }", "title": "" }, { "docid": "a818a4cfb68ff27adf8537ece6277199", "score": "0.6166942", "text": "function config_form($preferences) {\n return null;\n }", "title": "" }, { "docid": "b16ac0493df674a0fdffed3baeb780c7", "score": "0.61592305", "text": "protected function getConfigForm()\n {\n $form = array(\n 'form' => array(\n 'legend' => array(\n 'title' => $this->l('settings_label'),\n 'icon' => 'icon-cogs',\n ),\n\n 'error' => '',\n 'warning' => '',\n 'description' => '',\n\n 'input' => array(\n array(\n 'type' => 'text',\n 'name' => 'FINANCE_ENVIRONMENT_URL',\n 'label' => $this->l('environment_url_label'),\n 'hint' => $this->l('environment_url_description'),\n ),\n array(\n 'type' => 'text',\n 'name' => 'FINANCE_API_KEY',\n 'label' => $this->l('api_key_label'),\n 'hint' => $this->l('api_key_description'),\n 'required' => true,\n )\n ),\n 'submit' => array(\n 'title' => $this->l('save_label'),\n ),\n ),\n );\n\n /*----------------------Display form only after key is inserted----------------------------*/\n if (Configuration::get('FINANCE_API_KEY')) {\n $api = new FinanceApi();\n $api_key = Configuration::get('FINANCE_API_KEY');\n\n try {\n\n /*-------If no Environment URL, apply appropriate internal multitenant URL-----------*/\n if (!Configuration::get('FINANCE_ENVIRONMENT_URL')) {\n $env = Environment::getEnvironmentFromAPIKey($api_key);\n\n if(!isset(Environment::CONFIGURATION[$env])){\n throw new InvalidEnvironmentException($this->l('environment_url_required_error_msg'));\n }\n $multitenant_environment_url = Environment::CONFIGURATION[$env]['base_uri'];\n\n Configuration::updateValue('FINANCE_ENVIRONMENT_URL', $multitenant_environment_url);\n\n $form['form']['description'] = $this->l('environment_url_label') . ': ' . $multitenant_environment_url;\n };\n\n $api->checkEnviromentHealth();\n\n $finance_environment = $api->getFinanceEnv($api_key);\n\n if ($finance_environment === NULL) {\n throw new BadApiKeyException();\n }\n\n Configuration::updateValue('FINANCE_ENVIRONMENT', $finance_environment);\n\n $financePlans = $this->getPlans();\n\n if ($financePlans === NULL) {\n throw new NoFinancePlansException();\n };\n\n foreach($financePlans as $plan){\n if(!empty($plan->branding->logo_url)){\n try{\n $this->resizeLogo($plan->branding->logo_url);\n break;\n } catch (\\Exception $e) {\n echo($e->getMessage());\n PrestaShopLogger::addLog(\n sprintf('Failed to create image from %s: %s', $plan->branding->logo_url, $e->getMessage())\n );\n }\n }\n }\n\n $orderStatus = OrderState::getOrderStates($this->context->language->id);\n $product_options = array(\n array(\n 'type' => 'All',\n 'name' => $this->l('finance_all_products_option'),\n ),\n array(\n 'type' => 'product_selected',\n 'name' => $this->l('finance_specific_products_option'),\n ),\n array(\n 'type' => 'min_price',\n 'name' => $this->l('finance_threshold_products_option'),\n )\n );\n $form['form']['input'][] = array(\n 'type' => 'text',\n 'name' => 'FINANCE_HMAC',\n 'label' => $this->l('shared_secret_label'),\n 'hint' => $this->l('shared_secret_description'),\n );\n $form['form']['input'][] = array(\n 'type' => 'text',\n 'name' => 'FINANCE_PAYMENT_TITLE',\n 'label' => $this->l('checkout_title_label'),\n 'hint' => $this->l('checkout_title_description'),\n );\n if (!$this->ps_below_7) {\n $form['form']['input'][] = array(\n 'type' => 'text',\n 'name' => 'FINANCE_PAYMENT_DESCRIPTION',\n 'label' => $this->l('checkout_description_label'),\n 'hint' => $this->l('checkout_description_description'),\n );\n }\n $form['form']['input'][] = array(\n 'type' => 'select',\n 'name' => 'FINANCE_ACTIVATION_STATUS',\n 'label' => $this->l('activate_on_status_label'),\n 'hint' => $this->l('activate_on_status_description'),\n 'options' => array(\n 'query' => $orderStatus,\n 'id' => 'id_order_state',\n 'name' => 'name',\n ),\n );\n $form['form']['input'][] = array(\n 'type' => 'select',\n 'name' => 'FINANCE_CANCELLATION_STATUS',\n 'label' => $this->l('cancel_on_status_label'),\n 'hint' => $this->l('cancel_on_status_description'),\n 'options' => array(\n 'query' => $orderStatus,\n 'id' => 'id_order_state',\n 'name' => 'name',\n ),\n );\n $form['form']['input'][] = array(\n 'type' => 'select',\n 'name' => 'FINANCE_REFUND_STATUS',\n 'label' => $this->l('refund_on_status_label'),\n 'hint' => $this->l('refund_on_status_description'),\n 'options' => array(\n 'query' => $orderStatus,\n 'id' => 'id_order_state',\n 'name' => 'name',\n ),\n );\n $form['form']['input'][] = array(\n 'type' => 'switch',\n 'name' => 'FINANCE_ALL_PLAN_SELECTION',\n 'label' => $this->l('show_all_plans_option'),\n 'is_bool' => true,\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Yes')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('No')\n )\n ),\n );\n $form['form']['input'][] = array(\n 'type' => 'swap',\n 'name' => 'FINANCE_PLAN_SELECTION',\n 'label' => $this->l('select_specific_plans_option'),\n 'options' => array(\n 'query' => $financePlans,\n 'name' => 'text',\n 'id' => 'id',\n ),\n );\n $form['form']['input'][] = array(\n 'type' => 'switch',\n 'name' => 'FINANCE_PRODUCT_WIDGET',\n 'label' => $this->l('show_widget_label'),\n 'hint' => $this->l('show_widget_description'),\n 'is_bool' => true,\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Yes')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('No')\n )\n ),\n );\n $form['form']['input'][] = array(\n 'type' => 'switch',\n 'name' => 'FINANCE_PRODUCT_CALCULATOR',\n 'label' => $this->l('product_calculator_title'),\n 'is_bool' => true,\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Yes')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('No')\n )\n ),\n );\n\n $form['form']['input'][] = array(\n 'type' => 'text',\n 'name' => 'FINANCE_CALC_CONF_API_URL',\n 'label' => $this->l('calc_conf_api_url_label'),\n 'hint' => $this->l('calc_conf_api_url_description')\n );\n\n $form['form']['input'][] = array(\n 'type' => 'switch',\n 'name' => 'FINANCE_LANGUAGE_OVERRIDE',\n 'hint' => $this->l('use_store_language_description'),\n 'label' => $this->l('use_store_language_label'),\n 'is_bool' => true,\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Yes')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('No')\n )\n ),\n );\n $form['form']['input'][] = array(\n 'type' => 'text',\n 'name' => 'FINANCE_PRODUCT_WIDGET_BUTTON_TEXT',\n 'label' => $this->l('widget_button_text_label'),\n 'hint' => $this->l('widget_button_text_description'),\n );\n $form['form']['input'][] = array(\n 'type' => 'text',\n 'name' => 'FINANCE_PRODUCT_WIDGET_FOOTNOTE',\n 'label' => $this->l('widget_footnote_label'),\n 'hint' => $this->l('widget_footnote_description')\n );\n $form['form']['input'][] = array(\n 'type' => 'text',\n 'name' => 'FINANCE_CART_MINIMUM',\n 'label' => $this->l('cart_threshold_label'),\n 'hint' => $this->l('cart_threshold_description')\n );\n\n $form['form']['input'][] = array(\n 'type' => 'text',\n 'name' => 'FINANCE_CART_MAXIMUM',\n 'label' => $this->l('cart_maximum_label'),\n 'hint' => $this->l('cart_maximum_description')\n );\n $form['form']['input'][] = array(\n 'type' => 'select',\n 'name' => 'FINANCE_PRODUCTS_OPTIONS',\n 'label' => $this->l('product_selection_label'),\n 'hint' => $this->l('product_selection_description'),\n 'options' => array(\n 'query' => $product_options,\n 'id' => 'type',\n 'name' => 'name',\n ),\n );\n $form['form']['input'][] = array(\n 'type' => 'text',\n 'name' => 'FINANCE_PRODUCTS_MINIMUM',\n 'label' => $this->l('product_price_threshold_label'),\n 'hint' => $this->l('product_price_threshold_description')\n );\n $form['form']['input'][] = array(\n 'type' => 'html',\n 'name' => $this->l('map_statuses_description').\":\",\n );\n foreach ($this->ApiOrderStatus as $ApiStatus) {\n $form['form']['input'][] = array(\n 'type' => 'select',\n 'name' => 'FINANCE_STATUS_'.$ApiStatus['code'],\n 'label' => $ApiStatus['code'],\n 'options' => array(\n 'query' => $orderStatus,\n 'id' => 'id_order_state',\n 'name' => 'name',\n ),\n );\n }\n } catch (EnvironmentUrlException $e) {\n $form['form']['error'] = $this->l('environment_url_error') . '? ';\n } catch (EnvironmentUnhealthyException $e) {\n $form['form']['error'] = $this->l('environment_url_error') . '? ' . '<br/>'\n . $this->l('environment_unhealthy_error_msg') . ' '\n . $e->getMessage();\n } catch (InvalidEnvironmentException | BadApiKeyException $e) {\n $form['form']['error'] = $this->l('invalid_api_key_error') . '<br/>'\n . $e->getMessage();\n } catch (InvalidApiKeyFormatException $e) {\n $form['form']['error'] = $this->l('invalid_api_key_error') . '<br/>'\n . $e->getMessage();\n } catch (NoFinancePlansException $e) {\n $form['form']['warning'] = $this->l('finance_no_plans');\n }\n };\n\n return $form;\n }", "title": "" }, { "docid": "7339059ebbda501da921876ebc6152e4", "score": "0.61240053", "text": "function latmobile_configure_form($form_state) {\n $form['carrier_domains'] = array(\n '#title' => t('Valid carrier domains'),\n '#type' => 'textarea',\n '#cols' => 60,\n '#rows' => 10,\n '#default_value' => variable_get('latmobile_carrier_domains', ''),\n '#description' => t('Enter a list of carrier domains, separated by a newline.'),\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save'),\n );\n return $form;\n}", "title": "" }, { "docid": "c1bd5c7a7ee53da6247ab2893d5eeab0", "score": "0.6114612", "text": "protected function getConfigForm()\r\n {\r\n $states = CreditCard_OrderState::getOrderStates();\r\n \r\n $order_states=array();\r\n \r\n foreach($states as $state){\r\n $order_states[]=array(\"id\"=>$state[\"id_order_state\"],\"name\"=>$state[\"name\"]);\r\n }\r\n\r\n $fields_form = array(\r\n 'form' => array(\r\n 'legend' => array(\r\n 'title' => $this->trans('Configuración ePayco', array(), 'Modules.Payco.Admin'),\r\n 'icon' => 'icon-envelope'\r\n ),\r\n 'input' => array(\r\n array(\r\n 'type' => 'text',\r\n 'label'=> $this->trans('Titulo', array(), 'Modules.Payco.Admin'),\r\n 'name' => 'P_TITULO',\r\n 'required' => true,\r\n 'desc' => $this->trans('Titulo que el usuario vera durante el Checkout del Plugin', array(), 'Modules.Payco.Admin'),\r\n ),\r\n array(\r\n 'type' => 'text',\r\n 'label' => $this->trans('P_CUST_ID_CLIENTE', array(), 'Modules.Payco.Admin'),\r\n 'name' => 'P_CUST_ID_CLIENTE',\r\n 'desc' => $this->trans('Id del cliente recibidor primario (App, Maketplace, Tienda, etc).',\r\n array(), 'Modules.Payco.Admin'),\r\n 'required' => true\r\n ),\r\n array(\r\n 'type' => 'text',\r\n 'label' => $this->trans('P_KEY', array(), 'Modules.Payco.Admin'),\r\n 'name' => 'P_KEY',\r\n 'desc' => $this->trans('Llave para firmar la información enviada y recibida de ePayco', array(), 'Modules.Payco.Admin'),\r\n 'required' => true\r\n ),\r\n array(\r\n 'type' => 'text',\r\n 'label' => $this->trans('PUBLIC_KEY', array(), 'Modules.Payco.Admin'),\r\n 'name' => 'PUBLIC_KEY',\r\n 'desc' => $this->trans('LLave para autenticar y consumir los servicios de ePayco.', array(), 'Modules.Payco.Admin'),\r\n 'required' => true\r\n ),\r\n array(\r\n 'type' => 'radio',\r\n 'label'=> $this->trans('Habilitar modo pruebas', array(), 'Modules.Payment.Admin'),\r\n 'name' => \"P_TEST_REQUEST\",\r\n 'is_bool' => true,\r\n 'values' => array(\r\n array(\r\n 'id' => 'P_TEST_REQUEST_TRUE',\r\n 'value' => true,\r\n 'label' => $this->trans('Si (Transacciones en pruebas)', array(), 'Modules.Payment.Admin'),\r\n ),\r\n array(\r\n 'id' => 'P_TEST_REQUEST_FALSE',\r\n 'value' => false,\r\n 'label' => $this->trans('No (Transacciones en producción)', array(), 'Modules.Payment.Admin'),\r\n )\r\n ),\r\n ),\r\n array(\r\n 'type' => 'radio',\r\n 'label'=> $this->trans('Idioma del checkout', array(), 'Modules.Payment.Admin'),\r\n 'name' => \"LENGUAJE\",\r\n 'is_bool' => true,\r\n 'values' => array(\r\n array(\r\n 'id' => 'LANGUAJE_ES',\r\n 'value' => true,\r\n 'label' => $this->trans('Español', array(), 'Modules.Payment.Admin'),\r\n ),\r\n array(\r\n 'id' => 'LANGUAJE_EN',\r\n 'value' => false,\r\n 'label' => $this->trans('Ingles', array(), 'Modules.Payment.Admin'),\r\n )\r\n ),\r\n ),\r\n array(\r\n 'type' => 'text',\r\n 'label' => $this->trans('Página de Respuesta', array(), 'Modules.Payco.Admin'),\r\n 'name' => 'P_URL_RESPONSE',\r\n 'placeholder'=>\"http://tutienda.com/respuesta\",\r\n 'desc' => $this->trans('Url de la tienda mostrada luego de finalizar el pago.', array(), 'Modules.Payco.Admin'),\r\n 'required' => true\r\n ),\r\n array(\r\n 'type' => 'text',\r\n 'label' => $this->trans('Página de Confirmación', array(), 'Modules.Payco.Admin'),\r\n 'name' => 'P_URL_CONFIRMATION',\r\n 'placeholder'=>\"http://tutienda.com/confirmacion\",\r\n 'desc' => $this->trans('Url de Confirmación donde ePayco confirma el pago.', array(), 'Modules.Payco.Admin'),\r\n 'required' => true\r\n ),\r\n array(\r\n 'type' => 'radio',\r\n 'label'=> $this->trans('Tipo de checkout ePayco', array(), 'Modules.Payco.Admin'),\r\n 'name' => \"P_TYPE_CHECKOUT\",\r\n 'is_bool' => true,\r\n 'values' => array(\r\n array(\r\n 'id' => 'onpage',\r\n 'value' => true,\r\n 'label' => $this->trans('OnPage Checkout (El usuario al pagar se queda en la tienda no hay redirección a ePayco)', array(), 'Modules.Payco.Admin'),\r\n ),\r\n array(\r\n 'id' => 'standart',\r\n 'value' => false,\r\n 'label' => $this->trans('Estandar Checkout (El usuario al pagar es redireccionado a la pasarela de ePayco)', array(), 'Modules.Payco.Admin'),\r\n )\r\n ),\r\n ),\r\n array(\r\n 'type' => 'radio',\r\n 'label'=> $this->trans('Reducir el stock en transacciones pendientes', array(), 'Modules.Payco.Admin'),\r\n 'name' => \"P_REDUCE_STOCK_PENDING\",\r\n 'is_bool' => true,\r\n 'values' => array(\r\n array(\r\n 'id' => 'P_REDUCE_STOCK_PENDING_TRUE',\r\n 'value' => true,\r\n 'label' => $this->trans('Si', array(), 'Modules.Payment.Admin'),\r\n ),\r\n array(\r\n 'id' => 'P_REDUCE_STOCK_PENDING_FALSE',\r\n 'value' => false,\r\n 'label' => $this->trans('No', array(), 'Modules.Payment.Admin'),\r\n )\r\n ),\r\n ),\r\n array(\r\n 'type' => 'select',\r\n 'label' => $this->trans('Estado final Pedido', array(), 'Modules.Payco.Admin'),\r\n 'name' => 'P_STATE_END_TRANSACTION',\r\n 'desc' => $this->trans('Escoja el estado del pago que se aplicar al confirmar la trasacción.', array(), 'Modules.Payco.Admin'),\r\n 'required' => true,\r\n 'options' => array(\r\n 'id' => 'id',\r\n 'name' => 'name',\r\n 'default' => array(\r\n 'value' => '',\r\n 'label' => $this->l('Seleccione un estado de Orden')\r\n ),\r\n 'query'=>$order_states,\r\n\r\n ),\r\n )\r\n ),\r\n 'submit' => array(\r\n 'title' => $this->trans('Save', array(), 'Admin.Actions'),\r\n )\r\n ),\r\n );\r\n\r\n return $fields_form;\r\n }", "title": "" }, { "docid": "e5bbf0d59ef08409088d298d7d1fa364", "score": "0.6111163", "text": "public function getConfigInputfields() {\n\t\t$inputfields = parent::getConfigInputfields();\n\t\t$defaults = self::getConfigDefaults();\n\t\t$defaultLabel = $this->_('Default value:') . ' ';\n\t\t\n\t\t$f = $inputfields->getChildByName('noLoad'); \n\t\t$f->addOption('foundation-init', $this->_('Do not initialize Foundation: $(document).foundation();'));\n\n\t\t$f = $this->wire('modules')->get('InputfieldURL');\n\t\t$f->attr('name', 'foundationURL');\n\t\t$f->label = $this->_('URL to Foundation framework');\n\t\t$f->description = $this->_('Specify a URL/path relative to root of ProcessWire installation.');\n\t\t$f->attr('value', $this->foundationURL);\n\t\tif($this->foundationURL != $defaults['foundationURL']) $f->notes = $defaultLabel . $defaults['foundationURL'];\n\t\t$inputfields->add($f);\n\t\t\n\t\t$f = $this->wire('modules')->get('InputfieldRadios');\n\t\t$f->attr('name', 'horizontal');\n\t\t$f->label = $this->_('Form style');\n\t\t$f->addOption(0, $this->_('Stacked (default)'));\n\t\t$f->addOption(1, $this->_('Horizontal (2-column)'));\n\t\t$f->attr('value', $this->horizontal);\n\t\t$f->columnWidth = 100;\n\t\t$f->description= $this->_('Please note that individual field column widths (if used) are not applicable when using the *Horizontal* style.'); \n\t\t$inputfields->add($f);\n\t\t\n\t\t$f = $this->wire('modules')->get('InputfieldText'); \n\t\t$f->attr('name', 'horizHeaderClass'); \n\t\t$f->label = $this->_('Horizontal label column (1)'); \n\t\t$f->description = $this->_('Specify Foundation framework classes to apply to the label column.'); \n\t\t$f->attr('value', $this->horizHeaderClass); \n\t\t$f->columnWidth = 50; \n\t\t$f->showIf = 'frFoundation_horizontal=1'; \n\t\tif($this->horizHeaderClass != $defaults['horizHeaderClass']) $f->notes = $defaultLabel . $defaults['horizHeaderClass'];\n\t\t$inputfields->add($f); \n\t\t\n\t\t$f = $this->wire('modules')->get('InputfieldText');\n\t\t$f->attr('name', 'horizContentClass');\n\t\t$f->label = $this->_('Horizontal input column (2)');\n\t\t$f->description = $this->_('Specify Foundation framework classes to apply to the input column.');\n\t\t$f->attr('value', $this->horizContentClass);\n\t\t$f->columnWidth = 50;\n\t\t$f->showIf = 'frFoundation_horizontal=1'; \n\t\tif($this->horizContentClass != $defaults['horizContentClass']) $f->notes = $defaultLabel . $defaults['horizContentClass'];\n\t\t$inputfields->add($f); \n\t\t\n\t\t$f = $this->wire('modules')->get('InputfieldRadios'); \n\t\t$f->attr('name', 'buttonType'); \n\t\t$f->label = $this->_('Submit button type'); \n\t\t$f->addOption('', $this->_x('Default', 'buttonType'));\n\t\t$f->addOption('secondary', $this->_('Secondary'));\n\t\t$f->addOption('success', $this->_('Success'));\n\t\t$f->addOption('alert', $this->_('Alert'));\n\t\t$f->addOption('info', $this->_('Info'));\n\t\t$f->attr('value', $this->buttonType); \n\t\t$f->columnWidth = 50; \n\t\t$inputfields->add($f); \n\n\t\t$f = $this->wire('modules')->get('InputfieldRadios');\n\t\t$f->attr('name', 'buttonSize');\n\t\t$f->label = $this->_('Submit button size'); \n\t\t$f->addOption('tiny', $this->_('Tiny'));\n\t\t$f->addOption('small', $this->_('Small'));\n\t\t$f->addOption('', $this->_('Medium (default)')); \n\t\t$f->addOption('large', $this->_('Large'));\n\t\t$f->addOption('expand', $this->_('Expand (full-width)'));\n\t\t$f->attr('value', $this->buttonSize);\n\t\t$f->columnWidth = 50; \n\t\t$inputfields->add($f); \n\t\n\t\t$f = $this->wire('modules')->get('InputfieldRadios'); \n\t\t$f->attr('name', 'buttonStyle'); \n\t\t$f->label = $this->_('Submit button style');\n\t\t$f->addOption('', $this->_('Normal'));\n\t\t$f->addOption('round', $this->_('Round'));\n\t\t$f->addOption('radius', $this->_('Radius'));\n\t\t$f->optionColumns = 1; \n\t\t$f->attr('value', $this->buttonStyle); \n\t\t$inputfields->add($f); \n\t\n\t\t/*\n\t\t$f = $this->wire('modules')->get('InputfieldCheckbox'); \n\t\t$f->attr('name', 'noInit'); \n\t\t$f->label = $this->_('Do not initialize Foundation'); \n\t\t$f->description = $this->_('The Foundation framework requires a `$(document).foundation();` call\n\t\t*/\n\t\t\n\t\treturn $inputfields;\n\t}", "title": "" }, { "docid": "9f9d47e7af250fe3706981843c9a652d", "score": "0.6101825", "text": "function photo500px_settings_form(){\n \n\n $form = array();\n $form['photo500px_cosumer_key'] = array(\n '#title' => t('500px Consumer Key'), \n '#type' => 'textfield', \n '#description' => t('<p>Enter the 500px cosumer key.Get the key from <a href=\"http://www.developers.500px.com/\">500px</a></p>'), \n '#default_value' => variable_get('photo500px_cosumer_key', '') \n );\n \n $form['photo500px_username'] = array(\n '#title' => t('500px Username'), \n '#type' => 'textfield', \n '#description' => t('<p>Enter the username of 500px.</p>'), \n '#default_value' => variable_get('photo500px_username', '') \n );\n \n $form['photo500px_count'] = array(\n '#title' => t('How many Photo to display?'), \n '#type' => 'textfield', \n '#description' => t('<p>Enter the number of photo to display.</p>'), \n '#default_value' => variable_get('photo500px_count', '') \n );\n \n\n $form = system_settings_form($form);\n return $form;\n}", "title": "" }, { "docid": "a09d6e6191ec9edb61e68e49d6db9f14", "score": "0.6100156", "text": "protected function getConfigFormValues()\n {\n return array(\n 'AUTOLOGINBACKOFFICE_EMPLOYEE' => Configuration::get('AUTOLOGINBACKOFFICE_EMPLOYEE', '1'),\n 'AUTOLOGINBACKOFFICE_SHOP' => Configuration::get('AUTOLOGINBACKOFFICE_SHOP', '1')\n );\n }", "title": "" }, { "docid": "025968afd63b5b533f22b1a165ab2446", "score": "0.60978603", "text": "protected function getConfigForm()\r\n {\r\n return array(\r\n 'form' => array(\r\n 'legend' => array(\r\n 'title' => $this->l('Configuración'),\r\n 'icon' => 'icon-cogs',\r\n ),\r\n 'input' => array(\r\n array(\r\n 'type' => 'switch',\r\n 'label' => $this->l('Eliminar todas las facturas'),\r\n 'name' => 'ELIMINARFACTURAS',\r\n 'is_bool' => true,\r\n 'desc' => $this->l('CUIDADO! Estableciendo en \"Si\" se borrarán todas las facturas de la tienda'),\r\n 'values' => array(\r\n array(\r\n 'id' => 'active_on',\r\n 'value' => true,\r\n 'label' => $this->l('Enabled')\r\n ),\r\n array(\r\n 'id' => 'active_off',\r\n 'value' => false,\r\n 'label' => $this->l('Disabled')\r\n )\r\n ),\r\n ),\r\n array(\r\n 'type' => 'text',\r\n 'label' => $this->l('Eliminar a partir del nº de factura'),\r\n 'name' => 'ELIMINARFACTURAS_RANGE',\r\n 'desc' => $this->l('Escribe el número de factura a partir del cual quieres borrar las facturas.'),\r\n 'value' => '',\r\n 'hint' => $this->l('Si por ejemplo pones el nº 100, se borrarán todas las facturas posteriores incluyendo la nº 100')\r\n )\r\n ),\r\n 'submit' => array(\r\n 'title' => $this->l('Borrar facturas'),\r\n ),\r\n ),\r\n );\r\n }", "title": "" }, { "docid": "d11c8c38c6a33d7a747bc1fb4abd03bc", "score": "0.6072469", "text": "public function processConfiguration()\n {\n if (Tools::isSubmit('simple_comments_form')) {\n $enable_grades = Tools::getValue('enable_grades');\n $enable_comments = Tools::getValue('enable_comments');\n Configuration::updateValue('SIMPLECOMMENTS_GRADES', $enable_grades);\n Configuration::updateValue('SIMPLECOMMENTS_COMMENTS', $enable_comments);\n }\n }", "title": "" }, { "docid": "2383680e28bc3fd9905255d10c105015", "score": "0.605683", "text": "function Admin_Config_Display($form=false)\n\t\t{\n\t\t$config=Config::Get_Instance();\n\t\t$result=$config->Get_Config(true);\n\t\t$yes_no_radio=array('show_error','full_error_info','log','advertisment');\n\t\t$db_type_radio=array('dbtype');\n\t\t$dir_radio=array('lang','template');\n\t\t$non_required_text=array('subdir','dbpath');\n\t\tforeach($result as $tab=>$group)\n\t\t\t{\n\t\t\tforeach($group as $param=>$value)\n\t\t\t\t{\n\t\t\t\tif(isset($form[$param]))\n\t\t\t\t\t{\n\t\t\t\t\t$value=$form[$param];\n\t\t\t\t\t}\n\t\t\t\tif(in_array($param,$yes_no_radio))\n\t\t\t\t\t{\n\t\t\t\t\t$options=array(array(\"sign\"=>YES,\"value\"=>\"1\"),array(\"sign\"=>NO,\"value\"=>\"0\"));\n\t\t\t\t\t$result[$tab][$param]=$this->Config_Input_Construct('radio',$param,$value,$options);\n\t\t\t\t\t}\n\t\t\t\telseif(in_array($param,$db_type_radio))\n\t\t\t\t\t{\n\t\t\t\t\t$options=array(array(\"sign\"=>\"mysql\",\"value\"=>\"mysql\"),array(\"sign\"=>\"sqlite\",\"value\"=>\"sqlite\"));\n\t\t\t\t\t$result[$tab][$param]=$this->Config_Input_Construct('radio',$param,$value,$options);\n\t\t\t\t\t}\n\t\t\t\telseif(in_array($param,$dir_radio))\n\t\t\t\t\t{\n\t\t\t\t\tif($handle=opendir(ROOT_DIR.DS.$param))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t$options=array();\n\t\t\t\t\t\twhile(false !== ($entry = readdir($handle)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ($entry != \".\" && $entry != \"..\")\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(is_dir(ROOT_DIR.DS.$param.DS.$entry))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$options[]=array(\"sign\"=>$entry,\"value\"=>$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\tclosedir($handle);\n\t\t\t\t\t\t}\n\t\t\t\t\t$result[$tab][$param]=$this->Config_Input_Construct('radio',$param,$value,$options);\n\t\t\t\t\t}\n\t\t\t\telseif(in_array($param,$non_required_text))\n\t\t\t\t\t{\n\t\t\t\t\t$result[$tab][$param]=$this->Config_Input_Construct('text',$param,$value);\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t$result[$tab][$param]=$this->Config_Input_Construct('text',$param,$value,1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tif($form)\n\t\t\t{\n\t\t\t$result['error']=$this->Admin_Config_Save($form);\n\t\t\t}\n\t\treturn $result;\t\n\t\t}", "title": "" }, { "docid": "5272dc5def20c98082d7297358022d84", "score": "0.6052792", "text": "function Action_config() {\r\n\r\n\t\t\tglobal $pwa_pro;\r\n\t\t\t# Security check\r\n\t\t\t//check_admin_referer(c_pwa_nonce_form);\r\n\t\t\tif ( !empty($_POST) || wp_verify_nonce($_POST['pwaplusphp_nonce'],'pwaplusphp_nonce') ) {\r\n\r\n\t\t\t\t# Default values\r\n\t\t\t\t$consts = get_defined_constants(true);\r\n\r\n\t\t\t\t# Update admin options\r\n\r\n\t\t\t\tif (!empty($pwa_pro)) $pwa_pro::Update_Pro_Settings($_POST);\r\n\t\t\t\t$access = $_POST['pwa_access']; $pwa_access = '';\r\n\t\t\t\tif (is_array($access)) { \r\n\t\t\t\t\tforeach ($access as $key=>$val) {\r\n\t\t\t\t\t\tif ($val==\"public\") $pwa_access .= $val;\r\n\t\t\t\t\t\tif ($val==\"protected\") $pwa_access .= $val;\r\n\t\t\t\t\t\tif ($val==\"private\") $pwa_access .= $val;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else { $pwa_access = $_POST['pwa_access']; }\r\n\t\t\t\tupdate_option(c_pwa_username, $_POST['c_pwa_username']);\r\n\t\t\t\tupdate_option(c_pwa_image_size, $_POST['c_pwa_image_size']);\r\n\t\t\t\tupdate_option(c_pwa_photo_thumbsize, $_POST['c_pwa_photo_thumbsize']);\t\r\n\t\t\t\tupdate_option(c_pwa_album_thumbsize, $_POST['c_pwa_album_thumbsize']);\r\n\t\t\t\tupdate_option(c_pwa_require_filter, $_POST['c_pwa_require_filter']);\r\n\t\t\t\tupdate_option(c_pwa_images_per_page, $_POST['c_pwa_images_per_page']);\r\n\t\t\t\tupdate_option(c_pwa_albums_per_page, $_POST['c_pwa_albums_per_page']);\r\n\t\t\t\tupdate_option(c_pwa_access, $pwa_access);\r\n\t\t\t\tupdate_option(c_pwa_show_album_details, $_POST['c_pwa_show_album_details']);\r\n\t\t\t\tupdate_option(c_pwa_show_dropbox, $_POST['c_pwa_show_dropbox']);\r\n\t\t\t\tupdate_option(c_pwa_truncate_name, $_POST['c_pwa_truncate_name']);\r\n\t\t\t\tupdate_option(c_pwa_language, $_POST['c_pwa_language']);\r\n\t\t\t\tupdate_option(c_pwa_permit_download, $_POST['c_pwa_permit_download']);\r\n\t\t\t\t#update_option(c_pwa_show_footer, $_POST['c_pwa_show_footer']);\r\n\t\t\t\tupdate_option(c_pwa_show_caption, $_POST['c_pwa_show_caption']);\r\n\t\t\t\tupdate_option(c_pwa_description_length, $_POST['c_pwa_description_length']);\r\n\t\t\t\tupdate_option(c_pwa_caption_length, $_POST['c_pwa_caption_length']);\r\n\t\t\t\tupdate_option(c_pwa_crop_thumbs, $_POST['c_pwa_crop_thumbs']);\r\n\t\t\t\tupdate_option(c_pwa_date_format, $_POST['c_pwa_date_format']);\r\n\t\t\t\tupdate_option(c_pwa_hide_video, $_POST['c_pwa_hide_video']);\r\n\t\t\t\tupdate_option(c_pwa_report_errors, $_POST['c_pwa_report_errors']);\r\n\t\t\t\tupdate_option(c_pwa_option_clean, $_POST['c_pwa_option_clean']);\r\n\t\t\t\tupdate_option(c_pwa_header_in_post, $_POST['c_pwa_header_in_post']);\r\n\t\t\t\tupdate_option(c_pwa_main_photo_page, $_POST['page_id']);\r\n\r\n\t\t\t\t# Show result\r\n\t\t\t\techo '<div id=\"message\" class=\"updated fade pwa_notice\"><p>' . __('Configuration is complete and PWA+PHP is ready for use. Create a page with contents \"[pwaplusphp]\" to see your albums.', c_pwa_text_domain) . '</p></div>';\r\n\t\t\t} else {\r\n\t\t\t\techo '<div id=\"error\" class=\"error fade pwa_error\"><p>Sorry, your nonce did not verify or you did not save anything.</p></div>';\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "27945a36f7a24a6d6ebed7b9cc456f2a", "score": "0.6037103", "text": "protected function getConfigFormValues()\n {\n return array(\n 'MYCONFIGURATOR_LIVE_MODE' => Configuration::get('MYCONFIGURATOR_LIVE_MODE', true),\n 'MYCONFIGURATOR_ACCOUNT_EMAIL' => Configuration::get('MYCONFIGURATOR_ACCOUNT_EMAIL', '[email protected]'),\n 'MYCONFIGURATOR_ACCOUNT_PASSWORD' => Configuration::get('MYCONFIGURATOR_ACCOUNT_PASSWORD', null),\n );\n }", "title": "" }, { "docid": "87c97ca5a6b0cd31327d0d7ce0c125e1", "score": "0.60187924", "text": "public function init_form_fields(){\n $this->form_fields = array(\n 'enabled' => array(\n 'title' =>'Enable/Disable',\n 'type' => 'checkbox',\n 'label' => 'Enable Fosdick Integration',\n 'default' => 'yes'\n ),\n 'title' => array(\n 'title' => 'Title',\n 'type' => 'text',\n 'description' => 'This controls the title which the user sees during checkout.',\n 'default' => 'Fosdick Integration',\n 'desc_tip' => true,\n ),\n 'description' => array(\n 'title' => 'Customer Message',\n 'description' => 'This controls the description which the user sees during checkout.',\n 'type' => 'textarea',\n 'default' => ''\n ),\n 'postURL' => array(\n 'title' => 'Fosdick Endpoint URL',\n 'description' => 'The URL that fosdick gave to send payments to',\n 'type' => 'text',\n 'default' => 'https://www.unitycart.com/ipmax/cart/ipost.asp'\n ),\n 'client_code' => array(\n 'title' => 'Client Code',\n 'type' => 'text',\n 'description' => 'Your Fosdick Account\\'s Client Code.',\n 'default' => '',\n 'desc_tip' => true,\n ),\n 'source_code' => array(\n 'title' => 'Source Code',\n 'type' => 'text',\n 'description' => 'This store\\'s Fosdick Source Code.',\n 'default' => '',\n 'desc_tip' => true,\n ),\n 'ad_code' => array(\n 'title' => 'Ad Code',\n 'type' => 'text',\n 'description' => 'The Ad Code.',\n 'default' => '',\n 'desc_tip' => true,\n ),\n 'test' => array(\n 'title' => 'Test Mode',\n 'type' => 'checkbox',\n 'label' => 'Enable Test Mode',\n 'default' => 'no'\n )\n );\n }", "title": "" }, { "docid": "32f7e63698b9b1f3f051b8aea5fa0064", "score": "0.60177255", "text": "public function configure()\n {\n $this->widgetSchema['version_id'] = new sfWidgetFormInputHidden();\n $this->validatorSchema['version_id'] = new sfValidatorInteger(array('required'=>true));\n\n $field = $this->getObject()->getFormName();\n $this->widgetSchema->setNameFormat(\"{$field}[%s]\");\n\n $this->disableLocalCSRFProtection();\n }", "title": "" }, { "docid": "eb69aa82f95b0c065e131ab542c894db", "score": "0.60102844", "text": "function iin_panels_extras_url_parameters_ctools_settings($form, &$form_state, $conf) {\n $form['settings']['param_key'] = array(\n '#type' => 'textfield',\n '#title' => t('URL Parameter Key'),\n '#description' => t('If you don\\'t specify a key value, the pane will appear when any key in the query has the value specified. For example, http://www.integrativenutrition.com/?color=blue, \"color\" is the key.'),\n '#default_value' => $conf['param_key'],\n );\n $form['settings']['param_value'] = array(\n '#type' => 'textfield',\n '#title' => t('URL Parameter Value. '),\n '#description' => t('For example, http://www.integrativenutrition.com/?color=blue, \"blue\" is the value. If you specify a key, but no value, it will check to see if there is a key anywhere in the URL string.'),\n '#default_value' => $conf['param_value'],\n ); \n $form['#validate'][] = 'iin_panels_extras_url_parameters_ctools_settings_validate';\n return $form;\n}", "title": "" }, { "docid": "271f831fe6993b0ab4f99b48eff7b570", "score": "0.6008497", "text": "protected function getEditableConfigNames() {\n return ['config.modal_form_application_modal_form'];\n }", "title": "" }, { "docid": "2df8df45c8623642640425ce42dcc0e0", "score": "0.6003191", "text": "private function getConfigurationFields($oForm)\n {\n\t\t\n $oForm->setWidgets(array(\t\t\t\n\t\t\t\t\t\t\t'cem_country_id' => __('Select Cemetery Country'),\n\t\t\t\t\t\t\t//'country_id' => __('Select User Country'),\n\t\t\t\t\t\t\t//'cem_cemetery_id' => __('Select Cemetery'),\n 'award_id' => __('Select Award'),\n\t\t\t\t\t\t\t'group_id' => __('Select User Role')\n\t\t\t\t\t\t\t));\n\n $oForm->setLabels(\n array(\n\t\t\t\t\t\t\t'first_name' => __('First name'),\n\t\t\t\t\t\t\t'service_list' => __('Select Services'),\n\t\t\t\t\t\t\t'last_name' => __('Surname'),\n\t\t\t\t\t\t\t'email_address' => __('Email'),\n\t\t\t\t\t\t\t'username' => __('Username'),\n\t\t\t\t\t\t\t'is_active'\t\t=> __('Is active'),\n\t\t\t\t\t\t\t'is_super_admin'\t\t=> __('Is super admin'),\n\t\t\t\t\t\t\t'password'\t\t=> __('Password'),\n\t\t\t\t\t\t\t'password_again'\t=> __('Password again'),\n\t\t\t\t\t\t\t//'cem_cemetery_id'\t=> __('Select Cementery'),\n 'award_id' => __('Select Award'),\n\t\t\t\t\t\t\t//'country_id'\t=> __('User Country'),\n\t\t\t\t\t\t\t'group_id'\t=> __('Select User Role'),\n\t\t\t\t\t\t\t'organisation'\t=> __('Organisation'),\n\t\t\t\t\t\t\t'address'\t=> __('Address'),\n\t\t\t\t\t\t\t'state'\t=> __('State'),\n\t\t\t\t\t\t\t'phone'\t=> __('Telephone'),\n\t\t\t\t\t\t\t'area_code'\t=> __('Telephone Area Code'),\n 'user_code'\t=> __('User Code'),\n\t\t\t\t\t\t\t'postal_code' => __('Postal Code'),\n\t\t\t\t\t\t\t'fax_area_code'\t=> __('Fax Area Code'),\n\t\t\t\t\t\t\t'phone'\t=> __('Telephone'),\n\t\t\t\t\t\t\t'suburb'\t=> __('Suburb/Town'),\n\t\t\t\t\t\t\t'contact_phone'\t=> __('Contact Phone'),\n\t\t\t\t\t\t\t'cem_country_id' => __('Select Country')\n\t\t\t\t\t\t\t\t\n )\n );\n\n $oForm->setValidators(\n array(\n 'first_name' => array(\n 'required' => __('First name required'),\n ),\n 'last_name' => array(\n 'required' => __('Surname required'),\n ),\n 'email_address' => array(\n 'required' => __('Email address required'),\n 'invalid' => __('Invalid email address'),\n ),\n 'username' => array(\n 'required' => __('Username required'),\n ),\n 'password' => array(\n 'required' => __('Password required'),\n 'min_length' => __('Enter atleast 3 characters'),\n 'max_length' => __('Enter atmost 25 characters'),\n ),\n 'password_again' => array(\n 'required' => __('Password again required'),\n 'invalid'\t\t\t=> __('Password and password again must be same.')\n ),\n 'cem_cemetery_id' => array(\n 'required' => __('Cemetery required'),\n ), \n /*'country_id' => array(\n 'required' => __(' User Country required'),\n ),*/\n 'group_id' => array(\n 'required' => __('User role required'),\n ),\n\t\t\t\t\t\t\t\t'cem_country_id' => array(\n 'required' => __('Cemetery Country required'),\n ), \n\t\t\t\t\t\t\t\t'organisation' => array(\n 'required' => __('Organisation required'),\n ), \n \n )\n );\n }", "title": "" }, { "docid": "c6793b68edfb7c13d71994204ce066d4", "score": "0.5993196", "text": "function nordname_getConfigArray() {\n return array(\n // Friendly display name for the module\n 'FriendlyName' => array(\n 'Type' => 'System',\n 'Value' => 'NordName',\n ),\n // a password field type allows for masked text input\n 'api_key' => array(\n 'Type' => 'text',\n 'FriendlyName' => 'API Key',\n 'Size' => '128',\n 'Default' => '',\n 'Description' => 'Enter your secret API key here.',\n ),\n 'auxiliary_contact' => array(\n 'Type' => 'text',\n 'FriendlyName' => 'Admin/tech/billing contact',\n 'Size' => '128',\n 'Default' => '',\n 'Description' => 'Enter the contact which is to be used as the admin/tech/billing contact on new orders.',\n ),\n 'auto_renew' => array(\n 'Type' => 'yesno',\n 'FriendlyName' => 'Auto Renew',\n 'Description' => 'Do you want new domain registrations to automatically renew at NordName?',\n ),\n // the yesno field type displays a single checkbox option\n 'sandbox' => array(\n 'Type' => 'yesno',\n 'FriendlyName' => 'Sandbox Mode',\n 'Description' => 'Tick to enable',\n ),\n 'display_restrictions' => array(\n 'Type' => 'yesno',\n 'FriendlyName' => 'Display restriction information',\n 'Description' => 'Experimental: Should any applicable TLD restrictions be shown to the customer on order page?',\n ),\n 'price_sync_one_year' => array(\n 'Type' => 'yesno',\n 'FriendlyName' => 'Price sync: First year only',\n 'Description' => 'Should the price sync tool set prices only for 1 year orders? It is useful if you do not want to provide longer periods'\n ),\n 'price_sync_use_discounts' => array(\n 'Type' => 'yesno',\n 'FriendlyName' => 'Price sync: Use discounted prices?',\n 'Description' => 'Should the price sync tool take into account discount campaigns when setting TLD prices? Note that if you enable this, the tool does not automatically update the prices when campaigns end.'\n ),\n );\n}", "title": "" }, { "docid": "18beb922b95231b7c8f6187e34abb25b", "score": "0.59919393", "text": "public function hookConfigForm($args)\n {\n $view = get_view();\n echo $view->partial(\n 'plugins/history-log-config-form.php'\n );\n }", "title": "" }, { "docid": "b09d308061458ed5a913dc3a9bdbdb44", "score": "0.5978893", "text": "public function saveconfigAction()\n {\n $arguments = $this->getRequest()->getPost();\n $all_ok = true;\n $pool = \\Krexx::$pool;\n\n $filepath = $pool->krexxDir . 'config/Krexx.ini';\n // We must preserve the section 'feEditing'.\n // Everything else will be overwritten.\n $old_values = parse_ini_file($filepath, true);\n $old_values = array('feEditing' => $old_values['feEditing']);\n\n // Iterating through the form.\n foreach ($arguments as $section => $data) {\n if (is_array($data) && in_array($section, $this->allowedSections)) {\n // We've got a section key.\n foreach ($data as $setting_name => $value) {\n if (in_array($setting_name, $this->allowedSettingsNames)) {\n // We escape the value, just in case, since we can not whitelist it.\n $value = htmlspecialchars(preg_replace('/\\s+/', '', $value));\n // Evaluate the setting!\n if ($pool->config->security->evaluateSetting($section, $setting_name, $value)) {\n $old_values[$section][$setting_name] = $value;\n } else {\n // Validation failed! kreXX will generate a message, which we will\n // display at the buttom.\n $all_ok = false;\n }\n }\n }\n }\n }\n\n // Now we must create the ini file.\n $ini = '';\n foreach ($old_values as $key => $setting) {\n $ini .= '[' . $key . ']' . PHP_EOL;\n foreach ($setting as $setting_name => $value) {\n $ini .= $setting_name . ' = \"' . $value . '\"' . PHP_EOL;\n }\n }\n\n // Now we should write the file!\n if ($all_ok) {\n $file = new Varien_Io_File();\n if ($file->write($filepath, $ini) === false) {\n $all_ok = false;\n $pool->messages->addMessage('Configuration file ' . $filepath . ' is not writeable!');\n }\n }\n\n // Something went wrong, we need to tell the user.\n if (!$all_ok) {\n Mage::getSingleton('core/session')->addError(\n strip_tags($pool->messages->outputMessages()),\n \"The settings were NOT saved.\"\n );\n } else {\n Mage::getSingleton('core/session')->addSuccess(\n \"The settings were saved to: <br /> \" . $filepath,\n \"The data was saved.\"\n );\n }\n\n $this->_redirect('*/*/config');\n\n }", "title": "" }, { "docid": "91edb2be220e1c7c2790ed7fdc70f579", "score": "0.59756106", "text": "public function configure()\n {\n $this->setWidgets(array(\n 'mysql_server' => new sfWidgetFormInputText(),\n 'mysql_username' => new sfWidgetFormInputText(),\n 'mysql_password' => new sfWidgetFormInputPassword(),\n 'mysql_dbname' => new sfWidgetFormInputText(),\n ));\n\n $this->setValidators(array(\n \t'mysql_server'\t\t=> new sfValidatorString(array('required' => true)),\n \t'mysql_username'\t=> new sfValidatorString(array('required' => true)),\n \t'mysql_dbname'\t\t=> new sfValidatorString(array('required' => true)),\n \t'mysql_password'\t=> new sfValidatorString(array('required' => false)),\n ));\n\n $this->widgetSchema->setNameFormat('dbconfig[%s]');\n $this->_setClasses();\n $this->_setDefaults();\n }", "title": "" }, { "docid": "d0429cbbec171e9659cf60a986c085e6", "score": "0.59635043", "text": "public function config()\n {\n global $c, $s, $m, $t, $q, $u;\n\n parent::config();\n\n\n $this->i_var['writable_var_list'][]= \"current_url\";\n\n $this->has['share_data']= true;\n $this->i_var['readable_data_list'][]= \"all_data\";\n\n $this->set_title($t->services, \"h2\");\n\n $this->select_name= \"id_serv\";\n \n \n $this->data_source=\"select_service1\";\n\n $this->id_tag= \"id_serv\"; // default\n$this->label_tag= \"name_serv\"; // default\n\n$this->has['submit']= false;\n $this->has['form']= false;\n\n $this->default= $t->unknown;\n }", "title": "" }, { "docid": "3cff5ac1c6649e87d06c0f4b72006e9c", "score": "0.5962698", "text": "public function configure()\n {\n unset(\n $this['next_verif_start'],\n $this['next_verif_end'],\n $this['slug']\n );\n \n sfWidgetFormSchema::setDefaultFormFormatterName('Div');\n }", "title": "" }, { "docid": "694923cf78b2ea6609d256287a9ab8b9", "score": "0.596019", "text": "function LF_save_listing_config_data()\r\n\t{\r\n\t\tcheck_ajax_referer( 'savepluginData', 'token' );\r\n\t\t$homepageSlug = sanitize_text_field($_POST['homepageSlug']);\r\n\t\t$LF_show_search = sanitize_text_field($_POST['LF_show_search']);\r\n\t\t$LF_column = sanitize_text_field($_POST['LF_column']);\r\n\t\t$LF_page = sanitize_text_field($_POST['LF_page']);\r\n\t\t$LF_show_priceOrder = sanitize_text_field($_POST['LF_show_priceOrder']);\r\n\t\t$LF_priceOrder = sanitize_text_field($_POST['LF_priceOrder']);\r\n\t\t$imageWidth = sanitize_text_field($_POST['LF_imageWidth']);\r\n\t\t$imageHeight = sanitize_text_field($_POST['LF_imageHeight']);\r\n\n\t\t$LF_Municipalities = is_array($_POST['LF_Municipalities']) ? $_POST['LF_Municipalities'] : array();\n\t\t$LF_Municipalities = implode(',',$LF_Municipalities);\n\n\t\t$LF_detail_footer = $_POST['LF_detail_footer'];\r\n\t\t$LF_MailText = $_POST['LF_MailText'];\r\n\t\t$termsandcondition = $_POST['termsandcondition'];\r\n\r\n\t\tif(isset($homepageSlug)){\r\n\t\t\tLF_add_settings('LF_homepageSlug',$homepageSlug);\r\n\t\t}\r\n\t\tif(isset($LF_show_search) and $LF_show_search!=''){\r\n\t\t\tLF_add_settings('LF_show_search',$LF_show_search);\r\n\t\t}\r\n\t\tif(isset($LF_Municipalities)){\r\n\t\t\tLF_add_settings('LF_Municipalities',$LF_Municipalities);\r\n\t\t}\r\n\t\tif(isset($LF_column) and $LF_column!=''){\r\n\t\t\tLF_add_settings('LF_column',$LF_column);\r\n\t\t}\r\n\t\tif(isset($LF_page) and $LF_page!=''){\r\n\t\t\tif($LF_page>48){\r\n\t\t\t\t$LF_page=48;\r\n\t\t\t}\r\n\t\t\tLF_add_settings('LF_page',$LF_page);\r\n\t\t}\r\n\t\tif(isset($LF_show_priceOrder)){\r\n\t\t\tLF_add_settings('LF_show_priceOrder',$LF_show_priceOrder);\r\n\t\t}\r\n\t\tif(isset($LF_priceOrder)){\r\n\t\t\tLF_add_settings('LF_priceOrder',$LF_priceOrder);\r\n\t\t}\r\n\t\tif(isset($imageWidth)){\r\n\t\t\tLF_add_settings('LF_imageWidth', $imageWidth);\r\n\t\t}\r\n\t\tif(isset($imageHeight)){\r\n\t\t\tLF_add_settings('LF_imageHeight', $imageHeight);\r\n\t\t}\r\n\t\tif(isset($LF_detail_footer)){\r\n\t\t\tLF_add_settings('LF_detail_footer', $LF_detail_footer);\r\n\t\t}\r\n\t\tif(isset($LF_MailText)){\r\n\t\t\tLF_add_settings('LF_MailText', $LF_MailText);\r\n\t\t}\r\n\t\tif(isset($termsandcondition)){\r\n\t\t\tLF_add_settings('termsandcondition',$termsandcondition);\r\n\t\t}\r\n\t\techo 1;\r\n\t\tdie();\r\n\t}", "title": "" }, { "docid": "0b8c6bf635cd42a92830b031406d297b", "score": "0.59569937", "text": "abstract public function configurationForm( \\IPS\\Member $member, \\IPS\\Http\\Url $url, $isManualConfiguration = FALSE );", "title": "" }, { "docid": "2b08b106292a9f4f9a8c916bc867cb52", "score": "0.59276414", "text": "public function config() {\n\t\n\t\t// save configuration\n\t foreach ($this['request']->get('post:', 'array') as $option => $value) {\n\t if (preg_match('/^lightbox_/', $option)) {\n\t\t\t\t$this['system']->options->set($option, $value);\n\t }\n\t }\n\n\t\t$this['system']->saveOptions();\n\t}", "title": "" }, { "docid": "2e07aee6ac9150a8a1b8e09cfeffd19e", "score": "0.5916243", "text": "public function update_config()\n\t{\n\t\t$tmp = array();\n\t\t$config = new Config_edit($tmp, 'adm_pm_config_');\n\t\t$data = $config->validate($_POST, 'portail_config', 'portail_name', 'portail_type');\n\n\t\t// Mise a jour de la configuration\n\t\tforeach ($data AS $key => $value)\n\t\t{\n\t\t\tFsb::$db->update('portail_config', array(\n\t\t\t\t'portail_value' =>\tFsb::$db->escape($value),\n\t\t\t), 'WHERE portail_name = \\'' . Fsb::$db->escape($key) . '\\'');\n\t\t}\n\t\tFsb::$db->destroy_cache('portail_config_');\n\n\t\tLog::add(Log::ADMIN, 'portail_config', $this->module);\n\t\tDisplay::message('adm_portail_config_well_submit', 'index.' . PHPEXT . '?p=general_portail', 'general_portail');\n\t}", "title": "" }, { "docid": "404299c61a1df659cb724a8c69d9e385", "score": "0.5916226", "text": "function oa_jira_collector_widget_edit_form_submit($form, &$form_state) {\n foreach (array_keys($form_state['plugin']['defaults']) as $key) {\n if (isset($form_state['values'][$key])) {\n $form_state['conf'][$key] = $form_state['values'][$key];\n }\n }\n}", "title": "" }, { "docid": "4c6f25ecd8ba596ee507ffca8c59467f", "score": "0.59016573", "text": "function baidu_login_admin_settings(){\n $form['baidu_login_is_login'] = array(\n '#type' => 'radios',\n '#title' => '允许使用百度hao123帐号登录',\n '#default_value' => variable_get('baidu_login_is_login', 1),\n '#options' => array('不允许', '允许'),\n '#description' => '将与现有账户绑定或创建一个新用户',\n '#required' => TRUE,\n );\n $form['baidu_login_app_id'] = array(\n '#type' => 'textfield',\n '#title' => 'APP_ID',\n '#default_value' => variable_get('baidu_login_app_id', '122261'),\n '#description' => '输入你申请应用的id',\n '#required' => TRUE,\n );\n $form['baidu_login_app_key'] = array(\n '#type' => 'textfield',\n '#title' => 'APP_KEY',\n '#default_value' => variable_get('baidu_login_app_key', 'iPZPpkg2zbZMtpHcBGBw4fCm'),\n '#description' => '输入你申请到的key',\n '#required' => TRUE,\n );\n $form['baidu_login_app_secret'] = array(\n '#type' => 'textfield',\n '#title' => 'APP_SECRET',\n '#default_value' => variable_get('baidu_login_app_secret', 'pC24EMtIy4z86VPVAaBaHv6PPjoOVYGA'),\n '#description' => '输入你申请到的Secret',\n '#required' => TRUE,\n );\n return system_settings_form($form);\n}", "title": "" }, { "docid": "cc3b26786cae87d30eea67af29f65fbb", "score": "0.5888379", "text": "public function mmcp_save_config() {\n check_ajax_referer('mmcp_check_ajax_save_config_data', 'mmcp_save_config_data_noce');\n $menu_id = $this->mmcp_get_request('menu_id');\n $menu_item_id = $this->mmcp_get_request('menu_item_id');\n $row_id = $this->mmcp_get_request('row_id');\n $width = $this->mmcp_get_request('width');\n $class = $this->mmcp_get_request('class');\n $hide_on_mobile = isset($_POST['mmcp_hide_on_mobile']) ? self::ON_HIDE_MOBILE : self::OFF_HIDE_MOBILE;\n $hide_on_desktop = isset($_POST['mmcp_hide_on_desktop']) ? self::ON_HIDE_DESKTOP : self::OFF_HIDE_DESKTOP;\n $type = $this->mmcp_get_request('type');\n if ($menu_item_id) {\n $sub_layout = get_post_meta($menu_item_id, 'mmcp_sub_layout', true);\n } else {\n wp_send_json_error(array('message' => __('Could\\'t save config data', 'mmcp')));\n }\n\n if (!$row_id || !$type) {\n wp_send_json_error(array('message' => __('Could\\'t save config data', 'mmcp')));\n }\n if (is_array($sub_layout)) {\n if (isset($sub_layout['sub_layout'])) {\n $layout = $sub_layout['sub_layout'];\n $index_row = null;\n if(count($layout)) {\n if ($type == 'column') {\n $index_column = null;\n $column_id = $this->mmcp_get_request('column_id');\n if (!$column_id) {\n wp_send_json_error(array('message' => __('Could\\'t save config data', 'mmcp')));\n }\n $this->get_data_item_column($layout, $index_row, $index_column, $row_id, $column_id);\n $row_data = $layout[$index_row];\n $column_data = $row_data['data'][$index_column];\n $this->set_data_config($column_data, array('width' => $width, 'class' => $class, 'hide_on_mobile' => $hide_on_mobile, 'hide_on_desktop' => $hide_on_desktop));\n $sub_layout['sub_layout'][$index_row]['data'][$index_column] = $column_data;\n } else {\n $this->get_data_column_row($layout, $index_row, $row_id);\n $row_data = $layout[$index_row];\n $this->set_data_config($row_data, array('width' => $width, 'class' => $class, 'hide_on_mobile' => $hide_on_mobile, 'hide_on_desktop' => $hide_on_desktop));\n $sub_layout['sub_layout'][$index_row] = $row_data;\n }\n update_post_meta($menu_item_id, 'mmcp_sub_layout', $sub_layout);\n wp_send_json_success(array('message' => __('save config data success!', 'mmcp')));\n } else {\n wp_send_json_error(array('message' => __('Could\\'t save config data', 'mmcp')));\n }\n } else {\n wp_send_json_error(array('message' => __('Could\\'t save config data', 'mmcp')));\n }\n } else {\n wp_send_json_error(array('message' => __('Could\\'t save config data', 'mmcp')));\n }\n }", "title": "" }, { "docid": "6092e11af636b72eb488ecbe42ef1a90", "score": "0.588314", "text": "public function init_form_fields() {\n $this->form_fields = array(\n 'enabled' => array(\n 'title' => __('Enable/Disable', 'wc_gateway_atom'),\n 'type' => 'checkbox',\n 'label' => __('Enable Atom Paynetz Module.', 'wc_gateway_atom'),\n 'default' => 'no',\n 'description' => 'Show in the Payment List as a payment option'\n ),\n 'title' => array(\n 'title' => __('Title:', 'wc_gateway_atom'),\n 'type' => 'text',\n 'default' => __('Atom Gateway Payments', 'wc_gateway_atom'),\n 'description' => __('This controls the title which the user sees during checkout.', 'wc_gateway_atom'),\n 'desc_tip' => true\n ),\n 'description' => array(\n 'title' => __('Description:', 'wc_gateway_atom'),\n 'type' => 'textarea',\n 'default' => __(\"Pay securely by Credit or Debit Card or Internet Banking through Atom Technologies Secure Servers.\"),\n 'description' => __('This controls the description which the user sees during checkout.', 'wc_gateway_atom'),\n 'desc_tip' => true\n ),\n 'atom_domain' => array(\n 'title' => __('Atom Domain', 'wc_gateway_atom'),\n 'type' => 'text',\n 'description' => __('Will be provided by Atom Paynetz Team after production movement', 'wc_gateway_atom'),\n 'desc_tip' => true\n ),\n 'login_id' => array(\n 'title' => __('Login Id', 'wc_gateway_atom'),\n 'type' => 'text',\n 'description' => __('As provided by Atom Paynetz Team', 'wc_gateway_atom'),\n 'desc_tip' => true\n ),\n 'password' => array(\n 'title' => __('Password', 'wc_gateway_atom'),\n 'type' => 'password',\n 'description' => __('As provided by Atom Paynetz Team', 'wc_gateway_atom'),\n 'desc_tip' => true\n ),\n 'atom_prod_id' => array(\n 'title' => __('Product ID', 'wc_gateway_atom'),\n 'type' => 'text',\n 'description' => __('Will be provided by Atom Paynetz Team after production movement', 'wc_gateway_atom'),\n 'desc_tip' => true\n ),\n\t\t\t\t'atom_port' => array(\n 'title' => __('Port Number', 'wc_gateway_atom'),\n 'type' => 'text',\n 'description' => __('80 for Test Server & 443 for Production Server', 'wc_gateway_atom'),\n 'desc_tip' => true\n ),\n );\n\t }", "title": "" }, { "docid": "ce43656e607b2fc631328e9c3a1524ea", "score": "0.58830374", "text": "public function savefeconfigAction()\n {\n $arguments = $this->getRequest()->getPost();\n $all_ok = true;\n $pool = \\Krexx::$pool;\n $filepath = $pool->krexxDir . 'config/Krexx.ini';\n\n // Whitelist of the vales we are accepting.\n $allowed_values = array('full', 'display', 'none');\n\n // Get the old values . . .\n $old_values = parse_ini_file($filepath, true);\n // . . . and remove our part.\n unset($old_values['feEditing']);\n\n // We need to correct the allowed settings, since we do not allow anything.\n unset($this->allowedSettingsNames['destination']);\n unset($this->allowedSettingsNames['maxfiles']);\n unset($this->allowedSettingsNames['debugMethods']);\n\n // Iterating through the form.\n foreach ($arguments as $key => $data) {\n if (is_array($data)) {\n foreach ($data as $setting_name => $value) {\n if (in_array($value, $allowed_values) && in_array($setting_name, $this->allowedSettingsNames)) {\n // Whitelisted values are ok.\n $old_values['feEditing'][$setting_name] = $value;\n } else {\n // Validation failed!\n $all_ok = false;\n $pool->messages->addMessage(htmlentities($value) . ' is not an allowed value!');\n }\n }\n }\n }\n\n // Now we must create the ini file.\n $ini = '';\n foreach ($old_values as $key => $setting) {\n $ini .= '[' . $key . ']' . PHP_EOL;\n foreach ($setting as $setting_name => $value) {\n $ini .= $setting_name . ' = \"' . $value . '\"' . PHP_EOL;\n }\n }\n\n // Now we should write the file!\n if ($all_ok) {\n $file = new Varien_Io_File();\n if ($file->write($filepath, $ini) === false) {\n $all_ok = false;\n $pool->messages->addMessage('Configuration file ' . $filepath . ' is not writeable!');\n }\n }\n\n // Something went wrong, we need to tell the user.\n if (!$all_ok) {\n Mage::getSingleton('core/session')->addError(\n strip_tags($pool->messages->outputMessages()),\n \"The settings were NOT saved.\"\n );\n } else {\n Mage::getSingleton('core/session')->addSuccess(\n \"The settings were saved to: <br /> \" . $filepath,\n \"The data was saved.\"\n );\n }\n\n $this->_redirect('*/*/feconfig');\n }", "title": "" }, { "docid": "8bd3058cff4e5a0331e320dba977081c", "score": "0.58806753", "text": "public function cleanConfig()\n {\n $this->config = array(\n \"database\" => array(\n \"type\" => \"mysql\",\n \"name\" => \"\",\n \"user\" => \"\",\n \"password\" => \"\",\n \"address\" => \"\",\n \"charset\" => \"\",\n ),\n \"setting\" => array(\n \"title\" => \"Default Title\",\n \"charset\" => \"utf-8\",\n \"template\" => \"standard\",\n \"time_zone\" => \"( GMT ) London\",\n \"date_format\" => \"H:i\",\n \"time_format\" => \"m/d/y\",\n \"file_prev\" => \"0777\",\n \"folder_prev\" => \"0777\",\n \"lang\" => \"eng\",\n ),\n );\n }", "title": "" }, { "docid": "8d5e0c7b9131941c01dae966ebb0422e", "score": "0.5874846", "text": "protected function getConfigFormValues()\n {\n return array(\n 'PS_CITIES_LIVE_MODE' => Configuration::get('PS_CITIES_LIVE_MODE', true),\n 'PS_CITIES_ACCOUNT_EMAIL' => Configuration::get('PS_CITIES_ACCOUNT_EMAIL', '[email protected]'),\n 'PS_CITIES_ACCOUNT_PASSWORD' => Configuration::get('PS_CITIES_ACCOUNT_PASSWORD', null),\n );\n }", "title": "" }, { "docid": "3d14de48d7eea60dfd8f25aa25fb917d", "score": "0.5869815", "text": "function onlineserver_getConfigArray()\n{\n return array(\n // Friendly display name for the module\n 'FriendlyName' => array(\n 'Type' => 'System',\n 'Value' => 'Online Server',\n ),\n 'Url' => array(\n 'Type' => 'text',\n 'Size' => '',\n 'Default' => '',\n 'Description' => 'Enter OnlineServer API Url, Include https://',\n ),\n // a text field type allows for single line text input\n 'Username' => array(\n 'Type' => 'text',\n 'Size' => '25',\n 'Default' => '',\n 'Description' => 'Enter your OnlineServer username Or Email',\n ),\n // a password field type allows for masked text input\n 'Password' => array(\n 'Type' => 'password',\n 'Size' => '25',\n 'Default' => '',\n 'Description' => 'Enter your OnlineServer password',\n ),\n \"WhoisPrivacyProtectionPrice\" => array\n (\n \"FriendlyName\" => \"Whois privacy protection Price\",\n \"Type\" => \"text\",\n \"Size\" => \"100\",\n \"Description\" => \"Price For Whois privacy protection , (Dollar)\",\n \"Default\" => \"1.5\"\n ),\n \"SpamFilteringPrice\" => array\n (\n \"FriendlyName\" => \"Spam Filtering Price\",\n \"Type\" => \"text\",\n \"Size\" => \"100\",\n \"Description\" => \"Price For Spam filtering , (Dollar)\",\n \"Default\" => \"1.5\"\n ),\n );\n}", "title": "" }, { "docid": "58fbab8dd63814ab1e59ee35a05582a1", "score": "0.5869729", "text": "function init_form_fields () {\n\n \t$this->form_fields = array(\n \t\t\t\t\t\t'enabled' => array(\n\t\t\t\t\t\t\t\t\t\t\t'title' => __( 'Enable/Disable', 'woothemes' ),\n\t\t\t\t\t\t\t\t\t\t\t'label' => __( 'Enable CPS Solidstone', 'woothemes' ),\n\t\t\t\t\t\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t\t\t\t\t\t'description' => __( 'This controls whether or not this gateway is enabled within WooCommerce.', 'woothemes' ),\n\t\t\t\t\t\t\t\t\t\t\t'default' => 'yes'\n\t\t\t\t\t\t\t\t\t\t),\n \t\t\t\t\t\t'title' => array(\n \t\t\t\t\t\t\t\t\t\t'title' => __( 'Title', 'woothemes' ),\n \t\t\t\t\t\t\t\t\t\t'type' => 'text',\n \t\t\t\t\t\t\t\t\t\t'description' => __( 'This controls the title which the user sees during checkout.', 'woothemes' ),\n \t\t\t\t\t\t\t\t\t\t'default' => __( 'Cornerstone Payment Systems', 'woothemes' )\n \t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'description' => array(\n\t\t\t\t\t\t\t\t\t\t\t'title' => __( 'Description', 'woothemes' ),\n\t\t\t\t\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t\t\t\t\t'description' => __( 'This controls the description which the user sees during checkout.', 'woothemes' ),\n\t\t\t\t\t\t\t\t\t\t\t'default' => ''\n\t\t\t\t\t\t\t\t\t\t),\n \t\t\t\t\t\t'live_url' => array(\n \t\t\t\t\t\t\t\t\t\t'title' => __( 'Live URL', 'woothemes' ),\n \t\t\t\t\t\t\t\t\t\t'type' => 'text',\n \t\t\t\t\t\t\t\t\t\t'description' => __( 'This is the payment gateway URL provided to you by Cornerstone.', 'woothemes' ),\n \t\t\t\t\t\t\t\t\t\t'default' => 'https://give.cornerstone.cc/The+Page+of+Infinite+Testing/checkout'\n \t\t\t\t\t\t\t\t\t),\n \t\t\t\t\t\t'sandbox_url' => array(\n \t\t\t\t\t\t\t\t\t\t'title' => __( 'Sandbox URL', 'woothemes' ),\n \t\t\t\t\t\t\t\t\t\t'type' => 'text',\n \t\t\t\t\t\t\t\t\t\t'description' => __( 'This is the sandbox payment gateway URL provided to you by Cornerstone for testing.', 'woothemes' ),\n \t\t\t\t\t\t\t\t\t\t'default' => 'https://give.cornerstone.cc/The+Page+of+Infinite+Testing/checkout'\n \t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'testmode' => array(\n\t\t\t\t\t\t\t\t\t\t\t'title' => __( 'CPS Solidstone Sandbox', 'woothemes' ),\n\t\t\t\t\t\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t\t\t\t\t\t'description' => __( 'Place the payment gateway in development mode.', 'woothemes' ),\n\t\t\t\t\t\t\t\t\t\t\t'default' => 'yes'\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'send_debug_email' => array(\n\t\t\t\t\t\t\t\t\t\t\t'title' => __( 'Send Debug Emails', 'woothemes' ),\n\t\t\t\t\t\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t\t\t\t\t\t'label' => __( 'Send debug e-mails for transactions through the CPS gateway (sends on successful transaction as well).', 'woothemes' ),\n\t\t\t\t\t\t\t\t\t\t\t'default' => 'yes'\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'debug_email' => array(\n\t\t\t\t\t\t\t\t\t\t\t'title' => __( 'Who Receives Debug E-mails?', 'woothemes' ),\n\t\t\t\t\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t\t\t\t\t'description' => __( 'The e-mail address to which debugging error e-mails are sent when in test mode.', 'woothemes' ),\n\t\t\t\t\t\t\t\t\t\t\t'default' => get_option( 'admin_email' )\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\n }", "title": "" }, { "docid": "839c6b97201d85ceb77076977262d870", "score": "0.5863522", "text": "public function getConfigForm()\n {\n if (Rediscache\\Utility::isDebugMode()) {\n return ;\n }\n\n $connection_configuration = array();\n $database_options = array();\n $fpc = array();\n // $session_cache = array();\n\n if ($this->redis) {\n for ($i = 0; $i < (int) $this->redis->config(\"GET\", 'databases')['databases']; $i++) {\n $database_options[] = array(\n 'id_option' => $i,\n 'name' => $this->l('DB') . ' ' . $i,\n );\n }\n }\n\n $connection_inputs = array(\n 'enable_cache' => array(\n 'type' => 'switch',\n 'label' => $this->l('Enable Redis Cache'),\n 'name' => 'PS_REDIS_STATUS',\n 'desc' =>\n $this->l(\n 'Enables Redis as a cache backend.'\n ),\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => 1,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => 0,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n 'connection_string' => array(\n 'type' => 'text',\n 'label' => $this->l('Redis connection string'),\n 'name' => 'PS_REDIS_CONNECTION',\n 'class' => 'fixed-width-xl',\n 'desc' =>\n $this->l(\n 'TCP or UNIX socket.'\n ),\n ),\n 'cache_prefix' => array(\n 'type' => 'text',\n 'label' => $this->l('Redis cache prefix'),\n 'name' => 'PS_REDIS_PREFIX',\n 'class' => 'fixed-width-xl',\n ),\n 'redis_pass' => array(\n 'type' => 'password',\n 'label' => $this->l('Password (optional)'),\n 'name' => 'PS_REDIS_PASSWORD',\n 'class' => 'fixed-width-lg',\n 'desc' =>\n $this->l(\n 'Provide a password to your redis server connection.'\n ),\n ),\n 'redis_custom_conf' => array(\n 'type' => 'textarea',\n 'label' => $this->l('Override Redis Configuration'),\n 'name' => 'PS_REDIS_CUSTOM_CONFIG',\n 'cols' => 30,\n 'rows' => 10,\n 'desc' =>\n $this->l(\n 'Define custom redis configuration formatted as \"key:value\" (without quotes). One per line.'\n ),\n 'conf_type' => self::MODE_ADVANCED,\n ),\n 'persistent_connection' => array(\n 'type' => 'switch',\n 'label' => $this->l('Use persistent connection'),\n 'name' => 'PS_REDIS_PERSISTENT',\n 'desc' =>\n $this->l(\n 'Establishes a persistent connection\n instead of a standard connection.'\n ),\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => 1,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => 0,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n 'cache_db' => array(\n 'type' => 'select',\n 'label' => $this->l('Redis Database'),\n 'name' => 'PS_REDIS_DB',\n 'class' => 'fixed-width-xl',\n 'options' => array(\n 'query' => $database_options,\n 'id' => 'id_option',\n 'name' => 'name',\n ),\n 'dependency' => array(\n 'redis' => true,\n ),\n ),\n );\n\n $this->massageConfigurationInputs($connection_inputs);\n\n $connection_configuration['form'] = array(\n 'legend' => array(\n 'title' => $this->l('Redis connection'),\n 'icon' => 'icon-cogs',\n ),\n 'input' => $connection_inputs,\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n );\n\n $fpc_inputs = array(\n 'cache_index_page' => array(\n 'type' => 'switch',\n 'label' => $this->l('Cache Home Page'),\n 'name' => 'PS_REDIS_CACHE_OBJECT_INDEX',\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => 1,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => 0,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n 'cache_product_pages' => array(\n 'type' => 'switch',\n 'label' => $this->l('Cache Product Pages'),\n 'name' => 'PS_REDIS_CACHE_OBJECT_PRODUCTS',\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => 1,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => 0,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n 'cache_category_pages' => array(\n 'type' => 'switch',\n 'label' => $this->l('Cache Category Pages'),\n 'name' => 'PS_REDIS_CACHE_OBJECT_CATEGORIES',\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => 1,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => 0,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n 'cache_cms_pages' => array(\n 'type' => 'switch',\n 'label' => $this->l('Cache CMS Pages'),\n 'name' => 'PS_REDIS_CACHE_OBJECT_CMS',\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => 1,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => 0,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n 'cache_contact_page' => array(\n 'type' => 'switch',\n 'label' => $this->l('Cache Contact Page'),\n 'name' => 'PS_REDIS_CACHE_OBJECT_CONTACT',\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => 1,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => 0,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n 'cache_stores_page' => array(\n 'type' => 'switch',\n 'label' => $this->l('Cache Stores Page'),\n 'name' => 'PS_REDIS_CACHE_OBJECT_STORES',\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => 1,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => 0,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n 'cache_sitemap_page' => array(\n 'type' => 'switch',\n 'label' => $this->l('Cache Sitemap Page'),\n 'name' => 'PS_REDIS_CACHE_OBJECT_SITEMAP',\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => 1,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => 0,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n 'cache_db_queries' => array(\n 'type' => 'switch',\n 'label' => $this->l('Cache Database Queries'),\n 'name' => 'PS_REDIS_CACHE_OBJECT_DB_QUERIES',\n 'desc' => '<div class=\"alert alert-warning\">' .\n $this->l('Caching database queries in combination '\n . ' with other modules may cause issues such as duplicated orders.')\n . '<br />'\n . $this->l('If you experience any issues it is recommended to turn off this feature.')\n . '</div>',\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => 1,\n 'label' => $this->l('Enabled'),\n ),\n array(\n 'id' => 'active_off',\n 'value' => 0,\n 'label' => $this->l('Disabled'),\n ),\n ),\n ),\n );\n\n $fpc['form'] = array(\n 'legend' => array(\n 'title' => $this->l('Full-Page Cache & Database Caching Settings'),\n 'icon' => 'icon-cogs',\n ),\n 'input' => $fpc_inputs,\n 'submit' => array(\n 'title' => $this->l('Save'),\n ),\n );\n\n // $session_cache_inputs = array(\n // 'session_cache' => array(\n // 'type' => 'switch',\n // 'label' => $this->l('Enable Session Cache'),\n // 'name' => 'PS_REDIS_SESSION_CACHE_STATUS',\n // 'values' => array(\n // array(\n // 'id' => 'active_on',\n // 'value' => 1,\n // 'label' => $this->l('Enabled'),\n // ),\n // array(\n // 'id' => 'active_off',\n // 'value' => 0,\n // 'label' => $this->l('Disabled'),\n // ),\n // ),\n // ),\n // 'session_connection_string' => array(\n // 'type' => 'text',\n // 'label' => $this->l('Redis connection string'),\n // 'name' => 'PS_REDIS_SESSION_CONNECTION',\n // 'class' => 'fixed-width-xl',\n // 'desc' =>\n // $this->l(\n // 'TCP or UNIX socket.'\n // ),\n // ),\n // 'session_redis_pass' => array(\n // 'type' => 'password',\n // 'label' => $this->l('Password (optional)'),\n // 'name' => 'PS_REDIS_SESSION_PASSWORD',\n // 'class' => 'fixed-width-lg',\n // 'desc' =>\n // $this->l(\n // 'Provide a password to your redis server connection.'\n // ),\n // ),\n // 'session_cache_db' => array(\n // 'type' => 'select',\n // 'label' => $this->l('Redis Session Database'),\n // 'name' => 'PS_REDIS_SESSION_DB',\n // 'class' => 'fixed-width-xl',\n // 'options' => array(\n // 'query' => $database_options,\n // 'id' => 'id_option',\n // 'name' => 'name',\n // ),\n // 'dependency' => array(\n // 'redis' => true,\n // ),\n // ),\n // );\n\n // $this->massageConfigurationInputs($session_cache_inputs);\n\n // $session_cache['form'] = array(\n // 'legend' => array(\n // 'title' => $this->l('PHP Session Cache (Redis)'),\n // 'icon' => 'icon-cogs',\n // ),\n // 'input' => $session_cache_inputs,\n // 'submit' => array(\n // 'title' => $this->l('Save'),\n // ),\n // );\n\n $helper = new HelperForm();\n $helper->show_toolbar = false;\n $helper->table = $this->table;\n $lang = new Language((int) Configuration::get('PS_LANG_DEFAULT'));\n $helper->default_form_language = $lang->id;\n $helper->allow_employee_form_lang\n = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ?\n Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;\n $helper->identifier = $this->identifier;\n $helper->submit_action = 'submit_' . $this->name;\n $helper->currentIndex\n = $this->context->link->getAdminLink('AdminModules', false)\n . '&configure=' . $this->name\n . '&tab_module=' . $this->tab\n . '&module_name=' . $this->name;\n\n $helper->token = Tools::getAdminTokenLite('AdminModules');\n $helper->tpl_vars = array(\n 'fields_value' => RedisHelper::getConfig(),\n 'languages' => $this->context->controller->getLanguages(),\n 'id_language' => $this->context->language->id,\n );\n\n return $helper->generateForm(array($connection_configuration, $fpc));\n }", "title": "" }, { "docid": "a16b511caeddda3ed45d3b4a0f2baca4", "score": "0.58588177", "text": "public function make_field($cfg=null)\n\t{\n\t\tif ( is_array($cfg) && isset($cfg['name']) ){\n\t\t\tforeach ( $cfg as $k => $v ){\n\t\t\t\tif ( isset($this->_current[$k]) ){\n\t\t\t\t\tif ( is_array($v) ){\n\t\t\t\t\t\tforeach ( $v as $k1 => $v1 ){\n\t\t\t\t\t\t\tif ( isset($this->_current[$k][$k1]) && $this->_current[$k][$k1] === $v1 ){\n\t\t\t\t\t\t\t\tunset($cfg[$k][$k1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if ( $this->_current[$k] === $v ){\n\t\t\t\t\t\tunset($cfg[$k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Global config creates a var (simplest as possible) to recreate forms and fields\n\t\t\tarray_push($this->global_cfg['elements'], array_filter(array_map(function($a){\n\t\t\t\tif ( is_object($a) ){\n\t\t\t\t\treturn get_class($a);\n\t\t\t\t}\n\t\t\t\telse if ( is_array($a) ){\n\t\t\t\t\tforeach($a as $i => $aa ){\n\t\t\t\t\t\tif ( is_object($aa) ){\n\t\t\t\t\t\t\t$a[$i] = get_class($aa);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( is_string($aa) && empty($aa) ){\n\t\t\t\t\t\t\tunset($a[$i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ( is_array($aa) && count($aa) === 0 ){\n\t\t\t\t\t\t\tunset($a[$i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn $a;\n\t\t\t},$cfg), function($a){\n\t\t\t\treturn ( is_string($a) && !empty($a) ) || ( is_array($a) && count($a) > 0 ) || ( !is_string($a) && !is_array($a) );\n\t\t\t}));\n\t\t\t\n\t\t\t$tmp = $this->_current;\n\t\t\t$tmp['id'] = isset($cfg['id']) ? $cfg['id'] : \\bbn\\str\\text::genpwd(20,15);\n\t\t\tif ( !isset($cfg['options']) ){\n\t\t\t\t$cfg['options'] = array();\n\t\t\t}\n\t\t\tif ( isset($cfg['options']['sql'], $cfg['options']['db']) && strlen($cfg['options']['sql']) > 5 ){\n\t\t\t\t$cfg['options']['dataSource'] = array();\n\t\t\t\t$count = ( $r = $cfg['options']['db']->query($cfg['options']['sql']) ) ? $r->count() : 0;\n\t\t\t\tif ( $count <= self::max_values_at_once ){\n\t\t\t\t\tif ( $ds = $cfg['options']['db']->get_irows($cfg['options']['sql']) ){\n\t\t\t\t\t\tforeach ( $ds as $d ){\n\t\t\t\t\t\t\tarray_push($cfg['options']['dataSource'], array('value' => $d[0], 'text' => $d[1]));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$cfg['field'] = 'autocomplete';\n\t\t\t\t\t//$cfg['options']['dataSource']['']\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( isset($cfg['field']) ) {\n\t\t\t\tswitch ( $cfg['field'] )\n\t\t\t\t{\n\t\t\t\t\tcase 'datepicker':\n\t\t\t\t\t\t$tmp['tag'] = 'input';\n\t\t\t\t\t\t$tmp['options']['type'] = 'date';\n\t\t\t\t\t\t$tmp['options']['maxlength'] = 10;\n\t\t\t\t\t\t$tmp['options']['size'] = 10;\n\t\t\t\t\t\t$tmp['options']['culture'] = $tmp['lang'].'-'.strtoupper($tmp['lang']);\n\t\t\t\t\t\t$tmp['options']['format'] = \"yyyy-MM-dd\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'timepicker':\n\t\t\t\t\t\t$tmp['tag'] = 'input';\n\t\t\t\t\t\t$tmp['options']['type'] = 'time';\n\t\t\t\t\t\t$tmp['options']['maxlength'] = 8;\n\t\t\t\t\t\t$tmp['options']['size'] = 8;\n\t\t\t\t\t\t$tmp['options']['culture'] = $tmp['lang'].'-'.strtoupper($tmp['lang']);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'datetimepicker':\n\t\t\t\t\t\t$tmp['tag'] = 'input';\n\t\t\t\t\t\t$tmp['options']['type'] = 'datetime';\n\t\t\t\t\t\t$tmp['options']['maxlength'] = 19;\n\t\t\t\t\t\t$tmp['options']['size'] = 20;\n\t\t\t\t\t\t$tmp['options']['culture'] = $tmp['lang'].'-'.strtoupper($tmp['lang']);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'rte':\n\t\t\t\t\t\t$tmp['tag'] = 'textarea';\n\t\t\t\t\t\t$tmp['options']['rows'] = 6;\n\t\t\t\t\t\t$tmp['options']['cols'] = 20;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'dropdownlist':\n\t\t\t\t\t\t$tmp['tag'] = 'input';\n\t\t\t\t\t\t$tmp['options']['type'] = 'text';\n\t\t\t\t\t\t$tmp['options']['dataSource'] = array();\n\t\t\t\t\t\t$tmp['options']['dataTextField'] = \"text\";\n\t\t\t\t\t\t$tmp['options']['dataValueField'] = \"value\";\n\t\t\t\t\t\t$tmp['options']['change'] = '';\n\t\t\t\t\t\t$tmp['options']['size'] = false;\n\t\t\t\t\t\t$tmp['options']['css']['width'] = 'auto';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'checkbox':\n\t\t\t\t\t\t$tmp['tag'] = 'input';\n\t\t\t\t\t\t$tmp['value'] = 1;\n\t\t\t\t\t\t$tmp['options']['type'] = 'checkbox';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'radio':\n\t\t\t\t\t\t$tmp['tag'] = 'input';\n\t\t\t\t\t\t$tmp['options']['type'] = 'radio';\n\t\t\t\t\t\t$tmp['options']['value'] = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'hidden':\n\t\t\t\t\t\t$tmp['tag'] = 'input';\n\t\t\t\t\t\t$tmp['options']['type'] = 'hidden';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'text':\n\t\t\t\t\t\t$tmp['tag'] = 'input';\n\t\t\t\t\t\t$tmp['options']['type'] = 'text';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'numerictextbox':\n\t\t\t\t\t\t$tmp['tag'] = 'input';\n\t\t\t\t\t\t$tmp['options']['type'] = 'number';\n\t\t\t\t\t\t$tmp['options']['min'] = 0;\n\t\t\t\t\t\t$tmp['options']['max'] = 100;\n\t\t\t\t\t\t$tmp['options']['format'] = \"n\";\n\t\t\t\t\t\t$tmp['options']['decimals'] = 0;\n\t\t\t\t\t\t$tmp['options']['step'] = 1;\n\t\t\t\t\t\t$tmp['options']['culture'] = $tmp['lang'].'-'.strtoupper($tmp['lang']);\n\t\t\t\t\t\tif ( !isset($cfg['options']['max']) && isset($cfg['options']['maxlength']) ){\n\t\t\t\t\t\t\t$max = '';\n\t\t\t\t\t\t\t$max_length = $cfg['options']['maxlength'];\n\t\t\t\t\t\t\tif ( isset($cfg['options']['decimals']) && $cfg['options']['decimals'] > 0 ){\n\t\t\t\t\t\t\t\t$max_length -= ( $cfg['options']['decimals'] + 1 );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfor ( $i = 0; $i < $max_length; $i++ ){\n\t\t\t\t\t\t\t\t$max .= '9';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$cfg['options']['max'] = ( (float)$max > (int)$max ) ? (float)$max : (int)$max;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Size calculation\n\t\t\tif ( isset($cfg['options']['maxlength']) && !isset($cfg['options']['size']) ){\n\t\t\t\tif ( $cfg['options']['maxlength'] <= 20 ){\n\t\t\t\t\t$cfg['options']['size'] = $cfg['options']['maxlength'];\n\t\t\t\t}\n\t\t\t\telse if ( $cfg['options']['maxlength'] <= 50 ){\n\t\t\t\t\t$cfg['options']['size'] = 20 + floor( ( $cfg['options']['maxlength'] - 20 ) / 2 );\n\t\t\t\t}\n\t\t\t\telse if ( $cfg['options']['maxlength'] <= 200 ){\n\t\t\t\t\t$cfg['options']['size'] = floor($cfg['options']['maxlength']/2);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$cfg['options']['size'] = 100;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( isset($cfg['options']['size'], $cfg['options']['minlength']) && $cfg['options']['size'] < $cfg['options']['minlength']){\n\t\t\t\t$cfg['options']['size'] = $cfg['options']['minlength'];\n\t\t\t}\n\t\t\tif ( isset($cfg['options']) ){\n\t\t\t\t$cfg['options'] = array_merge($tmp['options'], $cfg['options']);\n\t\t\t}\n\t\t\t//var_dump($cfg);\n\t\t\t$cfg = array_merge($tmp, $cfg);\n\t\t\t//var_dump($cfg);\n\t\t\tif ( isset($cfg['field']) && !$cfg['script'] ){\n\t\t\t\t$kkeys = array_keys($this->kendo);\n\t\t\t\tif ( ( $i = array_search($cfg['field'], array_map(function($a){return strtolower($a);}, $kkeys)) ) !== false ){\n\t\t\t\t\t$i = $kkeys[$i];\n\t\t\t\t\t$widget_cfg = array();\n\t\t\t\t\tforeach ( $this->kendo[$i] as $o ){\n\t\t\t\t\t\tif ( isset($cfg['options'][$o]) ){\n\t\t\t\t\t\t\t$widget_cfg[$o] = $cfg['options'][$o];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//var_dump($widget_cfg);\n\t\t\t\t\t$cfg['script'] = '$(\"#'.$cfg['id'].'\").kendo'.$i.'('.json_encode((object)$widget_cfg).');';\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tswitch ( $cfg['field'] )\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 'rte':\n\t\t\t\t\t\t$cfg['script'] = 'CKEDITOR.replace(\"'.$cfg['id'].'\");';\n\t\t\t\t\t\t// autoParagraph: inline = true\n\t\t\t\t\t\t// autogrow: true|false minheight/maxheight\n\t\t\t\t\t\t// baseHref: prendre de bbn_sites\n\t\t\t\t\t\t// bodyClass\n\t\t\t\t\t\t// bodyId\n\t\t\t\t\t\t// \n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase 'text':\n\t\t\t\t\t\tif ( ( strpos($cfg['name'] , 'tel') === 0 ) || ( strpos($cfg['name'] , 'fax') === 0 ) || strpos($cfg['name'] , 'phone') !== false ){\n\t\t\t\t\t\t\t$cfg['script'] = '$(\"#'.$cfg['id'].'\").mask(\"99 99 99 99 99\");';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$t = new \\bbn\\html\\input($cfg);\n\t\t\tarray_push($this->items, $t);\n\t\t\treturn $t;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d51ef4b23427a6c0533d040ca3b64c52", "score": "0.58546257", "text": "function form_init_data()\n {\n // Initialize the form fields\n $this->set_hidden_element_value('_action', WPST_ACTION_GLOBAL_UPDATE) ;\n $this->set_element_value('Results', WPST_PUBLIC) ;\n\n // How many swimmer options does this configuration support?\n\n $options = get_option(WPST_OPTION_SWIMMER_OPTION_COUNT) ;\n\n if ($options === false) $options = WPST_DEFAULT_SWIMMER_OPTION_COUNT ;\n\n // Load the swimmer options\n\n for ($oc = 1 ; $oc <= $options ; $oc++)\n {\n $oconst = constant('WPST_OPTION_SWIMMER_OPTION' . $oc) ;\n $mconst = constant('WPST_OPTION_SWIMMER_OPTION' . $oc . '_MODE') ;\n $lconst = constant('WPST_OPTION_SWIMMER_OPTION' . $oc . '_LABEL') ;\n\n $mode = get_option($mconst) ;\n $label = get_option($lconst) ;\n $label_cb = $label . CHECKBOX_SUFFIX ;\n\n if (($mode == WPST_USER) ||\n ((int)$userdata->user_level >= WPST_EDITOR_PERMISSION))\n {\n $this->set_element_value($label_cb, false) ;\n switch (get_option($oconst))\n {\n case WPST_URL:\n case WPST_EMAIL:\n case WPST_REQUIRED:\n case WPST_OPTIONAL:\n $this->set_element_value($label, WPST_NULL_STRING) ;\n break ;\n\n case WPST_CLOTHING_SIZE:\n $this->set_element_value($label, WPST_CLOTHING_SIZE_YL_VALUE) ;\n break ;\n\n case WPST_YES_NO:\n $this->set_element_value($label, WPST_YES) ;\n break ;\n\n case WPST_NO_YES:\n $this->set_element_value($label, WPST_NO) ;\n break ;\n\n case WPST_DISABLED:\n default:\n break ;\n }\n }\n }\n }", "title": "" }, { "docid": "428284d023bc4cfad013295012b05c4d", "score": "0.5843073", "text": "function nmb_config()\n{\n return array(\n // the friendly display name for a payment gateway should be\n // defined here for backwards compatibility\n 'FriendlyName' => array(\n 'Type' => 'System',\n 'Value' => 'Credit/Debit Card(Visa, Mastercard & Union Pay)',\n ),\n // A text field for Merchant ID\n 'merchantID' => array(\n 'FriendlyName' => 'MERCHANT ID',\n 'Type' => 'text',\n 'Size' => '25',\n 'Description' => 'Enter your merchant ID here',\n ),\n // A text field for API Password\n 'apiPassword' => array(\n 'FriendlyName' => 'API PASSWORD',\n 'Type' => 'text',\n 'Size' => '50',\n 'Description' => 'Enter your merchant API Password'\n ),\n // A text field for Merchant Username\n 'merchantUsername' => array(\n 'FriendlyName' => 'MERCHANT USERNAME',\n 'Type' => 'text',\n 'Size' => '50',\n 'Description' => 'Enter merchant username here, format: merchant.merchantID',\n ),\n // Sand Box input Field\n 'testMode' => array(\n 'FriendlyName' => 'Test Mode',\n 'Type' => 'yesno',\n 'Description' => 'Tick this to use demo API(the merchant ID and API Password entered above must belong to a demo merchant',\n ),\n );\n}", "title": "" }, { "docid": "ab50feea12596893644cb4093203cac6", "score": "0.58288395", "text": "private function getFormConfig(string $config)\n {\n // If it just updated\n if (isset($this->request->post[\"payment_mobbex_$config\"]))\n return $this->request->post[\"payment_mobbex_$config\"];\n\n return $this->config->get(\"payment_mobbex_$config\");\n }", "title": "" }, { "docid": "68091675c019c46bb2ac98a86e229cce", "score": "0.58288366", "text": "function modbus_chart_table_report_content_type_edit_form_submit($form, &$form_state) {\r\n foreach (array_keys($form_state['plugin']['defaults']) as $key) {\r\n $form_state['conf'][$key] = $form_state['values'][$key];\r\n }\r\n}", "title": "" }, { "docid": "9a32ecb4b142219ef0352de7d896373c", "score": "0.58255434", "text": "function blockonomics_config() {\n\tadd_hook('AdminAreaFooterOutput', 1, function($vars) {\n return <<<HTML\n\t\t<script type=\"text/javascript\">\n\t\t\tvar inputFields = document.getElementsByName('field[ApiSecret]');\n\t\t\tinputFields.forEach(function(element) {\n\t\t\t\telement.readOnly = true;\n\t\t\t});\n\n\t\t\tvar inputLabels = document.getElementsByClassName('fieldlabel');\n\n\t\t\tfor(var i = 0; i < inputLabels.length; i++) {\n\t\t\t\tinputLabels[i].style.paddingRight = '20px';\n\t\t\t}\n\t\t</script>\nHTML;\n\n\t});\n\n\t$blockonomics = new Blockonomics();\n\t$blockonomics->createOrderTableIfNotExist();\n\t$blockonomics->addOrderStatusIfNotExists();\n\t$secret_value = $blockonomics->getCallbackSecret();\n\t\n\treturn array(\n\t\t'FriendlyName' => array(\n\t\t\t'Type' => 'System',\n\t\t\t'Value' => 'Blockonomics'\n\t\t),\n\t\t'ApiKey' => array(\n\t\t\t'FriendlyName' => 'API Key',\n\t\t\t'Description' => 'BLOCKONOMICS API KEY (Generate from <a target=\"_blank\" href=\"https://www.blockonomics.co/blockonomics#/settings\">Wallet Watcher</a> > Settings) ',\n\t\t\t'Type' => 'text'\n\t\t),\n\t\t'ApiSecret' => array(\n\t\t\t'FriendlyName' => 'Callback URL',\n\t\t\t'Description' => 'CALLBACK URL (Copy this url and set in <a target=\"_blank\" href=\"https://www.blockonomics.co/merchants#/page6\">Merchants</a>)',\n\t\t\t'Type' => 'text'\n\t\t)\n\t);\n}", "title": "" }, { "docid": "68f992e2eda421dbcb3faee8fd7e9b55", "score": "0.5817455", "text": "public function configuration() {\n $loginuserid = $this->Session->read('Auth.Super.id');\n if (!$this->Common->checkPermissionByaction($this->params['controller'], 'configuration', $loginuserid)) {\n $this->Session->setFlash(__(\"Permission Denied\"));\n $this->redirect(array('controller' => 'super', 'action' => 'dashboard'));\n }\n $this->layout = \"super_dashboard\";\n $this->loadModel('MainSiteSetting');\n $data = '';\n if ($this->request->data) {\n $this->request->data = $this->Common->trimValue($this->request->data);\n $this->MainSiteSetting->saveConfiguration($this->request->data);\n $this->Session->setFlash(__(\"Smtp configuration successfully updated\"), 'alert_success');\n }\n $configInfo = $this->MainSiteSetting->getSiteSettings();\n $this->request->data = $configInfo;\n }", "title": "" }, { "docid": "25a463acb83b2d3d4457a5b05994e3de", "score": "0.58060217", "text": "function challonge_settings_form()\n{\n $form = array(\n 'challonge_api_key' => array(\n '#type' => 'textfield',\n '#title' => t('Challonge\\'s API Key'),\n '#description' => t('To get your API Key at Challonge, go to your Account Settings on Challonge (https://challonge.com/user/edit). Click the \"Password & API Key\" tab to see your API Key. Just generate an API Key if you are missing one.'),\n '#default_value' => variable_get('challonge_api_key', ''),\n '#required' => true\n ),\n 'challonge_profile_name_field' => array(\n '#type' => 'textfield',\n '#title' => t('Profile Field for Participant Name'),\n '#description' => t('The profile field to use when passing the name of the participant to Challonge. Use \"name\" if you would like to pass the username.'),\n '#default_value' => variable_get('challonge_profile_name_field', 'name'),\n '#required' => true\n )\n );\n\n return system_settings_form($form);\n}", "title": "" }, { "docid": "fbf8399c134476c34b71a49a4d10f70c", "score": "0.58042216", "text": "function townsec_key_akm_key_settings_form($defaults) {\n $form = array();\n \n $form['primary_server'] = array(\n '#type' => 'fieldset',\n '#title' => t('Primary Server Settings'),\n '#collapsible' => TRUE,\n '#collapsed' => FALSE,\n );\n $form['backup_server'] = array(\n '#type' => 'fieldset',\n '#title' => t('Backup Server Settings'),\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n $form['primary_server']['client_cert_and_key_file'] = array(\n '#type' => 'textfield',\n '#title' => t('Location of Client X509 Certificate and Private Key File'),\n '#description' => t('The file location relative to the root Drupal directory (e.g. %rel).', array(\n '%rel' => '../private/cert/local.pem',\n )),\n '#default_value' => isset($defaults['primary_server']['client_cert_and_key_file']) ? $defaults['primary_server']['client_cert_and_key_file'] : '',\n '#required' => TRUE,\n );\n $form['primary_server']['ca_cert_file'] = array(\n '#type' => 'textfield',\n '#title' => t('Location of Certificate Authority Certificate File'),\n '#description' => t('The file location relative to the root Drupal directory (e.g. %rel).', array(\n '%rel' => '../private/cert/ca.pem',\n )),\n '#default_value' => isset($defaults['primary_server']['ca_cert_file']) ? $defaults['primary_server']['ca_cert_file'] : '',\n '#required' => TRUE,\n );\n $form['backup_server']['client_cert_and_key_file'] = array(\n '#type' => 'textfield',\n '#title' => t('Location of Client X509 Certificate and Private Key File'),\n '#description' => t('The file location relative to the root Drupal directory (e.g. %rel).', array(\n '%rel' => '../private/cert/local.pem',\n )),\n '#default_value' => isset($defaults['backup_server']['client_cert_and_key_file']) ? $defaults['backup_server']['client_cert_and_key_file'] : '',\n '#required' => FALSE,\n );\n $form['backup_server']['ca_cert_file'] = array(\n '#type' => 'textfield',\n '#title' => t('Location of Certificate Authority Certificate File'),\n '#description' => t('The file location relative to the root Drupal directory (e.g. %rel).', array(\n '%rel' => '../private/cert/ca.pem',\n )),\n '#default_value' => isset($defaults['backup_server']['ca_cert_file']) ? $defaults['backup_server']['ca_cert_file'] : '',\n '#required' => FALSE,\n );\n $form['primary_server']['akm_host_server'] = array(\n '#type' => 'textfield',\n '#title' => t('AKM Host Server'),\n '#description' => t('Enter the AKM host server name or IP number.'),\n '#default_value' => isset($defaults['primary_server']['akm_host_server']) ? $defaults['primary_server']['akm_host_server'] : '',\n '#required' => TRUE,\n );\n $form['backup_server']['akm_backup_server'] = array(\n '#type' => 'textfield',\n '#title' => t('AKM Backup Server'),\n '#description' => t('Enter the AKM Backup server name or IP number.'),\n '#default_value' => isset($defaults['backup_server']['akm_backup_server']) ? $defaults['backup_server']['akm_backup_server'] : '',\n '#required' => FALSE,\n );\n $form['primary_server']['akm_retrieve_port'] = array(\n '#type' => 'textfield',\n '#title' => t('Key Retrieval Port'),\n '#description' => t('Enter the number of the port for key retrieval.'),\n '#default_value' => isset($defaults['primary_server']['akm_retrieve_port']) ? $defaults['primary_server']['akm_retrieve_port'] : '',\n '#required' => TRUE,\n );\n $form['backup_server']['akm_retrieve_port'] = array(\n '#type' => 'textfield',\n '#title' => t('Key Retrieval Port'),\n '#description' => t('Enter the number of the port for key retrieval.'),\n '#default_value' => isset($defaults['backup_server']['akm_retrieve_port']) ? $defaults['backup_server']['akm_retrieve_port'] : '',\n '#required' => FALSE,\n );\n $form['primary_server']['akm_encrypt_port'] = array(\n '#type' => 'textfield',\n '#title' => t('Remote Encryption Port'),\n '#description' => t('Enter the number of the port for remote encryption.'),\n '#default_value' => isset($defaults['primary_server']['akm_encrypt_port']) ? $defaults['primary_server']['akm_encrypt_port'] : '',\n '#required' => TRUE,\n );\n $form['backup_server']['akm_encrypt_port'] = array(\n '#type' => 'textfield',\n '#title' => t('Remote Encryption Port'),\n '#description' => t('Enter the number of the port for remote encryption.'),\n '#default_value' => isset($defaults['backup_server']['akm_encrypt_port']) ? $defaults['backup_server']['akm_encrypt_port'] : '',\n '#required' => FALSE,\n );\n $form['key_name'] = array(\n '#type' => 'textfield',\n '#title' => t('Key Name'),\n '#description' => t('Enter the name of the key.'),\n '#default_value' => isset($defaults['key_name']) ? $defaults['key_name'] : '',\n '#required' => TRUE,\n );\n $form['key_type'] = array(\n '#type' => 'select',\n '#title' => t('Key Type'),\n '#description' => t('Choose the type of key.'),\n '#options' => array(\n 'AES-256' => t('AES-256'),\n ),\n '#default_value' => isset($defaults['key_type']) ? $defaults['key_type'] : 'AES-256',\n );\n $form['key_size'] = array(\n '#type' => 'textfield',\n '#title' => t('Key Size'),\n '#description' => t('Enter the size of the key.'),\n '#default_value' => isset($defaults['key_size']) ? $defaults['key_size'] : '',\n '#required' => TRUE,\n );\n $form['encode'] = array(\n '#type' => 'select',\n '#title' => t('Encoding Method'),\n '#description' => t('Choose the encoding method.'),\n '#options' => array(\n 'BIN' => t('Binary'),\n 'B64' => t('Base64 Encoded'),\n 'B16' => t('Base16 Encoded'),\n ),\n '#default_value' => isset($defaults['key_type']) ? $defaults['encode'] : 'B64',\n );\n\n return $form;\n}", "title": "" }, { "docid": "530c62fa015cc8ecdb35cc893951749d", "score": "0.5802036", "text": "public function form_settings_fields( $form ) {\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'title' => esc_html__( 'Springboard API Settings', 'gftospringboard' ),\n\t\t\t\t'fields' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'label' => esc_html__( 'API Key', 'gftospringboard' ),\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'name' => 'apikey',\n\t\t\t\t\t\t'tooltip' => esc_html__( 'The API Key for the Springboard API', 'gftospringboard' ),\n\t\t\t\t\t\t'class' => 'medium',\n\t\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'label' => esc_html__( 'Base URL', 'gftospringboard' ),\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'name' => 'baseurl',\n\t\t\t\t\t\t'tooltip' => esc_html__( 'The base URL for the Springboard API to communicate with. (Include https://)', 'gftospringboard' ),\n\t\t\t\t\t\t'class' => 'medium',\n\t\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'label' => esc_html__( 'Form ID', 'gftospringboard' ),\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'name' => 'formid',\n\t\t\t\t\t\t'tooltip' => esc_html__( 'The Form ID to submit the GF form data', 'gftospringboard' ),\n\t\t\t\t\t\t'class' => 'medium',\n\t\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'springboardStandardFields',\n\t\t\t\t\t\t'label' => esc_html__( 'Map Fields', 'gftospringboard' ),\n\t\t\t\t\t\t'type' => 'field_map',\n\t\t\t\t\t\t'field_map' => $this->standard_fields_for_feed_mapping(),\n\t\t\t\t\t\t'tooltip' => '<h6>' . esc_html__( 'Map Fields', 'gftospringboard' ) . '</h6>' . esc_html__( 'Select which Gravity Form fields pair with their respective Springboard API service fields.', 'gftospringboard' )\n\t\t\t\t\t\t),\t\t\t\t\t\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t);\n\t}", "title": "" }, { "docid": "670441347de0b3dd9af8680e983f2cea", "score": "0.58000696", "text": "private function getConfigurationFields($oForm)\n {\n $oForm->setWidgets(\n\t\t\tarray(\n\t\t\t\t\t'cem_cemetery_id' \t=> __('Select Cemetery'),\n\t\t\t\t\t'country_id'\t\t=> __('Select Country'),\n\t\t\t\t\t'date_next'\t\t\t=> __('Next'),\n\t\t\t\t\t'date_prev'\t\t\t=> __('Previous')\n\t\t\t\t )\n\t\t);\n\n $oForm->setLabels(\n array(\n\t\t\t\t'cem_cemetery_id'\t\t=> __('Select Cemetery'),\n\t\t\t\t'country_id' \t\t=> __('Select Country'),\n 'surname' \t=> __('Surname'),\n 'first_name' => __('First Name'),\n 'middle_name' \t \t=> __('Middle Name'),\n 'email' \t\t=> __('Email'),\n 'telephone' \t=> __('Telephone'),\t\n\t\t\t\t'mobile'\t\t\t\t=> __('Mobile'),\n 'address' \t \t\t=> __('Address'),\n 'suburb_town' => __('Suburb/Town'),\n 'postal_code' => __('Postal Code'),\n\t\t\t\t'country_id' \t\t=> __('Country'),\t\t\t\t\n 'fax' \t \t\t\t=> __('Fax'),\n\t\t\t\t'fax_area_code' \t\t=> __('Fax Area Code'),\n\t\t\t\t'area_code' \t\t=> __('Telephone Area Code'),\n 'chapel' \t=> __('Chapel'),\n 'room' \t\t=> __('Room'),\n 'special_instruction'\t=> __('Special Instruction'),\n 'receipt_number' \t=> __('Receipt Number'),\n\t\t\t\t'chapel_grouplist'\t\t=> __('Select Chapel Type'),\n\t\t\t\t'room_grouplist'\t\t=> __('Select Room Type')\n \n )\n );\n\n $oForm->setValidators(\n array(\n\t\t\t\t\t'cem_cemetery_id' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t'required' => __('Please select cemetery')\n\t\t\t\t\t\t\t\t\t\t\t),\n \t 'country_id' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t'required' => __('Please select country')\n\t\t\t\t\t\t\t\t\t\t\t),\n \t 'surname' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t'required' => __('Please enter surname')\n\t\t\t\t\t\t\t\t\t\t\t),\n \t 'first_name'\t=> array(\n\t\t\t\t\t\t\t\t\t\t\t\t'required' => __('Please enter first name')\n\t\t\t\t\t\t\t\t\t\t\t),\n\t 'email'\t\t\t=> array(\n\t\t\t\t\t\t\t\t\t\t\t\t'required' => __('Please enter email'),\n\t\t\t\t\t\t\t\t\t\t\t\t'invalid' => __('Please enter valid email')\n\t\t\t\t\t\t\t\t\t\t\t),\n\t 'booking_invalid_date'\t=> array(\n\t\t\t\t\t\t\t\t\t\t\t\t'invalid' => __('Please select valid date')\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t 'booking_date_past'\t\t=> array(\n\t\t\t\t\t\t\t\t\t\t\t\t'invalid' => __('Please select greater than or equal current date')\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t)\n );\n }", "title": "" }, { "docid": "2ef89ead919fa3b35869c111d7a6cc38", "score": "0.57957184", "text": "private function _getFormConfig(){\t\t\n\t\t$html = '';\n\t\t \n\t $formats = ImageType::getImagesTypes( 'products' );\n\t $themes=$this->getFolderList( dirname(__FILE__).\"/tmpl/\" );\n $groups=$this->getFolderList( dirname(__FILE__).\"/libs/groups/\" );\n\n\t ob_start();\n\t include_once dirname(__FILE__).'/config/lofnewproduct.php'; \n\t $html .= ob_get_contents();\n\t ob_end_clean(); \n\t\treturn $html;\n\t}", "title": "" }, { "docid": "d3ba63b843b63d0d80ec5753a457ea97", "score": "0.57864416", "text": "function save_synchronization_form_settings($form_data)\n{\n global $CFG;\n $synch_settings = array();\n $connection_settings = unserialize($CFG->eb_connection_settings);\n $connection_settings_keys = array_keys($connection_settings);\n\n\n if (in_array($form_data->wp_site_list, $connection_settings_keys)) {\n $existing_synch_settings = isset($CFG->eb_synch_settings) ? unserialize($CFG->eb_synch_settings) : array();\n $synch_settings = $existing_synch_settings;\n $synch_settings[$form_data->wp_site_list] = array(\n // \"course_enrollment\" => $form_data->wp_site_list,\n \"course_enrollment\" => $form_data->course_enrollment,\n \"course_un_enrollment\" => $form_data->course_un_enrollment,\n \"user_creation\" => $form_data->user_creation,\n \"user_deletion\" => $form_data->user_deletion,\n \"course_deletion\" => $form_data->course_deletion,\n \"user_updation\" => $form_data->user_updation\n );\n } else {\n $synch_settings[$form_data->wp_site_list] = array(\n // \"course_enrollment\" => $form_data->wp_site_list,\n \"course_enrollment\" => $form_data->course_enrollment,\n \"course_un_enrollment\" => $form_data->course_un_enrollment,\n \"user_creation\" => $form_data->user_creation,\n \"user_deletion\" => $form_data->user_deletion,\n \"course_deletion\" => $form_data->course_deletion,\n \"user_updation\" => $form_data->user_updation\n );\n }\n set_config(\"eb_synch_settings\", serialize($synch_settings));\n}", "title": "" }, { "docid": "39532e0b61d630a4b2abc5ca3989137f", "score": "0.57778764", "text": "function _fserver_content_default_fields() {\n $fields = array();\n\n // Exported field: field_fserver_drushmake\n $fields[] = array(\n 'field_name' => 'field_fserver_drushmake',\n 'type_name' => 'fserver_distro',\n 'display_settings' => array(\n 'label' => array(\n 'format' => 'above',\n 'exclude' => 0,\n ),\n 'teaser' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'full' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '1',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => '',\n 'widget' => array(\n 'rows' => '5',\n 'size' => 60,\n 'default_value' => array(\n '0' => array(\n 'value' => '',\n '_error_element' => 'default_value_widget][field_fserver_drushmake][0][value',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Drush Make Script',\n 'weight' => '-3',\n 'description' => '',\n 'type' => 'text_textarea',\n 'module' => 'text',\n ),\n );\n\n // Exported field: field_fserver_name\n $fields[] = array(\n 'field_name' => 'field_fserver_name',\n 'type_name' => 'fserver_distro',\n 'display_settings' => array(\n 'weight' => '-4',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 0,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 0,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '1',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => '',\n 'widget' => array(\n 'rows' => 5,\n 'size' => '30',\n 'default_value' => array(\n '0' => array(\n 'value' => '',\n '_error_element' => 'default_value_widget][field_fserver_name][0][value',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Machine name',\n 'weight' => '-4',\n 'description' => 'The machine-readable name for your project. This name must contain only lowercase letters, numbers, and underscores. <strong>Example:</strong> cooking_recipes.',\n 'type' => 'text_textfield',\n 'module' => 'text',\n ),\n );\n\n // Exported field: field_fserver_method\n $fields[] = array(\n 'field_name' => 'field_fserver_method',\n 'type_name' => 'fserver_project',\n 'display_settings' => array(\n 'weight' => '-2',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 0,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 0,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '1',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => 'return fserver_cck_options(\"method\");',\n 'widget' => array(\n 'default_value' => array(\n '0' => array(\n 'value' => '',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Packaging method',\n 'weight' => '-2',\n 'description' => 'Choose the packaging method to use for this project.',\n 'type' => 'optionwidgets_select',\n 'module' => 'optionwidgets',\n ),\n );\n\n // Exported field: field_fserver_name\n $fields[] = array(\n 'field_name' => 'field_fserver_name',\n 'type_name' => 'fserver_project',\n 'display_settings' => array(\n 'weight' => '-4',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 0,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 0,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '1',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => '',\n 'widget' => array(\n 'rows' => 5,\n 'size' => '30',\n 'default_value' => array(\n '0' => array(\n 'value' => '',\n '_error_element' => 'default_value_widget][field_fserver_name][0][value',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Machine name',\n 'weight' => '-4',\n 'description' => 'The machine-readable name for your project. This name must contain only lowercase letters, numbers, and underscores. <strong>Example:</strong> cooking_recipes.',\n 'type' => 'text_textfield',\n 'module' => 'text',\n ),\n );\n\n // Exported field: field_fserver_repository\n $fields[] = array(\n 'field_name' => 'field_fserver_repository',\n 'type_name' => 'fserver_project',\n 'display_settings' => array(\n 'weight' => '-1',\n 'parent' => '',\n 'label' => array(\n 'format' => 'inline',\n ),\n 'teaser' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n 'full' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '0',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => '',\n 'widget' => array(\n 'rows' => 5,\n 'size' => '60',\n 'default_value' => array(\n '0' => array(\n 'value' => '',\n '_error_element' => 'default_value_widget][field_fserver_repository][0][value',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Repository URL',\n 'weight' => '-1',\n 'description' => 'Example: git://github.com/myname/myproject.git',\n 'type' => 'text_textfield',\n 'module' => 'text',\n ),\n );\n\n // Exported field: field_fserver_type\n $fields[] = array(\n 'field_name' => 'field_fserver_type',\n 'type_name' => 'fserver_project',\n 'display_settings' => array(\n 'weight' => '-3',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 0,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 0,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '1',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => 'return fserver_cck_options(\\'type\\');',\n 'widget' => array(\n 'default_value' => array(\n '0' => array(\n 'value' => '',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Type',\n 'weight' => '-3',\n 'description' => '',\n 'type' => 'optionwidgets_select',\n 'module' => 'optionwidgets',\n ),\n );\n\n // Exported field: field_fserver_api\n $fields[] = array(\n 'field_name' => 'field_fserver_api',\n 'type_name' => 'fserver_release',\n 'display_settings' => array(\n 'weight' => '-10',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '1',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => 'return fserver_cck_options(\\'core\\');',\n 'widget' => array(\n 'default_value' => array(\n '0' => array(\n 'value' => '6.x',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Core compatibility',\n 'weight' => '-10',\n 'description' => '',\n 'type' => 'optionwidgets_select',\n 'module' => 'optionwidgets',\n ),\n );\n\n // Exported field: field_fserver_file\n $fields[] = array(\n 'field_name' => 'field_fserver_file',\n 'type_name' => 'fserver_release',\n 'display_settings' => array(\n 'weight' => '-13',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'filefield',\n 'required' => '1',\n 'multiple' => '0',\n 'module' => 'filefield',\n 'active' => '1',\n 'list_field' => '0',\n 'list_default' => 1,\n 'description_field' => '0',\n 'widget' => array(\n 'file_extensions' => 'tgz tar gz',\n 'file_path' => 'fserver',\n 'progress_indicator' => 'bar',\n 'max_filesize_per_file' => '',\n 'max_filesize_per_node' => '',\n 'label' => 'Package',\n 'weight' => '-13',\n 'description' => '',\n 'type' => 'filefield_widget',\n 'module' => 'filefield',\n ),\n );\n\n // Exported field: field_fserver_project\n $fields[] = array(\n 'field_name' => 'field_fserver_project',\n 'type_name' => 'fserver_release',\n 'display_settings' => array(\n 'weight' => '-11',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'nodereference',\n 'required' => '1',\n 'multiple' => '0',\n 'module' => 'nodereference',\n 'active' => '1',\n 'referenceable_types' => array(\n 'fserver_distro' => 'fserver_distro',\n 'fserver_project' => 'fserver_project',\n 'page' => 0,\n 'fserver_release' => 0,\n 'story' => 0,\n ),\n 'advanced_view' => '--',\n 'advanced_view_args' => '',\n 'widget' => array(\n 'autocomplete_match' => 'contains',\n 'size' => 60,\n 'default_value' => array(\n '0' => array(\n 'nid' => '',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Project',\n 'weight' => '-11',\n 'description' => '',\n 'type' => 'nodereference_select',\n 'module' => 'nodereference',\n ),\n );\n\n // Exported field: field_fserver_recommended\n $fields[] = array(\n 'field_name' => 'field_fserver_recommended',\n 'type_name' => 'fserver_release',\n 'display_settings' => array(\n 'weight' => '-6',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '1',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => 'return fserver_cck_options(\\'recommended\\');',\n 'widget' => array(\n 'default_value' => array(\n '0' => array(\n 'value' => 0,\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Recommended',\n 'weight' => '-6',\n 'description' => 'The recommended releases will be displayed on the project page. The latest recommended release per major version will be offered for update status.',\n 'type' => 'optionwidgets_onoff',\n 'module' => 'optionwidgets',\n ),\n );\n\n // Exported field: field_fserver_security\n $fields[] = array(\n 'field_name' => 'field_fserver_security',\n 'type_name' => 'fserver_release',\n 'display_settings' => array(\n 'weight' => '-5',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '0',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => 'return fserver_cck_options(\\'security\\');',\n 'widget' => array(\n 'default_value' => array(\n '0' => array(\n 'value' => 'Not a security release',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Security release',\n 'weight' => '-5',\n 'description' => '',\n 'type' => 'optionwidgets_onoff',\n 'module' => 'optionwidgets',\n ),\n );\n\n // Exported field: field_fserver_versionextra\n $fields[] = array(\n 'field_name' => 'field_fserver_versionextra',\n 'type_name' => 'fserver_release',\n 'display_settings' => array(\n 'weight' => '-7',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '0',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => '',\n 'widget' => array(\n 'rows' => 5,\n 'size' => '20',\n 'default_value' => array(\n '0' => array(\n 'value' => '',\n '_error_element' => 'default_value_widget][field_fserver_versionextra][0][value',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Extra version',\n 'weight' => '-7',\n 'description' => '',\n 'type' => 'text_textfield',\n 'module' => 'text',\n ),\n );\n\n // Exported field: field_fserver_versionmajor\n $fields[] = array(\n 'field_name' => 'field_fserver_versionmajor',\n 'type_name' => 'fserver_release',\n 'display_settings' => array(\n 'weight' => '-9',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '1',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => 'return fserver_cck_options(\\'major\\');',\n 'widget' => array(\n 'default_value' => array(\n '0' => array(\n 'value' => '',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Major version',\n 'weight' => '-9',\n 'description' => '',\n 'type' => 'optionwidgets_select',\n 'module' => 'optionwidgets',\n ),\n );\n\n // Exported field: field_fserver_versionpatch\n $fields[] = array(\n 'field_name' => 'field_fserver_versionpatch',\n 'type_name' => 'fserver_release',\n 'display_settings' => array(\n 'weight' => '-8',\n 'parent' => '',\n 'label' => array(\n 'format' => 'hidden',\n ),\n 'teaser' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n 'full' => array(\n 'format' => 'hidden',\n 'exclude' => 1,\n ),\n '4' => array(\n 'format' => 'default',\n 'exclude' => 0,\n ),\n ),\n 'widget_active' => '1',\n 'type' => 'text',\n 'required' => '1',\n 'multiple' => '0',\n 'module' => 'text',\n 'active' => '1',\n 'text_processing' => '0',\n 'max_length' => '',\n 'allowed_values' => '',\n 'allowed_values_php' => 'return fserver_cck_options(\\'patch\\');',\n 'widget' => array(\n 'default_value' => array(\n '0' => array(\n 'value' => '',\n ),\n ),\n 'default_value_php' => NULL,\n 'label' => 'Patch version',\n 'weight' => '-8',\n 'description' => '',\n 'type' => 'optionwidgets_select',\n 'module' => 'optionwidgets',\n ),\n );\n\n // Translatables\n array(\n t('Core compatibility'),\n t('Drush Make Script'),\n t('Extra version'),\n t('Machine name'),\n t('Major version'),\n t('Package'),\n t('Packaging method'),\n t('Patch version'),\n t('Project'),\n t('Recommended'),\n t('Repository URL'),\n t('Security release'),\n t('Type'),\n );\n\n return $fields;\n}", "title": "" }, { "docid": "1ead48fcaf6e671fbb662429806cd8df", "score": "0.5775671", "text": "function ting_ting_object_context_settings_form($conf) {\n $form = array();\n return $form;\n}", "title": "" }, { "docid": "6cfa21101b4089b9ee245fb058bea734", "score": "0.5766968", "text": "function process_config($config) {\n\n if (!isset($config->enrol_dbtype)) {\n $config->enrol_dbtype = 'mysql';\n }\n set_config('enrol_dbtype', $config->enrol_dbtype);\n\n if (!isset($config->enrol_dbhost)) {\n $config->enrol_dbhost = '';\n }\n set_config('enrol_dbhost', $config->enrol_dbhost);\n\n if (!isset($config->enrol_dbuser)) {\n $config->enrol_dbuser = '';\n }\n set_config('enrol_dbuser', $config->enrol_dbuser);\n\n if (!isset($config->enrol_dbpass)) {\n $config->enrol_dbpass = '';\n }\n set_config('enrol_dbpass', $config->enrol_dbpass);\n\n if (!isset($config->enrol_dbname)) {\n $config->enrol_dbname = '';\n }\n set_config('enrol_dbname', $config->enrol_dbname);\n\n if (!isset($config->enrol_dbtable)) {\n $config->enrol_dbtable = '';\n }\n set_config('enrol_dbtable', $config->enrol_dbtable);\n\n if (!isset($config->enrol_localcoursefield)) {\n $config->enrol_localcoursefield = '';\n }\n set_config('enrol_localcoursefield', $config->enrol_localcoursefield);\n\n if (!isset($config->enrol_localuserfield)) {\n $config->enrol_localuserfield = '';\n }\n set_config('enrol_localuserfield', $config->enrol_localuserfield);\n\n if (!isset($config->enrol_remotecoursefield)) {\n $config->enrol_remotecoursefield = '';\n }\n set_config('enrol_remotecoursefield', $config->enrol_remotecoursefield);\n\n if (!isset($config->enrol_remoteuserfield)) {\n $config->enrol_remoteuserfield = '';\n }\n set_config('enrol_remoteuserfield', $config->enrol_remoteuserfield);\n\n if (!isset($config->enrol_db_autocreate)) {\n $config->enrol_db_autocreate = '';\n }\n set_config('enrol_db_autocreate', $config->enrol_db_autocreate);\n\n if (!isset($config->enrol_db_category)) {\n $config->enrol_db_category = '';\n }\n set_config('enrol_db_category', $config->enrol_db_category);\n\n if (!isset($config->enrol_db_template)) {\n $config->enrol_db_template = '';\n }\n set_config('enrol_db_template', $config->enrol_db_template);\n\n if (!isset($config->enrol_db_defaultcourseroleid)) {\n $config->enrol_db_defaultcourseroleid = '';\n }\n set_config('enrol_db_defaultcourseroleid', $config->enrol_db_defaultcourseroleid);\n\n if (!isset($config->enrol_db_localrolefield)) {\n $config->enrol_db_localrolefield = '';\n }\n set_config('enrol_db_localrolefield', $config->enrol_db_localrolefield);\n\n if (!isset($config->enrol_db_remoterolefield)) {\n $config->enrol_db_remoterolefield = '';\n }\n set_config('enrol_db_remoterolefield', $config->enrol_db_remoterolefield);\n\n if (!isset($config->enrol_db_ignorehiddencourse)) {\n $config->enrol_db_ignorehiddencourse = '';\n }\n set_config('enrol_db_ignorehiddencourse', $config->enrol_db_ignorehiddencourse );\n\n return true;\n}", "title": "" }, { "docid": "1bd0ec65c5d4507c1622fab5436b42ac", "score": "0.57666266", "text": "protected function getConfigTemplateFieldSettings()\n {\n $field = $this->createTemplateFieldObject();\n\n return array(\n 'form' => array(\n 'legend' => array(\n 'title' => ((int)Tools::getValue('id_field')\n ? $this->l('Edit field')\n : $this->l('Add field')),\n 'icon' => 'icon-cogs',\n ),\n 'input' => array(\n array(\n 'col' => 9,\n 'label' => $this->l('Type:'),\n 'type' => 'select',\n 'name' => 'type',\n 'options' => array(\n 'query' => $this->getAvailableFieldTypes($field->type),\n 'id' => 'id_type',\n 'name' => 'name'\n )\n ),\n array(\n 'type' => 'switch',\n 'label' => $this->l('Required'),\n 'is_bool' => true,\n 'class' => 'required',\n 'name' => 'required',\n 'values' => array(\n array(\n 'id' => 'active_on',\n 'value' => true,\n 'label' => $this->l('Enabled')\n ),\n array(\n 'id' => 'active_off',\n 'value' => false,\n 'label' => $this->l('Disabled')\n )\n ),\n ),\n array(\n 'col' => 3,\n 'class' => 'specific_class',\n 'label' => $this->l('Specific class'),\n 'type' => 'text',\n 'name' => 'specific_class',\n 'lang' => false,\n ),\n array(\n 'col' => 9,\n 'label' => $this->l('Name'),\n 'type' => 'text',\n 'name' => 'field_name',\n 'lang' => true,\n 'class' => 'fields_name',\n ),\n array(\n 'col' => 9,\n 'label' => $this->l('Description'),\n 'type' => 'textarea',\n 'name' => 'field_description',\n 'autoload_rte' => true,\n 'lang' => true,\n 'class' => 'field_description'\n ),\n array(\n 'col' => 2,\n 'type' => 'text',\n 'name' => 'id_field',\n 'class' => 'hidden'\n ),\n ),\n 'submit' => array(\n 'title' => $this->l('Save'),\n 'type' => 'submit',\n 'name' => 'savefield'\n ),\n )\n );\n }", "title": "" }, { "docid": "e21b784446f3d76e4718ef1c2ab3ed4a", "score": "0.5766343", "text": "public function saveConfiguration(){\n //Si le formulaire a été envoyé \n if(Tools::isSubmit(\"submit_mysiteadvice_form\")){\n\n // Récupère la valeur POST associée à la clé passée en paramètre\n $enable_advices = Tools::getValue('enable_advices');\n // Sauvegarde des valeurs (clé en premier paramètre et valeur en second)\n // updateValue crée une nouvelle entrée dans la table de config ou la met à jour \n Configuration::updateValue('MYADVICE_ADVICES', $enable_advices);\n\n // Assigne une variable de confirmation à l'objet Smarty\n $this->context->smarty->assign('confirmation', 'ok');\n }\n }", "title": "" }, { "docid": "76335b2a7bdf74ce6f5c05add4904695", "score": "0.5761507", "text": "function bmap_assoc_settings() {\n $form = array();\n $form['bmap_assoc_types'] = array(\n '#type' => 'textarea',\n '#title' => t('Associate node types'),\n '#default_value' => variable_get('bmap_assoc_types', ''),\n );\n return system_settings_form($form);\n}", "title": "" }, { "docid": "7624693a57cf41a64ba25a2096bb7f1d", "score": "0.57563865", "text": "public function settings( &$form )\n\t{\n\t\t$settings = json_decode( $this->settings, TRUE );\n\t\t$form->add( new \\IPS\\Helpers\\Form\\Text( 'jahanpay_api', $this->id ?$settings['api']:'', TRUE ) );\n\t}", "title": "" }, { "docid": "5d78d9873a815fe4cc6df2401fd0db16", "score": "0.5750148", "text": "function ctools_user_contact_content_type_edit_form_submit(&$form, &$form_state) {\n // Copy everything from our defaults.\n/*\n foreach (array_keys($form_state['plugin']['defaults']) as $key) {\n $form_state['conf'][$key] = $form_state['values'][$key];\n }\n*/\n}", "title": "" }, { "docid": "8cc2d5ff4b5ae37b17288ae68f050b60", "score": "0.5738649", "text": "function getFieldSpecialConf($table,$fN) {\n $specialConf = array();\n $TCA = $GLOBALS[\"TCA\"][$table];\n \n // Get the type value\n $type = 0; // default value\n $typeField = $TCA['ctrl']['type'];\n $uid = t3lib_div::_GET('rU');\n if($typeField && $uid) { // get the type from the database else use default value\n $rec = $GLOBALS['TSFE']->sys_page->getRawRecord($table,$uid);\n $type = intval($rec[$typeField]);\n }\n \n // get the special configurations and check for an existing richtext configuration\n $showitem = $TCA['types'][$type]['showitem'] ? explode(',',$TCA['types'][$type]['showitem']) : explode(',',$TCA['types'][1]['showitem']); // if ['types'][$type] we should try with ['types'][1] according to TCA doc\n foreach((array)$showitem as $fieldConfig) {\n $fC = explode(';',$fieldConfig);\n if(trim($fC[0])==$fN) { // if field is $fN\n\tforeach(explode(':',$fC[3]) as $sC) {\n\t if(substr($sC,0,8)=='richtext') { // if there is a richtext configuration we found what we were looking for\n\t $buttons = substr(trim($sC),9,strlen(trim($sC))-10);\n\t $specialConf['richtext']['parameters'] = t3lib_div::trimExplode('|',$buttons);\n\t \n\t } else if(substr($sC,0,13)=='rte_transform') {\n\t $transConf = substr(trim($sC),14,strlen(trim($sC))-15);\n\t $specialConf['rte_transform']['parameters'] = t3lib_div::trimExplode('|',$transConf);\n\t }\n\t}\n }\n }\n return $specialConf;\n }", "title": "" }, { "docid": "83fd3d1418b4a311a348604e6067a14c", "score": "0.5734948", "text": "protected function _prepareForm () {\n\t\t\t// Load the data and page models\n\t\t\t$data = Mage::helper (\"twofactor/data\");\n\t\t\t$page = Mage::getModel (\"twofactor/page\");\n\t\t\t// Make a new form element\n\t\t\t$form = new Varien_Data_Form ();\n\t\t\t// Add a field-set to the form\n\t\t\t$fieldset = $form->addFieldset (\n\t\t\t\t\"general_configuration\",\n\t\t\t\tarray ( \"legend\" => Mage::helper (\"twofactor\")->__(\"General Configuration\") )\n\t\t\t);\n\t\t\t// Add all the fields to the field-set\n\t\t\t$fieldset->addField ( \"remember_me\", \"text\", array (\n\t\t\t\t\"name\" => \"remember_me\",\n\t\t\t\t\"label\" => Mage::helper (\"twofactor\")->__(\"Remember Me Duration\"),\n\t\t\t\t\"note\" => Mage::helper (\"twofactor\")->__(\"Number of <b>days</b> authentication is remembered\"),\n\t\t\t\t\"required\" => true,\n\t\t\t));\n\t\t\t$fieldset->addField ( \"ban_attempts\", \"text\", array (\n\t\t\t\t\"name\" => \"ban_attempts\",\n\t\t\t\t\"label\" => Mage::helper (\"twofactor\")->__(\"Failed Authentication Threshold\"),\n\t\t\t\t\"note\" => Mage::helper (\"twofactor\")->__(\"Number of failed authentication attempts before a user is temporarily banned\"),\n\t\t\t\t\"required\" => true,\n\t\t\t));\n\t\t\t$fieldset->addField ( \"ban_time\", \"text\", array (\n\t\t\t\t\"name\" => \"ban_time\",\n\t\t\t\t\"label\" => Mage::helper (\"twofactor\")->__(\"Temporary Ban Duration\"),\n\t\t\t\t\"note\" => Mage::helper (\"twofactor\")->__(\"Amount of time in <b>minutes</b> that a user will be banned\"),\n\t\t\t\t\"required\" => true,\n\t\t\t));\n\t\t\t// Set the default values for the form\n\t\t\t$form->setValues ( $data->getData () );\n\t\t\t// Define form settings\n\t\t\t$form->setId (\"edit_form\");\n\t\t\t$form->setMethod (\"post\");\n\t\t\t$form->setUseContainer ( true );\n\t\t\t$form->setAction ( $this->getUrl ( $page::PAGE_CONFIGURE_SAVE ) );\n\t\t\t// Save the form internally and return the result of the inherited method\n\t\t\t$this->setForm ( $form );\n\t\t\treturn parent::_prepareForm ();\n\t\t}", "title": "" }, { "docid": "529989e029b4a8abcd25b45c2d2e43db", "score": "0.57285005", "text": "protected function getConfigFormValues()\n {\n return array(\n 'COCOLIS_LIVE_MODE' => Configuration::get('COCOLIS_LIVE_MODE', true),\n 'COCOLIS_DEBUG_MODE' => Configuration::get('COCOLIS_DEBUG_MODE', false),\n 'COCOLIS_APPID' => Configuration::get('COCOLIS_APPID', 'app_id'),\n 'COCOLIS_PASSWORD' => Configuration::get('COCOLIS_PASSWORD', null),\n 'COCOLIS_ZIP' => Configuration::get('COCOLIS_ZIP', null),\n 'COCOLIS_HEIGHT' => Configuration::get('COCOLIS_HEIGHT', null),\n 'COCOLIS_WIDTH' => Configuration::get('COCOLIS_WIDTH', null),\n 'COCOLIS_LENGTH' => Configuration::get('COCOLIS_LENGTH', null),\n 'COCOLIS_ADDRESS' => Configuration::get('COCOLIS_ADDRESS', null),\n 'COCOLIS_CITY' => Configuration::get('COCOLIS_CITY', null),\n 'COCOLIS_COUNTRY' => Configuration::get('COCOLIS_COUNTRY', null)\n );\n }", "title": "" }, { "docid": "1e8788f22effa3541bd0c0934e7e3e94", "score": "0.57220596", "text": "public function form(){\n \tif($this->layoutWidgetInfo){\n \t\t$setting = json_decode($this->layoutWidgetInfo->setting, true);\n \t}\n\n \t//default option(type[text], cols[3-9], rows[1], label[$key], name[$key], value[$setting[$k]])\n \t//add option(class, id, stype, styleRow, required, placeholder, attr, [options, code])\n \t$settingForm = array(\n \t\t'layout_widget_id' \t=> array('type' => 'hidden', 'value' => $this->layoutWidgetInfo->layoutWidgetId),\n \t\t'widget_controller' => array('type' => 'hidden', 'value' => $this->widgetController),\n \t\t\n \t\t'header' \t=> array('type' => 'custom', 'value' => \"<h4 class='widget_header col-md-12'>{$this->widgetController}</h4>\", 'label' => ''), \n \t\t'title' => array(),\n \t\t'show_title'\t=> array('type' => 'select', 'options' => ArrayHelper::get10()),\n \t\t'class'\t=> array(),\n \t\t'num_posts' \t=> array('placeholder' => $this->settingDefault['num_posts']),\n \t\t'order_by' => array('type' => 'select', 'options' => $this->settingDefault['orderBy']),\n \t\t'width' \t=> array('placeholder' => $this->settingDefault['width']),\n \t\t'note' \t=> array('type' => 'label', 'title' => $this->settingDefault['note']),\n \t);\n \t\n \t$settingAll = array(\n \t\t'cols' => '3-9'\n \t);\n \t\n \t//render setting from\n \tTemplateHelper::renderForm($settingForm, $setting, $settingAll);\n TemplateHelper::getTemplate('layout/_extra/add_setting.php', $setting);\n \t}", "title": "" }, { "docid": "78cdb04e86a18d8d72e8828f84b0e717", "score": "0.57217973", "text": "function _save_settings()\n\t{\n\t\t$this->EE->load->helper('loader');\n\t\t$post_data['settings']\t\t\t\t\t= $this->EE->input->post('settings', FALSE); // FALSE to keep style=\"\", but concerned...\n\t\t$post_data['copy_to_members']\t\t\t= $this->EE->input->post('copy_to_members', TRUE);\n\t\t$post_data['members']\t\t\t\t\t= $this->EE->input->post('members', TRUE);\n\t\t$post_data['clear_individual_settings']\t= $this->EE->input->post('clear_individual_settings', TRUE);\n\t\t$post_data['enable_module']\t\t\t\t= $this->EE->input->post('enable_module', FALSE);\n\t\t$installed_addons\t\t\t\t\t\t= $this->EE->zenbu_get->_get_installed_addons();\n\t\t\n\t\t/**\n\t\t*\t----------------------------------------------------------\n\t\t*\tBuild the extra settings labels array\n\t\t*\teg. text_option_1, text_option_2, my_fieldtype_option_1...\n\t\t*\t----------------------------------------------------------\n\t\t*\tGo through all fields, load fieldtype classes and fetch\n\t\t*\teach extra settings label.\n\t\t*/\n\t\t\n\t\t// Determine non-fieldtype extra settings labels\n\t\t$non_ft_option_labels = $this->non_ft_extra_options;\n\n\t\t// Add Pages extra option if available\n\t\tif(in_array('Pages', $installed_addons['modules']))\n\t\t{\n\t\t\t$non_ft_option_labels['livelook_option_4'] = 'livelook_option_4';\n\t\t}\n\t\t\n\t\t// Get field information\n\t\t$fields = $this->EE->zenbu_get->_get_field_ids();\n\t\tif( ! empty($fields) && isset($fields['id'], $fields['field'], $fields['fieldtype']) )\n\t\t{\n\t\t\t$field_label_array = $fields['field'];\n\t\t\t$field_type_array = $fields['fieldtype'];\n\t\t\t$field_id_array = $fields['id'];\n\t\t}\n\t\t\n\t\t$ft_option_labels_array = array();\n\t\t\n\t\tif(isset($field_id_array))\n\t\t{\n\t\t\tforeach($field_id_array as $key => $field_id)\n\t\t\t{\n\t\t\t\t$ft_class = $field_type_array[$field_id].'_ft';\n\t\t\t\tload_ft_class($ft_class);\n\t\t\t\t\n\t\t\t\tif(class_exists($ft_class))\n\t\t\t\t{\t\t\t\n\t\t\t\t\n\t\t\t\t\t// Retrieve extra settings short names\n\t\t\t\t\t// Parameters are empty as we just want to retrieve third-party array keys\n\t\t\t\t\t$ft_object = create_object($ft_class);\n\t\t\t\t\t$extra_settings_array = (method_exists($ft_object, 'zenbu_field_extra_settings')) ? $ft_object->zenbu_field_extra_settings(\"\", \"\", array()) : array();\n\t\n\t\t\t\t\t// Create a simple list of \"extra option\" short names\n\t\t\t\t\t// Used to loop through short names when saving data\n\t\t\t\t\tif( ! empty($extra_settings_array))\n\t\t\t\t\t{\n\t\t\t\t\t\t$extra_settings_name_array = array_keys($extra_settings_array);\n\t\t\t\t\t\tforeach($extra_settings_name_array as $key => $extra_settings_name)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif( ! isset($ft_option_labels_array))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ft_option_labels_array = array();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isset($ft_option_labels_array) && ! in_array($extra_settings_name, $ft_option_labels_array))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ft_option_labels_array[] = $extra_settings_name;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$ft_option_labels_array = array_merge($ft_option_labels_array, $non_ft_option_labels);\n\n\t\t//\tEND building extra settings labels array\n\t\t\n\t\t\n\t\t/**\n\t\t*\t---------------------------------------------\n\t\t*\tProcess POST variables for saving in database\n\t\t*\t---------------------------------------------\n\t\t*/\n\t\t$data = array();\n\t\tif($post_data['settings'] !== FALSE)\n\t\t{\t\t\n\t\t\tforeach($post_data['settings'] as $channel_id => $settings)\n\t\t\t{\n\t\t\t\tif($channel_id == \"general\" && $channel_id != \"0\")\n\t\t\t\t{\n\t\t\t\t\t$settings['max_results_per_page'] = (int)$settings['max_results_per_page'];\n\t\t\t\t\t$db_data['general_settings'] = serialize($settings);\n\n\t\t\t\t} else {\n\n\t\t\t\t\t$form_channel_id =& $channel_id;\n\t\t\t\t\t$data['show_std_fields'] = array();\n\t\t\t\t\t$data['show_custom_fields'] = \"\";\n\t\t\t\t\t$data['field_order'] = array();\n\t\t\t\t\t$data['extra_options'] = array();\n\t\t\t\t\t$order_array = array();\n\t\t\t\t\t$extra_option_array = array();\n\t\t\t\t\n\t\t\t\t\tforeach($settings as $col => $setting)\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(substr($col, 0, 6) == 'field_' && isset($setting['show']) && $setting['show'] == 'y' && isset($col))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$data['show_custom_fields'] .= substr($col, 6).'|';\n\t\t\t\t\t\t} elseif(substr($col, 0, 6) != 'field_' && isset($setting['show'])) {\n\t\t\t\t\t\t\t$data['show_std_fields'][$col] = $setting['show'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Prepare ordering\n\t\t\t\t\t\tif(isset($setting['field_order']) && is_numeric($setting['field_order']) && ! isset($order_array[$setting['field_order']]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$order_array[$setting['field_order']] = $col;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\t--------------\n\t\t\t\t\t\t//\tExtra options\n\t\t\t\t\t\t//\t--------------\n\t\t\t\t\t\t//\tFetch validation method for each field if available\n\t\t\t\t\t\t//\tIf not simply process the settings for update\n\t\t\t\t\t\t$field_id = (substr($col, 0, 6) == 'field_') ? substr($col, 6) : 0;\n\t\t\t\t\t\t$fieldtype_name = ($field_id != 0) ? $field_type_array[$field_id] : '';\n\t\t\t\t\t\t$ft_class = 'Zenbu_'.$fieldtype_name.'_ft';\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(class_exists($ft_class) && method_exists($ft_class, 'zenbu_field_validation'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$ft_object = create_object($ft_class);\n\t\t\t\t\t\t\tif(method_exists($ft_object, 'zenbu_field_validation'))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Custom field validation\n\t\t\t\t\t\t\t\t$extra_option_array[$col] = $ft_object->zenbu_field_validation($setting);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// If no custom validation, go ahead with preparing settings\n\t\t\t\t\t\t\tforeach($ft_option_labels_array as $key => $label)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(isset($setting[$label]) && ! isset($extra_option_array[$setting[$label]]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$extra_option_array[$col][$label] = $setting[$label];\n\n\t\t\t\t\t\t\t\t\t// Special validation for non-ft field who accepts numerical value (category limit)\n\t\t\t\t\t\t\t\t\t$extra_option_array[$col][$label] = $label == 'category_option_1' && ! is_numeric($setting[$label]) ? '' : $extra_option_array[$col][$label];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tksort($order_array);\n\t\t\t\t\t$order_array = array_flip($order_array);\n\t\t\t\t\t\n\t\t\t\t\t$output_data_show_fields[$channel_id] = $data['show_std_fields'];\n\t\t\t\t\t$output_data_show_custom_fields[$channel_id]['show_custom_fields'] = (strlen($data['show_custom_fields']) > 0) ? substr($data['show_custom_fields'], 0, -1) : '';\n\t\t\t\t\t$output_data_field_order[$channel_id]['field_order'] = $order_array;\n\t\t\t\t\t$output_data_extra_options[$channel_id]['extra_options'] = $extra_option_array;\t\n\t\t\t\t} // END if\n\t\t\t} // END foreach\n\t\t\t\n\t\t\t//\t----------------------------------------\n\t\t\t//\tGet previous setting data and plug in new data\n\t\t\t//\t----------------------------------------\n\n\t\t\t$pre_save_settings = $this->EE->zenbu_get->_get_settings('pre_save');\n\n\t\t\t$setting_cols = array(\n\t\t\t\t'show_fields'\t\t\t=> 'output_data_show_fields',\n\t\t\t\t'show_custom_fields'\t=> 'output_data_show_custom_fields',\n\t\t\t\t'field_order'\t\t\t=> 'output_data_field_order',\n\t\t\t\t'extra_options'\t\t\t=> 'output_data_extra_options',\n\t\t\t\t);\n\n\t\t\tforeach($setting_cols as $col => $v)\n\t\t\t{\n\t\t\t\t// Plug in new values if present inside of $pre_save_settings\n\n\t\t\t\tforeach($pre_save_settings['setting'][$col] as $ch_id => $arr)\n\t\t\t\t{\n\t\t\t\t\t$db_data[$col][$ch_id] = isset(${$v}[$ch_id]) ? ${$v}[$ch_id] : $arr;\n\t\t\t\t}\n\n\t\t\t\t// What if it's a new channel? It won't be in $pre_save_settings,\n\t\t\t\t// so create this array and add it to data to be saved.\n\n\t\t\t\tif( ! isset($pre_save_settings['setting'][$col][$form_channel_id]) && isset($form_channel_id) )\n\t\t\t\t{\n\t\t\t\t\t$db_data[$col][$form_channel_id] = isset(${$v}[$form_channel_id]) ? ${$v}[$form_channel_id] : array();\n\t\t\t\t}\n\n\t\t\t\t$db_data[$col] = serialize($db_data[$col]);\t\t\t\t\t\t\t\n\n\t\t\t}\n\n\t\t\t/**\n\t\t\t*\tSave setting for single member\n\t\t\t*\t==============================\n\t\t\t*/\n\t\t\t$db_data['member_id'] = $this->member_id;\n\t\t\t$db_data['site_id'] = $this->site_id;\n\t\t\t$this->EE->db->from($this->addon_short_name . '_member_settings');\n\t\t\t$this->EE->db->where('member_id', $this->member_id);\n\t\t\t$this->EE->db->where('site_id', $this->site_id);\n\t\t\t$results = $this->EE->db->get();\n\t\t\tif($results->num_rows() > 0)\n\t\t\t{\n\t\t\t\t// If row exists, update\n\t\t\t\t$sql = $this->EE->db->update_string($this->addon_short_name . '_member_settings', $db_data, \"member_id = \".$this->EE->db->escape_str($this->member_id).\" AND site_id = \".$this->EE->db->escape_str($this->site_id));\n\t\t\t\t$this->EE->db->query($sql);\n\t\t\t} else {\n\t\t\t\t// If row doesn't exist, insert new row\n\t\t\t\t$sql = $this->EE->db->insert_string($this->addon_short_name . '_member_settings', $db_data);\n\t\t\t\t$this->EE->db->query($sql);\n\t\t\t}\n\n\t\t\t\n\t\t\t// ... then update with correct settings\n\t\t\t// for each member group (if any are selected, of course)\n\t\t\tif($post_data['copy_to_members'] !== FALSE)\n\t\t\t{\n\t\t\t\tunset($db_data['member_id']);\n\t\t\t\tforeach($post_data['copy_to_members'] as $key => $m_group_id)\n\t\t\t\t{\n\t\t\t\t\t$db_data['member_group_id'] = $m_group_id;\n\t\t\t\t\t$db_data['site_id'] = $this->site_id;\n\t\t\t\t\t\n\t\t\t\t\t$this->EE->db->from($this->addon_short_name);\n\t\t\t\t\t$this->EE->db->where('member_group_id', $m_group_id);\n\t\t\t\t\t$results = $this->EE->db->get();\n\t\t\t\t\tif($results->num_rows() > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t// If row exists, update\n\t\t\t\t\t\t$sql = $this->EE->db->update_string($this->addon_short_name, $db_data, \"member_group_id = \".$this->EE->db->escape_str($m_group_id).\" AND site_id = \".$this->EE->db->escape_str($this->site_id));\n\t\t\t\t\t\t$this->EE->db->query($sql);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// If row doesn't exist, insert new row\n\t\t\t\t\t\t$sql = $this->EE->db->insert_string($this->addon_short_name, $db_data);\n\t\t\t\t\t\t$this->EE->db->query($sql);\n\t\t\t\t\t}\n\n\t\t\t\t\t//\n\t\t\t\t\t//\tIf clear individual settings is enabled\n\t\t\t\t\t//\tFind users in each member group and remove settings in\n\t\t\t\t\t//\texp_zenbu_member_settings\n\t\t\t\t\t//\n\t\t\t\t\tif($post_data['clear_individual_settings'] !== FALSE)\n\t\t\t\t\t{\n\t\t\t\t\t\t$clear_members = array();\n\t\t\t\t\t\t$m_query = $this->EE->db->query('SELECT member_id FROM exp_members WHERE group_id = ' . $this->EE->db->escape_str($m_group_id));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($m_query->num_rows() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforeach($m_query->result_array() as $row)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$clear_members[] = $row['member_id'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif( ! empty($clear_members) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->EE->db->where_in('member_id', $clear_members);\n\t\t\t\t\t\t\t$this->EE->db->delete($this->addon_short_name . '_member_settings');\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} // END if $post_data['settings'] !== FALSE\n\t\t\t\n\t\t//\t----------------------------------------\t\n\t\t// \tIf post data is available to save/copy admin settings,\n\t\t// \tdo the appropriate queries here for each member group\n\t\t//\t----------------------------------------\n\t\tif($post_data['members'] !== FALSE)\n\t\t{\n\t\t\tforeach($post_data['members'] as $member_gr_id => $set)\n\t\t\t{\n\t\t\t\tforeach($this->permissions as $permission)\n\t\t\t\t{\n\t\t\t\t\tswitch($permission)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 'can_admin': \n\t\t\t\t\t\tcase 'can_copy_profile': \n\t\t\t\t\t\tcase 'can_access_settings':\n\t\t\t\t\t\t\t$setting[$permission] = ((isset($set[$permission]) && $set[$permission] == 'y') || $member_gr_id == 1) ? 'y' : 'n';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$setting[$permission] = (isset($set[$permission]) && $set[$permission] == 'y') ? 'y' : 'n';\n\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\t// Update\n\t\t\t\t$sql = $this->EE->db->update_string($this->addon_short_name, $setting, \"member_group_id = \".$this->EE->db->escape_str($member_gr_id).\" AND site_id = \".$this->EE->db->escape_str($this->site_id));\n\t\t\t\t$this->EE->db->query($sql);\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * \t----------------------------------------\n\t\t * For Super Admins, save data to enable the module for selected member groups.\n\t\t * A lot handier than viting each member group settings and enabling the add-on.\n\t\t * ----------------------------------------\n\t\t */\n\t\tif($post_data['enable_module'])\n\t\t{\n\t\t\t$module_id = array_search(ZENBU_NAME, $installed_addons['modules']);\n\n\t\t\t// Remove all member_group module access settings for this module\n\t\t\t// Will add new settings based on submitted data later\n\t\t\t$this->EE->db->delete('exp_module_member_groups', array('module_id' => $module_id)); \n\n\t\t\tforeach($post_data['enable_module'] as $key => $group_id)\n\t\t\t{\n\t\t\t\tif( $group_id != 1)\n\t\t\t\t{\n\t\t\t\t\t// Add member group to be allowed access to Zenbu\n\t\t\t\t\t$enable_data['group_id'] = $group_id;\n\t\t\t\t\t$enable_data['module_id'] = $module_id;\n\t\t\t\t\t$sql = $this->EE->db->insert_string('exp_module_member_groups', $enable_data);\n\t\t\t\t\t$this->EE->db->query($sql);\n\n\t\t\t\t\t// Turn on ADD-ONS and ADD-ONS => Modules options for the group.\n\t\t\t\t\t// I'll never understand this requirement.\n\t\t\t\t\t$enable_access['can_access_addons'] = 'y';\n\t\t\t\t\t$enable_access['can_access_modules'] = 'y';\n\t\t\t\t\t$this->EE->db->where('group_id', $group_id);\n\t\t\t\t\t$this->EE->db->update('member_groups', $enable_access);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tif($post_data['members'] !== FALSE || $post_data['settings'] !== FALSE)\n\t\t{\n\t\t// Display success message\n\t\t$this->EE->javascript->output('\n \t\t\t$.ee_notice(\"'.$this->EE->lang->line(\"message_settings_saved\").'\", {\"type\" : \"success\"});\n\t\t\t');\n\t\t}\n\t}", "title": "" }, { "docid": "b6f10fa6477826fee70ea9db63e486dd", "score": "0.57150763", "text": "function config_form(&$mform)\t{\n \t \t \t\n \t \t\n \t \t$options = array(\n \t\tILP_ENABLED => get_string('enabled','block_ilp'),\n \t\tILP_DISABLED => get_string('disabled','block_ilp')\n \t);\n \t\n \t \t$this->config_select_element($mform,'ilp_mis_attendance_summary_files_plugin_pluginstatus',$options,get_string('ilp_mis_attendance_summary_files_plugin_pluginstatus', 'block_ilp'),get_string('ilp_mis_attendance_summary_files_plugin_pluginstatusdesc', 'block_ilp'),0);\n\t\n \t }", "title": "" } ]
119816ee0de2e6b7614d615d99ec4ece
in case of instance app login goto root db
[ { "docid": "bf802e9620993554782b44067a6be9dd", "score": "0.6140425", "text": "function verify_login() {\n\t\t$mydb = & GetGlobal('controller')->calldpc_method('database.switch_db use +1+1'); \n\t\n\t\t$db = GetGlobal('db'); \n \n\t\tif (($user=GetParam('cpuser')) && ($pwd=GetParam('cppass'))) {\n\t\n\t\t\t//get running application info\n\t\t\t$is_instance_app = paramload('ID','isinstance');\n\t\t\t//echo $is_instance_app; \n\t\t\t$appname = paramload('ID','instancename');\n\t\t\t//echo '>',$appname;\n\t \n\t\t\t//INSERT ROOT USER\n\t\t\t//$sins = \"insert into dpcmodules (user,pwd,appname) values ('root','rootvk7dp','root')\";\n\t\t\t//$result = $db->Execute($sins,1);\t \n\t \n\t\t\t$sSQL .= \"select user,pwd,appname from dpcmodules where user='$user' and pwd='$pwd' and active=1\";\n\t\t\t$result = $mydb->Execute($sSQL,2);\t\n\t\t\t//echo $sSQL;\n\t\t\t//print_r($result);\n\t \n\t\t\t//if username & password exists\n\t\t\tif (($result->fields[0]==$user) && ($result->fields[1]==$pwd)) {\n\t \n\t\t\t\t//restore app db\n\t\t\t\tGetGlobal('controller')->calldpc_method('database.switch_db');//null = this app// use '.$appname); \t \n\n\t\t\t\t//must be instance and appname be correct\n\t\t\t\tif (($is_instance_app) && ($result->fields[2]==$appname)) {\n\t\t\t\t SetSessionParam('LOGIN','yes');\t\n\t\t\t\t SetSessionParam('USER',$user);\t\n\t\t\t\t return true;\n\t\t\t\t}//else is no instance (root app) appname=root \n\t\t\t\telseif ((!$is_instance_app) && ($result->fields[2]=='root')) {\n\t\t\t\t SetSessionParam('LOGIN','yes');\t\n\t\t\t\t SetSessionParam('USER',$user);\t\n\t\t\t\t SetSessionParam('ADMIN','yes');\n\t\t\t\t return true;\n\t\t\t\t} \n\t\t\t\telse\n\t\t\t\t return false;\n\t\t\t}\t\n\t\t}\t\n\t\treturn false;\n }", "title": "" } ]
[ { "docid": "1ba83f90d590fe603fd86706a2a6160f", "score": "0.6446588", "text": "public function appLogin(){\n\t\t$this->home_model->appLogin();\n\t}", "title": "" }, { "docid": "39f2d5d2e821519f7c7e5dc57a2422c0", "score": "0.5966344", "text": "function db_login() \n\t{\n\t\tglobal $db_user, $db_passwd, $db_host, $db_name;\n\t\t// using persistent connections so later connection can reuse it\n\t\treturn new PDO(\"mysql:host=$db_host;dbname=$db_name\", $db_user, $db_passwd, array(PDO::ATTR_PERSISTENT => true));\n\t}", "title": "" }, { "docid": "1c8f698d9e9b27ca9787d4bbf21b6ac1", "score": "0.58437276", "text": "function devlogin($f3) {\n\t\t\n\t\t// Attempt user switch if in dev mode\n\t\tif ( $f3->get('DEV') ){\n\t\t\t\n\t\t\t// Create mapper object from users table in DB\n\t\t\t$user=new DB\\SQL\\Mapper( $f3->get('DB') , 'user' );\n\t\t\t\n\t\t\t// Attempt to load the user from uid provided\n\t\t\t$user->load( array('uid=? AND type=1', $f3->get('PARAMS.uid')) );\n\t\t\t\n\t\t\t// Was a user found?\n\t\t\tif ( !is_null($user->uid) ){\n\t\t\t\t\n\t\t\t\t// Store user session details\n\t\t\t\t$f3->set('SESSION.uid', $user->uid);\n\t\t\t\t$f3->set('SESSION.name', $user->username);\n\t\t\t\t$f3->set('SESSION.type', $user->type);\n\t\t\t\t\n\t\t\t\t// Redirect to root\n\t\t\t\t$f3->reroute('/');\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// User doesn't exist or is not plain user type\n\t\t\t\t// Don't provide any error message that would be useful to a hacker\n\t\t\t\techo Template::instance()->render('app/views/login.php');\n\t\t\t}\n\t\t} else {\n\t\t\t// Not in dev mode\n\t\t\t// Don't provide any error message that would be useful to a hacker\n\t\t\techo Template::instance()->render('app/views/login.php');\n\t\t}\n\t}", "title": "" }, { "docid": "a4d3ca2fd365ac1796d321a4a40d9c19", "score": "0.57898974", "text": "abstract function userLogin($db);", "title": "" }, { "docid": "b212b36599c675f88920da4c27d130b9", "score": "0.5703368", "text": "public function login() {\n\t\t//shortcut variable $v also in scope in our view php file.\n\t\t$v =& $this->scene;\n\t\tif( !$this->isGuest() )\n\t\t{\n\t\t\tif ($v->redirect)\n\t\t\t\treturn $v->redirect;\n\t\t\telse\n\t\t\t\treturn $this->getHomePage();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->setupLoginInfo($v);\n\t\t\t$v->redirect = $this->getHomePage() ;\n\t\t}\n\t\t//indicate what top menu we are currently in\n\t\t$this->setCurrentMenuKey('account');\n\t}", "title": "" }, { "docid": "16375a85c3033358435b81989fab2d1a", "score": "0.5696441", "text": "abstract public function autologin();", "title": "" }, { "docid": "85062741b6cd159b2d8e0de4c2cd25fa", "score": "0.5692506", "text": "public function use_default_db()\n\t{\n\t\t//$this->setlocale();\n\t\t$this->_db = $this->db;\t\t\n\t}", "title": "" }, { "docid": "39efd3feb6f1088de1cea552401250d5", "score": "0.56795126", "text": "function loginToSystem() {\n $this->model->loginToSystem();\n }", "title": "" }, { "docid": "ba48fba331ef37dda759a52216eda4d4", "score": "0.567699", "text": "public function index()\n\t{\n\t\t$output = new BufferedOutput();\n\t\tArtisan::call('migrate:fresh',[\n\t\t\t'--seed' => true,\n\t\t\t'--force' => true\n\t\t],$output);\n\t\t\\Log::info($output->fetch());\n\t\t$hasKey = \\Kaankilic\\LaravelPlay\\Services\\ApplicationService::get()->hasKey([\"db_host\",\"db_database\",\"db_username\",\"db_password\",\"app_name\",\"app_url\"]);\n\t\tif(!$hasKey){\n\t\t\treturn redirect()->route(\"laravelplay::home\");\n\t\t}\n\t\treturn view('laravelplay::user');\n\t}", "title": "" }, { "docid": "a784338badc9d01d17c0ef464fbfb35c", "score": "0.56677085", "text": "protected function chooseDb() {\r\n\t\t$this->db = $this->_srv->get('db');\r\n\t}", "title": "" }, { "docid": "747cae5598b00debc370042e5740c89f", "score": "0.5667521", "text": "private function login() {\n $this->model->login();\n }", "title": "" }, { "docid": "bbbecf7d266f7c59f970e4f40f4b38c7", "score": "0.56359947", "text": "private function set_ocs_db()\n {\n global $argv;\n\n if (!empty($_SERVER['HTTP_HOST']))\n {\n $this->m_ocs_db = isys_glob_get_param('selected_ocsdb');\n }\n else\n {\n if (($l_key = array_search('-db', $argv)))\n {\n if (isset($argv[$l_key + 1]))\n {\n if (is_numeric($argv[$l_key + 1]))\n {\n $this->m_ocs_db = $argv[$l_key + 1];\n }\n elseif (is_string($argv[$l_key + 1]))\n {\n $this->m_ocs_db = $this->get_ocs_db_id_by_title($argv[$l_key + 1]);\n }\n }\n else\n {\n $this->usage(1);\n }\n }\n else\n {\n $this->m_ocs_db = isys_tenantsettings::get('ocs.default.db', null);\n }\n }\n }", "title": "" }, { "docid": "d5c5ab0313a333f24d401fcd0855454f", "score": "0.56131566", "text": "public function switchToDatabase() {\n\t\tif ($this->isElastic()) {\n\t\t\t$config = (empty($this->_oldConfig)) ? 'default' : $this->_oldConfig;\n\t\t\t$this->_oldConfig = null;\n\t\t\t$this->setDataSource($config);\n\t\t}\n\t}", "title": "" }, { "docid": "01278b4076a032a6cbd8fac1ab314986", "score": "0.5579871", "text": "public function main() {\n $Statistic = new Statistic;\n $Statistic->saveStatistic();\n $user = new user;\n $check = $user->checkIfRoot();\n if ($check == false ) {\n return Redirect(\"/admin/setPassword\");\n }\n else if ( !Auth::check()) {\n return Redirect(\"/admin/login\");\n }\n else if ( Auth::User()->login == \"root\" ){\n return View(\"admin.main\");\n }\n else {\n return Redirect(\"/admin/login\");\n }\n }", "title": "" }, { "docid": "9166c9b41c9c2f55bbbd624a39b0d7a3", "score": "0.55634487", "text": "function db_default_user()\n\t{\n\t\treturn 'root';\n\t}", "title": "" }, { "docid": "9deb1a76a97cce75d67eeec5a4b4f7e6", "score": "0.55458784", "text": "public function change_db_to_default(){\r\n mysqli_select_db(Database::$con,$this->dbname);\r\n }", "title": "" }, { "docid": "33168718f58ff7aae1b1834d8f87e2eb", "score": "0.5543685", "text": "public static function startConnection(){\n\t\tDB::$user = DB_USER;\n\t\tDB::$password = DB_PASSWORD;\n\t\tDB::$dbName = DB_NAME;\n\t}", "title": "" }, { "docid": "d513b0814f8cd1a8df6fa951099bcd4f", "score": "0.5514678", "text": "public function login()\t\n\t{\n\t\tredirect('/user', 'refresh');\n\t\t\n\t}", "title": "" }, { "docid": "184dca6c2cbcceacb96375d83f2fabfa", "score": "0.55080307", "text": "function _load_session_db()\n\t{\n\t\tswitch (ENVIRONMENT)\n\t\t{\n\t\t\tcase 'development':\n\t\t\t\t$DB = $this->load->database('localmilan', TRUE);\n\t\t\tbreak;\n\n\t\t\tcase 'testing';\n\t\t\t\t$DB = $this->load->database('milan', TRUE);\n\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\t$DB = $this->load->database('instyle', TRUE);\n\t\t}\n\t\t\n\t\treturn $DB;\n\t}", "title": "" }, { "docid": "5f62c13959457da7ffc99d19d9f4abc7", "score": "0.54657644", "text": "private function login_demo() {\n\t\t$this->login_with_id(config::DEMO_USER_ID);\n\t}", "title": "" }, { "docid": "b14cdde7c1995192374ac0d60a05aadf", "score": "0.5443847", "text": "private function setLocation() {\n\t\tswitch ($_SERVER['instance']) {\n\t\t\tcase 'prod':\n\t\t\t\t$this->location = 'prod';\n\t\t\t\t$this->setDbVals('mydomain.com:6969', 'frank', 'beans');\n\t\t\t\tbreak;\n\t\t\tcase 'dev':\n\t\t\t\t$this->location = 'dev';\n\t\t\t\t$this->setDbVals('mydevdomain.com:6060', 'kibbles', 'bits');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->location = 'local';\n\t\t\t\t$this->setDbVals('localhost:6060', 'root', 'root');\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "950ea3450f08d2d08c70ce5f6be6a554", "score": "0.543951", "text": "public function login(){\n\t\t$this->home_model->login();\n\t}", "title": "" }, { "docid": "be844fac7b9dda51b7c1093f993072fb", "score": "0.54174614", "text": "public function runAsRoot()\n\t{\n\t\tif ($this->protectedMode)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($creds = $this->getRootCredentials())\n\t\t{\n\t\t\t$db = Driver::getInstance(\n\t\t\t\tarray(\n\t\t\t\t\t'driver' => (\\Config::get('dbtype') == 'mysql') ? 'pdo' : \\Config::get('dbtype'),\n\t\t\t\t\t'host' => \\Config::get('host'),\n\t\t\t\t\t'user' => $creds['user'],\n\t\t\t\t\t'password' => $creds['password'],\n\t\t\t\t\t'database' => \\Config::get('db'),\n\t\t\t\t\t'prefix' => \\Config::get('dbprefix')\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// Test the connection\n\t\t\tif (!$db->connected())\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->db = $db;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8347d73d32d7e4a9aa06db3fe9986abb", "score": "0.540877", "text": "public static function login()\n\t{\n\t\trequire_once \"./vistas/loginView.php\";\n\t}", "title": "" }, { "docid": "f6b7c51c5b20f9a7474f75ef970d982d", "score": "0.54071903", "text": "function dbmgr () {\t\tHeader(\"Location: dblinker.php\");\texit;\t\t\t}", "title": "" }, { "docid": "3f377fb58074c6b2af2a1339eccb328e", "score": "0.54053545", "text": "private function start_db ()\n\t{\n\t\trequire_once (HELPER_FOLDER.'/DB.class.php');\n\t\t\n\t\t$this->db = new DB (DB_HOST, DB_NAME, DB_USER, DB_PASS);\n\t}", "title": "" }, { "docid": "21fd24a0157bfa1fb60df26fb0d4021a", "score": "0.5395303", "text": "private function switchDatabasePath()\n {\n $this->config()->set(\n 'geoip.drivers.maxmind-database.options.database-path',\n realpath(__DIR__ . '/../fixture/data/geoip.mmdb')\n );\n }", "title": "" }, { "docid": "53689cfd43c000aefe560ae6478f055f", "score": "0.53918827", "text": "abstract protected function initDB();", "title": "" }, { "docid": "b81392599a7114107074d128020d6530", "score": "0.53874755", "text": "protected function __construct($appName = 'demo', $appRoot = '')\n {\n \t$this->connectDB();\n\t\tsession_start();\n }", "title": "" }, { "docid": "7020436f49339e03361a5a51851a3a4f", "score": "0.53825706", "text": "static public function before_db() {\n\t\tif ( IncPopup::use_global() ) {\n\t\t\tswitch_to_blog( BLOG_ID_CURRENT_SITE );\n\t\t}\n\t}", "title": "" }, { "docid": "ce0ded1e5256da38a91fc592c7325e4c", "score": "0.53761655", "text": "public function select_db(){}", "title": "" }, { "docid": "6d0e2dd812d684d5cca504012d521978", "score": "0.53741765", "text": "public function index() \n\t{\n\t\t$this->login();\n\t}", "title": "" }, { "docid": "15b2e9eca31554d94bc163b04737ea22", "score": "0.5373903", "text": "public function appAction() {\n\t\t// $this->_auth->setStorage ( new Zend_Auth_Storage_Session (\n\t\t// 'Fancrank_Admin' ) );\n\t\t// $this->_auth->getStorage ()->write ( $user );\n\t\t$this->_helper->layout ()->setLayout ( 'preview_user_app_layout' );\n\t}", "title": "" }, { "docid": "177e64125d0eafd110f7d8c2d15f8c36", "score": "0.53730863", "text": "public function dbconnection()\n {\n try {\n /** @var Connection */\n $connection = ConnectionManager::get('default');\n if ($connection->connect()) {\n $this->log('Database connection found.');\n\n return $this->installerRedirect('salt');\n }\n } catch (\\Throwable $connectionError) {\n // connection manager will throw error if no connection\n }\n\n $this->log('No database connection.');\n $this->set('database', false);\n }", "title": "" }, { "docid": "fb34fa786cecbbcd85dfc3ad36c0ac0b", "score": "0.5361575", "text": "public function _selectDB() {\r\n // Nothing to do here\r\n }", "title": "" }, { "docid": "2a39a53834a3ca9e291f4b1c81c6c36c", "score": "0.5355854", "text": "public function indexAction()\n {\n\n\t\t/*echo DB_HOST;\n\t\tECHO \"xxx\";\n\t\techo DB_PORT;\n\t\tECHO \"xxx\";\n\t\techo DB_USER;\n\t\tECHO \"xxx\";\n\t\techo DB_PASS;*/\n\t\t\n $mobile=$this->checkmobile();\n if ($mobile) {\n $this->_helper->redirector('prono2', 'index');\n } \n else { \n $this->_helper->redirector('prono', 'index');\n }\n \n }", "title": "" }, { "docid": "3e35e711a76ad68d371d63e973e596dc", "score": "0.5355414", "text": "public function init(){\n\n\t\t$this->connection = Yii::app()->db;\n\t\tif(!isset($this->userid) AND isset($_SERVER['SERVER_NAME'])){ $this->userid = Yii::app()->user->id; }\n\n\t}", "title": "" }, { "docid": "ebddd9a7670e40921d7a81ebf2a883f4", "score": "0.5353596", "text": "function trylogin()\n {\t\n\t\t$ret_url = base_url();\n\n\t\t$tmp = SHIN_Core::$_libs['auth']->trylogin();\n\n\t\t$neededLibs = array('libs' => array('SHIN_Session'));\n\t\tSHIN_Core::postInit($neededLibs);\n \n redirect('/main', 'refresh');\n }", "title": "" }, { "docid": "678288212a0ddc25cd4c340bb7ed4d4d", "score": "0.5337969", "text": "static public function getLogin() {\n return self::$databases['login'];\n }", "title": "" }, { "docid": "50f48942f89a8494285729e788b2aeb0", "score": "0.5324764", "text": "public function tendoo_setup()\n {\n // If a master already exists, \n if ($this->users->auth->has_member('master')) {\n redirect(array( 'sign-in?notice=access-denied' ));\n }\n }", "title": "" }, { "docid": "e16ce548ff0cf1e585a106b2fff82b88", "score": "0.53238857", "text": "function Vacancy() {\r\n\t\tmysql_connect(DBSERVER, DBUSER, DBPASS); // from dbconfig.php\r\n\t\t$selectdb = mysql_select_db(DBNAME);\r\n\t}", "title": "" }, { "docid": "71bed6ced5a2a33ae819926bdb28d548", "score": "0.53232205", "text": "public function actionLogin()\n {\n define( \"SERVER_ONLINE\", TRUE);\n define( \"SPEED_APPKEY\" , '100011' );\n define( \"SPEED_APPSECRET\" , '4440f0f9527b3217ebe15009d6dae348' );\n parent::login();\n }", "title": "" }, { "docid": "cbaa5288f2cbc9ab6cf7b5ef22629b95", "score": "0.5322288", "text": "function database() {\n\t\tif(!empty($this->host)&&!empty($this->user)&&!empty($this->password)&&!empty($this->database)) {\n\t\t\t$this->connect();\n\t\t}\n\t}", "title": "" }, { "docid": "a0adbadbe0b426272938a048b54622af", "score": "0.5314499", "text": "private function setDefaultDatabase()\n {\n $this->add('database', function (DependencyInjectionContainer $dic) {\n return (new DefaultDatabasePlugin($dic))->init();\n });\n }", "title": "" }, { "docid": "61b7f784b9c7f5d9736ce0b581e74fac", "score": "0.53041327", "text": "public function login()\n\t{\n\t\tif(!isset($this->sid) || $this->groupid=='')\n\t\t{\n\t\t\t$this->display();\n\t\t}else{\n\t\t\t$this->redirect('index','Index');\n\t\t}\n\t}", "title": "" }, { "docid": "309a3e535cfbedbdc5b849b64032a64b", "score": "0.5297054", "text": "public function actionLogin1()\n {\n if (!\\Yii::$app->user->isGuest) {\n return $this->goHome();\n }\n }", "title": "" }, { "docid": "250f94bc8dc1e3048fe25819b902d924", "score": "0.52919227", "text": "public function admin_login() \n\t{\n\t\tredirect('login/login_admin');\n\t}", "title": "" }, { "docid": "8dccb970d6a4b66e56414231a907b574", "score": "0.5273222", "text": "private static function setupDatabase(){\n /** See if there is a database.json file in the **/\n $database_file = FUNKY_APPLICATION_BASE_PATH.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'database.json';\n if(file_exists($database_file)){\n $connections = Config\\Json::read($database_file);\n Data\\Connection::setup($connections[APPLICATION_ENV]);\n } \n }", "title": "" }, { "docid": "f3322b3e543339f954faa8f07c2cc4b1", "score": "0.52729195", "text": "protected function checkLogin()\n {\n if (!$this->LoginData) {\n $this->session->set_userdata('solr.callback',current_url());\n redirect('auth');\n }\n }", "title": "" }, { "docid": "ef56c56623d26b900bbbfb001cb20a82", "score": "0.52687114", "text": "public function iLoginAsACounsellorUser()\n {\n $this->iLoginWithAnd(\n '[email protected]',\n 'xxx',\n '/admin/login'\n );\n }", "title": "" }, { "docid": "55ad40e44e9ae35e4a12b830be3c09fa", "score": "0.52635896", "text": "public function index()\n\t{\n\t\tredirect('admin/login/signin/');\n\t}", "title": "" }, { "docid": "c92ff034aa5cd864f15d0d73ac21d169", "score": "0.5256045", "text": "private function setDefaultDatabase() {\n $this->add('database', function ($dic) {\n $db = $dic->registry->get('DATABASE_ENGINE');\n $host = $dic->registry->get('DATABASE_HOST');\n $port = $dic->registry->get('DATABASE_PORT');\n $name = $dic->registry->get('DATABASE_NAME');\n $user = $dic->registry->get('DATABASE_USERNAME');\n $pass = $dic->registry->get('DATABASE_PASSWORD');\n \n $database = new PDO(\n $db.':host='.$host.';dbname='.$name.($port?';port='.$port:''),\n $user,\n $pass\n );\n $database->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n return $database;\n });\n }", "title": "" }, { "docid": "f6ce3bcb0fdfdadb8dd0883eb58a95d0", "score": "0.5255013", "text": "private function startup() { \n # If DB doesn't exist create it\n if(!$this->get_model(\"DbModel\")->test_db()) {\n $this->get_model(\"StartupModel\")->first_run();\n $this->redirect(\"login\");\n } \n \n # If DB tables aren't setup, create them\n if (!$this->get_model(\"StartupModel\")->test_tables()) {\n if (file_exists(ROOT . DS . \"config\" . DS . \"createtables.sql\")) { \n $sql = file_get_contents(ROOT . DS . \"config\" . DS . \"createtables.sql\");\n $this->get_model(\"StartupModel\")->setup_tables($sql);\n $this->get_model(\"StartupModel\")->startup_data();\n $this->redirect(\"login\");\n }\n else {\n $this->build_page(\"db-error\");\n }\n }\n \n # If system admin is not setup, ask to create it\n if(!$this->get_model(\"StartupModel\")->test_users()){\n \n # No errors state \n $active_key = \"ACTIVE\";\n $active_class = \"\";\n \n $this->output->add_locale($active_key, $active_class);\n \n $err_key = \"STARTUP_ERROR\";\n $err_mess = \"\";\n \n $this->output->add_locale($err_key, $err_mess);\n \n # If errors are returned\n if (isset($_SESSION[\"error\"])){ \n $active_key = \"ACTIVE\";\n $active_class = \"active\";\n \n $this->output->add_locale($active_key, $active_class);\n \n $err_mess .= \"Errors found!\";\n $err_mess .= \"<br />\\n\";\n \n foreach ($_SESSION[\"error\"] as $error) {\n $err_mess .= $error . \"<br />\\n\"; \n }\n \n unset($_SESSION[\"error\"]);\n $this->output->add_locale($err_key, $err_mess);\n }\n \n $this->get_model(\"PageModel\")->page_title = \"Start up\";\n $this->build_page(\"startup\");\n }\n }", "title": "" }, { "docid": "0fe3f17215957a6767ccd65d8ec57ef4", "score": "0.5245538", "text": "public function index() {\n $admin_session = $this->session->userdata('nfc_admin_session');\n if ($admin_session['active'] === TRUE) {\n redirect(base_url());\n } else {\n $this->do_login();\n }\n }", "title": "" }, { "docid": "b73ca9247f852a97541246e54bc441d0", "score": "0.52363133", "text": "private function login()\n {\n if (isset($this->_name)) {\n $this->auth->activate($this->_name);\n $this->auth->login();\n }\n\n $this->validate();\n\n if ($this->session->return) {\n $this->redirect($this->session->return);\n $this->session->return = false;\n } elseif ($this->config->auth['start']) {\n $this->redirect($this->config->auth['start']);\n }\n }", "title": "" }, { "docid": "c9e257d01fcd21196225906d8a1e2e30", "score": "0.5229572", "text": "public function select_db() {\n\t\t@mysql_select_db($this->dbname,self::$dblink) or die($this->error());\n\t}", "title": "" }, { "docid": "0af9c16d14eb94d4feb4aa33d4f81bbd", "score": "0.5221981", "text": "public function manage()\n\t{\n\t\t/* Clear previous session data */\n\t\tif( count( $_SESSION ) )\n\t\t{\n\t\t\tforeach( $_SESSION as $k => $v )\n\t\t\t{\n\t\t\t\tunset( $_SESSION[ $k ] );\n\t\t\t}\n\t\t}\n\n\t\t$login = new \\IPS\\Login( \\IPS\\Http\\Url::internal( \"controller=login&start=1\", NULL, NULL, NULL, \\IPS\\Settings::i()->logins_over_https ) );\n\t\t$login->flagOptions\t= FALSE;\n\t\t\t\t\n\t\t/* < 4.0.0 */\n\t\t$legacy = FALSE;\n\t\tif( \\IPS\\Db::i()->checkForTable( 'login_methods' ) )\n\t\t{\n\t\t\t$legacy = TRUE;\n\t\t}\n\t\t\n\t\t/* Restoring a part finished upgrade means no log in hander rows even though table has been renamed */\n\t\tif ( \\IPS\\Db::i()->checkForTable( 'core_login_handlers' ) )\n\t\t{\n\t\t\t$legacy = FALSE;\n\t\t\t\n\t\t\tif ( ! \\IPS\\Db::i()->select( 'COUNT(*)', 'core_login_handlers' )->first() )\n\t\t\t{\n\t\t\t\t$legacy = TRUE;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ( $legacy === TRUE )\n\t\t{\n\t\t\t/* Force internal only as we don't have the framework installed (JS/templates, etc) at this point to run external log in modules */\n\t\t\t\\IPS\\Login\\LoginAbstract::$databaseTable = 'login_methods';\n\t\t\t\n\t\t\t$login::$allHandlers['internal'] = \\IPS\\Login\\LoginAbstract::constructFromData( array (\n\t\t\t\t'login_key' => 'Upgrade',\n\t\t\t\t'login_enabled' => 1,\n\t\t\t\t'login_settings' => '{\"auth_types\":\"3\"}',\n\t\t\t\t'login_order' => 1,\n\t\t\t\t'login_acp' => 1\n\t\t\t) );\n\t\t\t\n\t\t\t$login::$handlers = $login::$allHandlers;\n\t\t}\n\n\t\t$handlers = \\IPS\\Login::handlers();\n\n\t\t/* Process */\n\t\t$error = NULL;\n\t\ttry\n\t\t{\n\t\t\t$member = $login->authenticate();\n\t\t\tif ( $member !== NULL )\n\t\t\t{\n\t\t\t\t/* Create a unique session key and redirect */\n\t\t\t\t$_SESSION['uniqueKey']\t= md5( uniqid( microtime(), TRUE ) );\n\n\t\t\t\t\\IPS\\Output::i()->redirect( \\IPS\\Http\\Url::internal( \"controller=systemcheck\" )->setQueryString( 'key', $_SESSION['uniqueKey'] ) );\n\t\t\t}\n\t\t}\n\t\tcatch ( \\Exception $e )\n\t\t{\n\t\t\t$error = $e->getMessage();\n\t\t}\n\n\t\t/* Output */\n\t\t\\IPS\\Output::i()->title\t\t= \\IPS\\Member::loggedIn()->language()->addToStack('login');\n\t\t\\IPS\\Output::i()->output \t.= \\IPS\\Theme::i()->getTemplate( 'forms' )->login( $login->forms( TRUE ), $error );\n\t}", "title": "" }, { "docid": "68a1f915eec6f90008df6ea4e89a7657", "score": "0.52147156", "text": "public function ensureDatabase();", "title": "" }, { "docid": "7333c5046b3ed21d7fff43d49d82ecc9", "score": "0.5212055", "text": "public function index()\n {\n //$Users = Db::table('logins')->where('id','>',0)->first();\n\n\n if(Session::get('state') == \"true\")\n {\n return redirect('/home');\n }\n else\n {\n return view('pages.login');\n }\n }", "title": "" }, { "docid": "da16ca28d13f851e23744514066446d9", "score": "0.520768", "text": "public static function loadMainDatabase()\n {\n DatabaseDestroyer::dropAllTables('main');\n echo 'Running Main Migrations On Connection main' .PHP_EOL;\n Artisan::call('migrate', [\n '--path' => \"database/migrations/main\",\n '--database' => 'main',\n ]);\n echo 'Migrations Complete' .PHP_EOL;\n }", "title": "" }, { "docid": "3112de49f6ab1f69ee11fe7514be5a56", "score": "0.5206918", "text": "private function event_onLogin() {}", "title": "" }, { "docid": "db427ba3431c0fd91e9b69d88d2c197d", "score": "0.5198737", "text": "public function login()\n {\n $this->model->login();\n }", "title": "" }, { "docid": "72e9066f0e7b20ef835ea808e422ea48", "score": "0.5196673", "text": "public function loginAction()\n\t{\n\t\t$this->_helper->viewRenderer->setNoRender();\n\t\t\n\t\t$request = $this->getRequest();\n\t\t\n\t\t$this->db = Zend_Registry::get('db');\n\t\t\n\t\t$bootOut = \"location:http://www.humanities.manchester.ac.uk/tandl/elearning/exemplars/\";\n\t\t\n\t\t//is $_SERVER['HTTP_CAS_USER'] set? No? Error page!\n\t\tif(!isset($_SERVER['REMOTE_USER']))\n\t\t{\n\t\t header($bootOut);\n\t\t exit;\n\t\t}\n\t\t\n\t\t//check CAS id against local users table\n\t\t$userOb = new User();\n\t\t$userRow = $userOb->fetchRow($userOb->select()->where('username = ?', $_SERVER['REMOTE_USER']));\n\t\t\n\t\t$auth = Zend_Auth::getInstance();\n\t\t\n\t\tif(!$userRow)\n\t\t{\n\t\t\t//invalid user\n\t\t\t$auth->clearIdentity();\n\t\t\theader($bootOut);\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//valid user\n\t\t\t$auth->getStorage()->write($userRow);\n\t\t\t$this->user = $auth->getStorage()->read();\n\t\t\t\n\t\t\t//$authSession = new Zend_Session_Namespace('Zend_Auth');\n\t\t}\n\t\t\n\t\t$this->_redirect('/');\n\t\t\n\t}", "title": "" }, { "docid": "1bb38dd6afc13841f56302141e6a281b", "score": "0.5193072", "text": "Public Function SelfHostedLogin()\n\t{\n\t\tZend_Registry::set('Instance/LayoutType', 'blank-layout');\n\t}", "title": "" }, { "docid": "b1a2ae67c9fc9fb5117569640b99009f", "score": "0.51926476", "text": "public function index() {\n\t\tredirect('auth/login','refresh');\n\t}", "title": "" }, { "docid": "cf102783b76346c45b9a03333881ea6e", "score": "0.51882607", "text": "static function switchToMaster() {\n global $DB;\n\n $DB = new DB();\n return $DB->connected;\n }", "title": "" }, { "docid": "fa8674232e2f129f4ea71524a4f8fd06", "score": "0.5185616", "text": "public function login();", "title": "" }, { "docid": "fa8674232e2f129f4ea71524a4f8fd06", "score": "0.5185616", "text": "public function login();", "title": "" }, { "docid": "fa8674232e2f129f4ea71524a4f8fd06", "score": "0.5185616", "text": "public function login();", "title": "" }, { "docid": "5af139fe77d4f91577173c7cec8dc8b2", "score": "0.5181971", "text": "abstract protected function connectDB();", "title": "" }, { "docid": "3509f3f9fd8bc1cbd5086e702a0a86aa", "score": "0.5177667", "text": "function createDefaultAdmin($db){\n $encrypt_password = password_hash(\"Iamadmin1\", PASSWORD_DEFAULT);\n $query = 'INSERT INTO users (username, user_password, type) VALUES(\"admin\", :encrypt_password, \"admin\")';\n $statement = $db->prepare($query);\n $statement->bindValue(':encrypt_password', $encrypt_password);\n $statement->execute();\n $statement->closeCursor();\n }", "title": "" }, { "docid": "4489e34f54cf03760f8986ed1f857c95", "score": "0.5173836", "text": "public function index()\n {\n if ($this->session->userdata('admin_login') != 1)\n redirect(base_url() . 'index.php?login', 'refresh');\n if ($this->session->userdata('admin_login') == 1)\n redirect(base_url() . 'index.php?admin/dashboard', 'refresh');\n }", "title": "" }, { "docid": "4c529a7b89324f1e541f469c5aafd25a", "score": "0.5173249", "text": "public function home(){\n //i.e check if it is first installation\n $setting = Setting::first();\n if(empty($setting)){\n //redirect to installation route\n return redirect()->to('/installation');\n }\n\n return view('auth.login');\n }", "title": "" }, { "docid": "11ee3170f0d94b4cdf9f4146fb6c1e00", "score": "0.5162607", "text": "public function needToLogin(){\n if(!$this->user){\n $this->goToLogin();\n }\n }", "title": "" }, { "docid": "b7185ce2e36ee27b081d47bca6afddaa", "score": "0.5158219", "text": "function fallback(){\n $host=$this->db->hostname;\n $username=$this->db->username;\n $password=$this->db->password;\n $db=$this->db->database;\n //print_array($password);\n backup_database($username, $password,$host, $db);\n\n }", "title": "" }, { "docid": "a95cd75c402d55bd5a788d2a92722b02", "score": "0.5149953", "text": "public function run()\n {\n //\n $logins=array(\n \tarray(\n \t\t//'name'=>'Admin User',\n \t\t'email'=>'[email protected]',\n \t\t'password'=>Hash::make('admin123'),\n \t\n \t)\n \t\n );\n DB::table('logins')->insert($logins);\n }", "title": "" }, { "docid": "85d5e02fd9334120071408c379023ac0", "score": "0.51456803", "text": "public function index()\n {\n $this->putline(\" > Current database enviroment: \". ENVIRONMENT);\n }", "title": "" }, { "docid": "17c83b47fb3e6eade95c14d05d0739e1", "score": "0.51450783", "text": "public function login_redirect() {\n $this->f3->set('use_viewport', false);\n $this->f3->set('view', 'user/login.htm');\n }", "title": "" }, { "docid": "b363445806ad6169091baf575a5d3b15", "score": "0.51422244", "text": "function switchDatabase($db) {\n\t\tif ($this->loadStatus === false) return -1;\n\n\t\treturn (strcasecmp($db,'sql') === 0)?\n\t\t\t\t $this->writeSplashDBSQL('all', false)\n\t\t\t\t :\n\t\t\t\t $this->writeSplashDBFlatfile();\n\t}", "title": "" }, { "docid": "197749c94015bc203f84dcef2370bf54", "score": "0.5141797", "text": "public function openDatabase () \n {\n if(is_dir($this->databasePath)) {\n opendir($this->databasePath);\n } else {\n echo \"Database {$this->databaseName} does not exist.\\n\";\n }\n }", "title": "" }, { "docid": "3c6a675450358ba58efdc49746af0c33", "score": "0.5140843", "text": "private function upgrade_db_post_4763()\n\t{\n\t\tOptions::delete( 'base_url' );\n\n\t}", "title": "" }, { "docid": "0e08a787d3cab516eca99961d75564e3", "score": "0.5139926", "text": "public function home()\n {\n if ($this->app['security']->isGranted('ROLE_ADMIN')) {\n return $this->app->redirect($this->app['url_generator']\n ->generate('homepage'));\n } else {\n return $this->app->redirect($this->app['url_generator']\n ->generate('login'));\n }\n }", "title": "" }, { "docid": "6f34d081d5f603a06784b2b8ff68d638", "score": "0.51372826", "text": "public function index()\n\t{\n\t\t\n\t\tif ($this->session->userdata('admin_login') != 1)\n\t\t\tredirect(base_url() . 'index.php?login', 'refresh');\n\t\tif ($this->session->userdata('admin_login') == 1)\n\t\t\tredirect(base_url() . 'index.php?admin/dashboard', 'refresh');\n\t}", "title": "" }, { "docid": "4489d75f46b301dd4731521579348b0a", "score": "0.5130867", "text": "public function index() {\n if ($this->getSession()) redirect('/');\n // Otherwise shows the login form\n else view('auth.login');\n }", "title": "" }, { "docid": "5eb5bb7c7ca65b5a02572cb5fd59d35f", "score": "0.5129987", "text": "public static function DataBaseBoot()\n {\n self::BootAppConstants();\n self::BootFrameworkFunctions();\n\n // only try to connect to the database if the db_name is set in .env file\n if (Env::has('DB_NAME') && !empty(trim(Env::get('DB_NAME')))) {\n DataBase::createConnection();\n }\n }", "title": "" }, { "docid": "3687c4084407e9a4030a42676d3b3a1b", "score": "0.51280123", "text": "public function login()\n {\n $loginPage = LoginPage::openBy($this);\n $loginPage->login('webmaster', 'webmaster');\n }", "title": "" }, { "docid": "84f35ed98fb9da549d6a24701a1e908d", "score": "0.5123971", "text": "public function currentdb(){\r\n\t\treturn $this->dbname; \r\n\t}", "title": "" }, { "docid": "30736073fda362abe613f45ff015e1ee", "score": "0.5123574", "text": "public function loadDatabases(){\n $this->cat->initDatabase($this->db);\n $this->post->initDatabase($this->db);\n }", "title": "" }, { "docid": "670a94fb39c96cb1b081557c78b89f6d", "score": "0.5123132", "text": "private static function initDBSettings() { //Put your site DB Connection data here\n return getenv('IS_DEV') ? array (\n \"dbhost\" => \"localhost\",\n \"dbusername\" => \"root\",\n \"dbpassword\" => \"2c4uk915\",\n \"dbname\" => \"landscaping\"\n ) : array (\n \"dbhost\" => \"localhost\",\n \"dbusername\" => \"landscap_db_adm\",\n \"dbpassword\" => \"2c4uk915\",\n \"dbname\" => \"landscap_new\"\n );\n }", "title": "" }, { "docid": "a9bc14a857ba0b940985f4b17f25e045", "score": "0.5118607", "text": "public static function getDefaultHome()\n {\n return static::find()\n ->where([\n 'default' => 1\n ])\n ->one();\n }", "title": "" }, { "docid": "67ce82a174eabc43a3cdcef36f29727c", "score": "0.5114017", "text": "static function user_login($user) {\n // to run and take care of those now.\n if ($user->admin && module::get_var(\"gallery\", \"choose_default_tookit\", null)) {\n graphics::choose_default_toolkit();\n module::clear_var(\"gallery\", \"choose_default_tookit\");\n }\n Session::instance()->set(\"active_auth_timestamp\", time());\n auth::clear_failed_attempts($user);\n }", "title": "" }, { "docid": "2bc2f600f95111238482fed615ebc2e6", "score": "0.5113931", "text": "public function setRoot()\n {\n Session::put('root', $this->currentRouteUrlRoot($this->getConfig()->getAbsoluteUrls()));\n }", "title": "" }, { "docid": "46ab7859811247910e2238aa3e3373d9", "score": "0.511199", "text": "private function loadDB() {\n $dbInstance = DB::init()->getDB();\n }", "title": "" }, { "docid": "11ceef20d7e1ccb7b352f355543ca1e6", "score": "0.5111858", "text": "static function ChangeDB($userId)\n {\n $user = Cache::get('user_' . $userId);\n if($user != null)\n {\n Config::set('database.connections.mysql_user.host',$user->pt_db_hostname);\n Config::set('database.connections.mysql_user.username',$user->pt_db_username);\n Config::set('database.connections.mysql_user.password',$user->pt_db_password);\n Config::set('database.connections.mysql_user.database',$user->pt_db_name);\n DB::setDefaultConnection('mysql_user');\n }\n\n }", "title": "" }, { "docid": "0f0425330546c91cb1fed3d948fc53a3", "score": "0.5105285", "text": "public function index()\n\t{\n\t\t$this->load->model('admin_login');\n\t\t$data['pass'] = $this->admin_login->jumpcheck();\n\t\t\n\t\tif($data['pass'] == 1){\n\t\t\t\n\t\t\t$this->Admin();\n\t\t\t\n\t\t\t}\n\t\telse{\n\t\t\t\n\t\t\t$this->Main();\n\t\t\t\n\t\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "ffc7fdcf699eeac8af1e061df95377f8", "score": "0.51039696", "text": "public static function connectToDB() {\n DBHelper::$identifier_db = mysql_select_db(\"blog1\", DBHelper::$connection_identifier) or die(\"Could not select `calendar` database!\");\n }", "title": "" }, { "docid": "c36dc6cb26417ab3fc2e00174fbe00c6", "score": "0.5102484", "text": "public function actionLogin()\n {\n \n }", "title": "" }, { "docid": "5c97d227019b24918c995beec12707ad", "score": "0.5101779", "text": "public function post_login()\n\t{\n\t\t// check login here\n\t\tredirect('home');\n\t}", "title": "" }, { "docid": "0699c3ff89037a22ad9587f3fcbf4ce7", "score": "0.51011187", "text": "public function login()\n {\n Saml2Auth::login();\n //does not return, it executes a redirection\n }", "title": "" }, { "docid": "24fab87f893f40eddc00605934cc0860", "score": "0.5100945", "text": "public function indexAction(){\n $checklogin = $this->get('authlogin')->checkLogin();\n if($checklogin == 0){\n return $this->redirectToRoute(\"logincp\");\n }\n }", "title": "" } ]
543071a666af87c4a84ba2b7b70793e5
The method to get the status
[ { "docid": "b9be382661e267e816a7656fa10d715e", "score": "0.0", "text": "public function getStatus()\n\t{\n\t\treturn $this->getKeyValue('status'); \n\n\t}", "title": "" } ]
[ { "docid": "1869fa791adf7f41954bacee528589b0", "score": "0.91299176", "text": "public function get_status()\n {\n }", "title": "" }, { "docid": "1869fa791adf7f41954bacee528589b0", "score": "0.91299176", "text": "public function get_status()\n {\n }", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "f601fb4810896ab44bd5777430e8c0d1", "score": "0.90042883", "text": "public function getStatus();", "title": "" }, { "docid": "d67712527076d76cd3772621e3ebacc6", "score": "0.88052475", "text": "private function GetStatus() {\r\n\t\t\treturn $this->status;\r\n\t\t}", "title": "" }, { "docid": "52841f5e4f8672684eb3cefd0023805f", "score": "0.8746618", "text": "public function get_status(){\n return $this->status;\n }", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.87387466", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.8738117", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.8738117", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.8738117", "text": "public function getStatus() {}", "title": "" }, { "docid": "79cdc55c5025518a39c3400d64cb9960", "score": "0.8738117", "text": "public function getStatus() {}", "title": "" }, { "docid": "2c61d4271292179a51c16bbd1f386347", "score": "0.86310333", "text": "public function getStatus(){\n\t\treturn $this->status;\n\t}", "title": "" }, { "docid": "1ad13ff71ee573d9cc02f8b661f688c2", "score": "0.8627768", "text": "public function getstatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "5ee3526a8477931ca4e8546e3f9ce088", "score": "0.86065614", "text": "function getStatus() {\n\t\treturn $this->getData('status');\n\t}", "title": "" }, { "docid": "1d92bc8d7f7996db9c2659a602b16555", "score": "0.85978615", "text": "public function get_status() {\n return $this->status;\n }", "title": "" }, { "docid": "c46f657f2c072004d02a22c98b027bf6", "score": "0.8588205", "text": "public function GetStatus()\n\t{\n\t\t// Demnach ist der Status in IPS der einzige der vorliegt.\t\t\n\t}", "title": "" }, { "docid": "986165e808ece5a93bfe51151e740c06", "score": "0.85789", "text": "public function getStatus() {\r\n\treturn $this->status;\r\n }", "title": "" }, { "docid": "1b7633a043a837c15c070c06c6b6a074", "score": "0.857153", "text": "function getStatus() \n {\n return $this->instance->getStatus();\n }", "title": "" }, { "docid": "6a6c9e34d24838bf9899e4f17082005a", "score": "0.85670537", "text": "public function get_status() {\n\t\treturn $this->status;\n\t}", "title": "" }, { "docid": "bffe9aff559c287f22ec28b7c15363f3", "score": "0.85402733", "text": "public static function getStatus()\n {\n \treturn self::$_status;\n }", "title": "" }, { "docid": "ecf63ea264a80195f66ffeab4167d4f0", "score": "0.8526451", "text": "public function get_Status() {\n return $this->status;\n }", "title": "" }, { "docid": "771b934d881ea01401df2367141179d3", "score": "0.85174733", "text": "function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6cbe5732d34f5a2b1c7cc18bc9747867", "score": "0.85142773", "text": "function getStatus() ;", "title": "" }, { "docid": "6cbe5732d34f5a2b1c7cc18bc9747867", "score": "0.85142773", "text": "function getStatus() ;", "title": "" }, { "docid": "6cbe5732d34f5a2b1c7cc18bc9747867", "score": "0.85127616", "text": "function getStatus() ;", "title": "" }, { "docid": "26e8a7e85d5e62c73a9bb15723ff6cf9", "score": "0.8500744", "text": "function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "77c6bc7d2e56e92d2781e9e772e2c4fb", "score": "0.85003036", "text": "function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "8008eca20bee944df5bc76b6688d0f29", "score": "0.8488705", "text": "abstract public function getStatus();", "title": "" }, { "docid": "5314875d9fb752a70b4f9f915f1f41ee", "score": "0.8467765", "text": "public function status()\r\n {\r\n return $this->status;\r\n }", "title": "" }, { "docid": "9ef1f453edac0dc1a1b46a3054644e2d", "score": "0.845175", "text": "public function get_status() {\n\t\treturn $this->_status;\n\t}", "title": "" }, { "docid": "b5c49c115344ecfa489fe0f51b23a524", "score": "0.8450973", "text": "public function status();", "title": "" }, { "docid": "b5c49c115344ecfa489fe0f51b23a524", "score": "0.8450973", "text": "public function status();", "title": "" }, { "docid": "b5c49c115344ecfa489fe0f51b23a524", "score": "0.8450973", "text": "public function status();", "title": "" }, { "docid": "ee59732b8fbf243f0bc0d856664547ad", "score": "0.84481233", "text": "public function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "ee59732b8fbf243f0bc0d856664547ad", "score": "0.84481233", "text": "public function getStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "6c5d73a7e95331690a0c9bdb8d6e01cf", "score": "0.84323025", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "e2d2184e429ba0c127e5e4eac62037b4", "score": "0.84198254", "text": "public function getStatus() {\n return $this->fetch('status');\n }", "title": "" }, { "docid": "1aa7503b77fbbd3abaa5d2e8b91f0115", "score": "0.84056437", "text": "function getStatus() {\n\t\treturn $this->_Status;\n\t}", "title": "" }, { "docid": "78d8ab0c424a9f745e5456da82d2482f", "score": "0.840047", "text": "public function status()\n {\n return $this->status;\n }", "title": "" }, { "docid": "78d8ab0c424a9f745e5456da82d2482f", "score": "0.840047", "text": "public function status()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6542767665642eed08323c730c0155ac", "score": "0.8394271", "text": "public function status()\n {\n return $this->_status;\n }", "title": "" }, { "docid": "e3e2cf30dfa231d1d5c6028e09e1e068", "score": "0.83891493", "text": "public function getStatus()\n {\n return $this->getData('status');\n }", "title": "" }, { "docid": "c7e5862e4ff7531a70b3880279f393a0", "score": "0.83885986", "text": "public function getStatus() \n\t{\n\t\treturn $this->status;\n\t}", "title": "" }, { "docid": "c7e5862e4ff7531a70b3880279f393a0", "score": "0.83885986", "text": "public function getStatus() \n\t{\n\t\treturn $this->status;\n\t}", "title": "" }, { "docid": "afb8f33e367a49cc3ad83ec8ad0e19df", "score": "0.83853066", "text": "public function GetStatus ()\r\n\t{\r\n\t\treturn $this->_status;\r\n\t}", "title": "" }, { "docid": "38caff962a1cdd8d81d98cf5e1fe3928", "score": "0.83829445", "text": "public function getStatus()\n {\n \treturn $this->getLastStatusChange()->getStatus();\n }", "title": "" }, { "docid": "e686c0fe105f76cc2fbeabd0f6e1dfbe", "score": "0.837321", "text": "public function status() {\n\t\treturn $this->_status;\n\t}", "title": "" }, { "docid": "8c010aa201c6bee7e3968f919bb410fe", "score": "0.8368397", "text": "public function GetStatus() {\n return $this->status;\n }", "title": "" }, { "docid": "e2053eb14c904cbb2d57b552846d05fe", "score": "0.83671355", "text": "public function _getStatus() {\n\t\treturn $this->_status;\n\t}", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" }, { "docid": "6ab5ae583d7504328f02d8cc68963fca", "score": "0.83649504", "text": "public function getStatus()\n {\n return $this->status;\n }", "title": "" } ]
096d31c3f482122bca4c09466b135af4
list data pejabat berwenang
[ { "docid": "92f242d92d736762ee829b356084e57a", "score": "0.6586572", "text": "public function list_data_pejabat_berwenang()\n {\n $data['admin'] = $this->db->get_where('admin', ['id_admin' =>\n $this->session->userdata('id_admin')])->row_array();\n $data['jumlah_pesan_masuk'] = $this->m_admin->jumlah_pesan_masuk()->result();\n $data['jumlah_permohonan_masuk'] = $this->m_admin->jumlah_permohonan_masuk()->result();\n $data['jumlah_pesan_masuk'] = $this->m_admin->jumlah_pesan_masuk()->result();\n\n $data_pejabat['data_pejabat'] = $this->m_admin->get_data_pejabat()->result();\n\n $this->load->view('header');\n $this->load->view('admin/sidebar_admin');\n $this->load->view('topbar', $data);\n $this->load->view('admin/list_data_pejabat_berwenang', $data_pejabat);\n $this->load->view('footer');\n }", "title": "" } ]
[ { "docid": "7a41705da34a8144d57f0ab2559cbb54", "score": "0.7336063", "text": "public function listdataKeuAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('KEUANGAN');\n }", "title": "" }, { "docid": "e0289914cc5cfacf94b7fe8968454594", "score": "0.7214978", "text": "public function tampil_data(){\n $sql= \"Select * From penjualan Order By id_penjualan DESC\";\n $data=$this->konek->query($sql);\n while ($row=mysqli_fetch_array($data)) {\n $hasil[]=$row;\n }\n return $hasil;\n }", "title": "" }, { "docid": "577a3e55efe80149c5245c8562edc7a2", "score": "0.71949005", "text": "public function getDataList(){\n return $this->_get(1);\n }", "title": "" }, { "docid": "a7c6ab2c03302de8e5f85e235f3c36f1", "score": "0.71153057", "text": "public function listdataPrncAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('PERENCANAAN');\n }", "title": "" }, { "docid": "f0ee1f0eca85a152449c43b3ee2a566c", "score": "0.70599324", "text": "public function listdataSDMAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('SDM');\n }", "title": "" }, { "docid": "43d4828a4c87c0f7b8ed597f729324ef", "score": "0.7028511", "text": "public function listdataTAPAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('TATA PERSURATAN');\n }", "title": "" }, { "docid": "04cd7f1dae3e291c14470a2b64092501", "score": "0.6977574", "text": "public function listado() {\n $sql = \"SELECT * FROM tiendas ORDER BY nombre ASC\";\n $data = ModeloConexion::ejecutar( $sql , DB_NAME ,DB_SELECT);\n $respuesta = array();\n for ( $i = 0; $i < $data['TOTAL']; $i++) {\n $rp = new stdClass();\n $rp->tienda_nombre = $data['LISTA'][$i]->nombre;\n $rp->latitud = $data['LISTA'][$i]->latitud;\n $rp->longitud = $data['LISTA'][$i]->longitud;\n $rp->tienda_id = $data['LISTA'][$i]->id;\n $respuesta[] = $rp;\n }\n \treturn $respuesta;\n }", "title": "" }, { "docid": "7d76a317b05482cf38853f2a9cecfd03", "score": "0.6965477", "text": "public static function getDataList () { return self::getList('data'); }", "title": "" }, { "docid": "967c772016bb8504b0f090436ef914a2", "score": "0.6941764", "text": "public function getListetextes() \n\t{ \n require_once('dbconnect.php');\n\t\t$res = Array();\n\t\t$query = \"SELECT * FROM contenusite WHERE id IN ((SELECT min(id) FROM contenusite b), (SELECT max(id) FROM contenusite c))\" ;\n \n\t\tif($mrResultat = $mysqli->query($query))\n\t\t{ \n\t\t\twhile($result = $mrResultat->fetch_assoc())\n\t\t\t{ \n \n \n\t\t\t\tforeach( $result as $cle=> $valeur)\n\t\t\t\t{\n\t\t\t\t\t$result[$cle] =$valeur;\n \n\t\t\t\t}\n \n\t\t\t\t$res[] = $result;\n \n \n\t\t\t}\n header('Content-Type: application/json; charset=utf8 ');\n\t\techo json_encode($res, JSON_PRETTY_PRINT);\n exit;\n\t\t}\n \n\t}", "title": "" }, { "docid": "48e0552b28597eb3c98370b19c7a8831", "score": "0.6931675", "text": "function list_data() {\r\n\r\n $list_data = $this->Master_Stock_model->get_details()->result();\r\n $result = array();\r\n $before='';\r\n foreach ($list_data as $data) {\r\n $result[] = $this->_make_item_row($data,$before);\r\n $before=$data->name;\r\n }\r\n echo json_encode(array(\"data\" => $result));\r\n }", "title": "" }, { "docid": "b305686c78e55cdbd44286eb046a9991", "score": "0.69014025", "text": "public function listdataAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('%');\n }", "title": "" }, { "docid": "d516c426ec6b80d31d6024ed8ed26d6c", "score": "0.6830297", "text": "public function listadoRaza(){\n \n\t\t$data= $this->Model_maestras->BuscarRaza();\n\t\n\t\techo($data); \n\t \n\n\t}", "title": "" }, { "docid": "f81286c8b404ddc5a0f2ac7c3f965861", "score": "0.6807942", "text": "protected function list_data($data) {\n $idArray = array();\n foreach( $data as $rec ) {\n $idArray[$rec->id] = $rec->address_id;\n }\n $addresses = $this->address_model->getList($idArray);\n $addrList = array();\n foreach ( $addresses as $addr ) {\n $addrList[$addr->id] = $this->address_library->oneLineDescription($addr);\n }\n \n $list_data = array();\n foreach($data as $obj) {\n $list_entry = array('id' => $obj->id, 'name' => default_if_null($obj->name, ''), 'contactname' => default_if_null($obj->contact_name, ''), 'emailaddress' => default_if_null($obj->email_address, ''), 'phonenumber' => default_if_null($obj->phone_number, ''), 'address' => '', 'action' => '');\n if(isset($addrList[$obj->address_id])) {\n $list_entry['address'] = $addrList[$obj->address_id];\n }\n $list_entry['action'] = '<a href=\"#\" onclick=\"$(\\'#detail_id\\').val(\\'' . $obj->id . '\\'); doAction(\\'startEdit\\');\" title=\"' . lang('button-tip-edit-recruiter') . '\"><span class=\"glyphicon glyphicon-pencil\"></span></a>';\n $list_data[] = $list_entry;\n }\n \n return $list_data;\n }", "title": "" }, { "docid": "c338005536b903b79f2b525eea802cb9", "score": "0.679104", "text": "public function lista(){\n\t\t\tglobal $app;\n\t\t\t$sth = $this->PDO->prepare(\"SELECT * FROM sedecchamados\");\n\t\t\t$sth->execute();\n\t\t\t$result = $sth->fetchAll(\\PDO::FETCH_ASSOC);\n\t\t\t$app->render('default.php',[\"data\"=>$result],200); \n\t\t}", "title": "" }, { "docid": "50fe8d188998dc38b04ce9489bbdb591", "score": "0.67805624", "text": "public function tampilDataGalang(){\n\t\t\n\t}", "title": "" }, { "docid": "6ca2b78bf3542a1ffd196074020623df", "score": "0.6727812", "text": "function tampil_data()\r\n\t{\r\n\t$data = mysql_query(\"select * from item order by Nama_Item\");\r\n\twhile($d = mysql_fetch_array($data))\r\n\t\t{\r\n\t\t\t$hasil[] = $d;\r\n\t\t}\r\n\treturn $hasil;\r\n\t}", "title": "" }, { "docid": "62663a38ade5e15665e079bac0ad8f3f", "score": "0.672574", "text": "function getAllFromProizvod(){\n\t\treturn $this->ime . \"&nbsp\" . $this->imeProizvođača . \"&nbsp\" \n\t\t. $this->prezimeProizvođača . \"&nbsp\" . $this->cijena;\n\t}", "title": "" }, { "docid": "6697325588784e17290172c4046022a1", "score": "0.6724592", "text": "public function getListdata() { \t\n $select = $this->select();\n $select->setIntegrityCheck(false)\n ->from(array('j'=>'job_category'),array('j.*')); \t\t\t\t\t\t\t\t\t\t\n \t\n \t$select = $this->fetchAll($select);\n\t$select = $select->toArray(); \t\t\t\n\t//_pr($select ,1);\n \n\tif($select){\n $data = array();\n foreach($select as $row){\n $data[$row['id']] = $row['name']; \n }\n return $data;\n }else{\n return null; \n } \n }", "title": "" }, { "docid": "05c422cd2abe97f9a9ae0424e7f8a114", "score": "0.6715334", "text": "public function loket_list()\n\t{\n\t\t$mode = $this->input->get('mode');\n\n\t\t\n\n\t\t$dt = date('Y-m-d', time());\n\t\t$db = $this->db->select('al.id,al.status,al.tanggal,al.nomor,al.waktu_mulai,jp.slug,jp.kode,jp.id jp_id')->where([\n\t\t\t\t\t\t\t\t\t'al.tanggal' => $dt,\n\t\t\t\t\t\t\t\t\t'al.status <>'=>' 5',\n\t\t\t\t\t\t\t\t])\n\t\t\t\t\t\t\t ->join('m_jenis_pendaftaran jp','al.jp_id=jp.id')\n\t\t\t\t\t\t\t ->order_by('al.id','asc');\n\t\tif($mode == 'multiple'){\n\t\t\t$jp_id = $this->input->get('jp_id');\n\t\t\t$db->where('jp.id',$jp_id);\n\t\t}\n\t\tif($mode == 'merge'){\n\t\t\t$jp_ids = $this->input->get('jp_ids');\n\t\t\t$jp_ids = explode('_', $jp_ids);\n\t\t\t$db->where_in('jp.id',$jp_ids);\n\t\t}\n\t\t$loket_list = $db->get('m_antrian_loket al')->result_array();\n\t\techo json_encode($loket_list);\n\t}", "title": "" }, { "docid": "46c6b42aa931d9c2a04c0b2d7f1e4020", "score": "0.67148566", "text": "function tampil_jadwal(){\n\t\t\tglobal $con;\n\n\t\t\t$query=mysqli_query($con, \"select * from tb_jadwal\");\n\t\t\twhile($row=mysqli_fetch_array($query))\n\t\t\t\t$data[] = $row;\n\n\t\t\t\treturn $data;\n\t\t}", "title": "" }, { "docid": "be9eb15f3e80c37fe9598af811a2c801", "score": "0.6705414", "text": "public static function data()\n {\n return DB::table('detailgaji')\n ->join('potongan', 'detailgaji.kd_potongan', '=', 'potongan.kd_potongan')\n\t \n ->select('potongan.kd_potongan', 'detailgaji.id', 'detailgaji.nomor', 'detailgaji.jumlah')\n\n ->orderBy('detailgaji.nomor', 'asc')\n\t \n ->paginate(10);\n }", "title": "" }, { "docid": "da34d63d30bac658947fd05e40b22fb5", "score": "0.6700777", "text": "public function list_data(){\n\t\t// Per page\n\t\t$per_page = $this->list_data_per_page();\n\t\t\n\t\t// Filtering\n\t\t$filter = $this->list_data_filter();\n\t\t\n\t\t// Ordering\n\t\t$order = $this->list_data_order();\n\t\t\n\t\t// Count total for pagination calc\n\t\t$total = $this->model->list_data(true, false, false, $filter);\n\t\t\n\t\t// Pagination\n\t\t$pagination = $this->list_data_pagination($total,$per_page);\n\t\t\n\t\t// Get results\n\t\t$results = $this->model->list_data(false, $per_page, $pagination->sql_offset, $filter, $order);\n\t\t\n\t\t// Get extra data for the list view. By default this does nothing unless a method override is present\n\t\tif($results){\n\t\t\t$results = $this->model->getExtraData($results);\n\t\t}\n\t\t\n\t\treturn array($pagination, $results);\n\t}", "title": "" }, { "docid": "77e0ba3eb7166e00ab3ce864a008b0eb", "score": "0.6690638", "text": "function newskomentar_listdata($tbl_newskomentar){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_newskomentar\");\n\t\treturn $sql;\n}", "title": "" }, { "docid": "732c0b73d13cc4a5c076b09ba25d7ce9", "score": "0.66632545", "text": "public function getAllData()\n\t{\n\t\treturn $this->db\n\t\t\t->where('row_status', 'A')\n\t\t\t->where('jabatan_karyawan', 'Admin')\n\t\t\t->get($this->_karyawan)\n\t\t\t->result();\n\t}", "title": "" }, { "docid": "e5cb8bf461849920fc1cdad9817f5ce7", "score": "0.66571426", "text": "function getdata(){\n\t\t$grid = $this->jqdatagrid;\n\n\t\t// CREA EL WHERE PARA LA BUSQUEDA EN EL ENCABEZADO\n\t\t$mWHERE = $grid->geneTopWhere('spre');\n\n\t\t$response = $grid->getData('spre', array(array()), array(), false, $mWHERE, 'id', 'desc' );\n\t\t$rs = $grid->jsonresult( $response);\n\t\techo $rs;\n\t}", "title": "" }, { "docid": "9b404dbf7d41e243f220491bef7aea34", "score": "0.66530484", "text": "public function getDatasList(){\n return $this->_get(5);\n }", "title": "" }, { "docid": "4701c3ba1b442a6fa8ac0124c147592b", "score": "0.66527677", "text": "function tampil_data(){\n\t\t//query select user\n\t\t$data = mysqli_query($this->conn, \"SELECT * FROM table_1\");\n\t\twhile($d = mysqli_fetch_array($data)){\n\t\t\t$hasil[] = $d;\n\t\t}\n\t\treturn $hasil;\n\n\t}", "title": "" }, { "docid": "9d2c7e2fe1ab3c35dd037d57dc6a1480", "score": "0.664793", "text": "public function laborat_list()\n\t{\n\t\t$dt = date('Y-m-d', time());\n\t\t$rs = $this->db->select(\"\n\t\t\t\tmal.id,\n\t\t\t\tmal.tanggal,\n\t\t\t\tmal.waktu_mulai,\n\t\t\t\tmal.waktu_dilayani,\n\t\t\t\tmal.`status`,\n\t\t\t\tmal.poli_id,\n\t\t\t\tmal.nama,\n\t\t\t\tmal.alamat,\n\t\t\t\tmjp.nama jenis,\n\t\t\t\tmjp.slug jenis_slug\n\t\t\t\")->join('m_antrian_poli map','mal.map_id=map.id','left')\n\t\t ->join('m_antrian_loket ml','map.al_id=ml.id','left')\n\t\t ->join('m_jenis_pendaftaran mjp','ml.jp_id=mjp.id','left')\n\t\t ->where('mal.tanggal',$dt)\n\t\t ->where('mal.status <>',5)\n\t\t ->order_by('mal.id','asc')\n\t\t ->get('m_antrian_laborat mal')->result_array();\n\t\techo json_encode($rs);\n\t}", "title": "" }, { "docid": "e483e40a6637d5fb595e4623322a5ed8", "score": "0.6642748", "text": "function get_data(){\n $data[] = array(\n 'id' => 1,\n 'titulo' => 'Atividade 1', \n 'conteudo' => 'Esta é uma Atividade de 60 minutos', \n 'tempo' => 60\n );\n $data[] = array(\n 'id' => 2,\n 'titulo' => 'Atividade 2', \n 'conteudo' => 'Esta é uma Atividade de 120 minutos', \n 'tempo' => 120\n );\n $data[] = array(\n 'id' => 3,\n 'titulo' => 'Atividade 3', \n 'conteudo' => 'Esta é uma Atividade de 180 minutos', \n 'tempo' => 180\n );\n $data[] = array(\n 'id' => 4,\n 'titulo' => 'Atividade 4', \n 'conteudo' => 'Esta é uma Atividade de 240 minutos', \n 'tempo' => 240\n );\n\n\n return $data;\n }", "title": "" }, { "docid": "55b0e889187361bdf7999f15f93f6a2e", "score": "0.66327894", "text": "function listatpodocubaja(){\n\t\tinclude(\"application/config/conexdb_db2.php\");\n\t\t$codcia=$this->session->userdata('codcia');\n\t\t$sql=\"select DISTINCT(a.YHTIPDOC) AS TIPODOCU,e.EUDSCCOR FROM LIBPRDDAT.MMYHREL0 a INNER JOIN LIBPRDDAT.MMEUREL0 e ON a.YHTIPDOC=e.EUCODELE WHERE a.YHTIPDOC!='' AND e.EUCODTBL='AG' and a.YHSTS='I' AND a.YHCODCIA='\".$codcia.\"' and a.YHFECDOC>='20170101' order by TIPODOCU asc\";\t\t\n\t\t$dato = odbc_exec($dbconect, $sql)or die(\"<p>\" . odbc_errormsg());\n\t\tif (!$dato) {\n\t\t\t$data = FALSE;\n\t\t} else { \n\t\t\t$data = $dato; \n\t\t} \n\t\treturn $data;\n\t\tcerrar_odbc();\n\t}", "title": "" }, { "docid": "5150558735fad41bb81bb5f822f79466", "score": "0.6629653", "text": "public function get_all_godzina(){\n\t\t$data['godziny']=array();\n\t\t$query = $this->db->query('select * from godzina');\t\n\t\tforeach($query->result() as $row){\n\t\t\t\tarray_push($data['godziny'],array('id_godzina'=>$row->id_godzina,'godzina'=>$row->godzina));\n\t\t\t\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "2fedd253cdcff3417717b565cee6ea31", "score": "0.66212726", "text": "public function anggotaKom_list()\n\t{\n\t\t$requestData\t= $_REQUEST;\n\t\t$fetch\t\t\t= $this->model_anggota->anggota_by_data($requestData['search']['value'], $requestData['order'][0]['column'], $requestData['order'][0]['dir'], $requestData['start'], $requestData['length']);\n\t\t$totalData\t\t= $fetch['totalData'];\n\t\t$totalFiltered\t= $fetch['totalFiltered'];\n\t\t$query\t\t\t= $fetch['query'];\n\n\t\t$data\t= array();\n\t\tforeach ($query->result_array() as $row) {\n\t\t\t$datanya = array();\n\t\t\t$datanya[]\t= $row['nomora'];\n\t\t\t$datanya[]\t= $row['nama_kader'];\n\t\t\t$datanya[]\t= $row['alamat'];\n\t\t\t$datanya[]\t= $row['no_hp'];\n\t\t\t$datanya[]\t= [$row['tmp_lahir'], \" \" . date(\"d-m-Y\", strtotime($row['tgl_lahir']))];\n\t\t\tif ($this->session->userdata['jenis'] == 4) {\n\t\t\t\t$datanya[]\t= $row['nama_komisariat'];\n\t\t\t}\n\t\t\t$datanya[] = '<a class=\"btn btn-warning btn-sm\" href=\"javascript:void(0)\" title=\"Ubah\" onclick=\"anggota_ubah(' . \"'\" . $row['id'] . \"'\" . ')\"><i class=\"fa fa-edit\"></i></a>\n\t\t\t <button class=\"btn btn-danger btn-sm konfirmasiHapus-anggota\" data-id=\"' . $row['id'] . '\" data-toggle=\"modal\" data-target=\"#konfirmasiHapus\"><i class=\"fa fa-trash\"></i></button>\n\t\t\t <a class=\"btn btn-sm btn-secondary\" href=\"javascript:void(0)\" title=\"Detail Username\" onclick=\"detail_username(' . \"'\" . $row['id'] . \"'\" . ')\"><i class=\"fa fa-user\"></i></a>\n\t\t\t <button class=\"btn btn-dark btn-sm konfirmasiReset-anggota\" title=\"Reset Username dan password kedefault\" data-id=\"' . $row['id'] . '\" data-toggle=\"modal\" data-target=\"#konfirmasiReset\"><i class=\"fa fa-key\"></i></button>\n\t\t\t <a class=\"btn btn-sm btn-info\" href=\"javascript:void(0)\" title=\"Detail lengkap Anggota\" onclick=\"detail_anggota(' . \"'\" . $row['id'] . \"'\" . ')\"><i class=\"fa fa-info-circle\"></i></a>\n\t\t\t ';\n\n\t\t\t$data[] = $datanya;\n\t\t}\n\n\t\t$json_data = array(\n\t\t\t\"draw\" => intval($requestData['draw']),\n\t\t\t\"recordsTotal\" => intval($totalData),\n\t\t\t\"recordsFiltered\" => intval($totalFiltered),\n\t\t\t\"data\" => $data\n\t\t);\n\n\t\techo json_encode($json_data);\n\t}", "title": "" }, { "docid": "c45fb69f2749e8032be5566a4f8f0528", "score": "0.66203904", "text": "private function list_data_sql()\n\t{\n\t\t$this->db\n\t\t\t->from('tweb_penduduk u')\n\t\t\t->join('tweb_keluarga d', 'u.id_kk = d.id', 'left')\n\t\t\t->join('tweb_wil_clusterdesa a', 'd.id_cluster = a.id', 'left')\n\t\t\t->join('tweb_penduduk_sex x', 'u.sex = x.id', 'left')\n\t\t\t->join('tweb_penduduk_agama g', 'u.agama_id = g.id', 'left')\n\t\t\t->join('tweb_status_dasar sd', 'u.status_dasar = sd.id', 'left')\n\t\t\t->join('log_penduduk log', 'u.id = log.id_pend', 'left')\n\t\t\t->join('ref_pindah rp', 'rp.id = log.ref_pindah', 'left')\n\t\t\t->where('u.status_dasar >', 1)\n\t\t\t->where_in('log.id_detail', array(2, 3, 4));\n\n\t\t$this->search_sql();\n\t\t$this->status_dasar_sql();\n\t\t$this->sex_sql();\n\t\t$this->agama_sql();\n\t\t$this->dusun_sql();\n\t\t$this->rw_sql();\n\t\t$this->rt_sql();\n\t}", "title": "" }, { "docid": "5d4cd2997ebf00956faae62ca01968bf", "score": "0.6614298", "text": "function GETDataKelas_All(){\r\n\r\n // Perintah Get Data Kelas\r\n return $this->MKelas->GET();\r\n }", "title": "" }, { "docid": "caf012e3992997d6f525210048213b6c", "score": "0.66081756", "text": "function rec_empresa_list(){\n\t\t}", "title": "" }, { "docid": "cdf252a4b0527e0554ef5e82ee413df3", "score": "0.66043943", "text": "public function get_data();", "title": "" }, { "docid": "54a2fce6b6694996dc7f2f6255218bbb", "score": "0.6590522", "text": "public function apotek_list()\n\t{\n\t\t$dt = date('Y-m-d', time());\n\t\t$rs = $this->db->select(\"\n\t\t\t\tmaa.id,\n\t\t\t\tmaa.tanggal,\n\t\t\t\tmaa.waktu_mulai,\n\t\t\t\tmaa.waktu_dilayani,\n\t\t\t\tmaa.`status`,\n\t\t\t\tmaa.poli_id,\n\t\t\t\tmaa.nama,\n\t\t\t\tmaa.alamat,\n\t\t\t\tmjp.nama jenis,\n\t\t\t\tmjp.slug jenis_slug\n\t\t\t\")->join('m_antrian_poli map','maa.map_id=map.id','left')\n\t\t ->join('m_antrian_loket mal','map.al_id=mal.id','left')\n\t\t ->join('m_jenis_pendaftaran mjp','mal.jp_id=mjp.id','left')\n\t\t ->where('maa.tanggal',$dt)\n\t\t ->where('maa.status <>',5)\n\t\t ->order_by('maa.id','asc')\n\t\t ->get('m_antrian_apotek maa')->result_array();\n\n\t\t \n\t\techo json_encode($rs);\n\t}", "title": "" }, { "docid": "37e7f61b562432dd0edb934b773df148", "score": "0.65903014", "text": "public function getPraktikum()\n\t{\n\t\t$sql = \"SELECT * FROM praktikum WHERE\nstatus = 1\";\n\t $query = koneksi()->query($sql);\n\t $hasil = [];\n\t while ($data = $query->fecth_assoc())\n\t\t$hasil[] = $data;\n\t }", "title": "" }, { "docid": "0870cfd86263110bc8638f89bb3dbe89", "score": "0.6590196", "text": "public function datKomen()\n {\n $hakAkses = $this->session->userdata['HAKAKSES'];\n if ($hakAkses == 'admin') {\n $listKomen = $this->mkomen->get_all_komen();\n }else{\n $id_guru = $this->session->userdata['id_guru'];\n $listKomen = $this->mkomen->get_komen_by_profesi_notread($id_guru);\n }\n\n return $listKomen;\n }", "title": "" }, { "docid": "17fcfdf1e872120a4fd7b6e02c286a48", "score": "0.65684676", "text": "public function listAll(){\r\n\t\t$all = $this->select('SELECT id, '.$this->display.' FROM '.$this->table.' ORDER BY 2 ASC');\r\n\t\t$data = array();\r\n\t\tforeach ($all as $key => $value) {\r\n\t\t\t$data[$value[$this->primary]] = $value[$this->display];\r\n\t\t}\r\n\t\treturn $data;\r\n\t}", "title": "" }, { "docid": "536fd6085a50392a1a0268b63cc69c55", "score": "0.6567885", "text": "static function listaClanaka(){\n\t\trequire_once(MODEL_ABS.'DB_DAO/Broker_baze.php');\n\t\trequire_once(MODEL_ABS.'DB_DAO/Clanak.php');\n\t\t\n\t\t$broker=new Broker();\n\t\t$clanak=new Clanak($broker);\n\t\t(isset($_GET['pag'])) ? $pag=$_GET['pag'] : $pag=0;\n\t\t(isset($_GET['korak'])) ? $korak=$_GET['korak'] : $korak=5;\n\t\t\n\t\t$rezultat['clanci']=$clanak->limitClanci($pag,$korak);\n\t\t$br_clanaka=$clanak->brojanjeClanaka();\n\t\t$rezultat['pags']=ceil($br_clanaka/$korak);\n\t\t$rezultat['pag']=$pag;\n\t\t\n\t\treturn $rezultat;\n\t}", "title": "" }, { "docid": "921a7bd2b637762dafa3e15029bd4b90", "score": "0.6562018", "text": "public function listar() {\n $conexion = new Conexion();\n $consulta = $conexion->prepare('SELECT * FROM facultad');\n $consulta->execute();\n $ces = null;\n\n $tabla_datos = $consulta->fetchAll(PDO::FETCH_ASSOC);\n\n $astraba = array();\n\n\n foreach ($tabla_datos as $con => $valor) {\n $ces = $tabla_datos[$con][\"nombre\"];\n\n array_push($astraba, $ces);\n }\n return $astraba;\n }", "title": "" }, { "docid": "caf753a5f2015a0a1513564f3d55b2d6", "score": "0.65597814", "text": "function ambil_data(){\n\t\t$this->db->order_by($this->id_admin,$this->order);\n\t\treturn $this->db->get($this->nama_table)->result();\n\t}", "title": "" }, { "docid": "4a20515566512711cf100b3875e7a303", "score": "0.6558023", "text": "public function listarlapaz(){\n $persona=\"SELECT p.*,c.nombre as caja FROM persona as p\n LEFT JOIN cajalapaz as c ON c.id=p.id_caja where p.ciudad='lapaz' AND p.estado=1\";\n $bajas=\"SELECT p.*,c.nombre as caja FROM persona as p\n LEFT JOIN cajalapazretirado as c ON c.id=p.id_caja where p.ciudad='lapaz' AND p.estado=0\";\n $cajas=\"SELECT * FROM cajalapaz WHERE estado = 1\";\n $cajaretirados=\"SELECT * FROM cajalapazretirado WHERE estado = 1\";\n $result=[\n \"personal\"=> parent::consultaRetorno($persona),\n \"bajas\"=>parent::consultaRetorno($bajas),\n \"cajas\"=>parent::consultaRetorno($cajas),\n \"cajasretirados\"=>parent::consultaRetorno($cajaretirados)\n ];\n return $result;\n }", "title": "" }, { "docid": "da4ea6dd8a87127859f476cfd6230671", "score": "0.6548253", "text": "function getdata(){\n\t\t$grid = $this->jqdatagrid;\n\n\t\t// CREA EL WHERE PARA LA BUSQUEDA EN EL ENCABEZADO\n\t\t$mWHERE = $grid->geneTopWhere('prdo');\n\n\t\t$response = $grid->getData('prdo', array(array()), array(), false, $mWHERE, 'id', 'Desc' );\n\t\t$rs = $grid->jsonresult( $response);\n\t\techo $rs;\n\t}", "title": "" }, { "docid": "6cfb5cbe141ea91ecdd44fc51f0d6e92", "score": "0.65471137", "text": "public function getList();", "title": "" }, { "docid": "6cfb5cbe141ea91ecdd44fc51f0d6e92", "score": "0.65471137", "text": "public function getList();", "title": "" }, { "docid": "a04864ee77c64ad69a261a599e767fbd", "score": "0.65424633", "text": "function list_kelas_pertemuan_get()\n {\n $query = $this->M_kelas_pertemuan->tampil_data('kelas_pertemuan');\n\n // variable array\n $result = array();\n $result['kelas_pertemuan'] = array();\n\n if ($query->num_rows() > 0) {\n\n // mengeluarkan data dari database\n foreach ($query->result_array() as $row) {\n\n // ambil detail data db\n $data = array(\n 'id_kelas_p' => $row[\"id_kelas_p\"],\n 'id_pengajar' => $row[\"id_pengajar\"],\n 'id_mata_pelajaran' => $row[\"id_mata_pelajaran\"],\n 'hari' => $row[\"hari\"],\n 'jam_mulai' => $row[\"jam_mulai\"],\n 'jam_berakhir' => $row[\"jam_berakhir\"],\n 'harga_fee' => $row[\"harga_fee\"],\n 'harga_spp' => $row[\"harga_spp\"],\n 'id_sharing' => $row[\"id_sharing\"],\n 'nama_sharing' => $row[\"nama_sharing\"],\n );\n\n array_push($result['kelas_pertemuan'], $data);\n\n // membuat array untuk di transfer\n $result[\"success\"] = \"1\";\n $result[\"message\"] = \"success berhasil mengambil data\";\n $this->response($result, 200);\n }\n } else {\n // membuat array untuk di transfer ke API\n $result[\"success\"] = \"0\";\n $result[\"message\"] = \"error data tidak ada\";\n $this->response($result, 200);\n }\n }", "title": "" }, { "docid": "734188dce3d2cb095ef43703ee786118", "score": "0.6532416", "text": "function index(){\n\t\t$list = $this->user->ambil_semua_data();\n\n\t\t/* hasil data */\n\t\t$data['result'] = $list;\n\n\t\t/* Load view */\n\t\t$this->template->write_view('list', $data);\n\t}", "title": "" }, { "docid": "11fed6dfae6e5fdf63537f24ef627f53", "score": "0.6530815", "text": "function TieuChuan_List(){\n\t\t$sql = \"SELECT * FROM dvt_ks_tieuchuan ORDER BY idTC\";\n\t\t$rs = mysql_query($sql) or die(mysql_error());\n\t\treturn $rs;\n\t}", "title": "" }, { "docid": "b86924c871e75f02f1a8716cd3096759", "score": "0.6526716", "text": "public function datKomen()\n\t\t{\n\t\t\t$hakAkses = $this->session->userdata['HAKAKSES'];\n\t\t\tif ($hakAkses == 'admin') {\n\t\t\t\t$listKomen = $this->mkomen->get_all_komen();\n\t\t\t}else{\n\t\t\t\t$id_guru = $this->session->userdata['id_guru'];\n\t\t\t\t$listKomen = $this->mkomen->get_komen_by_profesi_notread($id_guru);\n\t\t\t}\n\n\t\t\treturn $listKomen;\n\t\t}", "title": "" }, { "docid": "569d61afd4976bee318b6ca7b6635ed8", "score": "0.6501505", "text": "public function tampil() {\n\t\t$data['dataPetani'] = $this->M_dpetani->select_all();\n\t\t$this->load->view('datapetani/list_data', $data);\n\t}", "title": "" }, { "docid": "2430e7056716b6afc0884c12c2fad75f", "score": "0.6483045", "text": "public function listar(){\r\n }", "title": "" }, { "docid": "d1113e5b3a5b3dc78008d21b1bafa421", "score": "0.6481641", "text": "public function getList() {\n \treturn array(\"id\" => $this->id,\n \"name\" => $this->name);\n\t}", "title": "" }, { "docid": "94fdd0f600afac0e311335a39549d2f6", "score": "0.6481163", "text": "function getdata(){\n\t\t$grid = $this->jqdatagrid;\n\n\t\t// CREA EL WHERE PARA LA BUSQUEDA EN EL ENCABEZADO\n\t\t$mWHERE = $grid->geneTopWhere('scon');\n\n\t\t$response = $grid->getData('scon', array(array()), array(), false, $mWHERE, 'id','desc' );\n\t\t$rs = $grid->jsonresult( $response);\n\t\techo $rs;\n\t}", "title": "" }, { "docid": "64cbd1868b3012dff793313296d1b1a7", "score": "0.6479157", "text": "private function table_data()\n {\n $data = array();\n $args = array( \n 'post_type' => 'sutabu_ppdb',\n 'post_status' => 'publish',\n 'orderby' => 'title', \n 'order' => 'ASC', \n );\n\n $the_query = new WP_Query( $args );\n\n if($the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();\n $data[] = array(\n 'id' => $dt->ID,\n 'perusahaan' => the_title(),\n 'total_ken' => the_content(),\n 'total_pen' => 'ok',\n 'tanggal' => 'ok'\n ); \n endwhile; endif;\n wp_reset_postdata();\n\n return $data;\n }", "title": "" }, { "docid": "6b156d9d20f52a26c668121fa58db71a", "score": "0.64766765", "text": "public function listdataPngAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('PENGADAAN');\n }", "title": "" }, { "docid": "423eebcec067e53337a96808037a813a", "score": "0.64758533", "text": "public function get_entries_u() {\n\t\t$this->db->select('oznaka, lokacija, brm, irm');\n\t\t$query = $this->db->get('sale');\n\t\tif ($query->num_rows() > 0) {\n foreach ($query->result() as $temp) {\n $array[] = $temp;\n }\n\t\t\treturn $array;\n\t\t}\n\t}", "title": "" }, { "docid": "e88f4a8144705956ec6f38fc6cd1335b", "score": "0.64695555", "text": "public function getListmenu(){\r\n $data[] = array('url'=>'changepass', 'name'=>'Thay đổi mật khẩu');\r\n $data[] = array('url'=>'add', 'name'=>'Thêm tài khoản quản lý');\r\n return $data;\r\n }", "title": "" }, { "docid": "78e73d93216d5b09571ecba43746860d", "score": "0.6466595", "text": "function get_cabang_list(){\r\n\t\t//$query = isset($_POST['query']) ? $_POST['query'] : \"\";\r\n\t\t//$tgl_app = isset($_POST['tgl_app']) ? $_POST['tgl_app'] : \"\";\r\n\t\t$result=$this->m_public_function->get_cabang_list();\r\n\t\techo $result;\r\n\t}", "title": "" }, { "docid": "02e9b1cbb332c3bde5c20198e93c3f17", "score": "0.6465395", "text": "function get_isi_rawat_list(){\r\n\t\t$dapaket_dpaket = isset($_POST['dapaket_dpaket']) ? $_POST['dapaket_dpaket'] : 0;\r\n\t\t$dapaket_jpaket = isset($_POST['dapaket_jpaket']) ? $_POST['dapaket_jpaket'] : 0;\r\n\t\t$dapaket_paket = isset($_POST['dapaket_paket']) ? $_POST['dapaket_paket'] : 0;\r\n\t\t$start = (integer) (isset($_POST['start']) ? $_POST['start'] : $_GET['start']);\r\n\t\t$end = (integer) (isset($_POST['limit']) ? $_POST['limit'] : $_GET['limit']);\r\n\t\t$result = $this->m_master_ambil_paket->get_isi_rawat_list($dapaket_dpaket,$dapaket_jpaket,$dapaket_paket,$start,$end);\r\n\t\techo $result;\r\n\t}", "title": "" }, { "docid": "82c1353d3030493815167d5f81d640bb", "score": "0.6462224", "text": "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "title": "" }, { "docid": "b418609fc8dc0ec7f36e2df0d49e5c9d", "score": "0.64547426", "text": "function getdata(){\n\t\t$grid = $this->jqdatagrid;\n\n\t\t// CREA EL WHERE PARA LA BUSQUEDA EN EL ENCABEZADO\n\t\t$mWHERE = $grid->geneTopWhere('rcobro');\n\n\t\t$response = $grid->getData('rcobro', array(array()), array(), false, $mWHERE, 'id','desc' );\n\t\t$rs = $grid->jsonresult( $response);\n\t\techo $rs;\n\t}", "title": "" }, { "docid": "ba1501abe26e1b9c7f17f77c550b2227", "score": "0.645279", "text": "function all(){\n\t\t\t$query = \"SELECT * FROM khach_hang\";\n\t\t\t$data = array();\n\t\t\t$result = $this->conn->query($query);\n\t\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t\t$data[] =$row;\n\t\t\t}\n\t\t\treturn $data;\n\n\t\t}", "title": "" }, { "docid": "c7dc339984f515f243c9d4ae7624045a", "score": "0.64474577", "text": "public function getlist()\r\n {$trajet=array();\r\n\t try\r\n {\r\n $stmt = $this->_db->prepare(\"SELECT Num_Trajet,Type,Num_Ville1,Num_Ville2,Date_aller,Date_retour,Heure_aller\r\n\t\t ,Heure_retour,Prix,Nombre_place,ID_conducteur,Description FROM Trajet ORDER by Num_trajet\");\r\n\t\t $stmt->execute();\r\n\t\t \r\n\t\t while ($donnees = $stmt->fetch(PDO::FETCH_ASSOC))\r\n\t\t\t{\r\n\t\t\t\t$trajet[] = new Trajet(array('num_trajet'=>$donnees['Num_Trajet'],'type'=>$donnees['Type'],\r\n\t\t\t\t'num_ville1'=>$donnees['Num_Ville1'],'num_ville2'=>$donnees['Num_Ville2'],'date_aller'=>$donnees['Date_aller'],\r\n\t\t\t\t'date_retour'=>$donnees['Date_retour'],'heure_aller'=>$donnees['Heure_aller'],'heure_retour'=>$donnees['Heure_retour'],\r\n\t\t\t\t'prix'=>$donnees['Prix'],'nombre_place'=>$donnees['Nombre_place'],'id_conducteur'=>$donnees['ID_conducteur']\r\n\t\t\t\t,'description'=>$donnees['Description']));\r\n\t\t\t}\r\n\t\treturn $trajet;\r\n\r\n }\r\n catch(PDOException $e)\r\n {\r\n echo $e->getMessage();\r\n } \r\n\t }", "title": "" }, { "docid": "97a32b019692cf53cceefcc5948c27f3", "score": "0.64411896", "text": "public function ambildata_perusahaan(){\n\t\t$query=$this->db->query(\"SELECT * FROM tb_perusahaan\");\n\t\treturn $query->result_array();\n\t}", "title": "" }, { "docid": "e7eaad5f02307f6802a29ca2bb9d6ca1", "score": "0.6439861", "text": "public function get_data()\n {\n $post = $this->input->post(null, true);\n if ($post) {\n // ambil data dari model\n $list = $this->hasil->get_datatables();\n $data = array();\n $no = $post['start'];\n foreach ($list as $field) {\n $no++;\n $row = array();\n $row[] = $no;\n $row[] = $field->nama_akun;\n $row[] = $this->date->tanggal($field->tgl, 's');\n $row[] = $field->nilai;\n $data[] = $row;\n }\n\n $output = array(\n \"draw\" => $post['draw'],\n \"recordsTotal\" => $this->hasil->count_all(),\n \"recordsFiltered\" => $this->hasil->count_filtered(),\n \"data\" => $data,\n );\n // tampilkan data\n echo json_encode($output);\n } else {\n $this->index();\n }\n }", "title": "" }, { "docid": "251234f202ea158a17a0bdaea71c61bd", "score": "0.6439163", "text": "public function list_data_kades()\n {\n $data['admin'] = $this->db->get_where('admin', ['id_admin' =>\n $this->session->userdata('id_admin')])->row_array();\n $data['jumlah_pesan_masuk'] = $this->m_admin->jumlah_pesan_masuk()->result();\n $data['jumlah_permohonan_masuk'] = $this->m_admin->jumlah_permohonan_masuk()->result();\n $data['jumlah_pesan_masuk'] = $this->m_admin->jumlah_pesan_masuk()->result();\n\n $data_kades['data_kades'] = $this->m_admin->get_data_kades()->result();\n\n $this->load->view('header');\n $this->load->view('admin/sidebar_admin');\n $this->load->view('topbar', $data);\n $this->load->view('admin/list_data_kades', $data_kades);\n $this->load->view('footer');\n }", "title": "" }, { "docid": "6da96e35fad3db959cf294e4a99a01f4", "score": "0.6437158", "text": "public function list();", "title": "" }, { "docid": "6da96e35fad3db959cf294e4a99a01f4", "score": "0.6437158", "text": "public function list();", "title": "" }, { "docid": "6da96e35fad3db959cf294e4a99a01f4", "score": "0.6437158", "text": "public function list();", "title": "" }, { "docid": "5fa1b9e78a65d38b01a4a4c38ea91811", "score": "0.64366037", "text": "public function data()\n {\n $orders=libro::all();\n foreach ($orders as $key => $value) {\n \n if(count(autor::find($value->id_autor)))\n $value->id_autor=autor::find($value->id_autor)->nombre;\n else $value->id_autor='No asignado';\n \n }\n return \\Datatables::of($orders)->addColumn('action', 'libro.partials.vista')->make(true) ; \n }", "title": "" }, { "docid": "bf57bcc8321c190ec572b91087de7d01", "score": "0.6431288", "text": "public static function accueilDatas(){\n return ['title'=>'Notre page d\\'accueil',\n 'h1'=>'Bienvenue',\n 'h2'=>'sur notre site',\n 'content' => [\"premier paragraphe\",\"Deuxieme paragraphe\",\"Paragraphe final\"]\n\n ];\n }", "title": "" }, { "docid": "299f8e4ff6ea539c93a7e9623ed332fc", "score": "0.64295095", "text": "public function detail_list($data)\n {\n $hasil = $this->db->query('\n SELECT \n transaksi_detail_tbl.no_resi AS no_resi, \n transaksi_detail_tbl.barang_kode AS barkod, \n barang_tbl.barang_nama AS barang, \n transaksi_detail_tbl.quantity AS jumlah, \n barang_tbl.barang_harga AS harga, \n (transaksi_detail_tbl.quantity * barang_tbl.barang_harga) AS total \n FROM transaksi_detail_tbl LEFT JOIN barang_tbl ON transaksi_detail_tbl.barang_kode = barang_tbl.barang_kode\n WHERE transaksi_detail_tbl.no_resi = '.$data.'\n ');\n return $hasil->result();\n }", "title": "" }, { "docid": "d1029c2950a1fdae77e90fb71de09929", "score": "0.6426957", "text": "public function listadoUnidadmedida(){\n \n\t\t$data= $this->Model_maestras->BuscarUmedida();\n\t\n\t\techo($data); \n\t \n\n\t}", "title": "" }, { "docid": "98a527ba357d76c35c35f13f0927763b", "score": "0.6426923", "text": "public function list_data_mantan_pejabat_berwenang()\n {\n $data['admin'] = $this->db->get_where('admin', ['id_admin' =>\n $this->session->userdata('id_admin')])->row_array();\n $data['jumlah_pesan_masuk'] = $this->m_admin->jumlah_pesan_masuk()->result();\n $data['jumlah_permohonan_masuk'] = $this->m_admin->jumlah_permohonan_masuk()->result();\n $data['jumlah_pesan_masuk'] = $this->m_admin->jumlah_pesan_masuk()->result();\n\n $data_pejabat['data_pejabat'] = $this->m_admin->get_data_mantan_pejabat()->result();\n\n $this->load->view('header');\n $this->load->view('admin/sidebar_admin');\n $this->load->view('topbar', $data);\n $this->load->view('admin/list_data_mantan_pejabat_berwenang', $data_pejabat);\n $this->load->view('footer');\n }", "title": "" }, { "docid": "c840b3c617a6f25ca04aa8ff871da742", "score": "0.64162266", "text": "public static function getlist(){\n $sql = new Sql();\n \n return $sql->select(\"SELECT * FROM tb_usuarios ORDER BY deslogin\");\n }", "title": "" }, { "docid": "6fd8e115efa7555d1b363fdde02a9873", "score": "0.6414289", "text": "public function listarTodos()\n\t{\n\t\t$inst_table = BDD::getInstance()->query(\"select * from system.\". self::claseMinus());\n\t\t$i = 0;\n\t\twhile ($fila = $inst_table->_fetchRow())\n\t\t{\n\t\t\tforeach ($fila as $campo => $valor)\n\t\t\t{\n\t\t\t\t$data[$i][$campo] = $valor;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\n\t\techo (json_encode($data));\n\t}", "title": "" }, { "docid": "73d79a823bba18ef8f3134f8ae25035d", "score": "0.64058304", "text": "public function getListeVisiteurs(){\n\t\t$req = \"select * from visiteur order by VIS_MATRICULE\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\t$ligne = $rs->fetchAll();\n\t\treturn $ligne;\n\t}", "title": "" }, { "docid": "d07c911b753a4430ebd7304744978bd5", "score": "0.640405", "text": "public function getMultipleData();", "title": "" }, { "docid": "4a21f526b64afa01ed50c1facc705788", "score": "0.64023125", "text": "function getDatos(){\n $res = $this->Consulta('SELECT C.*, P.id_planta FROM '.$this->Table .' C\n INNER JOIN\n equipos E ON E.id_equipos = C.`id_equipos`\n INNER JOIN\n secciones S ON S.id_secciones = E.id_secciones\n INNER JOIN\n plantas P ON P.id_planta = S.id_planta\n \n WHERE '.$this->PrimaryKey.' = '.$this->_datos);\n $resultado = $res[0];\n // $resultado = array_map('utf8_encode',$resultado);\n \n print_r( json_encode( $resultado ) );\n }", "title": "" }, { "docid": "38fe76d571c67ead8dbf5438d2bb69ff", "score": "0.64021415", "text": "public function listarChikera($codigo){\n $lista_detalles = array();\n $listDetalle= $this->empresa_model->listChikera($codigo);\n if(count($listDetalle)>0){ \n foreach ($listDetalle as $key => $value) {\n $objeto = new stdClass();\n $objeto->CHEK_Codigo =$value->CHEK_Codigo;\n $objeto->CUENT_NumeroEmpresa =$value->CUENT_NumeroEmpresa;\n $objeto->CHEK_FechaRegistro =mysql_to_human($value->CHEK_FechaRegistro);\n $objeto->SERIP_Codigo =$value->SERIP_Codigo;\n $objeto->CHEK_Numero=$value->CHEK_Numero;\n $lista_detalles[] = ($objeto);\n }\n $resultado[] = array();\n $resultado = json_encode($lista_detalles,JSON_NUMERIC_CHECK);\n echo $resultado; \n } \n }", "title": "" }, { "docid": "0631d8b40f72e981ef6a6faf196f267c", "score": "0.64008313", "text": "public function actionListOfData()\n {\n return Tag::getDataForAjax(Yii::$app->request->get());\n }", "title": "" }, { "docid": "153ece3ead00a6fa7aec6951ad5cae84", "score": "0.6400342", "text": "function lihatdata()\n {\n return $this->db->get('tb_santriwati');\n }", "title": "" }, { "docid": "23c4b214df022cd89b595b9c724f1d03", "score": "0.63971126", "text": "public function selectAllRegiuniData(){\n $sql = \"SELECT * FROM regiune ORDER BY id DESC\";\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "f0ddc0d52a92ebbe4e39d98e4828230f", "score": "0.6395945", "text": "public function getData() {\r\n\r\n\t\t$sodexo_domain = 'http://www.sodexo.fi/';\r\n\t\t$path = 'ruokalistat/output/daily_json/';\r\n\r\n\t\tforeach ($this->id_arr as $key => $value) {\r\n\r\n\t\t\t$json_data = file_get_contents($sodexo_domain . $path . $value . '/' . $this->pvm .'/fi');\r\n\r\n\t\t\t$course_info = $this->toObjectArray($json_data);\r\n\t\t\t\r\n\t\t\t$this->id_arr[$key] = $course_info;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.6393857", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.6393857", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.6393857", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "bec294f027331ca15dd3abfff8097f59", "score": "0.6392319", "text": "public function get_data()\n {\n }", "title": "" }, { "docid": "7885e90550a668ddc425fc3e41d80904", "score": "0.63855565", "text": "private function getData() {\n $arr = \\Yii::$app->session->get('arr');\n if(isset($arr['pkd']) && $arr['pkd'] !== '0'){\n $pkd = \\app\\models\\Rujukan::find()->where(['kod' => $arr['pkd'], 'kat' => 'pkd'])->one();\n } else {\n $pkd = new \\app\\models\\Rujukan();\n }\n\n if(isset($arr['pks']) && $arr['pks'] !== '0'){\n $klinik = \\app\\models\\Klinik::find()->where(['id' => $arr['pks']])->one();\n } else {\n $klinik = new \\app\\models\\Klinik();\n }\n\n if(isset($arr['sekolah']) && $arr['sekolah'] !== '0'){\n $sekolah = \\app\\models\\Sekolah::find()->where(['id' => $arr['sekolah']])->one();\n } else {\n $sekolah = new \\app\\models\\Sekolah();\n }\n //\\var_dump($arr);exit;\n return ['pkd' => $pkd, 'klinik' => $klinik, 'sekolah' => $sekolah, 'ym_dari' => $arr['ym_dari'], 'ym_hingga' => $arr['ym_hingga']];\n }", "title": "" }, { "docid": "9d45609302f31c6fe8862992fc48aa78", "score": "0.63839775", "text": "public function listdataAdmAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('ADMINISTRASI SYSTEM');\n }", "title": "" }, { "docid": "73b017b6a10418c25cd276d93ec9f424", "score": "0.6383397", "text": "function get_openstaandeDossiers_namen() {\n $result = $this->db->query(\"SELECT * from islp.view_openstaande_dossiers_hitparade order by opsteller \");\n if (!$result) {\n $this->error(\"Check query in get_openstaandeDossiers_namen in klasse functioneelBeheer_model\");\n }\n while ($row = $result->fetch_assoc()) {\n $rows[] = $row;\n }\n return $rows;\n }", "title": "" }, { "docid": "817a69dbc70e10340d84243401871847", "score": "0.63752854", "text": "function all_get(){\n $akhir = $this->get('akhir');\n\n $allwaktu = $this->db->query(\"SELECT id_waktu FROM waktu WHERE mulai <= \".$akhir.\"-1 AND selesai > \".$akhir.\"-1\")->result();\n $this->response(array('result' => $allwaktu));\n }", "title": "" }, { "docid": "e717df894fa1a4a2ae2dd26c42643d66", "score": "0.6375201", "text": "public function listar(){\n $equipamento = new Equipamento();\n // Recuperar dados\n $lista = $equipamento->getEquipamentos();\n // Manipular dados\n // . . .\n\n // Substituindo numero da manutencao pelo tipo dela.\n // foreach ($lista as $key => $value) {\n // $lista[$key]['tipo'] = $value['tipo'] == 1 ? 'Preventiva' : ($value['tipo'] == 2 ? 'Corretiva' : 'Urgente');\n // }\n\n // Invocar/retornar os dados para view.\n include 'view/admin/lista.php';\n }", "title": "" }, { "docid": "5d0f085f660b2926be4656e6ce96eec5", "score": "0.6374507", "text": "function _get_data()\r\n {\r\n $model_dangtin =& m('qldangtin');\r\n $dangtin = $model_dangtin->find(array(\r\n 'limit' => 4,\r\n\t 'count' => true,\r\n\t 'order' => 'thoigianup DESC',\r\n ));\r\n $this->assign('dangtin', $dangtin);\t\r\n // var_dump($dangtin);\r\n //Tin khuyen mai\r\n $value='1';\r\n $model_dangtin =& m('qldangtin');\r\n $khuyenmai = $model_dangtin->find(array(\r\n 'limit' => 4,\r\n\t 'count' => true,\r\n\t 'order' => 'thoigianup DESC',\r\n\t\t'conditions' => 'khuyenmai ='.$value,\r\n ));\r\n $this->assign('khuyenmai', $khuyenmai);\r\n // var_dump($khuyenmai);\r\n //san pham moi\r\n $model_sanpham =& m('goods');\r\n $sanpham = $model_sanpham->find(array(\r\n 'limit' => 4,\r\n\t 'count' => true,\r\n\t 'order' => 'add_time DESC',\r\n ));\r\n $this->assign('sanpham', $sanpham);\r\n\r\n \r\n }", "title": "" }, { "docid": "a139eb17aacb1b5d9ad0cd0839f626bb", "score": "0.63723814", "text": "function get_all_kelas(){\n $this->datatables->select('kelas_id,kelas_nama')\n ->from('v_kelas');\n return $this->datatables->generate();\n }", "title": "" }, { "docid": "8534b6a7f5e4ec3c86dd6978efde0f62", "score": "0.63709754", "text": "function getAll(){\r\n \treturn $this->data;\r\n }", "title": "" }, { "docid": "3708de5cb8989cd3f4eb481d561afb13", "score": "0.635749", "text": "public function get_entries() {\n\t\t$this->db->select('oznaka, lokacija, brm');\n\t\t$query = $this->db->get('sale');\n\t\tif ($query->num_rows() > 0) {\n foreach ($query->result() as $temp) {\n $array[] = $temp;\n }\n\t\t\treturn $array;\n\t\t}\n\t}", "title": "" }, { "docid": "7212bd3daff3340054604a8dcc11dbbf", "score": "0.63563544", "text": "private function getCatsData(): array {\n $database = \\Drupal::database();\n $query = $database->query(\"SELECT id, cats_name,email, image_url, created FROM {deku}\");\n return $query->fetchAll();\n }", "title": "" } ]
e73696de9a13aa4a26ae836c691ed21e
Recherche d'une agence avec son ID
[ { "docid": "bf0b9f5ab4193decb5573df6d1c9213c", "score": "0.637347", "text": "public static function findById($id) {\n /* Connexion à la base de données */\n $c = Database::getConnection();\n /* Préparation de la requête */\n $sql = \"select * from Agence where id_agence=$id\";\n /* Exécution de la requête */\n $query = $c->query($sql);\n /* Récupération du résultat */\n $d = $query->fetch(PDO::FETCH_BOTH);\n /* Création d'un Objet */\n $age = new Agence();\n $age->id_agence = $d['id_agence'];\n $age->nom = $d['nom'];\n $age->email = $d['email'];\n $age->telephone = $d['telephone'];\n $age->id_adresse = $d['id_adresse'];\n return $age;\n }", "title": "" } ]
[ { "docid": "cfdd0487abefc4dbef0fd1f63175650c", "score": "0.63494986", "text": "public function search ($id=null)\r\n {\r\n $this->Huespede->id = $id; \r\n \r\n $result = $this->Huespede->find('all');\r\n $huesp = $this->Huespede->find('all');\r\n $i = 0;\r\n foreach ($result as $result) {\r\n $availableTags[$i] = \"{$result[\"Huespede\"][\"apellidos\"]}\" ;\r\n $i++;\r\n }\r\n \r\n \t\r\n $this->set('availableTags', $availableTags);\r\n \r\n \r\n if (!empty($this->data)){ \r\n\t \r\n\t $apellido = $this->data['Huespede']['apellidos'];\r\n\t $Huespede = $this->Huespede->find('all', array('conditions' => array(\"Huespede.apellidos\" => $apellido)));\r\n\t $this->set('Huespede', $Huespede);\r\n\t \r\n\r\n }\t\r\n \r\n }", "title": "" }, { "docid": "dcd786d0e9d47187407b8b3cb3ad3832", "score": "0.6318821", "text": "public function myFindDQL($id){\n $query = $this->_em->createQuery('SELECT a FROM OCPlatformBundle:Advert a WHERE a.id = :id');\n $query->setParameter('id',$id);\n return $query->getSingleResult();\n }", "title": "" }, { "docid": "d15faf56240ab8c9c5e8e485ca3db4e4", "score": "0.62628347", "text": "public function findBySalle($id){\r\n $query = $this->getRepository('Avis');\r\n $result = $query->findBySalleId($id);\r\n return $result;\r\n }", "title": "" }, { "docid": "20706bcafc5901d0e22f1e8d264eb71b", "score": "0.6115602", "text": "function searchId($id_barang){\n\t\t// kembalian: Barang\n\t\t\n\t\t$array = sendRestRequest(\"GET\",\"barang/\".$id_barang, array());\n\t\tif ($array[\"status\"] == \"ok\") {\n\t\t\treturn $array[\"barang\"];\n\t\t} else {\n\t\t\treturn $array[\"desc\"];\n\t\t}\n\t}", "title": "" }, { "docid": "c7288f105fb77ccace55e11e866ebbda", "score": "0.6062079", "text": "public function myFindOne($id){\n $queryBuilder = $this->createQueryBuilder('a')\n ->where('a.id = :id')\n ->setParameter('id',$id);\n\n return $queryBuilder->getQuery()->getResult();\n }", "title": "" }, { "docid": "6736dfc9d46f36135072c38e735aacbb", "score": "0.59955084", "text": "public function search($id)\n {\n return Pegawai::find($id);\n }", "title": "" }, { "docid": "fb4aadd0711be60abb87819c597cdb11", "score": "0.59768116", "text": "public function findPaiementdeAnnee($id)\n {\n $qb= $this->_em->createQueryBuilder();\n $qb-> select('a')\n ->from('AdminBundle:Payer','a')\n ->leftJoin('a.Annee', 'ann')\n ->Where('ann.id = :id')\n ->setParameter('id',$id );\n return $qb->getQuery()->getResult();\n\n }", "title": "" }, { "docid": "412b87ff6be8c5628db4d0a5963de7b3", "score": "0.5963046", "text": "function getOrden_esAbonoWithOrdId($id){\r\n $abono = getOrdenWithOrdId($id);\r\n $fila = mysql_fetch_array($abono);\r\n return $fila['es_abono']; \r\n \r\n\t}", "title": "" }, { "docid": "359e2b139e76d92f2f0bb3662acbfcbb", "score": "0.5904099", "text": "function search_autho($authr){\n\n$conn = new Connection('DBCola');\n\n//selects author database\n$column_authr = new ColumnFamily($conn,'author');\n\ntry\n{\n\n//search author database\n$pesquisa = $column_authr ->get($authr,null,\"\",\"\",false,100000,null,null);\n\n//return results\n//return $pesquisa;\n$count=0;\nforeach ($pesquisa as $key => $value){\n //echo \"<p><b>- </b>\".$value.\".</p>\";\n echo \"<p><p >-<b></b><a id='\".$value.\"' href='#' style='color: rgb(0,0,0)' onclick='toProjectosfromrepository(this.id)'>\".$value.\"</a></p></p><p></p>\";\n $count++;\n}\n}\ncatch(Exception $e)\n{\n\techo \"Não foram encontrados resultados\";\n}\n}", "title": "" }, { "docid": "1426c35ef085ac186c6ce0a1552f9cf8", "score": "0.58743984", "text": "function get_ahorro($idahorro)\n\t{\n\t\t//$ci será como $this\n\t\t$ci =& get_instance();\n\n\t\t$ci->db->where('id',$idahorro);\n\t\t$query = $ci->db->get('ahorros');\n\t\treturn $query->row();\n\t \n\t}", "title": "" }, { "docid": "fa268c3666a7867beca5d131e6977921", "score": "0.58611673", "text": "public function consulta($gastronomia_id){\n $query = new Query();\n $gastronomia = $query\n ->select(\"g.*,c.nome AS categoria_nome,f.nome_arquivo, f.descricao AS descricao_foto\")\n ->from(\"gastronomia g\")\n ->innerJoin(\"categorias c\",\"g.categoria_id = c.id\")\n ->leftJoin(\"fotos f\",\"f.loja_id = g.id\")\n ->where(['g.id' => $gastronomia_id])\n ->one();\n return $gastronomia;\n }", "title": "" }, { "docid": "d7d6f2efd02404d1a6ec9faeed38d2d7", "score": "0.5842393", "text": "function datosEstudiante($id){\r\n $comando = \"SELECT * FROM estudiantes WHERE carnet = :elCarnet\";\r\n $query = $this->conectar()->prepare($comando);\r\n $query->execute(['elCarnet' => $id]);\r\n return $query;\r\n }", "title": "" }, { "docid": "98fccb6466c75aa905089120ed5ec9b5", "score": "0.5834842", "text": "function obtenerEspecialista($id){\n \n\t //$this->db->where('id',$id);\n\t $query = $this->db->from('especialista')->where('id',$id)->get();\n\t \n\t if($query-> num_rows() > 0){\n\t \n\t return $query;\n\t }\n\t else return false ;\n\t \n\t}", "title": "" }, { "docid": "29e8ad5b0bf1e120cdbe6dd1b58b76d1", "score": "0.58314407", "text": "public function findEmpresa($id);", "title": "" }, { "docid": "d0d18078ab1baabbf5b4341aac96eca7", "score": "0.58155906", "text": "public function searchEstudiantes($value){\n $sql = \"SELECT A.id, A.nombre, A.apellido, A.fecha_nacimiento, M.municipio, \n A.telefono, Z.nombre AS Zona , A.NIE, A.genero, E.estado_familiar, R.religion, \n A.anio_ingreso, A.repite_grado, A.tarjeta_vacuna, D.discapacidad, \n A.prescripcion, A.partida, A.certificado, A.fecha_registro, A.usuario, \n A.contrasenia, A.correo, A.estado, A.carnet, A.foto , G.grado\n FROM alumnos A, estado_familiar E, religiones R, municipios M, \n zona Z, discapacidades D, grados G, secciones Se\n WHERE A.id_municipio = M.id AND A.id_zona = Z.id \n AND A.id_estado = E.id AND A.id_religion = R.id \n AND Se.id_alumno = A.id AND G.id = Se.id_grado\n AND A.id_discapacidad = D.id AND A.estado = 0\n AND A.nombre LIKE ? OR A.carnet LIKE ?\";\n $params = array(\"%$value%\",\"%$value%\");\n return Database::getRows($sql, $params);\n }", "title": "" }, { "docid": "c4551fc968139d9232126ca8b034c1a5", "score": "0.5756253", "text": "function recherche(){\n /* CHARGEMENT */\n //Helper\n $this->load->helper('html');\n $this->load->helper('form');\n $this->load->library('form_validation');\n $this->load->model('modele_thibault');\n\n /*Bien connecté*/\n $this->load->helper('url');\n $this->load->library('session');\n if(!isset($this->session->connecte)){\n if($this->session->connecte != true){\n redirect('c_accueil/deconnexion');\n }\n }\n \n //R�cup�ration id\n $this->load->library('session');\n $idVisArray = $this->session->idVis;\n foreach ($idVisArray as $key){\n $idVis = $key->vis_matricule;\n }\n \n //Haut + menu\n $this->load->view('connecte/v_haut');\n $this->load->view('connecte/v_menu');\n \n //Bas\n $this->load->view('connecte/v_bas');\n }", "title": "" }, { "docid": "9f28d25ade599ea072d1a8ac462916e2", "score": "0.5747851", "text": "function get_by_id($id)\n {\n $query=$this->db->query(\"SELECT * FROM nilai_akhir where nis=\".$id.\"\");\n return $query;\n }", "title": "" }, { "docid": "8997c4573af515ef55b050f1a6d47804", "score": "0.5736477", "text": "function getElemById($id){\n\t\t$rquery = $this->db->where(\"id\",$id);\n\t\t$rquery = $this->db->get(\"cat_secciones\"); \n\t\treturn $rquery;\n\t}", "title": "" }, { "docid": "33fca8100fd70420172876483c80cd61", "score": "0.5731888", "text": "function find($id){ \n\n\n\n try{\n $link= connecter_db();\n $rp=$link->prepare(\"select * from etudiant where id=? order by id desc\");\n $rp->execute([$id]);\n $resultat= $rp->fetch(PDO::FETCH_ASSOC); \n\n return $resultat;\n }catch(PDOException $e ){\n die (\"erreur de recuperation de l'etudiant d'id = $id dans la base de donnees \".$e->getMessage());\n }\n\n}", "title": "" }, { "docid": "6b89a76a0a59348605ad78c4ce64f551", "score": "0.57297426", "text": "public function rechercheAction()\n {\n /*On récupère les categories*/\n $docCategories = $this->getDoctrine()->getRepository('EchangeoBundle:Categorie');\n $categories = $docCategories->findAll();\n /*On recupère les derniers services*/\n $docServices = $this->getDoctrine()->getRepository('EchangeoBundle:Service');\n $services = $docServices->findBy(array(), array('id' => 'desc'), 5, null);\n /*rendu*/\n return $this->render('EchangeoBundle:Default:recherche.html.twig',array(\n \"categories\"=>$categories,\n \"services\"=>$services)\n );\n }", "title": "" }, { "docid": "ad8a116025a8900a5ab9c4bdb785c24b", "score": "0.5728563", "text": "function recuperarPorId($id)\r\n{\r\n $sql = \"select * from academia where id = {$id}\"; //..sql de consulta\r\n $con = conectar(); //..conecta ao banco\r\n $result = pg_query($con, $sql); //..pega o resultado em $result\r\n pg_close($con); //.fecha a conexão\r\n if (pg_num_rows($result) > 0) { //..se tiver mais de uma linha então recupera os registros\r\n $registro = pg_fetch_all($result);\r\n return $registro[0]; //..pega somente o primeiro registro retornado. \r\n } else {\r\n return null; //..senão, retorna null\r\n }\r\n}", "title": "" }, { "docid": "d5f900125f0ab1817db440a239e2ddd7", "score": "0.5727857", "text": "function search($id){\n\t\tglobal $conn;\n\t\t$stmt =$conn->prepare( \"SELECT * FROM users where id=:id\");\n\t\t$stmt->bindParam(':id',$id);\n\t\t$stmt->execute();\n\t\treturn $stmt->fetch(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "84560ea1cfe1cbc31b13020b9ebf61b9", "score": "0.57229924", "text": "function viewGambarBerita($id){\n $query = $this->db->query(\"SELECT * FROM gambar_berita where id_berita='\".$id.\"'\");\n return $query;\n }", "title": "" }, { "docid": "e3e26ec323e1ce39ab49b410630e2306", "score": "0.57183254", "text": "public function search()\n {\n $espe = Especialidad::search('title')->get();\n\n dd($espe);\n }", "title": "" }, { "docid": "dbe47fb5cd7e1c3c7ab7a27f834fbbc3", "score": "0.57099605", "text": "function findbyid($id)\n {\n try {\n\n $st = $this->db->prepare(\"SELECT * FROM demande WHERE type_demande = 'besoin'\");\n\n $st->execute([$id]);\n $row = $st->fetch();\n if($row != null) {\n $urgent = new urgent();\n $urgent =new $urgent->Construct1($row[0], $row[1], $row[2], $row[3],);\n return $urgent;\n }\n return null;\n\n }\n catch(PDOException $e) {\n echo 'Error :' .$e->getMessage();\n }\n }", "title": "" }, { "docid": "6634511711c5eb22596cf513d9562109", "score": "0.5687742", "text": "public function busca_una($id)\n\t\t{\n\t\treturn $this->find_first(\"conditions: codcar = '$id'\",\"order: codcar\");\n\t\t}", "title": "" }, { "docid": "b1fa4d3594300aeb1aed167c8a766f47", "score": "0.5682477", "text": "public function search($id)\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->addCondition('belongto = '.$id);\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('pengirim',$this->pengirim,true);\n\t\t$criteria->compare('judul',$this->judul,true);\n\t\t$criteria->compare('berita',$this->berita,true);\n\t\t$criteria->compare('image',$this->image,true);\n\t\t$criteria->compare('lokasi',$this->lokasi,true);\n\t\t$criteria->compare('dateposted',$this->dateposted,true);\n\t\t$criteria->compare('belongto',$this->belongto);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "a8d34af81f2b32128128dabf563479d4", "score": "0.5679671", "text": "function get_anak_asuh($id_anak_asuh)\n {\n return $this->db->get_where('anak_asuh',array('id_anak_asuh'=>$id_anak_asuh))->row_array();\n }", "title": "" }, { "docid": "e8d40b806df4ee40bd9dc41238d50d48", "score": "0.56745666", "text": "function consulta_agente($id_agente) {\n $cn = conectar(); // método de conectar.php para hacer conexión\n $query = \"SELECT * FROM agente WHERE id_agente = '\".$id_agente.\"'\"; // sql para ejecutar\n\t$resultado = $cn->query($query);// ejecución del sql\n\t$datos = array(); //inicializamos el array \n\twhile ($fila = $resultado->fetch_array(MYSQLI_ASSOC)){ //fetch_array nos permite iterar por cada uno de los registros obtenidos\n\t\t$datos[] = $fila;\n\t}\t\t\t\n desconectar($cn); // método de conectar.php desconexión a la bd\n\n return $datos[0]; // retorna el resultado al controlador\n\t}", "title": "" }, { "docid": "7d9f8a2cbc891d49e70e20487dd389a4", "score": "0.56688", "text": "public function search($id_pegawai)\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id_hukuman',$this->id_hukuman);\n\t\t$criteria->condition = 'id_pegawai = \"'.$id_pegawai.'\"';\n\t\t$criteria->compare('id_master_hukuman',$this->id_master_hukuman);\n\t\t$criteria->compare('uraian',$this->uraian,true);\n\t\t$criteria->compare('nomor_sk',$this->nomor_sk,true);\n\t\t$criteria->compare('tanggal_sk',$this->tanggal_sk,true);\n\t\t$criteria->compare('tanggal_mulai',$this->tanggal_mulai,true);\n\t\t$criteria->compare('tanggal_selesai',$this->tanggal_selesai,true);\n\t\t$criteria->compare('masa_berlaku',$this->masa_berlaku,true);\n\t\t$criteria->compare('pejabat_menetapkan',$this->pejabat_menetapkan,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "ce00ce8099b790b57f3a90f4f625e9d8", "score": "0.5664408", "text": "public function find($id) {\n return $this->createQueryBuilder()\n ->where('ID', $id, '=')\n ->orderBy('ID', 'ASC')\n ->buildQuery()\n ->getResults();\n }", "title": "" }, { "docid": "b2d990dcba81511e54d81cfdcdb8848e", "score": "0.5648134", "text": "public function findMembre_deconnexion($id)\n {\n\n $query = $this->getEntityManager()->createQuery(\n \"SELECT f FROM EyesBundle:utilisateurs f WHERE f.id = :leid\"\n\n );\n\n //$pwd = sha1($password);\n \n //var_dump($pwd);\n $query->setParameter(\"leid\", $id);\n // $query->setParameter(\"letype\", $type)->getResult();\n // $query->setParameter(\"lepassword\", $pwd);\n // $query->setParameter(\"lepassword\", $pwd)->getResult();\n // var_dump($type);\n //var_dump($pwd);\n //var_dump($query);\n\n //$query->setParameter(\"lepassword\", $password);\n // equivalent en sql SELECT COUNT( * ) , Genre.type\n // FROM film\n//JOIN Genre ON Genre.id = film.laisonGenre_id\n//GROUP BY Genre.type\n\n //var_dump($query->getResult());\n\n //die(\"ko\");\n\n// !!! reste a l'afficher dans la vue !!!!!!\n return $query->getResult();\n\n }", "title": "" }, { "docid": "2f7ecda486664fd7c524adbc2452fbac", "score": "0.56380886", "text": "public function findPaiementByEleve($id)\n {\n $qb= $this->_em->createQueryBuilder();\n $qb-> select('a')\n ->from('AdminBundle:Payer','a')\n ->leftJoin('a.Eleve', 'e')\n ->Where('e.id = :id')\n ->setParameter('id',$id )\n ->addGroupBy('a.Annee');\n return $qb->getQuery()->getResult();\n\n }", "title": "" }, { "docid": "9e8c41e70bc5eab7211101ad9be1949c", "score": "0.5632307", "text": "abstract public function find($id);", "title": "" }, { "docid": "3e141c43fa530a360b9f82554e6ab5ea", "score": "0.56264466", "text": "public function findAlineacion($id){\n\n $conn = $this->conn->conexion();\n $sql = 'SELECT * FROM alineacion_objetivo\n WHERE id_alineacion = :id_alineacion';\n $stmt = $conn->prepare($sql);\n $stmt->bindParam(':id_alineacion', $id);\n $stmt->execute();\n $alineacion = $stmt->fetchAll(PDO::FETCH_OBJ);\n\n return json_encode($alineacion);\n }", "title": "" }, { "docid": "3251455cc152892a089dbab13538f1ad", "score": "0.56105906", "text": "private function searchEventoById($id) {\n\t\tif (($evento = EntEventos::find ()->where ( [ \n\t\t\t\t'id_convencion' => $id \n\t\t] )->one ()) !== null) {\n\t\t\treturn $evento;\n\t\t} else {\n\t\t\tthrow new NotFoundHttpException ( 'The requested page does not exist.' );\n\t\t}\n\t}", "title": "" }, { "docid": "e49affa94cfd75d63850f2e5a1a12b11", "score": "0.5602375", "text": "public function consultarvagasAction() {\n }", "title": "" }, { "docid": "8fc33140f29bcbe1f768cd185bbc6c1d", "score": "0.55988437", "text": "public function read($idA)\r\n {\r\n $sql = \"SELECT * FROM $this->table WHERE $this->key=:idA\";\r\n $stmt = Connexion::getInstance()->prepare($sql);\r\n $stmt->bindParam(':idA', $idA);\r\n $stmt->execute();\r\n\r\n $row = $stmt->fetch();\r\n $idA = $row[\"idA\"];\r\n $ville = $row[\"ville\"];\r\n $mail = $row[\"mail\"];\r\n // rep est une new agence dans la table agence de la bdd competence;\r\n $rep = new \\modele\\metier\\Agence($idA, $ville, $mail);\r\n $rep->setidA($idA);\r\n return $rep;\r\n }", "title": "" }, { "docid": "43cf81cfc16ebb12b48534c57e5add04", "score": "0.5598359", "text": "public function byId($id);", "title": "" }, { "docid": "43cf81cfc16ebb12b48534c57e5add04", "score": "0.5598359", "text": "public function byId($id);", "title": "" }, { "docid": "43cf81cfc16ebb12b48534c57e5add04", "score": "0.5598359", "text": "public function byId($id);", "title": "" }, { "docid": "43cf81cfc16ebb12b48534c57e5add04", "score": "0.5598359", "text": "public function byId($id);", "title": "" }, { "docid": "43cf81cfc16ebb12b48534c57e5add04", "score": "0.5598359", "text": "public function byId($id);", "title": "" }, { "docid": "43cf81cfc16ebb12b48534c57e5add04", "score": "0.5598359", "text": "public function byId($id);", "title": "" }, { "docid": "43cf81cfc16ebb12b48534c57e5add04", "score": "0.5598359", "text": "public function byId($id);", "title": "" }, { "docid": "43cf81cfc16ebb12b48534c57e5add04", "score": "0.5598359", "text": "public function byId($id);", "title": "" }, { "docid": "78445f9b6ee35300015b37e893d650d7", "score": "0.5597418", "text": "public function searchById($areaKeys, $dsetId, $access, $params)\n {\n \n $db = $this->getDb();\n $query = $db->newQuery('AclMgmt_Backpath_Table');\n /* @var $query AclMgmt_Backpath_Table_Query */\n \n //$condition = $this->getSearchCondition();\n \n $query->fetchById(\n $areaKeys,\n $dsetId,\n array(),\n $params\n );\n \n return $query;\n \n }", "title": "" }, { "docid": "cdfe7e86053df8c5b23c5f715010eaf5", "score": "0.55938095", "text": "function cabang_search($cabang_id ,$cabang_nama ,$cabang_alamat ,$cabang_kota ,$cabang_kodepos ,$cabang_propinsi ,$cabang_keterangan ,$cabang_aktif ,$start,$end,$cabang_pajak){\r\n\t\t\tif ($cabang_aktif==\"\")\r\n\t\t\t\t$cabang_aktif = \"Aktif\";\r\n\r\n\t\t\t//full query\r\n\t\t\t$query=\"select * from cabang\";\r\n\t\t\t\r\n\t\t\tif($cabang_id!=''){\r\n\t\t\t\t$query.=eregi(\"WHERE\",$query)?\" AND \":\" WHERE \";\r\n\t\t\t\t$query.= \" cabang_id LIKE '%\".$cabang_id.\"%'\";\r\n\t\t\t};\r\n\t\t\tif($cabang_nama!=''){\r\n\t\t\t\t$query.=eregi(\"WHERE\",$query)?\" AND \":\" WHERE \";\r\n\t\t\t\t$query.= \" cabang_nama LIKE '%\".$cabang_nama.\"%'\";\r\n\t\t\t};\r\n\t\t\tif($cabang_alamat!=''){\r\n\t\t\t\t$query.=eregi(\"WHERE\",$query)?\" AND \":\" WHERE \";\r\n\t\t\t\t$query.= \" cabang_alamat LIKE '%\".$cabang_alamat.\"%'\";\r\n\t\t\t};\r\n\t\t\tif($cabang_kota!=''){\r\n\t\t\t\t$query.=eregi(\"WHERE\",$query)?\" AND \":\" WHERE \";\r\n\t\t\t\t$query.= \" cabang_kota LIKE '%\".$cabang_kota.\"%'\";\r\n\t\t\t};\r\n\t\t\tif($cabang_kodepos!=''){\r\n\t\t\t\t$query.=eregi(\"WHERE\",$query)?\" AND \":\" WHERE \";\r\n\t\t\t\t$query.= \" cabang_kodepos LIKE '%\".$cabang_kodepos.\"%'\";\r\n\t\t\t};\r\n\t\t\tif($cabang_propinsi!=''){\r\n\t\t\t\t$query.=eregi(\"WHERE\",$query)?\" AND \":\" WHERE \";\r\n\t\t\t\t$query.= \" cabang_propinsi LIKE '%\".$cabang_propinsi.\"%'\";\r\n\t\t\t};\r\n\t\t\tif($cabang_keterangan!=''){\r\n\t\t\t\t$query.=eregi(\"WHERE\",$query)?\" AND \":\" WHERE \";\r\n\t\t\t\t$query.= \" cabang_keterangan LIKE '%\".$cabang_keterangan.\"%'\";\r\n\t\t\t};\r\n\t\t\tif($cabang_aktif!=''){\r\n\t\t\t\t$query.=eregi(\"WHERE\",$query)?\" AND \":\" WHERE \";\r\n\t\t\t\t$query.= \" cabang_aktif LIKE '%\".$cabang_aktif.\"%'\";\r\n\t\t\t};\r\n\t\t\tif($cabang_pajak!=''){\r\n\t\t\t\t$query.=eregi(\"WHERE\",$query)?\" AND \":\" WHERE \";\r\n\t\t\t\t$query.= \" cabang_pajak = '%\".$cabang_pajak.\"%'\";\r\n\t\t\t};\r\n\t\t\t$result = $this->db->query($query);\r\n\t\t\t$nbrows = $result->num_rows();\r\n\t\t\t\r\n\t\t\t$limit = $query.\" LIMIT \".$start.\",\".$end;\t\t\r\n\t\t\t$result = $this->db->query($limit); \r\n\t\t\t\r\n\t\t\tif($nbrows>0){\r\n\t\t\t\tforeach($result->result() as $row){\r\n\t\t\t\t\t$arr[] = $row;\r\n\t\t\t\t}\r\n\t\t\t\t$jsonresult = json_encode($arr);\r\n\t\t\t\treturn '({\"total\":\"'.$nbrows.'\",\"results\":'.$jsonresult.'})';\r\n\t\t\t} else {\r\n\t\t\t\treturn '({\"total\":\"0\", \"results\":\"\"})';\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "b359d06fe7cc04d36eb5741f932c7378", "score": "0.5590431", "text": "public function getahorropersona($id_persona){\n return Ahorros::where('persona_id','=',$id_persona)->where('estado','=','P')->get();\n }", "title": "" }, { "docid": "07a65e068bf334db1343e088a95abed7", "score": "0.55902946", "text": "function GetEtudiant($id){\n\n \ttry {\n \t\t$bdd=$this->connexion();\n\t\t$reponse=$bdd->prepare(\"select *\n\t\t\t \t from Adherent INNER JOIN Etudiant WHERE Adherent.cin=? AND Etudiant.cin=?\n\t\t\t\t\t\t\t\t \");\n\n\n \t\t\t$reponse->execute([$id,$id]);\n\t\t\t$fetch=$reponse->fetch();\n \t\t\t$reponse->closeCursor();\n \t\t\treturn $fetch;\n\n \t} catch (Exception $e) {\n \t\t echo $e->getMessage();\n \t}\n\n}", "title": "" }, { "docid": "4acde9f5942219e0f912b57d2e098ccb", "score": "0.55563045", "text": "public function doSearch($payid){\n $criteria = new CDbCriteria;\n $criteria->alias = \"t\";\n $criteria->compare('t.id',$payid);\n return self::model()->findAll($criteria);\n }", "title": "" }, { "docid": "0a0899015154e3beed3ff7f09d1099ee", "score": "0.5555713", "text": "public function getById($id){\n\n\t\t$row = $this->_model\n\t\t->getTable()\n\t\t->createQuery()\n\t\t->Where('estado_id in (0,1)')\n\t\t->andWhere('agente_id = ?',$this->_model->agente_id)\n\t\t->execute()\n\t\t->toArray();\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "49b288c4e2bbe4a94e79694aaeae8990", "score": "0.55524796", "text": "public function byId($id) {\n return $this->andWhere(['id' => $id]);\n }", "title": "" }, { "docid": "273c6007fc9a027a6a00f5ba16c9f331", "score": "0.55466956", "text": "function seleccionardistritoscercanos($id)\n {\n $sql = \"SELECT vchCodigo, vchDistrito FROM ubigeo where vchCodigo like Concat(substring('$id',1,4),'%')\" ;\n $data=$this->selcontabla($sql);\n return $data;\n }", "title": "" }, { "docid": "0499f73e969b3b6873b9b4d2a8db1da7", "score": "0.5526833", "text": "public function search($id_orden_solicitud)\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('id_orden_solicitud',$this->id_orden_solicitud);\n\t\t$criteria->compare('cantidad',$this->cantidad);\n\t\t$criteria->compare('direccion_entrega',$this->direccion_entrega,true);\n\t\t$criteria->compare('responsable',$this->responsable,true);\n\t\t$criteria->compare('ciudad',$this->ciudad,true);\n\t\t$criteria->compare('departamento',$this->departamento,true);\n\t\t$criteria->compare('telefono',$this->telefono,true);\n\t\t$criteria->condition = 'id_orden_solicitud='.$id_orden_solicitud;\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "06edbb5f204e12e52a27d830f3e66844", "score": "0.55180585", "text": "function getArtikelen($id){\n global $dbh;\n $sql = $dbh->query(\"SELECT * FROM Voorwerp WHERE verkoper = $id\");\n $artikelen = $sql->fetchAll();\n\n return $artikelen;\n}", "title": "" }, { "docid": "8b8c30fbed29ddeb995b4c0c95f6415a", "score": "0.55158865", "text": "function consultApprenant(){// création de la fonction\r\n try {\r\n $id=$_GET['idApprenant'];//on récupère la valeur idApprenant dans l'url avec $_GET dans une variable $id\r\n $co=connexion();//connxion a la bdd\r\n $sql='SELECT * FROM apprenant a, formation f WHERE `a`.`idFormation` = `f`.`idFormation` AND `a`.`idApprenant` = \"'.$id.'\"';// requete sql\r\n $affichage=$co->prepare($sql);//création de la variable qui fait appel au pdo pour préparer la requete req\r\n $affichage->execute();//exécution de cette variable\r\n return $affichage;// on retourne le résultat obtenu pour pouvoir l'utiliser\r\n }catch(PDOException $e){\r\n echo 'Erreur: ' .$e->getMessage();// si le try ne fonctionne pas, on attrape l'erreur pout ensuite l'afficher\r\n }finally {\r\n $co=null;// on arrete la connexion\r\n }\r\n }", "title": "" }, { "docid": "ecf26b808ca28eb508977dd3b4d266c3", "score": "0.55141044", "text": "function invoices_search_registre_by_cliente_id_type($client_id , $type) {\n global $db ;\n $req = $db->prepare(\"SELECT id FROM invoices WHERE type= :type AND ( client_id = :client_id AND :status = :status )\") ;\n $req->execute(array(\n \"client_id\" => $client_id ,\n \"type\" => $type ,\n \"status\" => 10\n )) ;\n $data = $req->fetch() ;\n return (isset($data[0])) ? $data[0] : false ;\n}", "title": "" }, { "docid": "c90440ae4ed5e6f636cd1f421200b789", "score": "0.55119485", "text": "public function allAgence()\n {\n $this->table ='agence';\n $this->champs =['rowid','label as agence'];\n return $this->__select() ;\n\n }", "title": "" }, { "docid": "715e64aa9db75faf942dd9599357c157", "score": "0.551012", "text": "function search($tmdbId);", "title": "" }, { "docid": "d7f1d878cfd7b26470832b3271ae1a3f", "score": "0.5506429", "text": "public function idSelect()\n {\n global $router;\n $manager = new AdsManager();\n $ads = $manager->getListOne($_GET['id']);\n\n $loader = new \\Twig\\Loader\\FilesystemLoader('views');\n $twig = new \\Twig\\Environment($loader, [\n 'cache' => false,\n ]);\n\n echo $twig->render('Annonce.twig', ['ads' => $ads]);\n }", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.5504083", "text": "public function search();", "title": "" }, { "docid": "51523d8111620b45da4b189d83cc7fb2", "score": "0.5504083", "text": "public function search();", "title": "" }, { "docid": "b94b9a44ec370837e246592d047f6458", "score": "0.54997665", "text": "public function getListeRechercheVpa()\n\t{\n\t\n\t\t$db = $this->tableGateway->getAdapter();\n\t\n\t\t$aColumns = array('Numero_Dossier','Nom','Prenom','Age','Sexe', 'Adresse', 'medecinDemandeur' , 'id', 'id2');\n\t\n\t\t/* Indexed column (used for fast and accurate table cardinality) */\n\t\t$sIndexColumn = \"id\";\n\t\n\t\t/*\n\t\t * Paging\n\t\t*/\n\t\t$sLimit = array();\n\t\tif ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' )\n\t\t{\n\t\t\t$sLimit[0] = $_GET['iDisplayLength'];\n\t\t\t$sLimit[1] = $_GET['iDisplayStart'];\n\t\t}\n\t\n\t\t/*\n\t\t * Ordering\n\t\t*/\n\t\tif ( isset( $_GET['iSortCol_0'] ) )\n\t\t{\n\t\t\t$sOrder = array();\n\t\t\t$j = 0;\n\t\t\tfor ( $i=0 ; $i<intval( $_GET['iSortingCols'] ) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $_GET[ 'bSortable_'.intval($_GET['iSortCol_'.$i]) ] == \"true\" )\n\t\t\t\t{\n\t\t\t\t\t$sOrder[$j++] = $aColumns[ intval( $_GET['iSortCol_'.$i] ) ].\"\n\t\t\t\t\t\t\t\t \t\".$_GET['sSortDir_'.$i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\t/*\n\t\t * Liste des resultats\n\t\t*/\n\t\t$sql1 = new Sql ( $db );\n\t\t$subselect = $sql1->select ();\n\t\t$subselect->from ( array (\n\t\t\t\t'r' => 'resultat_vpa'\n\t\t) );\n\t\t$subselect->columns ( array (\n\t\t\t\t'idVpa'\n\t\t) );\n\t\n\t\t/*\n\t\t * SQL queries\n\t\t*/\n\t\t$sql = new Sql($db);\n\t\t$sQuery = $sql->select()\n\t\t//->from(array('pat' => 'patient'))->columns(array('*'))\n\t\t->from(array('pat' => 'patient'))->columns(array('Numero_Dossier'=>'NUMERO_DOSSIER'))\n\t\t->join(array('pers' => 'personne'), 'pers.ID_PERSONNE = pat.ID_PERSONNE', array('Nom'=>'NOM','Prenom'=>'PRENOM','Age'=>'AGE','Datenaissance'=>'DATE_NAISSANCE','Sexe'=>'SEXE','Adresse'=>'ADRESSE','id'=>'ID_PERSONNE','id2'=>'ID_PERSONNE'))\n\t\t->join(array('cons' => 'consultation'), 'cons.ID_PATIENT = pat.ID_PERSONNE', array('Datedemande'=>'DATE', 'Idcons'=>'ID_CONS'))\n\t\t->join(array('med' => 'personne') , 'med.ID_PERSONNE = cons.ID_MEDECIN' , array('NomMedecin' =>'NOM', 'PrenomMedecin' => 'PRENOM'))\n\t\t->join(array('d' => 'demande_visite_preanesthesique'), 'd.ID_CONS = cons.id_cons' , array('*'))\n\t\t->where(array (\tnew In ( 'd.idVpa', $subselect )))\n\t\t->order('d.idVpa ASC');\n\t\n\t\t/* Data set length after filtering */\n\t\t$stat = $sql->prepareStatementForSqlObject($sQuery);\n\t\t$rResultFt = $stat->execute();\n\t\t$iFilteredTotal = count($rResultFt);\n\t\n\t\t$rResult = $rResultFt;\n\t\n\t\t$output = array(\n\t\t\t\t//\"sEcho\" => intval($_GET['sEcho']),\n\t\t\t\t//\"iTotalRecords\" => $iTotal,\n\t\t\t\t\"iTotalDisplayRecords\" => $iFilteredTotal,\n\t\t\t\t\"aaData\" => array()\n\t\t);\n\t\n\t\t/*\n\t\t * $Control pour convertir la date en fran�ais\n\t\t*/\n\t\t$Control = new DateHelper();\n\t\n\t\t/*\n\t\t * ADRESSE URL RELATIF\n\t\t*/\n\t\t$baseUrl = $_SERVER['REQUEST_URI'];\n\t\t$tabURI = explode('public', $baseUrl);\n\t\n\t\t/*\n\t\t * Preparer la liste\n\t\t*/\n\t\n\t\t$rResult2 = $stat->execute();\n\t\tforeach ( $rResult2 as $aRow )\n\t\t{\n\t\t\t$row = array();\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $aColumns[$i] != ' ' )\n\t\t\t\t{\n\t\t\t\t\t/* General output */\n\t\t\t\t\tif ($aColumns[$i] == 'Nom'){\n\t\t\t\t\t\t$row[] = \"<khass id='nomMaj'>\".$aRow[ $aColumns[$i]].\"</khass>\";\n\t\t\t\t\t}\n\t\n\t\t\t\t\telse if ($aColumns[$i] == 'Age') {\n\t\t\t\t\t\t$age = $aRow[ $aColumns[$i] ];\n\t\t\t\t\t\t$row[] = $this->gestionAges($age, $aRow[ 'Datenaissance' ]);\n\t\t\t\t\t}\n\t\n\t\t\t\t\telse if ($aColumns[$i] == 'Adresse') {\n\t\t\t\t\t\t$row[] = $this->adresseText($aRow[ $aColumns[$i] ]);\n\t\t\t\t\t}\n\t\n\t\t\t\t\telse if ($aColumns[$i] == 'id') {\n\t\n\t\t\t\t\t\t$html =\"<infoBulleVue><a style='padding-right: 15px;' href='javascript:vuedetails(\". $aRow[ $aColumns[$i] ] .\",\". $aRow[ 'idVpa' ] .\")'>\";\n\t\t\t\t\t\t$html .=\"<img src='\".$tabURI[0].\"public/images_icons/voir2.png' title='détails'></a>\";\n\t\t\t\t\t\t$html .=\"<a><img src='\".$tabURI[0].\"public/images_icons/tick_16.png' title='Envoyé'></a><infoBulleVue>\";\n\t\n\t\n\t\t\t\t\t\t$html .=\"<input id='\".$aRow[ 'idVpa' ].\"' type='hidden' value='\".$aRow[ 'Idcons' ].\"'>\";\n\t\n\t\t\t\t\t\t$row[] = $html;\n\t\t\t\t\t}\n\t\n\t\t\t\t\telse if ($aColumns[$i] == 'medecinDemandeur') {\n\t\t\t\t\t\t$row[] = $aRow[ 'PrenomMedecin' ].\" \".$aRow[ 'NomMedecin' ];\n\t\t\t\t\t}\n\t\n\t\t\t\t\telse if ($aColumns[$i] == 'Datedemande') {\n\t\t\t\t\t\t$row[] = $Control->convertDateTime($aRow[ 'Datedemande' ]);\n\t\t\t\t\t}\n\t\n\t\t\t\t\telse {\n\t\t\t\t\t\t$row[] = $aRow[ $aColumns[$i] ];\n\t\t\t\t\t}\n\t\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t$output['aaData'][] = $row;\n\t\t}\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "2b403af9c4cb62e40a7582e4dcedd189", "score": "0.54972094", "text": "public function getAgremets( $amid ){\n $ags = $this->em->getRepository('AppBundle:GwAgrement', 'gramweb')->findByAssmat($amid);\n $data = [];\n $vnom = \"\";\n foreach ( $ags as $ag){\n $vnom = $ag->getNom() != null ? $ag->getNom()->getNom(): \"\";\n $data[] = [\n 'id' => $ag->getId(),\n 'name' => $vnom ,\n ];\n }\n return $data;\n }", "title": "" }, { "docid": "46f1245dd21afd02d648e198895adb57", "score": "0.54972094", "text": "function search($id){\r\n\t\tglobal $db;\r\n\t\t$db = getPDO();\r\n\t\t$stmt = $db->prepare(\"SELECT * FROM sport_team where id=:id\");\r\n\t\t$stmt->bindParam(':id', $id);\r\n\t\t$stmt->execute();\r\n\t\tif($r = $stmt->fetch(PDO::FETCH_ASSOC))\r\n\t\t\treturn $r;\r\n\t\treturn [];\r\n\t}", "title": "" }, { "docid": "0677b01391fd2913cb8cf103d8c0fbfd", "score": "0.5480712", "text": "function consultaAbonosDePago($id_pago)\n{\n include_once \"../model/ABONOS.php\";\n $obj_Abono = new ABONOS();\n\n return $obj_Abono->queryconsultaAbonos($id_pago);\n}", "title": "" }, { "docid": "002b5acc1a03ad2c8d5e81cd19184041", "score": "0.54802847", "text": "function get_datosavance($DBcon, $id)\n {\n $query= \"SELECT avance FROM tp_avance WHERE idproyecto = '\".$id.\"'\";\n $stmt = $DBcon->prepare($query);\n $stmt->execute();\n $obj = $stmt->fetchObject();\n\n // regresa un solo registro\n return $obj->avance;\n }", "title": "" }, { "docid": "4638303eec84194aad2787d4efea4c2a", "score": "0.54745907", "text": "function getEncheresByIdProduit($id_produit) {\r\n\t$db = DB::getConnection();\r\n\t$sql = \"\r\n\t\tSELECT *\r\n\t\tFROM enchere\r\n\t\tWHERE id_produit = :id_produit\";\r\n\t$stmt = $db->prepare($sql);\r\n\t$stmt->bindValue(\":id_produit\", $id_produit);\r\n\t$stmt->execute();\r\n\treturn $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n}", "title": "" }, { "docid": "2806a4113898801f2add43e71f3b4a96", "score": "0.54718673", "text": "public function SearchAsignacion($data){\n try {\n $sql= \"SELECT * FROM asignacion INNER JOIN equipo ON(asignacion.equi_id = equipo.equi_id) INNER JOIN pantalla ON(asignacion.pant_id = pantalla.pant_id) INNER JOIN teclado ON(asignacion.tec_id = teclado.tec_id) INNER JOIN hardphone ON(asignacion.hard_id = hardphone.hard_id) INNER JOIN usuario ON(asignacion.user_id = usuario.user_id) WHERE asig_piso LIKE ? OR asig_oficina LIKE ? OR asig_puesto LIKE ? OR equi_consecutivo LIKE ? OR pant_consecutivo LIKE ? OR asig_seg_pant LIKE ? OR tec_consecutivo LIKE ? OR hard_consecutivo LIKE ? OR user_name LIKE ? OR asig_fecha LIKE ?\";\n $query= $this->pdo->prepare($sql);\n $query->execute(array(\"%$data%\",\"%$data%\",\"%$data%\",\"%$data%\",\"%$data%\",\"%$data%\",\"%$data%\",\"%$data%\",\"%$data%\",\"%$data%\"));\n $data= $query->fetchALL(PDO::FETCH_BOTH);\n\n } catch (PDOException $e) {\n die($e->getMessage());\n }\n return $data;\n }", "title": "" }, { "docid": "960ebc8b05275d2f3c275c11c6f42832", "score": "0.54712355", "text": "function get_listado_votos($id_acta)\n\t{\n $sql = \"SELECT t_l.id_nro_lista, \n t_l.nombre,\n t_v.cant_votos as votos\n FROM voto_lista_decano t_v\n INNER JOIN lista_decano t_l ON (t_l.id_nro_lista = t_v.id_lista)\n WHERE t_v.id_acta = $id_acta \n ORDER BY t_l.id_nro_lista\";\n \n return toba::db('gu_kena')->consultar($sql);\n\t}", "title": "" }, { "docid": "af50794c68873eecf420a61f7db202ed", "score": "0.5468089", "text": "protected function getQueryObject($id)\r\n\t{\r\n\t\t// Implementar en cada repository\r\n\t}", "title": "" }, { "docid": "628e11103081ebd1ce82a0500529ad60", "score": "0.54673284", "text": "function viewGambarPenginapan($id){\n $query = $this->db->query(\"SELECT * FROM gambar_penginapan where id_penginapan='\".$id.\"'\");\n return $query;\n }", "title": "" }, { "docid": "0277d31ab96f759e649f6c745e2a91bf", "score": "0.5462949", "text": "public function showCarros($id)\n {\n return persona::find($id)->carro;\n }", "title": "" }, { "docid": "0e21252ba8fbf19eaddc1ff04d6458ea", "score": "0.5448753", "text": "public function buscarAluno($id){\n\n $alunoDAO = new AlunoDAO();\n\n $list = $alunoDAO->selectById($id);\n\n return $list;\n }", "title": "" }, { "docid": "064902b0d18f10c077aead7f443f7144", "score": "0.5442738", "text": "function getAllByoptieId($id) {\n $this->db->where('optieId', $id);\n $query = $this->db->get('taak');\n return $query->result();\n }", "title": "" }, { "docid": "e4c4c535149ed694efc209f26df8973d", "score": "0.544266", "text": "public function findSearch($search = null){ \n $query = $this->createQueryBuilder('product');\n $query->where('product.status = 1');\n //dump($search);\n if($search != null){ // si ma recherche n'est pas vide\n $query\n ->andWhere('MATCH_AGAINST (product.name, product.content, product.description) AGAINST (:search boolean)>0') \n ->setParameter('search', $search); \n }\n\n return $query->getQuery()->getResult();\n }", "title": "" }, { "docid": "611fd8b99940d9b777e704c306b388eb", "score": "0.5441234", "text": "function find_by_id($id)\n\t{\n\t\t$this->db->where(\"id\", $id);\n\t\t$result=$this->db->get($this->table_name);\n\t\treturn $result;\t\n\t}", "title": "" }, { "docid": "f80b01a355d3663296b2c6ea0ef81846", "score": "0.5439446", "text": "public function searchByIds($ids = array());", "title": "" }, { "docid": "a34a5d2eb3078f5fa7941ee6e7c73a75", "score": "0.5438798", "text": "public function search($params,$tipo, $id)\n {\n if($id == 0){\n $query = Auxilios::find()->where('auxilios.tipo=:tipo');\n }else{\n $query = Auxilios::find()->where('auxilios.tipo=:tipo AND auxilios.id_cliente =:id');\n $query->addParams([':id' => $id]);\n } \n $query->addParams([':tipo' => $tipo]);\n\n $query->joinWith(['idCliente', 'idFamiliar', 'tipoAuxilio']);\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n\n $dataProvider->sort->attributes['documento_cliente'] =[\n 'asc'=>['clientes.num_id'=>SORT_ASC],\n 'desc'=>['clientes.num_id'=>SORT_DESC],\n ];\n $dataProvider->sort->attributes['nombre_cliente'] =[\n 'asc'=>['clientes.nombres'=>SORT_ASC],\n 'desc'=>['clientes.nombres'=>SORT_DESC],\n ];\n $dataProvider->sort->attributes['apellido_cliente'] =[\n 'asc'=>['clientes.apellidos'=>SORT_ASC],\n 'desc'=>['clientes.apellidos'=>SORT_DESC],\n ];\n $dataProvider->sort->attributes['tipoAuxilio'] =[\n 'asc'=>['tipo_auxilio.tipo_auxilio'=>SORT_ASC],\n 'desc'=>['tipo_auxilio.tipo_auxilio'=>SORT_DESC],\n ];\n\n\n if (!($this->load($params) && $this->validate())) {\n return $dataProvider;\n }\n\n $query->andFilterWhere([\n 'id_auxilio' => $this->id_auxilio,\n 'tipo' => $this->tipo,\n 'porcentaje_aux' => $this->porcentaje_aux,\n 'monto' => $this->monto,\n 'num_meses' => $this->num_meses,\n 'fecha_auxilio' => $this->fecha_auxilio,\n 'estado' => $this->estado,\n 'id_cliente' => $this->id_cliente,\n 'tipo_auxilio' => $this->tipo_auxilio,\n 'id_familiar' => $this->id_familiar, \n \n ]);\n\n $query->andFilterWhere(['like', 'proveedor', $this->proveedor]);\n $query->andFilterWhere(['like', 'clientes.num_id', $this->documento_cliente]);\n $query->andFilterWhere(['like', 'clientes.nombres', $this->nombre_cliente]);\n $query->andFilterWhere(['like', 'clientes.apellidos', $this->apellido_cliente]);\n $query->andFilterWhere(['like', 'tipo_auxilio.tipo_auxilio', $this->tipoAuxilio]);\n\n return $dataProvider;\n }", "title": "" }, { "docid": "d32eb945ac5d732d1157846276d7cc06", "score": "0.5438448", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('leixing', $this->leixing, true);\n $criteria->compare('partner', $this->partner, true);\n $criteria->compare('pandiandanhao', $this->pandiandanhao, true);\n $criteria->compare('fenqu_pandiandanhao', $this->fenqu_pandiandanhao, true);\n $criteria->compare('kuweihao', $this->kuweihao, true);\n $criteria->compare('kehubianhao', $this->kehubianhao, true);\n $criteria->compare('gonghuoshang', $this->gonghuoshang, true);\n $criteria->compare('suoshucangku', $this->suoshucangku, true);\n $criteria->compare('shangpinmingcheng', $this->shangpinmingcheng, true);\n $criteria->compare('suoshukehu', $this->suoshukehu, true);\n $criteria->compare('chuchang_bar', $this->chuchang_bar, true);\n $criteria->compare('nei_bar', $this->nei_bar, true);\n $criteria->compare('total', $this->total);\n $criteria->compare('zhengcanleixing', $this->zhengcanleixing, true);\n $criteria->compare('zhuangtai', $this->zhuangtai, true);\n $criteria->compare('input_man', $this->input_man, true);\n $criteria->compare('createtime', $this->createtime, true);\n $criteria->compare('isshenhe', $this->isshenhe, true);\n $criteria->compare('shenhe_man', $this->shenhe_man, true);\n $criteria->compare('shenhe_time', $this->shenhe_time, true);\n $criteria->compare('isqueren', $this->isqueren, true);\n $criteria->compare('queren_man', $this->queren_man, true);\n $criteria->compare('queren_time', $this->queren_time, true);\n $criteria->compare('iszuofei', $this->iszuofei, true);\n $criteria->compare('zuofei_man', $this->zuofei_man, true);\n $criteria->compare('zuofei_time', $this->zuofei_time, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "e82dd1f4379f5abfbe3ddbdcbe18529f", "score": "0.5436502", "text": "function filtro($area){\n $figuras = new Figuras();\n \n \n \n echo \"Las figuras con area menor a $area son:<ul>\";\n foreach($figuras->getBy(new AreaFilter($area)) as $figura) {\n echo \"<li>\" . \n $figura->ToString() . \n \" | <a href='verFigura/\". $figura->getId() . \"'>VER </a>\" .\n \"</li>\";\n }\n echo \"\n </ul>\n <a href='./'>Volver</a>\";\n}", "title": "" }, { "docid": "d8b08420d217db56a03b6a66d3bf897f", "score": "0.54341763", "text": "function getAllDemandeParPersonne($id_personne){\n global $pdo;\n $sql = \"SELECT * FROM demande WHERE ID_personne = ?\";\n $stmt = $pdo->prepare($sql);\n $stmt->bindValue(1, $id_personne, PDO::PARAM_INT );\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_OBJ);\n}", "title": "" }, { "docid": "0961e5d45f19b83ece1e9709ce4c0ea2", "score": "0.54341716", "text": "public function actionApellidoCiudadano($id)\n {\n $ciudadano = Ciudadano::find()->where(['N_HISTCLINIC' => $id])->one();\n\n if( count($ciudadano) > 0){\n\n echo Json::encode($ciudadano->APELLIDOS);\n\n }else {\n echo Json::encode('');\n }\n\n\n }", "title": "" }, { "docid": "1ae64bcbebd48c31e5f274a2ca6b967e", "score": "0.54333806", "text": "public function pesquisarPelaId($idAgenda){\n\t\t\tinclude_once('conexaoBD.php');\n\t\t\t$conn = new Conexao();\n\t\t\t//criando a prepared statement que será executada no banco\n\t\t\t// os \"?\" serão substituidos no banco pelas variaveis $campo e $valor passadas para a função, respectivamente\n\t\t\t$stmt = $conn->prepare(\"SELECT * FROM agenda WHERE idAgenda = ?\");\n\t\t\t//bind_param avisa ao banco o tipo dos valores a serem recebidos(s = string) e suas respectivas variaveis a serem substituidas na query, isso previne as SQL injection\n\t\t\t$stmt->bind_param(\"i\", $idAgenda);\n\t\t\t//executa a prepared statement no banco\n\t\t\t$stmt->execute();\n\t\t\t//armazena o resultado da prepared statement\n\t\t\t$resultado = $stmt->get_result();\n\t\t\t\t//se o resultado tiver ao menos uma linha, cria um array com o usuario e senha retornados do banco\n\t\t\t\t//senao, retorna 0 resultaods;\n\t\t\t\tif ($resultado->num_rows>0){\n\t\t\t\t\t//pega uma linha e salva no array até acabar os resultados\n\t\t\t\t\twhile ($row = $resultado->fetch_assoc()) {\n\t\t\t\t\treturn $row;\n\t\t\t\t\t}\n\t\t\t\t\t//retorna o array com o usuario e senha encontrados\n\t\t\t\treturn $listarAgenda;\n\t\t\t\t} else {\n\t\t\t\t\treturn \"0 resultados\";\n\t\t\t\t}\t\n\t\t\t\t//fecha a statement e a conexao\n\t\t\t$stmt->close();\n\t\t\t$conn->close();\n\t\t}", "title": "" }, { "docid": "00761636ef9956c9e3cce48a50de9b48", "score": "0.5423162", "text": "function consultarArea(){\n global $conexion, $data;\n $id = $data[\"id\"];\n $resultado = mysqli_query($conexion,\"SELECT * FROM catalogo_area WHERE cta_id='$id'\");\n echo validarError($conexion, false, $resultado);\n }", "title": "" }, { "docid": "88fe6958a55538070a2d8feb537d4ecc", "score": "0.5413272", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('unidadOrganizacional_aid',$this->unidadOrganizacional_aid,true);\n\t\t$criteria->compare('origen_did',$this->origen_did);\n\t\t$criteria->compare('tipoDocumento_did',$this->tipoDocumento_did);\n\t\t$criteria->compare('numeroDocumento',$this->numeroDocumento,true);\n\t\t$criteria->compare('salidaResguardo',$this->salidaResguardo,true);\n\t\t$criteria->compare('proveedor_aid',$this->proveedor_aid,true);\n\t\t$criteria->compare('fechaAdquisicion_f',$this->fechaAdquisicion_f,true);\n\t\t$criteria->compare('ejercicio',$this->ejercicio,true);\n\t\t$criteria->compare('fondo_aid',$this->fondo_aid);\n\t\t$criteria->compare('autorizo',$this->autorizo,true);\n\t\t$criteria->compare('fechaCaptura_f',$this->fechaCaptura_f,true);\n\t\t$criteria->compare('estatus_did',$this->estatus_did);\n\t\t$criteria->compare('fechaBaja_f',$this->fechaBaja_f,true);\n\t\t$criteria->compare('usuarioAlta_did',$this->usuarioAlta_did,true);\n\t\t$criteria->compare('usuarioBaja_did',$this->usuarioBaja_did,true);\n\n\t\t$f = Yii::app()->request->getParam('unidadOrganizacional->nombre' , null);\n\t\tif(!empty($f)){\n\n \t\t\t$activeDataProvider = new CActiveDataProvider($this, array(\n \t'criteria'=>$criteria,\n \t));\n\n\t\t\t $activeDataProvider->getCriteria()->with = array(\n 'unidadOrganizacional'\n \t);\n\n\t\t\t$activeDataProvider->getCriteria()->compare('unidadOrganizacional.nombre',$f, true );\n\n\t\t\t return $activeDataProvider;\n\n\t\t\t//$criteria->with('unidadOrganizacional');\n \t\t\t//$criteria->compare('unidadOrganizacional->nombre' , $f , true);\n\n \t\t}\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "3bc8a593129d3563114cd7e24887a956", "score": "0.5412987", "text": "public function search($identifier);", "title": "" }, { "docid": "2d861edefdbfb7b15c7ecb07b598ac3d", "score": "0.5412974", "text": "function findbyidbook($id){\n \t$sql=\"SELECT * FROM BOOK where id=$id\";\n \treturn mysql_query($sql);\n }", "title": "" }, { "docid": "b434c66777bf5eb69c9eeebb0327935c", "score": "0.54072237", "text": "public static function find($id = 0) {\n \n }", "title": "" }, { "docid": "02a9910043f7015f7f9f24f7d5e61925", "score": "0.53986156", "text": "public function searchBySport($id){\n\t\t$AdvertModel=new AdvertModel();\t\n\t\t$SportsModel=new SportsModel();\t\n\n\t\t$sql=\"SELECT s.name AS sport, s.bkg_color, s.logo, m.firstname, a.id, a.description, a.place, a.level, a.event_date, a.event_time, a.remain_participant, a.advert_post_date FROM sports s, advert a, members m WHERE a.id_sport=s.id AND a.id_member=m.id AND s.id=$id\";\n\t\t$allAdverts=$AdvertModel->query($sql);\t\n\n\t\t$sport=$SportsModel->find($id);\n\t\t$title=$sport['name'];\t\n\t\t$this->show('default/index',['title'=>$title, 'allAdverts'=>$allAdverts]);\n\t}", "title": "" }, { "docid": "ed8be2d4193a931e2e47f6e594aa138a", "score": "0.5397992", "text": "public function selecionarFuncaoGheWhere($id){\n\t\t\ttry{\n $sql = \"SELECT * FROM funcao_ghe WHERE id = ?\";\n $busca = $this->conexao->conectar()->prepare($sql);\n\t\t\t\t$busca->bindParam(1,$id);\n $busca->execute();\n return $busca->fetchALL(PDO::FETCH_OBJ);\n }\n catch(PDOException $erro){\n echo \"Erro\" . $erro->getMessage();\n }\t\n\t\t}", "title": "" }, { "docid": "226982a7c7e8f88c242f8939ebfd4df2", "score": "0.53955114", "text": "function Select($id){\n $query = $this->connect()->prepare('SELECT * FROM semaforos_all WHERE id= :id');\n $query->execute(['id' => $id]);\n return $query;\n }", "title": "" }, { "docid": "d81cb740cff193a643c97257b9cc5738", "score": "0.5391257", "text": "public function consulta($id=null){\n\t\ttry{ \n\t\t\t$retorno = null;\n\n\t\t\tif(empty($id)){\n\t\t\t\treturn $retorno = Entrega::all();\n\t\t\t}else{\n\t\t\t\t// caso ele esteja buscando apenas um item, para ficar no padrão de busca, ele será colocado na primeira posição do array para ficar igual ao retorno do metodo em caso de busca para todos\n\t\t\t\treturn $retorno = Entrega::findOrFail($id);\n\t\t\t}\n\n\t\t\t \n\t\t}catch(Exception $e){\n\t \t\n\t \tthrow new Exception($e->getMessage(), 1); \n\t }\n\t}", "title": "" }, { "docid": "281189d1b946b207526de544072b8328", "score": "0.53866965", "text": "public function search($id)\n {\n $tag = Tag::find($id);\n if (is_null($tag)) {\n return redirect()->route('tags.index');\n }\n if (Auth::user()->id != $tag->author_id) {\n return redirect()->route('tags.index');\n }\n return view('tags.search', [\n 'tag' => $tag,\n 'projects' => $tag->projects,\n 'quests' => $tag->quests\n ]);\n }", "title": "" }, { "docid": "c2a977dcb8c0879492676da227144ade", "score": "0.5385312", "text": "private function searchClienteById($id) {\n\t\tif (($cliente = EntClientes::find ()->where ( [ \n\t\t\t\t'id_cliente' => $id \n\t\t] )->one ()) !== null) {\n\t\t\treturn $cliente;\n\t\t} else {\n\t\t\tthrow new NotFoundHttpException ( 'The requested page does not exist.' );\n\t\t}\n\t}", "title": "" }, { "docid": "9ca7824b77b49a9696ac144f2a5319b7", "score": "0.538177", "text": "public function findById($id) {\n //$where .= \" \".$this->_tableAddress->getAdapter()->quoteInto('AND iddire = ?', $id);\n $where = $this->_tableAddress->getAdapter()->quoteInto(' iddire = ?', $id);\n\n $result = $this->_tableAddress->fetchAll($where);\n \n if(!empty($result)) $result = $result[0];\n \n return $result;\n }", "title": "" }, { "docid": "8dd20bdf5d3ba3c73be4b231f9b7abd4", "score": "0.5378", "text": "function listadoById(){\n\t\t$rquery = $this->db->order_by(\"id\",\"ASC\");\n\t\t$rquery = $this->db->get(\"cat_secciones\"); \n\t\treturn $rquery;\n\t}", "title": "" }, { "docid": "212ed90c572fdb8119ff8bdd5dfab6a0", "score": "0.53778267", "text": "function buscarCita($id){\n $sql = \"SELECT * FROM VETCITAS WHERE id = $id\";\n $resultado = mysqli_query($GLOBALS['conexion'], $sql); \n \n $cita = mysqli_fetch_assoc($resultado);\n \n return $cita;\n }", "title": "" }, { "docid": "41acfcbf5b8a3094ce26c9174453ce2a", "score": "0.5373674", "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(strlen($this->id)>0) $criteria->compare('id',$this->id,true);\n\t\tif(strlen($this->nro_contrato)>0) $criteria->compare('nro_contrato',$this->nro_contrato,true);\n\t\tif(Utiles::isValidDate($this->fecha_ingreso, 'y-m-d')) $criteria->compare('fecha_ingreso',$this->fecha_ingreso);\n\t\t// if(strlen($this->fecha_ingreso)>0) $criteria->compare('fecha_ingreso',$this->fecha_ingreso,true);\n\t\tif(is_numeric($this->talento_humano_id)) $criteria->compare('talento_humano_id',$this->talento_humano_id);\n\t\tif(is_numeric($this->categoria_ingreso_id)) $criteria->compare('categoria_ingreso_id',$this->categoria_ingreso_id);\n\t\tif(is_numeric($this->tipo_cargo_nominal_id)) $criteria->compare('tipo_cargo_nominal_id',$this->tipo_cargo_nominal_id);\n\t\tif(is_numeric($this->cargo_nominal_id)) $criteria->compare('cargo_nominal_id',$this->cargo_nominal_id);\n\t\tif(is_numeric($this->estructura_organizativa_id)) $criteria->compare('estructura_organizativa_id',$this->estructura_organizativa_id);\n\t\tif(is_numeric($this->condicion_nominal_id)) $criteria->compare('condicion_nominal_id',$this->condicion_nominal_id);\n\t\tif(is_numeric($this->tipo_nomina_id)) $criteria->compare('tipo_nomina_id',$this->tipo_nomina_id);\n\t\tif(is_numeric($this->plantel_id)) $criteria->compare('plantel_id',$this->plantel_id);\n\t\tif(strlen($this->observaciones)>0) $criteria->compare('observaciones',$this->observaciones,true);\n\t\tif(is_numeric($this->usuario_ini_id)) $criteria->compare('usuario_ini_id',$this->usuario_ini_id);\n\t\tif(Utiles::isValidDate($this->fecha_ini, 'y-m-d')) $criteria->compare('fecha_ini',$this->fecha_ini);\n\t\t// if(strlen($this->fecha_ini)>0) $criteria->compare('fecha_ini',$this->fecha_ini,true);\n\t\tif(is_numeric($this->usuario_act_id)) $criteria->compare('usuario_act_id',$this->usuario_act_id);\n\t\tif(Utiles::isValidDate($this->fecha_act, 'y-m-d')) $criteria->compare('fecha_act',$this->fecha_act);\n\t\t// if(strlen($this->fecha_act)>0) $criteria->compare('fecha_act',$this->fecha_act,true);\n\t\tif(in_array($this->estatus, array('A', 'I', 'E'))) $criteria->compare('estatus',$this->estatus,true);\n\t\tif(strlen($this->posee_numero_contrato)>0) $criteria->compare('posee_numero_contrato',$this->posee_numero_contrato,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" } ]
c888aab6f0e21d9e7f0ece3a70dc7f39
Sets a new gROUPCODE
[ { "docid": "9facfd0db9e545c0650234b801340343", "score": "0.6876894", "text": "public function setGROUPCODE($gROUPCODE)\n {\n $this->gROUPCODE = $gROUPCODE;\n return $this;\n }", "title": "" } ]
[ { "docid": "18974aa53e9881d7febf43e914f608a3", "score": "0.5593841", "text": "function setcode($code = '') {\n\t\t$this->ccode = $code;\n\t}", "title": "" }, { "docid": "1f9d92dc237f8fad82376f548a1b9c5b", "score": "0.5414292", "text": "function setCode($code);", "title": "" }, { "docid": "47c66cfd477fde2c167b04ca0642df89", "score": "0.5361501", "text": "public function setCode($code);", "title": "" }, { "docid": "47c66cfd477fde2c167b04ca0642df89", "score": "0.5361501", "text": "public function setCode($code);", "title": "" }, { "docid": "ebc205ea39d309e066e77aa4efb9ccf9", "score": "0.5245535", "text": "private function _set_prel_code($code)\n\t{\n\t\tif(!$this->_banner_validate('saturn.stvprel', 'stvprel_code', $code))\n\t\t{\n\t\t\tthrow new ProspectsException(ProspectsException::INVALID_PREL_CODE);\n\t\t}\n\n\t\t$this->data['prel_code'] = $code;\n\t}", "title": "" }, { "docid": "0f1a8994db072e35519c0fc9586b1d1f", "score": "0.5212929", "text": "private function _set_term_code()\n\t{\n\t\t$term = $GLOBALS['BANNER']->GetOne(\"SELECT f_get_currentterm('GR') FROM dual\");\n\t\t\n\t\tif($GLOBALS['BANNER']->ErrorNo() > 0)\n\t\t{\n\t\t\tthrow new ProspectsException(ProspectsException::SQL_ERROR);\n\t\t}\n\n\t\t$this->data['term_code'] = $term;\n\t}", "title": "" }, { "docid": "6c32d44f981dbf797d59f1772123cff9", "score": "0.52024055", "text": "public function setCode($code) {\n $this->code = $code;\n }", "title": "" }, { "docid": "57b054e82db3a5b5f26188114b6bd3a3", "score": "0.5160677", "text": "public function setRPP($rpp)\n {\n $this->_variables['rpp'] = (int)$rpp;\n }", "title": "" }, { "docid": "f6672b94159936807b70a44d7fc711ec", "score": "0.51536876", "text": "public function setCode(string $code):void;", "title": "" }, { "docid": "25000b4fcb3a7a3133eac1f33e207cbd", "score": "0.51341474", "text": "public function setCode($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "d2fae985db3d6ff57d2e13d09761083b", "score": "0.5108922", "text": "public function setCode($code) {\n $this->code = $code;\n }", "title": "" }, { "docid": "62f09411141e1763c8123eb90cd2a1fc", "score": "0.50578785", "text": "public function setCode($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "62f09411141e1763c8123eb90cd2a1fc", "score": "0.50578785", "text": "public function setCode($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "2249a79bc024251ef27e770cee2464fe", "score": "0.5041269", "text": "public function setCode($code)\r\n\t{\r\n\t\t$this->_code = (string) $code;\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "30c29e8ebabc6a4d99cd4761f08aeeb2", "score": "0.5004623", "text": "public function robin() {\n\n $this->load->library('zend');\n $this->zend->load('Zend/Barcode');\n //$dirfolder = $this->makeDirFolder($folder);\n //print_r($folder);exit;\\\n $patient_code = 'asasasa';\n $master_id = 22;\n $file = Zend_Barcode::draw('code128', 'image', array('text' => $patient_code), array());\n $img_file = $master_id . \"-\" . $patient_code;\n $store_image = imagepng($file, \"barcode/pharmacy_sale/{$img_file}.png\");\n return $img_file . '.png';\n }", "title": "" }, { "docid": "81d7e0e9d2aaee824c8e548a1e200fa4", "score": "0.49865744", "text": "public function genererCode(){\n include('ConnectionBD.php');\n $this->CodePR = \"PR-\" . rand(100000, 999999); \n while($this->verifierCode($this->CodePR)==1){\n $this->codePR = \"PR-\" . rand(100000, 999999); \n }\n }", "title": "" }, { "docid": "b441bc1e23ca74527d32d98cb8d83185", "score": "0.49751115", "text": "public function setCode($code)\n {\n $this->_code = (int) $code;\n return $this;\n }", "title": "" }, { "docid": "4e757f92154e728505b14b4a9612f4d4", "score": "0.4971202", "text": "public function setCodeRegroupement($codeRegroupement) {\n $this->codeRegroupement = $codeRegroupement;\n return $this;\n }", "title": "" }, { "docid": "4e757f92154e728505b14b4a9612f4d4", "score": "0.4971202", "text": "public function setCodeRegroupement($codeRegroupement) {\n $this->codeRegroupement = $codeRegroupement;\n return $this;\n }", "title": "" }, { "docid": "469ca4a3f580dac88715fee69ae46483", "score": "0.4958685", "text": "function setVCode($vcode)\n\t{\n\t\t$this->global['vCode'] = $vcode ;\n\t\treturn $this ;\n\t}", "title": "" }, { "docid": "d2af95989331a83b2386dc6eb73bf7eb", "score": "0.49570698", "text": "public function generateQrCode($data){\n return QRGEN.$data;\n }", "title": "" }, { "docid": "09ea1c9d6eb375c412de9298e575bdad", "score": "0.49557048", "text": "private function setApplicationPromoCode($promoCode = NULL, $businessPromoCode = NULL, $gasOption = 0) {\n\t\tif($gasOption == 1)\n\t\t{\n\t\t\t$applicationPromoCode = \"989\";\n\t\t}\n\t\telseif($this->RequiredValues['p_partcode'] == \"CON\")\n\t\t{\n\t\t\t$applicationPromoCode = $this->RequiredValues['s_pc'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$applicationPromoCode = \"000\";\n\n\t\t\tif($promoCode != NULL)\n\t\t\t{\n\t\t\t\t$applicationPromoCode = $promoCode;\n\t\t\t}\n\n\t\t\tif($this->ApplicationAccountType == 1 || $this->ApplicationAccountType == 2)\n\t\t\t{\n\t\t\t\tif($this->ApplicationPartner->affinity == 1 && $businessPromoCode != NULL && strlen($businessPromoCode) > 2)\n\t\t\t\t{\n\t\t\t\t\t$applicationPromoCode = $businessPromoCode;\n\t\t\t\t}\n\n\t\t\t\tif($applicationPromoCode == $this->ApplicationPartner->promocode || $applicationPromoCode == \"000\")\n\t\t\t\t{\n\t\t\t\t\t$applicationPromoCode = $this->ApplicationPartner->promocode_bus;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif($applicationPromoCode == \"000\")\n\t\t\t{\n\t\t\t\t$applicationPromoCode = $this->ApplicationPartner->promocode;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->ApplicationPromoCode = $applicationPromoCode;\n\t}", "title": "" }, { "docid": "9900a897d95d5b9039b3876a2c0d3afa", "score": "0.49547195", "text": "public function setPriape($priape){\n\t\t$this->priape = $priape;\n\t}", "title": "" }, { "docid": "b3e039313f802e51dfb39143dde15704", "score": "0.49488053", "text": "public function setDefaultCode($code)\n {\n $this->defaultCode = strtoupper($code);\n }", "title": "" }, { "docid": "e3497f9523117d1c7d6a175dff95d399", "score": "0.4944678", "text": "public function setCode(string $code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "c3b49e2bb99d5ac64578ff27c6668f59", "score": "0.4939712", "text": "public function setCode(string $code): void\n {\n $this->_code = $code;\n }", "title": "" }, { "docid": "865b7bcb14a4044416762c10f43e077d", "score": "0.4901207", "text": "public function setCode(string $code): void\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "9625ab86958c5a2bfa19318707515e10", "score": "0.48927444", "text": "public function setCode($code)\n {\n return $this->setData(self::KEY_CODE, $code);\n }", "title": "" }, { "docid": "5719c4e9184c7bd8b3167ec3b5278b4e", "score": "0.48626566", "text": "public static function getCode()\n\t{\n\t\treturn 'APORT_RU';\n\t}", "title": "" }, { "docid": "fe73de830dddb864567eb2258764a0f1", "score": "0.48557478", "text": "public function setCode($code) {\n\n if(!isset($code) || $code == \"\"){\n $code = \"default\";\n }\n $this->fields[\"code\"] = $code;\n\nreturn $this;\n\n }", "title": "" }, { "docid": "fe73de830dddb864567eb2258764a0f1", "score": "0.48557478", "text": "public function setCode($code) {\n\n if(!isset($code) || $code == \"\"){\n $code = \"default\";\n }\n $this->fields[\"code\"] = $code;\n\nreturn $this;\n\n }", "title": "" }, { "docid": "da8edd8c4cffc94d37f7b1f920c13d78", "score": "0.48448145", "text": "public function setGiorno($giorno)\n {\n $this->giorno = (string)$giorno;\n }", "title": "" }, { "docid": "c3e564210ca8bbf55e0c5272cf520333", "score": "0.4840374", "text": "function setCode($value) {\n return $this->setFieldValue('code', $value);\n }", "title": "" }, { "docid": "91b979c061f85163541783053b148c4d", "score": "0.48393026", "text": "public function setCode(?string $code): void\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "da72fd36e996adc4ed621a0d223ae286", "score": "0.48066217", "text": "public function setDefaultCode(string $code): void;", "title": "" }, { "docid": "7336aa5ad5189ed23355351bd9fcc6c4", "score": "0.48001644", "text": "public function setCode(string $code) : self\n {\n $this->initialized['code'] = true;\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "86d9e3e829da928706cad4724ac909e6", "score": "0.47925502", "text": "public function setCode($value) \n {\n $this->code = $value;\n return $this;\n }", "title": "" }, { "docid": "4e638cd6d63f09c20c6397f365e6eea9", "score": "0.4783649", "text": "function set_nieuwsgroep_id($val){\n\t\t$this->nieuwsgroep_id = $val;\n\t}", "title": "" }, { "docid": "29f6791c83ac00eb5463879a1f27607a", "score": "0.4778847", "text": "public function setRool($rool)\n {\n $this->rool = $rool;\n\n return $this;\n }", "title": "" }, { "docid": "54bdc51e980dbac77d10ceefd0ed5167", "score": "0.47718763", "text": "public function setCode($code) {\n$this->fields[\"code\"] = $code;\n\nreturn $this;\n\n }", "title": "" }, { "docid": "c731c6285608ca3e0e11d86edaafeda6", "score": "0.476923", "text": "public function set_itemcode($code)\n {\n $this->item_code = $code;\n }", "title": "" }, { "docid": "49c70d00e3c095ed12a6abcae90a0f70", "score": "0.4759779", "text": "public function generateRadioSelect (\n\t\t$theCode,\n\t\t$row\n\t) {\n\t}", "title": "" }, { "docid": "653c539fc94480f6090d4b8f1d03dd4f", "score": "0.47518206", "text": "function setRealtorCode($a_sRealtorCode)\n {\n $this->_sRealtorCode = (string) $a_sRealtorCode;\n $this->setSearchParameter('realtor_code', $this->_sRealtorCode);\n }", "title": "" }, { "docid": "398c5ef920d231bd6173fa41b8d40f55", "score": "0.4742121", "text": "public function setVerificationCode()\n {\n $this->load->helper('string');\n\n $code = random_string('sha1');\n $controller = new Controller();\n\n while ($controller->isExistingVerificationCode($code)) {\n $code = random_string('sha1');\n }\n\n $this->verificationCode = $code;\n }", "title": "" }, { "docid": "31e08269daf25dc4d31a12f3bd3b3a97", "score": "0.4738982", "text": "public function set($code, $value);", "title": "" }, { "docid": "4b12ec22f72acdb7b40044817b662e0a", "score": "0.47323292", "text": "public function loadCode($code){\n $this->code = $code;\n }", "title": "" }, { "docid": "61d778cd529e276f281e6bd54db8ef84", "score": "0.47219515", "text": "function setCodeStat($encode){\n\t\t$this->encodestat=$encode;\n\t}", "title": "" }, { "docid": "7efdc8d826cd358c5e17d2db7d6639dd", "score": "0.47035143", "text": "public function &setCode($code) {\n\t\t$this->notifyChanged(self::FIELD_CODE,$this->code,$code);\n\t\t$this->code=$code;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "8030de93797b7c96839bd6490cbea0a7", "score": "0.47001606", "text": "public function initializeCodeGroup(): void\n {\n $this->codeGroup = uniqid(null, false);\n }", "title": "" }, { "docid": "0f86a25cafff512eb802d6745e09a2aa", "score": "0.469139", "text": "public function generate_reset_code()\r\n\t{\r\n\t\t$unique = false;\r\n\t\twhile (! $unique)\r\n\t\t{\r\n\t\t\t$rand = md5(uniqid(rand(), true));\r\n\t\t\t$total = static::query()->where('reset_code', $rand)->count();\r\n\t\t\t$unique = $total == 0;\r\n\t\t}\r\n\r\n\t\t$this->reset_code = $rand;\r\n\t\t$this->reset_created_at = time();\r\n\t\t$this->save();\r\n\t}", "title": "" }, { "docid": "df22cdc5f9acdf92bce487cae2948b0d", "score": "0.46720356", "text": "public function qrCode($qr_code) {\n $this->data['qr_code'] = $qr_code;\n\n return $this;\n }", "title": "" }, { "docid": "069656d00a42a59f57702c10a34df060", "score": "0.46682772", "text": "public function setCode($value) {\n return $this->set(self::CODE, $value);\n }", "title": "" }, { "docid": "069656d00a42a59f57702c10a34df060", "score": "0.46682772", "text": "public function setCode($value) {\n return $this->set(self::CODE, $value);\n }", "title": "" }, { "docid": "bea484f784ec5010c7ecc1b2a1b60481", "score": "0.46676973", "text": "function setGid($value)\n\t{\n\t\tif (is_numeric($value))\n\t\t\t$this->_gid = $value;\n\t}", "title": "" }, { "docid": "3947a621b7c5e715d3bdfe5363e4a102", "score": "0.4666556", "text": "public function getCodeRegroupement() {\n return $this->codeRegroupement;\n }", "title": "" }, { "docid": "3947a621b7c5e715d3bdfe5363e4a102", "score": "0.4666556", "text": "public function getCodeRegroupement() {\n return $this->codeRegroupement;\n }", "title": "" }, { "docid": "4033f30b6fbbbdd11959025dbf464aab", "score": "0.46548477", "text": "public function setCode($code, $num)\n {\n switch($num)\n {\n case \"1\":\n $this->code1 = $code;\n break;\n case \"2\":\n $this->code2 = $code;\n break;\n case \"3\":\n $this->code3 = $code;\n break;\n default:\n return false;\n break;\n }\n }", "title": "" }, { "docid": "87f630f0066de369fe5130221c9decef", "score": "0.46479437", "text": "public function setCode($code) {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "36df07ac44f8ea721af26b3fd64d4541", "score": "0.4647676", "text": "public function setCode($code) {\r\n $this->code = $code;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "4f9f246e95b4274db008041bb2105889", "score": "0.46467042", "text": "public function setPccode($value) {\n return $this->set(self::PCCODE, $value);\n }", "title": "" }, { "docid": "27b024aa9bf50ffb1c36227712885309", "score": "0.46442014", "text": "public function setCode($code)\n\t{\n\t\t$this->code = $code;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "d6829b2b7579422561442a3005af5f7d", "score": "0.46393296", "text": "public function setProductCode($val)\n {\n $this->_propDict[\"productCode\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "a368c6e102e439151a095bfd3e211349", "score": "0.46291226", "text": "public function setBarcodeAttribute($value)\n {\n if (is_null($value)) {\n $this->attributes['barcode'] = null;\n } else {\n $this->attributes['barcode'] = strtolower($value);\n }\n }", "title": "" }, { "docid": "d6886615eb865c76a8bf6fe15f381ced", "score": "0.4628297", "text": "public function set_perfil_codigo(string $perfil_codigo) : void {\n // El codigo es tratado como id.\n $this->perfil_codigo = $perfil_codigo;\n }", "title": "" }, { "docid": "f41c31380b5a7771be61e5566f41432c", "score": "0.46202707", "text": "public function setPrimaryValue($value) {\r\n $this->{'_' . $this->_primario} = $value;\r\n }", "title": "" }, { "docid": "96fa1900a8796a6b78c7e89df6ac8eae", "score": "0.46105203", "text": "function setCodeType($codeType) {\n\t\t\t$this->codeType = $codeType;\n\t\t}", "title": "" }, { "docid": "235dc8986536d5ac9a5126625f60f083", "score": "0.460412", "text": "public function setCode( $aCode )\n\t{\n\t\tif ( !empty($aCode) )\n\t\t{ $this->code = $aCode; }\n\t\telse\n\t\t{ $this->code = 0; }\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "c71e073af7790e0124fc6611a8b00d3c", "score": "0.4603387", "text": "function rcode($code, $msg){\n\tglobal $msgFlag;\n\t\n\t$output[\"rcode\"][\"code\"] = $code;\n\tif($msgFlag){\n\t\t$output[\"rcode\"][\"msg\"] = $msg;\n\t}\n\t\n\treturn $output;\n}", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.4595374", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.4595374", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.4595374", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.4595374", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "532fa3833a9275c5cad18f124c2355fa", "score": "0.4591485", "text": "public function setSignupCode($var)\n {\n GPBUtil::checkString($var, True);\n $this->signup_code = $var;\n\n return $this;\n }", "title": "" }, { "docid": "e051a93dd04ce868626bbcfe6ba335cf", "score": "0.4584076", "text": "public function setCode(string $code)\n {\n $res = new ConvertCode();\n $this->_number = $res->convertCodeToNumber($code);\n return $this;\n }", "title": "" }, { "docid": "245568df4965ac42a32694569d0d5c05", "score": "0.45548302", "text": "public function __construct()\n {\n $this->code = substr(md5(uniqid(rand(), true)), 0, 6);\n }", "title": "" }, { "docid": "73208d621fd7c42466271af166c547e4", "score": "0.4550389", "text": "public function __construct($code, $type) {\n\t\t$this->setBarcode($code, $type);\n\t}", "title": "" }, { "docid": "9cfe9e03291b276330e8e45871204ced", "score": "0.4545361", "text": "function setOtpCode($otpCode) {\n\t\t\t$this->otpCode = $otpCode;\n\t\t}", "title": "" }, { "docid": "63bc3c6703ef26fc8009833b4c6c9973", "score": "0.45395258", "text": "public function setCodeType($codeType = \"ORDER_QR\")\n {\n $this->codeType = $codeType;\n\n return $this;\n }", "title": "" }, { "docid": "8781c1b1463f7308ca6d245c2d9be68a", "score": "0.45284677", "text": "public function setResultCode($code) {\n\t\t$this->resultCode = $code;\n\t}", "title": "" }, { "docid": "d7fc559fe187b729a8f221186b2c6e43", "score": "0.45163915", "text": "public function setAppCode($code)\n {\n $this->appCode = $code;\n return $this;\n }", "title": "" }, { "docid": "5a2d19ff501d72af5f3d035d57fe895e", "score": "0.45147258", "text": "public function setCode(?string $code): self\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "f03c305e11e54889be7efe5a757f36a0", "score": "0.45041224", "text": "public function setCurrentMBC5ROMBank()\n {\n $this->currentROMBank = ($this->ROMBank1offs - 1) * 0x4000;\n while ($this->currentROMBank + 0x4000 >= count($this->ROM)) {\n $this->currentROMBank -= count($this->ROM);\n }\n }", "title": "" }, { "docid": "6319a3accac4c04c8de4d1904dfb0d19", "score": "0.44951633", "text": "public function setCodeName($pValue) {\n\t\t// Is this a 'rename' or not?\n\t\tif ($this->getCodeName() === $pValue) {\n\t\t\treturn;\n\t\t}\n\t\t$pValue = (string) str_replace(' ', '_', $pValue); //Excel does this automatically without flinching, we are doing the same\n\t\t// Syntax check\n\t\t// throw an exception if not valid\n\t\tself::checkSheetCodeName($pValue);\n\n\t\t// We use the same code that setTitle to find a valid codeName else not using a space (Excel don't like) but a '_'\n\n\t\t// Is there already such sheet name?\n\t\tif ($this->workbook->sheetCodeNameExists($pValue)) {\n\t\t\t// Use name, but append with lowest possible integer\n\n\t\t\tif (SharedString::CountCharacters($pValue) > 29) {\n\t\t\t\t$pValue = SharedString::Substring($pValue, 0, 29);\n\t\t\t}\n\t\t\t$i = 1;\n\t\t\twhile ($this->workbook->sheetCodeNameExists($pValue . '_' . $i)) {\n\t\t\t\t++$i;\n\t\t\t\tif ($i == 10) {\n\t\t\t\t\tif (SharedString::CountCharacters($pValue) > 28) {\n\t\t\t\t\t\t$pValue = SharedString::Substring($pValue, 0, 28);\n\t\t\t\t\t}\n\t\t\t\t} elseif ($i == 100) {\n\t\t\t\t\tif (SharedString::CountCharacters($pValue) > 27) {\n\t\t\t\t\t\t$pValue = SharedString::Substring($pValue, 0, 27);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$pValue = $pValue . '_' . $i; // ok, we have a valid name\n\t\t\t//codeName is'nt used in formula : no need to call for an update\n\t\t\t//return $this->setTitle($altTitle, $updateFormulaCellReferences);\n\t\t}\n\n\t\t$this->codeName = $pValue;\n\t}", "title": "" }, { "docid": "8da960bad95d65d5aaaf7b51e6b99026", "score": "0.44872797", "text": "public function setcode($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->code !== $v) {\n $this->code = $v;\n $this->modifiedColumns[] = ActionPropertyTypePeer::CODE;\n }\n\n\n return $this;\n }", "title": "" }, { "docid": "ba71f685a8944d64f8e7479a1369a09b", "score": "0.44856283", "text": "public function setUcode($ucode)\n {\n $this->ucode = $ucode;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.4482693", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.4482693", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.4482693", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.4482693", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.4482693", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.4482693", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.4482693", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "4ab6c0bedb6203905b81971ba7056609", "score": "0.4481694", "text": "public static function code(Int $code)\n {\n static::$code = $code;\n }", "title": "" }, { "docid": "86df9080486be73100e3282a233257f5", "score": "0.44663984", "text": "public function getCodeRepartition() {\n return $this->codeRepartition;\n }", "title": "" }, { "docid": "4fb769c5a2008f75de63a2bf962d693f", "score": "0.4457752", "text": "public function generateCode()\n {\n $code = '' . rand(0, 9999);\n $this->code = str_pad($code, 4, '0', STR_PAD_LEFT);\n\n return $this;\n }", "title": "" }, { "docid": "5ca9d9ffb7b2242c306dc32121a55caa", "score": "0.4455074", "text": "protected final function setCode(int $status_code)\n {\n $this->status_code = $status_code;\n }", "title": "" }, { "docid": "04d0cb7d05e902223f9adf65f126c667", "score": "0.4448854", "text": "public function __construct($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "04d0cb7d05e902223f9adf65f126c667", "score": "0.4448854", "text": "public function __construct($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "75ae6d74a4830a5733dc179e03462927", "score": "0.4445305", "text": "protected function setHash(string $code)\n {\n $this->hash = md5($code);\n // use parenthesis as this is how it will show up in json\n self::$_placeholders['\"'.$this->hash.'\"'] = $code;\n }", "title": "" }, { "docid": "26e161824f882b7b651cb6277c5efdc0", "score": "0.44405842", "text": "public function setCodeRegroupement(?string $codeRegroupement): SousLignesAnalytiques {\n $this->codeRegroupement = $codeRegroupement;\n return $this;\n }", "title": "" } ]
db709c604dd2660685281576f8925165
Map icons panel in Location form
[ { "docid": "39fd94e4208438491ac78ab939097d92", "score": "0.7479961", "text": "function gmw_ps_location_form_map_icons_panel( $form ) {\n\n\t$addon_data = gmw_get_addon_data( $form->slug );\n\t$prefix = $addon_data['prefix'];\n\n\t// get saved icon\n\t$saved_icon = ! empty( $form->saved_location->map_icon ) ? $form->saved_location->map_icon : '_default.png';\n\t?>\n\t<div id=\"map_icons-tab-panel\" class=\"section-wrapper map-icons\">\n\n\t\t<?php do_action( 'gmw_lf_' . $prefix . '_map_icons_section_start', $form ); ?>\n\n\t\t<div class=\"icons-wrapper\">\n\t\t\t<?php\n\t\t\t$icons_data = gmw_get_icons();\n\n\t\t\tif ( ! empty( $icons_data[ $prefix . '_map_icons' ] ) ) {\n\n\t\t\t\t$map_icons = $icons_data[ $prefix . '_map_icons' ]['all_icons'];\n\t\t\t\t$icons_url = $icons_data[ $prefix . '_map_icons' ]['url'];\n\t\t\t\t$cic = 1;\n\n\t\t\t\tforeach ( $map_icons as $map_icon ) {\n\n\t\t\t\t\t$checked = ( ( $saved_icon == $map_icon ) || 1 === $cic ) ? 'checked=\"checked\"' : '';\n\n\t\t\t\t\techo '<label>';\n\t\t\t\t\techo '<input type=\"radio\" name=\"gmw_location_form[map_icon]\" value=\"' . esc_attr( $map_icon ) . '\" ' . $checked . ' />';\n\t\t\t\t\techo '<img src=\"' . esc_url( $icons_url . $map_icon ) . '\" />';\n\t\t\t\t\techo '</label>';\n\n\t\t\t\t\t$cic++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t?>\n\t\t</div>\n\t\t<?php do_action( 'gmw_lf_' . $prefix . '_map_icons_section_end', $form ); ?>\n\t</div>\n\t<?php\n}", "title": "" } ]
[ { "docid": "561d1f47612c5159be37fd0fc00ac0ab", "score": "0.6972551", "text": "function gmw_ps_location_form_map_icons_tab( $tabs ) {\n\n\t$tabs['map_icons'] = array(\n\t\t'label' => __( 'Map Marker ', 'gmw-premium-settings' ),\n\t\t'icon' => 'gmw-icon-map-pin',\n\t\t'priority' => 30,\n\t);\n\n\treturn $tabs;\n}", "title": "" }, { "docid": "d012fb2ec2ec5cf59b907b0392b0c9fc", "score": "0.65028185", "text": "function js_icons() {\n\t\t/* If we're in the backend, get an absolute path. Frontend can use a relative path. */\n\t\tif (TYPO3_MODE=='BE')\t{\n\t\t\t$path = t3lib_div::getIndpEnv('TYPO3_SITE_URL').t3lib_extMgm::siteRelPath('wec_map');\n\t\t} else {\n\t\t\t$path = t3lib_extMgm::siteRelPath('wec_map');\n\t\t}\n\n\t\t// add default icon set\n\t\t$this->icons[] = '\nWecMap.addIcon(\"' . $this->mapName .'\", \"default\", \"'.$path.'images/mm_20_red.png\", \"'.$path.'images/mm_20_shadow.png\", new GSize(12, 20), new GSize(22, 20), new GPoint(6, 20), new GPoint(5, 1));\n\t\t\t';\n\t\treturn implode(\"\\n\", $this->icons);\n\t}", "title": "" }, { "docid": "ec4179609ece7659091707794d9c3a98", "score": "0.64583737", "text": "function rec_epl_address_bar_map_icon_callback() { ?>\n\t<span class=\"epl-map-button-wrapper map-view\">\n\t\t<?php if ( is_single() ) { ?>\n\t\t\t<a class=\"epl-button epl-map-button\" href=\"#epl-advanced-map-single\">Map</a>\n\t\t<?php } else { ?>\n\t\t\t<a class=\"epl-button epl-map-button\" href=\"<?php the_permalink() ?>#epl-advanced-map-single\">Map</a>\n\t\t<?php } ?>\n\t</span>\n<?php\n}", "title": "" }, { "docid": "e0a9a4531a8a3df8641f71d36b10b78d", "score": "0.64006513", "text": "private function augment_settings_map_markers() {\n\n\t\t$related_to = 'map_end_icon,default_icons';\n\t\t$new_options[ 'default_icons' ] = array( 'related_to' => $related_to , 'type' => 'checkbox' );\n\n\t\t$this->attach_to_slp( $new_options , array( 'page'=> 'slp_experience','section' => 'map', 'group' => 'markers' ) );\n\t}", "title": "" }, { "docid": "6f3ef5a039dd92ffa88f37ea66d1eab6", "score": "0.61219215", "text": "protected function collectTcaSpriteIcons() {}", "title": "" }, { "docid": "f049e64589e9adcd854277b13c65ae14", "score": "0.6058578", "text": "function gmw_ps_modify_group_map_icon( $args, $group, $gmw ) {\n\n $map_icon = '_default.png';\n\n //set default map icon usage if not exist\n if ( ! isset( $gmw['map_markers']['usage'] ) ) {\n $usage = $gmw['map_markers']['usage'] = 'global';\n } else {\n $usage = $gmw['map_markers']['usage'];\n }\n\n $global_icon = isset( $gmw['map_markers']['default_marker'] ) ? $gmw['map_markers']['default_marker'] : '_default.png';\n \n //if same global map icon\n if ( $usage == 'global' ) {\n $map_icon = $gmw['map_markers']['default_marker'];\n //per group map icon \n } elseif ( $usage == 'per_group' && isset( $group->map_icon ) ) {\n $map_icon = $group->map_icon;\n //avatar map icon\n } elseif ( $usage == 'avatar' ) {\n $avatar = bp_core_fetch_avatar( array( \n 'item_id' => $group->id,\n 'object' => 'group', \n 'type' => 'thumb', \n 'width' => 30, \n 'height' => 30, \n 'html' => false \n ) );\n\n $map_icon = array(\n 'url' => ( $avatar ) ? $avatar : GMW_PS_URL . '/friends/assets/ map-icons/_no_avatar.png',\n 'scaledSize' => array(\n 'height' => 30,\n 'width' => 30\n )\n );\n\n //oterwise, default map icon \n } else {\n $map_icon = '_default.png';\n }\n \n //generate the map icon\n if ( $usage != 'avatar' ) {\n\n if ( $map_icon == '_default.png' ) {\n $map_icon = 'https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld='. $group->location_count.'|FF776B|000000';\n } else {\n $icons = gmw_get_icons();\n $map_icon = $icons['gl_map_icons']['url'].$map_icon;\n }\n }\n\n $args['map_icon'] = $map_icon;\n\n return $args;\n}", "title": "" }, { "docid": "b8ff67454f16a242cbed853e2c5260a3", "score": "0.6048276", "text": "function mod_xfgon_get_fontawesome_icon_map() {\n return [\n 'mod_xfgon:e/copy' => 'fa-clone',\n ];\n}", "title": "" }, { "docid": "7de66d78a08ebd7a2e2163c6c573bea4", "score": "0.5987711", "text": "protected function establish_icon() {\n\t\t$this->icon = \"<i class='sw swp_{$this->key}_icon'></i>\";\n\t}", "title": "" }, { "docid": "36dbf4f28c3e2214d2a78b4f30098936", "score": "0.5928744", "text": "function addIcon($i){\n return $this->add('Icon',null,'Icon')->set($i)->addClass('atk-size-mega');\n }", "title": "" }, { "docid": "f526e95ab47a1fb2cba51ee3345a007b", "score": "0.59223527", "text": "function droit_add_new_icon_set_to_iconbox( ) {\n\t$param = WPBMap::getParam( 'vc_icon', 'type' );\n\t$param['value'][__( 'Droit Icon', 'total' )] = 'droit_icon';\n\tvc_update_shortcode_param( 'vc_icon', $param );\n}", "title": "" }, { "docid": "80b907b38a8fe75b06ab2097c128e093", "score": "0.5918929", "text": "protected function registerTCAIcons() {}", "title": "" }, { "docid": "75a12bb7dfc347db874edec84fcfe228", "score": "0.5907242", "text": "public function populateMapIconDirectory() {\n\t\t$iconPath = 'fileadmin/ext/mymap/Resources/Public/Icons/';\n \t\tif (!is_dir(Environment::getPublicPath() . '/' . $iconPath)) {\n $fileSystem = new FileSystem();\n if (Environment::getPublicPath() != Environment::getProjectPath()) {\n // we are in composerMode\n \t\t\t$sourceDir = Environment::getProjectPath() . '/vendor/wsr/mymap/Resources/Public/';\n } else {\n $sourceDir = Environment::getPublicPath() .'/typo3conf/ext/mymap/Resources/Public/';\n }\n $fileSystem->mirror($sourceDir, 'fileadmin/ext/mymap/Resources/Public/');\n\t\t\t$this->addFlashMessage('Directory ' . $iconPath . ' created for use with own mapIcons!', '', \\TYPO3\\CMS\\Core\\Messaging\\AbstractMessage::INFO);\n }\n\t}", "title": "" }, { "docid": "efc7d644967159f0a9b9e6df0ebcee24", "score": "0.5875893", "text": "public function vc_map_shortcode() {\n\t\t\tvc_map( array(\n\t\t\t\t'name' => _x( 'Social Icons', 'backend', 'vc-elements-pt' ),\n\t\t\t\t'base' => $this->shortcode_name(),\n\t\t\t\t'category' => _x( 'Content', 'backend', 'vc-elements-pt' ),\n\t\t\t\t'icon' => get_template_directory_uri() . '/vendor/proteusthemes/visual-composer-elements/assets/images/pt.svg',\n\t\t\t\t'as_parent' => array( 'only' => 'pt_vc_social_icon' ),\n\t\t\t\t'content_element' => true,\n\t\t\t\t'js_view' => 'VcColumnView',\n\t\t\t\t'params' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t'heading' => _x( 'Open link in new tab', 'backend', 'vc-elements-pt' ),\n\t\t\t\t\t\t'param_name' => 'new_tab',\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t) );\n\t\t}", "title": "" }, { "docid": "bbbef8981d101c5a04d7394bf7d396e7", "score": "0.5766384", "text": "public function get_icon()\n {\n return 'fa fa-globe';\n }", "title": "" }, { "docid": "5328d5a7ddea8065f923e4c0c5cf8c0c", "score": "0.5757315", "text": "protected function get__icon()\n\t{\n\t\treturn 'camera';\n\t}", "title": "" }, { "docid": "0e5191ff4ea060d17b8f95ee888145a9", "score": "0.5739973", "text": "public function getIcon();", "title": "" }, { "docid": "06d7214e013aeb2b1b6fa411429eb953", "score": "0.5723967", "text": "protected function buildCssAndRegisterIcons() {}", "title": "" }, { "docid": "4f3282b1c068a74612e88c3f76ee013f", "score": "0.5703579", "text": "function cr_location_map_meta_box() {\n\n\t$screens = array( 'location' );\n\n\tforeach ( $screens as $screen ) {\n\n\t\tadd_meta_box( 'myplugin_sectionid', __( 'Карта', 'myplugin_textdomain' ), 'cr_location_map_meta_box_callback', $screen,'normal' ,'high');\n\t}\n}", "title": "" }, { "docid": "e3173090627fcbedf947aeeab8a3bbde", "score": "0.56878567", "text": "function vc_iconpicker_type_iconsmind( $icons ) {\n\t$iconsmind_icons = array(\n\t\tarray(\"iconsmind-Aquarius\" => \"iconsmind-Aquarius\"), \n\t\tarray(\"iconsmind-Aquarius-2\" => \"iconsmind-Aquarius-2\"), \n\t\tarray(\"iconsmind-Aries\" => \"iconsmind-Aries\"), \n\t\tarray(\"iconsmind-Aries-2\" => \"iconsmind-Aries-2\"), \n\t\tarray(\"iconsmind-Cancer\" => \"iconsmind-Cancer\"), \n\t\tarray(\"iconsmind-Cancer-2\" => \"iconsmind-Cancer-2\"), \n\t\tarray(\"iconsmind-Capricorn\" => \"iconsmind-Capricorn\"), \n\t\tarray(\"iconsmind-Capricorn-2\" => \"iconsmind-Capricorn-2\"), \n\t\tarray(\"iconsmind-Gemini\" => \"iconsmind-Gemini\"), \n\t\tarray(\"iconsmind-Gemini-2\" => \"iconsmind-Gemini-2\"), \n\t\tarray(\"iconsmind-Leo\" => \"iconsmind-Leo\"), \n\t\tarray(\"iconsmind-Leo-2\" => \"iconsmind-Leo-2\"), \n\t\tarray(\"iconsmind-Libra\" => \"iconsmind-Libra\"), \n\t\tarray(\"iconsmind-Libra-2\" => \"iconsmind-Libra-2\"), \n\t\tarray(\"iconsmind-Pisces\" => \"iconsmind-Pisces\"), \n\t\tarray(\"iconsmind-Pisces-2\" => \"iconsmind-Pisces-2\"), \n\t\tarray(\"iconsmind-Sagittarus\" => \"iconsmind-Sagittarus\"), \n\t\tarray(\"iconsmind-Sagittarus-2\" => \"iconsmind-Sagittarus-2\"), \n\t\tarray(\"iconsmind-Scorpio\" => \"iconsmind-Scorpio\"), \n\t\tarray(\"iconsmind-Scorpio-2\" => \"iconsmind-Scorpio-2\"), \n\t\tarray(\"iconsmind-Taurus\" => \"iconsmind-Taurus\"), \n\t\tarray(\"iconsmind-Taurus-2\" => \"iconsmind-Taurus-2\"), \n\t\tarray(\"iconsmind-Virgo\" => \"iconsmind-Virgo\"), \n\t\tarray(\"iconsmind-Virgo-2\" => \"iconsmind-Virgo-2\"), \n\t\tarray(\"iconsmind-Add-Window\" => \"iconsmind-Add-Window\"), \n\t\tarray(\"iconsmind-Approved-Window\" => \"iconsmind-Approved-Window\"), \n\t\tarray(\"iconsmind-Block-Window\" => \"iconsmind-Block-Window\"), \n\t\tarray(\"iconsmind-Close-Window\" => \"iconsmind-Close-Window\"), \n\t\tarray(\"iconsmind-Code-Window\" => \"iconsmind-Code-Window\"), \n\t\tarray(\"iconsmind-Delete-Window\" => \"iconsmind-Delete-Window\"), \n\t\tarray(\"iconsmind-Download-Window\" => \"iconsmind-Download-Window\"), \n\t\tarray(\"iconsmind-Duplicate-Window\" => \"iconsmind-Duplicate-Window\"), \n\t\tarray(\"iconsmind-Error-404Window\" => \"iconsmind-Error-404Window\"), \n\t\tarray(\"iconsmind-Favorite-Window\" => \"iconsmind-Favorite-Window\"), \n\t\tarray(\"iconsmind-Font-Window\" => \"iconsmind-Font-Window\"), \n\t\tarray(\"iconsmind-Full-ViewWindow\" => \"iconsmind-Full-ViewWindow\"), \n\t\tarray(\"iconsmind-Height-Window\" => \"iconsmind-Height-Window\"), \n\t\tarray(\"iconsmind-Home-Window\" => \"iconsmind-Home-Window\"), \n\t\tarray(\"iconsmind-Info-Window\" => \"iconsmind-Info-Window\"), \n\t\tarray(\"iconsmind-Loading-Window\" => \"iconsmind-Loading-Window\"), \n\t\tarray(\"iconsmind-Lock-Window\" => \"iconsmind-Lock-Window\"), \n\t\tarray(\"iconsmind-Love-Window\" => \"iconsmind-Love-Window\"), \n\t\tarray(\"iconsmind-Maximize-Window\" => \"iconsmind-Maximize-Window\"), \n\t\tarray(\"iconsmind-Minimize-Maximize-Close-Window\" => \"iconsmind-Minimize-Maximize-Close-Window\"), \n\t\tarray(\"iconsmind-Minimize-Window\" => \"iconsmind-Minimize-Window\"), \n\t\tarray(\"iconsmind-Navigation-LeftWindow\" => \"iconsmind-Navigation-LeftWindow\"), \n\t\tarray(\"iconsmind-Navigation-RightWindow\" => \"iconsmind-Navigation-RightWindow\"), \n\t\tarray(\"iconsmind-Network-Window\" => \"iconsmind-Network-Window\"), \n\t\tarray(\"iconsmind-New-Tab\" => \"iconsmind-New-Tab\"), \n\t\tarray(\"iconsmind-One-Window\" => \"iconsmind-One-Window\"), \n\t\tarray(\"iconsmind-Refresh-Window\" => \"iconsmind-Refresh-Window\"), \n\t\tarray(\"iconsmind-Remove-Window\" => \"iconsmind-Remove-Window\"), \n\t\tarray(\"iconsmind-Restore-Window\" => \"iconsmind-Restore-Window\"), \n\t\tarray(\"iconsmind-Save-Window\" => \"iconsmind-Save-Window\"), \n\t\tarray(\"iconsmind-Settings-Window\" => \"iconsmind-Settings-Window\"), \n\t\tarray(\"iconsmind-Share-Window\" => \"iconsmind-Share-Window\"), \n\t\tarray(\"iconsmind-Sidebar-Window\" => \"iconsmind-Sidebar-Window\"), \n\t\tarray(\"iconsmind-Split-FourSquareWindow\" => \"iconsmind-Split-FourSquareWindow\"), \n\t\tarray(\"iconsmind-Split-Horizontal\" => \"iconsmind-Split-Horizontal\"), \n\t\tarray(\"iconsmind-Split-Horizontal2Window\" => \"iconsmind-Split-Horizontal2Window\"), \n\t\tarray(\"iconsmind-Split-Vertical\" => \"iconsmind-Split-Vertical\"), \n\t\tarray(\"iconsmind-Split-Vertical2\" => \"iconsmind-Split-Vertical2\"), \n\t\tarray(\"iconsmind-Split-Window\" => \"iconsmind-Split-Window\"), \n\t\tarray(\"iconsmind-Time-Window\" => \"iconsmind-Time-Window\"), \n\t\tarray(\"iconsmind-Touch-Window\" => \"iconsmind-Touch-Window\"), \n\t\tarray(\"iconsmind-Two-Windows\" => \"iconsmind-Two-Windows\"), \n\t\tarray(\"iconsmind-Upload-Window\" => \"iconsmind-Upload-Window\"), \n\t\tarray(\"iconsmind-URL-Window\" => \"iconsmind-URL-Window\"), \n\t\tarray(\"iconsmind-Warning-Window\" => \"iconsmind-Warning-Window\"), \n\t\tarray(\"iconsmind-Width-Window\" => \"iconsmind-Width-Window\"), \n\t\tarray(\"iconsmind-Window-2\" => \"iconsmind-Window-2\"), \n\t\tarray(\"iconsmind-Windows-2\" => \"iconsmind-Windows-2\"), \n\t\tarray(\"iconsmind-Autumn\" => \"iconsmind-Autumn\"), \n\t\tarray(\"iconsmind-Celsius\" => \"iconsmind-Celsius\"), \n\t\tarray(\"iconsmind-Cloud-Hail\" => \"iconsmind-Cloud-Hail\"), \n\t\tarray(\"iconsmind-Cloud-Moon\" => \"iconsmind-Cloud-Moon\"), \n\t\tarray(\"iconsmind-Cloud-Rain\" => \"iconsmind-Cloud-Rain\"), \n\t\tarray(\"iconsmind-Cloud-Snow\" => \"iconsmind-Cloud-Snow\"), \n\t\tarray(\"iconsmind-Cloud-Sun\" => \"iconsmind-Cloud-Sun\"), \n\t\tarray(\"iconsmind-Clouds-Weather\" => \"iconsmind-Clouds-Weather\"), \n\t\tarray(\"iconsmind-Cloud-Weather\" => \"iconsmind-Cloud-Weather\"), \n\t\tarray(\"iconsmind-Drop\" => \"iconsmind-Drop\"), \n\t\tarray(\"iconsmind-Dry\" => \"iconsmind-Dry\"), \n\t\tarray(\"iconsmind-Fahrenheit\" => \"iconsmind-Fahrenheit\"), \n\t\tarray(\"iconsmind-Fog-Day\" => \"iconsmind-Fog-Day\"), \n\t\tarray(\"iconsmind-Fog-Night\" => \"iconsmind-Fog-Night\"), \n\t\tarray(\"iconsmind-Full-Moon\" => \"iconsmind-Full-Moon\"), \n\t\tarray(\"iconsmind-Half-Moon\" => \"iconsmind-Half-Moon\"), \n\t\tarray(\"iconsmind-No-Drop\" => \"iconsmind-No-Drop\"), \n\t\tarray(\"iconsmind-Rainbow\" => \"iconsmind-Rainbow\"), \n\t\tarray(\"iconsmind-Rainbow-2\" => \"iconsmind-Rainbow-2\"), \n\t\tarray(\"iconsmind-Rain-Drop\" => \"iconsmind-Rain-Drop\"), \n\t\tarray(\"iconsmind-Sleet\" => \"iconsmind-Sleet\"), \n\t\tarray(\"iconsmind-Snow\" => \"iconsmind-Snow\"), \n\t\tarray(\"iconsmind-Snowflake\" => \"iconsmind-Snowflake\"), \n\t\tarray(\"iconsmind-Snowflake-2\" => \"iconsmind-Snowflake-2\"), \n\t\tarray(\"iconsmind-Snowflake-3\" => \"iconsmind-Snowflake-3\"), \n\t\tarray(\"iconsmind-Snow-Storm\" => \"iconsmind-Snow-Storm\"), \n\t\tarray(\"iconsmind-Spring\" => \"iconsmind-Spring\"), \n\t\tarray(\"iconsmind-Storm\" => \"iconsmind-Storm\"), \n\t\tarray(\"iconsmind-Summer\" => \"iconsmind-Summer\"), \n\t\tarray(\"iconsmind-Sun\" => \"iconsmind-Sun\"), \n\t\tarray(\"iconsmind-Sun-CloudyRain\" => \"iconsmind-Sun-CloudyRain\"), \n\t\tarray(\"iconsmind-Sunrise\" => \"iconsmind-Sunrise\"), \n\t\tarray(\"iconsmind-Sunset\" => \"iconsmind-Sunset\"), \n\t\tarray(\"iconsmind-Temperature\" => \"iconsmind-Temperature\"), \n\t\tarray(\"iconsmind-Temperature-2\" => \"iconsmind-Temperature-2\"), \n\t\tarray(\"iconsmind-Thunder\" => \"iconsmind-Thunder\"), \n\t\tarray(\"iconsmind-Thunderstorm\" => \"iconsmind-Thunderstorm\"), \n\t\tarray(\"iconsmind-Twister\" => \"iconsmind-Twister\"), \n\t\tarray(\"iconsmind-Umbrella-2\" => \"iconsmind-Umbrella-2\"), \n\t\tarray(\"iconsmind-Umbrella-3\" => \"iconsmind-Umbrella-3\"), \n\t\tarray(\"iconsmind-Wave\" => \"iconsmind-Wave\"), \n\t\tarray(\"iconsmind-Wave-2\" => \"iconsmind-Wave-2\"), \n\t\tarray(\"iconsmind-Windsock\" => \"iconsmind-Windsock\"), \n\t\tarray(\"iconsmind-Wind-Turbine\" => \"iconsmind-Wind-Turbine\"), \n\t\tarray(\"iconsmind-Windy\" => \"iconsmind-Windy\"), \n\t\tarray(\"iconsmind-Winter\" => \"iconsmind-Winter\"), \n\t\tarray(\"iconsmind-Winter-2\" => \"iconsmind-Winter-2\"), \n\t\tarray(\"iconsmind-Cinema\" => \"iconsmind-Cinema\"), \n\t\tarray(\"iconsmind-Clapperboard-Close\" => \"iconsmind-Clapperboard-Close\"), \n\t\tarray(\"iconsmind-Clapperboard-Open\" => \"iconsmind-Clapperboard-Open\"), \n\t\tarray(\"iconsmind-D-Eyeglasses\" => \"iconsmind-D-Eyeglasses\"), \n\t\tarray(\"iconsmind-D-Eyeglasses2\" => \"iconsmind-D-Eyeglasses2\"), \n\t\tarray(\"iconsmind-Director\" => \"iconsmind-Director\"), \n\t\tarray(\"iconsmind-Film\" => \"iconsmind-Film\"), \n\t\tarray(\"iconsmind-Film-Strip\" => \"iconsmind-Film-Strip\"), \n\t\tarray(\"iconsmind-Film-Video\" => \"iconsmind-Film-Video\"), \n\t\tarray(\"iconsmind-Flash-Video\" => \"iconsmind-Flash-Video\"), \n\t\tarray(\"iconsmind-HD-Video\" => \"iconsmind-HD-Video\"), \n\t\tarray(\"iconsmind-Movie\" => \"iconsmind-Movie\"), \n\t\tarray(\"iconsmind-Old-TV\" => \"iconsmind-Old-TV\"), \n\t\tarray(\"iconsmind-Reel\" => \"iconsmind-Reel\"), \n\t\tarray(\"iconsmind-Tripod-andVideo\" => \"iconsmind-Tripod-andVideo\"), \n\t\tarray(\"iconsmind-TV\" => \"iconsmind-TV\"), \n\t\tarray(\"iconsmind-Video\" => \"iconsmind-Video\"), \n\t\tarray(\"iconsmind-Video-2\" => \"iconsmind-Video-2\"), \n\t\tarray(\"iconsmind-Video-3\" => \"iconsmind-Video-3\"), \n\t\tarray(\"iconsmind-Video-4\" => \"iconsmind-Video-4\"), \n\t\tarray(\"iconsmind-Video-5\" => \"iconsmind-Video-5\"), \n\t\tarray(\"iconsmind-Video-6\" => \"iconsmind-Video-6\"), \n\t\tarray(\"iconsmind-Video-Len\" => \"iconsmind-Video-Len\"), \n\t\tarray(\"iconsmind-Video-Len2\" => \"iconsmind-Video-Len2\"), \n\t\tarray(\"iconsmind-Video-Photographer\" => \"iconsmind-Video-Photographer\"), \n\t\tarray(\"iconsmind-Video-Tripod\" => \"iconsmind-Video-Tripod\"), \n\t\tarray(\"iconsmind-Affiliate\" => \"iconsmind-Affiliate\"), \n\t\tarray(\"iconsmind-Background\" => \"iconsmind-Background\"), \n\t\tarray(\"iconsmind-Billing\" => \"iconsmind-Billing\"), \n\t\tarray(\"iconsmind-Control\" => \"iconsmind-Control\"), \n\t\tarray(\"iconsmind-Control-2\" => \"iconsmind-Control-2\"), \n\t\tarray(\"iconsmind-Crop-2\" => \"iconsmind-Crop-2\"), \n\t\tarray(\"iconsmind-Dashboard\" => \"iconsmind-Dashboard\"), \n\t\tarray(\"iconsmind-Duplicate-Layer\" => \"iconsmind-Duplicate-Layer\"), \n\t\tarray(\"iconsmind-Filter-2\" => \"iconsmind-Filter-2\"), \n\t\tarray(\"iconsmind-Gear\" => \"iconsmind-Gear\"), \n\t\tarray(\"iconsmind-Gear-2\" => \"iconsmind-Gear-2\"), \n\t\tarray(\"iconsmind-Gears\" => \"iconsmind-Gears\"), \n\t\tarray(\"iconsmind-Gears-2\" => \"iconsmind-Gears-2\"), \n\t\tarray(\"iconsmind-Information\" => \"iconsmind-Information\"), \n\t\tarray(\"iconsmind-Layer-Backward\" => \"iconsmind-Layer-Backward\"), \n\t\tarray(\"iconsmind-Layer-Forward\" => \"iconsmind-Layer-Forward\"), \n\t\tarray(\"iconsmind-Library\" => \"iconsmind-Library\"), \n\t\tarray(\"iconsmind-Loading\" => \"iconsmind-Loading\"), \n\t\tarray(\"iconsmind-Loading-2\" => \"iconsmind-Loading-2\"), \n\t\tarray(\"iconsmind-Loading-3\" => \"iconsmind-Loading-3\"), \n\t\tarray(\"iconsmind-Magnifi-Glass\" => \"iconsmind-Magnifi-Glass\"), \n\t\tarray(\"iconsmind-Magnifi-Glass2\" => \"iconsmind-Magnifi-Glass2\"), \n\t\tarray(\"iconsmind-Magnifi-Glass22\" => \"iconsmind-Magnifi-Glass22\"), \n\t\tarray(\"iconsmind-Mouse-Pointer\" => \"iconsmind-Mouse-Pointer\"), \n\t\tarray(\"iconsmind-On-off\" => \"iconsmind-On-off\"), \n\t\tarray(\"iconsmind-On-Off-2\" => \"iconsmind-On-Off-2\"), \n\t\tarray(\"iconsmind-On-Off-3\" => \"iconsmind-On-Off-3\"), \n\t\tarray(\"iconsmind-Preview\" => \"iconsmind-Preview\"), \n\t\tarray(\"iconsmind-Pricing\" => \"iconsmind-Pricing\"), \n\t\tarray(\"iconsmind-Profile\" => \"iconsmind-Profile\"), \n\t\tarray(\"iconsmind-Project\" => \"iconsmind-Project\"), \n\t\tarray(\"iconsmind-Rename\" => \"iconsmind-Rename\"), \n\t\tarray(\"iconsmind-Repair\" => \"iconsmind-Repair\"), \n\t\tarray(\"iconsmind-Save\" => \"iconsmind-Save\"), \n\t\tarray(\"iconsmind-Scroller\" => \"iconsmind-Scroller\"), \n\t\tarray(\"iconsmind-Scroller-2\" => \"iconsmind-Scroller-2\"), \n\t\tarray(\"iconsmind-Share\" => \"iconsmind-Share\"), \n\t\tarray(\"iconsmind-Statistic\" => \"iconsmind-Statistic\"), \n\t\tarray(\"iconsmind-Support\" => \"iconsmind-Support\"), \n\t\tarray(\"iconsmind-Switch\" => \"iconsmind-Switch\"), \n\t\tarray(\"iconsmind-Upgrade\" => \"iconsmind-Upgrade\"), \n\t\tarray(\"iconsmind-User\" => \"iconsmind-User\"), \n\t\tarray(\"iconsmind-Wrench\" => \"iconsmind-Wrench\"), \n\t\tarray(\"iconsmind-Air-Balloon\" => \"iconsmind-Air-Balloon\"), \n\t\tarray(\"iconsmind-Airship\" => \"iconsmind-Airship\"), \n\t\tarray(\"iconsmind-Bicycle\" => \"iconsmind-Bicycle\"), \n\t\tarray(\"iconsmind-Bicycle-2\" => \"iconsmind-Bicycle-2\"), \n\t\tarray(\"iconsmind-Bike-Helmet\" => \"iconsmind-Bike-Helmet\"), \n\t\tarray(\"iconsmind-Bus\" => \"iconsmind-Bus\"), \n\t\tarray(\"iconsmind-Bus-2\" => \"iconsmind-Bus-2\"), \n\t\tarray(\"iconsmind-Cable-Car\" => \"iconsmind-Cable-Car\"), \n\t\tarray(\"iconsmind-Car\" => \"iconsmind-Car\"), \n\t\tarray(\"iconsmind-Car-2\" => \"iconsmind-Car-2\"), \n\t\tarray(\"iconsmind-Car-3\" => \"iconsmind-Car-3\"), \n\t\tarray(\"iconsmind-Car-Wheel\" => \"iconsmind-Car-Wheel\"), \n\t\tarray(\"iconsmind-Gaugage\" => \"iconsmind-Gaugage\"), \n\t\tarray(\"iconsmind-Gaugage-2\" => \"iconsmind-Gaugage-2\"), \n\t\tarray(\"iconsmind-Helicopter\" => \"iconsmind-Helicopter\"), \n\t\tarray(\"iconsmind-Helicopter-2\" => \"iconsmind-Helicopter-2\"), \n\t\tarray(\"iconsmind-Helmet\" => \"iconsmind-Helmet\"), \n\t\tarray(\"iconsmind-Jeep\" => \"iconsmind-Jeep\"), \n\t\tarray(\"iconsmind-Jeep-2\" => \"iconsmind-Jeep-2\"), \n\t\tarray(\"iconsmind-Jet\" => \"iconsmind-Jet\"), \n\t\tarray(\"iconsmind-Motorcycle\" => \"iconsmind-Motorcycle\"), \n\t\tarray(\"iconsmind-Plane\" => \"iconsmind-Plane\"), \n\t\tarray(\"iconsmind-Plane-2\" => \"iconsmind-Plane-2\"), \n\t\tarray(\"iconsmind-Road\" => \"iconsmind-Road\"), \n\t\tarray(\"iconsmind-Road-2\" => \"iconsmind-Road-2\"), \n\t\tarray(\"iconsmind-Rocket\" => \"iconsmind-Rocket\"), \n\t\tarray(\"iconsmind-Sailing-Ship\" => \"iconsmind-Sailing-Ship\"), \n\t\tarray(\"iconsmind-Scooter\" => \"iconsmind-Scooter\"), \n\t\tarray(\"iconsmind-Scooter-Front\" => \"iconsmind-Scooter-Front\"), \n\t\tarray(\"iconsmind-Ship\" => \"iconsmind-Ship\"), \n\t\tarray(\"iconsmind-Ship-2\" => \"iconsmind-Ship-2\"), \n\t\tarray(\"iconsmind-Skateboard\" => \"iconsmind-Skateboard\"), \n\t\tarray(\"iconsmind-Skateboard-2\" => \"iconsmind-Skateboard-2\"), \n\t\tarray(\"iconsmind-Taxi\" => \"iconsmind-Taxi\"), \n\t\tarray(\"iconsmind-Taxi-2\" => \"iconsmind-Taxi-2\"), \n\t\tarray(\"iconsmind-Taxi-Sign\" => \"iconsmind-Taxi-Sign\"), \n\t\tarray(\"iconsmind-Tractor\" => \"iconsmind-Tractor\"), \n\t\tarray(\"iconsmind-traffic-Light\" => \"iconsmind-traffic-Light\"), \n\t\tarray(\"iconsmind-Traffic-Light2\" => \"iconsmind-Traffic-Light2\"), \n\t\tarray(\"iconsmind-Train\" => \"iconsmind-Train\"), \n\t\tarray(\"iconsmind-Train-2\" => \"iconsmind-Train-2\"), \n\t\tarray(\"iconsmind-Tram\" => \"iconsmind-Tram\"), \n\t\tarray(\"iconsmind-Truck\" => \"iconsmind-Truck\"), \n\t\tarray(\"iconsmind-Yacht\" => \"iconsmind-Yacht\"), \n\t\tarray(\"iconsmind-Double-Tap\" => \"iconsmind-Double-Tap\"), \n\t\tarray(\"iconsmind-Drag\" => \"iconsmind-Drag\"), \n\t\tarray(\"iconsmind-Drag-Down\" => \"iconsmind-Drag-Down\"), \n\t\tarray(\"iconsmind-Drag-Left\" => \"iconsmind-Drag-Left\"), \n\t\tarray(\"iconsmind-Drag-Right\" => \"iconsmind-Drag-Right\"), \n\t\tarray(\"iconsmind-Drag-Up\" => \"iconsmind-Drag-Up\"), \n\t\tarray(\"iconsmind-Finger-DragFourSides\" => \"iconsmind-Finger-DragFourSides\"), \n\t\tarray(\"iconsmind-Finger-DragTwoSides\" => \"iconsmind-Finger-DragTwoSides\"), \n\t\tarray(\"iconsmind-Five-Fingers\" => \"iconsmind-Five-Fingers\"), \n\t\tarray(\"iconsmind-Five-FingersDrag\" => \"iconsmind-Five-FingersDrag\"), \n\t\tarray(\"iconsmind-Five-FingersDrag2\" => \"iconsmind-Five-FingersDrag2\"), \n\t\tarray(\"iconsmind-Five-FingersTouch\" => \"iconsmind-Five-FingersTouch\"), \n\t\tarray(\"iconsmind-Flick\" => \"iconsmind-Flick\"), \n\t\tarray(\"iconsmind-Four-Fingers\" => \"iconsmind-Four-Fingers\"), \n\t\tarray(\"iconsmind-Four-FingersDrag\" => \"iconsmind-Four-FingersDrag\"), \n\t\tarray(\"iconsmind-Four-FingersDrag2\" => \"iconsmind-Four-FingersDrag2\"), \n\t\tarray(\"iconsmind-Four-FingersTouch\" => \"iconsmind-Four-FingersTouch\"), \n\t\tarray(\"iconsmind-Hand-Touch\" => \"iconsmind-Hand-Touch\"), \n\t\tarray(\"iconsmind-Hand-Touch2\" => \"iconsmind-Hand-Touch2\"), \n\t\tarray(\"iconsmind-Hand-TouchSmartphone\" => \"iconsmind-Hand-TouchSmartphone\"), \n\t\tarray(\"iconsmind-One-Finger\" => \"iconsmind-One-Finger\"), \n\t\tarray(\"iconsmind-One-FingerTouch\" => \"iconsmind-One-FingerTouch\"), \n\t\tarray(\"iconsmind-Pinch\" => \"iconsmind-Pinch\"), \n\t\tarray(\"iconsmind-Press\" => \"iconsmind-Press\"), \n\t\tarray(\"iconsmind-Rotate-Gesture\" => \"iconsmind-Rotate-Gesture\"), \n\t\tarray(\"iconsmind-Rotate-Gesture2\" => \"iconsmind-Rotate-Gesture2\"), \n\t\tarray(\"iconsmind-Rotate-Gesture3\" => \"iconsmind-Rotate-Gesture3\"), \n\t\tarray(\"iconsmind-Scroll\" => \"iconsmind-Scroll\"), \n\t\tarray(\"iconsmind-Scroll-Fast\" => \"iconsmind-Scroll-Fast\"), \n\t\tarray(\"iconsmind-Spread\" => \"iconsmind-Spread\"), \n\t\tarray(\"iconsmind-Star-Track\" => \"iconsmind-Star-Track\"), \n\t\tarray(\"iconsmind-Tap\" => \"iconsmind-Tap\"), \n\t\tarray(\"iconsmind-Three-Fingers\" => \"iconsmind-Three-Fingers\"), \n\t\tarray(\"iconsmind-Three-FingersDrag\" => \"iconsmind-Three-FingersDrag\"), \n\t\tarray(\"iconsmind-Three-FingersDrag2\" => \"iconsmind-Three-FingersDrag2\"), \n\t\tarray(\"iconsmind-Three-FingersTouch\" => \"iconsmind-Three-FingersTouch\"), \n\t\tarray(\"iconsmind-Thumb\" => \"iconsmind-Thumb\"), \n\t\tarray(\"iconsmind-Two-Fingers\" => \"iconsmind-Two-Fingers\"), \n\t\tarray(\"iconsmind-Two-FingersDrag\" => \"iconsmind-Two-FingersDrag\"), \n\t\tarray(\"iconsmind-Two-FingersDrag2\" => \"iconsmind-Two-FingersDrag2\"), \n\t\tarray(\"iconsmind-Two-FingersScroll\" => \"iconsmind-Two-FingersScroll\"), \n\t\tarray(\"iconsmind-Two-FingersTouch\" => \"iconsmind-Two-FingersTouch\"), \n\t\tarray(\"iconsmind-Zoom-Gesture\" => \"iconsmind-Zoom-Gesture\"), \n\t\tarray(\"iconsmind-Alarm-Clock\" => \"iconsmind-Alarm-Clock\"), \n\t\tarray(\"iconsmind-Alarm-Clock2\" => \"iconsmind-Alarm-Clock2\"), \n\t\tarray(\"iconsmind-Calendar-Clock\" => \"iconsmind-Calendar-Clock\"), \n\t\tarray(\"iconsmind-Clock\" => \"iconsmind-Clock\"), \n\t\tarray(\"iconsmind-Clock-2\" => \"iconsmind-Clock-2\"), \n\t\tarray(\"iconsmind-Clock-3\" => \"iconsmind-Clock-3\"), \n\t\tarray(\"iconsmind-Clock-4\" => \"iconsmind-Clock-4\"), \n\t\tarray(\"iconsmind-Clock-Back\" => \"iconsmind-Clock-Back\"), \n\t\tarray(\"iconsmind-Clock-Forward\" => \"iconsmind-Clock-Forward\"), \n\t\tarray(\"iconsmind-Hour\" => \"iconsmind-Hour\"), \n\t\tarray(\"iconsmind-Old-Clock\" => \"iconsmind-Old-Clock\"), \n\t\tarray(\"iconsmind-Over-Time\" => \"iconsmind-Over-Time\"), \n\t\tarray(\"iconsmind-Over-Time2\" => \"iconsmind-Over-Time2\"), \n\t\tarray(\"iconsmind-Sand-watch\" => \"iconsmind-Sand-watch\"), \n\t\tarray(\"iconsmind-Sand-watch2\" => \"iconsmind-Sand-watch2\"), \n\t\tarray(\"iconsmind-Stopwatch\" => \"iconsmind-Stopwatch\"), \n\t\tarray(\"iconsmind-Stopwatch-2\" => \"iconsmind-Stopwatch-2\"), \n\t\tarray(\"iconsmind-Time-Backup\" => \"iconsmind-Time-Backup\"), \n\t\tarray(\"iconsmind-Time-Fire\" => \"iconsmind-Time-Fire\"), \n\t\tarray(\"iconsmind-Time-Machine\" => \"iconsmind-Time-Machine\"), \n\t\tarray(\"iconsmind-Timer\" => \"iconsmind-Timer\"), \n\t\tarray(\"iconsmind-Watch\" => \"iconsmind-Watch\"), \n\t\tarray(\"iconsmind-Watch-2\" => \"iconsmind-Watch-2\"), \n\t\tarray(\"iconsmind-Watch-3\" => \"iconsmind-Watch-3\"), \n\t\tarray(\"iconsmind-A-Z\" => \"iconsmind-A-Z\"), \n\t\tarray(\"iconsmind-Bold-Text\" => \"iconsmind-Bold-Text\"), \n\t\tarray(\"iconsmind-Bulleted-List\" => \"iconsmind-Bulleted-List\"), \n\t\tarray(\"iconsmind-Font-Color\" => \"iconsmind-Font-Color\"), \n\t\tarray(\"iconsmind-Font-Name\" => \"iconsmind-Font-Name\"), \n\t\tarray(\"iconsmind-Font-Size\" => \"iconsmind-Font-Size\"), \n\t\tarray(\"iconsmind-Font-Style\" => \"iconsmind-Font-Style\"), \n\t\tarray(\"iconsmind-Font-StyleSubscript\" => \"iconsmind-Font-StyleSubscript\"), \n\t\tarray(\"iconsmind-Font-StyleSuperscript\" => \"iconsmind-Font-StyleSuperscript\"), \n\t\tarray(\"iconsmind-Function\" => \"iconsmind-Function\"), \n\t\tarray(\"iconsmind-Italic-Text\" => \"iconsmind-Italic-Text\"), \n\t\tarray(\"iconsmind-Line-SpacingText\" => \"iconsmind-Line-SpacingText\"), \n\t\tarray(\"iconsmind-Lowercase-Text\" => \"iconsmind-Lowercase-Text\"), \n\t\tarray(\"iconsmind-Normal-Text\" => \"iconsmind-Normal-Text\"), \n\t\tarray(\"iconsmind-Numbering-List\" => \"iconsmind-Numbering-List\"), \n\t\tarray(\"iconsmind-Strikethrough-Text\" => \"iconsmind-Strikethrough-Text\"), \n\t\tarray(\"iconsmind-Sum\" => \"iconsmind-Sum\"), \n\t\tarray(\"iconsmind-Text-Box\" => \"iconsmind-Text-Box\"), \n\t\tarray(\"iconsmind-Text-Effect\" => \"iconsmind-Text-Effect\"), \n\t\tarray(\"iconsmind-Text-HighlightColor\" => \"iconsmind-Text-HighlightColor\"), \n\t\tarray(\"iconsmind-Text-Paragraph\" => \"iconsmind-Text-Paragraph\"), \n\t\tarray(\"iconsmind-Under-LineText\" => \"iconsmind-Under-LineText\"), \n\t\tarray(\"iconsmind-Uppercase-Text\" => \"iconsmind-Uppercase-Text\"), \n\t\tarray(\"iconsmind-Wrap-Text\" => \"iconsmind-Wrap-Text\"), \n\t\tarray(\"iconsmind-Z-A\" => \"iconsmind-Z-A\"), \n\t\tarray(\"iconsmind-Aerobics\" => \"iconsmind-Aerobics\"), \n\t\tarray(\"iconsmind-Aerobics-2\" => \"iconsmind-Aerobics-2\"), \n\t\tarray(\"iconsmind-Aerobics-3\" => \"iconsmind-Aerobics-3\"), \n\t\tarray(\"iconsmind-Archery\" => \"iconsmind-Archery\"), \n\t\tarray(\"iconsmind-Archery-2\" => \"iconsmind-Archery-2\"), \n\t\tarray(\"iconsmind-Ballet-Shoes\" => \"iconsmind-Ballet-Shoes\"), \n\t\tarray(\"iconsmind-Baseball\" => \"iconsmind-Baseball\"), \n\t\tarray(\"iconsmind-Basket-Ball\" => \"iconsmind-Basket-Ball\"), \n\t\tarray(\"iconsmind-Bodybuilding\" => \"iconsmind-Bodybuilding\"), \n\t\tarray(\"iconsmind-Bowling\" => \"iconsmind-Bowling\"), \n\t\tarray(\"iconsmind-Bowling-2\" => \"iconsmind-Bowling-2\"), \n\t\tarray(\"iconsmind-Box\" => \"iconsmind-Box\"), \n\t\tarray(\"iconsmind-Chess\" => \"iconsmind-Chess\"), \n\t\tarray(\"iconsmind-Cricket\" => \"iconsmind-Cricket\"), \n\t\tarray(\"iconsmind-Dumbbell\" => \"iconsmind-Dumbbell\"), \n\t\tarray(\"iconsmind-Football\" => \"iconsmind-Football\"), \n\t\tarray(\"iconsmind-Football-2\" => \"iconsmind-Football-2\"), \n\t\tarray(\"iconsmind-Footprint\" => \"iconsmind-Footprint\"), \n\t\tarray(\"iconsmind-Footprint-2\" => \"iconsmind-Footprint-2\"), \n\t\tarray(\"iconsmind-Goggles\" => \"iconsmind-Goggles\"), \n\t\tarray(\"iconsmind-Golf\" => \"iconsmind-Golf\"), \n\t\tarray(\"iconsmind-Golf-2\" => \"iconsmind-Golf-2\"), \n\t\tarray(\"iconsmind-Gymnastics\" => \"iconsmind-Gymnastics\"), \n\t\tarray(\"iconsmind-Hokey\" => \"iconsmind-Hokey\"), \n\t\tarray(\"iconsmind-Jump-Rope\" => \"iconsmind-Jump-Rope\"), \n\t\tarray(\"iconsmind-Life-Jacket\" => \"iconsmind-Life-Jacket\"), \n\t\tarray(\"iconsmind-Medal\" => \"iconsmind-Medal\"), \n\t\tarray(\"iconsmind-Medal-2\" => \"iconsmind-Medal-2\"), \n\t\tarray(\"iconsmind-Medal-3\" => \"iconsmind-Medal-3\"), \n\t\tarray(\"iconsmind-Parasailing\" => \"iconsmind-Parasailing\"), \n\t\tarray(\"iconsmind-Pilates\" => \"iconsmind-Pilates\"), \n\t\tarray(\"iconsmind-Pilates-2\" => \"iconsmind-Pilates-2\"), \n\t\tarray(\"iconsmind-Pilates-3\" => \"iconsmind-Pilates-3\"), \n\t\tarray(\"iconsmind-Ping-Pong\" => \"iconsmind-Ping-Pong\"), \n\t\tarray(\"iconsmind-Rafting\" => \"iconsmind-Rafting\"), \n\t\tarray(\"iconsmind-Running\" => \"iconsmind-Running\"), \n\t\tarray(\"iconsmind-Running-Shoes\" => \"iconsmind-Running-Shoes\"), \n\t\tarray(\"iconsmind-Skate-Shoes\" => \"iconsmind-Skate-Shoes\"), \n\t\tarray(\"iconsmind-Ski\" => \"iconsmind-Ski\"), \n\t\tarray(\"iconsmind-Skydiving\" => \"iconsmind-Skydiving\"), \n\t\tarray(\"iconsmind-Snorkel\" => \"iconsmind-Snorkel\"), \n\t\tarray(\"iconsmind-Soccer-Ball\" => \"iconsmind-Soccer-Ball\"), \n\t\tarray(\"iconsmind-Soccer-Shoes\" => \"iconsmind-Soccer-Shoes\"), \n\t\tarray(\"iconsmind-Swimming\" => \"iconsmind-Swimming\"), \n\t\tarray(\"iconsmind-Tennis\" => \"iconsmind-Tennis\"), \n\t\tarray(\"iconsmind-Tennis-Ball\" => \"iconsmind-Tennis-Ball\"), \n\t\tarray(\"iconsmind-Trekking\" => \"iconsmind-Trekking\"), \n\t\tarray(\"iconsmind-Trophy\" => \"iconsmind-Trophy\"), \n\t\tarray(\"iconsmind-Trophy-2\" => \"iconsmind-Trophy-2\"), \n\t\tarray(\"iconsmind-Volleyball\" => \"iconsmind-Volleyball\"), \n\t\tarray(\"iconsmind-weight-Lift\" => \"iconsmind-weight-Lift\"), \n\t\tarray(\"iconsmind-Speach-Bubble\" => \"iconsmind-Speach-Bubble\"), \n\t\tarray(\"iconsmind-Speach-Bubble2\" => \"iconsmind-Speach-Bubble2\"), \n\t\tarray(\"iconsmind-Speach-Bubble3\" => \"iconsmind-Speach-Bubble3\"), \n\t\tarray(\"iconsmind-Speach-Bubble4\" => \"iconsmind-Speach-Bubble4\"), \n\t\tarray(\"iconsmind-Speach-Bubble5\" => \"iconsmind-Speach-Bubble5\"), \n\t\tarray(\"iconsmind-Speach-Bubble6\" => \"iconsmind-Speach-Bubble6\"), \n\t\tarray(\"iconsmind-Speach-Bubble7\" => \"iconsmind-Speach-Bubble7\"), \n\t\tarray(\"iconsmind-Speach-Bubble8\" => \"iconsmind-Speach-Bubble8\"), \n\t\tarray(\"iconsmind-Speach-Bubble9\" => \"iconsmind-Speach-Bubble9\"), \n\t\tarray(\"iconsmind-Speach-Bubble10\" => \"iconsmind-Speach-Bubble10\"), \n\t\tarray(\"iconsmind-Speach-Bubble11\" => \"iconsmind-Speach-Bubble11\"), \n\t\tarray(\"iconsmind-Speach-Bubble12\" => \"iconsmind-Speach-Bubble12\"), \n\t\tarray(\"iconsmind-Speach-Bubble13\" => \"iconsmind-Speach-Bubble13\"), \n\t\tarray(\"iconsmind-Speach-BubbleAsking\" => \"iconsmind-Speach-BubbleAsking\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic\" => \"iconsmind-Speach-BubbleComic\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic2\" => \"iconsmind-Speach-BubbleComic2\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic3\" => \"iconsmind-Speach-BubbleComic3\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic4\" => \"iconsmind-Speach-BubbleComic4\"), \n\t\tarray(\"iconsmind-Speach-BubbleDialog\" => \"iconsmind-Speach-BubbleDialog\"), \n\t\tarray(\"iconsmind-Speach-Bubbles\" => \"iconsmind-Speach-Bubbles\"), \n\t\tarray(\"iconsmind-Aim\" => \"iconsmind-Aim\"), \n\t\tarray(\"iconsmind-Ask\" => \"iconsmind-Ask\"), \n\t\tarray(\"iconsmind-Bebo\" => \"iconsmind-Bebo\"), \n\t\tarray(\"iconsmind-Behance\" => \"iconsmind-Behance\"), \n\t\tarray(\"iconsmind-Betvibes\" => \"iconsmind-Betvibes\"), \n\t\tarray(\"iconsmind-Bing\" => \"iconsmind-Bing\"), \n\t\tarray(\"iconsmind-Blinklist\" => \"iconsmind-Blinklist\"), \n\t\tarray(\"iconsmind-Blogger\" => \"iconsmind-Blogger\"), \n\t\tarray(\"iconsmind-Brightkite\" => \"iconsmind-Brightkite\"), \n\t\tarray(\"iconsmind-Delicious\" => \"iconsmind-Delicious\"), \n\t\tarray(\"iconsmind-Deviantart\" => \"iconsmind-Deviantart\"), \n\t\tarray(\"iconsmind-Digg\" => \"iconsmind-Digg\"), \n\t\tarray(\"iconsmind-Diigo\" => \"iconsmind-Diigo\"), \n\t\tarray(\"iconsmind-Doplr\" => \"iconsmind-Doplr\"), \n\t\tarray(\"iconsmind-Dribble\" => \"iconsmind-Dribble\"), \n\t\tarray(\"iconsmind-Email\" => \"iconsmind-Email\"), \n\t\tarray(\"iconsmind-Evernote\" => \"iconsmind-Evernote\"), \n\t\tarray(\"iconsmind-Facebook\" => \"iconsmind-Facebook\"), \n\t\tarray(\"iconsmind-Facebook-2\" => \"iconsmind-Facebook-2\"), \n\t\tarray(\"iconsmind-Feedburner\" => \"iconsmind-Feedburner\"), \n\t\tarray(\"iconsmind-Flickr\" => \"iconsmind-Flickr\"), \n\t\tarray(\"iconsmind-Formspring\" => \"iconsmind-Formspring\"), \n\t\tarray(\"iconsmind-Forsquare\" => \"iconsmind-Forsquare\"), \n\t\tarray(\"iconsmind-Friendfeed\" => \"iconsmind-Friendfeed\"), \n\t\tarray(\"iconsmind-Friendster\" => \"iconsmind-Friendster\"), \n\t\tarray(\"iconsmind-Furl\" => \"iconsmind-Furl\"), \n\t\tarray(\"iconsmind-Google\" => \"iconsmind-Google\"), \n\t\tarray(\"iconsmind-Google-Buzz\" => \"iconsmind-Google-Buzz\"), \n\t\tarray(\"iconsmind-Google-Plus\" => \"iconsmind-Google-Plus\"), \n\t\tarray(\"iconsmind-Gowalla\" => \"iconsmind-Gowalla\"), \n\t\tarray(\"iconsmind-ICQ\" => \"iconsmind-ICQ\"), \n\t\tarray(\"iconsmind-ImDB\" => \"iconsmind-ImDB\"), \n\t\tarray(\"iconsmind-Instagram\" => \"iconsmind-Instagram\"), \n\t\tarray(\"iconsmind-Last-FM\" => \"iconsmind-Last-FM\"), \n\t\tarray(\"iconsmind-Like\" => \"iconsmind-Like\"), \n\t\tarray(\"iconsmind-Like-2\" => \"iconsmind-Like-2\"), \n\t\tarray(\"iconsmind-Linkedin\" => \"iconsmind-Linkedin\"), \n\t\tarray(\"iconsmind-Linkedin-2\" => \"iconsmind-Linkedin-2\"), \n\t\tarray(\"iconsmind-Livejournal\" => \"iconsmind-Livejournal\"), \n\t\tarray(\"iconsmind-Metacafe\" => \"iconsmind-Metacafe\"), \n\t\tarray(\"iconsmind-Mixx\" => \"iconsmind-Mixx\"), \n\t\tarray(\"iconsmind-Myspace\" => \"iconsmind-Myspace\"), \n\t\tarray(\"iconsmind-Newsvine\" => \"iconsmind-Newsvine\"), \n\t\tarray(\"iconsmind-Orkut\" => \"iconsmind-Orkut\"), \n\t\tarray(\"iconsmind-Picasa\" => \"iconsmind-Picasa\"), \n\t\tarray(\"iconsmind-Pinterest\" => \"iconsmind-Pinterest\"), \n\t\tarray(\"iconsmind-Plaxo\" => \"iconsmind-Plaxo\"), \n\t\tarray(\"iconsmind-Plurk\" => \"iconsmind-Plurk\"), \n\t\tarray(\"iconsmind-Posterous\" => \"iconsmind-Posterous\"), \n\t\tarray(\"iconsmind-QIK\" => \"iconsmind-QIK\"), \n\t\tarray(\"iconsmind-Reddit\" => \"iconsmind-Reddit\"), \n\t\tarray(\"iconsmind-Reverbnation\" => \"iconsmind-Reverbnation\"), \n\t\tarray(\"iconsmind-RSS\" => \"iconsmind-RSS\"), \n\t\tarray(\"iconsmind-Sharethis\" => \"iconsmind-Sharethis\"), \n\t\tarray(\"iconsmind-Shoutwire\" => \"iconsmind-Shoutwire\"), \n\t\tarray(\"iconsmind-Skype\" => \"iconsmind-Skype\"), \n\t\tarray(\"iconsmind-Soundcloud\" => \"iconsmind-Soundcloud\"), \n\t\tarray(\"iconsmind-Spurl\" => \"iconsmind-Spurl\"), \n\t\tarray(\"iconsmind-Stumbleupon\" => \"iconsmind-Stumbleupon\"), \n\t\tarray(\"iconsmind-Technorati\" => \"iconsmind-Technorati\"), \n\t\tarray(\"iconsmind-Tumblr\" => \"iconsmind-Tumblr\"), \n\t\tarray(\"iconsmind-Twitter\" => \"iconsmind-Twitter\"), \n\t\tarray(\"iconsmind-Twitter-2\" => \"iconsmind-Twitter-2\"), \n\t\tarray(\"iconsmind-Unlike\" => \"iconsmind-Unlike\"), \n\t\tarray(\"iconsmind-Unlike-2\" => \"iconsmind-Unlike-2\"), \n\t\tarray(\"iconsmind-Ustream\" => \"iconsmind-Ustream\"), \n\t\tarray(\"iconsmind-Viddler\" => \"iconsmind-Viddler\"), \n\t\tarray(\"iconsmind-Vimeo\" => \"iconsmind-Vimeo\"), \n\t\tarray(\"iconsmind-Wordpress\" => \"iconsmind-Wordpress\"), \n\t\tarray(\"iconsmind-Xanga\" => \"iconsmind-Xanga\"), \n\t\tarray(\"iconsmind-Xing\" => \"iconsmind-Xing\"), \n\t\tarray(\"iconsmind-Yahoo\" => \"iconsmind-Yahoo\"), \n\t\tarray(\"iconsmind-Yahoo-Buzz\" => \"iconsmind-Yahoo-Buzz\"), \n\t\tarray(\"iconsmind-Yelp\" => \"iconsmind-Yelp\"), \n\t\tarray(\"iconsmind-Youtube\" => \"iconsmind-Youtube\"), \n\t\tarray(\"iconsmind-Zootool\" => \"iconsmind-Zootool\"), \n\t\tarray(\"iconsmind-Bisexual\" => \"iconsmind-Bisexual\"), \n\t\tarray(\"iconsmind-Cancer2\" => \"iconsmind-Cancer2\"), \n\t\tarray(\"iconsmind-Couple-Sign\" => \"iconsmind-Couple-Sign\"), \n\t\tarray(\"iconsmind-David-Star\" => \"iconsmind-David-Star\"), \n\t\tarray(\"iconsmind-Family-Sign\" => \"iconsmind-Family-Sign\"), \n\t\tarray(\"iconsmind-Female-2\" => \"iconsmind-Female-2\"), \n\t\tarray(\"iconsmind-Gey\" => \"iconsmind-Gey\"), \n\t\tarray(\"iconsmind-Heart\" => \"iconsmind-Heart\"), \n\t\tarray(\"iconsmind-Homosexual\" => \"iconsmind-Homosexual\"), \n\t\tarray(\"iconsmind-Inifity\" => \"iconsmind-Inifity\"), \n\t\tarray(\"iconsmind-Lesbian\" => \"iconsmind-Lesbian\"), \n\t\tarray(\"iconsmind-Lesbians\" => \"iconsmind-Lesbians\"), \n\t\tarray(\"iconsmind-Love\" => \"iconsmind-Love\"), \n\t\tarray(\"iconsmind-Male-2\" => \"iconsmind-Male-2\"), \n\t\tarray(\"iconsmind-Men\" => \"iconsmind-Men\"), \n\t\tarray(\"iconsmind-No-Smoking\" => \"iconsmind-No-Smoking\"), \n\t\tarray(\"iconsmind-Paw\" => \"iconsmind-Paw\"), \n\t\tarray(\"iconsmind-Quotes\" => \"iconsmind-Quotes\"), \n\t\tarray(\"iconsmind-Quotes-2\" => \"iconsmind-Quotes-2\"), \n\t\tarray(\"iconsmind-Redirect\" => \"iconsmind-Redirect\"), \n\t\tarray(\"iconsmind-Retweet\" => \"iconsmind-Retweet\"), \n\t\tarray(\"iconsmind-Ribbon\" => \"iconsmind-Ribbon\"), \n\t\tarray(\"iconsmind-Ribbon-2\" => \"iconsmind-Ribbon-2\"), \n\t\tarray(\"iconsmind-Ribbon-3\" => \"iconsmind-Ribbon-3\"), \n\t\tarray(\"iconsmind-Sexual\" => \"iconsmind-Sexual\"), \n\t\tarray(\"iconsmind-Smoking-Area\" => \"iconsmind-Smoking-Area\"), \n\t\tarray(\"iconsmind-Trace\" => \"iconsmind-Trace\"), \n\t\tarray(\"iconsmind-Venn-Diagram\" => \"iconsmind-Venn-Diagram\"), \n\t\tarray(\"iconsmind-Wheelchair\" => \"iconsmind-Wheelchair\"), \n\t\tarray(\"iconsmind-Women\" => \"iconsmind-Women\"), \n\t\tarray(\"iconsmind-Ying-Yang\" => \"iconsmind-Ying-Yang\"), \n\t\tarray(\"iconsmind-Add-Bag\" => \"iconsmind-Add-Bag\"), \n\t\tarray(\"iconsmind-Add-Basket\" => \"iconsmind-Add-Basket\"), \n\t\tarray(\"iconsmind-Add-Cart\" => \"iconsmind-Add-Cart\"), \n\t\tarray(\"iconsmind-Bag-Coins\" => \"iconsmind-Bag-Coins\"), \n\t\tarray(\"iconsmind-Bag-Items\" => \"iconsmind-Bag-Items\"), \n\t\tarray(\"iconsmind-Bag-Quantity\" => \"iconsmind-Bag-Quantity\"), \n\t\tarray(\"iconsmind-Bar-Code\" => \"iconsmind-Bar-Code\"), \n\t\tarray(\"iconsmind-Basket-Coins\" => \"iconsmind-Basket-Coins\"), \n\t\tarray(\"iconsmind-Basket-Items\" => \"iconsmind-Basket-Items\"), \n\t\tarray(\"iconsmind-Basket-Quantity\" => \"iconsmind-Basket-Quantity\"), \n\t\tarray(\"iconsmind-Bitcoin\" => \"iconsmind-Bitcoin\"), \n\t\tarray(\"iconsmind-Car-Coins\" => \"iconsmind-Car-Coins\"), \n\t\tarray(\"iconsmind-Car-Items\" => \"iconsmind-Car-Items\"), \n\t\tarray(\"iconsmind-CartQuantity\" => \"iconsmind-CartQuantity\"), \n\t\tarray(\"iconsmind-Cash-Register\" => \"iconsmind-Cash-Register\"), \n\t\tarray(\"iconsmind-Cash-register2\" => \"iconsmind-Cash-register2\"), \n\t\tarray(\"iconsmind-Checkout\" => \"iconsmind-Checkout\"), \n\t\tarray(\"iconsmind-Checkout-Bag\" => \"iconsmind-Checkout-Bag\"), \n\t\tarray(\"iconsmind-Checkout-Basket\" => \"iconsmind-Checkout-Basket\"), \n\t\tarray(\"iconsmind-Full-Basket\" => \"iconsmind-Full-Basket\"), \n\t\tarray(\"iconsmind-Full-Cart\" => \"iconsmind-Full-Cart\"), \n\t\tarray(\"iconsmind-Fyll-Bag\" => \"iconsmind-Fyll-Bag\"), \n\t\tarray(\"iconsmind-Home\" => \"iconsmind-Home\"), \n\t\tarray(\"iconsmind-Password-2shopping\" => \"iconsmind-Password-2shopping\"), \n\t\tarray(\"iconsmind-Password-shopping\" => \"iconsmind-Password-shopping\"), \n\t\tarray(\"iconsmind-QR-Code\" => \"iconsmind-QR-Code\"), \n\t\tarray(\"iconsmind-Receipt\" => \"iconsmind-Receipt\"), \n\t\tarray(\"iconsmind-Receipt-2\" => \"iconsmind-Receipt-2\"), \n\t\tarray(\"iconsmind-Receipt-3\" => \"iconsmind-Receipt-3\"), \n\t\tarray(\"iconsmind-Receipt-4\" => \"iconsmind-Receipt-4\"), \n\t\tarray(\"iconsmind-Remove-Bag\" => \"iconsmind-Remove-Bag\"), \n\t\tarray(\"iconsmind-Remove-Basket\" => \"iconsmind-Remove-Basket\"), \n\t\tarray(\"iconsmind-Remove-Cart\" => \"iconsmind-Remove-Cart\"), \n\t\tarray(\"iconsmind-Shop\" => \"iconsmind-Shop\"), \n\t\tarray(\"iconsmind-Shop-2\" => \"iconsmind-Shop-2\"), \n\t\tarray(\"iconsmind-Shop-3\" => \"iconsmind-Shop-3\"), \n\t\tarray(\"iconsmind-Shop-4\" => \"iconsmind-Shop-4\"), \n\t\tarray(\"iconsmind-Shopping-Bag\" => \"iconsmind-Shopping-Bag\"), \n\t\tarray(\"iconsmind-Shopping-Basket\" => \"iconsmind-Shopping-Basket\"), \n\t\tarray(\"iconsmind-Shopping-Cart\" => \"iconsmind-Shopping-Cart\"), \n\t\tarray(\"iconsmind-Tag-2\" => \"iconsmind-Tag-2\"), \n\t\tarray(\"iconsmind-Tag-3\" => \"iconsmind-Tag-3\"), \n\t\tarray(\"iconsmind-Tag-4\" => \"iconsmind-Tag-4\"), \n\t\tarray(\"iconsmind-Tag-5\" => \"iconsmind-Tag-5\"), \n\t\tarray(\"iconsmind-This-SideUp\" => \"iconsmind-This-SideUp\"), \n\t\tarray(\"iconsmind-Broke-Link2\" => \"iconsmind-Broke-Link2\"), \n\t\tarray(\"iconsmind-Coding\" => \"iconsmind-Coding\"), \n\t\tarray(\"iconsmind-Consulting\" => \"iconsmind-Consulting\"), \n\t\tarray(\"iconsmind-Copyright\" => \"iconsmind-Copyright\"), \n\t\tarray(\"iconsmind-Idea-2\" => \"iconsmind-Idea-2\"), \n\t\tarray(\"iconsmind-Idea-3\" => \"iconsmind-Idea-3\"), \n\t\tarray(\"iconsmind-Idea-4\" => \"iconsmind-Idea-4\"), \n\t\tarray(\"iconsmind-Idea-5\" => \"iconsmind-Idea-5\"), \n\t\tarray(\"iconsmind-Internet\" => \"iconsmind-Internet\"), \n\t\tarray(\"iconsmind-Internet-2\" => \"iconsmind-Internet-2\"), \n\t\tarray(\"iconsmind-Link-2\" => \"iconsmind-Link-2\"), \n\t\tarray(\"iconsmind-Management\" => \"iconsmind-Management\"), \n\t\tarray(\"iconsmind-Monitor-Analytics\" => \"iconsmind-Monitor-Analytics\"), \n\t\tarray(\"iconsmind-Monitoring\" => \"iconsmind-Monitoring\"), \n\t\tarray(\"iconsmind-Optimization\" => \"iconsmind-Optimization\"), \n\t\tarray(\"iconsmind-Search-People\" => \"iconsmind-Search-People\"), \n\t\tarray(\"iconsmind-Tag\" => \"iconsmind-Tag\"), \n\t\tarray(\"iconsmind-Target\" => \"iconsmind-Target\"), \n\t\tarray(\"iconsmind-Target-Market\" => \"iconsmind-Target-Market\"), \n\t\tarray(\"iconsmind-Testimonal\" => \"iconsmind-Testimonal\"), \n\t\tarray(\"iconsmind-Computer-Secure\" => \"iconsmind-Computer-Secure\"), \n\t\tarray(\"iconsmind-Eye-Scan\" => \"iconsmind-Eye-Scan\"), \n\t\tarray(\"iconsmind-Finger-Print\" => \"iconsmind-Finger-Print\"), \n\t\tarray(\"iconsmind-Firewall\" => \"iconsmind-Firewall\"), \n\t\tarray(\"iconsmind-Key-Lock\" => \"iconsmind-Key-Lock\"), \n\t\tarray(\"iconsmind-Laptop-Secure\" => \"iconsmind-Laptop-Secure\"), \n\t\tarray(\"iconsmind-Layer-1532\" => \"iconsmind-Layer-1532\"), \n\t\tarray(\"iconsmind-Lock\" => \"iconsmind-Lock\"), \n\t\tarray(\"iconsmind-Lock-2\" => \"iconsmind-Lock-2\"), \n\t\tarray(\"iconsmind-Lock-3\" => \"iconsmind-Lock-3\"), \n\t\tarray(\"iconsmind-Password\" => \"iconsmind-Password\"), \n\t\tarray(\"iconsmind-Password-Field\" => \"iconsmind-Password-Field\"), \n\t\tarray(\"iconsmind-Police\" => \"iconsmind-Police\"), \n\t\tarray(\"iconsmind-Safe-Box\" => \"iconsmind-Safe-Box\"), \n\t\tarray(\"iconsmind-Security-Block\" => \"iconsmind-Security-Block\"), \n\t\tarray(\"iconsmind-Security-Bug\" => \"iconsmind-Security-Bug\"), \n\t\tarray(\"iconsmind-Security-Camera\" => \"iconsmind-Security-Camera\"), \n\t\tarray(\"iconsmind-Security-Check\" => \"iconsmind-Security-Check\"), \n\t\tarray(\"iconsmind-Security-Settings\" => \"iconsmind-Security-Settings\"), \n\t\tarray(\"iconsmind-Securiy-Remove\" => \"iconsmind-Securiy-Remove\"), \n\t\tarray(\"iconsmind-Shield\" => \"iconsmind-Shield\"), \n\t\tarray(\"iconsmind-Smartphone-Secure\" => \"iconsmind-Smartphone-Secure\"), \n\t\tarray(\"iconsmind-SSL\" => \"iconsmind-SSL\"), \n\t\tarray(\"iconsmind-Tablet-Secure\" => \"iconsmind-Tablet-Secure\"), \n\t\tarray(\"iconsmind-Type-Pass\" => \"iconsmind-Type-Pass\"), \n\t\tarray(\"iconsmind-Unlock\" => \"iconsmind-Unlock\"), \n\t\tarray(\"iconsmind-Unlock-2\" => \"iconsmind-Unlock-2\"), \n\t\tarray(\"iconsmind-Unlock-3\" => \"iconsmind-Unlock-3\"), \n\t\tarray(\"iconsmind-Ambulance\" => \"iconsmind-Ambulance\"), \n\t\tarray(\"iconsmind-Astronaut\" => \"iconsmind-Astronaut\"), \n\t\tarray(\"iconsmind-Atom\" => \"iconsmind-Atom\"), \n\t\tarray(\"iconsmind-Bacteria\" => \"iconsmind-Bacteria\"), \n\t\tarray(\"iconsmind-Band-Aid\" => \"iconsmind-Band-Aid\"), \n\t\tarray(\"iconsmind-Bio-Hazard\" => \"iconsmind-Bio-Hazard\"), \n\t\tarray(\"iconsmind-Biotech\" => \"iconsmind-Biotech\"), \n\t\tarray(\"iconsmind-Brain\" => \"iconsmind-Brain\"), \n\t\tarray(\"iconsmind-Chemical\" => \"iconsmind-Chemical\"), \n\t\tarray(\"iconsmind-Chemical-2\" => \"iconsmind-Chemical-2\"), \n\t\tarray(\"iconsmind-Chemical-3\" => \"iconsmind-Chemical-3\"), \n\t\tarray(\"iconsmind-Chemical-4\" => \"iconsmind-Chemical-4\"), \n\t\tarray(\"iconsmind-Chemical-5\" => \"iconsmind-Chemical-5\"), \n\t\tarray(\"iconsmind-Clinic\" => \"iconsmind-Clinic\"), \n\t\tarray(\"iconsmind-Cube-Molecule\" => \"iconsmind-Cube-Molecule\"), \n\t\tarray(\"iconsmind-Cube-Molecule2\" => \"iconsmind-Cube-Molecule2\"), \n\t\tarray(\"iconsmind-Danger\" => \"iconsmind-Danger\"), \n\t\tarray(\"iconsmind-Danger-2\" => \"iconsmind-Danger-2\"), \n\t\tarray(\"iconsmind-DNA\" => \"iconsmind-DNA\"), \n\t\tarray(\"iconsmind-DNA-2\" => \"iconsmind-DNA-2\"), \n\t\tarray(\"iconsmind-DNA-Helix\" => \"iconsmind-DNA-Helix\"), \n\t\tarray(\"iconsmind-First-Aid\" => \"iconsmind-First-Aid\"), \n\t\tarray(\"iconsmind-Flask\" => \"iconsmind-Flask\"), \n\t\tarray(\"iconsmind-Flask-2\" => \"iconsmind-Flask-2\"), \n\t\tarray(\"iconsmind-Helix-2\" => \"iconsmind-Helix-2\"), \n\t\tarray(\"iconsmind-Hospital\" => \"iconsmind-Hospital\"), \n\t\tarray(\"iconsmind-Hurt\" => \"iconsmind-Hurt\"), \n\t\tarray(\"iconsmind-Medical-Sign\" => \"iconsmind-Medical-Sign\"), \n\t\tarray(\"iconsmind-Medicine\" => \"iconsmind-Medicine\"), \n\t\tarray(\"iconsmind-Medicine-2\" => \"iconsmind-Medicine-2\"), \n\t\tarray(\"iconsmind-Medicine-3\" => \"iconsmind-Medicine-3\"), \n\t\tarray(\"iconsmind-Microscope\" => \"iconsmind-Microscope\"), \n\t\tarray(\"iconsmind-Neutron\" => \"iconsmind-Neutron\"), \n\t\tarray(\"iconsmind-Nuclear\" => \"iconsmind-Nuclear\"), \n\t\tarray(\"iconsmind-Physics\" => \"iconsmind-Physics\"), \n\t\tarray(\"iconsmind-Plasmid\" => \"iconsmind-Plasmid\"), \n\t\tarray(\"iconsmind-Plaster\" => \"iconsmind-Plaster\"), \n\t\tarray(\"iconsmind-Pulse\" => \"iconsmind-Pulse\"), \n\t\tarray(\"iconsmind-Radioactive\" => \"iconsmind-Radioactive\"), \n\t\tarray(\"iconsmind-Safety-PinClose\" => \"iconsmind-Safety-PinClose\"), \n\t\tarray(\"iconsmind-Safety-PinOpen\" => \"iconsmind-Safety-PinOpen\"), \n\t\tarray(\"iconsmind-Spermium\" => \"iconsmind-Spermium\"), \n\t\tarray(\"iconsmind-Stethoscope\" => \"iconsmind-Stethoscope\"), \n\t\tarray(\"iconsmind-Temperature2\" => \"iconsmind-Temperature2\"), \n\t\tarray(\"iconsmind-Test-Tube\" => \"iconsmind-Test-Tube\"), \n\t\tarray(\"iconsmind-Test-Tube2\" => \"iconsmind-Test-Tube2\"), \n\t\tarray(\"iconsmind-Virus\" => \"iconsmind-Virus\"), \n\t\tarray(\"iconsmind-Virus-2\" => \"iconsmind-Virus-2\"), \n\t\tarray(\"iconsmind-Virus-3\" => \"iconsmind-Virus-3\"), \n\t\tarray(\"iconsmind-X-ray\" => \"iconsmind-X-ray\"), \n\t\tarray(\"iconsmind-Auto-Flash\" => \"iconsmind-Auto-Flash\"), \n\t\tarray(\"iconsmind-Camera\" => \"iconsmind-Camera\"), \n\t\tarray(\"iconsmind-Camera-2\" => \"iconsmind-Camera-2\"), \n\t\tarray(\"iconsmind-Camera-3\" => \"iconsmind-Camera-3\"), \n\t\tarray(\"iconsmind-Camera-4\" => \"iconsmind-Camera-4\"), \n\t\tarray(\"iconsmind-Camera-5\" => \"iconsmind-Camera-5\"), \n\t\tarray(\"iconsmind-Camera-Back\" => \"iconsmind-Camera-Back\"), \n\t\tarray(\"iconsmind-Crop\" => \"iconsmind-Crop\"), \n\t\tarray(\"iconsmind-Daylight\" => \"iconsmind-Daylight\"), \n\t\tarray(\"iconsmind-Edit\" => \"iconsmind-Edit\"), \n\t\tarray(\"iconsmind-Eye\" => \"iconsmind-Eye\"), \n\t\tarray(\"iconsmind-Film2\" => \"iconsmind-Film2\"), \n\t\tarray(\"iconsmind-Film-Cartridge\" => \"iconsmind-Film-Cartridge\"), \n\t\tarray(\"iconsmind-Filter\" => \"iconsmind-Filter\"), \n\t\tarray(\"iconsmind-Flash\" => \"iconsmind-Flash\"), \n\t\tarray(\"iconsmind-Flash-2\" => \"iconsmind-Flash-2\"), \n\t\tarray(\"iconsmind-Fluorescent\" => \"iconsmind-Fluorescent\"), \n\t\tarray(\"iconsmind-Gopro\" => \"iconsmind-Gopro\"), \n\t\tarray(\"iconsmind-Landscape\" => \"iconsmind-Landscape\"), \n\t\tarray(\"iconsmind-Len\" => \"iconsmind-Len\"), \n\t\tarray(\"iconsmind-Len-2\" => \"iconsmind-Len-2\"), \n\t\tarray(\"iconsmind-Len-3\" => \"iconsmind-Len-3\"), \n\t\tarray(\"iconsmind-Macro\" => \"iconsmind-Macro\"), \n\t\tarray(\"iconsmind-Memory-Card\" => \"iconsmind-Memory-Card\"), \n\t\tarray(\"iconsmind-Memory-Card2\" => \"iconsmind-Memory-Card2\"), \n\t\tarray(\"iconsmind-Memory-Card3\" => \"iconsmind-Memory-Card3\"), \n\t\tarray(\"iconsmind-No-Flash\" => \"iconsmind-No-Flash\"), \n\t\tarray(\"iconsmind-Panorama\" => \"iconsmind-Panorama\"), \n\t\tarray(\"iconsmind-Photo\" => \"iconsmind-Photo\"), \n\t\tarray(\"iconsmind-Photo-2\" => \"iconsmind-Photo-2\"), \n\t\tarray(\"iconsmind-Photo-3\" => \"iconsmind-Photo-3\"), \n\t\tarray(\"iconsmind-Photo-Album\" => \"iconsmind-Photo-Album\"), \n\t\tarray(\"iconsmind-Photo-Album2\" => \"iconsmind-Photo-Album2\"), \n\t\tarray(\"iconsmind-Photo-Album3\" => \"iconsmind-Photo-Album3\"), \n\t\tarray(\"iconsmind-Photos\" => \"iconsmind-Photos\"), \n\t\tarray(\"iconsmind-Portrait\" => \"iconsmind-Portrait\"), \n\t\tarray(\"iconsmind-Retouching\" => \"iconsmind-Retouching\"), \n\t\tarray(\"iconsmind-Retro-Camera\" => \"iconsmind-Retro-Camera\"), \n\t\tarray(\"iconsmind-secound\" => \"iconsmind-secound\"), \n\t\tarray(\"iconsmind-secound2\" => \"iconsmind-secound2\"), \n\t\tarray(\"iconsmind-Selfie\" => \"iconsmind-Selfie\"), \n\t\tarray(\"iconsmind-Shutter\" => \"iconsmind-Shutter\"), \n\t\tarray(\"iconsmind-Signal\" => \"iconsmind-Signal\"), \n\t\tarray(\"iconsmind-Snow2\" => \"iconsmind-Snow2\"), \n\t\tarray(\"iconsmind-Sport-Mode\" => \"iconsmind-Sport-Mode\"), \n\t\tarray(\"iconsmind-Studio-Flash\" => \"iconsmind-Studio-Flash\"), \n\t\tarray(\"iconsmind-Studio-Lightbox\" => \"iconsmind-Studio-Lightbox\"), \n\t\tarray(\"iconsmind-Timer2\" => \"iconsmind-Timer2\"), \n\t\tarray(\"iconsmind-Tripod-2\" => \"iconsmind-Tripod-2\"), \n\t\tarray(\"iconsmind-Tripod-withCamera\" => \"iconsmind-Tripod-withCamera\"), \n\t\tarray(\"iconsmind-Tripod-withGopro\" => \"iconsmind-Tripod-withGopro\"), \n\t\tarray(\"iconsmind-Add-User\" => \"iconsmind-Add-User\"), \n\t\tarray(\"iconsmind-Add-UserStar\" => \"iconsmind-Add-UserStar\"), \n\t\tarray(\"iconsmind-Administrator\" => \"iconsmind-Administrator\"), \n\t\tarray(\"iconsmind-Alien\" => \"iconsmind-Alien\"), \n\t\tarray(\"iconsmind-Alien-2\" => \"iconsmind-Alien-2\"), \n\t\tarray(\"iconsmind-Assistant\" => \"iconsmind-Assistant\"), \n\t\tarray(\"iconsmind-Baby\" => \"iconsmind-Baby\"), \n\t\tarray(\"iconsmind-Baby-Cry\" => \"iconsmind-Baby-Cry\"), \n\t\tarray(\"iconsmind-Boy\" => \"iconsmind-Boy\"), \n\t\tarray(\"iconsmind-Business-Man\" => \"iconsmind-Business-Man\"), \n\t\tarray(\"iconsmind-Business-ManWoman\" => \"iconsmind-Business-ManWoman\"), \n\t\tarray(\"iconsmind-Business-Mens\" => \"iconsmind-Business-Mens\"), \n\t\tarray(\"iconsmind-Business-Woman\" => \"iconsmind-Business-Woman\"), \n\t\tarray(\"iconsmind-Checked-User\" => \"iconsmind-Checked-User\"), \n\t\tarray(\"iconsmind-Chef\" => \"iconsmind-Chef\"), \n\t\tarray(\"iconsmind-Conference\" => \"iconsmind-Conference\"), \n\t\tarray(\"iconsmind-Cool-Guy\" => \"iconsmind-Cool-Guy\"), \n\t\tarray(\"iconsmind-Criminal\" => \"iconsmind-Criminal\"), \n\t\tarray(\"iconsmind-Dj\" => \"iconsmind-Dj\"), \n\t\tarray(\"iconsmind-Doctor\" => \"iconsmind-Doctor\"), \n\t\tarray(\"iconsmind-Engineering\" => \"iconsmind-Engineering\"), \n\t\tarray(\"iconsmind-Farmer\" => \"iconsmind-Farmer\"), \n\t\tarray(\"iconsmind-Female\" => \"iconsmind-Female\"), \n\t\tarray(\"iconsmind-Female-22\" => \"iconsmind-Female-22\"), \n\t\tarray(\"iconsmind-Find-User\" => \"iconsmind-Find-User\"), \n\t\tarray(\"iconsmind-Geek\" => \"iconsmind-Geek\"), \n\t\tarray(\"iconsmind-Genius\" => \"iconsmind-Genius\"), \n\t\tarray(\"iconsmind-Girl\" => \"iconsmind-Girl\"), \n\t\tarray(\"iconsmind-Headphone\" => \"iconsmind-Headphone\"), \n\t\tarray(\"iconsmind-Headset\" => \"iconsmind-Headset\"), \n\t\tarray(\"iconsmind-ID-2\" => \"iconsmind-ID-2\"), \n\t\tarray(\"iconsmind-ID-3\" => \"iconsmind-ID-3\"), \n\t\tarray(\"iconsmind-ID-Card\" => \"iconsmind-ID-Card\"), \n\t\tarray(\"iconsmind-King-2\" => \"iconsmind-King-2\"), \n\t\tarray(\"iconsmind-Lock-User\" => \"iconsmind-Lock-User\"), \n\t\tarray(\"iconsmind-Love-User\" => \"iconsmind-Love-User\"), \n\t\tarray(\"iconsmind-Male\" => \"iconsmind-Male\"), \n\t\tarray(\"iconsmind-Male-22\" => \"iconsmind-Male-22\"), \n\t\tarray(\"iconsmind-MaleFemale\" => \"iconsmind-MaleFemale\"), \n\t\tarray(\"iconsmind-Man-Sign\" => \"iconsmind-Man-Sign\"), \n\t\tarray(\"iconsmind-Mens\" => \"iconsmind-Mens\"), \n\t\tarray(\"iconsmind-Network\" => \"iconsmind-Network\"), \n\t\tarray(\"iconsmind-Nurse\" => \"iconsmind-Nurse\"), \n\t\tarray(\"iconsmind-Pac-Man\" => \"iconsmind-Pac-Man\"), \n\t\tarray(\"iconsmind-Pilot\" => \"iconsmind-Pilot\"), \n\t\tarray(\"iconsmind-Police-Man\" => \"iconsmind-Police-Man\"), \n\t\tarray(\"iconsmind-Police-Woman\" => \"iconsmind-Police-Woman\"), \n\t\tarray(\"iconsmind-Professor\" => \"iconsmind-Professor\"), \n\t\tarray(\"iconsmind-Punker\" => \"iconsmind-Punker\"), \n\t\tarray(\"iconsmind-Queen-2\" => \"iconsmind-Queen-2\"), \n\t\tarray(\"iconsmind-Remove-User\" => \"iconsmind-Remove-User\"), \n\t\tarray(\"iconsmind-Robot\" => \"iconsmind-Robot\"), \n\t\tarray(\"iconsmind-Speak\" => \"iconsmind-Speak\"), \n\t\tarray(\"iconsmind-Speak-2\" => \"iconsmind-Speak-2\"), \n\t\tarray(\"iconsmind-Spy\" => \"iconsmind-Spy\"), \n\t\tarray(\"iconsmind-Student-Female\" => \"iconsmind-Student-Female\"), \n\t\tarray(\"iconsmind-Student-Male\" => \"iconsmind-Student-Male\"), \n\t\tarray(\"iconsmind-Student-MaleFemale\" => \"iconsmind-Student-MaleFemale\"), \n\t\tarray(\"iconsmind-Students\" => \"iconsmind-Students\"), \n\t\tarray(\"iconsmind-Superman\" => \"iconsmind-Superman\"), \n\t\tarray(\"iconsmind-Talk-Man\" => \"iconsmind-Talk-Man\"), \n\t\tarray(\"iconsmind-Teacher\" => \"iconsmind-Teacher\"), \n\t\tarray(\"iconsmind-Waiter\" => \"iconsmind-Waiter\"), \n\t\tarray(\"iconsmind-WomanMan\" => \"iconsmind-WomanMan\"), \n\t\tarray(\"iconsmind-Woman-Sign\" => \"iconsmind-Woman-Sign\"), \n\t\tarray(\"iconsmind-Wonder-Woman\" => \"iconsmind-Wonder-Woman\"), \n\t\tarray(\"iconsmind-Worker\" => \"iconsmind-Worker\"), \n\t\tarray(\"iconsmind-Anchor\" => \"iconsmind-Anchor\"), \n\t\tarray(\"iconsmind-Army-Key\" => \"iconsmind-Army-Key\"), \n\t\tarray(\"iconsmind-Balloon\" => \"iconsmind-Balloon\"), \n\t\tarray(\"iconsmind-Barricade\" => \"iconsmind-Barricade\"), \n\t\tarray(\"iconsmind-Batman-Mask\" => \"iconsmind-Batman-Mask\"), \n\t\tarray(\"iconsmind-Binocular\" => \"iconsmind-Binocular\"), \n\t\tarray(\"iconsmind-Boom\" => \"iconsmind-Boom\"), \n\t\tarray(\"iconsmind-Bucket\" => \"iconsmind-Bucket\"), \n\t\tarray(\"iconsmind-Button\" => \"iconsmind-Button\"), \n\t\tarray(\"iconsmind-Cannon\" => \"iconsmind-Cannon\"), \n\t\tarray(\"iconsmind-Chacked-Flag\" => \"iconsmind-Chacked-Flag\"), \n\t\tarray(\"iconsmind-Chair\" => \"iconsmind-Chair\"), \n\t\tarray(\"iconsmind-Coffee-Machine\" => \"iconsmind-Coffee-Machine\"), \n\t\tarray(\"iconsmind-Crown\" => \"iconsmind-Crown\"), \n\t\tarray(\"iconsmind-Crown-2\" => \"iconsmind-Crown-2\"), \n\t\tarray(\"iconsmind-Dice\" => \"iconsmind-Dice\"), \n\t\tarray(\"iconsmind-Dice-2\" => \"iconsmind-Dice-2\"), \n\t\tarray(\"iconsmind-Domino\" => \"iconsmind-Domino\"), \n\t\tarray(\"iconsmind-Door-Hanger\" => \"iconsmind-Door-Hanger\"), \n\t\tarray(\"iconsmind-Drill\" => \"iconsmind-Drill\"), \n\t\tarray(\"iconsmind-Feather\" => \"iconsmind-Feather\"), \n\t\tarray(\"iconsmind-Fire-Hydrant\" => \"iconsmind-Fire-Hydrant\"), \n\t\tarray(\"iconsmind-Flag\" => \"iconsmind-Flag\"), \n\t\tarray(\"iconsmind-Flag-2\" => \"iconsmind-Flag-2\"), \n\t\tarray(\"iconsmind-Flashlight\" => \"iconsmind-Flashlight\"), \n\t\tarray(\"iconsmind-Footprint2\" => \"iconsmind-Footprint2\"), \n\t\tarray(\"iconsmind-Gas-Pump\" => \"iconsmind-Gas-Pump\"), \n\t\tarray(\"iconsmind-Gift-Box\" => \"iconsmind-Gift-Box\"), \n\t\tarray(\"iconsmind-Gun\" => \"iconsmind-Gun\"), \n\t\tarray(\"iconsmind-Gun-2\" => \"iconsmind-Gun-2\"), \n\t\tarray(\"iconsmind-Gun-3\" => \"iconsmind-Gun-3\"), \n\t\tarray(\"iconsmind-Hammer\" => \"iconsmind-Hammer\"), \n\t\tarray(\"iconsmind-Identification-Badge\" => \"iconsmind-Identification-Badge\"), \n\t\tarray(\"iconsmind-Key\" => \"iconsmind-Key\"), \n\t\tarray(\"iconsmind-Key-2\" => \"iconsmind-Key-2\"), \n\t\tarray(\"iconsmind-Key-3\" => \"iconsmind-Key-3\"), \n\t\tarray(\"iconsmind-Lamp\" => \"iconsmind-Lamp\"), \n\t\tarray(\"iconsmind-Lego\" => \"iconsmind-Lego\"), \n\t\tarray(\"iconsmind-Life-Safer\" => \"iconsmind-Life-Safer\"), \n\t\tarray(\"iconsmind-Light-Bulb\" => \"iconsmind-Light-Bulb\"), \n\t\tarray(\"iconsmind-Light-Bulb2\" => \"iconsmind-Light-Bulb2\"), \n\t\tarray(\"iconsmind-Luggafe-Front\" => \"iconsmind-Luggafe-Front\"), \n\t\tarray(\"iconsmind-Luggage-2\" => \"iconsmind-Luggage-2\"), \n\t\tarray(\"iconsmind-Magic-Wand\" => \"iconsmind-Magic-Wand\"), \n\t\tarray(\"iconsmind-Magnet\" => \"iconsmind-Magnet\"), \n\t\tarray(\"iconsmind-Mask\" => \"iconsmind-Mask\"), \n\t\tarray(\"iconsmind-Menorah\" => \"iconsmind-Menorah\"), \n\t\tarray(\"iconsmind-Mirror\" => \"iconsmind-Mirror\"), \n\t\tarray(\"iconsmind-Movie-Ticket\" => \"iconsmind-Movie-Ticket\"), \n\t\tarray(\"iconsmind-Office-Lamp\" => \"iconsmind-Office-Lamp\"), \n\t\tarray(\"iconsmind-Paint-Brush\" => \"iconsmind-Paint-Brush\"), \n\t\tarray(\"iconsmind-Paint-Bucket\" => \"iconsmind-Paint-Bucket\"), \n\t\tarray(\"iconsmind-Paper-Plane\" => \"iconsmind-Paper-Plane\"), \n\t\tarray(\"iconsmind-Post-Sign\" => \"iconsmind-Post-Sign\"), \n\t\tarray(\"iconsmind-Post-Sign2ways\" => \"iconsmind-Post-Sign2ways\"), \n\t\tarray(\"iconsmind-Puzzle\" => \"iconsmind-Puzzle\"), \n\t\tarray(\"iconsmind-Razzor-Blade\" => \"iconsmind-Razzor-Blade\"), \n\t\tarray(\"iconsmind-Scale\" => \"iconsmind-Scale\"), \n\t\tarray(\"iconsmind-Screwdriver\" => \"iconsmind-Screwdriver\"), \n\t\tarray(\"iconsmind-Sewing-Machine\" => \"iconsmind-Sewing-Machine\"), \n\t\tarray(\"iconsmind-Sheriff-Badge\" => \"iconsmind-Sheriff-Badge\"), \n\t\tarray(\"iconsmind-Stroller\" => \"iconsmind-Stroller\"), \n\t\tarray(\"iconsmind-Suitcase\" => \"iconsmind-Suitcase\"), \n\t\tarray(\"iconsmind-Teddy-Bear\" => \"iconsmind-Teddy-Bear\"), \n\t\tarray(\"iconsmind-Telescope\" => \"iconsmind-Telescope\"), \n\t\tarray(\"iconsmind-Tent\" => \"iconsmind-Tent\"), \n\t\tarray(\"iconsmind-Thread\" => \"iconsmind-Thread\"), \n\t\tarray(\"iconsmind-Ticket\" => \"iconsmind-Ticket\"), \n\t\tarray(\"iconsmind-Time-Bomb\" => \"iconsmind-Time-Bomb\"), \n\t\tarray(\"iconsmind-Tourch\" => \"iconsmind-Tourch\"), \n\t\tarray(\"iconsmind-Vase\" => \"iconsmind-Vase\"), \n\t\tarray(\"iconsmind-Video-GameController\" => \"iconsmind-Video-GameController\"), \n\t\tarray(\"iconsmind-Conservation\" => \"iconsmind-Conservation\"), \n\t\tarray(\"iconsmind-Eci-Icon\" => \"iconsmind-Eci-Icon\"), \n\t\tarray(\"iconsmind-Environmental\" => \"iconsmind-Environmental\"), \n\t\tarray(\"iconsmind-Environmental-2\" => \"iconsmind-Environmental-2\"), \n\t\tarray(\"iconsmind-Environmental-3\" => \"iconsmind-Environmental-3\"), \n\t\tarray(\"iconsmind-Fire-Flame\" => \"iconsmind-Fire-Flame\"), \n\t\tarray(\"iconsmind-Fire-Flame2\" => \"iconsmind-Fire-Flame2\"), \n\t\tarray(\"iconsmind-Flowerpot\" => \"iconsmind-Flowerpot\"), \n\t\tarray(\"iconsmind-Forest\" => \"iconsmind-Forest\"), \n\t\tarray(\"iconsmind-Green-Energy\" => \"iconsmind-Green-Energy\"), \n\t\tarray(\"iconsmind-Green-House\" => \"iconsmind-Green-House\"), \n\t\tarray(\"iconsmind-Landscape2\" => \"iconsmind-Landscape2\"), \n\t\tarray(\"iconsmind-Leafs\" => \"iconsmind-Leafs\"), \n\t\tarray(\"iconsmind-Leafs-2\" => \"iconsmind-Leafs-2\"), \n\t\tarray(\"iconsmind-Light-BulbLeaf\" => \"iconsmind-Light-BulbLeaf\"), \n\t\tarray(\"iconsmind-Palm-Tree\" => \"iconsmind-Palm-Tree\"), \n\t\tarray(\"iconsmind-Plant\" => \"iconsmind-Plant\"), \n\t\tarray(\"iconsmind-Recycling\" => \"iconsmind-Recycling\"), \n\t\tarray(\"iconsmind-Recycling-2\" => \"iconsmind-Recycling-2\"), \n\t\tarray(\"iconsmind-Seed\" => \"iconsmind-Seed\"), \n\t\tarray(\"iconsmind-Trash-withMen\" => \"iconsmind-Trash-withMen\"), \n\t\tarray(\"iconsmind-Tree\" => \"iconsmind-Tree\"), \n\t\tarray(\"iconsmind-Tree-2\" => \"iconsmind-Tree-2\"), \n\t\tarray(\"iconsmind-Tree-3\" => \"iconsmind-Tree-3\"), \n\t\tarray(\"iconsmind-Audio\" => \"iconsmind-Audio\"), \n\t\tarray(\"iconsmind-Back-Music\" => \"iconsmind-Back-Music\"), \n\t\tarray(\"iconsmind-Bell\" => \"iconsmind-Bell\"), \n\t\tarray(\"iconsmind-Casette-Tape\" => \"iconsmind-Casette-Tape\"), \n\t\tarray(\"iconsmind-CD-2\" => \"iconsmind-CD-2\"), \n\t\tarray(\"iconsmind-CD-Cover\" => \"iconsmind-CD-Cover\"), \n\t\tarray(\"iconsmind-Cello\" => \"iconsmind-Cello\"), \n\t\tarray(\"iconsmind-Clef\" => \"iconsmind-Clef\"), \n\t\tarray(\"iconsmind-Drum\" => \"iconsmind-Drum\"), \n\t\tarray(\"iconsmind-Earphones\" => \"iconsmind-Earphones\"), \n\t\tarray(\"iconsmind-Earphones-2\" => \"iconsmind-Earphones-2\"), \n\t\tarray(\"iconsmind-Electric-Guitar\" => \"iconsmind-Electric-Guitar\"), \n\t\tarray(\"iconsmind-Equalizer\" => \"iconsmind-Equalizer\"), \n\t\tarray(\"iconsmind-First\" => \"iconsmind-First\"), \n\t\tarray(\"iconsmind-Guitar\" => \"iconsmind-Guitar\"), \n\t\tarray(\"iconsmind-Headphones\" => \"iconsmind-Headphones\"), \n\t\tarray(\"iconsmind-Keyboard3\" => \"iconsmind-Keyboard3\"), \n\t\tarray(\"iconsmind-Last\" => \"iconsmind-Last\"), \n\t\tarray(\"iconsmind-Loud\" => \"iconsmind-Loud\"), \n\t\tarray(\"iconsmind-Loudspeaker\" => \"iconsmind-Loudspeaker\"), \n\t\tarray(\"iconsmind-Mic\" => \"iconsmind-Mic\"), \n\t\tarray(\"iconsmind-Microphone\" => \"iconsmind-Microphone\"), \n\t\tarray(\"iconsmind-Microphone-2\" => \"iconsmind-Microphone-2\"), \n\t\tarray(\"iconsmind-Microphone-3\" => \"iconsmind-Microphone-3\"), \n\t\tarray(\"iconsmind-Microphone-4\" => \"iconsmind-Microphone-4\"), \n\t\tarray(\"iconsmind-Microphone-5\" => \"iconsmind-Microphone-5\"), \n\t\tarray(\"iconsmind-Microphone-6\" => \"iconsmind-Microphone-6\"), \n\t\tarray(\"iconsmind-Microphone-7\" => \"iconsmind-Microphone-7\"), \n\t\tarray(\"iconsmind-Mixer\" => \"iconsmind-Mixer\"), \n\t\tarray(\"iconsmind-Mp3-File\" => \"iconsmind-Mp3-File\"), \n\t\tarray(\"iconsmind-Music-Note\" => \"iconsmind-Music-Note\"), \n\t\tarray(\"iconsmind-Music-Note2\" => \"iconsmind-Music-Note2\"), \n\t\tarray(\"iconsmind-Music-Note3\" => \"iconsmind-Music-Note3\"), \n\t\tarray(\"iconsmind-Music-Note4\" => \"iconsmind-Music-Note4\"), \n\t\tarray(\"iconsmind-Music-Player\" => \"iconsmind-Music-Player\"), \n\t\tarray(\"iconsmind-Mute\" => \"iconsmind-Mute\"), \n\t\tarray(\"iconsmind-Next-Music\" => \"iconsmind-Next-Music\"), \n\t\tarray(\"iconsmind-Old-Radio\" => \"iconsmind-Old-Radio\"), \n\t\tarray(\"iconsmind-On-Air\" => \"iconsmind-On-Air\"), \n\t\tarray(\"iconsmind-Piano\" => \"iconsmind-Piano\"), \n\t\tarray(\"iconsmind-Play-Music\" => \"iconsmind-Play-Music\"), \n\t\tarray(\"iconsmind-Radio\" => \"iconsmind-Radio\"), \n\t\tarray(\"iconsmind-Record\" => \"iconsmind-Record\"), \n\t\tarray(\"iconsmind-Record-Music\" => \"iconsmind-Record-Music\"), \n\t\tarray(\"iconsmind-Rock-andRoll\" => \"iconsmind-Rock-andRoll\"), \n\t\tarray(\"iconsmind-Saxophone\" => \"iconsmind-Saxophone\"), \n\t\tarray(\"iconsmind-Sound\" => \"iconsmind-Sound\"), \n\t\tarray(\"iconsmind-Sound-Wave\" => \"iconsmind-Sound-Wave\"), \n\t\tarray(\"iconsmind-Speaker\" => \"iconsmind-Speaker\"), \n\t\tarray(\"iconsmind-Stop-Music\" => \"iconsmind-Stop-Music\"), \n\t\tarray(\"iconsmind-Trumpet\" => \"iconsmind-Trumpet\"), \n\t\tarray(\"iconsmind-Voice\" => \"iconsmind-Voice\"), \n\t\tarray(\"iconsmind-Volume-Down\" => \"iconsmind-Volume-Down\"), \n\t\tarray(\"iconsmind-Volume-Up\" => \"iconsmind-Volume-Up\"), \n\t\tarray(\"iconsmind-Back\" => \"iconsmind-Back\"), \n\t\tarray(\"iconsmind-Back-2\" => \"iconsmind-Back-2\"), \n\t\tarray(\"iconsmind-Eject\" => \"iconsmind-Eject\"), \n\t\tarray(\"iconsmind-Eject-2\" => \"iconsmind-Eject-2\"), \n\t\tarray(\"iconsmind-End\" => \"iconsmind-End\"), \n\t\tarray(\"iconsmind-End-2\" => \"iconsmind-End-2\"), \n\t\tarray(\"iconsmind-Next\" => \"iconsmind-Next\"), \n\t\tarray(\"iconsmind-Next-2\" => \"iconsmind-Next-2\"), \n\t\tarray(\"iconsmind-Pause\" => \"iconsmind-Pause\"), \n\t\tarray(\"iconsmind-Pause-2\" => \"iconsmind-Pause-2\"), \n\t\tarray(\"iconsmind-Power-2\" => \"iconsmind-Power-2\"), \n\t\tarray(\"iconsmind-Power-3\" => \"iconsmind-Power-3\"), \n\t\tarray(\"iconsmind-Record2\" => \"iconsmind-Record2\"), \n\t\tarray(\"iconsmind-Record-2\" => \"iconsmind-Record-2\"), \n\t\tarray(\"iconsmind-Repeat\" => \"iconsmind-Repeat\"), \n\t\tarray(\"iconsmind-Repeat-2\" => \"iconsmind-Repeat-2\"), \n\t\tarray(\"iconsmind-Shuffle\" => \"iconsmind-Shuffle\"), \n\t\tarray(\"iconsmind-Shuffle-2\" => \"iconsmind-Shuffle-2\"), \n\t\tarray(\"iconsmind-Start\" => \"iconsmind-Start\"), \n\t\tarray(\"iconsmind-Start-2\" => \"iconsmind-Start-2\"), \n\t\tarray(\"iconsmind-Stop\" => \"iconsmind-Stop\"), \n\t\tarray(\"iconsmind-Stop-2\" => \"iconsmind-Stop-2\"), \n\t\tarray(\"iconsmind-Compass\" => \"iconsmind-Compass\"), \n\t\tarray(\"iconsmind-Compass-2\" => \"iconsmind-Compass-2\"), \n\t\tarray(\"iconsmind-Compass-Rose\" => \"iconsmind-Compass-Rose\"), \n\t\tarray(\"iconsmind-Direction-East\" => \"iconsmind-Direction-East\"), \n\t\tarray(\"iconsmind-Direction-North\" => \"iconsmind-Direction-North\"), \n\t\tarray(\"iconsmind-Direction-South\" => \"iconsmind-Direction-South\"), \n\t\tarray(\"iconsmind-Direction-West\" => \"iconsmind-Direction-West\"), \n\t\tarray(\"iconsmind-Edit-Map\" => \"iconsmind-Edit-Map\"), \n\t\tarray(\"iconsmind-Geo\" => \"iconsmind-Geo\"), \n\t\tarray(\"iconsmind-Geo2\" => \"iconsmind-Geo2\"), \n\t\tarray(\"iconsmind-Geo3\" => \"iconsmind-Geo3\"), \n\t\tarray(\"iconsmind-Geo22\" => \"iconsmind-Geo22\"), \n\t\tarray(\"iconsmind-Geo23\" => \"iconsmind-Geo23\"), \n\t\tarray(\"iconsmind-Geo24\" => \"iconsmind-Geo24\"), \n\t\tarray(\"iconsmind-Geo2-Close\" => \"iconsmind-Geo2-Close\"), \n\t\tarray(\"iconsmind-Geo2-Love\" => \"iconsmind-Geo2-Love\"), \n\t\tarray(\"iconsmind-Geo2-Number\" => \"iconsmind-Geo2-Number\"), \n\t\tarray(\"iconsmind-Geo2-Star\" => \"iconsmind-Geo2-Star\"), \n\t\tarray(\"iconsmind-Geo32\" => \"iconsmind-Geo32\"), \n\t\tarray(\"iconsmind-Geo33\" => \"iconsmind-Geo33\"), \n\t\tarray(\"iconsmind-Geo34\" => \"iconsmind-Geo34\"), \n\t\tarray(\"iconsmind-Geo3-Close\" => \"iconsmind-Geo3-Close\"), \n\t\tarray(\"iconsmind-Geo3-Love\" => \"iconsmind-Geo3-Love\"), \n\t\tarray(\"iconsmind-Geo3-Number\" => \"iconsmind-Geo3-Number\"), \n\t\tarray(\"iconsmind-Geo3-Star\" => \"iconsmind-Geo3-Star\"), \n\t\tarray(\"iconsmind-Geo-Close\" => \"iconsmind-Geo-Close\"), \n\t\tarray(\"iconsmind-Geo-Love\" => \"iconsmind-Geo-Love\"), \n\t\tarray(\"iconsmind-Geo-Number\" => \"iconsmind-Geo-Number\"), \n\t\tarray(\"iconsmind-Geo-Star\" => \"iconsmind-Geo-Star\"), \n\t\tarray(\"iconsmind-Global-Position\" => \"iconsmind-Global-Position\"), \n\t\tarray(\"iconsmind-Globe\" => \"iconsmind-Globe\"), \n\t\tarray(\"iconsmind-Globe-2\" => \"iconsmind-Globe-2\"), \n\t\tarray(\"iconsmind-Location\" => \"iconsmind-Location\"), \n\t\tarray(\"iconsmind-Location-2\" => \"iconsmind-Location-2\"), \n\t\tarray(\"iconsmind-Map\" => \"iconsmind-Map\"), \n\t\tarray(\"iconsmind-Map2\" => \"iconsmind-Map2\"), \n\t\tarray(\"iconsmind-Map-Marker\" => \"iconsmind-Map-Marker\"), \n\t\tarray(\"iconsmind-Map-Marker2\" => \"iconsmind-Map-Marker2\"), \n\t\tarray(\"iconsmind-Map-Marker3\" => \"iconsmind-Map-Marker3\"), \n\t\tarray(\"iconsmind-Road2\" => \"iconsmind-Road2\"), \n\t\tarray(\"iconsmind-Satelite\" => \"iconsmind-Satelite\"), \n\t\tarray(\"iconsmind-Satelite-2\" => \"iconsmind-Satelite-2\"), \n\t\tarray(\"iconsmind-Street-View\" => \"iconsmind-Street-View\"), \n\t\tarray(\"iconsmind-Street-View2\" => \"iconsmind-Street-View2\"), \n\t\tarray(\"iconsmind-Android-Store\" => \"iconsmind-Android-Store\"), \n\t\tarray(\"iconsmind-Apple-Store\" => \"iconsmind-Apple-Store\"), \n\t\tarray(\"iconsmind-Box2\" => \"iconsmind-Box2\"), \n\t\tarray(\"iconsmind-Dropbox\" => \"iconsmind-Dropbox\"), \n\t\tarray(\"iconsmind-Google-Drive\" => \"iconsmind-Google-Drive\"), \n\t\tarray(\"iconsmind-Google-Play\" => \"iconsmind-Google-Play\"), \n\t\tarray(\"iconsmind-Paypal\" => \"iconsmind-Paypal\"), \n\t\tarray(\"iconsmind-Skrill\" => \"iconsmind-Skrill\"), \n\t\tarray(\"iconsmind-X-Box\" => \"iconsmind-X-Box\"), \n\t\tarray(\"iconsmind-Add\" => \"iconsmind-Add\"), \n\t\tarray(\"iconsmind-Back2\" => \"iconsmind-Back2\"), \n\t\tarray(\"iconsmind-Broken-Link\" => \"iconsmind-Broken-Link\"), \n\t\tarray(\"iconsmind-Check\" => \"iconsmind-Check\"), \n\t\tarray(\"iconsmind-Check-2\" => \"iconsmind-Check-2\"), \n\t\tarray(\"iconsmind-Circular-Point\" => \"iconsmind-Circular-Point\"), \n\t\tarray(\"iconsmind-Close\" => \"iconsmind-Close\"), \n\t\tarray(\"iconsmind-Cursor\" => \"iconsmind-Cursor\"), \n\t\tarray(\"iconsmind-Cursor-Click\" => \"iconsmind-Cursor-Click\"), \n\t\tarray(\"iconsmind-Cursor-Click2\" => \"iconsmind-Cursor-Click2\"), \n\t\tarray(\"iconsmind-Cursor-Move\" => \"iconsmind-Cursor-Move\"), \n\t\tarray(\"iconsmind-Cursor-Move2\" => \"iconsmind-Cursor-Move2\"), \n\t\tarray(\"iconsmind-Cursor-Select\" => \"iconsmind-Cursor-Select\"), \n\t\tarray(\"iconsmind-Down\" => \"iconsmind-Down\"), \n\t\tarray(\"iconsmind-Download\" => \"iconsmind-Download\"), \n\t\tarray(\"iconsmind-Downward\" => \"iconsmind-Downward\"), \n\t\tarray(\"iconsmind-Endways\" => \"iconsmind-Endways\"), \n\t\tarray(\"iconsmind-Forward\" => \"iconsmind-Forward\"), \n\t\tarray(\"iconsmind-Left\" => \"iconsmind-Left\"), \n\t\tarray(\"iconsmind-Link\" => \"iconsmind-Link\"), \n\t\tarray(\"iconsmind-Next2\" => \"iconsmind-Next2\"), \n\t\tarray(\"iconsmind-Orientation\" => \"iconsmind-Orientation\"), \n\t\tarray(\"iconsmind-Pointer\" => \"iconsmind-Pointer\"), \n\t\tarray(\"iconsmind-Previous\" => \"iconsmind-Previous\"), \n\t\tarray(\"iconsmind-Redo\" => \"iconsmind-Redo\"), \n\t\tarray(\"iconsmind-Refresh\" => \"iconsmind-Refresh\"), \n\t\tarray(\"iconsmind-Reload\" => \"iconsmind-Reload\"), \n\t\tarray(\"iconsmind-Remove\" => \"iconsmind-Remove\"), \n\t\tarray(\"iconsmind-Repeat2\" => \"iconsmind-Repeat2\"), \n\t\tarray(\"iconsmind-Reset\" => \"iconsmind-Reset\"), \n\t\tarray(\"iconsmind-Rewind\" => \"iconsmind-Rewind\"), \n\t\tarray(\"iconsmind-Right\" => \"iconsmind-Right\"), \n\t\tarray(\"iconsmind-Rotation\" => \"iconsmind-Rotation\"), \n\t\tarray(\"iconsmind-Rotation-390\" => \"iconsmind-Rotation-390\"), \n\t\tarray(\"iconsmind-Spot\" => \"iconsmind-Spot\"), \n\t\tarray(\"iconsmind-Start-ways\" => \"iconsmind-Start-ways\"), \n\t\tarray(\"iconsmind-Synchronize\" => \"iconsmind-Synchronize\"), \n\t\tarray(\"iconsmind-Synchronize-2\" => \"iconsmind-Synchronize-2\"), \n\t\tarray(\"iconsmind-Undo\" => \"iconsmind-Undo\"), \n\t\tarray(\"iconsmind-Up\" => \"iconsmind-Up\"), \n\t\tarray(\"iconsmind-Upload\" => \"iconsmind-Upload\"), \n\t\tarray(\"iconsmind-Upward\" => \"iconsmind-Upward\"), \n\t\tarray(\"iconsmind-Yes\" => \"iconsmind-Yes\"), \n\t\tarray(\"iconsmind-Barricade2\" => \"iconsmind-Barricade2\"), \n\t\tarray(\"iconsmind-Crane\" => \"iconsmind-Crane\"), \n\t\tarray(\"iconsmind-Dam\" => \"iconsmind-Dam\"), \n\t\tarray(\"iconsmind-Drill2\" => \"iconsmind-Drill2\"), \n\t\tarray(\"iconsmind-Electricity\" => \"iconsmind-Electricity\"), \n\t\tarray(\"iconsmind-Explode\" => \"iconsmind-Explode\"), \n\t\tarray(\"iconsmind-Factory\" => \"iconsmind-Factory\"), \n\t\tarray(\"iconsmind-Fuel\" => \"iconsmind-Fuel\"), \n\t\tarray(\"iconsmind-Helmet2\" => \"iconsmind-Helmet2\"), \n\t\tarray(\"iconsmind-Helmet-2\" => \"iconsmind-Helmet-2\"), \n\t\tarray(\"iconsmind-Laser\" => \"iconsmind-Laser\"), \n\t\tarray(\"iconsmind-Mine\" => \"iconsmind-Mine\"), \n\t\tarray(\"iconsmind-Oil\" => \"iconsmind-Oil\"), \n\t\tarray(\"iconsmind-Petrol\" => \"iconsmind-Petrol\"), \n\t\tarray(\"iconsmind-Pipe\" => \"iconsmind-Pipe\"), \n\t\tarray(\"iconsmind-Power-Station\" => \"iconsmind-Power-Station\"), \n\t\tarray(\"iconsmind-Refinery\" => \"iconsmind-Refinery\"), \n\t\tarray(\"iconsmind-Saw\" => \"iconsmind-Saw\"), \n\t\tarray(\"iconsmind-Shovel\" => \"iconsmind-Shovel\"), \n\t\tarray(\"iconsmind-Solar\" => \"iconsmind-Solar\"), \n\t\tarray(\"iconsmind-Wheelbarrow\" => \"iconsmind-Wheelbarrow\"), \n\t\tarray(\"iconsmind-Windmill\" => \"iconsmind-Windmill\"), \n\t\tarray(\"iconsmind-Aa\" => \"iconsmind-Aa\"), \n\t\tarray(\"iconsmind-Add-File\" => \"iconsmind-Add-File\"), \n\t\tarray(\"iconsmind-Address-Book\" => \"iconsmind-Address-Book\"), \n\t\tarray(\"iconsmind-Address-Book2\" => \"iconsmind-Address-Book2\"), \n\t\tarray(\"iconsmind-Add-SpaceAfterParagraph\" => \"iconsmind-Add-SpaceAfterParagraph\"), \n\t\tarray(\"iconsmind-Add-SpaceBeforeParagraph\" => \"iconsmind-Add-SpaceBeforeParagraph\"), \n\t\tarray(\"iconsmind-Airbrush\" => \"iconsmind-Airbrush\"), \n\t\tarray(\"iconsmind-Aligator\" => \"iconsmind-Aligator\"), \n\t\tarray(\"iconsmind-Align-Center\" => \"iconsmind-Align-Center\"), \n\t\tarray(\"iconsmind-Align-JustifyAll\" => \"iconsmind-Align-JustifyAll\"), \n\t\tarray(\"iconsmind-Align-JustifyCenter\" => \"iconsmind-Align-JustifyCenter\"), \n\t\tarray(\"iconsmind-Align-JustifyLeft\" => \"iconsmind-Align-JustifyLeft\"), \n\t\tarray(\"iconsmind-Align-JustifyRight\" => \"iconsmind-Align-JustifyRight\"), \n\t\tarray(\"iconsmind-Align-Left\" => \"iconsmind-Align-Left\"), \n\t\tarray(\"iconsmind-Align-Right\" => \"iconsmind-Align-Right\"), \n\t\tarray(\"iconsmind-Alpha\" => \"iconsmind-Alpha\"), \n\t\tarray(\"iconsmind-AMX\" => \"iconsmind-AMX\"), \n\t\tarray(\"iconsmind-Anchor2\" => \"iconsmind-Anchor2\"), \n\t\tarray(\"iconsmind-Android\" => \"iconsmind-Android\"), \n\t\tarray(\"iconsmind-Angel\" => \"iconsmind-Angel\"), \n\t\tarray(\"iconsmind-Angel-Smiley\" => \"iconsmind-Angel-Smiley\"), \n\t\tarray(\"iconsmind-Angry\" => \"iconsmind-Angry\"), \n\t\tarray(\"iconsmind-Apple\" => \"iconsmind-Apple\"), \n\t\tarray(\"iconsmind-Apple-Bite\" => \"iconsmind-Apple-Bite\"), \n\t\tarray(\"iconsmind-Argentina\" => \"iconsmind-Argentina\"), \n\t\tarray(\"iconsmind-Arrow-Around\" => \"iconsmind-Arrow-Around\"), \n\t\tarray(\"iconsmind-Arrow-Back\" => \"iconsmind-Arrow-Back\"), \n\t\tarray(\"iconsmind-Arrow-Back2\" => \"iconsmind-Arrow-Back2\"), \n\t\tarray(\"iconsmind-Arrow-Back3\" => \"iconsmind-Arrow-Back3\"), \n\t\tarray(\"iconsmind-Arrow-Barrier\" => \"iconsmind-Arrow-Barrier\"), \n\t\tarray(\"iconsmind-Arrow-Circle\" => \"iconsmind-Arrow-Circle\"), \n\t\tarray(\"iconsmind-Arrow-Cross\" => \"iconsmind-Arrow-Cross\"), \n\t\tarray(\"iconsmind-Arrow-Down\" => \"iconsmind-Arrow-Down\"), \n\t\tarray(\"iconsmind-Arrow-Down2\" => \"iconsmind-Arrow-Down2\"), \n\t\tarray(\"iconsmind-Arrow-Down3\" => \"iconsmind-Arrow-Down3\"), \n\t\tarray(\"iconsmind-Arrow-DowninCircle\" => \"iconsmind-Arrow-DowninCircle\"), \n\t\tarray(\"iconsmind-Arrow-Fork\" => \"iconsmind-Arrow-Fork\"), \n\t\tarray(\"iconsmind-Arrow-Forward\" => \"iconsmind-Arrow-Forward\"), \n\t\tarray(\"iconsmind-Arrow-Forward2\" => \"iconsmind-Arrow-Forward2\"), \n\t\tarray(\"iconsmind-Arrow-From\" => \"iconsmind-Arrow-From\"), \n\t\tarray(\"iconsmind-Arrow-Inside\" => \"iconsmind-Arrow-Inside\"), \n\t\tarray(\"iconsmind-Arrow-Inside45\" => \"iconsmind-Arrow-Inside45\"), \n\t\tarray(\"iconsmind-Arrow-InsideGap\" => \"iconsmind-Arrow-InsideGap\"), \n\t\tarray(\"iconsmind-Arrow-InsideGap45\" => \"iconsmind-Arrow-InsideGap45\"), \n\t\tarray(\"iconsmind-Arrow-Into\" => \"iconsmind-Arrow-Into\"), \n\t\tarray(\"iconsmind-Arrow-Join\" => \"iconsmind-Arrow-Join\"), \n\t\tarray(\"iconsmind-Arrow-Junction\" => \"iconsmind-Arrow-Junction\"), \n\t\tarray(\"iconsmind-Arrow-Left\" => \"iconsmind-Arrow-Left\"), \n\t\tarray(\"iconsmind-Arrow-Left2\" => \"iconsmind-Arrow-Left2\"), \n\t\tarray(\"iconsmind-Arrow-LeftinCircle\" => \"iconsmind-Arrow-LeftinCircle\"), \n\t\tarray(\"iconsmind-Arrow-Loop\" => \"iconsmind-Arrow-Loop\"), \n\t\tarray(\"iconsmind-Arrow-Merge\" => \"iconsmind-Arrow-Merge\"), \n\t\tarray(\"iconsmind-Arrow-Mix\" => \"iconsmind-Arrow-Mix\"), \n\t\tarray(\"iconsmind-Arrow-Next\" => \"iconsmind-Arrow-Next\"), \n\t\tarray(\"iconsmind-Arrow-OutLeft\" => \"iconsmind-Arrow-OutLeft\"), \n\t\tarray(\"iconsmind-Arrow-OutRight\" => \"iconsmind-Arrow-OutRight\"), \n\t\tarray(\"iconsmind-Arrow-Outside\" => \"iconsmind-Arrow-Outside\"), \n\t\tarray(\"iconsmind-Arrow-Outside45\" => \"iconsmind-Arrow-Outside45\"), \n\t\tarray(\"iconsmind-Arrow-OutsideGap\" => \"iconsmind-Arrow-OutsideGap\"), \n\t\tarray(\"iconsmind-Arrow-OutsideGap45\" => \"iconsmind-Arrow-OutsideGap45\"), \n\t\tarray(\"iconsmind-Arrow-Over\" => \"iconsmind-Arrow-Over\"), \n\t\tarray(\"iconsmind-Arrow-Refresh\" => \"iconsmind-Arrow-Refresh\"), \n\t\tarray(\"iconsmind-Arrow-Refresh2\" => \"iconsmind-Arrow-Refresh2\"), \n\t\tarray(\"iconsmind-Arrow-Right\" => \"iconsmind-Arrow-Right\"), \n\t\tarray(\"iconsmind-Arrow-Right2\" => \"iconsmind-Arrow-Right2\"), \n\t\tarray(\"iconsmind-Arrow-RightinCircle\" => \"iconsmind-Arrow-RightinCircle\"), \n\t\tarray(\"iconsmind-Arrow-Shuffle\" => \"iconsmind-Arrow-Shuffle\"), \n\t\tarray(\"iconsmind-Arrow-Squiggly\" => \"iconsmind-Arrow-Squiggly\"), \n\t\tarray(\"iconsmind-Arrow-Through\" => \"iconsmind-Arrow-Through\"), \n\t\tarray(\"iconsmind-Arrow-To\" => \"iconsmind-Arrow-To\"), \n\t\tarray(\"iconsmind-Arrow-TurnLeft\" => \"iconsmind-Arrow-TurnLeft\"), \n\t\tarray(\"iconsmind-Arrow-TurnRight\" => \"iconsmind-Arrow-TurnRight\"), \n\t\tarray(\"iconsmind-Arrow-Up\" => \"iconsmind-Arrow-Up\"), \n\t\tarray(\"iconsmind-Arrow-Up2\" => \"iconsmind-Arrow-Up2\"), \n\t\tarray(\"iconsmind-Arrow-Up3\" => \"iconsmind-Arrow-Up3\"), \n\t\tarray(\"iconsmind-Arrow-UpinCircle\" => \"iconsmind-Arrow-UpinCircle\"), \n\t\tarray(\"iconsmind-Arrow-XLeft\" => \"iconsmind-Arrow-XLeft\"), \n\t\tarray(\"iconsmind-Arrow-XRight\" => \"iconsmind-Arrow-XRight\"), \n\t\tarray(\"iconsmind-ATM\" => \"iconsmind-ATM\"), \n\t\tarray(\"iconsmind-At-Sign\" => \"iconsmind-At-Sign\"), \n\t\tarray(\"iconsmind-Baby-Clothes\" => \"iconsmind-Baby-Clothes\"), \n\t\tarray(\"iconsmind-Baby-Clothes2\" => \"iconsmind-Baby-Clothes2\"), \n\t\tarray(\"iconsmind-Bag\" => \"iconsmind-Bag\"), \n\t\tarray(\"iconsmind-Bakelite\" => \"iconsmind-Bakelite\"), \n\t\tarray(\"iconsmind-Banana\" => \"iconsmind-Banana\"), \n\t\tarray(\"iconsmind-Bank\" => \"iconsmind-Bank\"), \n\t\tarray(\"iconsmind-Bar-Chart\" => \"iconsmind-Bar-Chart\"), \n\t\tarray(\"iconsmind-Bar-Chart2\" => \"iconsmind-Bar-Chart2\"), \n\t\tarray(\"iconsmind-Bar-Chart3\" => \"iconsmind-Bar-Chart3\"), \n\t\tarray(\"iconsmind-Bar-Chart4\" => \"iconsmind-Bar-Chart4\"), \n\t\tarray(\"iconsmind-Bar-Chart5\" => \"iconsmind-Bar-Chart5\"), \n\t\tarray(\"iconsmind-Bat\" => \"iconsmind-Bat\"), \n\t\tarray(\"iconsmind-Bathrobe\" => \"iconsmind-Bathrobe\"), \n\t\tarray(\"iconsmind-Battery-0\" => \"iconsmind-Battery-0\"), \n\t\tarray(\"iconsmind-Battery-25\" => \"iconsmind-Battery-25\"), \n\t\tarray(\"iconsmind-Battery-50\" => \"iconsmind-Battery-50\"), \n\t\tarray(\"iconsmind-Battery-75\" => \"iconsmind-Battery-75\"), \n\t\tarray(\"iconsmind-Battery-100\" => \"iconsmind-Battery-100\"), \n\t\tarray(\"iconsmind-Battery-Charge\" => \"iconsmind-Battery-Charge\"), \n\t\tarray(\"iconsmind-Bear\" => \"iconsmind-Bear\"), \n\t\tarray(\"iconsmind-Beard\" => \"iconsmind-Beard\"), \n\t\tarray(\"iconsmind-Beard-2\" => \"iconsmind-Beard-2\"), \n\t\tarray(\"iconsmind-Beard-3\" => \"iconsmind-Beard-3\"), \n\t\tarray(\"iconsmind-Bee\" => \"iconsmind-Bee\"), \n\t\tarray(\"iconsmind-Beer\" => \"iconsmind-Beer\"), \n\t\tarray(\"iconsmind-Beer-Glass\" => \"iconsmind-Beer-Glass\"), \n\t\tarray(\"iconsmind-Bell2\" => \"iconsmind-Bell2\"), \n\t\tarray(\"iconsmind-Belt\" => \"iconsmind-Belt\"), \n\t\tarray(\"iconsmind-Belt-2\" => \"iconsmind-Belt-2\"), \n\t\tarray(\"iconsmind-Belt-3\" => \"iconsmind-Belt-3\"), \n\t\tarray(\"iconsmind-Berlin-Tower\" => \"iconsmind-Berlin-Tower\"), \n\t\tarray(\"iconsmind-Beta\" => \"iconsmind-Beta\"), \n\t\tarray(\"iconsmind-Big-Bang\" => \"iconsmind-Big-Bang\"), \n\t\tarray(\"iconsmind-Big-Data\" => \"iconsmind-Big-Data\"), \n\t\tarray(\"iconsmind-Bikini\" => \"iconsmind-Bikini\"), \n\t\tarray(\"iconsmind-Bilk-Bottle2\" => \"iconsmind-Bilk-Bottle2\"), \n\t\tarray(\"iconsmind-Bird\" => \"iconsmind-Bird\"), \n\t\tarray(\"iconsmind-Bird-DeliveringLetter\" => \"iconsmind-Bird-DeliveringLetter\"), \n\t\tarray(\"iconsmind-Birthday-Cake\" => \"iconsmind-Birthday-Cake\"), \n\t\tarray(\"iconsmind-Bishop\" => \"iconsmind-Bishop\"), \n\t\tarray(\"iconsmind-Blackboard\" => \"iconsmind-Blackboard\"), \n\t\tarray(\"iconsmind-Black-Cat\" => \"iconsmind-Black-Cat\"), \n\t\tarray(\"iconsmind-Block-Cloud\" => \"iconsmind-Block-Cloud\"), \n\t\tarray(\"iconsmind-Blood\" => \"iconsmind-Blood\"), \n\t\tarray(\"iconsmind-Blouse\" => \"iconsmind-Blouse\"), \n\t\tarray(\"iconsmind-Blueprint\" => \"iconsmind-Blueprint\"), \n\t\tarray(\"iconsmind-Board\" => \"iconsmind-Board\"), \n\t\tarray(\"iconsmind-Bone\" => \"iconsmind-Bone\"), \n\t\tarray(\"iconsmind-Bones\" => \"iconsmind-Bones\"), \n\t\tarray(\"iconsmind-Book\" => \"iconsmind-Book\"), \n\t\tarray(\"iconsmind-Bookmark\" => \"iconsmind-Bookmark\"), \n\t\tarray(\"iconsmind-Books\" => \"iconsmind-Books\"), \n\t\tarray(\"iconsmind-Books-2\" => \"iconsmind-Books-2\"), \n\t\tarray(\"iconsmind-Boot\" => \"iconsmind-Boot\"), \n\t\tarray(\"iconsmind-Boot-2\" => \"iconsmind-Boot-2\"), \n\t\tarray(\"iconsmind-Bottom-ToTop\" => \"iconsmind-Bottom-ToTop\"), \n\t\tarray(\"iconsmind-Bow\" => \"iconsmind-Bow\"), \n\t\tarray(\"iconsmind-Bow-2\" => \"iconsmind-Bow-2\"), \n\t\tarray(\"iconsmind-Bow-3\" => \"iconsmind-Bow-3\"), \n\t\tarray(\"iconsmind-Box-Close\" => \"iconsmind-Box-Close\"), \n\t\tarray(\"iconsmind-Box-Full\" => \"iconsmind-Box-Full\"), \n\t\tarray(\"iconsmind-Box-Open\" => \"iconsmind-Box-Open\"), \n\t\tarray(\"iconsmind-Box-withFolders\" => \"iconsmind-Box-withFolders\"), \n\t\tarray(\"iconsmind-Bra\" => \"iconsmind-Bra\"), \n\t\tarray(\"iconsmind-Brain2\" => \"iconsmind-Brain2\"), \n\t\tarray(\"iconsmind-Brain-2\" => \"iconsmind-Brain-2\"), \n\t\tarray(\"iconsmind-Brazil\" => \"iconsmind-Brazil\"), \n\t\tarray(\"iconsmind-Bread\" => \"iconsmind-Bread\"), \n\t\tarray(\"iconsmind-Bread-2\" => \"iconsmind-Bread-2\"), \n\t\tarray(\"iconsmind-Bridge\" => \"iconsmind-Bridge\"), \n\t\tarray(\"iconsmind-Broom\" => \"iconsmind-Broom\"), \n\t\tarray(\"iconsmind-Brush\" => \"iconsmind-Brush\"), \n\t\tarray(\"iconsmind-Bug\" => \"iconsmind-Bug\"), \n\t\tarray(\"iconsmind-Building\" => \"iconsmind-Building\"), \n\t\tarray(\"iconsmind-Butterfly\" => \"iconsmind-Butterfly\"), \n\t\tarray(\"iconsmind-Cake\" => \"iconsmind-Cake\"), \n\t\tarray(\"iconsmind-Calculator\" => \"iconsmind-Calculator\"), \n\t\tarray(\"iconsmind-Calculator-2\" => \"iconsmind-Calculator-2\"), \n\t\tarray(\"iconsmind-Calculator-3\" => \"iconsmind-Calculator-3\"), \n\t\tarray(\"iconsmind-Calendar\" => \"iconsmind-Calendar\"), \n\t\tarray(\"iconsmind-Calendar-2\" => \"iconsmind-Calendar-2\"), \n\t\tarray(\"iconsmind-Calendar-3\" => \"iconsmind-Calendar-3\"), \n\t\tarray(\"iconsmind-Calendar-4\" => \"iconsmind-Calendar-4\"), \n\t\tarray(\"iconsmind-Camel\" => \"iconsmind-Camel\"), \n\t\tarray(\"iconsmind-Can\" => \"iconsmind-Can\"), \n\t\tarray(\"iconsmind-Can-2\" => \"iconsmind-Can-2\"), \n\t\tarray(\"iconsmind-Canada\" => \"iconsmind-Canada\"), \n\t\tarray(\"iconsmind-Candle\" => \"iconsmind-Candle\"), \n\t\tarray(\"iconsmind-Candy\" => \"iconsmind-Candy\"), \n\t\tarray(\"iconsmind-Candy-Cane\" => \"iconsmind-Candy-Cane\"), \n\t\tarray(\"iconsmind-Cap\" => \"iconsmind-Cap\"), \n\t\tarray(\"iconsmind-Cap-2\" => \"iconsmind-Cap-2\"), \n\t\tarray(\"iconsmind-Cap-3\" => \"iconsmind-Cap-3\"), \n\t\tarray(\"iconsmind-Cardigan\" => \"iconsmind-Cardigan\"), \n\t\tarray(\"iconsmind-Cardiovascular\" => \"iconsmind-Cardiovascular\"), \n\t\tarray(\"iconsmind-Castle\" => \"iconsmind-Castle\"), \n\t\tarray(\"iconsmind-Cat\" => \"iconsmind-Cat\"), \n\t\tarray(\"iconsmind-Cathedral\" => \"iconsmind-Cathedral\"), \n\t\tarray(\"iconsmind-Cauldron\" => \"iconsmind-Cauldron\"), \n\t\tarray(\"iconsmind-CD\" => \"iconsmind-CD\"), \n\t\tarray(\"iconsmind-Charger\" => \"iconsmind-Charger\"), \n\t\tarray(\"iconsmind-Checkmate\" => \"iconsmind-Checkmate\"), \n\t\tarray(\"iconsmind-Cheese\" => \"iconsmind-Cheese\"), \n\t\tarray(\"iconsmind-Cheetah\" => \"iconsmind-Cheetah\"), \n\t\tarray(\"iconsmind-Chef-Hat\" => \"iconsmind-Chef-Hat\"), \n\t\tarray(\"iconsmind-Chef-Hat2\" => \"iconsmind-Chef-Hat2\"), \n\t\tarray(\"iconsmind-Chess-Board\" => \"iconsmind-Chess-Board\"), \n\t\tarray(\"iconsmind-Chicken\" => \"iconsmind-Chicken\"), \n\t\tarray(\"iconsmind-Chile\" => \"iconsmind-Chile\"), \n\t\tarray(\"iconsmind-Chimney\" => \"iconsmind-Chimney\"), \n\t\tarray(\"iconsmind-China\" => \"iconsmind-China\"), \n\t\tarray(\"iconsmind-Chinese-Temple\" => \"iconsmind-Chinese-Temple\"), \n\t\tarray(\"iconsmind-Chip\" => \"iconsmind-Chip\"), \n\t\tarray(\"iconsmind-Chopsticks\" => \"iconsmind-Chopsticks\"), \n\t\tarray(\"iconsmind-Chopsticks-2\" => \"iconsmind-Chopsticks-2\"), \n\t\tarray(\"iconsmind-Christmas\" => \"iconsmind-Christmas\"), \n\t\tarray(\"iconsmind-Christmas-Ball\" => \"iconsmind-Christmas-Ball\"), \n\t\tarray(\"iconsmind-Christmas-Bell\" => \"iconsmind-Christmas-Bell\"), \n\t\tarray(\"iconsmind-Christmas-Candle\" => \"iconsmind-Christmas-Candle\"), \n\t\tarray(\"iconsmind-Christmas-Hat\" => \"iconsmind-Christmas-Hat\"), \n\t\tarray(\"iconsmind-Christmas-Sleigh\" => \"iconsmind-Christmas-Sleigh\"), \n\t\tarray(\"iconsmind-Christmas-Snowman\" => \"iconsmind-Christmas-Snowman\"), \n\t\tarray(\"iconsmind-Christmas-Sock\" => \"iconsmind-Christmas-Sock\"), \n\t\tarray(\"iconsmind-Christmas-Tree\" => \"iconsmind-Christmas-Tree\"), \n\t\tarray(\"iconsmind-Chrome\" => \"iconsmind-Chrome\"), \n\t\tarray(\"iconsmind-Chrysler-Building\" => \"iconsmind-Chrysler-Building\"), \n\t\tarray(\"iconsmind-City-Hall\" => \"iconsmind-City-Hall\"), \n\t\tarray(\"iconsmind-Clamp\" => \"iconsmind-Clamp\"), \n\t\tarray(\"iconsmind-Claps\" => \"iconsmind-Claps\"), \n\t\tarray(\"iconsmind-Clothing-Store\" => \"iconsmind-Clothing-Store\"), \n\t\tarray(\"iconsmind-Cloud\" => \"iconsmind-Cloud\"), \n\t\tarray(\"iconsmind-Cloud2\" => \"iconsmind-Cloud2\"), \n\t\tarray(\"iconsmind-Cloud3\" => \"iconsmind-Cloud3\"), \n\t\tarray(\"iconsmind-Cloud-Camera\" => \"iconsmind-Cloud-Camera\"), \n\t\tarray(\"iconsmind-Cloud-Computer\" => \"iconsmind-Cloud-Computer\"), \n\t\tarray(\"iconsmind-Cloud-Email\" => \"iconsmind-Cloud-Email\"), \n\t\tarray(\"iconsmind-Cloud-Laptop\" => \"iconsmind-Cloud-Laptop\"), \n\t\tarray(\"iconsmind-Cloud-Lock\" => \"iconsmind-Cloud-Lock\"), \n\t\tarray(\"iconsmind-Cloud-Music\" => \"iconsmind-Cloud-Music\"), \n\t\tarray(\"iconsmind-Cloud-Picture\" => \"iconsmind-Cloud-Picture\"), \n\t\tarray(\"iconsmind-Cloud-Remove\" => \"iconsmind-Cloud-Remove\"), \n\t\tarray(\"iconsmind-Clouds\" => \"iconsmind-Clouds\"), \n\t\tarray(\"iconsmind-Cloud-Secure\" => \"iconsmind-Cloud-Secure\"), \n\t\tarray(\"iconsmind-Cloud-Settings\" => \"iconsmind-Cloud-Settings\"), \n\t\tarray(\"iconsmind-Cloud-Smartphone\" => \"iconsmind-Cloud-Smartphone\"), \n\t\tarray(\"iconsmind-Cloud-Tablet\" => \"iconsmind-Cloud-Tablet\"), \n\t\tarray(\"iconsmind-Cloud-Video\" => \"iconsmind-Cloud-Video\"), \n\t\tarray(\"iconsmind-Clown\" => \"iconsmind-Clown\"), \n\t\tarray(\"iconsmind-CMYK\" => \"iconsmind-CMYK\"), \n\t\tarray(\"iconsmind-Coat\" => \"iconsmind-Coat\"), \n\t\tarray(\"iconsmind-Cocktail\" => \"iconsmind-Cocktail\"), \n\t\tarray(\"iconsmind-Coconut\" => \"iconsmind-Coconut\"), \n\t\tarray(\"iconsmind-Coffee\" => \"iconsmind-Coffee\"), \n\t\tarray(\"iconsmind-Coffee-2\" => \"iconsmind-Coffee-2\"), \n\t\tarray(\"iconsmind-Coffee-Bean\" => \"iconsmind-Coffee-Bean\"), \n\t\tarray(\"iconsmind-Coffee-toGo\" => \"iconsmind-Coffee-toGo\"), \n\t\tarray(\"iconsmind-Coffin\" => \"iconsmind-Coffin\"), \n\t\tarray(\"iconsmind-Coin\" => \"iconsmind-Coin\"), \n\t\tarray(\"iconsmind-Coins\" => \"iconsmind-Coins\"), \n\t\tarray(\"iconsmind-Coins-2\" => \"iconsmind-Coins-2\"), \n\t\tarray(\"iconsmind-Coins-3\" => \"iconsmind-Coins-3\"), \n\t\tarray(\"iconsmind-Colombia\" => \"iconsmind-Colombia\"), \n\t\tarray(\"iconsmind-Colosseum\" => \"iconsmind-Colosseum\"), \n\t\tarray(\"iconsmind-Column\" => \"iconsmind-Column\"), \n\t\tarray(\"iconsmind-Column-2\" => \"iconsmind-Column-2\"), \n\t\tarray(\"iconsmind-Column-3\" => \"iconsmind-Column-3\"), \n\t\tarray(\"iconsmind-Comb\" => \"iconsmind-Comb\"), \n\t\tarray(\"iconsmind-Comb-2\" => \"iconsmind-Comb-2\"), \n\t\tarray(\"iconsmind-Communication-Tower\" => \"iconsmind-Communication-Tower\"), \n\t\tarray(\"iconsmind-Communication-Tower2\" => \"iconsmind-Communication-Tower2\"), \n\t\tarray(\"iconsmind-Compass2\" => \"iconsmind-Compass2\"), \n\t\tarray(\"iconsmind-Compass-22\" => \"iconsmind-Compass-22\"), \n\t\tarray(\"iconsmind-Computer\" => \"iconsmind-Computer\"), \n\t\tarray(\"iconsmind-Computer-2\" => \"iconsmind-Computer-2\"), \n\t\tarray(\"iconsmind-Computer-3\" => \"iconsmind-Computer-3\"), \n\t\tarray(\"iconsmind-Confused\" => \"iconsmind-Confused\"), \n\t\tarray(\"iconsmind-Contrast\" => \"iconsmind-Contrast\"), \n\t\tarray(\"iconsmind-Cookie-Man\" => \"iconsmind-Cookie-Man\"), \n\t\tarray(\"iconsmind-Cookies\" => \"iconsmind-Cookies\"), \n\t\tarray(\"iconsmind-Cool\" => \"iconsmind-Cool\"), \n\t\tarray(\"iconsmind-Costume\" => \"iconsmind-Costume\"), \n\t\tarray(\"iconsmind-Cow\" => \"iconsmind-Cow\"), \n\t\tarray(\"iconsmind-CPU\" => \"iconsmind-CPU\"), \n\t\tarray(\"iconsmind-Cranium\" => \"iconsmind-Cranium\"), \n\t\tarray(\"iconsmind-Credit-Card\" => \"iconsmind-Credit-Card\"), \n\t\tarray(\"iconsmind-Credit-Card2\" => \"iconsmind-Credit-Card2\"), \n\t\tarray(\"iconsmind-Credit-Card3\" => \"iconsmind-Credit-Card3\"), \n\t\tarray(\"iconsmind-Croissant\" => \"iconsmind-Croissant\"), \n\t\tarray(\"iconsmind-Crying\" => \"iconsmind-Crying\"), \n\t\tarray(\"iconsmind-Cupcake\" => \"iconsmind-Cupcake\"), \n\t\tarray(\"iconsmind-Danemark\" => \"iconsmind-Danemark\"), \n\t\tarray(\"iconsmind-Data\" => \"iconsmind-Data\"), \n\t\tarray(\"iconsmind-Data-Backup\" => \"iconsmind-Data-Backup\"), \n\t\tarray(\"iconsmind-Data-Block\" => \"iconsmind-Data-Block\"), \n\t\tarray(\"iconsmind-Data-Center\" => \"iconsmind-Data-Center\"), \n\t\tarray(\"iconsmind-Data-Clock\" => \"iconsmind-Data-Clock\"), \n\t\tarray(\"iconsmind-Data-Cloud\" => \"iconsmind-Data-Cloud\"), \n\t\tarray(\"iconsmind-Data-Compress\" => \"iconsmind-Data-Compress\"), \n\t\tarray(\"iconsmind-Data-Copy\" => \"iconsmind-Data-Copy\"), \n\t\tarray(\"iconsmind-Data-Download\" => \"iconsmind-Data-Download\"), \n\t\tarray(\"iconsmind-Data-Financial\" => \"iconsmind-Data-Financial\"), \n\t\tarray(\"iconsmind-Data-Key\" => \"iconsmind-Data-Key\"), \n\t\tarray(\"iconsmind-Data-Lock\" => \"iconsmind-Data-Lock\"), \n\t\tarray(\"iconsmind-Data-Network\" => \"iconsmind-Data-Network\"), \n\t\tarray(\"iconsmind-Data-Password\" => \"iconsmind-Data-Password\"), \n\t\tarray(\"iconsmind-Data-Power\" => \"iconsmind-Data-Power\"), \n\t\tarray(\"iconsmind-Data-Refresh\" => \"iconsmind-Data-Refresh\"), \n\t\tarray(\"iconsmind-Data-Save\" => \"iconsmind-Data-Save\"), \n\t\tarray(\"iconsmind-Data-Search\" => \"iconsmind-Data-Search\"), \n\t\tarray(\"iconsmind-Data-Security\" => \"iconsmind-Data-Security\"), \n\t\tarray(\"iconsmind-Data-Settings\" => \"iconsmind-Data-Settings\"), \n\t\tarray(\"iconsmind-Data-Sharing\" => \"iconsmind-Data-Sharing\"), \n\t\tarray(\"iconsmind-Data-Shield\" => \"iconsmind-Data-Shield\"), \n\t\tarray(\"iconsmind-Data-Signal\" => \"iconsmind-Data-Signal\"), \n\t\tarray(\"iconsmind-Data-Storage\" => \"iconsmind-Data-Storage\"), \n\t\tarray(\"iconsmind-Data-Stream\" => \"iconsmind-Data-Stream\"), \n\t\tarray(\"iconsmind-Data-Transfer\" => \"iconsmind-Data-Transfer\"), \n\t\tarray(\"iconsmind-Data-Unlock\" => \"iconsmind-Data-Unlock\"), \n\t\tarray(\"iconsmind-Data-Upload\" => \"iconsmind-Data-Upload\"), \n\t\tarray(\"iconsmind-Data-Yes\" => \"iconsmind-Data-Yes\"), \n\t\tarray(\"iconsmind-Death\" => \"iconsmind-Death\"), \n\t\tarray(\"iconsmind-Debian\" => \"iconsmind-Debian\"), \n\t\tarray(\"iconsmind-Dec\" => \"iconsmind-Dec\"), \n\t\tarray(\"iconsmind-Decrase-Inedit\" => \"iconsmind-Decrase-Inedit\"), \n\t\tarray(\"iconsmind-Deer\" => \"iconsmind-Deer\"), \n\t\tarray(\"iconsmind-Deer-2\" => \"iconsmind-Deer-2\"), \n\t\tarray(\"iconsmind-Delete-File\" => \"iconsmind-Delete-File\"), \n\t\tarray(\"iconsmind-Depression\" => \"iconsmind-Depression\"), \n\t\tarray(\"iconsmind-Device-SyncwithCloud\" => \"iconsmind-Device-SyncwithCloud\"), \n\t\tarray(\"iconsmind-Diamond\" => \"iconsmind-Diamond\"), \n\t\tarray(\"iconsmind-Digital-Drawing\" => \"iconsmind-Digital-Drawing\"), \n\t\tarray(\"iconsmind-Dinosaur\" => \"iconsmind-Dinosaur\"), \n\t\tarray(\"iconsmind-Diploma\" => \"iconsmind-Diploma\"), \n\t\tarray(\"iconsmind-Diploma-2\" => \"iconsmind-Diploma-2\"), \n\t\tarray(\"iconsmind-Disk\" => \"iconsmind-Disk\"), \n\t\tarray(\"iconsmind-Dog\" => \"iconsmind-Dog\"), \n\t\tarray(\"iconsmind-Dollar\" => \"iconsmind-Dollar\"), \n\t\tarray(\"iconsmind-Dollar-Sign\" => \"iconsmind-Dollar-Sign\"), \n\t\tarray(\"iconsmind-Dollar-Sign2\" => \"iconsmind-Dollar-Sign2\"), \n\t\tarray(\"iconsmind-Dolphin\" => \"iconsmind-Dolphin\"), \n\t\tarray(\"iconsmind-Door\" => \"iconsmind-Door\"), \n\t\tarray(\"iconsmind-Double-Circle\" => \"iconsmind-Double-Circle\"), \n\t\tarray(\"iconsmind-Doughnut\" => \"iconsmind-Doughnut\"), \n\t\tarray(\"iconsmind-Dove\" => \"iconsmind-Dove\"), \n\t\tarray(\"iconsmind-Down2\" => \"iconsmind-Down2\"), \n\t\tarray(\"iconsmind-Down-2\" => \"iconsmind-Down-2\"), \n\t\tarray(\"iconsmind-Down-3\" => \"iconsmind-Down-3\"), \n\t\tarray(\"iconsmind-Download2\" => \"iconsmind-Download2\"), \n\t\tarray(\"iconsmind-Download-fromCloud\" => \"iconsmind-Download-fromCloud\"), \n\t\tarray(\"iconsmind-Dress\" => \"iconsmind-Dress\"), \n\t\tarray(\"iconsmind-Duck\" => \"iconsmind-Duck\"), \n\t\tarray(\"iconsmind-DVD\" => \"iconsmind-DVD\"), \n\t\tarray(\"iconsmind-Eagle\" => \"iconsmind-Eagle\"), \n\t\tarray(\"iconsmind-Ear\" => \"iconsmind-Ear\"), \n\t\tarray(\"iconsmind-Eggs\" => \"iconsmind-Eggs\"), \n\t\tarray(\"iconsmind-Egypt\" => \"iconsmind-Egypt\"), \n\t\tarray(\"iconsmind-Eifel-Tower\" => \"iconsmind-Eifel-Tower\"), \n\t\tarray(\"iconsmind-Elbow\" => \"iconsmind-Elbow\"), \n\t\tarray(\"iconsmind-El-Castillo\" => \"iconsmind-El-Castillo\"), \n\t\tarray(\"iconsmind-Elephant\" => \"iconsmind-Elephant\"), \n\t\tarray(\"iconsmind-Embassy\" => \"iconsmind-Embassy\"), \n\t\tarray(\"iconsmind-Empire-StateBuilding\" => \"iconsmind-Empire-StateBuilding\"), \n\t\tarray(\"iconsmind-Empty-Box\" => \"iconsmind-Empty-Box\"), \n\t\tarray(\"iconsmind-End2\" => \"iconsmind-End2\"), \n\t\tarray(\"iconsmind-Envelope\" => \"iconsmind-Envelope\"), \n\t\tarray(\"iconsmind-Envelope-2\" => \"iconsmind-Envelope-2\"), \n\t\tarray(\"iconsmind-Eraser\" => \"iconsmind-Eraser\"), \n\t\tarray(\"iconsmind-Eraser-2\" => \"iconsmind-Eraser-2\"), \n\t\tarray(\"iconsmind-Eraser-3\" => \"iconsmind-Eraser-3\"), \n\t\tarray(\"iconsmind-Euro\" => \"iconsmind-Euro\"), \n\t\tarray(\"iconsmind-Euro-Sign\" => \"iconsmind-Euro-Sign\"), \n\t\tarray(\"iconsmind-Euro-Sign2\" => \"iconsmind-Euro-Sign2\"), \n\t\tarray(\"iconsmind-Evil\" => \"iconsmind-Evil\"), \n\t\tarray(\"iconsmind-Eye2\" => \"iconsmind-Eye2\"), \n\t\tarray(\"iconsmind-Eye-Blind\" => \"iconsmind-Eye-Blind\"), \n\t\tarray(\"iconsmind-Eyebrow\" => \"iconsmind-Eyebrow\"), \n\t\tarray(\"iconsmind-Eyebrow-2\" => \"iconsmind-Eyebrow-2\"), \n\t\tarray(\"iconsmind-Eyebrow-3\" => \"iconsmind-Eyebrow-3\"), \n\t\tarray(\"iconsmind-Eyeglasses-Smiley\" => \"iconsmind-Eyeglasses-Smiley\"), \n\t\tarray(\"iconsmind-Eyeglasses-Smiley2\" => \"iconsmind-Eyeglasses-Smiley2\"), \n\t\tarray(\"iconsmind-Eye-Invisible\" => \"iconsmind-Eye-Invisible\"), \n\t\tarray(\"iconsmind-Eye-Visible\" => \"iconsmind-Eye-Visible\"), \n\t\tarray(\"iconsmind-Face-Style\" => \"iconsmind-Face-Style\"), \n\t\tarray(\"iconsmind-Face-Style2\" => \"iconsmind-Face-Style2\"), \n\t\tarray(\"iconsmind-Face-Style3\" => \"iconsmind-Face-Style3\"), \n\t\tarray(\"iconsmind-Face-Style4\" => \"iconsmind-Face-Style4\"), \n\t\tarray(\"iconsmind-Face-Style5\" => \"iconsmind-Face-Style5\"), \n\t\tarray(\"iconsmind-Face-Style6\" => \"iconsmind-Face-Style6\"), \n\t\tarray(\"iconsmind-Factory2\" => \"iconsmind-Factory2\"), \n\t\tarray(\"iconsmind-Fan\" => \"iconsmind-Fan\"), \n\t\tarray(\"iconsmind-Fashion\" => \"iconsmind-Fashion\"), \n\t\tarray(\"iconsmind-Fax\" => \"iconsmind-Fax\"), \n\t\tarray(\"iconsmind-File\" => \"iconsmind-File\"), \n\t\tarray(\"iconsmind-File-Block\" => \"iconsmind-File-Block\"), \n\t\tarray(\"iconsmind-File-Bookmark\" => \"iconsmind-File-Bookmark\"), \n\t\tarray(\"iconsmind-File-Chart\" => \"iconsmind-File-Chart\"), \n\t\tarray(\"iconsmind-File-Clipboard\" => \"iconsmind-File-Clipboard\"), \n\t\tarray(\"iconsmind-File-ClipboardFileText\" => \"iconsmind-File-ClipboardFileText\"), \n\t\tarray(\"iconsmind-File-ClipboardTextImage\" => \"iconsmind-File-ClipboardTextImage\"), \n\t\tarray(\"iconsmind-File-Cloud\" => \"iconsmind-File-Cloud\"), \n\t\tarray(\"iconsmind-File-Copy\" => \"iconsmind-File-Copy\"), \n\t\tarray(\"iconsmind-File-Copy2\" => \"iconsmind-File-Copy2\"), \n\t\tarray(\"iconsmind-File-CSV\" => \"iconsmind-File-CSV\"), \n\t\tarray(\"iconsmind-File-Download\" => \"iconsmind-File-Download\"), \n\t\tarray(\"iconsmind-File-Edit\" => \"iconsmind-File-Edit\"), \n\t\tarray(\"iconsmind-File-Excel\" => \"iconsmind-File-Excel\"), \n\t\tarray(\"iconsmind-File-Favorite\" => \"iconsmind-File-Favorite\"), \n\t\tarray(\"iconsmind-File-Fire\" => \"iconsmind-File-Fire\"), \n\t\tarray(\"iconsmind-File-Graph\" => \"iconsmind-File-Graph\"), \n\t\tarray(\"iconsmind-File-Hide\" => \"iconsmind-File-Hide\"), \n\t\tarray(\"iconsmind-File-Horizontal\" => \"iconsmind-File-Horizontal\"), \n\t\tarray(\"iconsmind-File-HorizontalText\" => \"iconsmind-File-HorizontalText\"), \n\t\tarray(\"iconsmind-File-HTML\" => \"iconsmind-File-HTML\"), \n\t\tarray(\"iconsmind-File-JPG\" => \"iconsmind-File-JPG\"), \n\t\tarray(\"iconsmind-File-Link\" => \"iconsmind-File-Link\"), \n\t\tarray(\"iconsmind-File-Loading\" => \"iconsmind-File-Loading\"), \n\t\tarray(\"iconsmind-File-Lock\" => \"iconsmind-File-Lock\"), \n\t\tarray(\"iconsmind-File-Love\" => \"iconsmind-File-Love\"), \n\t\tarray(\"iconsmind-File-Music\" => \"iconsmind-File-Music\"), \n\t\tarray(\"iconsmind-File-Network\" => \"iconsmind-File-Network\"), \n\t\tarray(\"iconsmind-File-Pictures\" => \"iconsmind-File-Pictures\"), \n\t\tarray(\"iconsmind-File-Pie\" => \"iconsmind-File-Pie\"), \n\t\tarray(\"iconsmind-File-Presentation\" => \"iconsmind-File-Presentation\"), \n\t\tarray(\"iconsmind-File-Refresh\" => \"iconsmind-File-Refresh\"), \n\t\tarray(\"iconsmind-Files\" => \"iconsmind-Files\"), \n\t\tarray(\"iconsmind-File-Search\" => \"iconsmind-File-Search\"), \n\t\tarray(\"iconsmind-File-Settings\" => \"iconsmind-File-Settings\"), \n\t\tarray(\"iconsmind-File-Share\" => \"iconsmind-File-Share\"), \n\t\tarray(\"iconsmind-File-TextImage\" => \"iconsmind-File-TextImage\"), \n\t\tarray(\"iconsmind-File-Trash\" => \"iconsmind-File-Trash\"), \n\t\tarray(\"iconsmind-File-TXT\" => \"iconsmind-File-TXT\"), \n\t\tarray(\"iconsmind-File-Upload\" => \"iconsmind-File-Upload\"), \n\t\tarray(\"iconsmind-File-Video\" => \"iconsmind-File-Video\"), \n\t\tarray(\"iconsmind-File-Word\" => \"iconsmind-File-Word\"), \n\t\tarray(\"iconsmind-File-Zip\" => \"iconsmind-File-Zip\"), \n\t\tarray(\"iconsmind-Financial\" => \"iconsmind-Financial\"), \n\t\tarray(\"iconsmind-Finger\" => \"iconsmind-Finger\"), \n\t\tarray(\"iconsmind-Fingerprint\" => \"iconsmind-Fingerprint\"), \n\t\tarray(\"iconsmind-Fingerprint-2\" => \"iconsmind-Fingerprint-2\"), \n\t\tarray(\"iconsmind-Firefox\" => \"iconsmind-Firefox\"), \n\t\tarray(\"iconsmind-Fire-Staion\" => \"iconsmind-Fire-Staion\"), \n\t\tarray(\"iconsmind-Fish\" => \"iconsmind-Fish\"), \n\t\tarray(\"iconsmind-Fit-To\" => \"iconsmind-Fit-To\"), \n\t\tarray(\"iconsmind-Fit-To2\" => \"iconsmind-Fit-To2\"), \n\t\tarray(\"iconsmind-Flag2\" => \"iconsmind-Flag2\"), \n\t\tarray(\"iconsmind-Flag-22\" => \"iconsmind-Flag-22\"), \n\t\tarray(\"iconsmind-Flag-3\" => \"iconsmind-Flag-3\"), \n\t\tarray(\"iconsmind-Flag-4\" => \"iconsmind-Flag-4\"), \n\t\tarray(\"iconsmind-Flamingo\" => \"iconsmind-Flamingo\"), \n\t\tarray(\"iconsmind-Folder\" => \"iconsmind-Folder\"), \n\t\tarray(\"iconsmind-Folder-Add\" => \"iconsmind-Folder-Add\"), \n\t\tarray(\"iconsmind-Folder-Archive\" => \"iconsmind-Folder-Archive\"), \n\t\tarray(\"iconsmind-Folder-Binder\" => \"iconsmind-Folder-Binder\"), \n\t\tarray(\"iconsmind-Folder-Binder2\" => \"iconsmind-Folder-Binder2\"), \n\t\tarray(\"iconsmind-Folder-Block\" => \"iconsmind-Folder-Block\"), \n\t\tarray(\"iconsmind-Folder-Bookmark\" => \"iconsmind-Folder-Bookmark\"), \n\t\tarray(\"iconsmind-Folder-Close\" => \"iconsmind-Folder-Close\"), \n\t\tarray(\"iconsmind-Folder-Cloud\" => \"iconsmind-Folder-Cloud\"), \n\t\tarray(\"iconsmind-Folder-Delete\" => \"iconsmind-Folder-Delete\"), \n\t\tarray(\"iconsmind-Folder-Download\" => \"iconsmind-Folder-Download\"), \n\t\tarray(\"iconsmind-Folder-Edit\" => \"iconsmind-Folder-Edit\"), \n\t\tarray(\"iconsmind-Folder-Favorite\" => \"iconsmind-Folder-Favorite\"), \n\t\tarray(\"iconsmind-Folder-Fire\" => \"iconsmind-Folder-Fire\"), \n\t\tarray(\"iconsmind-Folder-Hide\" => \"iconsmind-Folder-Hide\"), \n\t\tarray(\"iconsmind-Folder-Link\" => \"iconsmind-Folder-Link\"), \n\t\tarray(\"iconsmind-Folder-Loading\" => \"iconsmind-Folder-Loading\"), \n\t\tarray(\"iconsmind-Folder-Lock\" => \"iconsmind-Folder-Lock\"), \n\t\tarray(\"iconsmind-Folder-Love\" => \"iconsmind-Folder-Love\"), \n\t\tarray(\"iconsmind-Folder-Music\" => \"iconsmind-Folder-Music\"), \n\t\tarray(\"iconsmind-Folder-Network\" => \"iconsmind-Folder-Network\"), \n\t\tarray(\"iconsmind-Folder-Open\" => \"iconsmind-Folder-Open\"), \n\t\tarray(\"iconsmind-Folder-Open2\" => \"iconsmind-Folder-Open2\"), \n\t\tarray(\"iconsmind-Folder-Organizing\" => \"iconsmind-Folder-Organizing\"), \n\t\tarray(\"iconsmind-Folder-Pictures\" => \"iconsmind-Folder-Pictures\"), \n\t\tarray(\"iconsmind-Folder-Refresh\" => \"iconsmind-Folder-Refresh\"), \n\t\tarray(\"iconsmind-Folder-Remove\" => \"iconsmind-Folder-Remove\"), \n\t\tarray(\"iconsmind-Folders\" => \"iconsmind-Folders\"), \n\t\tarray(\"iconsmind-Folder-Search\" => \"iconsmind-Folder-Search\"), \n\t\tarray(\"iconsmind-Folder-Settings\" => \"iconsmind-Folder-Settings\"), \n\t\tarray(\"iconsmind-Folder-Share\" => \"iconsmind-Folder-Share\"), \n\t\tarray(\"iconsmind-Folder-Trash\" => \"iconsmind-Folder-Trash\"), \n\t\tarray(\"iconsmind-Folder-Upload\" => \"iconsmind-Folder-Upload\"), \n\t\tarray(\"iconsmind-Folder-Video\" => \"iconsmind-Folder-Video\"), \n\t\tarray(\"iconsmind-Folder-WithDocument\" => \"iconsmind-Folder-WithDocument\"), \n\t\tarray(\"iconsmind-Folder-Zip\" => \"iconsmind-Folder-Zip\"), \n\t\tarray(\"iconsmind-Foot\" => \"iconsmind-Foot\"), \n\t\tarray(\"iconsmind-Foot-2\" => \"iconsmind-Foot-2\"), \n\t\tarray(\"iconsmind-Fork\" => \"iconsmind-Fork\"), \n\t\tarray(\"iconsmind-Formula\" => \"iconsmind-Formula\"), \n\t\tarray(\"iconsmind-Fountain-Pen\" => \"iconsmind-Fountain-Pen\"), \n\t\tarray(\"iconsmind-Fox\" => \"iconsmind-Fox\"), \n\t\tarray(\"iconsmind-Frankenstein\" => \"iconsmind-Frankenstein\"), \n\t\tarray(\"iconsmind-French-Fries\" => \"iconsmind-French-Fries\"), \n\t\tarray(\"iconsmind-Frog\" => \"iconsmind-Frog\"), \n\t\tarray(\"iconsmind-Fruits\" => \"iconsmind-Fruits\"), \n\t\tarray(\"iconsmind-Full-Screen\" => \"iconsmind-Full-Screen\"), \n\t\tarray(\"iconsmind-Full-Screen2\" => \"iconsmind-Full-Screen2\"), \n\t\tarray(\"iconsmind-Full-View\" => \"iconsmind-Full-View\"), \n\t\tarray(\"iconsmind-Full-View2\" => \"iconsmind-Full-View2\"), \n\t\tarray(\"iconsmind-Funky\" => \"iconsmind-Funky\"), \n\t\tarray(\"iconsmind-Funny-Bicycle\" => \"iconsmind-Funny-Bicycle\"), \n\t\tarray(\"iconsmind-Gamepad\" => \"iconsmind-Gamepad\"), \n\t\tarray(\"iconsmind-Gamepad-2\" => \"iconsmind-Gamepad-2\"), \n\t\tarray(\"iconsmind-Gay\" => \"iconsmind-Gay\"), \n\t\tarray(\"iconsmind-Geek2\" => \"iconsmind-Geek2\"), \n\t\tarray(\"iconsmind-Gentleman\" => \"iconsmind-Gentleman\"), \n\t\tarray(\"iconsmind-Giraffe\" => \"iconsmind-Giraffe\"), \n\t\tarray(\"iconsmind-Glasses\" => \"iconsmind-Glasses\"), \n\t\tarray(\"iconsmind-Glasses-2\" => \"iconsmind-Glasses-2\"), \n\t\tarray(\"iconsmind-Glasses-3\" => \"iconsmind-Glasses-3\"), \n\t\tarray(\"iconsmind-Glass-Water\" => \"iconsmind-Glass-Water\"), \n\t\tarray(\"iconsmind-Gloves\" => \"iconsmind-Gloves\"), \n\t\tarray(\"iconsmind-Go-Bottom\" => \"iconsmind-Go-Bottom\"), \n\t\tarray(\"iconsmind-Gorilla\" => \"iconsmind-Gorilla\"), \n\t\tarray(\"iconsmind-Go-Top\" => \"iconsmind-Go-Top\"), \n\t\tarray(\"iconsmind-Grave\" => \"iconsmind-Grave\"), \n\t\tarray(\"iconsmind-Graveyard\" => \"iconsmind-Graveyard\"), \n\t\tarray(\"iconsmind-Greece\" => \"iconsmind-Greece\"), \n\t\tarray(\"iconsmind-Hair\" => \"iconsmind-Hair\"), \n\t\tarray(\"iconsmind-Hair-2\" => \"iconsmind-Hair-2\"), \n\t\tarray(\"iconsmind-Hair-3\" => \"iconsmind-Hair-3\"), \n\t\tarray(\"iconsmind-Halloween-HalfMoon\" => \"iconsmind-Halloween-HalfMoon\"), \n\t\tarray(\"iconsmind-Halloween-Moon\" => \"iconsmind-Halloween-Moon\"), \n\t\tarray(\"iconsmind-Hamburger\" => \"iconsmind-Hamburger\"), \n\t\tarray(\"iconsmind-Hand\" => \"iconsmind-Hand\"), \n\t\tarray(\"iconsmind-Hands\" => \"iconsmind-Hands\"), \n\t\tarray(\"iconsmind-Handshake\" => \"iconsmind-Handshake\"), \n\t\tarray(\"iconsmind-Hanger\" => \"iconsmind-Hanger\"), \n\t\tarray(\"iconsmind-Happy\" => \"iconsmind-Happy\"), \n\t\tarray(\"iconsmind-Hat\" => \"iconsmind-Hat\"), \n\t\tarray(\"iconsmind-Hat-2\" => \"iconsmind-Hat-2\"), \n\t\tarray(\"iconsmind-Haunted-House\" => \"iconsmind-Haunted-House\"), \n\t\tarray(\"iconsmind-HD\" => \"iconsmind-HD\"), \n\t\tarray(\"iconsmind-HDD\" => \"iconsmind-HDD\"), \n\t\tarray(\"iconsmind-Heart2\" => \"iconsmind-Heart2\"), \n\t\tarray(\"iconsmind-Heels\" => \"iconsmind-Heels\"), \n\t\tarray(\"iconsmind-Heels-2\" => \"iconsmind-Heels-2\"), \n\t\tarray(\"iconsmind-Hello\" => \"iconsmind-Hello\"), \n\t\tarray(\"iconsmind-Hipo\" => \"iconsmind-Hipo\"), \n\t\tarray(\"iconsmind-Hipster-Glasses\" => \"iconsmind-Hipster-Glasses\"), \n\t\tarray(\"iconsmind-Hipster-Glasses2\" => \"iconsmind-Hipster-Glasses2\"), \n\t\tarray(\"iconsmind-Hipster-Glasses3\" => \"iconsmind-Hipster-Glasses3\"), \n\t\tarray(\"iconsmind-Hipster-Headphones\" => \"iconsmind-Hipster-Headphones\"), \n\t\tarray(\"iconsmind-Hipster-Men\" => \"iconsmind-Hipster-Men\"), \n\t\tarray(\"iconsmind-Hipster-Men2\" => \"iconsmind-Hipster-Men2\"), \n\t\tarray(\"iconsmind-Hipster-Men3\" => \"iconsmind-Hipster-Men3\"), \n\t\tarray(\"iconsmind-Hipster-Sunglasses\" => \"iconsmind-Hipster-Sunglasses\"), \n\t\tarray(\"iconsmind-Hipster-Sunglasses2\" => \"iconsmind-Hipster-Sunglasses2\"), \n\t\tarray(\"iconsmind-Hipster-Sunglasses3\" => \"iconsmind-Hipster-Sunglasses3\"), \n\t\tarray(\"iconsmind-Holly\" => \"iconsmind-Holly\"), \n\t\tarray(\"iconsmind-Home2\" => \"iconsmind-Home2\"), \n\t\tarray(\"iconsmind-Home-2\" => \"iconsmind-Home-2\"), \n\t\tarray(\"iconsmind-Home-3\" => \"iconsmind-Home-3\"), \n\t\tarray(\"iconsmind-Home-4\" => \"iconsmind-Home-4\"), \n\t\tarray(\"iconsmind-Honey\" => \"iconsmind-Honey\"), \n\t\tarray(\"iconsmind-Hong-Kong\" => \"iconsmind-Hong-Kong\"), \n\t\tarray(\"iconsmind-Hoodie\" => \"iconsmind-Hoodie\"), \n\t\tarray(\"iconsmind-Horror\" => \"iconsmind-Horror\"), \n\t\tarray(\"iconsmind-Horse\" => \"iconsmind-Horse\"), \n\t\tarray(\"iconsmind-Hospital2\" => \"iconsmind-Hospital2\"), \n\t\tarray(\"iconsmind-Host\" => \"iconsmind-Host\"), \n\t\tarray(\"iconsmind-Hot-Dog\" => \"iconsmind-Hot-Dog\"), \n\t\tarray(\"iconsmind-Hotel\" => \"iconsmind-Hotel\"), \n\t\tarray(\"iconsmind-Hub\" => \"iconsmind-Hub\"), \n\t\tarray(\"iconsmind-Humor\" => \"iconsmind-Humor\"), \n\t\tarray(\"iconsmind-Ice-Cream\" => \"iconsmind-Ice-Cream\"), \n\t\tarray(\"iconsmind-Idea\" => \"iconsmind-Idea\"), \n\t\tarray(\"iconsmind-Inbox\" => \"iconsmind-Inbox\"), \n\t\tarray(\"iconsmind-Inbox-Empty\" => \"iconsmind-Inbox-Empty\"), \n\t\tarray(\"iconsmind-Inbox-Forward\" => \"iconsmind-Inbox-Forward\"), \n\t\tarray(\"iconsmind-Inbox-Full\" => \"iconsmind-Inbox-Full\"), \n\t\tarray(\"iconsmind-Inbox-Into\" => \"iconsmind-Inbox-Into\"), \n\t\tarray(\"iconsmind-Inbox-Out\" => \"iconsmind-Inbox-Out\"), \n\t\tarray(\"iconsmind-Inbox-Reply\" => \"iconsmind-Inbox-Reply\"), \n\t\tarray(\"iconsmind-Increase-Inedit\" => \"iconsmind-Increase-Inedit\"), \n\t\tarray(\"iconsmind-Indent-FirstLine\" => \"iconsmind-Indent-FirstLine\"), \n\t\tarray(\"iconsmind-Indent-LeftMargin\" => \"iconsmind-Indent-LeftMargin\"), \n\t\tarray(\"iconsmind-Indent-RightMargin\" => \"iconsmind-Indent-RightMargin\"), \n\t\tarray(\"iconsmind-India\" => \"iconsmind-India\"), \n\t\tarray(\"iconsmind-Internet-Explorer\" => \"iconsmind-Internet-Explorer\"), \n\t\tarray(\"iconsmind-Internet-Smiley\" => \"iconsmind-Internet-Smiley\"), \n\t\tarray(\"iconsmind-iOS-Apple\" => \"iconsmind-iOS-Apple\"), \n\t\tarray(\"iconsmind-Israel\" => \"iconsmind-Israel\"), \n\t\tarray(\"iconsmind-Jacket\" => \"iconsmind-Jacket\"), \n\t\tarray(\"iconsmind-Jamaica\" => \"iconsmind-Jamaica\"), \n\t\tarray(\"iconsmind-Japan\" => \"iconsmind-Japan\"), \n\t\tarray(\"iconsmind-Japanese-Gate\" => \"iconsmind-Japanese-Gate\"), \n\t\tarray(\"iconsmind-Jeans\" => \"iconsmind-Jeans\"), \n\t\tarray(\"iconsmind-Joystick\" => \"iconsmind-Joystick\"), \n\t\tarray(\"iconsmind-Juice\" => \"iconsmind-Juice\"), \n\t\tarray(\"iconsmind-Kangoroo\" => \"iconsmind-Kangoroo\"), \n\t\tarray(\"iconsmind-Kenya\" => \"iconsmind-Kenya\"), \n\t\tarray(\"iconsmind-Keyboard\" => \"iconsmind-Keyboard\"), \n\t\tarray(\"iconsmind-Keypad\" => \"iconsmind-Keypad\"), \n\t\tarray(\"iconsmind-King\" => \"iconsmind-King\"), \n\t\tarray(\"iconsmind-Kiss\" => \"iconsmind-Kiss\"), \n\t\tarray(\"iconsmind-Knee\" => \"iconsmind-Knee\"), \n\t\tarray(\"iconsmind-Knife\" => \"iconsmind-Knife\"), \n\t\tarray(\"iconsmind-Knight\" => \"iconsmind-Knight\"), \n\t\tarray(\"iconsmind-Koala\" => \"iconsmind-Koala\"), \n\t\tarray(\"iconsmind-Korea\" => \"iconsmind-Korea\"), \n\t\tarray(\"iconsmind-Lantern\" => \"iconsmind-Lantern\"), \n\t\tarray(\"iconsmind-Laptop\" => \"iconsmind-Laptop\"), \n\t\tarray(\"iconsmind-Laptop-2\" => \"iconsmind-Laptop-2\"), \n\t\tarray(\"iconsmind-Laptop-3\" => \"iconsmind-Laptop-3\"), \n\t\tarray(\"iconsmind-Laptop-Phone\" => \"iconsmind-Laptop-Phone\"), \n\t\tarray(\"iconsmind-Laptop-Tablet\" => \"iconsmind-Laptop-Tablet\"), \n\t\tarray(\"iconsmind-Laughing\" => \"iconsmind-Laughing\"), \n\t\tarray(\"iconsmind-Leaning-Tower\" => \"iconsmind-Leaning-Tower\"), \n\t\tarray(\"iconsmind-Left2\" => \"iconsmind-Left2\"), \n\t\tarray(\"iconsmind-Left-2\" => \"iconsmind-Left-2\"), \n\t\tarray(\"iconsmind-Left-3\" => \"iconsmind-Left-3\"), \n\t\tarray(\"iconsmind-Left-ToRight\" => \"iconsmind-Left-ToRight\"), \n\t\tarray(\"iconsmind-Leg\" => \"iconsmind-Leg\"), \n\t\tarray(\"iconsmind-Leg-2\" => \"iconsmind-Leg-2\"), \n\t\tarray(\"iconsmind-Lemon\" => \"iconsmind-Lemon\"), \n\t\tarray(\"iconsmind-Leopard\" => \"iconsmind-Leopard\"), \n\t\tarray(\"iconsmind-Letter-Close\" => \"iconsmind-Letter-Close\"), \n\t\tarray(\"iconsmind-Letter-Open\" => \"iconsmind-Letter-Open\"), \n\t\tarray(\"iconsmind-Letter-Sent\" => \"iconsmind-Letter-Sent\"), \n\t\tarray(\"iconsmind-Library2\" => \"iconsmind-Library2\"), \n\t\tarray(\"iconsmind-Lighthouse\" => \"iconsmind-Lighthouse\"), \n\t\tarray(\"iconsmind-Line-Chart\" => \"iconsmind-Line-Chart\"), \n\t\tarray(\"iconsmind-Line-Chart2\" => \"iconsmind-Line-Chart2\"), \n\t\tarray(\"iconsmind-Line-Chart3\" => \"iconsmind-Line-Chart3\"), \n\t\tarray(\"iconsmind-Line-Chart4\" => \"iconsmind-Line-Chart4\"), \n\t\tarray(\"iconsmind-Line-Spacing\" => \"iconsmind-Line-Spacing\"), \n\t\tarray(\"iconsmind-Linux\" => \"iconsmind-Linux\"), \n\t\tarray(\"iconsmind-Lion\" => \"iconsmind-Lion\"), \n\t\tarray(\"iconsmind-Lollipop\" => \"iconsmind-Lollipop\"), \n\t\tarray(\"iconsmind-Lollipop-2\" => \"iconsmind-Lollipop-2\"), \n\t\tarray(\"iconsmind-Loop\" => \"iconsmind-Loop\"), \n\t\tarray(\"iconsmind-Love2\" => \"iconsmind-Love2\"), \n\t\tarray(\"iconsmind-Mail\" => \"iconsmind-Mail\"), \n\t\tarray(\"iconsmind-Mail-2\" => \"iconsmind-Mail-2\"), \n\t\tarray(\"iconsmind-Mail-3\" => \"iconsmind-Mail-3\"), \n\t\tarray(\"iconsmind-Mail-Add\" => \"iconsmind-Mail-Add\"), \n\t\tarray(\"iconsmind-Mail-Attachement\" => \"iconsmind-Mail-Attachement\"), \n\t\tarray(\"iconsmind-Mail-Block\" => \"iconsmind-Mail-Block\"), \n\t\tarray(\"iconsmind-Mailbox-Empty\" => \"iconsmind-Mailbox-Empty\"), \n\t\tarray(\"iconsmind-Mailbox-Full\" => \"iconsmind-Mailbox-Full\"), \n\t\tarray(\"iconsmind-Mail-Delete\" => \"iconsmind-Mail-Delete\"), \n\t\tarray(\"iconsmind-Mail-Favorite\" => \"iconsmind-Mail-Favorite\"), \n\t\tarray(\"iconsmind-Mail-Forward\" => \"iconsmind-Mail-Forward\"), \n\t\tarray(\"iconsmind-Mail-Gallery\" => \"iconsmind-Mail-Gallery\"), \n\t\tarray(\"iconsmind-Mail-Inbox\" => \"iconsmind-Mail-Inbox\"), \n\t\tarray(\"iconsmind-Mail-Link\" => \"iconsmind-Mail-Link\"), \n\t\tarray(\"iconsmind-Mail-Lock\" => \"iconsmind-Mail-Lock\"), \n\t\tarray(\"iconsmind-Mail-Love\" => \"iconsmind-Mail-Love\"), \n\t\tarray(\"iconsmind-Mail-Money\" => \"iconsmind-Mail-Money\"), \n\t\tarray(\"iconsmind-Mail-Open\" => \"iconsmind-Mail-Open\"), \n\t\tarray(\"iconsmind-Mail-Outbox\" => \"iconsmind-Mail-Outbox\"), \n\t\tarray(\"iconsmind-Mail-Password\" => \"iconsmind-Mail-Password\"), \n\t\tarray(\"iconsmind-Mail-Photo\" => \"iconsmind-Mail-Photo\"), \n\t\tarray(\"iconsmind-Mail-Read\" => \"iconsmind-Mail-Read\"), \n\t\tarray(\"iconsmind-Mail-Removex\" => \"iconsmind-Mail-Removex\"), \n\t\tarray(\"iconsmind-Mail-Reply\" => \"iconsmind-Mail-Reply\"), \n\t\tarray(\"iconsmind-Mail-ReplyAll\" => \"iconsmind-Mail-ReplyAll\"), \n\t\tarray(\"iconsmind-Mail-Search\" => \"iconsmind-Mail-Search\"), \n\t\tarray(\"iconsmind-Mail-Send\" => \"iconsmind-Mail-Send\"), \n\t\tarray(\"iconsmind-Mail-Settings\" => \"iconsmind-Mail-Settings\"), \n\t\tarray(\"iconsmind-Mail-Unread\" => \"iconsmind-Mail-Unread\"), \n\t\tarray(\"iconsmind-Mail-Video\" => \"iconsmind-Mail-Video\"), \n\t\tarray(\"iconsmind-Mail-withAtSign\" => \"iconsmind-Mail-withAtSign\"), \n\t\tarray(\"iconsmind-Mail-WithCursors\" => \"iconsmind-Mail-WithCursors\"), \n\t\tarray(\"iconsmind-Mans-Underwear\" => \"iconsmind-Mans-Underwear\"), \n\t\tarray(\"iconsmind-Mans-Underwear2\" => \"iconsmind-Mans-Underwear2\"), \n\t\tarray(\"iconsmind-Marker\" => \"iconsmind-Marker\"), \n\t\tarray(\"iconsmind-Marker-2\" => \"iconsmind-Marker-2\"), \n\t\tarray(\"iconsmind-Marker-3\" => \"iconsmind-Marker-3\"), \n\t\tarray(\"iconsmind-Martini-Glass\" => \"iconsmind-Martini-Glass\"), \n\t\tarray(\"iconsmind-Master-Card\" => \"iconsmind-Master-Card\"), \n\t\tarray(\"iconsmind-Maximize\" => \"iconsmind-Maximize\"), \n\t\tarray(\"iconsmind-Megaphone\" => \"iconsmind-Megaphone\"), \n\t\tarray(\"iconsmind-Mexico\" => \"iconsmind-Mexico\"), \n\t\tarray(\"iconsmind-Milk-Bottle\" => \"iconsmind-Milk-Bottle\"), \n\t\tarray(\"iconsmind-Minimize\" => \"iconsmind-Minimize\"), \n\t\tarray(\"iconsmind-Money\" => \"iconsmind-Money\"), \n\t\tarray(\"iconsmind-Money-2\" => \"iconsmind-Money-2\"), \n\t\tarray(\"iconsmind-Money-Bag\" => \"iconsmind-Money-Bag\"), \n\t\tarray(\"iconsmind-Monitor\" => \"iconsmind-Monitor\"), \n\t\tarray(\"iconsmind-Monitor-2\" => \"iconsmind-Monitor-2\"), \n\t\tarray(\"iconsmind-Monitor-3\" => \"iconsmind-Monitor-3\"), \n\t\tarray(\"iconsmind-Monitor-4\" => \"iconsmind-Monitor-4\"), \n\t\tarray(\"iconsmind-Monitor-5\" => \"iconsmind-Monitor-5\"), \n\t\tarray(\"iconsmind-Monitor-Laptop\" => \"iconsmind-Monitor-Laptop\"), \n\t\tarray(\"iconsmind-Monitor-phone\" => \"iconsmind-Monitor-phone\"), \n\t\tarray(\"iconsmind-Monitor-Tablet\" => \"iconsmind-Monitor-Tablet\"), \n\t\tarray(\"iconsmind-Monitor-Vertical\" => \"iconsmind-Monitor-Vertical\"), \n\t\tarray(\"iconsmind-Monkey\" => \"iconsmind-Monkey\"), \n\t\tarray(\"iconsmind-Monster\" => \"iconsmind-Monster\"), \n\t\tarray(\"iconsmind-Morocco\" => \"iconsmind-Morocco\"), \n\t\tarray(\"iconsmind-Mouse\" => \"iconsmind-Mouse\"), \n\t\tarray(\"iconsmind-Mouse-2\" => \"iconsmind-Mouse-2\"), \n\t\tarray(\"iconsmind-Mouse-3\" => \"iconsmind-Mouse-3\"), \n\t\tarray(\"iconsmind-Moustache-Smiley\" => \"iconsmind-Moustache-Smiley\"), \n\t\tarray(\"iconsmind-Museum\" => \"iconsmind-Museum\"), \n\t\tarray(\"iconsmind-Mushroom\" => \"iconsmind-Mushroom\"), \n\t\tarray(\"iconsmind-Mustache\" => \"iconsmind-Mustache\"), \n\t\tarray(\"iconsmind-Mustache-2\" => \"iconsmind-Mustache-2\"), \n\t\tarray(\"iconsmind-Mustache-3\" => \"iconsmind-Mustache-3\"), \n\t\tarray(\"iconsmind-Mustache-4\" => \"iconsmind-Mustache-4\"), \n\t\tarray(\"iconsmind-Mustache-5\" => \"iconsmind-Mustache-5\"), \n\t\tarray(\"iconsmind-Navigate-End\" => \"iconsmind-Navigate-End\"), \n\t\tarray(\"iconsmind-Navigat-Start\" => \"iconsmind-Navigat-Start\"), \n\t\tarray(\"iconsmind-Nepal\" => \"iconsmind-Nepal\"), \n\t\tarray(\"iconsmind-Netscape\" => \"iconsmind-Netscape\"), \n\t\tarray(\"iconsmind-New-Mail\" => \"iconsmind-New-Mail\"), \n\t\tarray(\"iconsmind-Newspaper\" => \"iconsmind-Newspaper\"), \n\t\tarray(\"iconsmind-Newspaper-2\" => \"iconsmind-Newspaper-2\"), \n\t\tarray(\"iconsmind-No-Battery\" => \"iconsmind-No-Battery\"), \n\t\tarray(\"iconsmind-Noose\" => \"iconsmind-Noose\"), \n\t\tarray(\"iconsmind-Note\" => \"iconsmind-Note\"), \n\t\tarray(\"iconsmind-Notepad\" => \"iconsmind-Notepad\"), \n\t\tarray(\"iconsmind-Notepad-2\" => \"iconsmind-Notepad-2\"), \n\t\tarray(\"iconsmind-Office\" => \"iconsmind-Office\"), \n\t\tarray(\"iconsmind-Old-Camera\" => \"iconsmind-Old-Camera\"), \n\t\tarray(\"iconsmind-Old-Cassette\" => \"iconsmind-Old-Cassette\"), \n\t\tarray(\"iconsmind-Old-Sticky\" => \"iconsmind-Old-Sticky\"), \n\t\tarray(\"iconsmind-Old-Sticky2\" => \"iconsmind-Old-Sticky2\"), \n\t\tarray(\"iconsmind-Old-Telephone\" => \"iconsmind-Old-Telephone\"), \n\t\tarray(\"iconsmind-Open-Banana\" => \"iconsmind-Open-Banana\"), \n\t\tarray(\"iconsmind-Open-Book\" => \"iconsmind-Open-Book\"), \n\t\tarray(\"iconsmind-Opera\" => \"iconsmind-Opera\"), \n\t\tarray(\"iconsmind-Opera-House\" => \"iconsmind-Opera-House\"), \n\t\tarray(\"iconsmind-Orientation2\" => \"iconsmind-Orientation2\"), \n\t\tarray(\"iconsmind-Orientation-2\" => \"iconsmind-Orientation-2\"), \n\t\tarray(\"iconsmind-Ornament\" => \"iconsmind-Ornament\"), \n\t\tarray(\"iconsmind-Owl\" => \"iconsmind-Owl\"), \n\t\tarray(\"iconsmind-Paintbrush\" => \"iconsmind-Paintbrush\"), \n\t\tarray(\"iconsmind-Palette\" => \"iconsmind-Palette\"), \n\t\tarray(\"iconsmind-Panda\" => \"iconsmind-Panda\"), \n\t\tarray(\"iconsmind-Pantheon\" => \"iconsmind-Pantheon\"), \n\t\tarray(\"iconsmind-Pantone\" => \"iconsmind-Pantone\"), \n\t\tarray(\"iconsmind-Pants\" => \"iconsmind-Pants\"), \n\t\tarray(\"iconsmind-Paper\" => \"iconsmind-Paper\"), \n\t\tarray(\"iconsmind-Parrot\" => \"iconsmind-Parrot\"), \n\t\tarray(\"iconsmind-Pawn\" => \"iconsmind-Pawn\"), \n\t\tarray(\"iconsmind-Pen\" => \"iconsmind-Pen\"), \n\t\tarray(\"iconsmind-Pen-2\" => \"iconsmind-Pen-2\"), \n\t\tarray(\"iconsmind-Pen-3\" => \"iconsmind-Pen-3\"), \n\t\tarray(\"iconsmind-Pen-4\" => \"iconsmind-Pen-4\"), \n\t\tarray(\"iconsmind-Pen-5\" => \"iconsmind-Pen-5\"), \n\t\tarray(\"iconsmind-Pen-6\" => \"iconsmind-Pen-6\"), \n\t\tarray(\"iconsmind-Pencil\" => \"iconsmind-Pencil\"), \n\t\tarray(\"iconsmind-Pencil-Ruler\" => \"iconsmind-Pencil-Ruler\"), \n\t\tarray(\"iconsmind-Penguin\" => \"iconsmind-Penguin\"), \n\t\tarray(\"iconsmind-Pentagon\" => \"iconsmind-Pentagon\"), \n\t\tarray(\"iconsmind-People-onCloud\" => \"iconsmind-People-onCloud\"), \n\t\tarray(\"iconsmind-Pepper\" => \"iconsmind-Pepper\"), \n\t\tarray(\"iconsmind-Pepper-withFire\" => \"iconsmind-Pepper-withFire\"), \n\t\tarray(\"iconsmind-Petronas-Tower\" => \"iconsmind-Petronas-Tower\"), \n\t\tarray(\"iconsmind-Philipines\" => \"iconsmind-Philipines\"), \n\t\tarray(\"iconsmind-Phone\" => \"iconsmind-Phone\"), \n\t\tarray(\"iconsmind-Phone-2\" => \"iconsmind-Phone-2\"), \n\t\tarray(\"iconsmind-Phone-3\" => \"iconsmind-Phone-3\"), \n\t\tarray(\"iconsmind-Phone-3G\" => \"iconsmind-Phone-3G\"), \n\t\tarray(\"iconsmind-Phone-4G\" => \"iconsmind-Phone-4G\"), \n\t\tarray(\"iconsmind-Phone-Simcard\" => \"iconsmind-Phone-Simcard\"), \n\t\tarray(\"iconsmind-Phone-SMS\" => \"iconsmind-Phone-SMS\"), \n\t\tarray(\"iconsmind-Phone-Wifi\" => \"iconsmind-Phone-Wifi\"), \n\t\tarray(\"iconsmind-Pi\" => \"iconsmind-Pi\"), \n\t\tarray(\"iconsmind-Pie-Chart\" => \"iconsmind-Pie-Chart\"), \n\t\tarray(\"iconsmind-Pie-Chart2\" => \"iconsmind-Pie-Chart2\"), \n\t\tarray(\"iconsmind-Pie-Chart3\" => \"iconsmind-Pie-Chart3\"), \n\t\tarray(\"iconsmind-Pipette\" => \"iconsmind-Pipette\"), \n\t\tarray(\"iconsmind-Piramids\" => \"iconsmind-Piramids\"), \n\t\tarray(\"iconsmind-Pizza\" => \"iconsmind-Pizza\"), \n\t\tarray(\"iconsmind-Pizza-Slice\" => \"iconsmind-Pizza-Slice\"), \n\t\tarray(\"iconsmind-Plastic-CupPhone\" => \"iconsmind-Plastic-CupPhone\"), \n\t\tarray(\"iconsmind-Plastic-CupPhone2\" => \"iconsmind-Plastic-CupPhone2\"), \n\t\tarray(\"iconsmind-Plate\" => \"iconsmind-Plate\"), \n\t\tarray(\"iconsmind-Plates\" => \"iconsmind-Plates\"), \n\t\tarray(\"iconsmind-Plug-In\" => \"iconsmind-Plug-In\"), \n\t\tarray(\"iconsmind-Plug-In2\" => \"iconsmind-Plug-In2\"), \n\t\tarray(\"iconsmind-Poland\" => \"iconsmind-Poland\"), \n\t\tarray(\"iconsmind-Police-Station\" => \"iconsmind-Police-Station\"), \n\t\tarray(\"iconsmind-Polo-Shirt\" => \"iconsmind-Polo-Shirt\"), \n\t\tarray(\"iconsmind-Portugal\" => \"iconsmind-Portugal\"), \n\t\tarray(\"iconsmind-Post-Mail\" => \"iconsmind-Post-Mail\"), \n\t\tarray(\"iconsmind-Post-Mail2\" => \"iconsmind-Post-Mail2\"), \n\t\tarray(\"iconsmind-Post-Office\" => \"iconsmind-Post-Office\"), \n\t\tarray(\"iconsmind-Pound\" => \"iconsmind-Pound\"), \n\t\tarray(\"iconsmind-Pound-Sign\" => \"iconsmind-Pound-Sign\"), \n\t\tarray(\"iconsmind-Pound-Sign2\" => \"iconsmind-Pound-Sign2\"), \n\t\tarray(\"iconsmind-Power\" => \"iconsmind-Power\"), \n\t\tarray(\"iconsmind-Power-Cable\" => \"iconsmind-Power-Cable\"), \n\t\tarray(\"iconsmind-Prater\" => \"iconsmind-Prater\"), \n\t\tarray(\"iconsmind-Present\" => \"iconsmind-Present\"), \n\t\tarray(\"iconsmind-Presents\" => \"iconsmind-Presents\"), \n\t\tarray(\"iconsmind-Printer\" => \"iconsmind-Printer\"), \n\t\tarray(\"iconsmind-Projector\" => \"iconsmind-Projector\"), \n\t\tarray(\"iconsmind-Projector-2\" => \"iconsmind-Projector-2\"), \n\t\tarray(\"iconsmind-Pumpkin\" => \"iconsmind-Pumpkin\"), \n\t\tarray(\"iconsmind-Punk\" => \"iconsmind-Punk\"), \n\t\tarray(\"iconsmind-Queen\" => \"iconsmind-Queen\"), \n\t\tarray(\"iconsmind-Quill\" => \"iconsmind-Quill\"), \n\t\tarray(\"iconsmind-Quill-2\" => \"iconsmind-Quill-2\"), \n\t\tarray(\"iconsmind-Quill-3\" => \"iconsmind-Quill-3\"), \n\t\tarray(\"iconsmind-Ram\" => \"iconsmind-Ram\"), \n\t\tarray(\"iconsmind-Redhat\" => \"iconsmind-Redhat\"), \n\t\tarray(\"iconsmind-Reload2\" => \"iconsmind-Reload2\"), \n\t\tarray(\"iconsmind-Reload-2\" => \"iconsmind-Reload-2\"), \n\t\tarray(\"iconsmind-Remote-Controll\" => \"iconsmind-Remote-Controll\"), \n\t\tarray(\"iconsmind-Remote-Controll2\" => \"iconsmind-Remote-Controll2\"), \n\t\tarray(\"iconsmind-Remove-File\" => \"iconsmind-Remove-File\"), \n\t\tarray(\"iconsmind-Repeat3\" => \"iconsmind-Repeat3\"), \n\t\tarray(\"iconsmind-Repeat-22\" => \"iconsmind-Repeat-22\"), \n\t\tarray(\"iconsmind-Repeat-3\" => \"iconsmind-Repeat-3\"), \n\t\tarray(\"iconsmind-Repeat-4\" => \"iconsmind-Repeat-4\"), \n\t\tarray(\"iconsmind-Resize\" => \"iconsmind-Resize\"), \n\t\tarray(\"iconsmind-Retro\" => \"iconsmind-Retro\"), \n\t\tarray(\"iconsmind-RGB\" => \"iconsmind-RGB\"), \n\t\tarray(\"iconsmind-Right2\" => \"iconsmind-Right2\"), \n\t\tarray(\"iconsmind-Right-2\" => \"iconsmind-Right-2\"), \n\t\tarray(\"iconsmind-Right-3\" => \"iconsmind-Right-3\"), \n\t\tarray(\"iconsmind-Right-ToLeft\" => \"iconsmind-Right-ToLeft\"), \n\t\tarray(\"iconsmind-Robot2\" => \"iconsmind-Robot2\"), \n\t\tarray(\"iconsmind-Roller\" => \"iconsmind-Roller\"), \n\t\tarray(\"iconsmind-Roof\" => \"iconsmind-Roof\"), \n\t\tarray(\"iconsmind-Rook\" => \"iconsmind-Rook\"), \n\t\tarray(\"iconsmind-Router\" => \"iconsmind-Router\"), \n\t\tarray(\"iconsmind-Router-2\" => \"iconsmind-Router-2\"), \n\t\tarray(\"iconsmind-Ruler\" => \"iconsmind-Ruler\"), \n\t\tarray(\"iconsmind-Ruler-2\" => \"iconsmind-Ruler-2\"), \n\t\tarray(\"iconsmind-Safari\" => \"iconsmind-Safari\"), \n\t\tarray(\"iconsmind-Safe-Box2\" => \"iconsmind-Safe-Box2\"), \n\t\tarray(\"iconsmind-Santa-Claus\" => \"iconsmind-Santa-Claus\"), \n\t\tarray(\"iconsmind-Santa-Claus2\" => \"iconsmind-Santa-Claus2\"), \n\t\tarray(\"iconsmind-Santa-onSled\" => \"iconsmind-Santa-onSled\"), \n\t\tarray(\"iconsmind-Scarf\" => \"iconsmind-Scarf\"), \n\t\tarray(\"iconsmind-Scissor\" => \"iconsmind-Scissor\"), \n\t\tarray(\"iconsmind-Scotland\" => \"iconsmind-Scotland\"), \n\t\tarray(\"iconsmind-Sea-Dog\" => \"iconsmind-Sea-Dog\"), \n\t\tarray(\"iconsmind-Search-onCloud\" => \"iconsmind-Search-onCloud\"), \n\t\tarray(\"iconsmind-Security-Smiley\" => \"iconsmind-Security-Smiley\"), \n\t\tarray(\"iconsmind-Serbia\" => \"iconsmind-Serbia\"), \n\t\tarray(\"iconsmind-Server\" => \"iconsmind-Server\"), \n\t\tarray(\"iconsmind-Server-2\" => \"iconsmind-Server-2\"), \n\t\tarray(\"iconsmind-Servers\" => \"iconsmind-Servers\"), \n\t\tarray(\"iconsmind-Share-onCloud\" => \"iconsmind-Share-onCloud\"), \n\t\tarray(\"iconsmind-Shark\" => \"iconsmind-Shark\"), \n\t\tarray(\"iconsmind-Sheep\" => \"iconsmind-Sheep\"), \n\t\tarray(\"iconsmind-Shirt\" => \"iconsmind-Shirt\"), \n\t\tarray(\"iconsmind-Shoes\" => \"iconsmind-Shoes\"), \n\t\tarray(\"iconsmind-Shoes-2\" => \"iconsmind-Shoes-2\"), \n\t\tarray(\"iconsmind-Short-Pants\" => \"iconsmind-Short-Pants\"), \n\t\tarray(\"iconsmind-Shuffle2\" => \"iconsmind-Shuffle2\"), \n\t\tarray(\"iconsmind-Shuffle-22\" => \"iconsmind-Shuffle-22\"), \n\t\tarray(\"iconsmind-Singapore\" => \"iconsmind-Singapore\"), \n\t\tarray(\"iconsmind-Skeleton\" => \"iconsmind-Skeleton\"), \n\t\tarray(\"iconsmind-Skirt\" => \"iconsmind-Skirt\"), \n\t\tarray(\"iconsmind-Skull\" => \"iconsmind-Skull\"), \n\t\tarray(\"iconsmind-Sled\" => \"iconsmind-Sled\"), \n\t\tarray(\"iconsmind-Sled-withGifts\" => \"iconsmind-Sled-withGifts\"), \n\t\tarray(\"iconsmind-Sleeping\" => \"iconsmind-Sleeping\"), \n\t\tarray(\"iconsmind-Slippers\" => \"iconsmind-Slippers\"), \n\t\tarray(\"iconsmind-Smart\" => \"iconsmind-Smart\"), \n\t\tarray(\"iconsmind-Smartphone\" => \"iconsmind-Smartphone\"), \n\t\tarray(\"iconsmind-Smartphone-2\" => \"iconsmind-Smartphone-2\"), \n\t\tarray(\"iconsmind-Smartphone-3\" => \"iconsmind-Smartphone-3\"), \n\t\tarray(\"iconsmind-Smartphone-4\" => \"iconsmind-Smartphone-4\"), \n\t\tarray(\"iconsmind-Smile\" => \"iconsmind-Smile\"), \n\t\tarray(\"iconsmind-Smoking-Pipe\" => \"iconsmind-Smoking-Pipe\"), \n\t\tarray(\"iconsmind-Snake\" => \"iconsmind-Snake\"), \n\t\tarray(\"iconsmind-Snow-Dome\" => \"iconsmind-Snow-Dome\"), \n\t\tarray(\"iconsmind-Snowflake2\" => \"iconsmind-Snowflake2\"), \n\t\tarray(\"iconsmind-Snowman\" => \"iconsmind-Snowman\"), \n\t\tarray(\"iconsmind-Socks\" => \"iconsmind-Socks\"), \n\t\tarray(\"iconsmind-Soup\" => \"iconsmind-Soup\"), \n\t\tarray(\"iconsmind-South-Africa\" => \"iconsmind-South-Africa\"), \n\t\tarray(\"iconsmind-Space-Needle\" => \"iconsmind-Space-Needle\"), \n\t\tarray(\"iconsmind-Spain\" => \"iconsmind-Spain\"), \n\t\tarray(\"iconsmind-Spam-Mail\" => \"iconsmind-Spam-Mail\"), \n\t\tarray(\"iconsmind-Speaker2\" => \"iconsmind-Speaker2\"), \n\t\tarray(\"iconsmind-Spell-Check\" => \"iconsmind-Spell-Check\"), \n\t\tarray(\"iconsmind-Spell-CheckABC\" => \"iconsmind-Spell-CheckABC\"), \n\t\tarray(\"iconsmind-Spider\" => \"iconsmind-Spider\"), \n\t\tarray(\"iconsmind-Spiderweb\" => \"iconsmind-Spiderweb\"), \n\t\tarray(\"iconsmind-Spoder\" => \"iconsmind-Spoder\"), \n\t\tarray(\"iconsmind-Spoon\" => \"iconsmind-Spoon\"), \n\t\tarray(\"iconsmind-Sports-Clothings1\" => \"iconsmind-Sports-Clothings1\"), \n\t\tarray(\"iconsmind-Sports-Clothings2\" => \"iconsmind-Sports-Clothings2\"), \n\t\tarray(\"iconsmind-Sports-Shirt\" => \"iconsmind-Sports-Shirt\"), \n\t\tarray(\"iconsmind-Spray\" => \"iconsmind-Spray\"), \n\t\tarray(\"iconsmind-Squirrel\" => \"iconsmind-Squirrel\"), \n\t\tarray(\"iconsmind-Stamp\" => \"iconsmind-Stamp\"), \n\t\tarray(\"iconsmind-Stamp-2\" => \"iconsmind-Stamp-2\"), \n\t\tarray(\"iconsmind-Stapler\" => \"iconsmind-Stapler\"), \n\t\tarray(\"iconsmind-Star\" => \"iconsmind-Star\"), \n\t\tarray(\"iconsmind-Starfish\" => \"iconsmind-Starfish\"), \n\t\tarray(\"iconsmind-Start2\" => \"iconsmind-Start2\"), \n\t\tarray(\"iconsmind-St-BasilsCathedral\" => \"iconsmind-St-BasilsCathedral\"), \n\t\tarray(\"iconsmind-St-PaulsCathedral\" => \"iconsmind-St-PaulsCathedral\"), \n\t\tarray(\"iconsmind-Structure\" => \"iconsmind-Structure\"), \n\t\tarray(\"iconsmind-Student-Hat\" => \"iconsmind-Student-Hat\"), \n\t\tarray(\"iconsmind-Student-Hat2\" => \"iconsmind-Student-Hat2\"), \n\t\tarray(\"iconsmind-Suit\" => \"iconsmind-Suit\"), \n\t\tarray(\"iconsmind-Sum2\" => \"iconsmind-Sum2\"), \n\t\tarray(\"iconsmind-Sunglasses\" => \"iconsmind-Sunglasses\"), \n\t\tarray(\"iconsmind-Sunglasses-2\" => \"iconsmind-Sunglasses-2\"), \n\t\tarray(\"iconsmind-Sunglasses-3\" => \"iconsmind-Sunglasses-3\"), \n\t\tarray(\"iconsmind-Sunglasses-Smiley\" => \"iconsmind-Sunglasses-Smiley\"), \n\t\tarray(\"iconsmind-Sunglasses-Smiley2\" => \"iconsmind-Sunglasses-Smiley2\"), \n\t\tarray(\"iconsmind-Sunglasses-W\" => \"iconsmind-Sunglasses-W\"), \n\t\tarray(\"iconsmind-Sunglasses-W2\" => \"iconsmind-Sunglasses-W2\"), \n\t\tarray(\"iconsmind-Sunglasses-W3\" => \"iconsmind-Sunglasses-W3\"), \n\t\tarray(\"iconsmind-Surprise\" => \"iconsmind-Surprise\"), \n\t\tarray(\"iconsmind-Sushi\" => \"iconsmind-Sushi\"), \n\t\tarray(\"iconsmind-Sweden\" => \"iconsmind-Sweden\"), \n\t\tarray(\"iconsmind-Swimming-Short\" => \"iconsmind-Swimming-Short\"), \n\t\tarray(\"iconsmind-Swimmwear\" => \"iconsmind-Swimmwear\"), \n\t\tarray(\"iconsmind-Switzerland\" => \"iconsmind-Switzerland\"), \n\t\tarray(\"iconsmind-Sync\" => \"iconsmind-Sync\"), \n\t\tarray(\"iconsmind-Sync-Cloud\" => \"iconsmind-Sync-Cloud\"), \n\t\tarray(\"iconsmind-Tablet\" => \"iconsmind-Tablet\"), \n\t\tarray(\"iconsmind-Tablet-2\" => \"iconsmind-Tablet-2\"), \n\t\tarray(\"iconsmind-Tablet-3\" => \"iconsmind-Tablet-3\"), \n\t\tarray(\"iconsmind-Tablet-Orientation\" => \"iconsmind-Tablet-Orientation\"), \n\t\tarray(\"iconsmind-Tablet-Phone\" => \"iconsmind-Tablet-Phone\"), \n\t\tarray(\"iconsmind-Tablet-Vertical\" => \"iconsmind-Tablet-Vertical\"), \n\t\tarray(\"iconsmind-Tactic\" => \"iconsmind-Tactic\"), \n\t\tarray(\"iconsmind-Taj-Mahal\" => \"iconsmind-Taj-Mahal\"), \n\t\tarray(\"iconsmind-Teapot\" => \"iconsmind-Teapot\"), \n\t\tarray(\"iconsmind-Tee-Mug\" => \"iconsmind-Tee-Mug\"), \n\t\tarray(\"iconsmind-Telephone\" => \"iconsmind-Telephone\"), \n\t\tarray(\"iconsmind-Telephone-2\" => \"iconsmind-Telephone-2\"), \n\t\tarray(\"iconsmind-Temple\" => \"iconsmind-Temple\"), \n\t\tarray(\"iconsmind-Thailand\" => \"iconsmind-Thailand\"), \n\t\tarray(\"iconsmind-The-WhiteHouse\" => \"iconsmind-The-WhiteHouse\"), \n\t\tarray(\"iconsmind-Three-ArrowFork\" => \"iconsmind-Three-ArrowFork\"), \n\t\tarray(\"iconsmind-Thumbs-DownSmiley\" => \"iconsmind-Thumbs-DownSmiley\"), \n\t\tarray(\"iconsmind-Thumbs-UpSmiley\" => \"iconsmind-Thumbs-UpSmiley\"), \n\t\tarray(\"iconsmind-Tie\" => \"iconsmind-Tie\"), \n\t\tarray(\"iconsmind-Tie-2\" => \"iconsmind-Tie-2\"), \n\t\tarray(\"iconsmind-Tie-3\" => \"iconsmind-Tie-3\"), \n\t\tarray(\"iconsmind-Tiger\" => \"iconsmind-Tiger\"), \n\t\tarray(\"iconsmind-Time-Clock\" => \"iconsmind-Time-Clock\"), \n\t\tarray(\"iconsmind-To-Bottom\" => \"iconsmind-To-Bottom\"), \n\t\tarray(\"iconsmind-To-Bottom2\" => \"iconsmind-To-Bottom2\"), \n\t\tarray(\"iconsmind-Token\" => \"iconsmind-Token\"), \n\t\tarray(\"iconsmind-To-Left\" => \"iconsmind-To-Left\"), \n\t\tarray(\"iconsmind-Tomato\" => \"iconsmind-Tomato\"), \n\t\tarray(\"iconsmind-Tongue\" => \"iconsmind-Tongue\"), \n\t\tarray(\"iconsmind-Tooth\" => \"iconsmind-Tooth\"), \n\t\tarray(\"iconsmind-Tooth-2\" => \"iconsmind-Tooth-2\"), \n\t\tarray(\"iconsmind-Top-ToBottom\" => \"iconsmind-Top-ToBottom\"), \n\t\tarray(\"iconsmind-To-Right\" => \"iconsmind-To-Right\"), \n\t\tarray(\"iconsmind-To-Top\" => \"iconsmind-To-Top\"), \n\t\tarray(\"iconsmind-To-Top2\" => \"iconsmind-To-Top2\"), \n\t\tarray(\"iconsmind-Tower\" => \"iconsmind-Tower\"), \n\t\tarray(\"iconsmind-Tower-2\" => \"iconsmind-Tower-2\"), \n\t\tarray(\"iconsmind-Tower-Bridge\" => \"iconsmind-Tower-Bridge\"), \n\t\tarray(\"iconsmind-Transform\" => \"iconsmind-Transform\"), \n\t\tarray(\"iconsmind-Transform-2\" => \"iconsmind-Transform-2\"), \n\t\tarray(\"iconsmind-Transform-3\" => \"iconsmind-Transform-3\"), \n\t\tarray(\"iconsmind-Transform-4\" => \"iconsmind-Transform-4\"), \n\t\tarray(\"iconsmind-Tree2\" => \"iconsmind-Tree2\"), \n\t\tarray(\"iconsmind-Tree-22\" => \"iconsmind-Tree-22\"), \n\t\tarray(\"iconsmind-Triangle-ArrowDown\" => \"iconsmind-Triangle-ArrowDown\"), \n\t\tarray(\"iconsmind-Triangle-ArrowLeft\" => \"iconsmind-Triangle-ArrowLeft\"), \n\t\tarray(\"iconsmind-Triangle-ArrowRight\" => \"iconsmind-Triangle-ArrowRight\"), \n\t\tarray(\"iconsmind-Triangle-ArrowUp\" => \"iconsmind-Triangle-ArrowUp\"), \n\t\tarray(\"iconsmind-T-Shirt\" => \"iconsmind-T-Shirt\"), \n\t\tarray(\"iconsmind-Turkey\" => \"iconsmind-Turkey\"), \n\t\tarray(\"iconsmind-Turn-Down\" => \"iconsmind-Turn-Down\"), \n\t\tarray(\"iconsmind-Turn-Down2\" => \"iconsmind-Turn-Down2\"), \n\t\tarray(\"iconsmind-Turn-DownFromLeft\" => \"iconsmind-Turn-DownFromLeft\"), \n\t\tarray(\"iconsmind-Turn-DownFromRight\" => \"iconsmind-Turn-DownFromRight\"), \n\t\tarray(\"iconsmind-Turn-Left\" => \"iconsmind-Turn-Left\"), \n\t\tarray(\"iconsmind-Turn-Left3\" => \"iconsmind-Turn-Left3\"), \n\t\tarray(\"iconsmind-Turn-Right\" => \"iconsmind-Turn-Right\"), \n\t\tarray(\"iconsmind-Turn-Right3\" => \"iconsmind-Turn-Right3\"), \n\t\tarray(\"iconsmind-Turn-Up\" => \"iconsmind-Turn-Up\"), \n\t\tarray(\"iconsmind-Turn-Up2\" => \"iconsmind-Turn-Up2\"), \n\t\tarray(\"iconsmind-Turtle\" => \"iconsmind-Turtle\"), \n\t\tarray(\"iconsmind-Tuxedo\" => \"iconsmind-Tuxedo\"), \n\t\tarray(\"iconsmind-Ukraine\" => \"iconsmind-Ukraine\"), \n\t\tarray(\"iconsmind-Umbrela\" => \"iconsmind-Umbrela\"), \n\t\tarray(\"iconsmind-United-Kingdom\" => \"iconsmind-United-Kingdom\"), \n\t\tarray(\"iconsmind-United-States\" => \"iconsmind-United-States\"), \n\t\tarray(\"iconsmind-University\" => \"iconsmind-University\"), \n\t\tarray(\"iconsmind-Up2\" => \"iconsmind-Up2\"), \n\t\tarray(\"iconsmind-Up-2\" => \"iconsmind-Up-2\"), \n\t\tarray(\"iconsmind-Up-3\" => \"iconsmind-Up-3\"), \n\t\tarray(\"iconsmind-Upload2\" => \"iconsmind-Upload2\"), \n\t\tarray(\"iconsmind-Upload-toCloud\" => \"iconsmind-Upload-toCloud\"), \n\t\tarray(\"iconsmind-Usb\" => \"iconsmind-Usb\"), \n\t\tarray(\"iconsmind-Usb-2\" => \"iconsmind-Usb-2\"), \n\t\tarray(\"iconsmind-Usb-Cable\" => \"iconsmind-Usb-Cable\"), \n\t\tarray(\"iconsmind-Vector\" => \"iconsmind-Vector\"), \n\t\tarray(\"iconsmind-Vector-2\" => \"iconsmind-Vector-2\"), \n\t\tarray(\"iconsmind-Vector-3\" => \"iconsmind-Vector-3\"), \n\t\tarray(\"iconsmind-Vector-4\" => \"iconsmind-Vector-4\"), \n\t\tarray(\"iconsmind-Vector-5\" => \"iconsmind-Vector-5\"), \n\t\tarray(\"iconsmind-Vest\" => \"iconsmind-Vest\"), \n\t\tarray(\"iconsmind-Vietnam\" => \"iconsmind-Vietnam\"), \n\t\tarray(\"iconsmind-View-Height\" => \"iconsmind-View-Height\"), \n\t\tarray(\"iconsmind-View-Width\" => \"iconsmind-View-Width\"), \n\t\tarray(\"iconsmind-Visa\" => \"iconsmind-Visa\"), \n\t\tarray(\"iconsmind-Voicemail\" => \"iconsmind-Voicemail\"), \n\t\tarray(\"iconsmind-VPN\" => \"iconsmind-VPN\"), \n\t\tarray(\"iconsmind-Wacom-Tablet\" => \"iconsmind-Wacom-Tablet\"), \n\t\tarray(\"iconsmind-Walkie-Talkie\" => \"iconsmind-Walkie-Talkie\"), \n\t\tarray(\"iconsmind-Wallet\" => \"iconsmind-Wallet\"), \n\t\tarray(\"iconsmind-Wallet-2\" => \"iconsmind-Wallet-2\"), \n\t\tarray(\"iconsmind-Warehouse\" => \"iconsmind-Warehouse\"), \n\t\tarray(\"iconsmind-Webcam\" => \"iconsmind-Webcam\"), \n\t\tarray(\"iconsmind-Wifi\" => \"iconsmind-Wifi\"), \n\t\tarray(\"iconsmind-Wifi-2\" => \"iconsmind-Wifi-2\"), \n\t\tarray(\"iconsmind-Wifi-Keyboard\" => \"iconsmind-Wifi-Keyboard\"), \n\t\tarray(\"iconsmind-Window\" => \"iconsmind-Window\"), \n\t\tarray(\"iconsmind-Windows\" => \"iconsmind-Windows\"), \n\t\tarray(\"iconsmind-Windows-Microsoft\" => \"iconsmind-Windows-Microsoft\"), \n\t\tarray(\"iconsmind-Wine-Bottle\" => \"iconsmind-Wine-Bottle\"), \n\t\tarray(\"iconsmind-Wine-Glass\" => \"iconsmind-Wine-Glass\"), \n\t\tarray(\"iconsmind-Wink\" => \"iconsmind-Wink\"), \n\t\tarray(\"iconsmind-Wireless\" => \"iconsmind-Wireless\"), \n\t\tarray(\"iconsmind-Witch\" => \"iconsmind-Witch\"), \n\t\tarray(\"iconsmind-Witch-Hat\" => \"iconsmind-Witch-Hat\"), \n\t\tarray(\"iconsmind-Wizard\" => \"iconsmind-Wizard\"), \n\t\tarray(\"iconsmind-Wolf\" => \"iconsmind-Wolf\"), \n\t\tarray(\"iconsmind-Womans-Underwear\" => \"iconsmind-Womans-Underwear\"), \n\t\tarray(\"iconsmind-Womans-Underwear2\" => \"iconsmind-Womans-Underwear2\"), \n\t\tarray(\"iconsmind-Worker-Clothes\" => \"iconsmind-Worker-Clothes\"), \n\t\tarray(\"iconsmind-Wreath\" => \"iconsmind-Wreath\"), \n\t\tarray(\"iconsmind-Zebra\" => \"iconsmind-Zebra\"), \n\t\tarray(\"iconsmind-Zombie\" => \"iconsmind-Zombie\")\n\t);\n\treturn array_merge( $icons, $iconsmind_icons );\n}", "title": "" }, { "docid": "f47ea17af8f1597d4b48f1ca009ec293", "score": "0.56815463", "text": "function cptmm_setup_menu(){\n add_menu_page(\n 'CPT map marker',\n 'CPT map marker',\n 'manage_options',\n 'CPT-map-marker',\n 'cptmm_setup_menu_content',\n 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDI5Ni45OTkgMjk2Ljk5OSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjk2Ljk5OSAyOTYuOTk5OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPGc+Cgk8cGF0aCBkPSJNMTQxLjkxNCwxODUuODAyYzEuODgzLDEuNjU2LDQuMjM0LDIuNDg2LDYuNTg3LDIuNDg2YzIuMzUzLDAsNC43MDUtMC44Myw2LjU4Ny0yLjQ4NiAgIGMyLjM4NS0yLjEwMSw1OC4zOTEtNTIuMDIxLDU4LjM5MS0xMDMuNzkzYzAtMzUuODQyLTI5LjE0OC02NS4wMDItNjQuOTc3LTY1LjAwMmMtMzUuODMsMC02NC45NzksMjkuMTYtNjQuOTc5LDY1LjAwMiAgIEM4My41MjEsMTMzLjc4MSwxMzkuNTI5LDE4My43MDEsMTQxLjkxNCwxODUuODAyeiBNMTQ4LjUwMSw2NS4wMjVjOS4zMDIsMCwxNi44NDUsNy42MDIsMTYuODQ1LDE2Ljk4NCAgIGMwLDkuMzgxLTcuNTQzLDE2Ljk4NC0xNi44NDUsMTYuOTg0Yy05LjMwNSwwLTE2Ljg0Ny03LjYwNC0xNi44NDctMTYuOTg0QzEzMS42NTQsNzIuNjI3LDEzOS4xOTYsNjUuMDI1LDE0OC41MDEsNjUuMDI1eiIgZmlsbD0iIzAwMDAwMCIvPgoJPHBhdGggZD0iTTI3My4zNTcsMTg1Ljc3M2wtNy41MjctMjYuMzc3Yy0xLjIyMi00LjI4MS01LjEzMy03LjIzMi05LjU4My03LjIzMmgtNTMuNzE5Yy0xLjk0MiwyLjg4Ny0zLjk5MSw1Ljc4NS02LjE1OCw4LjY5OSAgIGMtMTUuMDU3LDIwLjIzLTMwLjM2NCwzMy45MTQtMzIuMDYxLDM1LjQxYy00LjM3LDMuODQ4LTkuOTgzLDUuOTY3LTE1LjgwOCw1Ljk2N2MtNS44MjEsMC0xMS40MzQtMi4xMTctMTUuODEtNS45NjkgICBjLTEuNjk1LTEuNDk0LTE3LjAwNC0xNS4xOC0zMi4wNi0zNS40MDhjLTIuMTY3LTIuOTE0LTQuMjE2LTUuODEzLTYuMTU4LTguNjk5aC01My43MmMtNC40NSwwLTguMzYxLDIuOTUxLTkuNTgzLDcuMjMyICAgbC04Ljk3MSwzMS40MzZsMjAwLjUyOSwzNi43M0wyNzMuMzU3LDE4NS43NzN6IiBmaWxsPSIjMDAwMDAwIi8+Cgk8cGF0aCBkPSJNMjk2LjYxNywyNjcuMjkxbC0xOS4yMy02Ny4zOTZsLTk1LjQxMiw4MC4wOThoMTA1LjA2YzMuMTI3LDAsNi4wNzItMS40NjcsNy45NTUtMy45NjMgICBDMjk2Ljg3MywyNzMuNTMzLDI5Ny40NzQsMjcwLjI5NywyOTYuNjE3LDI2Ny4yOTF6IiBmaWxsPSIjMDAwMDAwIi8+Cgk8cGF0aCBkPSJNNDguNzkzLDIwOS44ODhsLTMwLjQ0LTUuNTc2TDAuMzgzLDI2Ny4yOTFjLTAuODU3LDMuMDA2LTAuMjU2LDYuMjQyLDEuNjI4LDguNzM4YzEuODgzLDIuNDk2LDQuODI4LDMuOTYzLDcuOTU1LDMuOTYzICAgaDM4LjgyN1YyMDkuODg4eiIgZmlsbD0iIzAwMDAwMCIvPgoJPHBvbHlnb24gcG9pbnRzPSI2Mi43NDYsMjEyLjQ0NSA2Mi43NDYsMjc5Ljk5MiAxNjAuMjczLDI3OS45OTIgMjA4Ljg1NywyMzkuMjA3ICAiIGZpbGw9IiMwMDAwMDAiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K',\n 30\n );\n}", "title": "" }, { "docid": "80fa1524df1532c49a20ab3c3033d82e", "score": "0.5652891", "text": "function addMarkerIcon($dataArray) {\n\t\tif (empty($dataArray)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t \t$this->icons[] = 'WecMap.addIcon(\"' . $this->mapName . '\", \"' . $dataArray['iconID'] . '\", \"' . $dataArray['imagepath'] . '\", \"' . $dataArray['shadowpath'] . '\", new GSize(' . $dataArray['width'] . ', ' . $dataArray['height'] . '), new GSize(' . $dataArray['shadowWidth'] . ', ' . $dataArray['shadowHeight'] . '), new GPoint(' . $dataArray['anchorX'] . ', ' . $dataArray['anchorY'] . '), new GPoint(' . $dataArray['infoAnchorX'] . ', ' . $dataArray['infoAnchorY'] . '));\n\t\t\t';\n\t\t\treturn true;\n\t\t}\n\n\t}", "title": "" }, { "docid": "93e796701008a25ebd0bb216295a26ff", "score": "0.56466913", "text": "function plomMap_menu(){\t\n\tglobal $wpdb;\n\t\n\t$img_path = plugins_url('images/map.jpg', __FILE__);\n\t\n\t$instruction = \"<div class='updated below-h2' id='message' style = 'float:left;width:94%;'><p>Instructions : To save your address for any location just click on the appropriate map location, Fill the form and save it. </p><p> For showing the updated Map on website use shortcode : <strong>[PLOM_DISPLAYMAP]</strong>.</p> <p>For any more help contact : <a href = 'http://www.fitnessnit.com/contact-us/' target = '_BLANK'>Arsh Sharma</a></p><span class = 'donate_cont' style = 'float:right;'><form action='https://www.paypal.com/cgi-bin/webscr' method='post' target='_BLANK'>\n<input type='hidden' name='cmd' value='_s-xclick'>\n<input type='hidden' name='hosted_button_id' value='76HRTN4CYBJV8'>\n<input type='image' src='https://www.paypalobjects.com/en_GB/i/btn/btn_donateCC_LG.gif' border='0' name='submit' alt='PayPal – The safer, easier way to pay online.'>\n<img alt='' border='0' src='https://www.paypalobjects.com/en_GB/i/scr/pixel.gif' width='1' height='1'>\n</form></span></div>\";\n\techo $instruction;\n\n\t$xCoords = $wpdb->get_results( \"SELECT id,xCoords,ycoords FROM wp_plom_map\" );\n\tforeach($xCoords as $key=>$value){\n\t\t$xcoordsStr .= $value->xCoords.'|';\n\t\t$ycoordsStr .= $value->ycoords.'|';\n\t\t$dataId .= $value->id.'|';\n\t}\n\t$xcoordsStr = trim($xcoordsStr,'|');\n\t$ycoordsStr = trim($ycoordsStr,'|');\n\t$dataId = trim($dataId,'|');\n\t\n\techo \"<div class = 'map_container'>\n\t\t\t<img src = \".$img_path.\" id = 'map_canvas'>\n\t\t\t<span class = 'pin'></span>\n\t\t\t<span class = 'loader'></span>\n\t\t\t<input type = 'hidden' name = 'xcoordsStr' value ='\".$xcoordsStr.\"' >\n\t\t\t<input type = 'hidden' name = 'ycoordsStr' value ='\".$ycoordsStr.\"' >\n\t\t\t<input type = 'hidden' name = 'dataId' value ='\".$dataId.\"' >\n\t\t</div>\";\n\t\n}", "title": "" }, { "docid": "03148c8974d5ece6392e90a37cc2539e", "score": "0.5636403", "text": "function process_im_icons()\n\t{\n\t}", "title": "" }, { "docid": "03148c8974d5ece6392e90a37cc2539e", "score": "0.5636403", "text": "function process_im_icons()\n\t{\n\t}", "title": "" }, { "docid": "03148c8974d5ece6392e90a37cc2539e", "score": "0.5636403", "text": "function process_im_icons()\n\t{\n\t}", "title": "" }, { "docid": "090a1612e950d0730dae70b17e04cb5b", "score": "0.5602127", "text": "function initControls()\n {\n\n $this->map->getControls()->getMaptype()->setDisplay((boolean) $this->showMapType);\n\n $this->map->getControls()->getMaptype()->setPosition($this->mapTypePosition);\n $this->map->getControls()->getMaptype()->setType($this->mapTypeType);\n\n $this->map->getControls()->getScale()->setDisplay((boolean) $this->showScale);\n $this->map->getControls()->getScale()->setPosition($this->scalePosition);\n\n $this->map->getControls()->getNavigation()->setDisplay((boolean) $this->showNavigation);\n\n $this->map->getControls()->getNavigation()->setPosition($this->navigationPosition);\n\n $this->map->getControls()->getNavigation()->setType($this->navigationType);\n\n\n $this->map->getControls()->getZoom()->setDisplay((boolean) $this->showZoom);\n $this->map->getControls()->getZoom()->setPosition($this->zoomPosition);\n $this->map->getControls()->getZoom()->setType($this->zoomType);\n\n $this->map->getControls()->getPan()->setDisplay((boolean) $this->showPan);\n $this->map->getControls()->getPan()->setPosition($this->panPosition);\n\n if ($this->initialMapType)\n {\n $this->map->setMaptype(new Tx_Listfeusers_Gmap_Maptype($this->initialMapType));\n }\n\n }", "title": "" }, { "docid": "9bf3d7c77a49d14ac00ea02066928cee", "score": "0.5599125", "text": "function image() {\n return data_field_admin::field_icon($this);\n }", "title": "" }, { "docid": "09eab82f9a28d649e512a1aae4104d28", "score": "0.55813193", "text": "function qode_restaurant_map_map() {\n\t\t\tbridge_qode_add_admin_page(array(\n\t\t\t\t'title' => 'Restaurant',\n\t\t\t\t'slug' => '_restaurant',\n\t\t\t\t'icon' => 'fa fa-cutlery'\n\t\t\t));\n\n\t\t\t//#Working Hours panel\n\t\t\t$panel_working_hours = bridge_qode_add_admin_panel(array(\n\t\t\t\t'page' => '_restaurant',\n\t\t\t\t'name' => 'panel_working_hours',\n\t\t\t\t'title' => 'Working Hours'\n\t\t\t));\n\n\t\t\t$monday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'monday_group',\n\t\t\t\t'title' => 'Monday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Monday'\n\t\t\t));\n\n\t\t\t$monday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'monday_row',\n\t\t\t\t'parent' => $monday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_monday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $monday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_monday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $monday_row\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_monday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $monday_row,\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_monday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $monday_row\n\t\t\t));\n\t\t\t$tuesday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'tuesday_group',\n\t\t\t\t'title' => 'Tuesday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Tuesday'\n\t\t\t));\n\n\t\t\t$tuesday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'tuesday_row',\n\t\t\t\t'parent' => $tuesday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_tuesday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $tuesday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_tuesday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $tuesday_row\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_tuesday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $tuesday_row,\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_tuesday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $tuesday_row\n\t\t\t));\n\n\t\t\t$wednesday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'wednesday_group',\n\t\t\t\t'title' => 'Wednesday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Wednesday'\n\t\t\t));\n\n\t\t\t$wednesday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'wednesday_row',\n\t\t\t\t'parent' => $wednesday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_wednesday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $wednesday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_wednesday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $wednesday_row\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_wednesday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $wednesday_row,\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_wednesday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $wednesday_row\n\t\t\t));\n\n\t\t\t$thursday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'thursday_group',\n\t\t\t\t'title' => 'Thursday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Thursday'\n\t\t\t));\n\n\t\t\t$thursday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'thursday_row',\n\t\t\t\t'parent' => $thursday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_thursday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $thursday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_thursday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $thursday_row\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_thursday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $thursday_row,\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_thursday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $thursday_row\n\t\t\t));\n\n\t\t\t$friday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'friday_group',\n\t\t\t\t'title' => 'Friday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Friday'\n\t\t\t));\n\n\t\t\t$friday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'friday_row',\n\t\t\t\t'parent' => $friday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_friday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $friday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_friday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $friday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_friday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $friday_row,\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_friday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $friday_row\n\t\t\t));\n\n\t\t\t$saturday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'saturday_group',\n\t\t\t\t'title' => 'Saturday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Saturday'\n\t\t\t));\n\n\t\t\t$saturday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'saturday_row',\n\t\t\t\t'parent' => $saturday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_saturday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $saturday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_saturday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $saturday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_saturday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $saturday_row,\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_saturday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $saturday_row\n\t\t\t));\n\n\t\t\t$sunday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'sunday_group',\n\t\t\t\t'title' => 'Sunday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Sunday'\n\t\t\t));\n\n\t\t\t$sunday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'sunday_row',\n\t\t\t\t'parent' => $sunday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_sunday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $sunday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_sunday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $sunday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_sunday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $sunday_row,\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_sunday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $sunday_row\n\t\t\t));\n\t\t}", "title": "" }, { "docid": "cb12a0ca4f450273fd0f76573102e763", "score": "0.55806047", "text": "function oneclick_shortcode_easy_google_map()\r\r\n{\r\r\n $options_geolocation = get_option('oneclick_geolocation');\r\r\n $gmap_iconizer_zoom_level = $options_geolocation['gmap_iconizer_zoom_level'];\r\r\n $gmap_iconizer_latitude = $options_geolocation['gmap_iconizer_latitude'];\r\r\n $gmap_iconizer_longitude = $options_geolocation['gmap_iconizer_longitude'];\r\r\n $map_id = generateRandomString();\r\r\n $options_iconizer = get_option('oneclick');\r\r\n $gmap_iconizer_apikey = $options_iconizer['gmap_iconizer_apikey'];\r\r\n $gmap_iconizer_zoomcontrol = $options_iconizer['gmap_iconizer_zoomcontrol'];\r\r\n $gmap_iconizer_zoomcontrolSize = $options_iconizer['gmap_iconizer_zoomcontrolSize'];\r\r\n $gmap_iconizer_zoomcontrolPosition = $options_iconizer['gmap_iconizer_zoomcontrolPosition'];\r\r\n $gmap_iconizer_maptype = $options_iconizer['gmap_iconizer_maptype'];\r\r\n\t$gmap_iconizer_type = $options_iconizer['gmap_iconizer_type'];\r\r\n $gmap_iconizer_maptypecontrol_style = $options_iconizer['gmap_iconizer_maptypecontrol_style'];\r\r\n $gmap_iconizer_maptype_position = $options_iconizer['gmap_iconizer_maptype_position'];\r\r\n $gmap_iconizer_pancontrol = $options_iconizer['gmap_iconizer_pancontrol'];\r\r\n $gmap_iconizer_pan_position = $options_iconizer['gmap_iconizer_pan_position'];\r\r\n $gmap_iconizer_streetviewcontrol = $options_iconizer['gmap_iconizer_streetviewcontrol'];\r\r\n $gmap_iconizer_streetviewcontrol_position = $options_iconizer['gmap_iconizer_streetviewcontrol_position'];\r\r\n $options_frontend_admin = get_option('oneclick_frontend');\r\r\n $gmap_iconizer_upload_icon = $options_frontend_admin['gmap_iconizer_upload_icon'];\r\r\n $gmap_iconizer_mapwidth = $options_frontend_admin['gmap_iconizer_mapwidth'];\r\r\n $gmap_iconizer_maphue = $options_frontend_admin['gmap_iconizer_maphue'];\r\r\n $gmap_iconizer_mapsaturation = $options_frontend_admin['gmap_iconizer_mapsaturation'];\r\r\n $gmap_iconizer_mapheight = $options_frontend_admin['gmap_iconizer_mapheight'];\r\r\n $gmap_iconizer_mapstyle = $options_frontend_admin['gmap_iconizer_mapstyle'];\r\r\n $gmap_iconizer_mapcontainerstyle = $options_frontend_admin['gmap_iconizer_mapcontainerstyle'];\r\r\n ob_start();\r\r\n ?>\r\r\n <?php\r\r\n require ('includes/oneclick_google_map_frontend.php');\r\r\n ?>\r\r\n <?php\r\r\n return ob_get_clean();\r\r\n}", "title": "" }, { "docid": "93adb45c02f8568be43ab9b01c8c7afd", "score": "0.5577501", "text": "public function getIcon() {}", "title": "" }, { "docid": "1fe43f1f3f9090423fc5d9011bdc5edd", "score": "0.5576604", "text": "function plom_display_map(){\n\tplom_files_front();\n\tglobal $wpdb;\n\t$data = $wpdb->get_results( \"SELECT * FROM wp_plom_map\" );\n\t$img_path = plugins_url('images/map.jpg', __FILE__);\n\t\n\t$xCoords = $wpdb->get_results( \"SELECT id,xCoords,ycoords FROM wp_plom_map\" );\n\tforeach($xCoords as $key=>$value){\n\t\t$xcoordsStr .= $value->xCoords.'|';\n\t\t$ycoordsStr .= $value->ycoords.'|';\n\t\t$dataId .= $value->id.'|';\n\t}\n\t$xcoordsStr = trim($xcoordsStr,'|');\n\t$ycoordsStr = trim($ycoordsStr,'|');\n\t$dataId = trim($dataId,'|');\n\t\n\techo \"<div class = 'map' style = 'position:relative;'>\n\t\t\t<img src = \".$img_path.\" id = 'map_canvas' style='width: 100%; max-height: 1007px;'>\n\t\t\t<span class = 'loader'></span>\n\t\t\t<input type = 'hidden' name = 'xcoordsStr' value ='\".$xcoordsStr.\"' >\n\t\t\t<input type = 'hidden' name = 'ycoordsStr' value ='\".$ycoordsStr.\"' >\n\t\t\t<input type = 'hidden' name = 'dataId' value ='\".$dataId.\"' >\n\t\t\t<input type = 'hidden' name = 'ajaxUrl' value ='\".admin_url('admin-ajax.php').\"' >\n\t\t</div>\";\n}", "title": "" }, { "docid": "9a7a4ec1d961f5275839e99cdbe8bfe8", "score": "0.5573424", "text": "public function maps_settings_panel_content() {\n\t\t\t/**\n\t\t\t * @var \\WPSEO_Local_Core $wpseo_local_core;\n\t\t\t */\n\t\t\tglobal $wpseo_local_core;\n\t\t\t$api_key = $this->api_repository->get_api_key( 'browser' );\n\n\t\t\tif ( ( empty( $api_key ) ) ) {\n\t\t\t\t$base_url = get_site_url();\n\n\t\t\t\techo '<p>';\n\t\t\t\tprintf(\n\t\t\t\t/* translators: 1: HTML <a> open tag; 2: <a> close tag. */\n\t\t\t\t\tesc_html__( 'In order to use the Maps settings, you should set an API key. You can add an API key in the %1$sAPI settings tab%2$s, which allows you to change the Maps settings here.', 'yoast-local-seo' ),\n\t\t\t\t\t'<a href=\"' . esc_url( $base_url ) . '/wp-admin/admin.php?page=wpseo_local#top#api_keys\" target=\"_blank\">',\n\t\t\t\t\t'</a>'\n\t\t\t\t);\n\t\t\t\techo '</p>';\n\t\t\t}\n\n\t\t\tif ( ! empty( $api_key ) ) {\n\t\t\t\t$custom_marker = get_post_meta( $this->location_id, '_wpseo_business_location_custom_marker', true );\n\n\t\t\t\techo '<div class=\"wpseo-local-custom_marker-wrapper\">';\n\t\t\t\techo '<label class=\"textinput\" for=\"wpseo_business_location_custom_marker\">' . esc_html__( 'Custom marker', 'yoast-local-seo' ) . '</label>';\n\t\t\t\techo '<div class=\"wpseo-local-custom_marker-wrapper__content\">';\n\t\t\t\techo '<img src=\"' . esc_url( $custom_marker ) . '\" id=\"custom_marker_image_container\">';\n\t\t\t\techo '<br class=\"wpseo-local-hide-button' . ( ( empty( $custom_marker ) ) ? ' hidden' : '' ) . '\">';\n\t\t\t\techo '<button type=\"button\" class=\"set_custom_images button\" data-id=\"custom_marker\">' . esc_html__( 'Set custom marker image', 'yoast-local-seo' ) . '</button>';\n\t\t\t\techo '<br>';\n\t\t\t\techo '<a href=\"javascript:;\" id=\"remove_marker\" class=\"remove_custom_image wpseo-local-hide-button' . ( ( empty( $custom_marker ) ) ? ' hidden' : '' ) . '\" data-id=\"custom_marker\">' . esc_html__( 'Remove marker', 'yoast-local-seo' ) . '</a>';\n\t\t\t\techo '<input type=\"hidden\" id=\"hidden_custom_marker\" name=\"_wpseo_business_location_custom_marker\" value=\"' . ( ( ! empty( $custom_marker ) ) ? esc_url( $custom_marker ) : '' ) . '\">';\n\t\t\t\techo '</div> <!-- .wpseo-local-custom_marker-wrapper -->';\n\t\t\t\tif ( empty( $custom_marker ) ) {\n\t\t\t\t\techo '<p class=\"yoast-local-seo-field-desc\">' . esc_html__( 'The custom marker should be 100x100 px. If the image exceeds those dimensions it could (partially) cover the info popup.', 'yoast-local-seo' ) . '</p>';\n\t\t\t\t}\n\t\t\t\t/* translators: %s extends to Yoast Local SEO brand name */\n\t\t\t\techo '<p class=\"yoast-local-seo-field-desc\">' . sprintf( esc_html__( 'This custom marker will override the custom markers for the location category and general %s settings', 'yoast-local-seo' ), 'Yoast Local SEO' ) . '</p>';\n\t\t\t\techo '</div>';\n\t\t\t\tif ( ! empty( $custom_marker ) ) {\n\t\t\t\t\t$wpseo_local_core->check_custom_marker_size( $custom_marker );\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "22089be65ffa0dc2e7a51a974aabe909", "score": "0.55413663", "text": "function icon_geopath_small($ptID, $ptImg, $ptName, $ptType, $pt_cache_intro_tr, $pt_icon_title_tr)\n{\n global $stylepath, $poweTrailMarkers;\n if ($ptImg == '')\n $ptImg = $stylepath . '/images/blue/powerTrailGenericLogo.png';\n // for testing use: $ptImg = 'ocpl-dynamic-files/images/uploads/powerTrailLogoId13.png';\n $PT_tip = $pt_cache_intro_tr . '<BR>';\n $PT_tip.='<table width=\\'99%\\'>';\n $PT_tip.=' <tr>';\n $PT_tip.=' <td width=\\'51\\'><img border=\\'0\\' width=\\'50\\' src=\\'' . $ptImg . '\\' /></td>';\n $PT_tip.=' <td align=\\'center\\'><span style=\\'font-size:13px;\\'><B>' . $ptName . '</B></span></td>';\n $PT_tip.=' </tr>';\n $PT_tip.='</table>';\n $PT_tip = str_replace('\\\\', '\\\\\\\\', $PT_tip);\n $PT_tip = str_replace('\\'', '\\\\\\'', $PT_tip);\n $PT_tip = htmlspecialchars($PT_tip, ENT_QUOTES, 'UTF-8');\n // no tabled version: $PT_tip= $pt_cache_intro_tr.'<BR><span align=center><B>'.$ptName.'</B><BR> <img border=0 width=50 src='.$ptImg.' /></span>';\n $PT_icon = '<a href=\"powerTrail.php?ptAction=showSerie&ptrail=' . $ptID . '\" onmouseover=\"Tip(\\'' . $PT_tip . '\\', OFFSETY, 25, OFFSETX, -135, PADDING,5, WIDTH,220,SHADOW,true)\" onmouseout=\"UnTip()\" class=\"links\">';\n $PT_icon.='<img src=\"' . $poweTrailMarkers[$ptType]['icon'] . '\" class=\"icon16\" alt=\"' . $pt_icon_title_tr . '\" title=\"' . $pt_icon_title_tr . '\" /></a>';\n\n return $PT_icon;\n}", "title": "" }, { "docid": "94bafdd09c793af05004ee06e5def05f", "score": "0.5540536", "text": "function pods_ui_tiles()\n{\n $icon = '';\n add_object_page('Tiles', 'Tiles', 'read', 'tiles', '', $icon);\n add_submenu_page('tiles', 'Tiles', 'Tiles', 'read', 'tiles', 'tile_page');\n}", "title": "" }, { "docid": "3ecee7eb484ba54b90d5b73fa5b8d8d1", "score": "0.55392915", "text": "public function setIcon($icon);", "title": "" }, { "docid": "eccedb661db2d9095ee6293f840a5cc3", "score": "0.5526892", "text": "public function site_map()\r\n {\r\n try\r\n {\t\t\r\n\t\t\t$this->data['breadcrumb'] = array('Site Map'=>'');\t\r\n\t\t\t$this->i_footer_menu = 8;\t\t\t\r\n\t\t\t$this->render();\r\n\t\t}\r\n\r\n catch(Exception $err_obj)\r\n {\r\n show_error($err_obj->getMessage());\r\n } \t \r\n }", "title": "" }, { "docid": "369e509acc4d8315812b48ae7b57be19", "score": "0.5525962", "text": "function amap_ma_get_entity_icon($u) {\n if (elgg_instanceof($u, 'user')) {\n $user_icon = amap_ma_get_marker_icon('membersmap');\n if ($user_icon == 'user_icon_tiny.png') {\n $entity_icon = $u->getIconURL('tiny');\n } \n else if ($user_icon == 'user_icon_small.png') {\n $entity_icon = $u->getIconURL('small');\n } \n else {\n $entity_icon = elgg_get_simplecache_url('membersmap/icon/' . amap_ma_get_marker_icon('membersmap'));\n// $entity_icon = elgg_get_site_url() . \"mod/membersmap/graphics/{$user_icon}\";\n }\n } else if (elgg_instanceof($u, 'group')) {\n $entity_icon = elgg_get_simplecache_url('groupsmap/icon/' . amap_ma_get_marker_icon('groupsmap'));\n } else if (elgg_instanceof($u, 'object', 'agora')) {\n $adicon = amap_ma_get_marker_icon('agora');\n if ($adicon == 'ad_image.png') {\n $entity_icon = $u->getIconURL('tiny');\n } else {\n $entity_icon = elgg_get_site_url() . 'mod/agora/graphics/' . amap_ma_get_marker_icon('agora');\n }\n }\n else if (elgg_instanceof($u, 'object', 'lcourt')) {\n $entity_icon = elgg_get_simplecache_url('leaguemanager/icon/icons/stadium.png');\n } \n else if (elgg_instanceof($u, 'object', 'page') || elgg_instanceof($u, 'object', 'page_top')) {\n //$entity_icon = elgg_get_site_url() . 'mod/pagesmap/graphics/' . amap_ma_get_marker_icon('pagesmap');\n $entity_icon = elgg_get_simplecache_url('pagesmap/icon/' . amap_ma_get_marker_icon('pagesmap'));\n }\n else if (elgg_instanceof($u, 'object', 'image')) {\n //$entity_icon = elgg_get_site_url() . 'mod/pagesmap/graphics/' . amap_ma_get_marker_icon('pagesmap');\n $entity_icon = $u->getIconURL('tiny');\n $entity_icon = elgg_get_simplecache_url('photosmap/icon/photography.png');\n }\n \n return $entity_icon;\n}", "title": "" }, { "docid": "c586bc0718963b727096cfbe492c156c", "score": "0.55226004", "text": "public function vcMap() {\n\n\t\tvc_map( array(\n\t\t\t\t'name' => 'Mikado Image With Hover Info',\n\t\t\t\t'base' => $this->getBase(),\n\t\t\t\t'category' => 'by MIKADO',\n\t\t\t\t'icon' => 'icon-wpb-image-with-text-hover extended-custom-icon',\n\t\t\t\t'allowed_container_element' => 'vc_row',\n\t\t\t\t'params' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'attach_image',\n\t\t\t\t\t\t'heading' => 'Image',\n\t\t\t\t\t\t'param_name' => 'image'\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t\"type\" => \"textarea_html\",\n\t\t\t\t\t\t\"heading\" => \"Hover Info\",\n\t\t\t\t\t\t\"param_name\" => \"content\",\n\t\t\t\t\t\t\"description\" => \"Add content to be displayed on hover. You can use shortcodes.\"\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t\"type\" => \"textfield\",\n\t\t\t\t\t\t\"heading\" => \"Link\",\n\t\t\t\t\t\t\"param_name\" => \"link\",\n\t\t\t\t\t\t\"save_always\" => true,\n\t\t\t\t\t\t\"description\" => \"Add a URL to link to.\"\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t) );\n\n\t}", "title": "" }, { "docid": "48662ecbb7a9e86f311a667cba8bb59c", "score": "0.5508081", "text": "function iconset_legacy()\n{\n\treturn array(\n\t\t'name' => tr('Legacy (pre Tiki14) icons'),\n\t\t'description' => tr('Legacy (pre Tiki14) icons, mainly using famfamfam images'),\n\t\t'tag' => 'img',\n\t\t'prepend' => 'img/icons/',\n\t\t'append' => '.png',\n\t\t'icons' => array(\n\t\t\t'actions' => array(\n\t\t\t\t'id' => 'application_form',\n\t\t\t),\n\t\t\t//add in defaults\n\t\t\t'admin' => array(\n\t\t\t\t\t'id' => 'wrench',\n\t\t\t),\n\t\t\t'admin_ads' => array(\n\t\t\t\t'id' => 'large/ads',\n\t\t\t),\n\t\t\t'admin_articles' => array(\n\t\t\t\t'id' => 'large/stock_bold',\n\t\t\t),\n\t\t\t'admin_blogs' => array(\n\t\t\t\t'id' => 'large/blogs',\n\t\t\t),\n\t\t\t'admin_calendar' => array(\n\t\t\t\t'id' => 'large/date',\n\t\t\t),\n\t\t\t'admin_category' => array(\n\t\t\t\t'id' => 'large/categories',\n\t\t\t),\n\t\t\t'admin_comments' => array(\n\t\t\t\t'id' => 'large/comments',\n\t\t\t),\n\t\t\t'admin_community' => array(\n\t\t\t\t'id' => 'large/users',\n\t\t\t),\n\t\t\t'admin_connect' => array(\n\t\t\t\t'id' => 'large/gnome-globe',\n\t\t\t),\n\t\t\t'admin_copyright' => array(\n\t\t\t\t'id' => 'large/copyright',\n\t\t\t),\n\t\t\t'admin_directory' => array(\n\t\t\t\t'id' => 'large/gnome-fs-server',\n\t\t\t),\n\t\t\t'admin_faqs' => array(\n\t\t\t\t'id' => 'large/stock_dialog_question',\n\t\t\t),\n\t\t\t'admin_features' => array(\n\t\t\t\t'id' => 'large/boot',\n\t\t\t),\n\t\t\t'admin_fgal' => array(\n\t\t\t\t'id' => 'large/file-manager',\n\t\t\t\t'size' => 2,\n\t\t\t\t'sizes' => array(\n\t\t\t\t\t3 => array(\n\t\t\t\t\t\t'id' => 'large/fileopen48x48'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t),\n\t\t\t'admin_forums' => array(\n\t\t\t\t'id' => 'large/stock_index',\n\t\t\t),\n\t\t\t'admin_freetags' => array(\n\t\t\t\t'id' => 'large/vcard',\n\t\t\t),\n\t\t\t'admin_gal' => array(\n\t\t\t\t'id' => 'large/stock_select-color',\n\t\t\t),\n\t\t\t'admin_general' => array(\n\t\t\t\t'id' => 'large/icon-configuration',\n\t\t\t\t'position' => '0px -15px;',\n\t\t\t),\n\t\t\t'admin_i18n' => array(\n\t\t\t\t'id' => 'large/i18n',\n\t\t\t),\n\t\t\t'admin_intertiki' => array(\n\t\t\t\t'id' => 'large/intertiki',\n\t\t\t),\n\t\t\t'admin_login' => array(\n\t\t\t\t'id' => 'large/stock_quit',\n\t\t\t),\n\t\t\t'admin_look' => array(\n\t\t\t\t'id' => 'large/gnome-settings-background',\n\t\t\t),\n\t\t\t'admin_maps' => array(\n\t\t\t\t'id' => 'large/maps',\n\t\t\t),\n\t\t\t'admin_messages' => array(\n\t\t\t\t'id' => 'large/messages',\n\t\t\t),\n\t\t\t'admin_metatags' => array(\n\t\t\t\t'id' => 'large/metatags',\n\t\t\t),\n\t\t\t'admin_module' => array(\n\t\t\t\t'id' => 'large/display-capplet',\n\t\t\t),\n\t\t\t'admin_payment' => array(\n\t\t\t\t'id' => 'large/payment',\n\t\t\t),\n\t\t\t'admin_performance' => array(\n\t\t\t\t'id' => 'large/performance',\n\t\t\t),\n\t\t\t'admin_polls' => array(\n\t\t\t\t'id' => 'large/stock_missing-image',\n\t\t\t),\n\t\t\t'admin_profiles' => array(\n\t\t\t\t'id' => 'large/profiles',\n\t\t\t),\n\t\t\t'admin_rating' => array(\n\t\t\t\t'id' => 'large/rating',\n\t\t\t),\n\t\t\t'admin_rss' => array(\n\t\t\t\t'id' => 'large/feed-icon',\n\t\t\t),\n\t\t\t'admin_score' => array(\n\t\t\t\t'id' => 'large/stock_about',\n\t\t\t),\n\t\t\t'admin_search' => array(\n\t\t\t\t'id' => 'large/xfce4-appfinder',\n\t\t\t),\n\t\t\t'admin_semantic' => array(\n\t\t\t\t'id' => 'large/semantic',\n\t\t\t),\n\t\t\t'admin_security' => array(\n\t\t\t\t'id' => 'large/gnome-lockscreen',\n\t\t\t),\n\t\t\t'admin_sefurl' => array(\n\t\t\t\t'id' => 'large/goto',\n\t\t\t),\n\t\t\t'admin_share' => array(\n\t\t\t\t'id' => 'large/stock_contact',\n\t\t\t),\n\t\t\t'admin_socialnetworks' => array(\n\t\t\t\t'id' => 'large/socialnetworks',\n\t\t\t),\n\t\t\t'admin_stats' => array(\n\t\t\t\t'id' => 'large/stats48x48',\n\t\t\t),\n\t\t\t'admin_textarea' => array(\n\t\t\t\t'id' => 'large/editing',\n\t\t\t),\n\t\t\t'admin_trackers' => array(\n\t\t\t\t'id' => 'large/gnome-settings-font',\n\t\t\t),\n\t\t\t'admin_userfiles' => array(\n\t\t\t\t'id' => 'large/userfiles',\n\t\t\t),\n\t\t\t'admin_video' => array(\n\t\t\t\t'id' => 'large/gnome-camera-video-32',\n\t\t\t),\n\t\t\t'admin_webmail' => array(\n\t\t\t\t'id' => 'large/evolution',\n\t\t\t),\n\t\t\t'admin_webservices' => array(\n\t\t\t\t'id' => 'large/webservices',\n\t\t\t),\n\t\t\t'admin_wiki' => array(\n\t\t\t\t'id' => 'large/wikipages',\n\t\t\t\t'size' => 2,\n\t\t\t\t'sizes' => array(\n\t\t\t\t\t3 => array(\n\t\t\t\t\t\t'id' => 'large/wikipages48x48'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t),\n\t\t\t'admin_workspace' => array(\n\t\t\t\t'id' => 'large/areas',\n\t\t\t),\n\t\t\t'admin_wysiwyg' => array(\n\t\t\t\t'id' => 'large/wysiwyg',\n\t\t\t),\n\t\t\t'align-center' => array(\n\t\t\t\t'id' => 'text_align_center',\n\t\t\t),\n\t\t\t'align-justify' => array(\n\t\t\t\t'id' => 'text_align_justify',\n\t\t\t),\n\t\t\t'align-left' => array(\n\t\t\t\t'id' => 'text_align_left',\n\t\t\t),\n\t\t\t'align-right' => array(\n\t\t\t\t'id' => 'text_align_right',\n\t\t\t),\n\t\t\t//anchor in defaults\n\t\t\t'arrow-up' => array(\n\t\t\t\t'id' => 'arrow-up',\n\t\t\t),\n\t\t\t'articles' => array(\n\t\t\t\t'id' => 'newspaper_go',\n\t\t\t),\n\t\t\t'attach' => array(\n\t\t\t\t'id' => 'attach',\n\t\t\t),\n\t\t\t'audio' => array(\n\t\t\t\t'id' => 'bell',\n\t\t\t),\n\t\t\t'back' => array(\n\t\t\t\t'id' => 'arrow_left',\n\t\t\t),\n\t\t\t'background-color' => array(\n\t\t\t\t'id' => 'palette_bg',\n\t\t\t),\n\t\t\t'backlink' => array(\n\t\t\t\t'id' => 'arrow_turn_left',\n\t\t\t),\n\t\t\t'backward' => array(\n\t\t\t\t'id' => 'control_rewind',\n\t\t\t),\n\t\t\t'backward_step' => array(\n\t\t\t\t'id' => 'control_start',\n\t\t\t),\n\t\t\t'ban' => array(\n\t\t\t\t'id' => 'ban_remove',\n\t\t\t),\n\t\t\t'bold' => array(\n\t\t\t\t'id' => 'text_bold',\n\t\t\t),\n\t\t\t//book in defaults\n\t\t\t'bookmark' => array(\n\t\t\t\t'id' => 'book',\n\t\t\t),\n\t\t\t'box' => array(\n\t\t\t\t'id' => 'layout_header',\n\t\t\t),\n\t\t\t//bug in defaults\n\t\t\t'bullhorn' => array(\n\t\t\t\t'id' => 'announce',\n\t\t\t),\n\t\t\t//calendar in defaults\n\t\t\t'caret-left' => array(\n\t\t\t\t'id' => 'resultset_previous',\n\t\t\t),\n\t\t\t'caret-right' => array(\n\t\t\t\t'id' => 'resultset_next',\n\t\t\t),\n\t\t\t'cart' => array(\n\t\t\t\t'id' => 'cart_add',\n\t\t\t),\n\t\t\t'chart' => array(\n\t\t\t\t'id' => 'chart_curve',\n\t\t\t),\n\t\t\t'check' => array(\n\t\t\t\t'id' => 'select',\n\t\t\t\t'append' => '.gif'\n\t\t\t),\n\t\t\t'code' => array(\n\t\t\t\t'id' => 'page_white_code',\n\t\t\t),\n\t\t\t'code_file' => array(\n\t\t\t\t'id' => 'page_white_code',\n\t\t\t),\n\t\t\t'cog' => array(\n\t\t\t\t'id' => 'wrench',\n\t\t\t),\n\t\t\t'collapsed' => array(\n\t\t\t\t'id' => 'bullet_toggle_plus',\n\t\t\t),\n\t\t\t'columns' => array(\n\t\t\t\t'id' => 'text_columns',\n\t\t\t),\n\t\t\t'comment' => array(\n\t\t\t\t'id' => 'comment_add',\n\t\t\t),\n\t\t\t'comments' => array(\n\t\t\t\t'id' => 'comments',\n\t\t\t\t'size' => 1,\n\t\t\t\t'sizes' => array(\n\t\t\t\t\t3 => array(\n\t\t\t\t\t\t'id' => 'large/comments48x48'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t),\n\t\t\t'compose' => array(\n\t\t\t\t'id' => 'pencil',\n\t\t\t\t'size' => 1,\n\t\t\t\t'sizes' => array(\n\t\t\t\t\t3 => array(\n\t\t\t\t\t\t'id' => 'webmail/compose',\n\t\t\t\t\t\t'prepend' => 'img/',\n\t\t\t\t\t\t'append' => '.gif'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t),\n\t\t\t//computer in defaults\n\t\t\t'contacts' => array(\n\t\t\t\t'id' => 'group',\n\t\t\t\t'size' => 1,\n\t\t\t\t'sizes' => array(\n\t\t\t\t\t3 => array(\n\t\t\t\t\t\t'id' => 'webmail/contact',\n\t\t\t\t\t\t'prepend' => 'img/',\n\t\t\t\t\t\t'append' => '.gif'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t),\n\t\t\t'copy' => array(\n\t\t\t\t'id' => 'page_copy',\n\t\t\t),\n\t\t\t'copyright' => array(\n\t\t\t\t'id' => 'shield',\n\t\t\t),\n\t\t\t'create' => array(\n\t\t\t\t'id' => 'add',\n\t\t\t),\n\t\t\t'dashboard' => array(\n\t\t\t\t'id' => 'application_view_columns',\n\t\t\t),\n\t\t\t//database in defaults\n\t\t\t'delete' => array(\n\t\t\t\t'id' => 'cross',\n\t\t\t),\n\t\t\t'difference' => array(\n\t\t\t\t'id' => 'text_strikethrough',\n\t\t\t),\n\t\t\t'disable' => array(\n\t\t\t\t'id' => 'delete',\n\t\t\t),\n\t\t\t'documentation' => array(\n\t\t\t\t'id' => 'book_open',\n\t\t\t),\n\t\t\t'down' => array(\n\t\t\t\t'id' => 'resultset_down',\n\t\t\t),\n\t\t\t'edit' => array(\n\t\t\t\t'id' => 'page_edit',\n\t\t\t),\n\t\t\t'education' => array(\n\t\t\t\t'id' => 'text_signature',\n\t\t\t),\n\t\t\t'envelope' => array(\n\t\t\t\t'id' => 'email',\n\t\t\t\t'size' => 1,\n\t\t\t\t'sizes' => array(\n\t\t\t\t\t3 => array(\n\t\t\t\t\t\t'id' => 'large/evolution48x48'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t),\n\t\t\t'error' => array(\n\t\t\t\t'id' => 'exclamation',\n\t\t\t),\n\t\t\t'erase' => array(\n\t\t\t\t\t'id' => 'page_edit',\n\t\t\t),\n\t\t\t'excel' => array(\n\t\t\t\t'id' => 'mime/xls',\n\t\t\t),\n\t\t\t'expanded' => array(\n\t\t\t\t'id' => 'bullet_toggle_minus',\n\t\t\t),\n\t\t\t'export' => array(\n\t\t\t\t'id' => 'disk',\n\t\t\t),\n\t\t\t'facebook' => array(\n\t\t\t\t'id' => 'thumb_up',\n\t\t\t\t'size' => 1,\n\t\t\t\t'sizes' => array(\n\t\t\t\t\t2 => array(\n\t\t\t\t\t\t'id' => 'facebook-logo_32'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t),\n\t\t\t'file' => array(\n\t\t\t\t'id' => 'page',\n\t\t\t),\n\t\t\t'file-archive' => array(\n\t\t\t\t'id' => 'folder',\n\t\t\t),\n\t\t\t'file-archive-open' => array(\n\t\t\t\t'id' => 'folder_go',\n\t\t\t),\n\t\t\t'filter' => array(\n\t\t\t\t'id' => 'find',\n\t\t\t),\n\t\t\t'flag' => array(\n\t\t\t\t'id' => 'flag_blue',\n\t\t\t),\n\t\t\t'floppy' => array(\n\t\t\t\t'id' => 'disk',\n\t\t\t),\n\t\t\t'font-color' => array(\n\t\t\t\t'id' => 'font',\n\t\t\t),\n\t\t\t'forward' => array(\n\t\t\t\t'id' => 'control_fastforward',\n\t\t\t),\n\t\t\t'forward_step' => array(\n\t\t\t\t'id' => 'control_end',\n\t\t\t),\n\t\t\t'fullscreen' => array(\n\t\t\t\t'id' => 'application_get',\n\t\t\t),\n\t\t\t//google in defaults\n\t\t\t//group in defaults\n\t\t\t'h1' => array(\n\t\t\t\t'id' => 'text_heading_1',\n\t\t\t),\n\t\t\t'h2' => array(\n\t\t\t\t'id' => 'text_heading_2',\n\t\t\t),\n\t\t\t'h3' => array(\n\t\t\t\t'id' => 'text_heading_3',\n\t\t\t),\n\t\t\t//help in defaults\n\t\t\t'history' => array(\n\t\t\t\t'id' => 'clock',\n\t\t\t),\n\t\t\t'home' => array(\n\t\t\t\t'id' => 'house',\n\t\t\t),\n\t\t\t'horizontal-rule' => array(\n\t\t\t\t'id' => 'text_horizontalrule',\n\t\t\t),\n\t\t\t//html in defaults\n\t\t\t//image in defaults\n\t\t\t'import' => array(\n\t\t\t\t'id' => 'upload',\n\t\t\t),\n\t\t\t'indent' => array(\n\t\t\t\t'id' => 'text_indent',\n\t\t\t),\n\t\t\t'index' => array(\n\t\t\t\t'id' => 'table_refresh',\n\t\t\t),\n\t\t\t//information in defaults\n\t\t\t'italic' => array(\n\t\t\t\t'id' => 'text_italic',\n\t\t\t),\n\t\t\t'language' => array(\n\t\t\t\t'id' => 'world',\n\t\t\t),\n\t\t\t//link in defaults\n\t\t\t'link-external' => array(\n\t\t\t\t'id' => 'external_link',\n\t\t\t\t'append' => '.gif'\n\t\t\t),\n\t\t\t'link-external-alt' => array(\n\t\t\t\t'id' => 'page_link',\n\t\t\t),\n\t\t\t'list' => array(\n\t\t\t\t'id' => 'application_view_list',\n\t\t\t),\n\t\t\t'list-numbered' => array(\n\t\t\t\t'id' => 'text_list_numbers',\n\t\t\t),\n\t\t\t'lock' => array(\n\t\t\t\t'id' => 'lock',\n\t\t\t),\n\t\t\t'log' => array(\n\t\t\t\t'id' => 'book',\n\t\t\t),\n\t\t\t'login' => array(\n\t\t\t\t'id' => 'task_received',\n\t\t\t),\n\t\t\t'logout' => array(\n\t\t\t\t'id' => 'task_submitted',\n\t\t\t),\n\t\t\t'mailbox' => array(\n\t\t\t\t'id' => 'email',\n\t\t\t\t'size' => 1,\n\t\t\t\t'sizes' => array(\n\t\t\t\t\t3 => array(\n\t\t\t\t\t\t'id' => 'webmail/mailbox',\n\t\t\t\t\t\t'prepend' => 'img/',\n\t\t\t\t\t\t'append' => '.gif'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t),\n\t\t\t//map in defaults\n\t\t\t'menu' => array(\n\t\t\t\t'id' => 'application_side_tree',\n\t\t\t),\n\t\t\t'menu-extra' => array(\n\t\t\t\t'id' => 'resultset_down',\n\t\t\t),\n\t\t\t'menuitem' => array(\n\t\t\t\t'id' => 'arrow_right',\n\t\t\t),\n\t\t\t'merge' => array(\n\t\t\t\t'id' => 'arrow_merge',\n\t\t\t),\n\t\t\t'minimize' => array(\n\t\t\t\t'id' => 'arrow_in',\n\t\t\t),\n\t\t\t'minus' => array(\n\t\t\t\t'id' => 'delete',\n\t\t\t),\n\t\t\t//module in defaults\n\t\t\t//money in defaults\n\t\t\t'more' => array(\n\t\t\t\t'id' => 'resultset_down',\n\t\t\t),\n\t\t\t'move' => array(\n\t\t\t\t'id' => 'task_submitted',\n\t\t\t),\n\t\t\t'music' => array(\n\t\t\t\t'id' => '/mime/mp3',\n\t\t\t),\n\t\t\t'next' => array(\n\t\t\t\t'id' => 'arrow_right',\n\t\t\t),\n\t\t\t'notepad' => array(\n\t\t\t\t'id' => 'disk',\n\t\t\t),\n\t\t\t'notification' => array(\n\t\t\t\t'id' => 'announce',\n\t\t\t),\n\t\t\t'off' => array(\n\t\t\t\t'id' => 'delete',\n\t\t\t),\n\t\t\t'ok' => array(\n\t\t\t\t'id' => 'accept',\n\t\t\t),\n\t\t\t'outdent' => array(\n\t\t\t\t'id' => 'text_indent_remove',\n\t\t\t),\n\t\t\t'page-break' => array(\n\t\t\t\t'id' => 'page_break',\n\t\t\t),\n\t\t\t'paste' => array(\n\t\t\t\t'id' => 'control_pause',\n\t\t\t),\n\t\t\t'pause' => array(\n\t\t\t\t'id' => 'control_pause',\n\t\t\t),\n\t\t\t'paypal' => array(\n\t\t\t\t'id' => 'money',\n\t\t\t),\n\t\t\t'pdf' => array(\n\t\t\t\t'id' => 'page_white_acrobat',\n\t\t\t),\n\t\t\t//pencil in defaults\n\t\t\t'permission' => array(\n\t\t\t\t'id' => 'key',\n\t\t\t),\n\t\t\t'play' => array(\n\t\t\t\t'id' => 'control_play',\n\t\t\t),\n\t\t\t//plugin in defaults\n\t\t\t'popup' => array(\n\t\t\t\t'id' => 'application_view_columns',\n\t\t\t),\n\t\t\t'post' => array(\n\t\t\t\t'id' => 'pencil_add',\n\t\t\t),\n\t\t\t'powerpoint' => array(\n\t\t\t\t'id' => 'mime/ppt',\n\t\t\t),\n\t\t\t'previous' => array(\n\t\t\t\t'id' => 'arrow_left',\n\t\t\t),\n\t\t\t'print' => array(\n\t\t\t\t'id' => 'printer',\n\t\t\t),\n\t\t\t//quotes in defaults\n\t\t\t'ranking' => array(\n\t\t\t\t'id' => 'star',\n\t\t\t),\n\t\t\t'refresh' => array(\n\t\t\t\t'id' => 'arrow_refresh',\n\t\t\t),\n\t\t\t'remove' => array(\n\t\t\t\t'id' => 'cross',\n\t\t\t),\n\t\t\t'repeat' => array(\n\t\t\t\t'id' => 'arrow_redo',\n\t\t\t),\n\t\t\t'rss' => array(\n\t\t\t\t'id' => 'feed',\n\t\t\t),\n\t\t\t'scissors' => array(\n\t\t\t\t\t'id' => 'cut',\n\t\t\t),\n\t\t\t'screencapture' => array(\n\t\t\t\t'id' => 'camera',\n\t\t\t),\n\t\t\t'search' => array(\n\t\t\t\t'id' => 'magnifier',\n\t\t\t),\n\t\t\t'selectall' => array(\n\t\t\t\t'id' => 'page-lightning',\n\t\t\t),\n\t\t\t'send' => array(\n\t\t\t\t'id' => 'email_go',\n\t\t\t\t'size' => 1,\n\t\t\t\t'sizes' => array(\n\t\t\t\t\t3 => array(\n\t\t\t\t\t\t'id' => 'messages48x48'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t),\n\t\t\t'settings' => array(\n\t\t\t\t'id' => 'wrench',\n\t\t\t\t'size' => 1,\n\t\t\t\t'sizes' => array(\n\t\t\t\t\t3 => array(\n\t\t\t\t\t\t'id' => 'webmail/settings',\n\t\t\t\t\t\t'prepend' => 'img/',\n\t\t\t\t\t\t'append' => '.gif'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t),\n\t\t\t'share' => array(\n\t\t\t\t'id' => 'share_link',\n\t\t\t),\n\t\t\t//sharethis in defaults\n\t\t\t//skype in defaults\n\t\t\t'smile' => array(\n\t\t\t\t'prepend' => 'img/smiles/',\n\t\t\t\t'id' => 'icon_smile',\n\t\t\t\t'append' => '.gif'\n\t\t\t),\n\t\t\t'sort' => array(\n\t\t\t\t'id' => 'resultset',\n\t\t\t),\n\t\t\t'sort-down' => array(\n\t\t\t\t'id' => 'resultset_down',\n\t\t\t),\n\t\t\t'sort-up' => array(\n\t\t\t\t'id' => 'resultset_up',\n\t\t\t),\n\t\t\t//star in defaults\n\t\t\t'star-empty' => array(\n\t\t\t\t'id' => 'star_grey',\n\t\t\t),\n\t\t\t'star-empty-selected' => array(\n\t\t\t\t'id' => 'star_grey_selected',\n\t\t\t),\n\t\t\t'star-half' => array(\n\t\t\t\t'id' => 'star_half',\n\t\t\t),\n\t\t\t//don't use half star for rating.tpl since there is no selected half star\n\t\t\t'star-half-rating' => array(\n\t\t\t\t'id' => 'star_grey',\n\t\t\t),\n\t\t\t'star-half-selected' => array(\n\t\t\t\t'id' => 'star_grey_selected',\n\t\t\t),\n\t\t\t'star-selected' => array(\n\t\t\t\t'id' => 'star_selected',\n\t\t\t),\n\t\t\t'status-open' => array(\n\t\t\t\t'id' => 'status_open',\n\t\t\t\t'append' => '.gif'\n\t\t\t),\n\t\t\t'status-pending' => array(\n\t\t\t\t'id' => 'status_pending',\n\t\t\t\t'append' => '.gif'\n\t\t\t),\n\t\t\t'status-closed' => array(\n\t\t\t\t'id' => 'status_closed',\n\t\t\t\t'append' => '.gif'\n\t\t\t),\n\t\t\t'stop' => array(\n\t\t\t\t'id' => 'control_stop',\n\t\t\t),\n\t\t\t'stop-watching' => array(\n\t\t\t\t'id' => 'no_eye',\n\t\t\t),\n\t\t\t'strikethrough' => array(\n\t\t\t\t'id' => 'text_strikethrough',\n\t\t\t),\n\t\t\t'structure' => array(\n\t\t\t\t'id' => 'chart_organisation',\n\t\t\t),\n\t\t\t'subscript' => array(\n\t\t\t\t'id' => 'text_subscript',\n\t\t\t),\n\t\t\t'success' => array(\n\t\t\t\t'id' => 'tick',\n\t\t\t),\n\t\t\t'superscript' => array(\n\t\t\t\t'id' => 'text_superscript',\n\t\t\t),\n\t\t\t//table in defaults\n\t\t\t'tag' => array(\n\t\t\t\t'id' => 'tag_blue',\n\t\t\t),\n\t\t\t'tags' => array(\n\t\t\t\t'id' => 'tag_blue',\n\t\t\t),\n\t\t\t'textfile' => array(\n\t\t\t\t'id' => 'page',\n\t\t\t),\n\t\t\t'th-large' => array(\n\t\t\t\t'id' => 'application_view_columns',\n\t\t\t),\n\t\t\t'th-list' => array(\n\t\t\t\t'id' => 'text_list_bullets',\n\t\t\t),\n\t\t\t'three-d' => array(\n\t\t\t\t'id' => 'application_side_tree',\n\t\t\t),\n\t\t\t'thumbs-down' => array(\n\t\t\t\t'prepend' => 'vendor/ckeditor/ckeditor/plugins/smiley/images/',\n\t\t\t\t'id' => 'thumbs_down',\n\t\t\t),\n\t\t\t'thumbs-up' => array(\n\t\t\t\t'prepend' => 'vendor/ckeditor/ckeditor/plugins/smiley/images/',\n\t\t\t\t'id' => 'thumbs_up',\n\t\t\t),\n\t\t\t'title' => array(\n\t\t\t\t'id' => 'text_padding_top',\n\t\t\t),\n\t\t\t'toggle-off' => array(\n\t\t\t\t'id' => 'accept',\n\t\t\t),\n\t\t\t'toggle-on' => array(\n\t\t\t\t'id' => 'delete',\n\t\t\t),\n\t\t\t'trackers' => array(\n\t\t\t\t'id' => 'database',\n\t\t\t),\n\t\t\t'translate' => array(\n\t\t\t\t'id' => 'world_edit',\n\t\t\t),\n\t\t\t'trash' => array(\n\t\t\t\t'id' => 'bin',\n\t\t\t),\n\t\t\t'tv' => array(\n\t\t\t\t'id' => 'television',\n\t\t\t),\n\t\t\t'twitter' => array(\n\t\t\t\t'id' => 'twitter',\n\t\t\t\t'size' => 1,\n\t\t\t\t'sizes' => array(\n\t\t\t\t\t2 => array(\n\t\t\t\t\t\t'id' => 'twitter_t_logo_32'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t),\n\t\t\t'underline' => array(\n\t\t\t\t'id' => 'text_underline',\n\t\t\t),\n\t\t\t'undo' => array(\n\t\t\t\t'id' => 'arrow_undo',\n\t\t\t),\n\t\t\t'unlink' => array(\n\t\t\t\t'id' => 'lock_delete',\n\t\t\t),\n\t\t\t'unlock' => array(\n\t\t\t\t'id' => 'lock_open',\n\t\t\t),\n\t\t\t'up' => array(\n\t\t\t\t'id' => 'resultset_up',\n\t\t\t),\n\t\t\t'video' => array(\n\t\t\t\t'id' => 'mime/mpg',\n\t\t\t),\n\t\t\t'video_file' => array(\n\t\t\t\t'id' => 'mime/mpg',\n\t\t\t),\n\t\t\t//vimeo in defaults\n\t\t\t'view' => array(\n\t\t\t\t'id' => 'magnifier',\n\t\t\t),\n\t\t\t'warning' => array(\n\t\t\t\t'id' => 'sticky',\n\t\t\t),\n\t\t\t'watch' => array(\n\t\t\t\t'id' => 'eye',\n\t\t\t),\n\t\t\t'watch-group' => array(\n\t\t\t\t'id' => 'eye_group',\n\t\t\t),\n\t\t\t'wizard' => array(\n\t\t\t\t'id' => 'wizard16x16',\n\t\t\t),\n\t\t\t'word' => array(\n\t\t\t\t'id' => 'mime/doc',\n\t\t\t),\n\t\t\t'wysiwyg' => array(\n\t\t\t\t'id' => 'text_dropcaps',\n\t\t\t),\n\t\t\t//youtube in defaults\n\t\t\t'zip' => array(\n\t\t\t\t'id' => 'mime/zip',\n\t\t\t),\n\t\t),\n\t\t'defaults' => array(\n\t\t\t'add',\n\t\t\t'anchor',\n\t\t\t'book',\n\t\t\t'bug',\n\t\t\t'calendar',\n\t\t\t'computer',\n\t\t\t'cut',\n\t\t\t'database',\n\t\t\t'font',\n\t\t\t'google',\n\t\t\t'group',\n\t\t\t'help',\n\t\t\t'html',\n\t\t\t'image',\n\t\t\t'information',\n\t\t\t'link',\n\t\t\t'map',\n\t\t\t'module',\n\t\t\t'money',\n\t\t\t'pencil',\n\t\t\t'plugin',\n\t\t\t'quotes',\n\t\t\t'sharethis',\n\t\t\t'skype',\n\t\t\t'star',\n\t\t\t'table',\n\t\t\t'user',\n\t\t\t'vimeo',\n\t\t\t'wrench',\n\t\t\t'youtube',\n\t\t)\n\t);\n}", "title": "" }, { "docid": "e5d29719741e7a03de07c3a17efdbc0c", "score": "0.54960275", "text": "function oneclick_google_map_plugin_mainpage()\r\r\n{\r\r\n if (!current_user_can('manage_options')) {\r\r\n wp_die('We hereby declarating :You are not authorised to access this plugin');\r\r\n }\r\r\n global $plugin_url;\r\r\n global $options;\r\r\n if (isset($_POST['google_settings_form_submitted'])) {\r\r\n $hidden_field = esc_html($_POST['google_settings_form_submitted']);\r\r\n if ($hidden_field == \"Y\") {\r\r\n $gmap_iconizer_apikey = esc_html($_POST['gmap_iconizer_apikey']);\r\r\n $options_settings['gmap_iconizer_apikey'] = $gmap_iconizer_apikey;\r\r\n $gmap_iconizer_zoomcontrol = esc_html($_POST['gmap_iconizer_zoomcontrol']);\r\r\n $options_settings['gmap_iconizer_zoomcontrol'] = $gmap_iconizer_zoomcontrol;\r\r\n $gmap_iconizer_zoomcontrolSize = esc_html($_POST['gmap_iconizer_zoomcontrolSize']);\r\r\n $options_settings['gmap_iconizer_zoomcontrolSize'] = $gmap_iconizer_zoomcontrolSize;\r\r\n $gmap_iconizer_zoomcontrolPosition = esc_html($_POST['gmap_iconizer_zoomcontrolPosition']);\r\r\n $options_settings['gmap_iconizer_zoomcontrolPosition'] = $gmap_iconizer_zoomcontrolPosition;\r\r\n $gmap_iconizer_maptype = esc_html($_POST['gmap_iconizer_maptype']);\r\r\n $options_settings['gmap_iconizer_maptype'] = $gmap_iconizer_maptype;\r\r\n\t\t\t$gmap_iconizer_type = esc_html($_POST['gmap_iconizer_type']);\r\r\n $options_settings['gmap_iconizer_type'] = $gmap_iconizer_type;\r\r\n $gmap_iconizer_maptypecontrol_style = esc_html($_POST['gmap_iconizer_maptypecontrol_style']);\r\r\n $options_settings['gmap_iconizer_maptypecontrol_style'] = $gmap_iconizer_maptypecontrol_style;\r\r\n $gmap_iconizer_maptype_position = esc_html($_POST['gmap_iconizer_maptype_position']);\r\r\n $options_settings['gmap_iconizer_maptype_position'] = $gmap_iconizer_maptype_position;\r\r\n $gmap_iconizer_pancontrol = esc_html($_POST['gmap_iconizer_pancontrol']);\r\r\n $options_settings['gmap_iconizer_pancontrol'] = $gmap_iconizer_pancontrol;\r\r\n $gmap_iconizer_pan_position = esc_html($_POST['gmap_iconizer_pan_position']);\r\r\n $options_settings['gmap_iconizer_pan_position'] = $gmap_iconizer_pan_position;\r\r\n $gmap_iconizer_streetviewcontrol = esc_html($_POST['gmap_iconizer_streetviewcontrol']);\r\r\n $options_settings['gmap_iconizer_streetviewcontrol'] = $gmap_iconizer_streetviewcontrol;\r\r\n $gmap_iconizer_streetviewcontrol_position = esc_html($_POST['gmap_iconizer_streetviewcontrol_position']);\r\r\n $options_settings['gmap_iconizer_streetviewcontrol_position'] = $gmap_iconizer_streetviewcontrol_position;\r\r\n update_option('oneclick', $options_settings);\r\r\n }\r\r\n }\r\r\n if (isset($_POST['google_settings_form_submitted'])) {\r\r\n $hidden_field = esc_html($_POST['google_settings_form_submitted']);\r\r\n if ($hidden_field == \"Y\") {\r\r\n $gmap_iconizer_zoom_level = esc_html($_POST['gmap_iconizer_zoom_level']);\r\r\n $options_geolocation['gmap_iconizer_zoom_level'] = $gmap_iconizer_zoom_level;\r\r\n $gmap_iconizer_latitude = esc_html($_POST['gmap_iconizer_latitude']);\r\r\n $options_geolocation['gmap_iconizer_latitude'] = $gmap_iconizer_latitude;\r\r\n $gmap_iconizer_longitude = esc_html($_POST['gmap_iconizer_longitude']);\r\r\n $options_geolocation['gmap_iconizer_longitude'] = $gmap_iconizer_longitude;\r\r\n update_option('oneclick_geolocation', $options_geolocation);\r\r\n }\r\r\n }\r\r\n $options_geolocation = get_option('oneclick_geolocation');\r\r\n $gmap_iconizer_zoom_level = $options_geolocation['gmap_iconizer_zoom_level'];\r\r\n $gmap_iconizer_latitude = $options_geolocation['gmap_iconizer_latitude'];\r\r\n $gmap_iconizer_longitude = $options_geolocation['gmap_iconizer_longitude'];\r\r\n $options_iconizer = get_option('oneclick');\r\r\n $gmap_iconizer_apikey = $options_iconizer['gmap_iconizer_apikey'];\r\r\n $gmap_iconizer_zoomcontrol = $options_iconizer['gmap_iconizer_zoomcontrol'];\r\r\n $gmap_iconizer_zoomcontrolSize = $options_iconizer['gmap_iconizer_zoomcontrolSize'];\r\r\n $gmap_iconizer_zoomcontrolPosition = $options_iconizer['gmap_iconizer_zoomcontrolPosition'];\r\r\n $gmap_iconizer_maptype = $options_iconizer['gmap_iconizer_maptype'];\r\r\n\t$gmap_iconizer_type = $options_iconizer['gmap_iconizer_type'];\r\r\n $gmap_iconizer_maptypecontrol_style = $options_iconizer['gmap_iconizer_maptypecontrol_style'];\r\r\n $gmap_iconizer_maptype_position = $options_iconizer['gmap_iconizer_maptype_position'];\r\r\n $gmap_iconizer_pancontrol = $options_iconizer['gmap_iconizer_pancontrol'];\r\r\n $gmap_iconizer_pan_position = $options_iconizer['gmap_iconizer_pan_position'];\r\r\n $gmap_iconizer_streetviewcontrol = $options_iconizer['gmap_iconizer_streetviewcontrol'];\r\r\n $gmap_iconizer_streetviewcontrol_position = $options_iconizer['gmap_iconizer_streetviewcontrol_position'];\r\r\n if (isset($_POST['frontend_settings_form_submitted'])) {\r\r\n $hidden_field_frontend = esc_html($_POST['frontend_settings_form_submitted']);\r\r\n if ($hidden_field_frontend == \"Y\") {\r\r\n $gmap_iconizer_upload_icon = esc_html($_POST['upload_icon']);\r\r\n $options_frontend['gmap_iconizer_upload_icon'] = $gmap_iconizer_upload_icon;\r\r\n $gmap_iconizer_maphue = esc_html($_POST['gmap_iconizer_hue']);\r\r\n $options_frontend['gmap_iconizer_maphue'] = $gmap_iconizer_maphue;\r\r\n $gmap_iconizer_mapsaturation = esc_html($_POST['gmap_iconizer_saturation']);\r\r\n $options_frontend['gmap_iconizer_mapsaturation'] = $gmap_iconizer_mapsaturation;\r\r\n $gmap_iconizer_mapwidth = esc_html($_POST['gmap_iconizer_mapwidth']);\r\r\n $options_frontend['gmap_iconizer_mapwidth'] = $gmap_iconizer_mapwidth;\r\r\n $gmap_iconizer_mapheight = esc_html($_POST['gmap_iconizer_mapheight']);\r\r\n $options_frontend['gmap_iconizer_mapheight'] = $gmap_iconizer_mapheight;\r\r\n $gmap_iconizer_mapstyle = esc_html($_POST['gmap_iconizer_mapstyle']);\r\r\n $options_frontend['gmap_iconizer_mapstyle'] = $gmap_iconizer_mapstyle;\r\r\n $gmap_iconizer_mapcontainerstyle = esc_html($_POST['gmap_iconizer_mapcontainerstyle']);\r\r\n $options_frontend['gmap_iconizer_mapcontainerstyle'] = $gmap_iconizer_mapcontainerstyle;\r\r\n update_option('oneclick_frontend', $options_frontend);\r\r\n }\r\r\n }\r\r\n $options_frontend_admin = get_option('oneclick_frontend');\r\r\n $gmap_iconizer_upload_icon = $options_frontend_admin['gmap_iconizer_upload_icon'];\r\r\n $gmap_iconizer_maphue = $options_frontend_admin['gmap_iconizer_maphue'];\r\r\n $gmap_iconizer_mapsaturation = $options_frontend_admin['gmap_iconizer_mapsaturation'];\r\r\n $gmap_iconizer_mapwidth = $options_frontend_admin['gmap_iconizer_mapwidth'];\r\r\n $gmap_iconizer_mapheight = $options_frontend_admin['gmap_iconizer_mapheight'];\r\r\n $gmap_iconizer_mapstyle = $options_frontend_admin['gmap_iconizer_mapstyle'];\r\r\n $gmap_iconizer_mapcontainerstyle = $options_frontend_admin['gmap_iconizer_mapcontainerstyle'];\r\r\n $options_main_frontend = get_option('oneclick_google_map_frontend_tutorials');\r\r\n $options_main_advanced = get_option('oneclick_google_map_advanced_tutorials');\r\r\n $options_main_installation = get_option('oneclick_google_map_installation_tutorials');\r\r\n $tutorial_last_updated = $options_main_installation['last_updated'];\r\r\n $timenow = time();\r\r\n $check_updates_difference = $timenow - $tutorial_last_updated;\r\r\n // ======================================================================\r\r\n // /* 604800 for a Week 86400 for a day */\r\r\n // ======================================================================\r\r\n if ($check_updates_difference > 150) {\r\r\n $tutorial_frontend_api = oneclick_call_wp_frontend_api();\r\r\n $tutorial_advanced_api = oneclick_call_wp_advanced_api();\r\r\n $tutorial_installation_api = oneclick_call_wp_installation_api();\r\r\n $tutorials_frontend['oneclick_google_map_frontend_tutorials'] = $tutorial_frontend_api;\r\r\n $tutorial_advanced['oneclick_google_map_advanced_tutorials'] = $tutorial_advanced_api;\r\r\n $tutorial_installation['oneclick_google_map_installation_tutorials'] = $tutorial_installation_api;\r\r\n $tutorial_installation['last_updated'] = time();\r\r\n update_option('oneclick_google_map_frontend_tutorials', $tutorials_frontend);\r\r\n update_option('oneclick_google_map_advanced_tutorials', $tutorial_advanced);\r\r\n update_option('oneclick_google_map_installation_tutorials', $tutorial_installation);\r\r\n }\r\r\n $context = stream_context_create(array(\r\r\n 'http' => array(\r\r\n 'header' => 'Accept: application/xml'\r\r\n )\r\r\n ));\r\r\n $url = 'http://wp-samurai.com/wp-samurai-updates.xml';\r\r\n $xml = file_get_contents($url, false, $context);\r\r\n $xml = simplexml_load_string($xml);\r\r\n $updatedversion = $xml->googlemap->version;\r\r\n global $pluginversion;\r\r\n $updatedversion = (double)$updatedversion;\r\r\n $pluginversion = (double)$pluginversion;\r\r\n if ($updatedversion > $pluginversion) {\r\r\n echo '<div style=\"width:80%; padding: 10px;margin-left:0px;margin-bottom:15px;margin-top:15px;\" class=\"error below-h2\">\r\r\n We updated Our Plugin from ' . $pluginversion . ' to ' . $updatedversion . ' at ' . $xml->googlemap->publish_date . '\r\r\n <p>Release Notes :' . $xml->googlemap->description . '\r\r\n </br>' . $xml->googlemap->releasenote1 . ', ' . $xml->googlemap->releasenote2 . '\r\r\n </p>\r\r\n <p>\r\r\n Bug Fixes :</br> ' . $xml->googlemap->bug1 . ', ' . $xml->googlemap->bug2 . '\r\r\n </p>\r\r\n <p>Please take time to <a href=\"' . $xml->googlemap->downloadurl . '\" target=\"_blank\">download</a> new version from CodeCanyon</p>\r\r\n </div>';\r\r\n }\r\r\n else {\r\r\n }\r\r\n require ('includes/plugin_mainpage_wrapper.php');\r\r\n}", "title": "" }, { "docid": "de02130f990164d13773f1b824cb64f8", "score": "0.5483372", "text": "function getIcon() {\n\t\t\t\treturn 'userforms_custom_fields/images/' . strtolower($this->class) . '.png';\n\t\t\t}", "title": "" }, { "docid": "e17dc096e121e4ed02dc1a70fbdecd3c", "score": "0.54805005", "text": "function oneclick_plugin_menu()\r\r\n{\r\r\n add_menu_page('OneClick Google Map', 'OneClick Map', 'manage_options', 'oneclick-google-map', 'oneclick_google_map_plugin_mainpage', 'dashicons-location' /*plugins_url( 'gmap-iconizer/includes/images/map_marker.png')*/);\r\r\n add_submenu_page('oneclick-google-map', 'OneClick Google Map', 'OneClick Google Map', 'manage_options', 'oneclick-google-map' );\r\r\n\tadd_submenu_page('oneclick-google-map', 'OneClick GeoLocation Finder', 'GeoLocation Finder', 'manage_options', 'oneclick-geolocation-finder', 'oneclick_google_map_plugin_geolocationpage');\r\r\n}", "title": "" }, { "docid": "99eacabf53b6522141231e10e41aea54", "score": "0.5479899", "text": "public function get_icon()\n {\n return parent::get_icon();\n }", "title": "" }, { "docid": "25e8a85243e14f540fac0af873000948", "score": "0.5467161", "text": "function tool_certificate_get_fontawesome_icon_map() {\n return [\n 'tool_certificate:download' => 'fa-download'\n ];\n}", "title": "" }, { "docid": "a5065fcc1e9251bab404ad7dbd5153f8", "score": "0.54649687", "text": "public function getIcons()\n\t{\n\t\t$user = JFactory::getUser();\n\t\t// reset icon array\n\t\t$icons = array();\n\t\t// view groups array\n\t\t$viewGroups = array(\n\t\t\t'main' => array('png.question.add', 'png.questions', 'png.questions.catid', 'png.exams')\n\t\t);\n\t\t// view access array\n\t\t$viewAccess = array(\n\t\t\t'question.create' => 'question.create',\n\t\t\t'questions.access' => 'question.access',\n\t\t\t'question.access' => 'question.access',\n\t\t\t'questions.submenu' => 'question.submenu',\n\t\t\t'questions.dashboard_list' => 'question.dashboard_list',\n\t\t\t'question.dashboard_add' => 'question.dashboard_add',\n\t\t\t'exam.create' => 'exam.create',\n\t\t\t'exams.access' => 'exam.access',\n\t\t\t'exam.access' => 'exam.access',\n\t\t\t'exams.submenu' => 'exam.submenu',\n\t\t\t'exams.dashboard_list' => 'exam.dashboard_list',\n\t\t\t'questiontypes.access' => 'questiontype.access',\n\t\t\t'questiontype.access' => 'questiontype.access');\n\t\t// loop over the $views\n\t\tforeach($viewGroups as $group => $views)\n\t\t{\n\t\t\t$i = 0;\n\t\t\tif (JcpqmHelper::checkArray($views))\n\t\t\t{\n\t\t\t\tforeach($views as $view)\n\t\t\t\t{\n\t\t\t\t\t$add = false;\n\t\t\t\t\t// external views (links)\n\t\t\t\t\tif (strpos($view,'||') !== false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$dwd = explode('||', $view);\n\t\t\t\t\t\tif (count($dwd) == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlist($type, $name, $url) = $dwd;\n\t\t\t\t\t\t\t$viewName \t= $name;\n\t\t\t\t\t\t\t$alt \t\t= $name;\n\t\t\t\t\t\t\t$url \t\t= $url;\n\t\t\t\t\t\t\t$image \t\t= $name.'.'.$type;\n\t\t\t\t\t\t\t$name \t\t= 'COM_JCPQM_DASHBOARD_'.JcpqmHelper::safeString($name,'U');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// internal views\n\t\t\t\t\telseif (strpos($view,'.') !== false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$dwd = explode('.', $view);\n\t\t\t\t\t\tif (count($dwd) == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlist($type, $name, $action) = $dwd;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif (count($dwd) == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlist($type, $name) = $dwd;\n\t\t\t\t\t\t\t$action = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($action)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$viewName = $name;\n\t\t\t\t\t\t\tswitch($action)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcase 'add':\n\t\t\t\t\t\t\t\t\t$url \t= 'index.php?option=com_jcpqm&view='.$name.'&layout=edit';\n\t\t\t\t\t\t\t\t\t$image \t= $name.'_'.$action.'.'.$type;\n\t\t\t\t\t\t\t\t\t$alt \t= $name.'&nbsp;'.$action;\n\t\t\t\t\t\t\t\t\t$name\t= 'COM_JCPQM_DASHBOARD_'.JcpqmHelper::safeString($name,'U').'_ADD';\n\t\t\t\t\t\t\t\t\t$add\t= true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t$url \t= 'index.php?option=com_categories&view=categories&extension=com_jcpqm.'.$name;\n\t\t\t\t\t\t\t\t\t$image \t= $name.'_'.$action.'.'.$type;\n\t\t\t\t\t\t\t\t\t$alt \t= $name.'&nbsp;'.$action;\n\t\t\t\t\t\t\t\t\t$name\t= 'COM_JCPQM_DASHBOARD_'.JcpqmHelper::safeString($name,'U').'_'.JcpqmHelper::safeString($action,'U');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$viewName \t= $name;\n\t\t\t\t\t\t\t$alt \t\t= $name;\n\t\t\t\t\t\t\t$url \t\t= 'index.php?option=com_jcpqm&view='.$name;\n\t\t\t\t\t\t\t$image \t\t= $name.'.'.$type;\n\t\t\t\t\t\t\t$name \t\t= 'COM_JCPQM_DASHBOARD_'.JcpqmHelper::safeString($name,'U');\n\t\t\t\t\t\t\t$hover\t\t= false;\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$viewName \t= $view;\n\t\t\t\t\t\t$alt \t\t= $view;\n\t\t\t\t\t\t$url \t\t= 'index.php?option=com_jcpqm&view='.$view;\n\t\t\t\t\t\t$image \t\t= $view.'.png';\n\t\t\t\t\t\t$name \t\t= ucwords($view).'<br /><br />';\n\t\t\t\t\t\t$hover\t\t= false;\n\t\t\t\t\t}\n\t\t\t\t\t// first make sure the view access is set\n\t\t\t\t\tif (JcpqmHelper::checkArray($viewAccess))\n\t\t\t\t\t{\n\t\t\t\t\t\t// setup some defaults\n\t\t\t\t\t\t$dashboard_add = false;\n\t\t\t\t\t\t$dashboard_list = false;\n\t\t\t\t\t\t$accessTo = '';\n\t\t\t\t\t\t$accessAdd = '';\n\t\t\t\t\t\t// acces checking start\n\t\t\t\t\t\t$accessCreate = (isset($viewAccess[$viewName.'.create'])) ? JcpqmHelper::checkString($viewAccess[$viewName.'.create']):false;\n\t\t\t\t\t\t$accessAccess = (isset($viewAccess[$viewName.'.access'])) ? JcpqmHelper::checkString($viewAccess[$viewName.'.access']):false;\n\t\t\t\t\t\t// set main controllers\n\t\t\t\t\t\t$accessDashboard_add = (isset($viewAccess[$viewName.'.dashboard_add'])) ? JcpqmHelper::checkString($viewAccess[$viewName.'.dashboard_add']):false;\n\t\t\t\t\t\t$accessDashboard_list = (isset($viewAccess[$viewName.'.dashboard_list'])) ? JcpqmHelper::checkString($viewAccess[$viewName.'.dashboard_list']):false;\n\t\t\t\t\t\t// check for adding access\n\t\t\t\t\t\tif ($add && $accessCreate)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$accessAdd = $viewAccess[$viewName.'.create'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif ($add)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$accessAdd = 'core.create';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// check if acces to view is set\n\t\t\t\t\t\tif ($accessAccess)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$accessTo = $viewAccess[$viewName.'.access'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// set main access controllers\n\t\t\t\t\t\tif ($accessDashboard_add)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$dashboard_add\t= $user->authorise($viewAccess[$viewName.'.dashboard_add'], 'com_jcpqm');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($accessDashboard_list)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$dashboard_list = $user->authorise($viewAccess[$viewName.'.dashboard_list'], 'com_jcpqm');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (JcpqmHelper::checkString($accessAdd) && JcpqmHelper::checkString($accessTo))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// check access\n\t\t\t\t\t\t\tif($user->authorise($accessAdd, 'com_jcpqm') && $user->authorise($accessTo, 'com_jcpqm') && $dashboard_add)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$icons[$group][$i]\t\t\t= new StdClass;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->url \t= $url;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->name \t= $name;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->image \t= $image;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->alt \t= $alt;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif (JcpqmHelper::checkString($accessTo))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// check access\n\t\t\t\t\t\t\tif($user->authorise($accessTo, 'com_jcpqm') && $dashboard_list)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$icons[$group][$i]\t\t\t= new StdClass;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->url \t= $url;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->name \t= $name;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->image \t= $image;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->alt \t= $alt;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif (JcpqmHelper::checkString($accessAdd))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// check access\n\t\t\t\t\t\t\tif($user->authorise($accessAdd, 'com_jcpqm') && $dashboard_add)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$icons[$group][$i]\t\t\t= new StdClass;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->url \t= $url;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->name \t= $name;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->image \t= $image;\n\t\t\t\t\t\t\t\t$icons[$group][$i]->alt \t= $alt;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$icons[$group][$i]\t\t\t= new StdClass;\n\t\t\t\t\t\t\t$icons[$group][$i]->url \t= $url;\n\t\t\t\t\t\t\t$icons[$group][$i]->name \t= $name;\n\t\t\t\t\t\t\t$icons[$group][$i]->image \t= $image;\n\t\t\t\t\t\t\t$icons[$group][$i]->alt \t= $alt;\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$icons[$group][$i]\t\t\t= new StdClass;\n\t\t\t\t\t\t$icons[$group][$i]->url \t= $url;\n\t\t\t\t\t\t$icons[$group][$i]->name \t= $name;\n\t\t\t\t\t\t$icons[$group][$i]->image \t= $image;\n\t\t\t\t\t\t$icons[$group][$i]->alt \t= $alt;\n\t\t\t\t\t}\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\t$icons[$group][$i] = false;\n\t\t\t}\n\t\t}\n\t\treturn $icons;\n\t}", "title": "" }, { "docid": "55c534c52a5a17574b4e99d693b17bdf", "score": "0.54457146", "text": "function plugin_geticon_nexform()\n{\n global $_CONF;\n\n return $_CONF['layout_url'] .'/nexform/images/admin/nexform.gif';\n}", "title": "" }, { "docid": "45c2fba69f9cbac3371b9592a72b8e95", "score": "0.543373", "text": "function screen_icon()\n {\n }", "title": "" }, { "docid": "16f67988ef7569a12ea3f4fffad653d8", "score": "0.5422459", "text": "function section__map(){\n return array(\n 'content'=>\"<div style='width:300px; height:300px' style='\n margin-left:auto; margin-right:auto;' id='map'></div>\",\n 'class'=>'main',\n 'label'=>'Map',\n 'order'=>'1'\n );\n }", "title": "" }, { "docid": "dd19ed5f4ab84bc961da29792097f9b9", "score": "0.5414278", "text": "function register_googleMap($buttons) {\n array_push($buttons, \"googleMap\"); \n return $buttons; \n}", "title": "" }, { "docid": "b1b33a224c811fa9121a558c8bf5aec2", "score": "0.5402444", "text": "function wp_site_icon()\n {\n }", "title": "" }, { "docid": "84aff31103e5a1b68577aa06d3b16bf0", "score": "0.53973925", "text": "public function layout_add_new_iconfield() {\n ?>\n <div style=\" display:table; width:100%; padding-right:10px; padding-bottom:20px; \" >\n <label><?php echo __(\"Category Icons\", \"templatic_cat_icon\"); ?></label> \n </div>\n <div id=\"layout_icon_type_image\" style=\"margin-bottom:20px; clear:both; position:relative; float:left; width:45px; z-index:999;\" >\n <div id=\"layout_preview_img\" style=\"clear:both; margin:10px 0;\" >\n </div>\n <input id=\"layout_icon_img\" type=\"hidden\" size=\"36\" name=\"layout_icon_img\" value=\"http://\" />\n\n <div style=\"display:none;\" class=\"layout_remove\" id='layout_remove'><a style=\"background:#fff; padding:4px; font-weight:bold; -webkit-border-radius: 25px;\n -moz-border-radius: 25px; border-radius: 25px; font-size:13px; padding:0 5px; position:absolute; right:-4px; top:-2px; cursor:pointer; \" ><?php _e(\"X\", \"templatic_cat_icon\") ?></a></div>\n <input id=\"img\" class=\"layout_icon_button button\" type=\"button\" value=\"Upload Image\" style=\"clear:both;\" />\n </div>\n <div style=\"clear:both;\"></div>\n\n <?php\n }", "title": "" }, { "docid": "2f7a41a123b20152d933d348c8179df9", "score": "0.5382569", "text": "protected function getUserFieldMarkers() {}", "title": "" }, { "docid": "4fac9f0888fea5c830480ad652191aaa", "score": "0.53784037", "text": "function get_location_content() {\n\n\n\t/*\n\t* Visible list of locations.\n\t*/\n\t$selector_panel_tabs = '';\n\t$selector_panel_info = '';\n\n\n\t// Get all the pins for the map\n\t$pins = array();\n\t$i = 0;\n\t$show_first = true; // set to false to hide all details by default. true to show the first one.\n\twhile ( have_rows( 'pin_locations' ) ) {\n\t\tthe_row();\n\n\t\t$pin_info = array();\n\t\t$pin_info[ 'name' ] = get_sub_field( 'name' );\n\t\t$pin_info[ 'description' ] = get_sub_field( 'description' );\n\t\t$pin_info[ 'description_pin' ] = apply_filters('the_content', get_sub_field( 'description' )); // apply_filters lets us render the shortcodes (athena) and use them in pins\n\t\t$pin_info[ 'hours_of_operation' ] = get_sub_field( 'hours_of_operation' );\n\t\t$pin_info[ 'address' ] = get_sub_field( 'address' );\n\t\t$pin_info[ 'address_pin' ] = apply_filters('the_content',get_sub_field( 'address' ));\n\t\t$pin_info[ 'url' ] = get_sub_field( 'url' );\n\t\t//$pin_info[''] = get_sub_field('');\n\n\n\t\twhile (have_rows('phone_numbers')){\n\t\t\tthe_row();\n\t\t\t//$type = get_sub_field('type');\n\t\t\t$number = get_sub_field('number');\n\t\t\t//$pin_info['phone_numbers'][$type] = $number;\n\t\t\t$pin_info['phone_numbers'][] = $number;\n\t\t}\n\n\t\t// coordinates are in a group, which also needs to be looped even though it isn't a repeater\n\t\twhile (have_rows('coordinates')){\n\t\t\tthe_row();\n\t\t\t$pin_info['latitude'] = get_sub_field('latitude');\n\t\t\t$pin_info['longitude'] = get_sub_field('longitude');\n\n\t\t}\n\n\n\t\t$pin_info[ 'slug' ] = 'ucfh-' . md5(json_encode($pin_info));\n\t\t// use md5 to create a unique id that only changes when the pin data changes - for caching and unique id in html\n\t\t// note: ids MUST start with a letter, so prefix the md5 to prevent erros\n\n\t\t$pins[$pin_info[ 'slug' ]] = $pin_info;\n\n\t\t// 4. Create an always-visible list entry (outside of the google map interface)\n\n\t\tif ($i === 0 && $show_first){\n\t\t\t$show_current = true;\n\t\t} else {\n\t\t\t$show_current = false;\n\t\t}\n\n\t\t$selector_panel_tabs .= selector_panel_list_tab( $pin_info, $show_current );\n\t\t$selector_panel_info .= selector_panel_list_info( $pin_info, $show_current );\n\n\t\t$i++;\n\t}\n\n\t$unique_id_all_data = 'ucfh-' . md5(json_encode($pins));\n\t// generate another unique id for the parent object. this way, a page with multiple blocks won't interfere with one another.\n\t// note: ids MUST start with a letter, so prefix the md5 to prevent erros\n\n\tif ( get_field('panel_visible')) {\n\t\t$selector_panel = \"\n\t\t\t<div class='info selector-panel locations' >\n\t\t\t\t<div class='nab-tab-area' >\n\t\t\t\t\t<ul class='nav nav-tabs' id='{$unique_id_all_data}-tabs' role='tablist' >\n\t\t\t\t\t\t{$selector_panel_tabs}\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<div class='tab-content' id='{$unique_id_all_data}-content' >\n\t\t\t\t\t{$selector_panel_info}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\";\n\n\t} else {\n\t\t$selector_panel = '';\n\t}\n\n\twp_localize_script(script_register, 'pin_data', $pins);\n\n\tif ( get_field('map_visible') ) {\n\t\t$map = \"<section class='ucf-health-locationsmap-container' ><div class='ucf-health-locationsmap' ></div></section>\";\n\t} else {\n\t\t$map = '';\n\t}\n\n\treturn \"<div class='locations-output' id='{$unique_id_all_data}' >{$selector_panel}{$map}</div>\";\n}", "title": "" }, { "docid": "23947b90eb3b8d3d738eff6ae290ff4b", "score": "0.5376123", "text": "public function add_location_metaboxes() {\n\t\t\t$post_type = PostType::get_instance()->get_post_type();\n\t\t\tadd_meta_box(\n\t\t\t\t$post_type,\n\t\t\t\t__( 'Yoast Local SEO', 'yoast-local-seo' ),\n\t\t\t\t[ $this, 'metabox_locations' ],\n\t\t\t\t$post_type,\n\t\t\t\t'normal',\n\t\t\t\t'high'\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "76ac72f2afa9e33cf858412e52a9e5ce", "score": "0.5375473", "text": "public function get_icon() {\r\n\t\treturn 'eicon-form-horizontal';\r\n\t}", "title": "" }, { "docid": "f20dba5b4987fb740b254d828f51c257", "score": "0.5367621", "text": "function icon() {\n\t\t$url = $this->plugin_url();\n\t\t$url .= '/images/transmit_blue.png';\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "6a858623c96c8536d20c1a01e5487af3", "score": "0.53475016", "text": "public function urlIcon(): string;", "title": "" }, { "docid": "8684102a92460fd432928e9889f4e8a0", "score": "0.5346854", "text": "function gmw_ps_gl_get_map_icons_via_query( $gmw ) {\n\n\tif ( false == ( $usage = $gmw['map_markers']['usage'] ) ) {\n\t\t$usage = 'global';\n\t}\n\n\t// abort if not the right usage\n\tif ( ! in_array( $usage, array( 'global', 'per_group' ) ) ) {\n\t\treturn false;\n\t}\n\n\tglobal $wpdb;\n\n\t// get icons url\n\t$icons = gmw_get_icons();\n\t$icons_url = $icons['gl_map_icons']['url'];\n\n\t// get default marker. If no icon provided or using the _default.png,\n\t// we than pass blank value, to use Google's default red marker.\n\tif ( ! empty( $gmw['map_markers']['default_marker'] ) && '_default.png' != $gmw['map_markers']['default_marker'] ) {\n\t\t$default_icon = $icons_url.$gmw['map_markers']['default_marker'];\n\t} else {\n\t\t$default_icon = GMW()->default_icons['location_icon_url'];\n\t}\n\n\t// if global icon.\n\tif ( 'global' === $usage ) {\n\t\treturn $wpdb->prepare( \"%s as map_icon\", $default_icon );\n\t}\n\n\t// if per group, get the icon from locations table\n\tif ( 'per_group' === $usage ) {\n\n\t\treturn $wpdb->prepare( \"IF ( gmw_locations.map_icon IS NOT NULL AND gmw_locations.map_icon != '_default.png', CONCAT( %s, gmw_locations.map_icon ), %s ) as map_icon\", $icons_url, $default_icon );\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "72e074184cff2b657f154ae72d722a0d", "score": "0.53453046", "text": "function edgtf_core_set_google_map_icon_class_name_for_vc_shortcodes($shortcodes_icon_class_array) {\n\t\t$shortcodes_icon_class_array[] = '.icon-wpb-google-map';\n\t\t\n\t\treturn $shortcodes_icon_class_array;\n\t}", "title": "" }, { "docid": "486128692df9edb708655170ebb5a024", "score": "0.5335959", "text": "function amap_ma_get_marker_icon($pluginname = null) {\n $markericon = trim(elgg_get_plugin_setting('markericon', $pluginname));\n if (!isset($markericon) || !$markericon) {\n $markericon = 'smiley.png';\n } else {\n $markericon = $markericon . '.png';\n }\n\n return $markericon;\n}", "title": "" }, { "docid": "45bae790fa17b51187547c4ccea3f284", "score": "0.5335172", "text": "public function metabox_locations() {\n\t\t\tif ( empty( $this->tabs ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\techo '<div id=\"wpseo-local-metabox\">';\n\t\t\techo '<div class=\"wpseo-local-metabox-content\">';\n\n\t\t\t// Adding a tabbed UI to match the options pages even more.\n\t\t\t$this->tab_navigation();\n\t\t\t$this->tabs_panels();\n\n\t\t\t// Noncename needed to verify where the data originated.\n\t\t\techo '<input type=\"hidden\" name=\"locationsmeta_noncename\" id=\"locationsmeta_noncename\" value=\"' . esc_attr( wp_create_nonce( plugin_basename( __FILE__ ) ) ) . '\" />';\n\n\t\t\techo '</div>';\n\t\t\techo '</div><!-- .wpseo-metabox-content -->';\n\t\t}", "title": "" }, { "docid": "4264400dcb2b68d205b140a9b231c4e9", "score": "0.5332261", "text": "function fillPostIconPosition(){\n\t\t?>\n\n\t\t<label><input type=\"radio\" name=\"pi_left_right\" value = \"0\">Left</label>\n\t\t<label><input type=\"radio\" name=\"pi_left_right\" value = \"1\">Right</label>\n\n\t\t<?php\n\t}", "title": "" }, { "docid": "13941047328e9249505687b7f662619b", "score": "0.53245896", "text": "protected function addDisplayToolbar() {\n\t\t$doc = JFactory::getDocument();\n\t\t$doc->addStyleDeclaration('.icon-48-jmap{background-image:url(\"components/com_jmap/images/jmap-48x48.png\")}');\n\t\tJToolBarHelper::title( JText::_('COM_JMAP_CPANEL_TOOLBAR' ), 'jmap' );\n\t\tJToolBarHelper::custom('cpanel.display', 'home', 'home', 'COM_JMAP_CPANEL', false);\n\t}", "title": "" }, { "docid": "bfe6bb282f8d39d5ab709e11f15f20c5", "score": "0.5322763", "text": "function phorum_mod_google_maps_cc_menu_options_hook()\n{\n global $PHORUM;\n\n // Generate the required template data for the control panel menu button.\n if ($PHORUM[\"DATA\"][\"PROFILE\"][\"PANEL\"] == 'location')\n $PHORUM[\"DATA\"][\"LOCATION_PANEL_ACTIVE\"] = TRUE;\n $PHORUM[\"DATA\"][\"URL\"][\"CC_LOCATION\"] =\n phorum_get_url(PHORUM_CONTROLCENTER_URL, \"panel=location\");\n\n // Show the menu button.\n include phorum_get_template('google_maps::cc_menu_item');\n}", "title": "" }, { "docid": "d63b40c582695c484c81007a8772946e", "score": "0.5319346", "text": "public static function update_elements() {\n\t\t// Update elements.\n\t\tvc_map_update( 'vc_row' , array( 'icon' => 'fa fa-bars' ) );\n\t\tvc_map_update( 'vc_column_text' , array( 'icon' => 'fa fa-file-text-o' ) );\n\t\tvc_map_update( 'vc_icon' , array( 'icon' => 'fa fa-smile-o' ) );\n\t\tvc_map_update( 'vc_message' , array( 'icon' => 'fa fa-newspaper-o' ) );\n\t\tvc_map_update( 'vc_facebook' , array( 'icon' => 'fa fa-facebook-square' ) );\n\t\tvc_map_update( 'vc_tweetmeme' , array( 'icon' => 'fa fa-twitter' ) );\n\t\tvc_map_update( 'vc_googleplus' , array( 'icon' => 'fa fa-google-plus-square' ) );\n\t\tvc_map_update( 'vc_pinterest' , array( 'icon' => 'fa fa-pinterest-square' ) );\n\t\tvc_map_update( 'vc_toggle' , array( 'icon' => 'fa fa-question-circle' ) );\n\t\tvc_map_update( 'vc_single_image' , array( 'icon' => 'fa fa-picture-o' ) );\n\t\tvc_map_update( 'vc_gallery' , array( 'icon' => 'fa fa-picture-o' ) );\n\t\tvc_map_update( 'vc_images_carousel' , array( 'icon' => 'fa fa-picture-o' ) );\n\t\tvc_map_update( 'vc_tta_tabs' , array( 'icon' => 'fa fa-list-alt' ) );\n\t\tvc_map_update( 'vc_tta_tour' , array( 'icon' => 'fa fa-list-alt' ) );\n\t\tvc_map_update( 'vc_tta_accordion' , array( 'icon' => 'fa fa-align-justify' ) );\n\t\tvc_map_update( 'vc_tta_pageable' , array( 'icon' => 'fa fa-sort-amount-desc' ) );\n\t\tvc_map_update( 'vc_posts_slider' , array( 'icon' => 'fa fa-sliders' ) );\n\t\tvc_map_update( 'vc_widget_sidebar' , array( 'icon' => 'fa fa-cubes' ) );\n\t\tvc_map_update( 'vc_raw_html' , array( 'icon' => 'fa fa-html5' ) );\n\t\tvc_map_update( 'vc_raw_js' , array( 'icon' => 'fa fa-code' ) );\n\t\tvc_map_update( 'vc_flickr' , array( 'icon' => 'fa fa-flickr' ) );\n\t\tvc_map_update( 'vc_progress_bar' , array( 'icon' => 'fa fa-tasks' ) );\n\t\tvc_map_update( 'vc_pie' , array( 'icon' => 'fa fa-pie-chart' ) );\n\t\tvc_map_update( 'vc_round_chart' , array( 'icon' => 'fa fa-bar-chart' ) );\n\t\tvc_map_update( 'vc_line_chart' , array( 'icon' => 'fa fa-line-chart' ) );\n\t\tvc_map_update( 'vc_empty_space' , array( 'icon' => 'fa fa-square-o' ) );\n\t\tvc_map_update( 'vc_custom_heading' , array( 'icon' => 'fa fa-header' ) );\n\t\tvc_map_update( 'vc_btn' , array( 'icon' => 'fa fa-stop' ) );\n\t\tvc_map_update( 'vc_cta' , array( 'icon' => 'fa fa-credit-card' ) );\n\t\tvc_map_update( 'vc_basic_grid' , array( 'icon' => 'fa fa-th' ) );\n\t\tvc_map_update( 'vc_media_grid' , array( 'icon' => 'fa fa-th-large' ) );\n\t\tvc_map_update( 'vc_masonry_grid' , array( 'icon' => 'fa fa-th-list' ) );\n\t\tvc_map_update( 'vc_masonry_media_grid', array( 'icon' => 'fa fa-th-list' ) );\n\t\tvc_map_update( 'vc_wp_search' , array( 'icon' => 'fa fa-wordpress' ) );\n\t\tvc_map_update( 'vc_wp_meta' , array( 'icon' => 'fa fa-wordpress' ) );\n\t\tvc_map_update( 'vc_wp_recentcomments' , array( 'icon' => 'fa fa-wordpress' ) );\n\t\tvc_map_update( 'vc_wp_calendar' , array( 'icon' => 'fa fa-wordpress' ) );\n\t\tvc_map_update( 'vc_wp_pages' , array( 'icon' => 'fa fa-wordpress' ) );\n\t\tvc_map_update( 'vc_wp_tagcloud' , array( 'icon' => 'fa fa-wordpress' ) );\n\t\tvc_map_update( 'vc_wp_custommenu' , array( 'icon' => 'fa fa-wordpress' ) );\n\t\tvc_map_update( 'vc_wp_text' , array( 'icon' => 'fa fa-wordpress' ) );\n\t\tvc_map_update( 'vc_wp_posts' , array( 'icon' => 'fa fa-wordpress' ) );\n\t\tvc_map_update( 'vc_wp_categories' , array( 'icon' => 'fa fa-wordpress' ) );\n\t\tvc_map_update( 'vc_wp_archives' , array( 'icon' => 'fa fa-wordpress' ) );\n\t\tvc_map_update( 'vc_wp_rss' , array( 'icon' => 'fa fa-wordpress' ) );\n\n\t\tif ( function_exists( 'wpcf7' ) ) {\n\t\t\tvc_map_update( 'contact-form-7', array( 'icon' => 'fa fa-envelope-o' ) );\n\t\t}\n\n\t\t// Remove elements.\n\t\tvc_remove_element( 'vc_gmaps' );\n\t\tvc_remove_element( 'vc_text_separator' );\n\t\tvc_remove_element( 'vc_separator' );\n\t\tvc_remove_element( 'vc_tabs' );\n\t\tvc_remove_element( 'vc_tour' );\n\t\tvc_remove_element( 'vc_accordion' );\n\t\tvc_remove_element( 'vc_button' );\n\t\tvc_remove_element( 'vc_button2' );\n\t\tvc_remove_element( 'vc_cta_button' );\n\t\tvc_remove_element( 'vc_cta_button2' );\n\t\tvc_remove_element( 'vc_video' );\n\n\t\tvc_remove_element( 'product_category' );\n\t\tvc_remove_element( 'product_categories' );\n\t\tvc_remove_element( 'add_to_cart' );\n\t\tvc_remove_element( 'woocommerce_cart' );\n\t\tvc_remove_element( 'woocommerce_checkout' );\n\t\tvc_remove_element( 'woocommerce_my_account' );\n\t\tvc_remove_element( 'add_to_cart_url' );\n\t\tvc_remove_element( 'product_page' \t);\n\t\tvc_remove_element( 'product' \t );\n\t\tvc_remove_element( 'products' \t );\n\t\tvc_remove_element( 'recent_products' );\n\t\tvc_remove_element( 'featured_products' );\n\t\tvc_remove_element( 'related_products' );\n\t\tvc_remove_element( 'sale_products' \t);\n\t\tvc_remove_element( 'best_selling_products' );\n\t\tvc_remove_element( 'top_rated_products' );\n\t\tvc_remove_element( 'product_attribute' );\n\n\t\tvc_map_update( 'woocommerce_order_tracking' , array( 'icon' => 'fa fa-shopping-cart' ) );\n\n\t\t// Remove parameters.\n\t\tvc_remove_param( 'vc_tta_tabs', 'shape' );\n\t\tvc_remove_param( 'vc_tta_tabs', 'color' );\n\n\t\t// Disable frontend editing mode\n\t\tvc_disable_frontend();\n\t}", "title": "" }, { "docid": "907c233ca06f9bad52a653abfb3a70f4", "score": "0.5318375", "text": "protected function addDisplayToolbar() {\r\n\t\t$doc = JFactory::getDocument();\r\n\t\t$doc->addStyleDeclaration('.icon-48-jmap{background-image:url(\"components/com_jmap/images/icon-48-help.png\")}');\r\n\t\t$doc->addStyleDeclaration('.icon-32-config{background-image:url(\"components/com_jmap/images/icon-32-config.png\")}');\r\n\t\tJToolBarHelper::title( JText::_( 'HELP' ), 'jmap' );\r\n\t\tJToolBarHelper::custom('cpanel.display', 'config', 'config', 'CPANEL', false);\r\n\t}", "title": "" }, { "docid": "31be49152dd45b2ca80bc2f86435b737", "score": "0.5294338", "text": "function atom_site_icon()\n {\n }", "title": "" }, { "docid": "2bcd3d42bbfb800c582b4f0253c33cc7", "score": "0.5292399", "text": "public function setIconName(?string $iconName): InfoboxInterface;", "title": "" }, { "docid": "8f63b0acd8d0330946d448a0256e0bee", "score": "0.5289871", "text": "protected function register_content_social_icons_controls() {\n\t\t$this->start_controls_section(\n\t\t\t'section_social_icon',\n\t\t\tarray(\n\t\t\t\t'label' => 'Social Icons',\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'social_icons_settings',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Social Icons', 'uael' ),\n\t\t\t\t'type' => \\Elementor\\Controls_Manager::SWITCHER,\n\t\t\t\t'label_on' => __( 'Show', 'uael' ),\n\t\t\t\t'label_off' => __( 'Hide', 'uael' ),\n\t\t\t\t'return_value' => 'yes',\n\t\t\t\t'default' => 'yes',\n\t\t\t)\n\t\t);\n\n\t\t$repeater = new Repeater();\n\n\t\tif ( UAEL_Helper::is_elementor_updated() ) {\n\t\t\t$repeater->add_control(\n\t\t\t\t'new_social',\n\t\t\t\tarray(\n\t\t\t\t\t'label' => __( 'Icon', 'uael' ),\n\t\t\t\t\t'type' => Controls_Manager::ICONS,\n\t\t\t\t\t'fa4compatibility' => 'social',\n\t\t\t\t\t'label_block' => true,\n\t\t\t\t\t'default' => array(\n\t\t\t\t\t\t'value' => 'fab fa-wordpress',\n\t\t\t\t\t\t'library' => 'fa-brands',\n\t\t\t\t\t),\n\t\t\t\t\t'recommended' => array(\n\t\t\t\t\t\t'fa-brands' => array(\n\t\t\t\t\t\t\t'android',\n\t\t\t\t\t\t\t'apple',\n\t\t\t\t\t\t\t'behance',\n\t\t\t\t\t\t\t'bitbucket',\n\t\t\t\t\t\t\t'codepen',\n\t\t\t\t\t\t\t'delicious',\n\t\t\t\t\t\t\t'deviantart',\n\t\t\t\t\t\t\t'digg',\n\t\t\t\t\t\t\t'dribbble',\n\t\t\t\t\t\t\t'elementor',\n\t\t\t\t\t\t\t'facebook',\n\t\t\t\t\t\t\t'flickr',\n\t\t\t\t\t\t\t'foursquare',\n\t\t\t\t\t\t\t'free-code-camp',\n\t\t\t\t\t\t\t'github',\n\t\t\t\t\t\t\t'gitlab',\n\t\t\t\t\t\t\t'globe',\n\t\t\t\t\t\t\t'google-plus',\n\t\t\t\t\t\t\t'houzz',\n\t\t\t\t\t\t\t'instagram',\n\t\t\t\t\t\t\t'jsfiddle',\n\t\t\t\t\t\t\t'linkedin',\n\t\t\t\t\t\t\t'medium',\n\t\t\t\t\t\t\t'meetup',\n\t\t\t\t\t\t\t'mixcloud',\n\t\t\t\t\t\t\t'odnoklassniki',\n\t\t\t\t\t\t\t'pinterest',\n\t\t\t\t\t\t\t'product-hunt',\n\t\t\t\t\t\t\t'reddit',\n\t\t\t\t\t\t\t'shopping-cart',\n\t\t\t\t\t\t\t'skype',\n\t\t\t\t\t\t\t'slideshare',\n\t\t\t\t\t\t\t'snapchat',\n\t\t\t\t\t\t\t'soundcloud',\n\t\t\t\t\t\t\t'spotify',\n\t\t\t\t\t\t\t'stack-overflow',\n\t\t\t\t\t\t\t'steam',\n\t\t\t\t\t\t\t'stumbleupon',\n\t\t\t\t\t\t\t'telegram',\n\t\t\t\t\t\t\t'thumb-tack',\n\t\t\t\t\t\t\t'tripadvisor',\n\t\t\t\t\t\t\t'tumblr',\n\t\t\t\t\t\t\t'twitch',\n\t\t\t\t\t\t\t'twitter',\n\t\t\t\t\t\t\t'viber',\n\t\t\t\t\t\t\t'vimeo',\n\t\t\t\t\t\t\t'vk',\n\t\t\t\t\t\t\t'weibo',\n\t\t\t\t\t\t\t'weixin',\n\t\t\t\t\t\t\t'whatsapp',\n\t\t\t\t\t\t\t'wordpress',\n\t\t\t\t\t\t\t'xing',\n\t\t\t\t\t\t\t'yelp',\n\t\t\t\t\t\t\t'youtube',\n\t\t\t\t\t\t\t'500px',\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'fa-solid' => array(\n\t\t\t\t\t\t\t'envelope',\n\t\t\t\t\t\t\t'link',\n\t\t\t\t\t\t\t'rss',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t);\n\t\t} else {\n\t\t\t$repeater->add_control(\n\t\t\t\t'social',\n\t\t\t\tarray(\n\t\t\t\t\t'label' => __( 'Icon', 'uael' ),\n\t\t\t\t\t'type' => Controls_Manager::ICON,\n\t\t\t\t\t'label_block' => true,\n\t\t\t\t\t'default' => 'fa fa-wordpress',\n\t\t\t\t\t'include' => array(\n\t\t\t\t\t\t'fa fa-android',\n\t\t\t\t\t\t'fa fa-apple',\n\t\t\t\t\t\t'fa fa-behance',\n\t\t\t\t\t\t'fa fa-bitbucket',\n\t\t\t\t\t\t'fa fa-codepen',\n\t\t\t\t\t\t'fa fa-delicious',\n\t\t\t\t\t\t'fa fa-deviantart',\n\t\t\t\t\t\t'fa fa-digg',\n\t\t\t\t\t\t'fa fa-dribbble',\n\t\t\t\t\t\t'fa fa-envelope',\n\t\t\t\t\t\t'fa fa-facebook',\n\t\t\t\t\t\t'fa fa-flickr',\n\t\t\t\t\t\t'fa fa-foursquare',\n\t\t\t\t\t\t'fa fa-free-code-camp',\n\t\t\t\t\t\t'fa fa-github',\n\t\t\t\t\t\t'fa fa-gitlab',\n\t\t\t\t\t\t'fa fa-google-plus',\n\t\t\t\t\t\t'fa fa-houzz',\n\t\t\t\t\t\t'fa fa-instagram',\n\t\t\t\t\t\t'fa fa-jsfiddle',\n\t\t\t\t\t\t'fa fa-linkedin',\n\t\t\t\t\t\t'fa fa-medium',\n\t\t\t\t\t\t'fa fa-meetup',\n\t\t\t\t\t\t'fa fa-mixcloud',\n\t\t\t\t\t\t'fa fa-odnoklassniki',\n\t\t\t\t\t\t'fa fa-pinterest',\n\t\t\t\t\t\t'fa fa-product-hunt',\n\t\t\t\t\t\t'fa fa-reddit',\n\t\t\t\t\t\t'fa fa-rss',\n\t\t\t\t\t\t'fa fa-shopping-cart',\n\t\t\t\t\t\t'fa fa-skype',\n\t\t\t\t\t\t'fa fa-slideshare',\n\t\t\t\t\t\t'fa fa-snapchat',\n\t\t\t\t\t\t'fa fa-soundcloud',\n\t\t\t\t\t\t'fa fa-spotify',\n\t\t\t\t\t\t'fa fa-stack-overflow',\n\t\t\t\t\t\t'fa fa-steam',\n\t\t\t\t\t\t'fa fa-stumbleupon',\n\t\t\t\t\t\t'fa fa-telegram',\n\t\t\t\t\t\t'fa fa-thumb-tack',\n\t\t\t\t\t\t'fa fa-tripadvisor',\n\t\t\t\t\t\t'fa fa-tumblr',\n\t\t\t\t\t\t'fa fa-twitch',\n\t\t\t\t\t\t'fa fa-twitter',\n\t\t\t\t\t\t'fa fa-vimeo',\n\t\t\t\t\t\t'fa fa-vk',\n\t\t\t\t\t\t'fa fa-weibo',\n\t\t\t\t\t\t'fa fa-weixin',\n\t\t\t\t\t\t'fa fa-whatsapp',\n\t\t\t\t\t\t'fa fa-wordpress',\n\t\t\t\t\t\t'fa fa-xing',\n\t\t\t\t\t\t'fa fa-yelp',\n\t\t\t\t\t\t'fa fa-youtube',\n\t\t\t\t\t\t'fa fa-500px',\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\t$repeater->add_control(\n\t\t\t'link',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Link', 'uael' ),\n\t\t\t\t'type' => Controls_Manager::URL,\n\t\t\t\t'label_block' => true,\n\t\t\t\t'default' => array(\n\t\t\t\t\t'is_external' => 'true',\n\t\t\t\t),\n\t\t\t\t'placeholder' => __( 'https://your-link.com', 'uael' ),\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'social_icon_list',\n\t\t\tarray(\n\t\t\t\t'type' => Controls_Manager::REPEATER,\n\t\t\t\t'fields' => $repeater->get_controls(),\n\t\t\t\t'default' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'new_social' => array(\n\t\t\t\t\t\t\t'value' => 'fab fa-facebook',\n\t\t\t\t\t\t\t'library' => 'fa-brands',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'new_social' => array(\n\t\t\t\t\t\t\t'value' => 'fab fa-twitter',\n\t\t\t\t\t\t\t'library' => 'fa-brands',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'new_social' => array(\n\t\t\t\t\t\t\t'value' => 'fab fa-google-plus',\n\t\t\t\t\t\t\t'library' => 'fa-brands',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\n\t\t\t\t),\n\t\t\t\t'condition' => array(\n\t\t\t\t\t'social_icons_settings' => 'yes',\n\t\t\t\t),\n\t\t\t\t'title_field' => '<# var migrated = \"undefined\" !== typeof __fa4_migrated, social = ( \"undefined\" === typeof social ) ? false : social; #>{{{ elementor.helpers.getSocialNetworkNameFromIcon( new_social, social, true, migrated, true ) }}}',\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'shape',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Shape', 'uael' ),\n\t\t\t\t'type' => Controls_Manager::SELECT,\n\t\t\t\t'default' => 'square',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'square' => __( 'Square', 'uael' ),\n\t\t\t\t\t'rounded' => __( 'Rounded', 'uael' ),\n\t\t\t\t\t'circle' => __( 'Circle', 'uael' ),\n\t\t\t\t),\n\t\t\t\t'prefix_class' => 'elementor-shape-',\n\t\t\t\t'condition' => array(\n\t\t\t\t\t'social_icons_settings' => 'yes',\n\t\t\t\t),\n\t\t\t\t'default' => 'rounded',\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'social_icons_border_radius',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Border Radius', 'uael' ),\n\t\t\t\t'type' => Controls_Manager::DIMENSIONS,\n\t\t\t\t'size_units' => array( 'px', '%' ),\n\t\t\t\t'default' => array(\n\t\t\t\t\t'top' => '10',\n\t\t\t\t\t'unit' => '%',\n\t\t\t\t\t'right' => '10',\n\t\t\t\t\t'unit' => '%',\n\t\t\t\t\t'bottom' => '10',\n\t\t\t\t\t'unit' => '%',\n\t\t\t\t\t'left' => '10',\n\t\t\t\t\t'unit' => '%',\n\t\t\t\t),\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'{{WRAPPER}} .elementor-social-icon' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',\n\t\t\t\t),\n\t\t\t\t'condition' => array(\n\t\t\t\t\t'shape' => array( 'rounded' ),\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\n\t\t$this->end_controls_section();\n\t}", "title": "" }, { "docid": "9c44e8eddc3103510a92e4525cd4be4c", "score": "0.52880716", "text": "function process_icon()\n\t{\n\t\tglobal $show;\n\n\t\t$show['messageicon'] = false;\n\t}", "title": "" }, { "docid": "418fd3e63d44cfc4698074377a41bf9b", "score": "0.5286872", "text": "public function getSpriteIconCode() {}", "title": "" }, { "docid": "1d3594f2b1f0fe6d2825fc8faab9dd29", "score": "0.5274459", "text": "public function icon(): string;", "title": "" }, { "docid": "18e1f61009f3245ca530aca00d5e141d", "score": "0.5268748", "text": "function get_icon() {\n\t\treturn $this->settings['icon'];\n\t}", "title": "" }, { "docid": "8d711a33574dd19ce7f49f315dfd492a", "score": "0.5260559", "text": "function connectMenu()\n{\n \\add_menu_page( 'Simply Map', 'Simply Map', 'manage_options', 'dsijak-simply-map', 'dsijak\\compileAdminPage' );\n}", "title": "" }, { "docid": "5a499525e0064b8e14b4f2303202ba58", "score": "0.5258414", "text": "private function showStaticMap()\n {\n if ($this->location !== '') {\n $mapurl = \"https://maps.googleapis.com/maps/api/staticmap\";\n $mapurl .= \"?center=\" . $this->location->lat . \",\" . $this->location->lng;\n $mapurl .= \"&size=450x400\"; // image size\n $mapurl .= \"&zoom=15\"; // zoom to town level\n // put marker center of the location\n $mapurl .= \"&markers=|\" . $this->location->lat . \",\" . $this->location->lng; \n $mapurl .= \"&key=\" . $GLOBALS['apikey_googlemap'];\n return \"<img src=\" . $mapurl . \" >\";\n } else {\n return \"\";\n }\n }", "title": "" }, { "docid": "1a9d996f20ed0a4035bafa1456cd553f", "score": "0.5241327", "text": "public function google_map_custom($map_layouts)\t{\n\n\t\t//advanced map layout\n\n\t\t//Zoom Level options\n\t\t$zoom_arr = array(\n\t\t\t'14' => __('14', 'fusion-extension-map'),\n\t\t\t'1' => __('1', 'fusion-extension-map'),\n\t\t\t'2' => __('2', 'fusion-extension-map'),\n\t\t\t'3' => __('3', 'fusion-extension-map'),\n\t\t\t'4' => __('4', 'fusion-extension-map'),\n\t\t\t'5' => __('5', 'fusion-extension-map'),\n\t\t\t'6' => __('6', 'fusion-extension-map'),\n\t\t\t'7' => __('7', 'fusion-extension-map'),\n\t\t\t'8'=> __('8', 'fusion-extension-map'),\n\t\t\t'9' => __('9', 'fusion-extension-map'),\n\t\t\t'10' => __('10', 'fusion-extension-map'),\n\t\t\t'11' => __('11', 'fusion-extension-map'),\n\t\t\t'12' => __('12', 'fusion-extension-map'),\n\t\t\t'13' => __('13', 'fusion-extension-map'),\n\t\t\t'15' => __('15', 'fusion-extension-map'),\n\t\t\t'16' => __('16', 'fusion-extension-map'),\n\t\t\t'17' => __('17', 'fusion-extension-map'),\n\t\t\t'18' => __('18', 'fusion-extension-map'),\n\t\t\t'19' => __('19', 'fusion-extension-map'),\n\t\t\t'20' => __('20', 'fusion-extension-map')\n\t\t);\n\n\t\t//Map Control Position\n\t\t$controlpos_arr = array(\n\t\t\t'google.maps.ControlPosition.TOP_LEFT' => __('Top Left', 'fusion-extension-map'),\n\t\t\t'google.maps.ControlPosition.TOP_CENTER' => __('Top Center', 'fusion-extension-map'),\n\t\t\t'google.maps.ControlPosition.TOP_RIGHT' => __('Top Right', 'fusion-extension-map'),\n\t\t\t'google.maps.ControlPosition.LEFT_TOP' => __('Left Top', 'fusion-extension-map'),\n\t\t\t'google.maps.ControlPosition.RIGHT_TOP' => __('Right Top', 'fusion-extension-map'),\n\t\t\t'google.maps.ControlPosition.LEFT_CENTER' => __('Left Center', 'fusion-extension-map'),\n\t\t\t'google.maps.ControlPosition.RIGHT_CENTER' => __('Right Center', 'fusion-extension-map'),\n\t\t\t'google.maps.ControlPosition.LEFT_BOTTOM' => __('Left Bottom', 'fusion-extension-map'),\n\t\t\t'google.maps.ControlPosition.RIGHT_BOTTOM' => __('Right Bottom', 'fusion-extension-map'),\n\t\t\t'google.maps.ControlPosition.BOTTOM_CENTER' => __('Bottom Center', 'fusion-extension-map'),\n\t\t\t'google.maps.ControlPosition.BOTTOM_LEFT' => __('Bottom Left', 'fusion-extension-map'),\n\t\t\t'google.maps.ControlPosition.BOTTOM_RIGHT' => __('Bottom Right', 'fusion-extension-map')\n\t\t);\n\n\t\t//Map Type options\n\t\t$type_arr = array(\n\t\t\t'ROADMAP' => __('Road Map', 'fusion-extension-map'),\n\t\t\t'SATELLITE' => __('Satellite', 'fusion-extension-map'),\n\t\t\t'HYBRID' => __('Hybrid', 'fusion-extension-map'),\n\t\t\t'TERRAIN' => __('Terrain', 'fusion-extension-map')\n\t\t);\n\n\t\t//Map Type Control options\n\t\t$mapTypeControl_arr = array(\n\t\t\t'DEFAULT' => __('Default', 'fusion-extension-map'),\n\t\t\t'HORIZONTAL_BAR' => __('Horizontal Bar', 'fusion-extension-map'),\n\t\t\t'DROPDOWN_MENU' => __('Dropdown Menu', 'fusion-extension-map')\n\t\t);\n\n\t\t$google_map_custom = array(\n\t\t\t'name' => __('Google Map Custom', 'fusion-extension-map'),\n\t\t\t'params' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'param_name' => 'lat_long',\n\t\t\t\t\t'label' => __('Map Center Coordinates', 'fusion-extension-map'),\n\t\t\t\t\t'help' => __( 'Input the latitude and longitude coordinates the map should center on.', 'fusion-extension-map')\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'custom_list',\n\t\t\t\t\t'param_name' => 'custom_list_items',\n\t\t\t\t\t'id' => 'google_map_marker', //each custom list requires a unique ID\n\t\t\t\t\t'item_params' => array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type' => 'image',\n\t\t\t\t\t\t\t'param_name' => 'image_id',\n\t\t\t\t\t\t\t'label' => __('Marker Image', 'fusion-extension-map')\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t'bottom_center' => __('Bottom Center', 'fusion-extension-map'),\n\t\t\t\t\t\t\t\t'center' => __('Center', 'fusion-extension-map')\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'param_name' => 'marker_anchor_point_position',\n\t\t\t\t\t\t\t'label' => __('Anchor Point Position', 'fusion-extension-map'),\n\t\t\t\t\t\t\t'help' => __('Choose anchor point position from the custom marker image.', 'fusion-extension-map'),\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t'param_name' => 'marker_co',\n\t\t\t\t\t\t\t'label' => __('Map Marker Coordinates', 'fusion-extension-map'),\n\t\t\t\t\t\t\t'help' => __( 'To find the coordinates, right-click on your desired location within Google Maps and click \"What\\'s here?\". The box at the bottom will contain the coordinates.', 'fusion-extension-map')\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type' => 'textarea',\n\t\t\t\t\t\t\t'param_name' => 'aux_content',\n\t\t\t\t\t\t\t'label' => __('Popup Content', 'fusion-extension-map'),\n\t\t\t\t\t\t\t'help' => __('Input map marker tooltip text.', 'fusion-extension-map')\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t\t'param_name' => 'infobox_open',\n\t\t\t\t\t\t\t'label' => __('Show Popup on Load.', 'fusion-extension-map')\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\t'label' => __('Map Markers', 'fusion-extension-map'),\n\t\t\t\t\t'help' => __('Drag-and-drop blocks to re-order.', 'fusion-extension-map'),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t'options' => $type_arr,\n\t\t\t\t\t'param_name' => 'map_type',\n\t\t\t\t\t'label' => __('Map Type', 'fusion-extension-map'),\n\t\t\t\t\t'section' => 'advanced'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t'param_name' => 'type_control',\n\t\t\t\t\t'label' => __('Map Type Control', 'fusion-extension-map'),\n\t\t\t\t\t'section' => 'advanced'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t'options' => $mapTypeControl_arr,\n\t\t\t\t\t'param_name' => 'typecontrol_style',\n\t\t\t\t\t'label' => __('Map Type Control Style', 'fusion-extension-map'),\n\t\t\t\t\t'section' => 'advanced',\n\t\t\t\t\t'dependency' => array(\n\t\t\t\t\t\t'param_name' => 'type_control',\n\t\t\t\t\t\t'not_empty' => true\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t'options' => $controlpos_arr,\n\t\t\t\t\t'param_name' => 'type_pos',\n\t\t\t\t\t'label' => __('Map Type Control Position', 'fusion-extension-map'),\n\t\t\t\t\t'section' => 'advanced',\n\t\t\t\t\t'dependency' => array(\n\t\t\t\t\t\t'param_name' => 'type_control',\n\t\t\t\t\t\t'not_empty' => true\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t'options' => $zoom_arr,\n\t\t\t\t\t'param_name' => 'zoom_level',\n\t\t\t\t\t'label' => __('Zoom', 'fusion-extension-map'),\n\t\t\t\t\t'section' => 'advanced'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t'param_name' => 'zoom_control',\n\t\t\t\t\t'label' => __('Zoom Control', 'fusion-extension-map'),\n\t\t\t\t\t'section' => 'advanced'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t'options' => $controlpos_arr,\n\t\t\t\t\t'param_name' => 'zoom_pos',\n\t\t\t\t\t'label' => __('Zoom Control Position', 'fusion-extension-map'),\n\t\t\t\t\t'section' => 'advanced',\n\t\t\t\t\t'dependency' => array(\n\t\t\t\t\t\t'param_name' => 'zoom_control',\n\t\t\t\t\t\t'not_empty' => true\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t'param_name' => 'scale_control',\n\t\t\t\t\t'label' => __('Scale Control', 'fusion-extension-map'),\n\t\t\t\t\t'section' => 'advanced'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'param_name' => 'map_height',\n\t\t\t\t\t'label' => __('Map Height', 'fusion-extension-map'),\n\t\t\t\t\t'help' => __( 'Default is 300px.', 'fusion-extension-map'),\n\t\t\t\t\t'section' => 'style'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'textarea',\n\t\t\t\t\t'param_name' => 'map_styles',\n\t\t\t\t\t'label' => __('Map Styles', 'fusion-extension-map'),\n\t\t\t\t\t'help' => __('Input a custom styles array (e.g. from Snazzy Maps) to change the map appearance.', 'fusion-extension-map'),\n\t\t\t\t\t'section' => 'style'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t'param_name' => 'screen_reader_output',\n\t\t\t\t\t'label' => __('Screen Reader Output', 'fusion-extension-map'),\n\t\t\t\t\t'section' => 'advanced'\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t\t$map_layouts['google_map_custom'] = $google_map_custom;\n\n\t\treturn $map_layouts;\n\t}", "title": "" }, { "docid": "3eae17db1d4a8c7d7281794ced74f8c6", "score": "0.5233894", "text": "function iconpicker_type_casano_customfonts( $icons ) {\r\n\t\t\t$icons['Flaticon'] = array(\r\n\t\t\t\tarray('flaticon-magnifying-glass'=>'Flaticon magnifying glass'),\r\n\t\t\t\tarray('flaticon-profile'=>'Flaticon profile'),\r\n\t\t\t\tarray('flaticon-bag'=>'Flaticon bag'),\r\n\t\t\t\tarray('flaticon-right-arrow'=>'Flaticon right arrow'),\r\n\t\t\t\tarray('flaticon-left-arrow'=>'Flaticon left arrow'),\r\n\t\t\t\tarray('flaticon-right-arrow-1'=>'Flaticon right arrow 1'),\r\n\t\t\t\tarray('flaticon-left-arrow-1'=>'Flaticon left arrow 1'),\r\n\t\t\t\tarray('flaticon-mail'=>'Flaticon mail'),\r\n\t\t\t\tarray('flaticon-flame'=>'Flaticon flame'),\r\n\t\t\t\tarray('flaticon-clock'=>'Flaticon clock'),\r\n\t\t\t\tarray('flaticon-comment'=>'Flaticon comment'),\r\n\t\t\t\tarray('flaticon-chat'=>'Flaticon chat'),\r\n\t\t\t\tarray('flaticon-heart'=>'Flaticon heart'),\r\n\t\t\t\tarray('flaticon-valentines-heart'=>'Flaticon valentines heart'),\r\n\t\t\t\tarray('flaticon-filter'=>'Flaticon filter'),\r\n\t\t\t\tarray('flaticon-loading'=>'Flaticon loading'),\r\n\t\t\t\tarray('flaticon-checked'=>'Flaticon checked'),\r\n\t\t\t\tarray('flaticon-tick'=>'Flaticon tick'),\r\n\t\t\t\tarray('flaticon-close'=>'Flaticon close'),\r\n\t\t\t\tarray('flaticon-circular-check-button'=>'Flaticon circular check button'),\r\n\t\t\t\tarray('flaticon-check'=>'Flaticon check'),\r\n\t\t\t\tarray('flaticon-play-button'=>'Flaticon play button'),\r\n\t\t\t\tarray('flaticon-360-degrees'=>'Flaticon 360 degrees'),\r\n\t\t\t\tarray('flaticon-login'=>'Flaticon login'),\r\n\t\t\t\tarray('flaticon-menu'=>'Flaticon menu'),\r\n\t\t\t\tarray('flaticon-menu-1'=>'Flaticon menu 1'),\r\n\t\t\t\tarray('flaticon-placeholder'=>'Flaticon placeholder'),\r\n\t\t\t\tarray('flaticon-metre'=>'Flaticon metre'),\r\n\t\t\t\tarray('flaticon-share'=>'Flaticon share'),\r\n\t\t\t\tarray('flaticon-shuffle'=>'Flaticon shuffle'),\r\n\t\t\t\tarray('flaticon-running'=>'Flaticon running'),\r\n\t\t\t\tarray('flaticon-recycle'=>'Flaticon recycle'),\r\n\t\t\t\tarray('flaticon-instagram'=>'Flaticon instagram'),\r\n\t\t\t\tarray('flaticon-delivery-truck'=>'Flaticon delivery truck'),\r\n\t\t\t\tarray('flaticon-closed-lock'=>'Flaticon closed lock'),\r\n\t\t\t\tarray('flaticon-support'=>'Flaticon support'),\r\n\t\t\t\tarray('flaticon-diamond'=>'Flaticon diamond'),\r\n\t\t\t\tarray('flaticon-high-heels'=>'Flaticon high heels'),\r\n\t\t\t\tarray('flaticon-shirt'=>'Flaticon shirt'),\r\n\t\t\t\tarray('flaticon-dress'=>'Flaticon dress'),\r\n\t\t\t\tarray('flaticon-shirt-1'=>'Flaticon shirt 1'),\r\n\t\t\t\tarray('flaticon-glasses'=>'Flaticon glasses'),\r\n\t\t\t\tarray('flaticon-shopping-bag'=>'Flaticon shopping bag'),\r\n\t\t\t\tarray('flaticon-trousers'=>'Flaticon trousers'),\r\n\t\t\t\tarray('flaticon-user'=>'Flaticon user'),\r\n\t\t\t\tarray('flaticon-magnifying-glass-1'=>'Flaticon magnifying glass 1'),\r\n\t\t\t\tarray('flaticon-shopping-bag-1'=>'Flaticon shopping bag 1'),\r\n\t\t\t\tarray('flaticon-envelope'=>'Flaticon envelope'),\r\n\t\t\t\tarray('flaticon-instagram-1'=>'Flaticon instagram 1'),\r\n\t\t\t\tarray('flaticon-rocket-ship'=>'Flaticon rocket ship'),\r\n\t\t\t\tarray('flaticon-refresh'=>'Flaticon refresh'),\r\n\t\t\t\tarray('flaticon-return'=>'Flaticon return'),\r\n\t\t\t\tarray('flaticon-padlock'=>'Flaticon padlock'),\r\n\t\t\t\tarray('flaticon-random'=>'Flaticon random'),\r\n\t\t\t\tarray('flaticon-shopping-cart'=>'Flaticon shopping cart'),\r\n\t\t\t\tarray('flaticon-cart'=>'Flaticon cart'),\r\n\t\t\t\tarray('flaticon-filter-1'=>'Flaticon filter 1'),\r\n\t\t\t\tarray('flaticon-startup'=>'Flaticon startup'),\r\n\t\t\t\tarray('flaticon-return-1'=>'Flaticon return 1'),\r\n\t\t\t\tarray('flaticon-letter'=>'Flaticon letter'),\r\n\t\t\t\tarray('flaticon-diamond-1'=>'Flaticon diamond 1'),\r\n\t\t\t);\r\n\r\n\t\t\treturn $icons;\r\n\t\t}", "title": "" }, { "docid": "9edf00b5015e6f628455fc1ec0f03439", "score": "0.5233553", "text": "function gmw_ps_gl_get_map_icon_via_loop( $map_icon, $group, $gmw ) {\n\n\t$usage = $gmw['map_markers']['usage'];\n\n\t// abort if not set to featured image or categories\n\tif ( 'avatar' == $gmw['map_markers']['usage'] ) {\n\n\t\t$group_id = isset( $group->id ) ? $group->id : $group->object_id;\n\n\t\t$map_icon = bp_core_fetch_avatar(\n\t\t\tarray(\n\t\t\t\t'item_id' => $group_id,\n\t\t\t\t'object' => 'group',\n\t 'type' => 'thumb',\n\t 'width' => 80,\n\t 'height' => 80,\n\t 'html' => false,\n\t 'no_grav' => true\n\t )\n\t\t);\n\n\t\tif ( empty( $map_icon ) ) {\n\t\t\t$map_icon = GMW_PS_URL. '/assets/map-icons/_no_image.png';\n\t\t}\n\t}\n\n\treturn $map_icon;\n}", "title": "" }, { "docid": "139de103d8262830fa8323028389dc22", "score": "0.5222228", "text": "public function icon() {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "be2468c1a1e2f7453ff016c8e98500d4", "score": "0.52205914", "text": "public function getIcon()\n {\n if (!$this->get('_icon')) \n { \n $this->_icon=new PictureObject2(array(\n \"path\"=>$this->getDirectory(),\n \"picture\"=>$this->get('icon'),\n \"urlPath\"=>url(\"/nocache/data/projects/task/state/admin/\".$this->get('id').\"/\",\"web\",\"frontend\"),\n \"url\"=>url(\"/nocache/data/projects/task/state/admin/\".$this->get('id').\"/\".$this->get('icon'),\"web\",\"frontend\")\n ));\n }\n return $this->_icon; \n }", "title": "" }, { "docid": "3115cfffadfe778312c8acacd782882a", "score": "0.5202084", "text": "function getAvailableIconNames() ;", "title": "" }, { "docid": "b0100de07a820f2e334d378e522fceb2", "score": "0.5199914", "text": "function geopost_icon_dir() {\r\n return plugins_url('/icons', __FILE__);\r\n}", "title": "" }, { "docid": "6a2b4ad16ef942bafeb41824bcaaeebf", "score": "0.51973975", "text": "function amap_ma_set_entity_additional_info($entity, $etitle, $edescription, $elocation = null, $eotherinfo = null, $m_icon_light = false, $eurl = false, $map_icon = false) {\n $edescription = elgg_get_excerpt($edescription);\n $namecleared = amap_ma_remove_shits($entity->$etitle);\n $description = amap_ma_remove_shits(elgg_get_excerpt($entity->description, 100));\n if (!$map_icon) {\n $map_icon = amap_ma_get_entity_icon($entity);\n }\n\n if ($elocation) {\n $location = $elocation;\n } else {\n $location = $entity->location;\n }\n\n if (elgg_instanceof($entity, 'object', 'agora')) {\n $entity_icon = elgg_view_entity_icon($entity, 'tiny', ['img_class' => 'elgg-photo']);\n }\n else if (elgg_instanceof($entity, 'object', 'lcourt')) {\n elgg_load_library('elgg:leaguemanager');\n $entity_photo = elgg_view('output/img', array(\n 'src' => lm_getEntityIconUrl($entity->getGUID(), 'tiny'),\n 'alt' => $entity->title,\n 'class' => 'elgg-photo',\n ));\n $entity_icon = elgg_view('output/url', array(\n 'href' => ($eurl?$eurl:$entity->getURL()),\n 'text' => $entity_photo,\n ));\n } \n else if ($entity instanceof ElggUser || $entity instanceof ElggGroup) {\n $icon = elgg_view('output/img', array(\n 'src' => $entity->getIconURL('tiny'),\n 'class' => \"elgg-photo\",\n ));\n $entity_icon = elgg_view('output/url', array(\n 'href' => $entity->getURL(),\n 'text' => $icon,\n ));\n } else {\n $entity_icon = elgg_view_entity_icon($entity, 'tiny', array(\n 'href' => $entity->getURL(),\n 'width' => '',\n 'height' => '',\n 'style' => 'float: left;',\n ));\n }\n $entity->setVolatileData('m_title', $namecleared);\n $entity->setVolatileData('m_description', $description);\n $entity->setVolatileData('m_location', $location);\n $entity->setVolatileData('m_icon', $entity_icon);\n $entity->setVolatileData('m_map_icon', $map_icon);\n if ($eotherinfo) {\n $entity->setVolatileData('m_other_info', $eotherinfo);\n }\n $entity->setVolatileData('m_icon_light', $m_icon_light);\n \n /* hide at the moment as the distance displayed is not well calculated\n if ($user->getLatitude() && $user->getLongitude()) {\n $distance = get_distance($entity->getLatitude(), $entity->getLongitude(), $user->getLatitude(), $user->getLongitude()); // distance in metres\n $distance = round($distance / 1000, 2); // distance in km\n $distance_str = elgg_echo('amap_maps_api:search:proximity', array($user->location, $distance));\n $entity->setVolatileData('distance_from_user', $distance_str);\n } */\n\n return $entity;\n}", "title": "" }, { "docid": "a58aab8bda515afb3fb1e26a1bf7d77e", "score": "0.51908034", "text": "protected function get__icon()\n\t{\n\t\treturn NULL;\n\t}", "title": "" }, { "docid": "287cf20398f7359d0c94ae0020c881a7", "score": "0.5186096", "text": "function sc_maps_map_css() {\n\techo '<style type=\"text/css\">/* =Responsive Map fix\n-------------------------------------------------------------- */\n.sc_map_canvas img {\n\tmax-width: none;\n}</style>';\n\n}", "title": "" }, { "docid": "5d34109ef4fc7267f04902046e552346", "score": "0.5185844", "text": "function register_block_core_site_icon_setting()\n {\n }", "title": "" }, { "docid": "e5afcad543c07d30114d2479be6aa9db", "score": "0.51665896", "text": "private function addMarkers()\n {\n $users = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'fe_users', $this->getUserFilter());\n while (($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($users)))\n {\n\n\n $this->addMarker($row, $this->getGroupIcon($row['usergroup'],$row['uid']));\n //$marker = $this->map->addMarkerByAddress( $title, $description, $singleConf['minzoom'], $singleConf['maxzoom'], $iconId );\n }\n }", "title": "" }, { "docid": "59a2ec0d26cf9ac9fb6fde0ade6c4a00", "score": "0.51614213", "text": "public function actionMap()\n {\n $mapForm = MapForm::createDefault();\n \n $mapForm->load(Yii::$app->request->post());\n $mapForm->validate();\n \n $this->layout = 'fluid';\n return $this->render('map', [\n 'mapForm' => $mapForm,\n ]);\n }", "title": "" }, { "docid": "f315c7f40adc603c6b311500ffef14f2", "score": "0.5161214", "text": "static function get_map_marker_icon( $args ) {\n $plugin = Hardcore_Map_Plugin::this();\n $icon = get_post_meta( $args[ 'post_ID' ], $plugin->marker_icon_meta_key, true );\n return $icon;\n }", "title": "" }, { "docid": "0260d2d6d2e3573f7ac923696402c8bb", "score": "0.5148672", "text": "public function get_icon()\n\t{\n\t\treturn 'fab fa-algolia';\n\t}", "title": "" }, { "docid": "5800e4e1b970e242d2ff10eb90167ceb", "score": "0.5133786", "text": "public static function getFactoryIconUseIt() {\n }", "title": "" }, { "docid": "35ec2446a46a1508ce3ec4d7ced80f1e", "score": "0.51337326", "text": "public function get_icon() {\n\t\treturn parent::get_widget_icon( 'Team_Member' );\n\t}", "title": "" }, { "docid": "4078c60d7b05cd00241a762d3958be80", "score": "0.5129141", "text": "function addCustomInfoWindow( $objLatLng, $html, $icon, $title ) {\n\t$info_window = new EGMapInfoWindow( $html ) ;\n\t// Setting up an icon for marker.\n\t//$source_icon = new EGMapMarkerImage(\"http://google-maps-icons.googlecode.com/files/car.png\");\n\t$icon = new EGMapMarkerImage( $icon ) ;\n\t// $source_icon->setSize(32, 37);\n\t// $source_icon->setAnchor(16, 16.5);\n\t// $source_icon->setOrigin(0, 0);\n\n\t$marker = new EGMapMarker (\n\t\t$objLatLng->getLatitude() ,\n\t\t$objLatLng->getLongitude() ,\n\t\tarray(\n\t\t\t'title' => $title ,\n\t\t\t'icon' => $icon\n\t\t)\n\t) ;\n\t$marker->draggable = true ;\n\t$marker->addHtmlInfoWindow( $info_window ) ;\n\treturn $marker;\n\t//$egMap->addMarker( $marker ) ;\n}", "title": "" }, { "docid": "261aed9b547253de332d2ad19b7452f6", "score": "0.5128387", "text": "public function add_default_icon_wrap(){\n\t if (is_admin()) {\n\t $screen = get_current_screen();\n\t $array = [\n\t 'dashboard' => 'fa-dashboard',\n\t 'edit-post' => 'fa-pencil',\n\t 'post' => 'fa-pencil',\n\t 'edit-category' => 'fa-unlink',\n\t 'edit-post_tag' => 'fa-tag',\n\t 'upload' => 'fa-upload',\n\t 'media' => 'fa-upload',\n\t 'edit-page' => 'fa-pencil',\n\t 'page' => 'fa-pencil',\n\t 'edit-comments' => 'fa-comment',\n\t 'themes' => 'fa-paint-brush',\n\t 'widgets' => 'fa-th-large',\n\t 'nav-menus' => 'fa-th-list',\n\t 'plugins' => 'fa-plug',\n\t 'users' => 'fa-users',\n\t 'profile' => 'fa-user',\n\t 'options-general' => 'fa-cog',\n\t 'options-writing' => 'fa-cog',\n\t 'options-reading' => 'fa-cog',\n\t 'options-discussion' => 'fa-cog',\n\t 'options-media' => 'fa-cog',\n\t 'options-permalink' => 'fa-cog',\n \n //Extra page\n //'user_maharat' => 'fa-user'\n \n ];\n foreach($array as $screen_id => $icon_wrap) {\n\t \n //Extrapage\n if (strlen(strstr($screen->id,'_page_')) >0) {\n if(strstr($screen->id,'_page_'.$screen_id)) {\n add_action('adminpage_icon', function() use ($screen_id, $array) {\n echo \"fa {$array[$screen_id]}\";\n });\n }\n }\n\n //base wordpress page\n\t if ($screen->id == $screen_id) {\n\t add_action('adminpage_icon', function() use ($screen_id, $array) {\n echo \"fa {$array[$screen_id]}\";\n\t });\n\t }\n \n \n }\n\t }\n }", "title": "" }, { "docid": "77520b11a84c03a03ef110dcc78179df", "score": "0.51178163", "text": "function fillPostIcons(){\n\t\t?>\n\t\t<input class=\"regular-text\" id=\"post_icon_dashicons_picker\" type=\"text\" />\n\t\t<span class=\"dashicons dashicon-preview\"></span>\n\t\t<input class=\"button dashicons-picker\" type=\"button\" value=\"Choose Icon\" data-target=\"#post_icon_dashicons_picker\" />\n\t\t<?php\n\t}", "title": "" }, { "docid": "bc3112728ea9cb44eebc9b3fb8ac805d", "score": "0.5110018", "text": "public function column_group_marker($item) {\n\t \t\tif ( strstr( $item->group_marker, 'wp-google-map-pro/icons/' ) !== false ) {\n\t \t\t\t$item->group_marker = str_replace( 'icons', 'assets/images/icons', $item->group_marker );\n\t \t\t}\n\t\t\treturn sprintf( '<img src=\"'.$item->group_marker.'\" name=\"group_image[]\" value=\"%s\" />', $item->group_map_id );\n\t\t}", "title": "" }, { "docid": "c97117a833309d3362fd08b4007f5015", "score": "0.5106666", "text": "function mfn_translate_position_to_images ($value) {\n\t$v = strtoupper($value);\n\n\t$retString = \"\";\n\tif (strpos ($v, SUN) !== false) {\n\t\t$retString .= '<img src=\"'.MEDIA_PATH.'sun20.png\" alt=\"\" class=\"MFNIcon\">';\n\t}\n\tif (strpos ($v, SEMI) !== false) {\n\t\t$retString .= '<img src=\"'.MEDIA_PATH.'semi20.png\" alt=\"\" class=\"MFNIcon\">';\n\t} \n\tif (strpos ($v, SHADE) !== false) {\n\t\t$retString .= '<img src=\"'.MEDIA_PATH.'shade20.png\" alt=\"\" class=\"MFNIcon\">';\n\t}\n\treturn $retString;\n}", "title": "" }, { "docid": "fdf1fa83980a59e1ed8e1b9ea09b5292", "score": "0.510503", "text": "public function registerPluginTriggersAddPluginWhichSetsPluginIconPathIfIconPathIsGiven() {}", "title": "" }, { "docid": "e39a085c5103dbae18c0073eeb1966e6", "score": "0.5102736", "text": "public function get_icon() {\n\t\treturn 'eicon-image';\n\t}", "title": "" }, { "docid": "6b3a0d98f3259e2bd7725df7af2fc256", "score": "0.5102198", "text": "private function render_icon($attributes)\n {\n }", "title": "" } ]
35612a4a37212eb0a7e30d0933c04952
post_type() Register our post type
[ { "docid": "d8baad77a0bb42e77237e82858357e2e", "score": "0.7851161", "text": "function post_type() {\n register_post_type( self::$post_type, array(\n 'labels' => array(\n 'name' => __( 'Downloads', 'sdw' ),\n 'singular_name' => __( 'Download', 'sdw' ),\n 'add_new_item' => __( 'New Download', 'sdw' ),\n 'edit_item' => __( 'Edit Download', 'sdw' ),\n ),\n 'public' => true,\n 'map_meta_cap' => true,\n 'rewrite' => array( 'slug' => self::$post_type ),\n 'supports' => array( 'title', 'editor', 'thumbnail' ),\n 'taxonomies' => array( 'downloadcat' ),\n 'register_meta_box_cb' => array( __CLASS__, 'meta_boxes' ),\n 'show_ui' => true,\n 'has_archive' => self::$post_type_slug\n ) );\n register_taxonomy(\n 'downloadcat',\n 'download',\n array(\n 'label' => __( 'Downloads Category', 'vivanista' ),\n 'show_ui' => true,\n 'query_var' => true,\n 'hierarchical' => true,\n 'rewrite' => array( 'slug' => 'download-category' ),\n )\n );\n }", "title": "" } ]
[ { "docid": "0d172886812dc399b2026a1a2f65f879", "score": "0.91757303", "text": "public function register_post_type( ) {\n\n\t}", "title": "" }, { "docid": "3baf32c49b7376ee5fd5efc8f765d0d8", "score": "0.8789022", "text": "function register_post_type(){\n\t\tadd_action( 'init', array(&$this,'init_register_post_type') );\n\t}", "title": "" }, { "docid": "12eedf81f13ccfa97eedb02ae8c534d6", "score": "0.8658065", "text": "public function registerPostType()\n {\n register_post_type($this->name, $this->getOptions());\n }", "title": "" }, { "docid": "a9fe3a88fe57718946a39c00033190a1", "score": "0.8525592", "text": "public function registerPostType()\n {\n $config = $this->getPostTypeConfig();\n if (empty($config)) {\n return;\n }\n\n register_post_type($this->getPostType(), $config);\n }", "title": "" }, { "docid": "5ead989cf9c951a51aa8f25e965323a4", "score": "0.8500458", "text": "function register_post_types() {\n }", "title": "" }, { "docid": "5ead989cf9c951a51aa8f25e965323a4", "score": "0.8500458", "text": "function register_post_types() {\n }", "title": "" }, { "docid": "a4fa5ab0551c4999f74169883840beef", "score": "0.8497785", "text": "function register_post_types() {\n\n}", "title": "" }, { "docid": "9ef4509b7100fa9f2db0cf3e0b401db2", "score": "0.8438027", "text": "function byron_register_post_types()\n{\n}", "title": "" }, { "docid": "957a773cc313eb49ca22e7ec9f34f48d", "score": "0.84278315", "text": "function register_post_types() {\n\t}", "title": "" }, { "docid": "957a773cc313eb49ca22e7ec9f34f48d", "score": "0.84278315", "text": "function register_post_types() {\n\t}", "title": "" }, { "docid": "7993f7420d30040234b48264aadddf61", "score": "0.84244", "text": "public function register_post_types()\n {\n }", "title": "" }, { "docid": "7993f7420d30040234b48264aadddf61", "score": "0.84244", "text": "public function register_post_types()\n {\n }", "title": "" }, { "docid": "14fdc11cba878287422ff332aca4202f", "score": "0.8405586", "text": "function pilau_register_post_types() {\n\n}", "title": "" }, { "docid": "715417d2c0aa92736f4dfaf09fad2047", "score": "0.83702093", "text": "public function register_post_types() {\n\n\t}", "title": "" }, { "docid": "715417d2c0aa92736f4dfaf09fad2047", "score": "0.83702093", "text": "public function register_post_types() {\n\n\t}", "title": "" }, { "docid": "715417d2c0aa92736f4dfaf09fad2047", "score": "0.83702093", "text": "public function register_post_types() {\n\n\t}", "title": "" }, { "docid": "33b9a7f12ed49074d48438dd1cdc472e", "score": "0.837001", "text": "public function register_post_types() {\n\t}", "title": "" }, { "docid": "49f07aa9823b2c82d43cd28b4a4d6fcf", "score": "0.8307711", "text": "public function register(): void {\n\t\t$this->register_post_type();\n\t}", "title": "" }, { "docid": "f47d697dc954835e4ff32df5c3852b78", "score": "0.830375", "text": "public function register_post_type()\n {\n $args = array(\n 'label' => $this->label,\n 'description' => 'This post type describes a \"Log\" data model. The logs contain information about \n different stages of internal workings of wordpress, possible debug and error info...',\n 'public' => true,\n 'exclude_from_search' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'show_in_nav_menus' => false,\n 'menu_position' => 10,\n 'menu_icon' => 'dashicons-book-alt',\n 'taxonomies' => array(\n $this->getDataTaxonomy(),\n ),\n 'has_archive' => false,\n 'map_meta_cap' => true,\n 'supports' => array(\n 'title',\n 'editor',\n )\n\n );\n register_post_type(\n $this->post_type,\n $args\n );\n }", "title": "" }, { "docid": "d0f98ed02237975fe347a6433548eb11", "score": "0.8213341", "text": "public function register_post_type( ){\n\n $labels = array(\n 'name' => _( $this->plural ),\n 'singular_name' => _( $this->single ),\n 'add_new' => _x('Add ' . $this->single, $this->single),\n 'add_new_item' => _('Add New ' . $this->single),\n 'edit_item' => _('Edit ' . $this->single),\n 'new_item' => _('New ' . $this->single),\n 'view_item' => _('View ' . $this->single),\n 'search_items' => _('Search ' . $this->plural),\n 'not_found' => _('No ' . $this->plural . ' Found'),\n 'not_found_in_trash' => _('No ' . $this->plural . ' found in Trash'),\n 'parent_item_colon' => ''\n );\n $options = array(\n 'labels' => $labels,\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => strtolower($this->plural)),\n 'capability_type' => 'post',\n 'hierarchical' => false,\n 'has_archive' => true,\n 'menu_position' => null,\n 'menu_icon' => 'dashicons-desktop',\n 'supports' => array(\n 'title',\n 'editor',\n 'thumbnail',\n 'comments'\n ),\n );\n register_post_type($this->type, $options);\n\n }", "title": "" }, { "docid": "00b859766ce2725f11f7090e3ed4acd9", "score": "0.81696904", "text": "public function register_post_type() {\n\t\tif ( ! self::$_post_types )\n\t\t\treturn;\n\t\tforeach ( self::$_post_types as $pt ) {\n\t\t\t$pt['options']['label'] = $pt['label'];\n\t\t\tif ( self::$_taxonomies ) {\n\t\t\t\t$taxonomies = [];\n\t\t\t\tforeach ( self::$_taxonomies as $tax ) {\n\t\t\t\t\tif ( in_array( $pt['post_type'], $tax['post_types'] ) )\n\t\t\t\t\t\t$taxonomies[] = $tax['taxonomy'];\n\t\t\t\t}\n\t\t\t\tif ( $taxonomies )\n\t\t\t\t\t$pt['options'] = array_merge( $pt['options'], [ 'taxonomies' => $taxonomies ] );\n\t\t\t}\n\t\t\t\\register_post_type( $pt['post_type'], $pt['options'] );\n\t\t}\n\t}", "title": "" }, { "docid": "03698265b80a57c0cc0475354b283b08", "score": "0.81585526", "text": "public function register_post_type() {\n /**\n * Filter welcrafted_post_type_params_$this->base_post_type allows to redefine post type params right before post type registration.\n *\n * @param array $this->post_type_params Post type params array\n */\n register_post_type( \n $this->post_type, \n apply_filters( 'welcrafted_post_type_params_' . $this->base_post_type, $this->post_type_params )\n );\n\n self::$reserved_post_types[] = $this->post_type;\n\n add_filter( 'post_updated_messages', [ &$this, 'post_updated_messages' ] );\n add_filter( 'bulk_post_updated_messages', [ &$this, 'bulk_post_updated_messages' ], 10, 2 );\n }", "title": "" }, { "docid": "15c5a9913f80019d59427cb0dbfa534d", "score": "0.81416917", "text": "public function register_post_type() {\n\t\tforeach ( $this -> _post_types as $pt ) {\n\t\t\t$pt['options']['label'] = $pt['label'];\n\t\t\tif ( !empty( $this -> _taxonomies ) ) {\n\t\t\t\t$taxonomies = [];\n\t\t\t\tforeach ( $this -> _taxonomies as $tax ) {\n\t\t\t\t\tif ( in_array( $pt['post_type'], $tax['post_types'] ) )\n\t\t\t\t\t\t$taxonomies[] = $tax['taxonomy'];\n\t\t\t\t}\n\t\t\t\tif ( !empty( $taxonomies ) ) {\n\t\t\t\t\t$pt['options'] = array_merge(\n\t\t\t\t\t\t$pt['options'],\n\t\t\t\t\t\t[ 'taxonomies' => $taxonomies ]\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t\tregister_post_type( $pt['post_type'], $pt['options'] );\n\t\t}\n\t}", "title": "" }, { "docid": "5d9ee059cf8d999fef5cb38e59c85f5b", "score": "0.81008923", "text": "public function register_post_pype() \n\t\t{\n\t\t\tif(self::$post_types) {\n\t\t\t\tforeach (self::$post_types as $settings) {\n\t\t\t\t\tif(!empty($settings['post_type'])) {\n\t\t\t\t\t\tregister_post_type($settings['post_type'],\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'labels' => array(\n\t\t\t\t\t\t\t\t\t'menu_name' => __($settings['admin_menu_label'], 'text_domain'),\n\t\t\t\t\t\t\t\t\t'name' => __($settings['admin_page_title'], 'text_domain'),\n\t\t\t\t\t\t\t\t\t'search_items' => __($settings['post_type'] == 'paperboot' ? 'Search' : 'Search ' . $settings['post_type'], 'text_domain'),\n\t\t\t\t\t\t\t\t\t'not_found' => __('No records found', 'text_domain'),\n\t\t\t\t\t\t\t\t\t'not_found_in_trash' => __('No records found in Trash', 'text_domain')\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t'public' => true,\n\t\t\t\t\t\t\t\t'capability_type' => 'post',\n\t\t\t\t\t\t\t\t'capabilities' => array(\n\t\t\t\t\t\t\t\t\t'create_posts' => $settings['admin_create_posts'] != 'on' ? false : true\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t'supports' => $settings['post_type'] == 'paperboot' ? array('title') : false,\n\t\t\t\t\t\t\t\t'menu_position' => $settings['post_type'] == 'paperboot' ? 150 : 20,\n\t\t\t\t\t\t\t\t'map_meta_cap' => $settings['admin_edit_posts'] != 'on' ? false : true,\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "3feda401e2f4af5084ba065a1aadef2c", "score": "0.8050088", "text": "private function registerPostType() {\n\t\tglobal $medigroup_Framework, $medigroup_options;\n\n\t\t$menuPosition = 5;\n\t\t$menuIcon = 'dashicons-admin-post';\n\t\t$slug = $this->base;\n\n\t\tif(mkd_core_theme_installed()) {\n\t\t\t$menuPosition = $medigroup_Framework->getSkin()->getMenuItemPosition('doctors');\n\t\t\t$menuIcon = $medigroup_Framework->getSkin()->getMenuIcon('doctors');\n\n\t\t\tif(isset($medigroup_options['doctor_single_slug'])) {\n\t\t\t\tif($medigroup_options['doctor_single_slug'] != \"\") {\n\t\t\t\t\t$slug = $medigroup_options['doctor_single_slug'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tregister_post_type($this->base,\n\t\t\tarray(\n\t\t\t\t'labels' => array(\n\t\t\t\t\t'name' => esc_html__('Doctors', 'mkd-core'),\n\t\t\t\t\t'singular_name' => esc_html__('Doctor', 'mkd-core'),\n\t\t\t\t\t'add_item' => esc_html__('New Doctor', 'mkd-core'),\n\t\t\t\t\t'add_new_item' => esc_html__('Add New Doctor', 'mkd-core'),\n\t\t\t\t\t'edit_item' => esc_html__('Edit Doctor', 'mkd-core')\n\t\t\t\t),\n\t\t\t\t'public' => true,\n\t\t\t\t'has_archive' => true,\n\t\t\t\t'rewrite' => array('slug' => $slug),\n\t\t\t\t'menu_position' => $menuPosition,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'supports' => array(\n\t\t\t\t\t'title',\n\t\t\t\t\t'editor',\n\t\t\t\t\t'thumbnail',\n\t\t\t\t\t'excerpt',\n\t\t\t\t\t'page-attributes',\n\t\t\t\t\t'comments'\n\t\t\t\t),\n\t\t\t\t'menu_icon' => $menuIcon\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "760d766bd9827af67341f2facc04840a", "score": "0.8047014", "text": "public function register_post_type()\n {\n\t\t$s = $this->post_type_name;\n $n = ucwords($s);\n\t\t$p = $n.'s';\n\t\t//default args\n\t\t\n\t\t$args = array( \n\t 'labels' => array( \n \t 'name' => $p,\n \t 'singular_name' => $n,\n \t 'all_items' => 'List '.$p,\n \t 'add_new' => 'Add New',\n \t 'add_new_item' => 'Add New '.$n,\n \t 'edit_item' => 'Edit '.$n,\n \t 'new_item' => 'New '.$n,\n \t 'view_item' => 'View '.$n,\n \t 'search_items' => 'Search '.$p,\n \t 'not_found' => 'No '.$p.' found',\n \t 'not_found_in_trash' => 'No '.$p.' found in Trash',\n \t 'parent_item_colon' => 'Parent '.$n.':',\n \t 'menu_name' => $p\n \t ),\n \t 'capability_type' => 'post',\n\t 'rewrite' => array( \n\t 'slug' => $s, \n\t 'with_front' => false \n\t ),\n\t 'supports' => array( \n\t 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'trackbacks', 'custom-fields', 'comments', 'revisions' \n\t ),\n\t 'taxonomies' => array( \n\t 'category', \n\t 'post_tag', \n\t 'page-category' \n\t ),\n\t 'hierarchical' => true,\n\t 'public' => true,\n\t 'show_ui' => true,\n\t 'show_in_menu' => true,\n\t 'menu_position' => 5,\n\t 'show_in_nav_menus' => true,\n\t 'publicly_queryable' => true,\n\t 'exclude_from_search' => false,\n\t 'has_archive' => true,\n\t 'query_var' => true,\n\t 'can_export' => true\t \n\t\t\t);\n\n // Take user provided options, and override the defaults.\n $args = array_merge($args, $this->post_type_args);\n\n register_post_type($this->post_type_name, $args);\n }", "title": "" }, { "docid": "bfbbe90e0e3f4f1203c845bbff1435b9", "score": "0.8025465", "text": "function register_post_type() {\n\t\t// Set labels\n\t\t$labels = array_merge(\n\n\t\t\t// Default\n\t\t\tarray(\n\t\t\t\t'name' \t\t\t\t\t=> _x( $this->plural, 'post type general name', CUZTOM_TEXTDOMAIN ),\n\t\t\t\t'singular_name' \t\t=> _x( $this->title, 'post type singular title', CUZTOM_TEXTDOMAIN ),\n\t\t\t\t'add_new' \t\t\t\t=> _x( 'Add New', $this->title, CUZTOM_TEXTDOMAIN ),\n\t\t\t\t'add_new_item' \t\t\t=> sprintf( __( 'Add New %s', CUZTOM_TEXTDOMAIN ), $this->title ),\n\t\t\t\t'edit_item' \t\t\t=> sprintf( __( 'Edit %s', CUZTOM_TEXTDOMAIN ), $this->title ),\n\t\t\t\t'new_item' \t\t\t\t=> sprintf( __( 'New %s', CUZTOM_TEXTDOMAIN ), $this->title ),\n\t\t\t\t'all_items' \t\t\t=> sprintf( __( 'All %s', CUZTOM_TEXTDOMAIN ), $this->plural ),\n\t\t\t\t'view_item' \t\t\t=> sprintf( __( 'View %s', CUZTOM_TEXTDOMAIN ), $this->title ),\n\t\t\t\t'search_items' \t\t\t=> sprintf( __( 'Search %s', CUZTOM_TEXTDOMAIN ), $this->plural ),\n\t\t\t\t'not_found' \t\t\t=> sprintf( __( 'No %s found', CUZTOM_TEXTDOMAIN ), $this->plural ),\n\t\t\t\t'not_found_in_trash' \t=> sprintf( __( 'No %s found in trash', CUZTOM_TEXTDOMAIN ), $this->plural ),\n\t\t\t\t'menu_name' \t\t\t=> $this->plural,\n\t\t\t),\n\n\t\t\t// Given labels\n\t\t\t$this->labels\n\n\t\t);\n\n\t\t// Post type arguments\n\t\t$args = array_merge( \n\t\t\t// Default\n\t\t\tarray(\n\t\t\t\t'label' \t\t\t\t=> $this->plural,\n\t\t\t\t'labels' \t\t\t\t=> $labels,\n\t\t\t\t'public' \t\t\t\t=> true,\n\t\t\t\t'supports' \t\t\t\t=> array( 'title', 'editor','thumbnail','excerpt' ),\n\t\t\t\t'has_archive' => sanitize_title( $this->plural )\n\t\t\t),\n\n\t\t\t// Given args\n\t\t\t$this->args\n\n\t\t);\n\n\t\t// Register the post type\n\t\tregister_post_type( $this->name, $args );\n\t}", "title": "" }, { "docid": "7410b05200fa96a83d269e6357f978fd", "score": "0.80254006", "text": "function cone_register_post_types() {\n // Custom post types should be registered here\n}", "title": "" }, { "docid": "f292b1eaeeb44071a14e526e410b4c25", "score": "0.79955745", "text": "function select_setup_post_type() {\n // register the \"book\" custom post type\n register_post_type( 'book', ['public' => 'true'] );\n}", "title": "" }, { "docid": "e02c7921e04dc840f2f30aec597bd489", "score": "0.7958011", "text": "public function create_post_type() {\n\n\t\t\t$this->register_post_type( $this->get_args() );\n\n\t\t}", "title": "" }, { "docid": "a4200de8e1003ced8b2574d608f545ed", "score": "0.79416686", "text": "public function register_post_type()\n\t{\n\t\t//Capitilize the words and make it plural\n\t\t$name \t= $this->get_friendly_name();\n\t\t$plural = $this->get_friendly_name(true);\n\n\t\t// We set the default labels based on the post type name and plural. We overwrite them with the given labels.\n\t\t$labels = array_merge(\n\n\t\t\t// Default\n\t\t\tarray(\n\t\t\t\t'name' \t\t\t\t\t=> _x( $plural, 'post type general name' ),\n\t\t\t\t'singular_name' \t\t=> _x( $name, 'post type singular name' ),\n\t\t\t\t'add_new' \t\t\t\t=> _x( 'Add New', strtolower( $name ) ),\n\t\t\t\t'add_new_item' \t\t\t=> __( 'Add New ' . $name ),\n\t\t\t\t'edit_item' \t\t\t=> __( 'Edit ' . $name ),\n\t\t\t\t'new_item' \t\t\t\t=> __( 'New ' . $name ),\n\t\t\t\t'all_items' \t\t\t=> __( 'All ' . $plural ),\n\t\t\t\t'view_item' \t\t\t=> __( 'View ' . $name ),\n\t\t\t\t'search_items' \t\t\t=> __( 'Search ' . $plural ),\n\t\t\t\t'not_found' \t\t\t=> __( 'No ' . strtolower( $plural ) . ' found'),\n\t\t\t\t'not_found_in_trash' \t=> __( 'No ' . strtolower( $plural ) . ' found in Trash'),\n\t\t\t\t'parent_item_colon' \t=> '',\n\t\t\t\t'menu_name' \t\t\t=> $plural\n\t\t\t),\n\n\t\t\t// Given labels\n\t\t\tisset($this->post_type_args['labels']) ? $this->post_type_args['labels'] : array()\n\n\t\t);\n\n\t\t// Same principle as the labels. We set some default and overwite them with the given arguments.\n\t\t$args = array_merge(\n\n\t\t\t// Default\n\t\t\tarray(\n\t\t\t\t'label' \t\t\t\t=> $plural,\n\t\t\t\t'labels' \t\t\t\t=> $labels,\n\t\t\t\t'public' \t\t\t\t=> true,\n\t\t\t\t// 'publicly_queryable' => true,\t// these all default to the setting of 'public'\n\t\t\t\t// 'show_ui' \t\t\t\t=> true,\n\t\t\t\t// 'show_in_nav_menus' \t=> true,\n\t\t\t\t// 'show_in_menu'\t\t=> true,\n\t\t\t\t'query_var'\t\t\t=> true,\n\t\t\t\t'rewrite'\t\t\t=> true,\n\t\t\t\t'supports' \t\t\t=> array( 'title', 'editor' ),\n\t\t\t\t'_builtin' \t\t\t=> false,\n\n\t\t\t\t'hierarchical'\t\t=> false,\n\t\t\t),\n\n\t\t\t// Given args\n\t\t\t$this->post_type_args\n\n\t\t);\n\n\t\t// Register the post type\n\t\tregister_post_type( $this->post_type_name, $args );\n\t}", "title": "" }, { "docid": "c241f49447c0894279d44e09b12ef079", "score": "0.79302174", "text": "public function add_post_type(){\n\n $data = $this->fields_form();\n $this->form_post_type($data);\n\n }", "title": "" }, { "docid": "669d78fe790676ad95cd8cf827fd396a", "score": "0.7854634", "text": "public function register_post_type() {\n\n\t\t\t$args = array(\n\t\t\t\t'labels' => array(\n\t\t\t\t\t'name' => esc_html__( 'Forms', 'jet-engine' ),\n\t\t\t\t\t'singular_name' => esc_html__( 'Form', 'jet-engine' ),\n\t\t\t\t\t'add_new' => esc_html__( 'Add New', 'jet-engine' ),\n\t\t\t\t\t'add_new_item' => esc_html__( 'Add New Form', 'jet-engine' ),\n\t\t\t\t\t'edit_item' => esc_html__( 'Edit Form', 'jet-engine' ),\n\t\t\t\t\t'new_item' => esc_html__( 'Add New Item', 'jet-engine' ),\n\t\t\t\t\t'view_item' => esc_html__( 'View Form', 'jet-engine' ),\n\t\t\t\t\t'search_items' => esc_html__( 'Search Form', 'jet-engine' ),\n\t\t\t\t\t'not_found' => esc_html__( 'No Forms Found', 'jet-engine' ),\n\t\t\t\t\t'not_found_in_trash' => esc_html__( 'No Forms Found In Trash', 'jet-engine' ),\n\t\t\t\t\t'menu_name' => esc_html__( 'Forms', 'jet-engine' ),\n\t\t\t\t),\n\t\t\t\t'public' => true,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'show_in_admin_bar' => true,\n\t\t\t\t'show_in_menu' => false,\n\t\t\t\t'show_in_nav_menus' => false,\n\t\t\t\t'publicly_queryable' => false,\n\t\t\t\t'exclude_from_search' => true,\n\t\t\t\t'has_archive' => false,\n\t\t\t\t'query_var' => false,\n\t\t\t\t'can_export' => true,\n\t\t\t\t'rewrite' => false,\n\t\t\t\t'capability_type' => 'post',\n\t\t\t\t'supports' => array( 'title' ),\n\t\t\t);\n\n\t\t\t$post_type = register_post_type(\n\t\t\t\t$this->manager->slug(),\n\t\t\t\tapply_filters( 'jet-engine/forms/booking/post-type/args', $args )\n\t\t\t);\n\n\t\t}", "title": "" }, { "docid": "bb86f57aabd6b022ac423d89ec32a9dd", "score": "0.7851429", "text": "public function registerPostTypes()\n {\n }", "title": "" }, { "docid": "786523a12a2b6028be202d0ef8a23d85", "score": "0.7842591", "text": "public static function register_custom_post_type()\r\n\t{\r\n\t\tContentJobCPT::register_custom_post_type();\r\n\t\tContentWriterCPT::register_custom_post_type();\r\n\t\tTimelineActivityCPT::register_custom_post_type();\r\n\t\tContentCountryCPT::register_custom_post_type();\r\n\t\tContentTypeOfDocumentCPT::register_custom_post_type();\r\n\t\tContentSubjectAreaCPT::register_custom_post_type();\r\n\t\tContentNoOfPagesCPT::register_custom_post_type();\r\n\t\tContentUrgencyCPT::register_custom_post_type();\r\n\t\tContentAcademicLevelCPT::register_custom_post_type();\r\n\t\tContentCurrencyCPT::register_custom_post_type();\r\n\t\tContentLanguageCPT::register_custom_post_type();\r\n\t\tContentStyleCPT::register_custom_post_type();\r\n\t\tContentQuestionCPT::register_custom_post_type();\r\n\t}", "title": "" }, { "docid": "0d824cbbacfa4ea0c02da26e60bc92e4", "score": "0.78306663", "text": "function shiftr_register_post_type( string $name, array $settings = [], array $args = [] ) {\n global $shiftr_post_types;\n\n // Add name to $settings\n $settings['name'] = $name;\n\n // Create new Shiftr_Custom_Post_Type instance\n $shiftr_post_types[$name] = new Shiftr_Custom_Post_Type( $settings, $args );\n\n return $shiftr_post_types;\n}", "title": "" }, { "docid": "568c92599c805fea472d872cfdf0188a", "score": "0.78096426", "text": "public function register() {\n\t\tregister_post_type( $this->slug, array_merge( $this->get_default_args(), $this->get_args() ) );\n\t}", "title": "" }, { "docid": "1b2f3ad1b5567319007e4e17b9cc77d3", "score": "0.77857804", "text": "public function register_post_type(){\n\t\tregister_post_type( 'post_type_faq',\n\t\t\tapply_filters( 'bs_register_post_type_faq',\n\t\t\t\tarray(\n\t\t\t\t\t'labels' => array(\n\t\t\t\t\t\t'name' => 'FAQ',\n\t\t\t\t\t\t'singular_name' => 'FAQ',\n\t\t\t\t\t\t'menu_name' => 'FAQ',\n\t\t\t\t\t\t'add_new' => 'Nova pergunta',\n\t\t\t\t\t\t'add_new_item' => 'Adicionar nova pergunta',\n\t\t\t\t\t\t'edit' => 'Editar',\n\t\t\t\t\t\t'edit_item' => 'Editar pergunta',\n\t\t\t\t\t\t'new_item' => 'Nova pergunta'\n\t\t\t\t\t),\n\t\t\t\t\t'description' => 'Aqui você pode criar ou editar as perguntas',\n\t\t\t\t\t'public' => true,\n\t\t\t\t\t'show_ui' => true,\n\t\t\t\t\t'capability_type' => 'post',\n\t\t\t\t\t'map_meta_cap' => true,\n\t\t\t\t\t'publicly_queryable' => true,\n\t\t\t\t\t'exclude_from_search' => true,\n\t\t\t\t\t'hierarchical' => false,\n\t\t\t\t\t'rewrite' => false,\n\t\t\t\t\t'query_var' => true,\n\t\t\t\t\t'has_archive' => false,\n\t\t\t\t\t'show_in_nav_menus' => false,\n\t\t\t\t\t'menu_icon' => 'dashicons-format-aside',\n\t\t\t\t\t'supports' => array( 'title', 'editor', 'page-attributes' )\n\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "f99730be075cb65fad31169a88ed4b6f", "score": "0.7782763", "text": "public function addPosttype()\n {\n WordPress::registerType(\n self::TYPE_SLUG,\n 'Inhalts-Element (Onepager)',\n 'Inhalts-Elemente (Onepager)',\n array(\n 'public' => false,\n 'has_archive' => false,\n 'exclude_from_search' => true,\n 'publicly_queryable' => false,\n 'show_ui' => true,\n 'show_in_nav_menus' => false,\n 'show_in_menu' => false,\n 'supports' => array('title', 'revisions')\n )\n );\n }", "title": "" }, { "docid": "28f7206b8baa17b3f8bd7d9e767b7d39", "score": "0.77364856", "text": "function register_post_type(){\n \n $capability = acf_get_setting('capability');\n \n if(!acf_get_setting('show_admin'))\n $capability = false;\n \n register_post_type($this->post_type, array(\n 'label' => 'Post Types',\n 'description' => 'Post Types',\n 'labels' => array(\n 'name' => 'Post Types',\n 'singular_name' => 'Post Type',\n 'menu_name' => 'Post Types',\n 'edit_item' => 'Edit Post Type',\n 'add_new_item' => 'New Post Type',\n ),\n 'supports' => array('title'),\n 'hierarchical' => false,\n 'public' => false,\n 'show_ui' => true,\n 'show_in_menu' => 'tools.php',\n 'menu_icon' => 'dashicons-layout',\n 'show_in_admin_bar' => false,\n 'show_in_nav_menus' => false,\n 'can_export' => false,\n 'has_archive' => false,\n 'rewrite' => false,\n 'exclude_from_search' => true,\n 'publicly_queryable' => false,\n 'capabilities' => array(\n 'publish_posts' => $capability,\n 'edit_posts' => $capability,\n 'edit_others_posts' => $capability,\n 'delete_posts' => $capability,\n 'delete_others_posts' => $capability,\n 'read_private_posts' => $capability,\n 'edit_post' => $capability,\n 'delete_post' => $capability,\n 'read_post' => $capability,\n ),\n 'acfe_admin_orderby' => 'title',\n 'acfe_admin_order' => 'ASC',\n 'acfe_admin_ppp' => 999,\n ));\n \n }", "title": "" }, { "docid": "580fe423f2881379dc8959aa998f8c86", "score": "0.7729149", "text": "function createPostType(){\n pn_create_post_type($this->name, $this->title, $this->support); \n }", "title": "" }, { "docid": "6184cf926c8572f608cd878aa1ab3cc0", "score": "0.7690288", "text": "function register_post_type() {\n\t\\register_post_type( 'source', [\n\t\t'label' => 'Sources',\n\t\t'singular_label' => 'Source',\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t]);\n}", "title": "" }, { "docid": "b8bfc5ccb72df43d06fd17b55a9c7166", "score": "0.76785934", "text": "public static function register_custom_post_types() \n\t{\t\n\n\t\t$data = get_option( self::db_key, array() );\n\t\tforeach ($data as $post_type => $def) \n\t\t{\n\t\t\tif ( isset($def['is_active']) \n\t\t\t\t&& !empty($def['is_active']) \n\t\t\t\t&& !in_array($post_type, self::$built_in_post_types)) \n\t\t\t{\t\n\t\t\t\tregister_post_type( $post_type, $def );\n\t\t\t}\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "6064125a4548e58cc0dfa5b93b3dc3be", "score": "0.7674992", "text": "public function register_post_types() {\n\t\t// CUSTOM POSTS\n // $labels = array(\n // 'name' =>_x('Custom Posts', 'post type general name', 'artlytical-media'),\n // 'singular_name' =>_x('Custom Post', 'post type singular name', 'artlytical-media'),\n // 'menu_name' =>_x('Custom Posts', 'admin menu', 'artlytical-media'),\n // 'name_admin_bar' =>_x('Custom Post', 'add new on admin bar', 'artlytical-media'),\n // 'add_new' =>_x('Add Custom Post', 'exhibit', 'artlytical-media'),\n // 'add_new_item' =>__('Add New Custom Post', 'artlytical-media'),\n // 'new_item' =>__('New Custom Post', 'artlytical-media'),\n // 'edit_item' =>__('Edit Custom Post', 'artlytical-media'),\n // 'view_item' =>__('View Custom Posts', 'artlytical-media'),\n // 'all_items' =>__('All Custom Posts', 'artlytical-media'),\n // 'search_items' =>__('Search Custom Posts', 'artlytical-media'),\n // 'parent_item_colon' =>__('Parent Custom Post:', 'artlytical-media'),\n // 'not_found' =>__('No custom posts found.', 'artlytical-media'),\n // 'not_found_in_trash' =>__('No custom posts found in Trash.', 'artlytical-media')\n // );\n\n // $args = array(\n // 'labels' => $labels,\n // 'description' => __('Description.', 'artlytical-media'),\n // 'public' => true,\n // 'publicly_queryable' => true,\n // 'show_ui' => true,\n // 'show_in_menu' => true,\n // 'query_var' => true,\n // 'rewrite' => array('slug' => 'custom-post'),\n // 'capability_type' => 'post',\n // 'has_archive' => false,\n // 'hierarchical' => false,\n // 'menu_position' => null,\n // 'supports' => array('title', 'editor', 'thumbnail', 'revisions', 'page-attributes'),\n // 'menu_icon'\t\t\t\t\t =>'dashicons-format-image'\n // );\n\n // register_post_type('custom_post', $args);\n\t}", "title": "" }, { "docid": "549f57f64a16507c2c7c246557187433", "score": "0.76747054", "text": "public function create_post_type() {\n if (empty($this->rewrite) || empty($this->rewrite['slug'])) { $this->rewrite['slug'] = $this->type; }\n $args = array(\n 'label' => $this->plural,\n 'labels' => $this->post_type_labels(),\n 'description' => $this->descrip,\n 'public' => (isset($this->public)) ? $this->public : true,\n 'show_in_admin_bar' => (isset($this->show_in_admin_bar)) ? $this->show_in_admin_bar : false,\n 'menu_position' => $this->menu_position,\n 'menu_icon' => $this->menu_icon,\n 'map_meta_cap' => (isset($this->map_meta_cap)) ? $this->map_meta_cap : true,\n 'hierarchical' => (isset($this->hierarchical)) ? $this->hierarchical : false,\n 'query_var' => (isset($this->query_var)) ? $this->query_var : false,\n 'supports' => $this->supports,\n 'taxonomies' => $this->taxonomies,\n 'has_archive' => (isset($this->has_archive)) ? $this->has_archive : $this->type,\n 'rewrite' => $this->rewrite);\n if ( $this->caps !== 'post' ) {\n #$args['capability_type'] = $this->type;\n #$args['capabilities'] = $this->map_capabilities();\n }\n $args = apply_filters(\"tcc_register_post_{$this->type}\",$args);\n #$this->logging( $args, $this->caps );\n register_post_type($this->type,$args);\n do_action('tcc_custom_post_'.$this->type);\n $cpt = get_post_type_object( $this->type );\n #$this->logging( $args, $cpt );\n if ($cpt->map_meta_cap) add_action('admin_init', array($this,'add_caps'));\n /*foreach($this->supports as $support) {\n $this->logging(\"supports $support: \".((post_type_supports($this->type,$support)) ? 'true' : 'false'));\n } //*/\n }", "title": "" }, { "docid": "037b457857ad3db8649c0fd8e237ffc5", "score": "0.7653502", "text": "public function register_post_type(){\n\t\t\tif(!class_exists('CPT')) return;\n\t\t\n\t\t\t$this->post_type = new CPT(\n\t\t\t\tarray(\n\t\t\t\t 'post_type_name' => 'program',\n\t\t\t\t 'singular' => 'Program',\n\t\t\t\t 'plural' => 'Programs',\n\t\t\t\t 'slug' => 'program'\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'has_archive' \t\t\t=> \ttrue,\n\t\t\t\t\t'menu_position' \t\t=> \t8,\n\t\t\t\t\t'menu_icon' \t\t\t=> \t'dashicons-layout',\n\t\t\t\t\t'supports' \t\t\t\t=> \tarray('title', 'editor','thumbnail')\n\t\t\t\t)\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "ef564de632062aa97390f6c82df6c0fa", "score": "0.7653322", "text": "function register() {\n // Default values to the top level of WP register_post_type() array\n $defaults = [\n 'description' => 'Just a custom post type',\n 'menu_position' => $this->menu_position,\n 'menu_icon' => $this->menu_icon,\n 'show_ui' => true,\n 'rewrite' => array( 'slug' => $this->name ),\n 'has_archive' => str_replace( '_', '-', $this->name ),\n 'hierarchical' => false,\n 'supports' => [ 'title', 'editor', 'thumbnail', 'author', 'page-attributes', 'revisions' ]\n ];\n \n // Filter any values set in the instance of Shiftr_Custom_Post_Type\n $defaults = wp_parse_args( $this->args, $defaults );\n\n // The labels\n $labels = [\n 'labels' => [\n 'name' => $this->plural,\n 'singular_name' => $this->singular,\n 'all_items' => 'All ' . $this->plural,\n 'add_new_item' => 'Add New ' . $this->singular,\n 'edit' => 'Edit',\n 'edit_item' => 'Edit ' . $this->singular,\n 'new_item' => 'New ' . $this->singular,\n 'view_item' => 'View ' . $this->singular,\n 'view_items' => 'View ' . $this->plural,\n 'search_items' => 'Search ' . $this->plural,\n 'not_found' => 'Nothing found in the Database.',\n 'not_found_in_trash' => 'Nothing found in Trash',\n 'parent_item_colon' => ''\n ]\n ];\n\n // Combine arrays to form the main $args array for WP register_post_type()\n $args = array_merge( $labels, $defaults );\n\n /**\n * Dynamically configure the archive slug.\n */\n $post_type_page_id = shiftr_get_page_id( $this->name );\n\n if( $post_type_page_id ) {\n $args['has_archive'] = $post_type_page_id && get_post( $post_type_page_id ) ? urldecode( get_page_uri( $post_type_page_id ) ) : $this->name;\n }\n\n // Apply filters\n $args = apply_filters( 'shiftr_custom_post_type_register_args', $args, $this->name );\n\n\n // Register the custom post type\n register_post_type( $this->name, $args );\n }", "title": "" }, { "docid": "f1eb951af2a52027be1a252c273b1348", "score": "0.7640972", "text": "private function registerPostType()\n {\n\n $labels = array(\n 'name' => _x( 'Artists', 'Post type general name', 'artist' ),\n 'singular_name' => _x( 'Artist', 'Post type singular name', 'artist' ),\n 'menu_name' => _x( 'Artists', 'Admin Menu text', 'artist' ),\n 'name_admin_bar' => _x( 'Artist', 'Add New on Toolbar', 'artist' ),\n 'add_new' => __( 'Add New', 'artist' ),\n 'add_new_item' => __( 'Add New Artist', 'artist' ),\n 'new_item' => __( 'New Artist', 'artist' ),\n 'edit_item' => __( 'Edit Artist', 'artist' ),\n 'view_item' => __( 'View Artist', 'artist' ),\n 'all_items' => __( 'All Artists', 'artist' ),\n 'search_items' => __( 'Search Artists', 'artist' ),\n 'parent_item_colon' => __( 'Parent Artists:', 'artist' ),\n 'not_found' => __( 'No Artists found.', 'artist' ),\n 'not_found_in_trash' => __( 'No Artists found in Trash.', 'artist' ),\n 'featured_image' => _x( 'Artist Cover Image', 'Overrides the “Featured Image” phrase for this post type. Added in 4.3', 'artist' ),\n 'set_featured_image' => _x( 'Set cover image', 'Overrides the “Set featured image” phrase for this post type. Added in 4.3', 'artist' ),\n 'remove_featured_image' => _x( 'Remove cover image', 'Overrides the “Remove featured image” phrase for this post type. Added in 4.3', 'artist' ),\n 'use_featured_image' => _x( 'Use as cover image', 'Overrides the “Use as featured image” phrase for this post type. Added in 4.3', 'artist' ),\n 'archives' => _x( 'Artist archives', 'The post type archive label used in nav menus. Default “Post Archives”. Added in 4.4', 'artist' ),\n 'insert_into_item' => _x( 'Insert into Artist', 'Overrides the “Insert into post”/”Insert into page” phrase (used when inserting media into a post). Added in 4.4', 'artist' ),\n 'uploaded_to_this_item' => _x( 'Uploaded to this Artist', 'Overrides the “Uploaded to this post”/”Uploaded to this page” phrase (used when viewing media attached to a post). Added in 4.4', 'artist' ),\n 'filter_items_list' => _x( 'Filter Artists list', 'Screen reader text for the filter links heading on the post type listing screen. Default “Filter posts list”/”Filter pages list”. Added in 4.4', 'artist' ),\n 'items_list_navigation' => _x( 'Artists list navigation', 'Screen reader text for the pagination heading on the post type listing screen. Default “Posts list navigation”/”Pages list navigation”. Added in 4.4', 'artist' ),\n 'items_list' => _x( 'Artists list', 'Screen reader text for the items list heading on the post type listing screen. Default “Posts list”/”Pages list”. Added in 4.4', 'artist' ),\n );\n \n $args = array(\n 'labels' => $labels,\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => false,\n 'show_in_menu' => false,\n 'show_in_rest' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'artist' ),\n 'capability_type' => 'post',\n 'has_archive' => true,\n 'hierarchical' => false,\n 'menu_position' => null,\n 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt' ),\n );\n \n register_post_type( 'artist', $args );\n \n }", "title": "" }, { "docid": "19f9880936aff190ce6987017ab1309f", "score": "0.76305646", "text": "function registerPostType() {\n $labels = array(\n 'name' => 'Disciplinary Statements',\n 'singular_name' => 'Disciplinary Statement',\n 'add_new' => 'Add New',\n 'all_items' => 'All Statements',\n 'add_new_item' => 'Add New Statement',\n 'edit_item' => 'Edit Statement',\n 'new_item' => 'New Statement',\n 'view_item' => 'View Statement',\n 'search_items' => 'Search Statements',\n 'not_found' => 'No Statements found',\n 'not_found_in_trash' => 'No Statements found in trash',\n );\n\n $args = array(\n 'labels' => $labels,\n 'public' => false,\n 'exclude_from_search' => true,\n 'publicly_queryable' => false,\n 'show_ui' => true,\n 'show_in_nav_menus' => true,\n 'show_in_menu' => true,\n 'show_in_admin_bar' => true,\n 'menu_icon' => 'dashicons-id-alt',\n 'hierarchical' => false,\n 'supports' => array(\n 'title',\n ),\n 'has_archive' => false,\n 'rewrite' => false,\n 'query_var' => true,\n 'can_export' => true,\n );\n\n register_post_type($this->postType, $args);\n }", "title": "" }, { "docid": "c314cf78b6b6cb01fac4f9fa1878f6de", "score": "0.76234955", "text": "function dmnmlk_setup_post_types()\n{\n\tregister_post_type( 'book', ['public' => 'true'] );\n}", "title": "" }, { "docid": "c325e7d33a38634f7cc5d1c717bd9136", "score": "0.7615863", "text": "public function register_post_type() {\n\t\t\t$cap = acf_get_setting( 'capability' );\n\n\t\t\tregister_post_type(\n\t\t\t\t'acf-taxonomy',\n\t\t\t\tarray(\n\t\t\t\t\t'labels' => array(\n\t\t\t\t\t\t'name' => __( 'Taxonomies', 'acf' ),\n\t\t\t\t\t\t'singular_name' => __( 'Taxonomies', 'acf' ),\n\t\t\t\t\t\t'add_new' => __( 'Add New', 'acf' ),\n\t\t\t\t\t\t'add_new_item' => __( 'Add New Taxonomy', 'acf' ),\n\t\t\t\t\t\t'edit_item' => __( 'Edit Taxonomy', 'acf' ),\n\t\t\t\t\t\t'new_item' => __( 'New Taxonomy', 'acf' ),\n\t\t\t\t\t\t'view_item' => __( 'View Taxonomy', 'acf' ),\n\t\t\t\t\t\t'search_items' => __( 'Search Taxonomies', 'acf' ),\n\t\t\t\t\t\t'not_found' => __( 'No Taxonomies found', 'acf' ),\n\t\t\t\t\t\t'not_found_in_trash' => __( 'No Taxonomies found in Trash', 'acf' ),\n\t\t\t\t\t),\n\t\t\t\t\t'public' => false,\n\t\t\t\t\t'hierarchical' => true,\n\t\t\t\t\t'show_ui' => true,\n\t\t\t\t\t'show_in_menu' => false,\n\t\t\t\t\t'_builtin' => false,\n\t\t\t\t\t'capability_type' => 'post',\n\t\t\t\t\t'capabilities' => array(\n\t\t\t\t\t\t'edit_post' => $cap,\n\t\t\t\t\t\t'delete_post' => $cap,\n\t\t\t\t\t\t'edit_posts' => $cap,\n\t\t\t\t\t\t'delete_posts' => $cap,\n\t\t\t\t\t),\n\t\t\t\t\t'supports' => false,\n\t\t\t\t\t'rewrite' => false,\n\t\t\t\t\t'query_var' => false,\n\t\t\t\t)\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "c8f64aead67b7c7443e2ea7659f8102c", "score": "0.7611137", "text": "function register_custom_post_types(){\n\t#Register custom post types\n\tforeach(installed_custom_post_types() as $custom_post_type){\n\t\t$custom_post_type->register();\n\t}\n\n\t#This ensures that the permalinks for custom posts work\n\tflush_rewrite_rules();\n}", "title": "" }, { "docid": "95428e8d9a5df7983283996c77e30caf", "score": "0.7608161", "text": "public function register_post_type()\n {\n\n register_post_type( 'gallery', array(\n 'labels' => array(\n 'name' => _x( 'Galleries', 'post type general name', 'custom-post-type-galleries' ),\n 'singular_name' => _x( 'Gallery', 'post type singular name', 'custom-post-type-galleries' ),\n 'add_new' => _x( 'Add New', 'Gallery', 'custom-post-type-galleries' ),\n 'add_new_item' => __( 'Add New Gallery', 'custom-post-type-galleries' ),\n 'edit_item' => __( 'Edit Gallery', 'custom-post-type-galleries' ),\n 'new_item' => __( 'New Gallery', 'custom-post-type-galleries' ),\n 'view_item' => __( 'View Gallery', 'custom-post-type-galleries' ),\n 'search_items' => __( 'Search Gallery', 'custom-post-type-galleries' ),\n 'not_found' => __( 'No Galleries found', 'custom-post-type-galleries' ),\n 'not_found_in_trash' => __( 'No Galleries found in Trash', 'custom-post-type-galleries' ),\n 'parent_item_colon' => '',\n 'menu_name' => __( 'Galleries', 'custom-post-type-galleries' )\n ),\n 'public' => TRUE,\n 'publicly_queryable' => TRUE,\n 'show_ui' => TRUE,\n 'show_in_menu' => TRUE,\n 'query_var' => TRUE,\n 'rewrite' => array(\n 'slug' => _x( 'galleries', 'Post Type Slug', 'custom-post-type-galleries' ),\n 'with_front' => FALSE,\n ),\n 'capability_type' => 'post',\n 'has_archive' => TRUE,\n 'hierarchical' => FALSE,\n 'menu_position' => NULL,\n 'menu_icon' => 'dashicons-format-gallery',\n 'supports' => array( 'title', 'editor', 'thumbnail', 'page-attributes' )\n ));\n\n }", "title": "" }, { "docid": "e3ae83ba599a2eb95990eeccdfb754ce", "score": "0.75910926", "text": "public function registerPostTypes()\n\t\t{\n\t\t\tforeach( $this->_postTypes as $postType ) {\n\t\t\t\tadd_action( 'add_meta_boxes', array($postType, 'registerMetaboxes') );\n\t\t\t\tadd_action( 'save_post', array($postType, 'saveMetaboxes') );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "78c1b5b63d43b429403de42465cb606d", "score": "0.75766784", "text": "function create_posttype()\n{\n $args = array(\n 'public' => true,\n 'label' => 'Books',\n );\n register_post_type('book', $args);\n}", "title": "" }, { "docid": "4ecdc683380da7fd6e14a90c8b6f7e48", "score": "0.7571203", "text": "function add_what_we_do() {\n $args = array(\n 'labels' => array(\n 'name' => 'What we do',\n 'singular_name' => 'What we do'\n ),\n 'public' => true,\n 'capability_type' => 'post',\n 'hierarchical' => false,\n 'has_archive' => true\n );\n register_post_type('what-we-do',$args);\n}", "title": "" }, { "docid": "db644843020006605936564adc1a6766", "score": "0.7547298", "text": "public function register_post_type() {\n\n\t\t$labels = [\n\t\t\t'name' => _x( 'Entries', 'Post Type General Name', 'planet4-form-builder' ),\n\t\t\t'singular_name' => _x( 'Entry', 'Post Type Singular Name', 'planet4-form-builder' ),\n\t\t\t'menu_name' => __( 'Form Entries', 'planet4-form-builder' ),\n\t\t\t'name_admin_bar' => __( 'Entry', 'planet4-form-builder' ),\n\t\t\t'archives' => __( 'Entry Archives', 'planet4-form-builder' ),\n\t\t\t'attributes' => __( 'Entry Attributes', 'planet4-form-builder' ),\n\t\t\t'parent_item_colon' => __( 'Parent form:', 'planet4-form-builder' ),\n\t\t\t'all_items' => __( 'All Entries', 'planet4-form-builder' ),\n\t\t\t'add_new_item' => __( 'Add New Entry', 'planet4-form-builder' ),\n\t\t\t'add_new' => __( 'Add New', 'planet4-form-builder' ),\n\t\t\t'new_item' => __( 'New Entry', 'planet4-form-builder' ),\n\t\t\t'edit_item' => __( 'Edit Entry', 'planet4-form-builder' ),\n\t\t\t'update_item' => __( 'Update Entry', 'planet4-form-builder' ),\n\t\t\t'view_item' => __( 'View Entry', 'planet4-form-builder' ),\n\t\t\t'view_items' => __( 'View Entries', 'planet4-form-builder' ),\n\t\t\t'search_items' => __( 'Search Entry', 'planet4-form-builder' ),\n\t\t\t'not_found' => __( 'Not found', 'planet4-form-builder' ),\n\t\t\t'not_found_in_trash' => __( 'Not found in Trash', 'planet4-form-builder' ),\n\t\t\t'featured_image' => __( 'Featured Image', 'planet4-form-builder' ),\n\t\t\t'set_featured_image' => __( 'Set featured image', 'planet4-form-builder' ),\n\t\t\t'remove_featured_image' => __( 'Remove featured image', 'planet4-form-builder' ),\n\t\t\t'use_featured_image' => __( 'Use as featured image', 'planet4-form-builder' ),\n\t\t\t'insert_into_item' => __( 'Insert into Entry', 'planet4-form-builder' ),\n\t\t\t'uploaded_to_this_item' => __( 'Uploaded to this Entry', 'planet4-form-builder' ),\n\t\t\t'items_list' => __( 'Entries list', 'planet4-form-builder' ),\n\t\t\t'items_list_navigation' => __( 'Entries list navigation', 'planet4-form-builder' ),\n\t\t\t'filter_items_list' => __( 'Filter forms list', 'planet4-form-builder' ),\n\t\t];\n\n\t\t$args = [\n\t\t\t'label' => __( 'Entry', 'planet4-form-builder' ),\n\t\t\t'description' => __( 'Planet 4 Form Entries custom post type.', 'planet4-form-builder' ),\n\t\t\t'labels' => $labels,\n\t\t\t'supports' => [ 'title' ],\n\t\t\t'hierarchical' => false,\n\t\t\t'public' => false,\n\t\t\t'show_ui' => true,\n\t\t\t'show_in_menu' => 'edit.php?post_type=' . P4FB_FORM_CPT,\n\t\t\t'menu_position' => 160,\n\t\t\t'menu_icon' => 'dashicons-feedback',\n\t\t\t'show_in_admin_bar' => false,\n\t\t\t'show_in_nav_menus' => false,\n\t\t\t'can_export' => true,\n\t\t\t'has_archive' => false,\n\t\t\t'exclude_from_search' => true,\n\t\t\t'publicly_queryable' => false,\n\t\t\t'rewrite' => false,\n\t\t\t'capability_type' => 'post',\n\t\t\t'show_in_rest' => true,\n\t\t\t'rest_base' => 'mappings',\n\t\t];\n\n\t\tregister_post_type( P4FB_ENTRY_CPT, $args );\n\t}", "title": "" }, { "docid": "74bc3f660228959e5fb920f758bc5fe8", "score": "0.75456566", "text": "public function create_post_type()\n\t\t{\n\t\t\tregister_post_type(self::POST_TYPE,\n\t\t\t\tarray(\n\t\t\t\t\t'labels' => array(\n\t\t\t\t\t\t'name' => __(sprintf('%ss', ucwords(str_replace(\"_\", \" \", self::POST_TYPE)))),\n\t\t\t\t\t\t'singular_name' => __(ucwords(str_replace(\"_\", \" \", self::POST_TYPE)))\n\t\t\t\t\t),\n\t\t\t\t\t'public' => true,\n\t\t\t\t\t'has_archive' => true,\n\t\t\t\t\t'description' => __(\"Job Orders from the Bullhorn API\"),\n\t\t\t\t\t'supports' => array(\n\t\t\t\t\t\t'title', 'editor', 'excerpt', \n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "c34486720f355d63a93d7a505804016f", "score": "0.7535361", "text": "function register_post_types() {\n\t\t\n\t\t// vars\n\t\t$cap = pdc_get_setting('capability');\n\t\t\n\t\t\n\t\t// register post type 'pdc-field-group'\n\t\tregister_post_type('pdc-field-group', array(\n\t\t\t'labels'\t\t\t=> array(\n\t\t\t 'name'\t\t\t\t\t=> __( 'Field Groups', 'pdc' ),\n\t\t\t\t'singular_name'\t\t\t=> __( 'Field Group', 'pdc' ),\n\t\t\t 'add_new'\t\t\t\t=> __( 'Add New' , 'pdc' ),\n\t\t\t 'add_new_item'\t\t\t=> __( 'Add New Field Group' , 'pdc' ),\n\t\t\t 'edit_item'\t\t\t\t=> __( 'Edit Field Group' , 'pdc' ),\n\t\t\t 'new_item'\t\t\t\t=> __( 'New Field Group' , 'pdc' ),\n\t\t\t 'view_item'\t\t\t\t=> __( 'View Field Group', 'pdc' ),\n\t\t\t 'search_items'\t\t\t=> __( 'Search Field Groups', 'pdc' ),\n\t\t\t 'not_found'\t\t\t\t=> __( 'No Field Groups found', 'pdc' ),\n\t\t\t 'not_found_in_trash'\t=> __( 'No Field Groups found in Trash', 'pdc' ),\n\t\t\t),\n\t\t\t'public'\t\t\t=> false,\n\t\t\t'show_ui'\t\t\t=> true,\n\t\t\t'_builtin'\t\t\t=> false,\n\t\t\t'capability_type'\t=> 'post',\n\t\t\t'capabilities'\t\t=> array(\n\t\t\t\t'edit_post'\t\t\t=> $cap,\n\t\t\t\t'delete_post'\t\t=> $cap,\n\t\t\t\t'edit_posts'\t\t=> $cap,\n\t\t\t\t'delete_posts'\t\t=> $cap,\n\t\t\t),\n\t\t\t'hierarchical'\t\t=> true,\n\t\t\t'rewrite'\t\t\t=> false,\n\t\t\t'query_var'\t\t\t=> false,\n\t\t\t'supports' \t\t\t=> array('title'),\n\t\t\t'show_in_menu'\t\t=> false,\n\t\t));\n\t\t\n\t\t\n\t\t// register post type 'pdc-field'\n\t\tregister_post_type('pdc-field', array(\n\t\t\t'labels'\t\t\t=> array(\n\t\t\t 'name'\t\t\t\t\t=> __( 'Fields', 'pdc' ),\n\t\t\t\t'singular_name'\t\t\t=> __( 'Field', 'pdc' ),\n\t\t\t 'add_new'\t\t\t\t=> __( 'Add New' , 'pdc' ),\n\t\t\t 'add_new_item'\t\t\t=> __( 'Add New Field' , 'pdc' ),\n\t\t\t 'edit_item'\t\t\t\t=> __( 'Edit Field' , 'pdc' ),\n\t\t\t 'new_item'\t\t\t\t=> __( 'New Field' , 'pdc' ),\n\t\t\t 'view_item'\t\t\t\t=> __( 'View Field', 'pdc' ),\n\t\t\t 'search_items'\t\t\t=> __( 'Search Fields', 'pdc' ),\n\t\t\t 'not_found'\t\t\t\t=> __( 'No Fields found', 'pdc' ),\n\t\t\t 'not_found_in_trash'\t=> __( 'No Fields found in Trash', 'pdc' ),\n\t\t\t),\n\t\t\t'public'\t\t\t=> false,\n\t\t\t'show_ui'\t\t\t=> false,\n\t\t\t'_builtin'\t\t\t=> false,\n\t\t\t'capability_type'\t=> 'post',\n\t\t\t'capabilities'\t\t=> array(\n\t\t\t\t'edit_post'\t\t\t=> $cap,\n\t\t\t\t'delete_post'\t\t=> $cap,\n\t\t\t\t'edit_posts'\t\t=> $cap,\n\t\t\t\t'delete_posts'\t\t=> $cap,\n\t\t\t),\n\t\t\t'hierarchical'\t\t=> true,\n\t\t\t'rewrite'\t\t\t=> false,\n\t\t\t'query_var'\t\t\t=> false,\n\t\t\t'supports' \t\t\t=> array('title'),\n\t\t\t'show_in_menu'\t\t=> false,\n\t\t));\n\t\t\n\t}", "title": "" }, { "docid": "fb452e3991ebdc7802536cdefb520bcc", "score": "0.75316536", "text": "protected function register_post_type( $args ) {\n\t\t\t$plural_proper = ucwords( $this->get_post_type_word( $this->plural ) );\n\t\t\tregister_post_type( $this->post_type, wp_parse_args( $args, array(\n\t\t\t\t'label' => __( $plural_proper, 'wps' ),\n\t\t\t\t'description' => __( 'For ' . $plural_proper, 'wps' ),\n\t\t\t\t'labels' => $this->get_labels(),\n\t\t\t\t'rewrite' => $this->get_rewrite(),\n\t\t\t\t'supports' => $this->get_supports(),\n\t\t\t) ) );\n\t\t}", "title": "" }, { "docid": "01be5f0a9f5f9a0543f5e84d08a92ded", "score": "0.75304043", "text": "public static function register_post_type() {\n\t\tregister_post_type( self::POST_TYPE, array(\n\t\t\t'description' => __( 'A patient chat bot.' ),\n\t\t\t'label' => __( 'Bots', 'arniebot' ),\n\t\t\t'labels' => array(\n\t\t\t\t'name' => __( 'Bots', 'arniebot' ),\n\t\t\t\t'singular_name' => __( 'Bot', 'arniebot' ),\n\t\t\t\t'add_new' => _x( 'Add New', self::POST_TYPE, 'arniebot' ),\n\t\t\t\t'add_new_item' => __( 'Add New Bot', 'arniebot' ),\n\t\t\t\t'edit_item' => __( 'Edit Bot', 'arniebot' ),\n\t\t\t\t'new_item' => __( 'New Bot', 'arniebot' ),\n\t\t\t\t'not_found' => __( 'No bots found', 'arniebot' ),\n\t\t\t\t'not_found_in_trash' => __( 'No bots found', 'arniebot' ),\n\t\t\t\t'all_items' => __( 'All Bots', 'arniebot' ),\n\t\t\t),\n\t\t\t'hierarchical' => false,\n\t\t\t'show_ui' => true,\n\t\t\t'menu_icon' => 'dashicons-smiley',\n\t\t\t'supports' => array( 'title' ),\n\t\t\t'can_export' => false,\n\t\t\t'rewrite' => array( 'with_front' => false ),\n\t\t) );\n\t}", "title": "" }, { "docid": "0a53e19e40b869055c098e0c99d27523", "score": "0.7529518", "text": "public static function register_wiki_post_type() {\n\n $labels = array(\n 'name' => _x( 'wpPedia Entries', 'Post Type General Name', 'wppedia' ),\n 'singular_name' => _x( 'wpPedia Entry', 'Post Type Singular Name', 'wppedia' ),\n 'menu_name' => _x( 'wpPedia Entries', 'Admin Menu text', 'wppedia' ),\n 'name_admin_bar' => _x( 'wpPedia Entry', 'Add New on Toolbar', 'wppedia' ),\n 'archives' => __( 'wpPedia Entry Archives', 'wppedia' ),\n 'attributes' => __( 'wpPedia Entry Attributes', 'wppedia' ),\n 'parent_item_colon' => __( 'Parent wpPedia Entry:', 'wppedia' ),\n 'all_items' => __( 'All wpPedia Entries', 'wppedia' ),\n 'add_new_item' => __( 'Add New wpPedia Entry', 'wppedia' ),\n 'add_new' => __( 'Add New', 'wppedia' ),\n 'new_item' => __( 'New wpPedia Entry', 'wppedia' ),\n 'edit_item' => __( 'Edit wpPedia Entry', 'wppedia' ),\n 'update_item' => __( 'Update wpPedia Entry', 'wppedia' ),\n 'view_item' => __( 'View wpPedia Entry', 'wppedia' ),\n 'view_items' => __( 'View wpPedia Entries', 'wppedia' ),\n 'search_items' => __( 'Search wpPedia Entry', 'wppedia' ),\n 'not_found' => __( 'Not found', 'wppedia' ),\n 'not_found_in_trash' => __( 'Not found in Trash', 'wppedia' ),\n 'featured_image' => __( 'Featured Image', 'wppedia' ),\n 'set_featured_image' => __( 'Set featured image', 'wppedia' ),\n 'remove_featured_image' => __( 'Remove featured image', 'wppedia' ),\n 'use_featured_image' => __( 'Use as featured image', 'wppedia' ),\n 'insert_into_item' => __( 'Insert into wpPedia Entry', 'wppedia' ),\n 'uploaded_to_this_item' => __( 'Uploaded to this wpPedia Entry', 'wppedia' ),\n 'items_list' => __( 'wpPedia Entries list', 'wppedia' ),\n 'items_list_navigation' => __( 'wpPedia Entries list navigation', 'wppedia' ),\n 'filter_items_list' => __( 'Filter wpPedia Entries list', 'wppedia' ),\n );\n\n $rewrite = array(\n 'slug' => 'glossary/term',\n 'with_front' => false,\n 'pages' => true,\n 'feeds' => true,\n );\n\n $args = array(\n 'label' => __( 'wpPedia Entry', 'wppedia' ),\n 'description' => __( '', 'wppedia' ),\n 'labels' => $labels,\n 'menu_icon' => 'dashicons-book-alt',\n 'supports' => array('title', 'editor', 'excerpt', 'revisions', 'author'),\n 'taxonomies' => array('initialcharacter'),\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'hierarchical' => false,\n 'exclude_from_search' => false,\n 'show_in_rest' => true,\n 'publicly_queryable' => true,\n\t\t\t'capability_type' => 'post',\n\t\t\t'has_archive' => 'glossary',\n 'rewrite' => $rewrite\n );\n\n register_post_type( 'wp_pedia_term', $args );\n\n\t}", "title": "" }, { "docid": "034b029ef998f62dca3563655742e921", "score": "0.75266373", "text": "public static function register_post_type() {\n\t\t$labels = array(\n\t\t\t'name' => _x( 'Snippets', 'post type general name', self::$text_domain ),\n\t\t\t'singular_name' => _x( 'Snippet', 'post type singular name', self::$text_domain ),\n\t\t\t'add_new' => _x( 'Add New', self::$text_domain ),\n\t\t\t'add_new_item' => __( 'Add New Snippet', self::$text_domain ),\n\t\t\t'edit_item' => __( 'Edit Snippet', self::$text_domain ),\n\t\t\t'new_item' => __( 'New Snippet', self::$text_domain ),\n\t\t\t'all_items' => __( 'All Snippets', self::$text_domain ),\n\t\t\t'view_item' => __( 'View Snippet', self::$text_domain ),\n\t\t\t'search_items' => __( 'Search Snippets', self::$text_domain ),\n\t\t\t'not_found' => __( 'No snippets found', self::$text_domain ),\n\t\t\t'not_found_in_trash' => __( 'No snippets found in Trash', self::$text_domain ), \n\t\t\t'parent_item_colon' => '',\n\t\t\t'menu_name' => __( 'Snippets', self::$text_domain )\n\t\t);\n\n\t\t$args = array(\n\t\t\t'labels' => $labels,\n\t\t\t'public' => false,\n\t\t\t'publicly_queryable' => false,\n\t\t\t'show_ui' => true, \n\t\t\t'show_in_menu' => true, \n\t\t\t'query_var' => false,\n\t\t\t'rewrite' => true,\n\t\t\t'capability_type' => 'post',\n\t\t\t'has_archive' => true, \n\t\t\t'hierarchical' => false,\n\t\t\t'menu_position' => null,\n\t\t\t'capability_type' => self::$capability_type,\n\t\t\t'map_meta_cap' => true,\n\t\t\t'supports' => array( 'title', 'editor', 'author', 'excerpt', 'revisions' )\n\t\t); \n\n\t\tregister_post_type( self::$post_type_name, $args );\n\t}", "title": "" }, { "docid": "de8c5e08f4c924cb55379cac1328ceff", "score": "0.75266135", "text": "public function registerCustomPostTypes(): void\n {\n $postTypeConfigs = $this->config['post-types'];\n\n foreach ($postTypeConfigs as $postTypeConfig) {\n $postType = new PostType($postTypeConfig);\n $postType->register();\n }\n }", "title": "" }, { "docid": "fdfa8a032343b8c0a18d86c7f978701d", "score": "0.7518521", "text": "function register_custom_post_type()\n\t{\n\t\t$a_args = array(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => 'Slideshows',\n\t\t\t\t'singular_name' => 'Slideshow',\n\t\t\t\t'new_item' => 'New Slideshow/Slide',\n\t\t\t\t'edit_item' => 'Edit Slideshow/Slide',\n\t\t\t\t'not_found' => 'No Slideshows',\n\t\t\t\t'add_new_item' => 'Add New Slideshow/Slide',\n\t\t\t\t'parent_item_colon' => 'Slideparent'\n\t\t\t),\n\t\t\t'description' => 'Top level posts are slideshows, children are individual slides of the given slideshow.',\n\t\t\t'public' => true,\n\t\t\t'publicly_queryable' => false,\n\t\t\t'show_in_nav_menus' => false,\n\t\t\t'hierarchical' => true,\n\t\t\t'supports' => array(\n\t\t\t\t'title', 'editor', 'thumbnail', 'page-attributes'\n\t\t\t),\n\t\t\t'menu_position' => 5,\n\t\t);\n\t\n\t\tregister_post_type( $this->plugin_namespace . 'slideshow', $a_args );\n\t}", "title": "" }, { "docid": "5156fa9fa9dd3cca8888e75bc8b7047c", "score": "0.7517513", "text": "public static function register_custom_post_type()\n\t{\n\t register_post_type('content_writer', \n\t\t\tarray(\n\t\t\t\t'label' => 'Content Writer',\n\t\t\t\t'labels' => array(\n\t\t\t\t'add_new' \t\t\t=> 'Add New',\n\t\t\t\t'add_new_item'\t\t=> 'Add New Content Writer',\n\t\t\t\t'edit_item'\t\t\t=> 'Edit Content Writer',\n\t\t\t\t'new_item'\t\t\t=> 'New Content Writer',\n\t\t\t\t'view_item'\t\t\t=> 'View Content Writer',\n\t\t\t\t'search_items'\t\t=> 'Search Content Writers',\n\t\t\t\t'not_found'\t\t\t=> 'No content writers Found',\n\t\t\t\t'not_found_in_trash'=> 'Not Found in Trash',\n\t\t\t\t),\n\t\t\t\t'description' => 'Reusable content writer',\n\t\t\t\t'public' => true,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'menu_position' => 5,\n\t\t\t\t'supports' => array('title', 'custom-fields'),\n\t\t\t\t'has_archive' => true,\n\t\t\t\t'rewrite' => true,\n\t\t\t)\n\t\t);\t\t\n\t}", "title": "" }, { "docid": "e41c92a6dcca4170677960e919143860", "score": "0.7465868", "text": "public function register_post_type() {\n\t\t\t$labels = array(\n\t\t\t\t'name' => _x( 'TP Component', 'Post Type General Name', 'thim-core' ),\n\t\t\t\t'singular_name' => _x( 'TP Component', 'Post Type Singular Name', 'thim-core' ),\n\t\t\t\t'menu_name' => __( 'TP Components', 'thim-core' ),\n\t\t\t\t'name_admin_bar' => __( 'TP Component', 'thim-core' ),\n\t\t\t\t'archives' => __( 'Item Archives', 'thim-core' ),\n\t\t\t\t'parent_item_colon' => __( 'Parent Item:', 'thim-core' ),\n\t\t\t\t'all_items' => __( 'All Items', 'thim-core' ),\n\t\t\t\t'add_new_item' => __( 'Add New Item', 'thim-core' ),\n\t\t\t\t'add_new' => __( 'Add New', 'thim-core' ),\n\t\t\t\t'new_item' => __( 'New Item', 'thim-core' ),\n\t\t\t\t'edit_item' => __( 'Edit Item', 'thim-core' ),\n\t\t\t\t'update_item' => __( 'Update Item', 'thim-core' ),\n\t\t\t\t'view_item' => __( 'View Item', 'thim-core' ),\n\t\t\t\t'search_items' => __( 'Search Item', 'thim-core' ),\n\t\t\t\t'not_found' => __( 'Not found', 'thim-core' ),\n\t\t\t\t'not_found_in_trash' => __( 'Not found in Trash', 'thim-core' ),\n\t\t\t\t'featured_image' => __( 'Featured Image', 'thim-core' ),\n\t\t\t\t'set_featured_image' => __( 'Set featured image', 'thim-core' ),\n\t\t\t\t'remove_featured_image' => __( 'Remove featured image', 'thim-core' ),\n\t\t\t\t'use_featured_image' => __( 'Use as featured image', 'thim-core' ),\n\t\t\t\t'insert_into_item' => __( 'Insert into item', 'thim-core' ),\n\t\t\t\t'uploaded_to_this_item' => __( 'Uploaded to this item', 'thim-core' ),\n\t\t\t\t'items_list' => __( 'Items list', 'thim-core' ),\n\t\t\t\t'items_list_navigation' => __( 'Items list navigation', 'thim-core' ),\n\t\t\t\t'filter_items_list' => __( 'Filter items list', 'thim-core' ),\n\t\t\t);\n\t\t\t$rewrite = array(\n\t\t\t\t'slug' => self::$post_type,\n\t\t\t\t'with_front' => true,\n\t\t\t\t'pages' => false,\n\t\t\t\t'feeds' => false,\n\t\t\t);\n\t\t\t$args = array(\n\t\t\t\t'label' => __( 'Thim Component', 'thim-core' ),\n\t\t\t\t'description' => __( 'Post Type Description', 'thim-core' ),\n\t\t\t\t'labels' => $labels,\n\t\t\t\t'supports' => array( 'title', 'editor' ),\n\t\t\t\t'hierarchical' => true,\n\t\t\t\t'public' => false,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'show_in_menu' => false,\n\t\t\t\t'menu_position' => 20,\n\t\t\t\t'menu_icon' => 'dashicons-layout',\n\t\t\t\t'show_in_admin_bar' => false,\n\t\t\t\t'show_in_nav_menus' => false,\n\t\t\t\t'can_export' => false,\n\t\t\t\t'has_archive' => false,\n\t\t\t\t'exclude_from_search' => true,\n\t\t\t\t'publicly_queryable' => false,\n\t\t\t\t'rewrite' => $rewrite,\n\t\t\t\t'capability_type' => 'page',\n\t\t\t);\n\t\t\tregister_post_type( self::$post_type, $args );\n\t\t}", "title": "" }, { "docid": "b1035a6ebc50f37d9ed99c144a1d0fb5", "score": "0.7461731", "text": "function edible_register_my_post_types() {\n\n register_post_type( EDIBLE_POST_TYPE, array(\n 'labels' => array('name' => 'Plots'),\n 'taxonomies' => array( 'category' ),\n 'public' => true,\n 'supports' => array('title','editor','custom-fields','thumbnail')\n )\n );\n}", "title": "" }, { "docid": "123d42651b7911e54750992daa2e4b8d", "score": "0.7458096", "text": "public function register_post_types()\n {\n register_post_type('events',\n array(\n 'labels' => array(\n 'name' => __('Events'),\n 'singular_name' => __('Event')\n ),\n 'public' => true,\n 'has_archive' => true,\n 'rewrite' => array('slug' => 'events'),\n )\n );\n register_post_type('team',\n array(\n 'labels' => array(\n 'name' => __('Команда'),\n 'singular_name' => __('Сотрудник')\n ),\n 'menu_icon' => 'dashicons-groups',\n 'public' => true,\n 'exclude_from_search' => true,\n 'has_archive' => true,\n 'rewrite' => array('slug' => 'events'),\n )\n );\n }", "title": "" }, { "docid": "6f4c2aa5021860364e025213a8f60038", "score": "0.74168277", "text": "function ishabnam_register_post_type(){\t\n\t\t\n\t\t$singular = 'Portfolio';\n\t\t\n\t\t$labels = array(\n\t\t\t'name'\t\t\t=> $singular,\n\t\t\t'add_name'\t\t=> 'Add New',\n\t\t\t'add_new_item'\t=> 'Add new experience to your ' . $singular,\n\t\t\t'edit'\t\t\t=> 'Edit',\n\t\t\t'edit_item'\t\t=> 'Edit ' . $singular,\n\t\t\t'new_item'\t\t=> 'New ' . $singular,\n\t\t\t'view'\t\t\t=> 'View ' . $singular,\n\t\t\t'view_item'\t\t=> 'View ' . $singular,\n\t\t\t'search_term'\t=> 'Search ' . $singular,\n\t\t\t'parent'\t\t=> 'Parent ' . $singular,\n\t\t\t'not-found'\t\t=> 'No Matching Experience Found'\n\t\n\t\t);\n\t\n\t\t$args = array(\n\t\t\t'labels'\t\t\t\t=> $labels,\n\t\t\t'public'\t\t\t\t=> true,\n\t\t\t'publicly_queryable'\t=> true,\n\t\t\t'exclude_from_search' \t=> false,\n\t\t\t'show_in_nav_menus'\t\t=> true,\n\t\t\t'show_ui'\t\t\t\t=> true,\n\t\t\t'show_in_menu'\t\t\t=> true,\n\t\t\t'show_in_admin_bar'\t\t=> true,\n\t\t\t'menu_position'\t\t\t=> 6,\n\t\t\t'can_export'\t\t\t=> true,\n\t\t\t'capability_type'\t\t=> 'post',\n\t\t\t'has_archive'\t\t\t=> true,\n\t\t\t'hierarchical'\t\t\t=> false,\n\t\t\t'supports' => array(\n\t\t\t\t'title',\n\t\t\t\t'editor',\n\t\t\t\t'author',\n\t\t\t\t'thumbnail',\n\t\t\t)\n\t\t); \n\n\t\tregister_post_type( 'portfolio', $args);\n\t}", "title": "" }, { "docid": "16c25db85d3b1a13fa1294a23e0bd49d", "score": "0.7412206", "text": "function register_custom_post_type() {\n\t\t\tregister_post_type( 'contact', array( 'labels' => array(\n\t\t\t\t\t'name'=>_x( 'Contacts', 'post type general name', 'tuts-crm' ),\n\t\t\t\t\t'singular_name'=>_x( 'Contact', 'post type singular name', 'tuts-crm' ),\n\t\t\t\t\t'menu_name'=>_x( 'Contacts', 'admin menu', 'tuts-crm' ),\n\t\t\t\t\t'name_admin_bar'=>_x( 'Contact', 'add new on admin bar', 'tuts-crm' ),\n\t\t\t\t\t'add_new'=>_x( 'Add New', 'contact', 'tuts-crm' ),\n\t\t\t\t\t'add_new_item'=>__( 'Add New Contact', 'tuts-crm' ),\n\t\t\t\t\t'new_item'=>__( 'New Contact', 'tuts-crm' ),\n\t\t\t\t\t'edit_item'=>__( 'Edit Contact', 'tuts-crm' ),\n\t\t\t\t\t'view_item'=>__( 'View Contact', 'tuts-crm' ),\n\t\t\t\t\t'all_items'=>__( 'All Contacts', 'tuts-crm' ),\n\t\t\t\t\t'search_items'=>__( 'Search Contacts', 'tuts-crm' ),\n\t\t\t\t\t'parent_item_colon'=>__( 'Parent Contacts', 'tuts-crm' ),\n\t\t\t\t\t'not_found'=>__( 'No contacts found', 'tuts-crm' ),\n\t\t\t\t\t'not_found_in_trash'=>__( 'No contac found in trash', 'tuts-crm' ),\n\t\t\t),\n\t\t\t\n\t\t\t// Frontend\n\t\t\t'has_archive'=>false,\n\t\t\t'public'=>false,\n\t\t\t'publicly_queryable'=>false,\n\n\t\t\t// Admin\n\t\t\t'capability_type'=>'post',\n\t\t\t'menu_icon'=>'dashicons-businessman',\n\t\t\t'menu_position'=>10,\n\t\t\t'query_var'=>true,\n\t\t\t'show_in_menu'=>true,\n\t\t\t'show_ui'=>true,\n\t\t\t'supports'=>array(\n\t\t\t\t'title',\n\t\t\t\t'author',\n\t\t\t\t'comments',\n\t\t\t),\n\t\t\t) );\n\t\t}", "title": "" }, { "docid": "031725d98e225a209aa060279167f8ce", "score": "0.7408778", "text": "function clir_register_post_types()\n{\n $defaults = array(\n 'public' => true,\n 'supports' => array( 'title', 'editor', 'thumbnail', 'page-attributes', 'excerpt', 'custom-background'),\n 'menu_position' => 20,\n 'hierarchical' => false,\n 'has_archive' => true,\n 'show_in_nav_menus' => true\n );\n\n $post_types = array(\n 'people' => array(\n 'labels' => array(\n 'name' => __( 'People' ),\n 'singular_name' => __( 'Person' )\n ),\n 'rewrite' => array('slug' => 'people')\n );\n\n foreach($post_types as $name => $args){\n $args = array_merge($args, $defaults);\n register_post_type($name, $args);\n }\n }", "title": "" }, { "docid": "680feea4bb6545a1fa04c13b2a36baba", "score": "0.7406292", "text": "function create_posttype() {\n\tregister_post_type( 'verhalen',\n\t// CPT Options\n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => __( 'Verhalen' ),\n\t\t\t\t'singular_name' => __( 'Verhaal' )\n\t\t\t),\n\t\t\t'public' => true,\n\t\t\t'has_archive' => true,\n\t\t\t'rewrite' => array('slug' => 'verhalen'),\n\t\t\t'menu_icon' => 'dashicons-format-status',\n\t\t\t'supports' => array( 'editor','title'),\n \t\t'taxonomies' => array('post_tag'),\n\t\t)\n\t);\n\tregister_post_type( 'wens_suggesties',\n\t// CPT Options\n\t\tarray(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => __( 'Wens suggesties' ),\n\t\t\t\t'singular_name' => __( 'Wens suggestie' )\n\t\t\t),\n\t\t\t'public' => true,\n\t\t\t'has_archive' => true,\n\t\t\t'rewrite' => array('slug' => 'wens-suggesties'),\n\t\t\t'menu_icon' => 'dashicons-format-status',\n\t\t\t'supports' => array( 'editor','title'),\n\t\t\t'taxonomies' => array('post_tag'),\n\t\t)\n\t);\n}", "title": "" }, { "docid": "b290732ab58b8c4960c5deef22d33a22", "score": "0.73984003", "text": "private static function setup_post_types() {\n $plugin_post_types = new JPID_Post_Types();\n\n $plugin_post_types->register_taxonomies();\n $plugin_post_types->register_post_types();\n $plugin_post_types->register_post_statuses();\n }", "title": "" }, { "docid": "02221e7bd55c99806a61bb7164a6bb24", "score": "0.7393104", "text": "public function create_post_type()\r\n \t{\r\n \t\tregister_post_type(self::POST_TYPE,\r\n \t\t\tarray(\r\n \t\t\t\t'labels' => array(\r\n \t\t\t\t\t'name' => _x( 'Patients', 'post type general name', 'dentix' ),\r\n\t\t\t\t\t\t'singular_name' => _x( 'Patient', 'post type singular name', 'dentix' ),\r\n\t\t\t\t\t\t'menu_name' => _x( 'Patients', 'admin menu', 'dentix' ),\r\n\t\t\t\t\t\t'name_admin_bar' => _x( 'Patient', 'add new on admin bar', 'dentix' ),\r\n\t\t\t\t\t\t'add_new' => _x( 'Add New', 'dentix', 'dentix' ),\r\n\t\t\t\t\t\t'add_new_item' => __( 'Add New Patient', 'dentix' ),\r\n\t\t\t\t\t\t'new_item' => __( 'New Patient', 'dentix' ),\r\n\t\t\t\t\t\t'edit_item' => __( 'Edit Patient', 'dentix' ),\r\n\t\t\t\t\t\t'view_item' => __( 'View Patient', 'dentix' ),\r\n\t\t\t\t\t\t'all_items' => __( 'All Patients', 'dentix' ),\r\n\t\t\t\t\t\t'search_items' => __( 'Search Patients', 'dentix' ),\r\n\t\t\t\t\t\t'parent_item_colon' => __( 'Parent Patients:', 'dentix' ),\r\n\t\t\t\t\t\t'not_found' => __( 'No patients found.', 'dentix' ),\r\n\t\t\t\t\t\t'not_found_in_trash' => __( 'No patients found in Trash.', 'dentix' )\r\n \t\t\t\t),\r\n\t\t \t'description' => __( 'Description.', 'dentix' ),\r\n\t\t\t\t\t'public' => true,\r\n\t\t\t\t\t'publicly_queryable' => true,\r\n\t\t\t\t\t'show_ui' => true,\r\n\t\t\t\t\t'show_in_menu' => true,\r\n\t\t\t\t\t'query_var' => true,\r\n\t\t\t\t\t'rewrite' => array( 'slug' => 'dentix' ),\r\n \t\t\t'capability_type' => array ('patient', 'patients'), \r\n \t\t\t'map_meta_cap' \t => true,\r\n\t\t\t\t\t'has_archive' => true,\r\n\t\t\t\t\t'hierarchical' => false,\r\n\t\t\t\t\t'menu_position' => 5,\r\n\t\t\t\t\t'menu_icon' \t => 'dashicons-clipboard',\r\n \t\t\t\t'supports' => array(''),\r\n \t\t\t)\r\n \t\t);\r\n \t}", "title": "" }, { "docid": "ee1242cb6c8597167060a0a5dc476e2a", "score": "0.737562", "text": "function action_register_cpt() {\n\n\t$args = array(\n\t\t'public' => true,\n\t\t'label' => 'Staff',\n\t);\n\tregister_post_type( 'staff', $args );\n}", "title": "" }, { "docid": "23a26dd30e361a9d0e6b1ae22b9c0af9", "score": "0.73688275", "text": "function story_post_type(){\r\n\r\n $args = array(\r\n 'labels'=> array(\r\n 'name'=>'Story',\r\n ),\r\n 'public' => true,\r\n 'has_archive'=>true,\r\n 'menu_icon'=> 'dashicons-book',\r\n 'supports' => array('title', 'editor', 'thumbnail'),\r\n \r\n );\r\n register_post_type('story', $args);\r\n\r\n}", "title": "" }, { "docid": "1ac48df176a0cbde24624fb5a3bfbc55", "score": "0.73684275", "text": "public function register_post_type($singular,$plural,$slug,$translate=false,$position=false,$taxonomy=['category'],$image='antonella-icon.png')\n {\n $translate=$translate?$translate:'text_domain';\n $position=$position?$position:5;\n $labels =[\n 'name' => _x( $plural, 'Post Type General Name', $translate ),\n 'singular_name' => _x( $singular, 'Post Type Singular Name', $translate ),\n 'menu_name' => __( $singular, $translate ),\n 'all_items' => __( $plural, $translate ),\n 'view_item' => __( 'Ver '.$singular, $translate ),\n 'add_new_item' => __( 'Añadir '.$singular, $translate ),\n 'add_new' => __( 'Añadir '.$singular, $translate ),\n 'edit_item' => __( 'Editar '.$singular, $translate ),\n 'update_item' => __( 'Actualizar', $translate ),\n 'search_items' => __( 'Buscar '.$singular, $translate ),\n 'not_found' => __( $singular.' no encontrada', $translate ),\n 'not_found_in_trash' => __( $singular.' no encontrada en Papelera', $translate ),\n ];\n\n $rewrite = [\n 'slug' => $slug,\n 'with_front' => true,\n 'pages' => true,\n 'feeds' => false,\n ];\n\n $args = [\n 'label' => __( $singular, $translate ),\n 'description' => __( 'Información de las '.$singular, $translate ),\n 'labels' => $labels,\n 'supports' => array( 'title', 'editor', 'comments', 'thumbnail'),\n 'taxonomies' => $taxonomy,\n 'hierarchical' => true,\n 'support' => array('title','custom-fields'),\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'show_in_nav_menus' => true,\n 'show_in_admin_bar' => true,\n 'menu_position' => $position,\n 'menu_icon' => plugins_url('assets/img/'.$image, dirname(__FILE__)),\n 'can_export' => true,\n 'has_archive' => $slug,\n 'exclude_from_search' => false,\n 'query_var' => $slug,\n 'rewrite' => $rewrite,\n ];\n register_post_type($slug, $args);\n }", "title": "" }, { "docid": "dc48554e407213a375e8aba3e35f21c9", "score": "0.73621786", "text": "function post_type() {\n\t$args = array(\n\t\t'labels' => array(\n\t\t\t'name' => 'Bar',\n\t\t\t'singular_name' => 'Bar',\n\t\t\t'add_new' => 'Add New',\n\t\t\t'add_new_item' => 'Add New Bar',\n\t\t\t'edit_item' => 'Edit Bar',\n\t\t\t'new_item' => 'New Bar',\n\t\t\t'view_item' => 'View Bar',\n\t\t\t'search_items' => 'Search Bars',\n\t\t\t'not_found' => 'No bars found',\n\t\t\t'not_found_in_trash' => 'No bars found in Trash',\n\t\t\t'parent_item_colon' => 'Parent Bar:',\n\t\t\t'menu_name' => 'Bars',\n\t\t),\n\t\t'hierarchical' => false,\n\t\t'supports' => array( 'title', 'editor' ),\n\t\t'public' => false,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'menu_icon' => 'dashicons-admin-post',\n\t\t'show_in_nav_menus' => false,\n\t\t'publicly_queryable' => true,\n\t\t'exclude_from_search' => true,\n\t\t'has_archive' => false,\n\t\t'query_var' => true,\n\t\t'can_export' => true,\n\t\t'rewrite' => false,\n\t\t'capability_type' => 'post',\n\t);\n\n\tregister_post_type( 'foo_bar', $args );\n}", "title": "" }, { "docid": "32434434b72b84bd20c54a4f13156c89", "score": "0.73589545", "text": "public function register_post_types()\n {\n require_once(MM_INC_PATH . 'cpt-message.php');\n require_once(MM_INC_PATH . 'tax-speaker.php');\n require_once(MM_INC_PATH . 'tax-series.php');\n require_once(MM_INC_PATH . 'tax-topics.php');\n require_once(MM_INC_PATH . 'tax-venues.php');\n require_once(MM_INC_PATH . 'tax-books.php');\n }", "title": "" }, { "docid": "eb352c137cc1895e62b3f2dac8b432ce", "score": "0.7349652", "text": "function nanianime_post_type() {\n $args = array(\n 'public' => true,\n\t\t'has_archive' => true,\n 'labels' => array(\n 'name' => __('Anime'),\n 'singular_name'=> __('Add Anime'),\n 'add_new_item' => __('Add New Anime'),\n 'all_items' => __('All Animes'),\n 'edit_item' => __('Edit Anime'),\n ),\n 'menu_icon' => 'dashicons-playlist-video',\n 'supports' => array( 'title', 'thumbnail','comments', 'revisions'),\n 'taxonomies' => array('genres','status','category'),\n );\n register_post_type('anime', $args );\n}", "title": "" }, { "docid": "da68974d7acc43f6c8427cdefb4e20da", "score": "0.7345803", "text": "function register_webinar_posttype() {\n $labels = array(\n 'name' => _x( 'Webinars', 'post type general name' ),\n 'singular_name' => _x( 'Webinar', 'post type singular name' ),\n 'add_new' => __( 'Add New' ),\n 'add_new_item' => __( 'Add new Webinar' ),\n 'edit_item' => __( 'Edit Webinar' ),\n 'new_item' => __( 'New Webinar' ),\n 'view_item' => __( 'View Webinar' ),\n 'search_items' => __( 'Search Webinars' ),\n 'not_found' => __( 'No Webinars found' ),\n 'not_found_in_trash'=> __( 'No Webinars found' ),\n 'parent_item_colon' => __( 'Webinar' ),\n 'menu_name' => __( 'Webinars' )\n );\n\n $taxonomies = array('post_tag', 'policytopics', 'educationtopics', 'qualitytopics', 'institutetopics','webinartopics');\n\n $supports = array('title','editor','thumbnail','excerpt','custom-fields','comments','revisions');\n\n $post_type_args = array(\n 'labels' => $labels,\n 'singular_label' => __('Webinar'),\n 'public' => true,\n 'show_ui' => true,\n 'publicly_queryable'=> true,\n 'query_var' => true,\n 'exclude_from_search'=> false,\n 'show_in_nav_menus' => false,\n 'capability_type' => 'post',\n 'has_archive' => true,\n 'hierarchical' => true,\n 'rewrite' => array('slug' => 'webinar', 'with_front' => false ),\n 'supports' => $supports,\n 'menu_position' => 5,\n 'menu_icon' => get_bloginfo('template_directory').'/images/education-menu.png',\n 'taxonomies' => $taxonomies\n );\n register_post_type('webinar',$post_type_args);\n }", "title": "" }, { "docid": "89ff20328ca46dfaf0087abfbc5b7271", "score": "0.73422766", "text": "function register_my_post_type() {\n\t$artwork = register_extended_post_type( 'artwork', array(\n\t\t'menu_icon' \t=> 'dashicons-art',\n\t\t'show_in_rest'\t=> true,\n\t\t'supports' \t\t=> array( 'title', 'editor', 'excerpt', 'thumbnail' ),\n\t\t'admin_cols'\t=> array(\n\t\t\t\t\t\t\t\t\t'featured_image' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => 'Artwork Image',\n\t\t\t\t\t\t\t\t\t\t'featured_image' => 'thumbnail'\n\t\t\t\t\t\t\t\t\t),\t\t\t\n\t\t\t\t\t\t\t\t\t// A taxonomy terms column:\n\t\t\t\t\t\t\t\t\t'genre' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => 'Artwork Projects',\n\t\t\t\t\t\t\t\t\t\t'taxonomy' => 'artwork_project',\n\t\t\t\t\t\t\t\t\t\t'link' => 'edit',\n\t\t\t\t\t\t\t\t\t)\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t),\n\t\t'names'\t\t\t=> array(\n\t\t\t\t\t\t\t\t//Override the base names used for labels:\n\t\t\t\t\t\t\t\t'singular' => 'Artwork',\n\t\t\t\t\t\t\t\t'plural' => 'Artworks',\n\t\t\t\t\t\t\t\t'slug' => 'art'\n\t\t\t\t\t\t\t\t)\n\t) );\n\t\n\t// $artwork->add_taxonomy( 'artwork_project', array(\n\t// \t'show_ui'\t=> true,\n\t// ) );\t\n}", "title": "" }, { "docid": "54505c7d72f09bdb6fa075422569c050", "score": "0.7338711", "text": "function register_user_post_types(){\n \n $settings = apply_filters('acfe/post_type/prepare_register', acfe_get_settings($this->settings));\n \n if(empty($settings))\n return;\n \n foreach($settings as $name => $args){\n \n // Bail early\n if(empty($name) || post_type_exists($name))\n continue;\n \n // Filters\n $args = apply_filters(\"acfe/post_type/register\", $args, $name);\n $args = apply_filters(\"acfe/post_type/register/name={$name}\", $args, $name);\n \n if($args === false)\n continue;\n \n // Register\n register_post_type($name, $args);\n \n }\n \n }", "title": "" }, { "docid": "eb8ca918fd9c0c4606b6de888331dab4", "score": "0.73336387", "text": "public function register_custom_post_types() {\n require(BOGOBLAST_DIR.'bogoblast-custom-post-types.php');\n }", "title": "" }, { "docid": "b36ad5200621b34fdd44530331aefbc7", "score": "0.7333309", "text": "public function createCastAndCrewPostType(): void\n {\n register_post_type(\n CastAndCrew::POST_TYPE,\n CastAndCrew::getConfig()\n );\n flush_rewrite_rules();\n }", "title": "" }, { "docid": "0c6336fb518a36b91ea3d197ffb3e0be", "score": "0.7318379", "text": "public function register() {\n\t\tregister_post_type( $this->post_type, $this->args );\n\t\tregister_taxonomy( $this->post_taxonomy, $this->post_type, $this->tax_args );\n\t}", "title": "" }, { "docid": "be16efda018b0ec87c4ea94ef9f9b2c4", "score": "0.7308046", "text": "public function register_post_type()\n\t{\n\n\t\tregister_post_type( 'sponsor', array(\n\t\t\t'labels' => array(\n\t\t\t\t'name' => _x( 'Sponsors', 'post type general name', 'custom-post-type-sponsors' ),\n\t\t\t\t'singular_name' => _x( 'Sponsor', 'post type singular name', 'custom-post-type-sponsors' ),\n\t\t\t\t'add_new' => _x( 'Add New', 'Sponsor', 'custom-post-type-sponsors' ),\n\t\t\t\t'add_new_item' => __( 'Add New Sponsor', 'custom-post-type-sponsors' ),\n\t\t\t\t'edit_item' => __( 'Edit Sponsor', 'custom-post-type-sponsors' ),\n\t\t\t\t'new_item' => __( 'New Sponsor', 'custom-post-type-sponsors' ),\n\t\t\t\t'view_item' => __( 'View Sponsor', 'custom-post-type-sponsors' ),\n\t\t\t\t'view_items' => __( 'View Sponsors', 'custom-post-type-sponsors' ),\n\t\t\t\t'search_items' => __( 'Search Sponsors', 'custom-post-type-sponsors' ),\n\t\t\t\t'not_found' => __( 'No Sponsors found', 'custom-post-type-sponsors' ),\n\t\t\t\t'not_found_in_trash' => __( 'No Sponsors found in Trash', 'custom-post-type-sponsors' ),\n\t\t\t\t'parent_item_colon' => __( 'Parent Sponsor:', 'custom-post-type-sponsors' ),\n\t\t\t\t'all_items' => __( 'All Sponsors', 'custom-post-type-sponsors' ),\n\t\t\t\t'archives' => __( 'Sponsor Archives', 'custom-post-type-sponsors' ),\n\t\t\t\t'attributes' => __( 'Sponsor Attributes', 'custom-post-type-sponsors' ),\n\t\t\t\t'insert_into_item' => __( 'Insert into sponsor', 'custom-post-type-sponsors' ),\n\t\t\t\t'uploaded_to_this_item' => __( 'Uploaded to this sponsor', 'custom-post-type-sponsors' ),\n\t\t\t\t'featured_image' => __( 'Featured Image', 'custom-post-type-sponsors' ),\n\t\t\t\t'set_featured_image' => __( 'Set featured image', 'custom-post-type-sponsors' ),\n\t\t\t\t'remove_featured_image' => __( 'Remove featured image', 'custom-post-type-sponsors' ),\n\t\t\t\t'use_featured_image' => __( 'Use as featured image', 'custom-post-type-sponsors' ),\n\t\t\t\t'filter_items_list' => __( 'Filter sponsors list', 'custom-post-type-sponsors' ),\n\t\t\t\t'items_list_navigation' => __( 'Sponsors list navigation', 'custom-post-type-sponsors' ),\n\t\t\t\t'items_list' => __( 'Sponsors list', 'custom-post-type-sponsors' ),\n\t\t\t),\n\t\t\t'public' => TRUE,\n\t\t\t'publicly_queryable' => TRUE,\n\t\t\t'show_ui' => TRUE,\n\t\t\t'show_in_menu' => TRUE,\n\t\t\t'query_var' => TRUE,\n\t\t\t'rewrite' => array(\n\t\t\t\t'slug' => _x( 'sponsors', 'Sponsors slug', 'custom-post-type-sponsors' ),\n\t\t\t\t'with_front' => FALSE,\n\t\t\t),\n\t\t\t'capability_type' => 'post',\n\t\t\t'has_archive' => FALSE,\n\t\t\t'hierarchical' => FALSE,\n\t\t\t'menu_position' => NULL,\n\t\t\t'menu_icon' => 'dashicons-admin-links',\n\t\t\t'supports' => array( 'title', 'editor', 'thumbnail', 'page-attributes' )\n\t\t) );\n\n\t}", "title": "" }, { "docid": "7cdd2f51ee59e390260f39438d654abd", "score": "0.73078203", "text": "function base_set_custom_post_types()\n{\n\t$base_post_types = array();\n\n\t/*\n\t *\n\t * Left empty : populate after examples library\n\t *\n\t */\n\n\tif (!empty($base_post_types)) {\n\t\tforeach ($base_post_types as $base_post_type) {\n\t\t\t// Register post type\n\t\t\tif (!empty($base_post_type['post_type_name']) && !empty($base_post_type['post_type_args'])) {\n\t\t\t\tregister_post_type($base_post_type['post_type_name'], $base_post_type['post_type_args']);\n\t\t\t\t// Register taxonomy for post type\n\t\t\t\tif (!empty($base_post_type['taxonomy_name']) && !empty($base_post_type['taxonomy_args'])) {\n\t\t\t\t\tregister_taxonomy($base_post_type['taxonomy_name'], $base_post_type['post_type_name'], $base_post_type['taxonomy_args']);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "title": "" }, { "docid": "9932adedfe240e20f40dd419c6dfb54c", "score": "0.7296264", "text": "public static function register_post_type_bitcoincore()\n {\n register_post_type('bitcoincore', array(\n 'labels' => array(\n 'name' => 'Страницы Bitcoincore', // Основное название типа записи\n 'singular_name' => 'Страница', // отдельное название записи типа Book\n 'add_new' => 'Добавить новую',\n 'add_new_item' => 'Добавить новую страницу',\n 'edit_item' => 'Редактировать страницу',\n 'new_item' => 'Новая страница',\n 'view_item' => 'Посмотреть страницу',\n 'search_items' => 'Найти страницу',\n 'not_found' => 'Страниц не найдено',\n 'not_found_in_trash' => 'В корзине страниц не найдено',\n 'parent_item_colon' => '',\n 'menu_name' => 'Страницы Bitcoincore'\n\n ),\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'query_var' => true,\n 'taxonomies' => array('blockchain', 'version'),\n 'rewrite' => array('slug' => '/', 'with_front' => false),\n 'capability_type' => 'post',\n 'has_archive' => false,\n 'hierarchical' => true,\n 'menu_position' => 3,\n 'menu_icon' => 'dashicons-admin-page',\n 'supports' => array('title', 'editor', 'post-formats', 'page-attributes')\n ));\n\n\n }", "title": "" }, { "docid": "9999d343f55bc26a68e400e9f897929f", "score": "0.7296068", "text": "static function init_action(){\n //addition of brands post type\n register_post_type(self::$post_name, [\n 'label' => 'Brands',\n 'description' => __('Post type used to relate brands in projects.', 'aecom-indigo'),\n 'public' => true,\n 'menu_position' => 5,\n 'supports'=> ['title', 'editor', 'thumbnail'],\n ]);\n }", "title": "" }, { "docid": "f6ac4148cda243c82ef238d7cd891193", "score": "0.7295194", "text": "function support_register_post_type() {\n\n\t$slug = defined( 'SUPPORT_SLUG' ) ? sanitize_title( SUPPORT_SLUG ) : 'ticket';\n\n\n\t// Supported components\n\t$supports = array( 'title' );\n\n\n\t// Template components for Gutenberg\n\t// $gutenburg_new_template = array(\n\t// \tarray(\n\t// \t\t'core/paragraph',\n\t// \t\tarray(\n\t// \t\t\t'placeholder' => _x('Enter the contents for your new ticket here', 'placeholder for main paragraph when adding a new ticket', 'support' )\n\t// \t\t)\n\t// \t),\n\t// );\n\n\n\t// Post type labels\n\t$labels = array(\n\t\t'name' => _x( 'Tickets', 'post type general name', 'support' ),\n\t\t'singular_name' => _x( 'Ticket', 'post type singular name', 'support' ),\n\t\t'menu_name' => _x( 'Tickets', 'admin menu', 'support' ),\n\t\t'name_admin_bar' => _x( 'Ticket', 'add new on admin bar', 'support' ),\n\t\t'add_new' => _x( 'Add New', 'ticket', 'support' ),\n\t\t'add_new_item' => __( 'Add New Ticket', 'support' ),\n\t\t'new_item' => __( 'New Ticket', 'support' ),\n\t\t'edit_item' => __( 'Edit Ticket', 'support' ),\n\t\t'view_item' => __( 'View Ticket', 'support' ),\n\t\t'all_items' => __( 'All Tickets', 'support' ),\n\t\t'search_items' => __( 'Search Tickets', 'support' ),\n\t\t'parent_item_colon' => __( 'Parent Ticket:', 'support' ),\n\t\t'not_found' => __( 'No tickets found.', 'support' ),\n\t\t'not_found_in_trash' => __( 'No tickets found in Trash.', 'support' ),\n\t);\n\tapply_filters( 'support_ticket_type_labels', $labels );\n\n\n\t// Post type rewrite\n\t$rewrite = array(\n\t\t'slug' \t\t\t=> apply_filters( 'support_rewrite_slug', $slug ),\n\t\t'with_front' \t=> false\n\t);\n\n\n\t// Post type capabilities\n\t$capabilities = array(\n\t\t'read'\t\t\t\t=> 'view_ticket',\n\t\t'read_post'\t\t\t=> 'view_ticket',\n\t\t'read_private_posts' \t\t=> 'view_private_ticket',\n\t\t'edit_post'\t\t\t=> 'edit_ticket',\n\t\t'edit_posts'\t\t\t=> 'edit_ticket',\n\t\t'edit_others_posts' \t\t=> 'edit_other_ticket',\n\t\t'edit_private_posts' \t\t=> 'edit_private_ticket',\n\t\t'edit_published_posts' \t\t=> 'edit_ticket',\n\t\t'publish_posts'\t\t\t=> 'create_ticket',\n\t\t'delete_post'\t\t\t=> 'delete_ticket',\n\t\t'delete_posts'\t\t\t=> 'delete_ticket',\n\t\t'delete_private_posts' \t \t=> 'delete_private_ticket',\n\t\t'delete_published_posts'\t=> 'delete_ticket',\n\t\t'delete_others_posts' \t \t=> 'delete_other_ticket',\n\t);\n\tapply_filters( 'support_ticket_type_capabilities', $capabilities );\n\n\n\t// Post type arguments\n\t$args = array(\n\t\t'labels' => $labels,\n\t\t'public' => true,\n\t\t'exclude_from_search' => true,\n\t\t'publicly_queryable' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => $rewrite,\n\t\t// 'capability_type' => 'view_ticket',\n\t\t// 'capabilities' => $capabilities,\n\t\t'has_archive' => true,\n\t\t'hierarchical' => false,\n\t\t'menu_position' => null,\n\t\t'menu_icon' => 'dashicons-forms',\n\t\t'supports' => $supports,\n\t\t// 'template' \t\t\t => $gutenburg_new_template\n\t);\n\tapply_filters( 'support_ticket_type_args', $args );\n\n\n\tregister_post_type( 'ticket', $args );\n}", "title": "" }, { "docid": "e100abb877a57d2b6a6d961a2f618957", "score": "0.7287595", "text": "function create_posttype() {\n \n register_post_type( 'beer',\n // CPT Options\n array(\n 'labels' => array(\n 'name' => __( 'Beer' ),\n 'singular_name' => __( 'Beer' )\n ),\n 'public' \t\t=> true,\n 'has_archive' \t=> true,\n 'rewrite' \t\t=> array('slug' => 'beer'),\n\t\t\t'show_in_rest' \t=> true,\n\t\t\t'menu_icon'\t\t=> 'dashicons-beer',\n \n )\n );\n \n register_post_type( 'crew',\n // CPT Options\n array(\n 'labels' => array(\n 'name' => __( 'Crew' ),\n 'singular_name' => __( 'Crew' )\n ),\n 'public' \t\t=> true,\n 'has_archive' \t=> true,\n 'rewrite' \t\t=> array('slug' => 'crew'),\n\t\t\t'show_in_rest' \t=> true,\n\t\t\t'menu_icon'\t\t=> 'dashicons-groups',\n \n )\n );\n}", "title": "" }, { "docid": "865dd480429798dedebffad24c5c6b15", "score": "0.7286976", "text": "public static function createPostType() {\n\n $labels = array(\n 'name' => 'Citations',\n 'singular_name' => 'Citation',\n 'add_new' => 'Add New',\n 'add_new_item' => 'Add New Citation',\n 'edit_item' => 'Edit Citation',\n 'new_item' => 'New Citation',\n 'all_items' => 'All Citations',\n 'view_item' => 'View Citations',\n 'search_items' => 'Search Citations',\n 'not_found' => 'No citations found',\n 'not_found_in_trash' => 'No citations found in Trash',\n 'parent_item_colon' => '',\n 'menu_name' => 'Citations'\n );\n\n $args = array(\n 'labels' => $labels,\n 'public' => false,\n 'publicly_queryable' => false,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_icon' => plugin_dir_url( self::$File ) . '/img/reference.png',\n 'query_var' => true,\n 'capability_type' => 'post',\n 'hierarchical' => false,\n 'menu_position' => 8,\n 'register_meta_box_cb' => array( __CLASS__, 'addMetaBoxes' ),\n 'supports' => array( 'title', 'thumbnail', 'excerpt', 'sticky' ),\n 'show_in_rest' => true,\n 'rest_base' => 'citations'\n );\n\n register_post_type( self::$postTypeName, $args );\n\n }", "title": "" }, { "docid": "a3e266fe3cb6cce82d74f7bf2f3b098d", "score": "0.7278901", "text": "function statyi_post_type() {\n $labels = array(\n 'name' => _x( 'Services', 'Post Type General Name', 'text_domain' ),\n 'singular_name' => _x( 'Services', 'Post Type Singular Name', 'text_domain' ),\n 'menu_name' => __( 'Services', 'text_domain' ),\n 'all_items' => __( 'Services', 'text_domain' ),\n 'add_new_item' => __( 'Add Services', 'text_domain' ),\n 'add_new' => __( 'Add Services', 'text_domain' ),\n );\n $args = array(\n 'label' => __( 'Бренды', 'text_domain' ),\n 'labels' => $labels,\n 'supports' => array( 'title', 'editor', 'thumbnail'),// 'title','editor','author','thumbnail','excerpt','trackbacks','custom-fields','comments','revisions','page-attributes','post-formats'\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 4,\n 'menu_icon' => 'dashicons-images-alt2',\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'capability_type' => 'page',\n );\n register_post_type( 'statyi', $args );\n }", "title": "" }, { "docid": "7de54d4b868699a7815350745e3d795d", "score": "0.72780544", "text": "public function _register_post_type(){\n\n add_action('init', function(){\n\n //Define labels\n $labels = array(\n 'name' => 'Emails',\n 'singular_name' => 'Email',\n 'menu_name' => 'Emails',\n 'name_admin_bar' => 'Email',\n 'add_new' => 'Add New',\n 'add_new_item' => 'Add New Email',\n 'new_item' => 'New Email',\n 'edit_item' => 'Edit Email',\n 'view_item' => 'View Email',\n 'all_items' => 'All Emails',\n 'search_items' => 'Search Emails',\n 'parent_item_colon' => 'Parent Emails:',\n 'not_found' => 'No emails found.',\n 'not_found_in_trash' => 'No emails found in Trash.',\n 'featured_image' => 'Email Cover Image',\n 'set_featured_image' => 'Set cover image',\n 'remove_featured_image' => 'Remove cover image',\n 'use_featured_image' => 'Use as cover image',\n 'archives' => 'Email archives',\n 'insert_into_item' => 'Insert into email',\n 'uploaded_to_this_item' => 'Uploaded to this email',\n 'filter_items_list' => 'Filter emails list',\n 'items_list_navigation' => 'Emails list navigation',\n 'items_list' => 'Emails list',\n );\n \n //Define the options\n $args = array(\n 'labels' => $labels,\n 'description' => 'Post type for email logs.',\n 'public' => true,\n 'hierarchical' => false,\n 'publicly_queryable' => false,\n 'show_ui' => false,\n 'show_in_menu' => false,\n 'query_var' => true,\n 'rewrite' => false,\n 'exclude_from_search' => true,\n 'supports' => array( 'title', 'editor', 'custom-fields'),\n );\n\n //Register the post type\n register_post_type( 'email', $args );\n\n });\n\n }", "title": "" }, { "docid": "43b1c7cbf8324028408bf88e8d09f5aa", "score": "0.7267978", "text": "private function makeVehiclePostType(){\r\n $labels = array(\r\n 'name' => __( 'Vehicle' ),\r\n 'singular_name' => __( 'Vehicle' ),\r\n 'add_new' => __( 'Add New Vehicle' ),\r\n 'add_new_item' => __( 'Add New Vehicle' ),\r\n 'edit_item' => __( 'Edit Vehicle' ),\r\n 'new_item' => __( 'Add New Vehicle' ),\r\n 'view_item' => __( 'View Vehicle' ),\r\n 'search_items' => __( 'Search Vehicle' ),\r\n 'not_found' => __( 'No Vehicle found' ),\r\n 'not_found_in_trash' => __( 'No Vehicle found in trash' )\r\n );\r\n \r\n $supports = array(\r\n 'title',\r\n 'thumbnail',\r\n );\r\n \r\n $args = array(\r\n 'labels' => $labels,\r\n 'supports' => $supports,\r\n 'public' => true,\r\n 'capability_type' => 'post',\r\n 'rewrite' => array( 'slug' => 'vehicle' ),\r\n 'has_archive' => true,\r\n 'menu_position' => 30,\r\n 'menu_icon' => $this->plugin_url . 'asset/img/car.png',\r\n );\r\n \r\n register_post_type( 'vehicle', $args );\r\n }", "title": "" }, { "docid": "7a24584f579df89f0c4b51c1464dc7ea", "score": "0.7266212", "text": "public function register_post_types() {\n\t\tforeach ( $this->post_types as $post_type => $args ) {\n\t\t\t$labels = array(\n\t\t\t\t'name' => $args['plural'],\n\t\t\t\t'singular_name' => $args['singular'],\n\t\t\t\t'menu_name' => $args['plural'],\n\t\t\t\t'name_admin_bar' => $args['singular'],\n\t\t\t\t'archives' => $args['plural'] . ' Archives',\n\t\t\t\t'attributes' => $args['singular'] . ' Attributes',\n\t\t\t\t'parent_item_colon' => 'Parent ' . $args['singular'] . ':',\n\t\t\t\t'all_items' => 'All ' . $args['plural'],\n\t\t\t\t'add_new_item' => 'Add New ' . $args['singular'],\n\t\t\t\t'add_new' => 'Add New',\n\t\t\t\t'new_item' => 'New ' . $args['singular'],\n\t\t\t\t'edit_item' => 'Edit ' . $args['singular'],\n\t\t\t\t'update_item' => 'Update ' . $args['singular'],\n\t\t\t\t'view_item' => 'View ' . $args['singular'],\n\t\t\t\t'view_items' => 'View ' . $args['plural'],\n\t\t\t\t'search_items' => 'Search ' . $args['singular'],\n\t\t\t\t'not_found' => 'Not found',\n\t\t\t\t'not_found_in_trash' => 'Not found in Trash',\n\t\t\t\t'featured_image' => 'Featured Image',\n\t\t\t\t'set_featured_image' => 'Set featured image',\n\t\t\t\t'remove_featured_image' => 'Remove featured image',\n\t\t\t\t'use_featured_image' => 'Use as featured image',\n\t\t\t\t'insert_into_item' => 'Insert into ' . $args['singular'],\n\t\t\t\t'uploaded_to_this_item' => 'Uploaded to this ' . $args['singular'],\n\t\t\t\t'items_list' => $args['plural'] . ' list',\n\t\t\t\t'items_list_navigation' => $args['plural'] . ' list navigation',\n\t\t\t\t'filter_items_list' => 'Filter ' . $args['singular'] . ' list',\n\t\t\t);\n\t\t\t$args['labels'] = $labels;\n\n\t\t\t// Set arguments to defaults unless otherwise specified\n\t\t\t$args['supports'] = ( isset( $args['supports'] ) ) ? $args['supports'] : array(\n\t\t\t\t'title',\n\t\t\t\t'editor',\n\t\t\t\t'thumbnail',\n\t\t\t\t'revisions',\n\t\t\t\t'page-attributes',\n\t\t\t\t'post-formats',\n\t\t\t\t'author',\n\t\t\t\t'excerpt',\n\t\t\t);\n\t\t\t$args['taxonomies'] = ( isset( $args['taxonomies'] ) ) ? $args['taxonomies'] : array();\n\t\t\t$args['hierarchical'] = ( isset( $args['hierarchical'] ) ) ? $args['hierarchical'] : false;\n\t\t\t$args['public'] = ( isset( $args['public'] ) ) ? $args['public'] : true;\n\t\t\t$args['show_ui'] = ( isset( $args['show_ui'] ) ) ? $args['show_ui'] : true;\n\t\t\t$args['show_in_menu'] = ( isset( $args['show_in_menu'] ) ) ? $args['show_in_menu'] : true;\n\t\t\t$args['menu_position'] = ( isset( $args['menu_position'] ) ) ? $args['menu_position'] : 5;\n\t\t\t$args['menu_icon'] = ( isset( $args['menu_icon'] ) ) ? $args['menu_icon'] : 'dashicons-admin-post';\n\t\t\t$args['show_in_admin_bar'] = ( isset( $args['show_in_admin_bar'] ) ) ? $args['show_in_admin_bar'] : true;\n\t\t\t$args['show_in_nav_menus'] = ( isset( $args['show_in_nav_menus'] ) ) ? $args['show_in_nav_menus'] : true;\n\t\t\t$args['show_in_rest'] = ( isset( $args['show_in_rest'] ) ) ? $args['show_in_rest'] : true;\n\t\t\t$args['can_export'] = ( isset( $args['can_export'] ) ) ? $args['can_export'] : true;\n\t\t\t$args['has_archive'] = ( isset( $args['has_archive'] ) ) ? $args['has_archive'] : true;\n\t\t\t$args['exclude_from_search'] = ( isset( $args['exclude_from_search'] ) ) ? $args['exclude_from_search'] : false;\n\t\t\t$args['publicly_queryable'] = ( isset( $args['publicly_queryable'] ) ) ? $args['publicly_queryable'] : true;\n\t\t\t$args['capability_type'] = ( isset( $args['capability_type'] ) ) ? $args['capability_type'] : 'page';\n\t\t\t$args['rewrite'] = ( isset( $args['rewrite'] ) ) ? $args['rewrite'] : false;\n\n\t\t\tregister_post_type( $post_type, $args );\n\t\t}\n\t}", "title": "" }, { "docid": "09540b6f66a9e0d75492cf34c58ab325", "score": "0.7262586", "text": "function register_post_type() {\r\n global $wpdb, $wpi_settings, $wp_properties;\r\n\r\n $wpi_settings['statuses'] = array();\r\n\r\n $labels = array(\r\n 'name' => __('Invoices', WPI),\r\n 'singular_name' => __('Invoice', WPI),\r\n 'add_new' => __('Add New', WPI),\r\n 'add_new_item' => __('Add New Invoice', WPI),\r\n 'edit_item' => __('Edit Invoice', WPI),\r\n 'new_item' => __('New Invoice', WPI),\r\n 'view_item' => __('View Invoice', WPI),\r\n 'search_items' => __('Search Invoices', WPI),\r\n 'not_found' => __('No invoices found', WPI),\r\n 'not_found_in_trash' => __('No invoices found in Trash', WPI),\r\n 'parent_item_colon' => ''\r\n );\r\n\r\n\r\n // Register custom post types\r\n register_post_type('wpi_object', array(\r\n 'labels' => $labels,\r\n 'singular_label' => __('Invoice', WPI),\r\n 'public' => false,\r\n 'show_ui' => false,\r\n '_builtin' => false,\r\n '_edit_link' => $wpi_settings['links']['manage_invoice'] . '&wpi[existing_invoice][invoice_id]=%d',\r\n 'capability_type' => 'post',\r\n 'hierarchical' => false,\r\n 'rewrite' => array('slug' => $wp_properties['configuration']['base_slug']),\r\n 'query_var' => $wp_properties['configuration']['base_slug'],\r\n 'supports' => array('title', 'editor', 'thumbnail'),\r\n 'menu_icon' => WPI_URL . \"/core/css/images/wp_invoice.png\"\r\n ));\r\n\r\n register_post_status('archived', array(\r\n 'label' => _x('Archived', 'wpi_object'),\r\n 'public' => false,\r\n '_builtin' => false,\r\n 'label_count' => _n_noop('Archived <span class=\"count\">(%s)</span>', 'Archived <span class=\"count\">(%s)</span>'),\r\n ));\r\n $wpi_settings['statuses'][] = 'archived';\r\n\r\n register_post_status('active', array(\r\n 'label' => _x('Active', 'wpi_object'),\r\n 'public' => false,\r\n '_builtin' => false,\r\n 'label_count' => _n_noop('Due Invoices <span class=\"count\">(%s)</span>', 'Due Invoices <span class=\"count\">(%s)</span>'),\r\n ));\r\n $wpi_settings['statuses'][] = 'active';\r\n\r\n register_post_status('paid', array(\r\n 'label' => _x('Paid', 'wpi_object'),\r\n 'public' => false,\r\n '_builtin' => false,\r\n 'label_count' => _n_noop('Paid <span class=\"count\">(%s)</span>', 'Paid <span class=\"count\">(%s)</span>'),\r\n ));\r\n $wpi_settings['statuses'][] = 'paid';\r\n\r\n register_post_status('trash', array(\r\n 'label' => _x('Trash', 'wpi_object'),\r\n 'public' => false,\r\n '_builtin' => false,\r\n 'label_count' => _n_noop('Trash <span class=\"count\">(%s)</span>', 'Trash <span class=\"count\">(%s)</span>'),\r\n ));\r\n $wpi_settings['statuses'][] = 'trash';\r\n\r\n register_post_status('pending', array(\r\n 'label' => _x('Pending', 'wpi_object'),\r\n 'public' => false,\r\n '_builtin' => false,\r\n 'label_count' => _n_noop('Pending <span class=\"count\">(%s)</span>', 'Pending <span class=\"count\">(%s)</span>'),\r\n ));\r\n $wpi_settings['statuses'][] = 'pending';\r\n\r\n register_post_status('refund', array(\r\n 'label' => _x('Refund', 'wpi_object'),\r\n 'public' => false,\r\n '_builtin' => false,\r\n 'label_count' => _n_noop('Refund <span class=\"count\">(%s)</span>', 'Refund <span class=\"count\">(%s)</span>'),\r\n ));\r\n $wpi_settings['statuses'][] = 'refund';\r\n\r\n do_action('wpi_register_object');\r\n }", "title": "" }, { "docid": "5fae2f59341dc89327d3e2f9969baa70", "score": "0.7261464", "text": "function create_post_type() {\n\tregister_post_type( 'evento', array(\n\t\t'labels' => array(\n\t\t\t'name' => __( 'Eventos' ),\n\t\t\t'singular_name' => __( 'Evento' ),\n\t\t\t'add_new_item' => __( 'Añadir un evento' ),\n\t\t\t'edit' => __( 'Editar' ),\n\t\t\t'edit_item' => __( 'Editar este evento' ),\n\t\t\t'new_item' => __( 'Nuevo evento' ),\n\t\t\t'view' => __( 'Ver evento' ),\n\t\t\t'view_item' => __( 'Ver este evento' ),\n\t\t\t'search_items' => __( 'Buscar eventos' ),\n\t\t\t'not_found' => __( 'Ningún evento encontrado' ),\n\t\t\t'not_found_in_trash' => __( 'No hay eventos en la papelera' ),\n\t\t\t'parent' => __( 'Parent' )\n\t\t),\n\t\t'public' => true,\n\t\t'publicly_queryable' => true,\n\t\t'exclude_from_search' => false,\n\t\t'show_ui' => true,\n\t\t'menu_position' => 5,\n\t\t'show_in_nav_menus' => true,\n\t\t'has_archive' => true,\n//\t\t'menu_icon' => get_template_directory_uri() . '/images/icon-post.type-integrantes.png',\n\t\t'hierarchical' => false, // if true this post type will be as pages\n\t\t'query_var' => true,\n\t\t'supports' => array('title', 'editor','excerpt','author','comments','trackbacks'),\n\t\t'taxonomies' => array(),\n\t\t'rewrite' => array('slug'=>'evento','with_front'=>false),\n\t\t'can_export' => true,\n//\t\t'_builtin' => false,\n//\t\t'_edit_link' => 'post.php?post=%d',\n//\t\t'map_meta_cap' => true, // should be true to make capability_type works\n//\t\t'capability_type' => 'page',\n\t));\n\t// comunicacion custom post type\n\tregister_post_type( 'comunicacion', array(\n\t\t'labels' => array(\n\t\t\t'name' => __( 'Comunicaciones' ),\n\t\t\t'singular_name' => __( 'Comunicación' ),\n\t\t\t'add_new_item' => __( 'Añadir una comunicación' ),\n\t\t\t'edit' => __( 'Editar' ),\n\t\t\t'edit_item' => __( 'Editar esta comunicación' ),\n\t\t\t'new_item' => __( 'Nueva comunicación' ),\n\t\t\t'view' => __( 'Ver comunicación' ),\n\t\t\t'view_item' => __( 'Ver esta comunicación' ),\n\t\t\t'search_items' => __( 'Buscar comunicaciones' ),\n\t\t\t'not_found' => __( 'Ninguna comunicación encontrada' ),\n\t\t\t'not_found_in_trash' => __( 'No hay comunicaciones en la papelera' ),\n\t\t\t'parent' => __( 'Parent' )\n\t\t),\n\t\t'public' => true,\n\t\t'publicly_queryable' => true,\n\t\t'exclude_from_search' => false,\n\t\t'show_ui' => true,\n\t\t'menu_position' => 5,\n\t\t'show_in_nav_menus' => true,\n\t\t'has_archive' => true,\n//\t\t'menu_icon' => get_template_directory_uri() . '/images/icon-post.type-integrantes.png',\n\t\t'hierarchical' => false, // if true this post type will be as pages\n\t\t'query_var' => true,\n\t\t'supports' => array('title', 'editor','excerpt','author','comments','trackbacks'),\n\t\t'taxonomies' => array('seccion'),\n\t\t'rewrite' => array('slug'=>'comunicacion','with_front'=>false),\n\t\t'can_export' => true,\n//\t\t'_builtin' => false,\n//\t\t'_edit_link' => 'post.php?post=%d',\n//\t\t'map_meta_cap' => true, // should be true to make capability_type works\n//\t\t'capability_type' => 'page',\n\t));\n\n}", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "9b3d0080742372052954991d1abb1fc0", "score": "0.0", "text": "public function create()\n {\n $Catalogs= Catalog::get();\n return view('admin.product.form', compact('Catalogs'));\n }", "title": "" } ]
[ { "docid": "cb267e3ebbd54b9945858b4232a6e394", "score": "0.7782105", "text": "public function create()\n {\n return view('admin.resource.create');\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "64a6a51cb4e4b962408e448d0c1399e9", "score": "0.74687606", "text": "public function actionCreate()\r\n {\r\n $model = new Resource();\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->id]);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }", "title": "" }, { "docid": "c26739dc5816352d835ac0fb7c3766d6", "score": "0.7424195", "text": "public function create()\n\t{\n\t\tif($this->session->userlogged_in !== '*#loggedin@Yes')\n\t\t{\n\t\t\tredirect(base_url().'dashboard/login/');\n }\n\n $data = array(\n 'page_title' => 'New resource'\n );\n \n\t\t$this->load->view('templates/header', $data);\n\t\t$this->load->view('member_resources/create_view');\n\t\t$this->load->view('templates/footer');\n }", "title": "" }, { "docid": "eefd3a34279d87bd94753b0beae69b0d", "score": "0.7391348", "text": "public function create()\n {\n return view('humanresources::create');\n }", "title": "" }, { "docid": "9332c37244dbc51a6ec587579d9cd246", "score": "0.72882813", "text": "public function create()\n {\n //\n return view('forms.create');\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "68d9805b3cff8bc6655ed77f2eb8b54c", "score": "0.7277638", "text": "public function create()\n {\n return view(\"Student/addform\");\n //\n }", "title": "" }, { "docid": "78824716ffe303654b7c00562ec87847", "score": "0.72740334", "text": "public function create() {\n $viewData = $this->getDefaultFormViewData();\n $viewData[\"mode\"] = \"create\";\n $viewData[\"supplier\"] = new Supplier();\n\n $viewData[\"supplier\"]->supplier_number = NumberSeries::getNextNumber(Supplier::MODULE_CODE);\n\n return view(\"{$this->viewPath}.form\", $viewData);\n }", "title": "" }, { "docid": "aa37b9385ad38984404b3f4097565c00", "score": "0.72529656", "text": "public function newAction()\n {\n $request = $this->container->get('request');\n $options = $request->get('options');\n $alias = $request->get('alias');\n\n $metadata = $this->getMetadata($options['class']);\n $entity = $this->newEntityInstance($metadata);\n\n $fields = $this->getFields($metadata, $options, 'new');\n $type = $this->getCustomFormType($options, 'new');\n\n $form = $this->createCreateForm($entity, $alias, $fields, $type);\n\n return $this->render(\n 'SgDatatablesBundle:Crud:new.html.twig',\n array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'list_action' => DatatablesRoutingLoader::PREF . $alias . '_index',\n 'heading' => $this->getHeading()\n )\n );\n }", "title": "" }, { "docid": "56ed6a0676abf46597af78526cddcbf9", "score": "0.7215597", "text": "public function create()\n {\n return view( 'forms/car' );\n }", "title": "" }, { "docid": "3fb888dea195139fc63f84a6e5b7db63", "score": "0.7199865", "text": "public function create()\n {\n return View::make($this->resourceView.'.create');\n }", "title": "" }, { "docid": "570432e9bac5bbbd5f03f49d8c84f384", "score": "0.7178891", "text": "public function create()\n {\n return view('core.admin.form.create');\n }", "title": "" }, { "docid": "53df6b1c8be4874a39d1af8e3c545f04", "score": "0.71700996", "text": "public function create()\n {\n return view(\"fichecontroller.form\");\n }", "title": "" }, { "docid": "3da56af402e3cb2da0fb1d9bfcaaee54", "score": "0.7169166", "text": "public function create()\n {\n //\n\n return view('form.create');\n }", "title": "" }, { "docid": "7cda6fe62fc1ec4947ab520926c7eca6", "score": "0.7148757", "text": "public function create()\n {\n return View::make(self::CID.'.form');\n }", "title": "" }, { "docid": "95739848366d87216fcc63cf6199aa8c", "score": "0.71411735", "text": "public function create()\n {\n \treturn view('form');\n }", "title": "" }, { "docid": "56dd0677c79549ae44b2b1cc8d7bd0db", "score": "0.713852", "text": "public function create()\n {\n return view('backEnd.formisian.create');\n }", "title": "" }, { "docid": "53163536d5d151380894ed516baf152c", "score": "0.71345985", "text": "public function actionCreate() {\n $this->render('create');\n }", "title": "" }, { "docid": "7d27d715128bcec59bea3173b77f3e80", "score": "0.7130929", "text": "public function create()\n {\n \n return view('admin.forms.create');\n }", "title": "" }, { "docid": "8e8000021c431ea72dcb74907ce2583e", "score": "0.71173835", "text": "public function create()\n {\n return view('crud.new');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "f26dda2bfcba89d5cc0857ab1ea11689", "score": "0.71150076", "text": "public function create()\n {\n return view($this->sPath.'/form', ['sPageTitle' => $this->sName]);\n }", "title": "" }, { "docid": "74cc4ed8fa057c0f0734c751db297540", "score": "0.71074176", "text": "public function create()\n {\n return view('curso.form');\n }", "title": "" }, { "docid": "e9992fc965026962aebdc354dcc64fda", "score": "0.7100691", "text": "public function create()\n {\n return view('linguas.form');\n }", "title": "" }, { "docid": "76b4745b537106a5513b06d8ab3e4928", "score": "0.7075148", "text": "public function create()\n {\n //\n return view('submit.create');\n }", "title": "" }, { "docid": "0f2dac59601869fb2c54ce811c4650aa", "score": "0.70675695", "text": "public function create()\n {\n return view('pages.forms.addProduct');\n }", "title": "" }, { "docid": "9f2e24c9a8128c23335ea37006c86534", "score": "0.70614016", "text": "public function create_form() {\n\n\t\treturn $this->render('user-create-form.php', array(\n\t\t\t'page_title' => 'Create Account',\n\t\t));\n\t}", "title": "" }, { "docid": "aa383de8753c002453b606201fb9311d", "score": "0.7059025", "text": "public function create()\n {\n\n return view('forms.catalogue');\n }", "title": "" }, { "docid": "a3472bb62fbfd95113a02e6ab298fb16", "score": "0.705323", "text": "public function create()\n {\n return view('admin.new.create');\n }", "title": "" }, { "docid": "cd26d7c620bd493d734a18664ac56a6d", "score": "0.70457923", "text": "public function create()\n\t{\n\t\treturn view('formation/create');\n\t}", "title": "" }, { "docid": "a23e51d12b5252adcb8123deec223f18", "score": "0.7040961", "text": "public function create()\n {\n $this->data['titlePage'] = trans('admin.obj_new',['obj' => trans('admin.'.$this->titleSingle)]);\n $breadcrumbs = array();\n $breadcrumbs[] = [ 'title' => trans('admin.home'), 'link' => route($this->routeRootAdmin), 'icon' => $this->iconDashboard ];\n $breadcrumbs[] = [ 'title' => trans('admin.'.$this->titlePlural), 'link' => route(GetRouteAdminResource($this->resourceRoute)), 'icon' => $this->iconMain ];\n $breadcrumbs[] = [ 'title' => $this->data['titlePage'], 'icon' => $this->iconNew ];\n $this->data['breadcrumbs'] = $breadcrumbs;\n\n return view(GetViewAdminResource($this->resourceView, 'create'))->with($this->data);\n }", "title": "" }, { "docid": "59db2ec2bb6338f023d72461ca432a6e", "score": "0.7014469", "text": "public function create()\n {\n //form showing by modal, without controller or ajax\n }", "title": "" }, { "docid": "b7740989974ec89d90c4ded59d8de5c3", "score": "0.7008361", "text": "public function create()\n {\n \n return view ('studentform');\n }", "title": "" }, { "docid": "06f183ff6cd0bb720144b6bfd1f60c58", "score": "0.70045805", "text": "public function create()\n {\n return view('admin.catalog.edit_form', [\n 'route_base_url' => 'catalog',\n 'model_name' => '\\App\\Models\\Catalog'\n ]);\n }", "title": "" }, { "docid": "67dbcb9d8cbfbf80f7870af19e54acc7", "score": "0.69976735", "text": "public function create()\n {\n return view('student_form');\n }", "title": "" }, { "docid": "e58f17523277fc6c291ecbf3f817eb22", "score": "0.6986169", "text": "public function create()\n {\n return view('radars.create');\n }", "title": "" }, { "docid": "3dc360473dabcb08b5169d4443b754b3", "score": "0.6984008", "text": "public function create()\n {\n $form = $this->form;\n $route = $this->route;\n return view($this->rCreate,compact('form','route'));\n }", "title": "" }, { "docid": "61be6e0a3d99f1e507e44604564e975a", "score": "0.6980997", "text": "public function create()\n {\n return view('bookForm');\n }", "title": "" }, { "docid": "d992b460ca7fa75fae06c92431ea0040", "score": "0.69780463", "text": "public function create()\n {\n View::share(\"pageTitle\", $this->pageTitle);\n View::share(\"pageUrl\", $this->pageUrl);\n View::share(\"formTitle\", \"Create category\");\n View::share(\"formFields\", $this->form->getFields());\n return View::make('admin.form.form');\n }", "title": "" }, { "docid": "8d7b1185b59117c1c7138b85525adfa3", "score": "0.69766605", "text": "public function create()\n {\n return view(\"add\");\n }", "title": "" }, { "docid": "faad50701ca209b09853100eea7791d6", "score": "0.69652027", "text": "public function ShowForm()\n\t{\n\t\treturn view('marcas.new');\n\t}", "title": "" }, { "docid": "f15b831e674279eeed6c926d7fc775f4", "score": "0.69635683", "text": "public function showForm()\n {\n return view('backend.employee.new');\n\n }", "title": "" }, { "docid": "4e37d311d6990013b0ed72549d9fd35f", "score": "0.69635546", "text": "public function create()\n {\n return view('product.form');\n }", "title": "" }, { "docid": "94b9216c661234b749248be69f855da2", "score": "0.69630045", "text": "public function makeCreateForm()\n {\n return View::make('backend.role.create')\n ->with('module', $this->module);\n }", "title": "" }, { "docid": "9cb057d0f77e53e0cce5708d50a6481b", "score": "0.6962359", "text": "public function create()\n {\n return view('new');\n }", "title": "" }, { "docid": "7423ea0a2f037cdf0d82c0bfb1da7d29", "score": "0.69582516", "text": "public function create()\n {\n return view('backend.book.bookadd');\n }", "title": "" }, { "docid": "53c6bc1f60b19320300c4fabee6ed361", "score": "0.69580436", "text": "public function actionCreate() {\n $model = new Forms();\n\n if ($this->request->isPost) {\n if ($model->load($this->request->post())) {\n $model->save();\n\n return $this->redirect(['view', 'id' => $model->id]);\n }\n } else {\n $model->loadDefaultValues();\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "ec1387b33a439043065a5a57c6b204dc", "score": "0.695659", "text": "public function create()\n {\n $title = trans('student.new');\n $this->generateParams();\n $custom_fields = CustomFormUserFields::getCustomUserFields('student');\n return view('layouts.create', compact('title', 'custom_fields'));\n }", "title": "" }, { "docid": "f0580571ff41736a9b6d64685969976e", "score": "0.6953423", "text": "public function create()\n {\n return view('forms.addJobForm');\n\n }", "title": "" }, { "docid": "234165e0547ce18212545035d0a268e8", "score": "0.6939794", "text": "public function create()\r\n {\r\n return view('backend/frame_management/create_form');\r\n }", "title": "" }, { "docid": "ba70ddc190000d3806bc08fdef63dba4", "score": "0.69371575", "text": "public function create()\n {\n return view('news.forms.create');\n }", "title": "" }, { "docid": "a9ea97d1b5f9c3b156c14f4c667cf591", "score": "0.69358236", "text": "public function create()\n {\n $data = array();\n $data['btn'] = trans('main.save');\n return view('employee.form', $data);\n }", "title": "" }, { "docid": "04fb02f1ffa4d6ad9db381edaa1ef950", "score": "0.6935629", "text": "public function create()\n {\n return view('marketing.eduzz.form',[\n 'title_postfix' => $this->configs['new'],\n 'navigation' => $this->navigation,\n ]);\n }", "title": "" }, { "docid": "854d474e9079854ad8a7ee81f9143ba1", "score": "0.69329673", "text": "public function create()\n {\n return view('inventory.form');\n }", "title": "" }, { "docid": "2b4c0cd22a57111ee2cfd13aac73f31c", "score": "0.69327354", "text": "public function create()\n {\n $title = trans('global.company_add');\n return view('Admin.company_form', ['company' => new Company(),'title'=>$title]);\n }", "title": "" }, { "docid": "70b9293351aa11656c59414a77fe44bf", "score": "0.6923899", "text": "public function create()\n {\n\t $title = 'TITC - Payment Receipts Form';\n\n return view('layouts.register', compact( 'title' ) );\n }", "title": "" }, { "docid": "38a6849d5b56a77b178a1fc8297c2e4e", "score": "0.69218206", "text": "public function create()\n\t{\n\t\treturn view('information.create');\n\t}", "title": "" }, { "docid": "e7d77bd3e3281032dc80c6bc78add9d9", "score": "0.6921582", "text": "public function create()\n {\n return $this->showView('create');\n }", "title": "" }, { "docid": "c4416390a701ec4941a20dc3ab095a2a", "score": "0.6919174", "text": "public function create()\n\t{\n\t\treturn view('create');\n\t}", "title": "" }, { "docid": "e2b0a02abbe886e85fd9672421e15054", "score": "0.6918003", "text": "public function create()\n {\n return view('clientenatural.create');\n }", "title": "" }, { "docid": "005d56adb8003598d74448ff694072a8", "score": "0.6917995", "text": "public function showNewForm()\n {\n return view('admin.user_new_form');\n }", "title": "" }, { "docid": "bfe25b751c8db9345d0c10f2b43ea766", "score": "0.6916618", "text": "public function create()\n {\n //the create form\n return view('cmsCRUD.create');\n }", "title": "" }, { "docid": "829518d17ea777e3ce8044bf5b54b566", "score": "0.6915829", "text": "public function create()\n {\n return view('demo.form');\n }", "title": "" }, { "docid": "a56ae1a4e831d9137638253cc26e259a", "score": "0.6914903", "text": "public function create()\n {\n return view('supir.create');\n }", "title": "" }, { "docid": "92df450167a97fdf17ebd5b83c28b09a", "score": "0.69129646", "text": "public function create()\n\t{\n\t\t\n\t\treturn View::make('back.Conceptos.create');\n\t}", "title": "" }, { "docid": "a8868117c6271a1bf9acf9032ad876bd", "score": "0.6908564", "text": "public function create()\n {\n return view('admin.new');\n }", "title": "" }, { "docid": "d440c94efd1950e00b13ca9c0042a9b5", "score": "0.69047606", "text": "public function create()\n\t{\n\t\treturn View::make('furnizori.create');\n\t}", "title": "" }, { "docid": "50b63a26044f8f6e8ce183a0f169edb5", "score": "0.6899591", "text": "public function create()\n {\n //Form in views\\forms\\add-teacher\n }", "title": "" }, { "docid": "fe5a9905dc7a54f058401299c6181831", "score": "0.6898638", "text": "public function create() {\n return view(\"create\");\n }", "title": "" }, { "docid": "c17c042b94a24f7301adf6c1bccdccb4", "score": "0.68974555", "text": "public function create()\n {\n return view('akun.form');\n }", "title": "" }, { "docid": "3da29d431813cb53ced72193b8b7a8b3", "score": "0.6896062", "text": "public function create()\n {\n return view('info_bank_forms.create');\n }", "title": "" }, { "docid": "7851cc68e170265f04d4bef0fc5bc722", "score": "0.68953085", "text": "public function create()\n {\n $this->data['mode'] = 'create';\n $this->data['headline'] = 'Create New Product';\n $this->data['button'] = 'Save';\n\n $this->data['categories'] = Category::arrayForSelect();\n \n return view('products.form',$this->data);\n }", "title": "" }, { "docid": "80e9174a5ea2d8d5de9a229c71015305", "score": "0.6892881", "text": "public function newAction() {\n $entity = new RutaSugerida();\n $form = $this->createCreateForm($entity);\n\n return $this->render('DataBaseBundle:RutaSugerida:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "6df26b4d414a58d611f86b22b775e1e1", "score": "0.6891878", "text": "public function create(){\n\t\treturn view('person.new');\n\t}", "title": "" }, { "docid": "a951f648a57c67c0069eeda1c6d6aa92", "score": "0.68887526", "text": "public function create()\n\t{\t\t\n\t\treturn view('syllabi.create');\n\t}", "title": "" }, { "docid": "8f40254b10bc1c3e9879e99a307263d1", "score": "0.6888498", "text": "public function create()\n {\n return view(\"contratistas.create\");\n }", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.68880934", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "f77ac1ad153be30f346944682eb2f804", "score": "0.6884337", "text": "public function create()\n {\n return view('programas.form');\n }", "title": "" }, { "docid": "4e920599445d082e866e30214e83ff15", "score": "0.6883745", "text": "public function create()\n {\n return view('company.create'); //return empty form\n }", "title": "" }, { "docid": "e87ea28de0e147839885d202fdcf87c3", "score": "0.6879313", "text": "public function create()\n {\n //return view('dashboard.state.form');\n }", "title": "" }, { "docid": "0c01c590097437f9d4700db1096060fa", "score": "0.6879102", "text": "public function create()\n {\n return view($this->view_path.'.form',['form_type' => 'create']);\n }", "title": "" }, { "docid": "b65c57b64c6e408c0c27dff7f53b5b58", "score": "0.687882", "text": "public function create()\n {\n return view('pemilih::create');\n }", "title": "" }, { "docid": "fb1106685e49c1f3cab227154413b8f7", "score": "0.68784964", "text": "public function create()\n {\n return view('forms');\n }", "title": "" }, { "docid": "aba2162f4c6ac04e84bdec140bd9b6d8", "score": "0.68743026", "text": "public function create()\n {\n return view('vitri.create');\n }", "title": "" }, { "docid": "3b6a16ce171a9e1a615b3e03450c34a3", "score": "0.68711114", "text": "public function create()\n {\n return view('red.create');\n }", "title": "" }, { "docid": "aa511d4b629c0b0d4a199ccd11db45cb", "score": "0.68710226", "text": "public function onCreateForm(CreateFormResourceEvent $event)\n {\n //see the Form/ExampleType.php file. There is a required field for every resource.\n $form = $this->container->get('form.factory')->create(new ExampleType, new Example());\n //Use the following resource form.\n //Be carefull, the resourceType is case sensitive.\n //If you don't want to use the default form, feel free to create your own.\n //Make sure the submit route is\n //action=\"{{ path('claro_resource_create', {'resourceType':resourceType, 'parentInstanceId':'_nodeId'}) }}\".\n //Anything else different won't work.\n //The '_nodeId' isn't a mistake, it's a placeholder wich will be replaced with js later on.\n\n $content = $this->container->get('templating')->render(\n 'ClarolineCoreBundle:Resource:createForm.html.twig', array(\n 'form' => $form->createView(),\n 'resourceType' => 'claroline_example'\n )\n );\n\n $event->setResponseContent($content);\n $event->stopPropagation();\n }", "title": "" }, { "docid": "e893ea639bb3313c113e9ac5cb2ad8d1", "score": "0.6870653", "text": "public function actionCreate()\n {\n $model = new ResourceManagement();\n $transaction = Yii::$app->getDb()->beginTransaction();\n if (Yii::$app->request->isPost) {\n try{\n if (!$model->load(Yii::$app->request->post()) || !$model->save()) {\n throw new Exception(Yii::t('app', $model->getFirstErrorMessage()));\n }\n $transaction->commit();\n return $this->redirect(['view', 'id' => $model->id]);\n }catch (Exception $e) {\n $transaction->rollBack();\n Helper::Alert(Yii::t('app', $e->getMessage()));\n }\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "73084f7d2ba247149c11e34d765ee5b5", "score": "0.6870521", "text": "public function create()\n {\n return view('templates.forms');\n }", "title": "" }, { "docid": "0262071f01deb3bd4ca7aa624b922b9c", "score": "0.68705153", "text": "public function newAction()\n {\n if(!$this->get('security.context')->isGranted('ROLE_ADMIN')){\n throw new AccessDeniedException('Accès limité aux administrateurs!');\n }\n\n $entity = new Associate();\n $form = $this->createCreateForm($entity);\n\n return $this->render('MPTimeSheetBundle:Associate:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "2a2d5c7decbde95e55524a71972f118f", "score": "0.68689495", "text": "public function createAction() : object\n {\n // $userSecurity = new UserSecurity($this->di);\n // $userSecurity->auth();\n $page = $this->di->get(\"page\");\n $form = new CreateForm($this->di);\n $form->check();\n\n $page->add(\"question/crud/create\", [\n \"form\" => $form->getHTML(),\n ]);\n\n return $page->render([\n \"title\" => \"Ask a question\",\n ]);\n }", "title": "" }, { "docid": "1fc26c3847b4a579aa5212f09fb5a3ad", "score": "0.6868636", "text": "public function create()\n {\n //\n return view(\"pages.buku.form\");\n }", "title": "" }, { "docid": "e8a872ac2676790caa81e881be3f96da", "score": "0.6866793", "text": "public function create()\n\t{\n\t\t\n\t\treturn view('arbitro.create');\n\t}", "title": "" }, { "docid": "dcf8643d4f6c419eed0299851fa5f08e", "score": "0.68635374", "text": "public function create()\r\n {\r\n Breadcrumb::title(trans('admin_brochures.create'));\r\n return view('admin.brochures.create_edit');\r\n }", "title": "" }, { "docid": "0c86a3bb52729202de25828ebfccd4f9", "score": "0.68618274", "text": "public function create()\n {\n return view('honnbus.create');\n }", "title": "" }, { "docid": "aa9c9003594623fb293be41c632aad2d", "score": "0.6860839", "text": "public function create()\n {\n return view('webcontrol.admin.add');\n }", "title": "" }, { "docid": "f7d9d429540409085821ae3a8cc377e9", "score": "0.6860699", "text": "public function create()\n {\n //\n\treturn view ('rumah.create');\n }", "title": "" }, { "docid": "80b998be62865ab78afc4c0bdaef8639", "score": "0.6859816", "text": "public function create()\n {\n //adicionar\n $action = route('professor.store');\n return view('admin.professores.form', compact('action'));\n }", "title": "" } ]
ba34f52b9d9a772e2b99142e0302b497
Get the product that the vine has.
[ { "docid": "9fb1105d7d0023833cc1ed05bff4e6ec", "score": "0.0", "text": "public function product()\n {\n return $this->belongsTo('App\\Models\\Product');\n }", "title": "" } ]
[ { "docid": "86ec48ff0b67c56084c5628907543780", "score": "0.7780213", "text": "public function getProduct()\n {\n return $this->product;\n }", "title": "" }, { "docid": "86ec48ff0b67c56084c5628907543780", "score": "0.7780213", "text": "public function getProduct()\n {\n return $this->product;\n }", "title": "" }, { "docid": "86ec48ff0b67c56084c5628907543780", "score": "0.7780213", "text": "public function getProduct()\n {\n return $this->product;\n }", "title": "" }, { "docid": "86ec48ff0b67c56084c5628907543780", "score": "0.7780213", "text": "public function getProduct()\n {\n return $this->product;\n }", "title": "" }, { "docid": "86ec48ff0b67c56084c5628907543780", "score": "0.7780213", "text": "public function getProduct()\n {\n return $this->product;\n }", "title": "" }, { "docid": "86ec48ff0b67c56084c5628907543780", "score": "0.7780213", "text": "public function getProduct()\n {\n return $this->product;\n }", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.7715012", "text": "public function getProduct();", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.7715012", "text": "public function getProduct();", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.7715012", "text": "public function getProduct();", "title": "" }, { "docid": "12b85d9713fffd816b0cdeece188b239", "score": "0.7680226", "text": "public function getProduct()\n {\n \n return $this->_coreRegistry->registry('product');\n }", "title": "" }, { "docid": "9ea5e2c46d53aa6dabd534834fd9a495", "score": "0.76577985", "text": "public function getProduct()\n {\n return $this->product;\n }", "title": "" }, { "docid": "7f8f0054aca2f3c2f3be86f4c24d827d", "score": "0.764258", "text": "public function getProduct() {\n\t\treturn $this->product;\n\t}", "title": "" }, { "docid": "7f8f0054aca2f3c2f3be86f4c24d827d", "score": "0.764258", "text": "public function getProduct() {\n\t\treturn $this->product;\n\t}", "title": "" }, { "docid": "4c559916b2c3dd113cde798044882950", "score": "0.7613804", "text": "public function getProduct()\n { \n return $this->_coreRegistry->registry('current_product');\n }", "title": "" }, { "docid": "4619f197afae58d59b522b2048aea2b6", "score": "0.7604669", "text": "public function getProduct(){\n return $this->product;\n }", "title": "" }, { "docid": "8cfe19026995cd728f97ad77445b0cce", "score": "0.7598685", "text": "public function getProduct() {\n return $this->_product;\n }", "title": "" }, { "docid": "b4ae1c7ab9cb36f4c63c836a579807ce", "score": "0.75884277", "text": "protected abstract function getProduct();", "title": "" }, { "docid": "c9307d83a0839e7fb98c7cfe968f63fe", "score": "0.7509254", "text": "public function getProduct()\n {\n return $this->_coreRegistry->registry('current_product');\n }", "title": "" }, { "docid": "b9e573d1d44e9b4e60dba311b8831427", "score": "0.75049156", "text": "public function getProduct()\n {\n return $this->coreRegistry->registry('product');\n }", "title": "" }, { "docid": "b9e573d1d44e9b4e60dba311b8831427", "score": "0.75049156", "text": "public function getProduct()\n {\n return $this->coreRegistry->registry('product');\n }", "title": "" }, { "docid": "921bcd823cc6cbef448ef91c6de0ba7e", "score": "0.73726195", "text": "public function getProduct()\n\t{\n\t\tinclude_once(DIR . 'libs/repositories/products.php');\n\n\t\t$order = $this->getOrder();\n\n\t\treturn Products::Find(\n\t\t\t$this->getProductSku(),\n\t\t\t$order->getUserId()\n\t\t);\n\t}", "title": "" }, { "docid": "6da212c2522a4e393ba665fa55bb7a8b", "score": "0.73557615", "text": "public function product(){\n\t\treturn parent::product();\n\t}", "title": "" }, { "docid": "7457fd934a31a48dc3a8a1f8685c3633", "score": "0.7350703", "text": "public function getProduct()\n {\n return Mage::registry('current_product');\n }", "title": "" }, { "docid": "7457fd934a31a48dc3a8a1f8685c3633", "score": "0.7350703", "text": "public function getProduct()\n {\n return Mage::registry('current_product');\n }", "title": "" }, { "docid": "e5416ffbb241b23563fd55e25ffc3a71", "score": "0.72742254", "text": "public function getProduct() {\n $productId = JRequest::getVar('productId');\n if(!empty($productId))\n $productId = (int)$productId;\n else\n return null;\n\n $offersTable = $this->getTable();\n $product = $offersTable->getActiveOffer($productId);\n if(empty($product))\n return $product;\n\n $product->pictures = $offersTable->getOfferPictures($productId);\n\n return $product;\n }", "title": "" }, { "docid": "fa213fc53dd805e78a07211f36f666ad", "score": "0.7247342", "text": "protected function getProduct() {\n return $this->getBlock()->getProduct();\n }", "title": "" }, { "docid": "e09c8139db9a55a3d017f4cff4521a0a", "score": "0.7173287", "text": "public function getProduct()\n {\n $product = Mage::registry('product');\n return $product;\n }", "title": "" }, { "docid": "4e611e1f7035b9e9ad6dde6a73333ae6", "score": "0.7144992", "text": "function getProduct() {\n\t\t\treturn Mage::registry( 'product' );\n\t\t}", "title": "" }, { "docid": "f6ffa87217259fa299c7d7a63db7b296", "score": "0.7139286", "text": "public function getProduct()\n {\n if (!$this->product) {\n $this->product = $this->coreRegistry->registry('product');\n }\n\n return $this->product;\n }", "title": "" }, { "docid": "c2f3d752c6c0eed5d9c659778dcdbb95", "score": "0.71383476", "text": "public function getProduct()\n {\n\n return parent::getProduct();\n }", "title": "" }, { "docid": "f21cb6f16ab11ad5c64ea128e6b114c2", "score": "0.7110469", "text": "public function getProduct()\n {\n }", "title": "" }, { "docid": "432bdccaae0982d5dc4f1a99249cda5d", "score": "0.7102195", "text": "public function getProduct(){\r\n\t\tif($this->_prd) return $this->_prd;\r\n\t\telseif($prd = Mage::registry(\"current_product\")) return $prd;\r\n\t\telse return new Varien_Object();\r\n\t}", "title": "" }, { "docid": "55a92bedb1ecebba260327a661211196", "score": "0.7073253", "text": "public function product()\n {\n if (!isset($this->product)) {\n $this->product = new Product($this->http, $this->app);\n $this->instacesMap[] = 'product';\n }\n return $this->product;\n }", "title": "" }, { "docid": "73268c21512b55a3c2882ee6ff63155a", "score": "0.7048316", "text": "public function getProduct()\n {\n if (!$this->_product) {\n $this->_product = Mage::registry('current_product');\n }\n\n return $this->_product;\n }", "title": "" }, { "docid": "b5ae9ece2e1cef4fd62f0679a50fc067", "score": "0.69720495", "text": "private function getProduct()\r\n {\r\n if (!$this->_coreRegistry->registry('product') && $this->getProductId()) {\r\n $product = $this->productRepository->getById($this->getProductId());\r\n $this->_coreRegistry->register('product', $product);\r\n }\r\n return $this->_coreRegistry->registry('product');\r\n }", "title": "" }, { "docid": "d230355decb59ed3dbe0431d6439ef00", "score": "0.6963054", "text": "public function getProduct()\n {\n if (!$this->hasData('product')) {\n $this->setData('product', $this->_coreRegistry->registry('product'));\n }\n return $this->getData('product');\n }", "title": "" }, { "docid": "c6ae4de87e7b646f8a4a4d93f19749ce", "score": "0.6918634", "text": "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "title": "" }, { "docid": "c6ae4de87e7b646f8a4a4d93f19749ce", "score": "0.6918634", "text": "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "title": "" }, { "docid": "c6ae4de87e7b646f8a4a4d93f19749ce", "score": "0.6918634", "text": "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['id' => 'product_id']);\n }", "title": "" }, { "docid": "f1cdf8bfc910031dbf215524eb51586e", "score": "0.6890515", "text": "public function getProduct()\n {\n return $this->hasOne(Product::className(), ['product_id' => 'product_id']);\n }", "title": "" }, { "docid": "226223c593df5e2b4842ba810f3729ec", "score": "0.68682456", "text": "protected function _getProduct()\n {\n return Mage::registry( 'current_product' );\n }", "title": "" }, { "docid": "1add839d2acd04605ec0d257df5c1a0d", "score": "0.68632", "text": "protected function _getProduct()\n {\n return Mage::registry('current_product');\n }", "title": "" }, { "docid": "3d94c5cca2db8c6ed1ed34e7cbf98367", "score": "0.68586016", "text": "public function getProduct()\n {\n if (!$this->hasData('product')) {\n $this->setData('product', Mage::registry('product'));\n }\n return $this->getData('product');\n }", "title": "" }, { "docid": "31095a9a364562038ff61a4a5723e0a1", "score": "0.68388957", "text": "public function getProduct()\n {\n return $this->hasOne(ProductList::className(), ['id' => 'product_id']);\n }", "title": "" }, { "docid": "62860dac6d88429c29500ed0ecc75b1c", "score": "0.6822843", "text": "public function getProductVariation();", "title": "" }, { "docid": "1114dbfcb26f136cf82bd9d2d34280e2", "score": "0.6819839", "text": "public function getProduct()\n\t{\n\t\tif (!Mage::registry('product') && $this->getProductId()) {\n\t\t\t$product = Mage::getModel('catalog/product')->load($this->getProductId());\n\t\t\tMage::register('product', $product);\n\t\t}\n\t\treturn Mage::registry('product');\n\t}", "title": "" }, { "docid": "6f40c910c7027568d809b4da96bd651c", "score": "0.6803696", "text": "public function getProduct()\n {\n if ($this->getData('product')) {\n return $this->getData('product');\n } elseif (!is_null($this->_product)) {\n return $this->_product;\n } else {\n return Mage::getSingleton('catalog/product');\n }\n\n }", "title": "" }, { "docid": "1f6613fd9646482909bde7a005bf25ec", "score": "0.6780926", "text": "public function defaultProduct()\n {\n $captainOrder = $this->orders()->where('captain', 1)->first();\n if(!is_null($captainOrder)) {\n return $captainOrder->products->where('product_type_id', 1)->first();\n }\n else {\n $order = $this->orders()->first();\n return (!is_null($order)) ? $order->products->where('product_type_id', 1)->first() : null;\n }\n\n }", "title": "" }, { "docid": "e26158d3c362f172fea080f36a001040", "score": "0.67431086", "text": "public function getProductId();", "title": "" }, { "docid": "e26158d3c362f172fea080f36a001040", "score": "0.67431086", "text": "public function getProductId();", "title": "" }, { "docid": "e26158d3c362f172fea080f36a001040", "score": "0.67431086", "text": "public function getProductId();", "title": "" }, { "docid": "e26158d3c362f172fea080f36a001040", "score": "0.67431086", "text": "public function getProductId();", "title": "" }, { "docid": "4669039b7e0e1210b339794419fd369b", "score": "0.6725937", "text": "public function getViewProduct()\n {\n return $this->getProduct();\n }", "title": "" }, { "docid": "7be48fb0b8bfd664297a92fcd7ac3bf3", "score": "0.67045456", "text": "public function product();", "title": "" }, { "docid": "37ab874377e25f117e25742aea375cc2", "score": "0.6698798", "text": "public function getPharmaceuticalProduct()\n {\n return $this->pharmaceuticalProduct;\n }", "title": "" }, { "docid": "79eedaab10fc66d3b9af76ced7c18b8f", "score": "0.6686463", "text": "function getProductId()\n\t{\n\t\treturn $this->productId;\n\t}", "title": "" }, { "docid": "ffb00d91f679838eefa0e1c2e3c2aae9", "score": "0.6684657", "text": "public function getProductById ($id)\r\n {\r\n return $this->find($id)->current();\r\n }", "title": "" }, { "docid": "9d5765c8c1fe503c573ede9ff3f6c6ab", "score": "0.66821593", "text": "public function getCurrentProduct()\n {\n if(!$this->getData('current_product') && ($product = $this->_coreRegistry->registry('current_product'))) {\n if ($product->getId()) {\n $this->setData('current_product', $product);\n }\n }\n if(!$this->getData('current_product') && ($product = $this->_coreRegistry->registry('product'))) {\n if ($product->getId()) {\n $this->setData('current_product', $product);\n }\n }\n return $this->getData('current_product');\n }", "title": "" }, { "docid": "64cb30e5839c92c99363b961b60fe894", "score": "0.6669319", "text": "public function get_id_product()\n\t{\n\t\treturn $this->id_product;\n\t}", "title": "" }, { "docid": "58d4e0ca2b4a49d00deda8ad652e6941", "score": "0.6659632", "text": "public function getProducto()\n {\n return $this->producto;\n }", "title": "" }, { "docid": "bb86c5d55ff0ff3753dc94c43b524a4c", "score": "0.6651444", "text": "protected function getCurrentProduct()\n {\n if (is_null($this->product)) {\n $this->product = \\XLite\\Core\\Database::getRepo('XLite\\Model\\Product')->find($this->getCurrentProductId());\n }\n\n return ($this->product && $this->product->isAvailable()) ? $this->product : null;\n }", "title": "" }, { "docid": "e9f043494b0e5052fb9cb9b5f936e93e", "score": "0.6649571", "text": "public function getPRODUCT()\n {\n return $this->hasOne(Products::className(), ['PRODUCT_ID' => 'PRODUCT_ID']);\n }", "title": "" }, { "docid": "5a900c827a819bc29db99d08563849e2", "score": "0.65610874", "text": "public function getProduct(): ?Product\n {\n return $this->product;\n }", "title": "" }, { "docid": "cf1a8a2d30f21edacf3577d79d40f0eb", "score": "0.6560017", "text": "public function getRatingProduct()\n {\n return $this->rating_product;\n }", "title": "" }, { "docid": "39d22bfe960fa20f53dd5d6f5b6dc0aa", "score": "0.65544385", "text": "public function getProductId()\n {\n return $this->productId;\n }", "title": "" }, { "docid": "39d22bfe960fa20f53dd5d6f5b6dc0aa", "score": "0.65544385", "text": "public function getProductId()\n {\n return $this->productId;\n }", "title": "" }, { "docid": "39d22bfe960fa20f53dd5d6f5b6dc0aa", "score": "0.65544385", "text": "public function getProductId()\n {\n return $this->productId;\n }", "title": "" }, { "docid": "39d22bfe960fa20f53dd5d6f5b6dc0aa", "score": "0.65544385", "text": "public function getProductId()\n {\n return $this->productId;\n }", "title": "" }, { "docid": "39d22bfe960fa20f53dd5d6f5b6dc0aa", "score": "0.65544385", "text": "public function getProductId()\n {\n return $this->productId;\n }", "title": "" }, { "docid": "39d22bfe960fa20f53dd5d6f5b6dc0aa", "score": "0.65544385", "text": "public function getProductId()\n {\n return $this->productId;\n }", "title": "" }, { "docid": "e061f59a0035c6c30ec6a8d7ef937753", "score": "0.6554073", "text": "public function getIdProduct()\n {\n return $this->idProduct;\n }", "title": "" }, { "docid": "eab4a99207a00c5a84fe0275a0a2e2f6", "score": "0.65171576", "text": "public function viewproduct() {\n return $this->db->get_where('v_product', ['active' => 1])->result();\n }", "title": "" }, { "docid": "8cee864064a6274fd020af3c3d482f19", "score": "0.65096986", "text": "public function getProduct(string $asin): Product;", "title": "" }, { "docid": "3d3e7784d2da138f0770a378ddd9ca76", "score": "0.6500923", "text": "public function getProduct()\n {\n if ( ! $this->getData('product') instanceof \\Magento\\Catalog\\Model\\Product) {\n $this->setData('product', $this->_coreRegistry->registry('product'));\n }\n return $this->getData('product');\n }", "title": "" }, { "docid": "2d92561752185855f3bcf373d2a21cc8", "score": "0.6494172", "text": "public function __get($key)\n\t{\n\t\tif ('product' == $key)\n\t\t{\n\t\t\treturn db::select_array(AutoModeler::factory('vendo_product')->fields())->from(AutoModeler::factory('vendo_product')->get_table_name())->where('id', '=', $this->_data[$key.'_id'])->as_object('Model_Vendo_Product')->execute($this->_db)->current();\n\t\t}\n\n\t\treturn parent::__get($key);\n\t}", "title": "" }, { "docid": "de0d0bbc4d3719714b608d279a7c3263", "score": "0.64867955", "text": "public function product()\n {\n return $this->hasOne(ProductsModel::class, 'id', 'product_id');\n }", "title": "" }, { "docid": "0c2e205639946a133a113ad0008ed1ed", "score": "0.6486755", "text": "public function getCartItemProduct(){\n\t\t$productId = $this->getProduct();\n\t\tif ($this->cartItemProduct && $this->cartItemProduct->getId() == $productId)\n\t\t\treturn $this->cartItemProduct;\n\t\t$this->cartItemProduct = new Product($productId);\n\t\treturn $this->cartItemProduct;\n\t}", "title": "" }, { "docid": "ba1fbd17bf17137d72e13a108c28427e", "score": "0.6482894", "text": "public function getProduct(): ?Product{\n return $this->getRelatedEntity(\"Product\");\n }", "title": "" }, { "docid": "18c3b3ff45ed00ae6eec9460984a91ae", "score": "0.6482677", "text": "public function getProduct()\n {\n try {\n $data = $this->getRequestData();\n $data = $this->_productModel->getProduct($data);\n $this->makeImageOut($data->im_product_image, 640, 640);\n\n return $data;\n } catch (Exception $ex) {\n throw $ex;\n }\n }", "title": "" }, { "docid": "ef362ea742907eaa9cbfa5f29efad2a4", "score": "0.6477391", "text": "public function getFeaturedProduct();", "title": "" }, { "docid": "e45edf9ec3888c78de3027837cfe5c39", "score": "0.6476143", "text": "public function product()\n\t{\n\t\treturn $this->hasOne('App\\Http\\Models\\Product', 'id_product');\n\t}", "title": "" }, { "docid": "b9413d598cdbde0008ee4dfca0b2a40e", "score": "0.6476049", "text": "public function getProductId() {\n\t\treturn ($this->productId);\n\t}", "title": "" }, { "docid": "1b9ddb69868e34832132caea209425ce", "score": "0.6462751", "text": "public function getProduct($idproduct);", "title": "" }, { "docid": "43cf57ef9bf02590390e05b47f8c08e9", "score": "0.645287", "text": "public function getProduct_id()\n {\n return $this->product_id;\n }", "title": "" }, { "docid": "43cf57ef9bf02590390e05b47f8c08e9", "score": "0.645287", "text": "public function getProduct_id()\n {\n return $this->product_id;\n }", "title": "" }, { "docid": "6bf80054a7aadf27c5c745a24dff7948", "score": "0.64508027", "text": "public function getProducts() {\n\t\treturn $this->product;\n\t}", "title": "" }, { "docid": "9737568998e90620bc63ce8f8e3b3557", "score": "0.64493674", "text": "public function Product($forcecurrent = false) {\n\t//SS_Log::log(\"CourseDateTime_OrderItem Product $this\", SS_Log::WARN);\n\t\t\t$product = CourseDateTime_OrderItem::get()->byID($this->ID);\n\t\t\t//var_dump($this);\n\t\t\t//var_dump($product);\n\t\treturn $product;\n\t}", "title": "" }, { "docid": "60a47d0511ec6860daee111ca7e2772d", "score": "0.64371127", "text": "public function get_product($aWhere = array())\n\t{\n\t\tif ($this->product === null) {\n\n\t\t\t$oOrm = new Orm;\n\n\t\t\t$oOrm->select(array('*'))\n\t\t\t\t ->from('product');\n\t\t\t\t\t\t\t\t\t\t\t\t \n\t $aWhere['id'] = $this->get_id_product();\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t \n $aResult = $oOrm->where($aWhere)\n\t\t\t\t\t\t ->load(false, '\\Venus\\src\\Helium\\Entity');\n\n if (count($aResult) > 0) { $this->product = $aResult[0]; }\n else { $this->product = array(); }\n }\n\n\t\treturn $this->product;\n\t}", "title": "" }, { "docid": "37a6267fb534c64f60e678248cfbec64", "score": "0.6436373", "text": "final public function get_ProductID()\n\t{\n\t\treturn $this->boatid;\n\t}", "title": "" }, { "docid": "21ecea4b119303309b13e6a797866a34", "score": "0.6427489", "text": "public function getPro()\n {\n return $this->hasOne(Product::className(), ['id' => 'pro_id']);\n }", "title": "" }, { "docid": "4135ee4fb936f30347431acddcf1721b", "score": "0.6419562", "text": "public function get_products_instance() {\n\t\treturn $this->products;\n\t}", "title": "" }, { "docid": "aec613aff53775a321df4dde98633a37", "score": "0.64014715", "text": "public function product() {\n\n return $this->hasOne('App\\Models\\Product', 'id', 'product_id');\n }", "title": "" }, { "docid": "b3c8796e082a1e8e06929e58f556b51a", "score": "0.6385699", "text": "public function getProduct()\n {\n $id = xtc_not_null($this->postParams['id']) ? xtc_db_prepare_input($this->postParams['id']) : '';\n $lang = xtc_not_null($this->postParams['lang']) ? xtc_db_prepare_input($this->postParams['lang']) : '';\n $fields = xtc_not_null($this->postParams['fields']) ? xtc_db_prepare_input($this->postParams['fields']) : array();\n\n if (empty($lang)) {\n $langQuery = xtc_db_query('SELECT configuration_value FROM ' . TABLE_CONFIGURATION . ' WHERE configuration_key = \"DEFAULT_LANGUAGE\"');\n $langResult = xtc_db_fetch_array($langQuery);\n $lang = $langResult['configuration_value'];\n }\n\n if (!xtc_not_null($id) || !xtc_not_null($lang)) {\n $this->failure('Invalid or missing parameters for getProduct request!');\n\n return;\n }\n\n $langIdQuery = xtc_db_query(\"SELECT languages_id FROM \" . TABLE_LANGUAGES . \" WHERE code = '\" . $lang . \"'\");\n $langResult = xtc_db_fetch_array($langIdQuery);\n $langId = $langResult['languages_id'];\n\n $query = $this->buildProductQuery($fields);\n $query .= ' FROM ' . TABLE_PRODUCTS . ' pr\n LEFT JOIN ' . TABLE_TAX_RATES . ' tr ON pr.products_tax_class_id = tr.tax_class_id\n LEFT JOIN ' . TABLE_PRODUCTS_DESCRIPTION . ' pd ON pr.products_id = pd.products_id\n LEFT JOIN ' . TABLE_MANUFACTURERS . ' mf ON mf.manufacturers_id = pr.manufacturers_id\n LEFT JOIN ' . TABLE_LANGUAGES . ' ln ON pd.language_id = ln.languages_id \n LEFT JOIN ' . TABLE_PRODUCTS_VPE . ' vpe ON pr.products_vpe = vpe.products_vpe_id ' .\n \"WHERE (pr.products_id = '$id' OR pr.products_model LIKE '$id') AND ln.code = '$lang' \n AND (pr.products_vpe = 0 OR vpe.language_id = '$langId') GROUP BY pr.products_id\";\n\n $productResult = xtc_db_query($query);\n $product = xtc_db_fetch_array($productResult);\n\n if ($product['id'] == $id || $product['model'] == $id) {\n\n $id = $product['id'];\n\n if ($product['vat']) {\n $product['oldPrice'] = $product['newPrice'] = $product['oldPriceNet'] * (1 + $product['vat'] * 0.01);\n $product['vat'] = round($product['vat'] * 0.01, 2);\n }\n\n $product['oldPrice'] = $product['newPrice'] = round($product['oldPrice'], 2);\n $product['oldPriceNet'] = $product['newPriceNet'] = round($product['oldPriceNet'], 2);\n $product['url'] = rtrim(xtc_href_link('', '', 'NONSSL', false), '/') . '/';\n $product['link'] = FILENAME_PRODUCT_INFO . '?products_id=' . $id;\n\n $imageUrl = $product['url'] . DIR_WS_INFO_IMAGES . $product['images'];\n if (file_exists(DIR_WS_ORIGINAL_IMAGES . $product['images'])) {\n $imageUrl = $product['url'] . DIR_WS_ORIGINAL_IMAGES . $product['images'];\n }\n\n $product['images'] = ($product['images'] ? array($imageUrl) : array());\n $query = 'SELECT image_name FROM ' . TABLE_PRODUCTS_IMAGES . ' WHERE products_id = ' . $id;\n $imagesQuery = xtc_db_query($query);\n $n = xtc_db_num_rows($imagesQuery);\n for ($i = 0; $i < $n; $i++) {\n $image = xtc_db_fetch_array($imagesQuery);\n\n $imageUrl = $product['url'] . DIR_WS_INFO_IMAGES . $image['image_name'];\n\n if (file_exists(DIR_WS_ORIGINAL_IMAGES . $image['image_name'])) {\n $imageUrl = $product['url'] . DIR_WS_ORIGINAL_IMAGES . $image['image_name'];\n }\n\n $product['images'][] = $imageUrl;\n }\n $this->output['product'] = $product;\n\n } else {\n $this->failure('Product with given parameters not found.');\n }\n }", "title": "" }, { "docid": "9235ce4fa6bc3212b9a5ab8e3580dfe9", "score": "0.63786125", "text": "public function getProduct(){\r\n\t\treturn $this->db->get_where('pieces',array('delete_status'=>0))->result();\r\n\t}", "title": "" }, { "docid": "2bc4382a97970471afbe4f4d7fd0ae2a", "score": "0.6355298", "text": "public function product()\n {\n return $this->hasOne('App\\Products', 'id', 'product_id');\n }", "title": "" }, { "docid": "a1274db06cfb7d94b6a8b1964dcf34ae", "score": "0.6355275", "text": "function getProductCode()\n {\n return $this->productCode;\n }", "title": "" }, { "docid": "cda79e102e16d6cae30ffbc43b0f75d9", "score": "0.63497156", "text": "public function get_product_id() {\n\t\t\treturn $this->product_id;\n\t\t}", "title": "" }, { "docid": "7550c4e6eca49c1b6c687d7c7c4e140a", "score": "0.6344781", "text": "public function getProductId()\n {\n return $this->product_id;\n }", "title": "" }, { "docid": "7550c4e6eca49c1b6c687d7c7c4e140a", "score": "0.6344781", "text": "public function getProductId()\n {\n return $this->product_id;\n }", "title": "" }, { "docid": "d797af7cc7a23128ab41a550f71688fb", "score": "0.63403934", "text": "public function getProduct($id)\n {\n $result = $this->getProducts(array('id' => $id));\n return is_array($result) && isset($result[0]) ? $result[0] : new VendProduct(null, $this);\n }", "title": "" }, { "docid": "9b044a965840a4fee4cb2aabd5f09914", "score": "0.6333998", "text": "public function mainVariant()\n {\n $mainVariant = $this->productVariants()->where('main_variant', 1)->first();\n\n // Temp fix to avoid crash if main variant flag is missing.\n if (!$mainVariant) {\n $mainVariant = $this->productVariants()->first();\n }\n\n return $mainVariant;\n }", "title": "" } ]
0b5143e598fb8a6d7545931b46419d00
Fonction pour appliquer la TVA
[ { "docid": "37351ef1402cf86c0db5df48b78ed74d", "score": "0.0", "text": "function applique_tva($nombre)\n{\n return $nombre * 1.2;\n}", "title": "" } ]
[ { "docid": "1589dcc4992c0a4318eeb93946143160", "score": "0.6788683", "text": "public function vente();", "title": "" }, { "docid": "75554ce57638b2a50a6401f4c7c28345", "score": "0.6266401", "text": "function __construct(){\n\n\t\t$this->vt = new veritabani();\n\t}", "title": "" }, { "docid": "a31deaf77dca39d10f56a69cc4172aa9", "score": "0.61950827", "text": "function anularVenta(){\r\n\t\t$this->procedimiento='vef.ft_venta_ime';\r\n\t\t$this->transaccion='VF_VENANU_MOD';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('id_venta','id_venta','int4');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "e0c0affb0b8d2dd0a3210afe28db17a0", "score": "0.61441565", "text": "public function tarifas()\n {\n # code...\n }", "title": "" }, { "docid": "e0c0affb0b8d2dd0a3210afe28db17a0", "score": "0.61441565", "text": "public function tarifas()\n {\n # code...\n }", "title": "" }, { "docid": "af7f95809aba5750a3ec1b6e4db71f96", "score": "0.6107068", "text": "public function ctrTraerPlantilla() {\n\n #include() se utiliza para invocar el archivo que contiene el codigo html-php.\n include \"views/plantilla.vista.php\";\n }", "title": "" }, { "docid": "c7592f12da8e55016db892663360043e", "score": "0.61028016", "text": "public function alta(){\n }", "title": "" }, { "docid": "62c8daa97ee61dabb28964e54dd61efe", "score": "0.6026588", "text": "public function puja(){ \n $this->cargarVista(\"puja\");\n }", "title": "" }, { "docid": "d19325d0fb0321aa1cbfa57eebe96c17", "score": "0.5979856", "text": "public function setTaux_tva($taux_tva)\n {\n $this->taux_tva = $taux_tva;\n\n return $this;\n }", "title": "" }, { "docid": "d74701ff5dc35a6cade8e64dfa6a28c3", "score": "0.5924185", "text": "public function getTaux_tva()\n {\n return $this->taux_tva;\n }", "title": "" }, { "docid": "61cc97f130cae49ba3b52c4e7b0088b1", "score": "0.5892194", "text": "public function accueil() { \n $mangas = $this->manga->getMangas();\n $vue = new Vue(\"Accueil\"); \n $vue->generer(array('mangas' => $mangas)); \n }", "title": "" }, { "docid": "31af590a5549c133642ae1549243090b", "score": "0.58824635", "text": "public function vatTax()\n {\n $pdo = $this->connectDb();\n\n $stmt = $pdo->prepare(sprintf(\"SELECT * FROM %s WHERE id_product=:id\", self::Tabela_b_Date));\n $stmt->execute(['id' => $this->postId]);\n $product = $stmt->fetch();\n\n $tva = 0.19 * $product['price'];\n try {\n $data = [\n 'vat' => $tva,\n 'id_product' => $this->postId,\n ];\n $sql = sprintf(\"UPDATE %s SET vat=:vat WHERE id_product=:id_product\", self::Tabela_b_Date);\n $stmt1 = $pdo->prepare($sql);\n $stmt1->execute($data);\n } catch (PDOException $e) {\n die(\"ERROR: Could not able to execute $sql. \" . $e->getMessage());\n }\n\n }", "title": "" }, { "docid": "c6f9b8344626dc25232acf75596fca26", "score": "0.5869264", "text": "function ver(){\n $this->data['titulo'] = 'Ver Hojas de vida';\n //Se establece la vista de la barra lateral\n $this->data['menu'] = 'hojas_vida/menu_hojas_vida';\n //Se establece la vista que tiene el contenido principal\n $this->data['contenido_principal'] = 'hojas_vida/ver/ver_view';\n //Se carga la plantilla con las demas variables\n $this->load->view('plantillas/template', $this->data);\n }", "title": "" }, { "docid": "33a1c15615b759e8cf774b16985b0c7c", "score": "0.58471054", "text": "public function vista()\n {\n return view('punto.vista', []);\n }", "title": "" }, { "docid": "cd4a1adfe28510315db16cde4b8db122", "score": "0.58466166", "text": "function registerTV()\n\t{\n\t}", "title": "" }, { "docid": "c79348eaa3d74e5e0cf93b046fcc3787", "score": "0.5833867", "text": "public function ctrTraerPlantilla()\n\t{\n\t\t# code...\n\t\tinclude \"views/plantilla.php\";\n\t}", "title": "" }, { "docid": "642b9410c12ffbbf246e0657587b6ff4", "score": "0.57910293", "text": "public function show(Venta $venta)\n {\n //\n }", "title": "" }, { "docid": "216ad32cb004b1ec4776197d06498a37", "score": "0.57725316", "text": "function getTRASA(){\r\n\t}", "title": "" }, { "docid": "97ce79a30690643e89ee5eb41b7186a2", "score": "0.5760324", "text": "public static function dohvatiSveTermine(){\r\n require_once 'models/termin.php';\r\n self::$termini = Termin::dohvatiSve();\r\n }", "title": "" }, { "docid": "60eccf73c7f0c190c0501835e39bcaba", "score": "0.5735837", "text": "public function vistaTController(){\n\t\t$respuesta = Datos::buscarTutModel();\n\t\tif($respuesta){\n\t\t\t//Si se ejecuta se imprime por cada registro una fila en la tabla\n\t\t\tforeach ($respuesta as $fila) {\n\t\t\t\t$i = $fila[\"id_maestro\"];\n\t\t\t\t$nombre = Datos::buscarNombreTutorModel($i);\n\t\t\t\techo'<tr>\n\t\t\t\t<td>'.$nombre[\"nombre\"].'</td>\n\t\t\t\t<td>'.$fila[\"hora\"].'</td>\n\t\t\t\t<td>'.$fila[\"fecha\"].'</td>\n\t\t\t\t<td>'.$fila[\"tutoria\"].'</td>\n\t\t\t</tr>';\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "922af9736114eb9b7fad54330fa96405", "score": "0.56986076", "text": "public function tpv()\n {\n $cardNum = Config::get('tpv.web_service.test.card_num');\n $cvv2 = Config::get('tpv.web_service.test.cvv2');\n $expiryDate = Config::get('tpv.web_service.test.expiry_date');\n\n // hacer la llamada al servicio web\n $soapResp = TPV::sendPayData(TPV::TEST_MODE, array\n (\n 'Ds_Merchant_Amount' => 12.95, // importe\n 'Ds_Merchant_Currency' => TPV::EURO_CURRENCY_CODE, // código de moneda\n 'Ds_Merchant_Order' => date('His'), // número de pedido\n 'Ds_Merchant_Pan' => $cardNum, // número de tarjeta\n 'Ds_Merchant_Cvv2' => $cvv2, // cvv2\n 'Ds_Merchant_Expirydate' => $expiryDate // fecha de caducidad de la tarjeta\n ));\n\n return View::make('home', array\n (\n 'client' => null,\n 'soapResp' => $soapResp\n ));\n }", "title": "" }, { "docid": "8ffb8a1c6c9be77f8ccdd7558a550bc8", "score": "0.5670616", "text": "function listarVenta(){\r\n\t\t$this->procedimiento='vef.ft_venta_sel';\r\n\t\t$this->transaccion='VF_VEN_SEL';\r\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\r\n\t\t$this->setParametro('historico','historico','varchar');\r\n\t\t$this->setParametro('tipo_factura','tipo_factura','varchar');\r\n\t\t$this->setParametro('id_sucursal','id_sucursal','integer');\r\n\t\t$this->setParametro('id_punto_venta','id_punto_venta','integer');\r\n $this->setParametro('tipo_usuario','tipo_usuario','varchar');\r\n\t\t$this->setParametro('pes_estado','pes_estado','varchar');\r\n\r\n\r\n\t\t//Definicion de la lista del resultado del query\r\n\t\t$this->captura('id_venta','int4');\r\n\t\t$this->captura('id_cliente','int4');\r\n\t\t$this->captura('id_sucursal','int4');\r\n\t\t$this->captura('id_proceso_wf','int4');\r\n\t\t$this->captura('id_estado_wf','int4');\r\n\t\t$this->captura('estado_reg','varchar');\r\n\t\t$this->captura('correlativo_venta','varchar');\r\n\t\t$this->captura('a_cuenta','numeric');\r\n\t\t$this->captura('total_venta','numeric');\r\n\t\t$this->captura('fecha_estimada_entrega','date');\r\n\t\t$this->captura('usuario_ai','varchar');\r\n\t\t$this->captura('fecha_reg','timestamp');\r\n\t\t$this->captura('id_usuario_reg','int4');\r\n\t\t$this->captura('id_usuario_ai','int4');\r\n\t\t$this->captura('id_usuario_mod','int4');\r\n\t\t$this->captura('fecha_mod','timestamp');\r\n\t\t$this->captura('usr_reg','varchar');\r\n\t\t$this->captura('usr_mod','varchar');\r\n $this->captura('estado','varchar');\r\n $this->captura('nombre_factura','varchar');\r\n $this->captura('nombre_sucursal','varchar');\r\n\t\t$this->captura('nit','varchar');\r\n\t\t$this->captura('id_punto_venta','int4');\r\n\t\t$this->captura('nombre_punto_venta','varchar');\r\n\r\n $this->captura('id_forma_pago','varchar');\r\n\t\t$this->captura('forma_pago','varchar');\r\n\t\t$this->captura('monto_forma_pago','varchar');\r\n\t\t$this->captura('numero_tarjeta','varchar');\r\n\t\t$this->captura('codigo_tarjeta','varchar');\r\n\t\t$this->captura('tipo_tarjeta','varchar');\r\n\r\n $this->captura('porcentaje_descuento','numeric');\r\n $this->captura('id_vendedor_medico','varchar');\r\n\t\t$this->captura('comision','numeric');\r\n\t\t$this->captura('observaciones','text');\r\n\t\t$this->captura('fecha','date');\r\n\t\t$this->captura('nro_factura','integer');\r\n\t\t$this->captura('excento','numeric');\r\n\t\t$this->captura('cod_control','varchar');\r\n\t\t$this->captura('id_moneda','integer');\r\n $this->captura('total_venta_msuc','numeric');\r\n $this->captura('transporte_fob','numeric');\r\n $this->captura('seguros_fob','numeric');\r\n $this->captura('otros_fob','numeric');\r\n $this->captura('transporte_cif','numeric');\r\n $this->captura('seguros_cif','numeric');\r\n $this->captura('otros_cif','numeric');\r\n\t\t$this->captura('tipo_cambio_venta','numeric');\r\n\t\t$this->captura('desc_moneda','varchar');\r\n\t\t$this->captura('valor_bruto','numeric');\r\n\t\t$this->captura('descripcion_bulto','varchar');\r\n\t\t$this->captura('contabilizable','varchar');\r\n\t\t$this->captura('hora_estimada_entrega','varchar');\r\n\t\t$this->captura('forma_pedido','varchar');\r\n\t\t$this->captura('id_cliente_destino','integer');\r\n\t\t$this->captura('cliente_destino','varchar');\r\n\t\t$this->captura('cajero','varchar');\r\n\t\t$this->captura('tipo_factura','varchar');\r\n\t\t$this->captura('id_auxiliar_anticipo','int4');\r\n\t\t$this->captura('nombre_auxiliar','varchar');\r\n\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t// echo $this->consulta;exit;\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "3e5d6e13c1f2eb98a6eda60e5f9cbfd3", "score": "0.5665013", "text": "function viewForm($TVA){\n ?>\n <html lang=\"fr\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n <title>calcul de la TVA et du TTC</title>\n \n </head>\n <body>\n\n <h1> calcul de la TVA et du TTC</h1>\n\n <form action=\"\" method=\"POST\">\n <label for=\"taux\">choisissez votre taux de TVA (en %)</label><br><br>\n <!-- loop for => show possibilities in constant array TVA -->\n <select name=\"taux\" ><?php for($i=0; $i <count(TVA); $i++){ echo '<option>' . TVA[$i] . '</option>';}?></select><br><br>\n <label for=\"HT\">Saisissez le montant HT</label><br><br>\n <input type=\"text\" name=\"HT\" placeholder=\"montant HT\"><br><br>\n <input type=\"submit\" value=\"calculer\">\n </form>\n \n </body>\n </html>\n <?php\n }", "title": "" }, { "docid": "d3b013a9223913f0e6ee91a8991d5dd3", "score": "0.56621283", "text": "public static function vaccinCreate() {\n // ----- Construction chemin de la vue\n include 'config.php';\n $vue = $root . '/app/view/vaccin/viewInsert.php';\n require ($vue);\n }", "title": "" }, { "docid": "8b11a00f011a7f20db9a782b190484a1", "score": "0.56595576", "text": "public function pretraga() {\n $this->prikaz('pretraga', []);\n }", "title": "" }, { "docid": "4ec50c29b78fc29354c94ccf3f6385a1", "score": "0.565611", "text": "public function addVue($arg)\n {\n\n $this->voa[] = $arg;\n\n }", "title": "" }, { "docid": "ba79b142665d96837849e5c0b5c30675", "score": "0.5643371", "text": "public function ctrTraerPlantilla(){\n #include() Se ulilizar para invocar el archivo que contiene el código php\n include \"Views/plantilla.php\";\n }", "title": "" }, { "docid": "5cad71f9b6a709c40fca1bdd35a8ea17", "score": "0.56427634", "text": "function anteriorEstadoVenta(){\r\n $this->procedimiento='vef.ft_venta_ime';\r\n $this->transaccion='VEF_ANTEVE_IME';\r\n $this->tipo_procedimiento='IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_proceso_wf','id_proceso_wf','int4');\r\n $this->setParametro('id_funcionario_usu','id_funcionario_usu','int4');\r\n $this->setParametro('operacion','operacion','varchar');\r\n\r\n $this->setParametro('id_funcionario','id_funcionario','int4');\r\n $this->setParametro('id_tipo_estado','id_tipo_estado','int4');\r\n $this->setParametro('id_estado_wf','id_estado_wf','int4');\r\n $this->setParametro('obs','obs','text');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" }, { "docid": "4c0cd421147520a5dac0c7576cc4d383", "score": "0.5642224", "text": "public function fAAlterarRTTratamento() {\n\n\t\t// DD/MM/AAAA\n\t\t$dataAcomp_formatada = Funcoes::formatarNumeros('data', $_POST['dt_acomp'], 10, \"DMA\");\n\n\t\tswitch ($_POST['cd_segmto']) {\n\t\t\tcase 1:\n\t\t\t\t$this->view->nomeSegmento = \"Educação\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->view->nomeSegmento = \"Religiosidade\";\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->view->nomeSegmento = \"Moradia\";\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t$this->view->nomeSegmento = \"Saúde\";\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t$this->view->nomeSegmento = \"Despesa\";\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$this->view->nomeSegmento = \"Renda\";\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t$this->view->nomeSegmento = \"Capacitação Profissional\";\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t$this->view->nomeSegmento = \"Aspectos Íntimos\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Obtem Sequencial de Acompanhamento Atual\n\t\t$seqlAcomp = Container::getModel('TbAcompFml');\n\t\t$seqlAcomp->__set('cd_fml', $_POST['cd_fml']);\n\t\t$seqlAcomp->getSequencial();\t\t\t\n\n\t\t// TU\n\t\t// Para saber se já há acompanhamento cadastrado\n\t\tif (empty($seqlAcomp->__get('seql_max'))) {\n\t\t\t$seql_acomp = 0;\n\n\t\t} else {\n\t\t\t$seql_acomp = $seqlAcomp->__get('seql_max');\n\t\t}\n\n\t\t$this->view->retorno = array (\n\t\t\t\t// TU 'seqlAcomp' => $seqlAcomp->__get('seql_max'),\n\t\t\t\t'seqlAcomp' => $seql_acomp,\n\t\t\t\t'dataAcomp_formatada' => $dataAcomp_formatada\n\t\t);\n\n\t}", "title": "" }, { "docid": "122cf7a1cc1562ca78736c48db9e2e47", "score": "0.56415033", "text": "public function aprovar(){\n $dal = new \\App\\Models\\DAL\\Detalharprojeto;\n $dal->aprovar($this->getCod_projeto(), \"1\");\n }", "title": "" }, { "docid": "d679a55ad0ef88d7397a9843b2d47fd0", "score": "0.56399626", "text": "function vista()\n\t\t{\n\t\t\tif(empty($_POST))\n\t\t\t{\n\t\t\t\t$vista = file_get_contents(\"app/vistas/VistaExamen.php\");\n\t\t\t\t$footer = file_get_contents(\"app/vistas/Footer.php\");\n\t\t\t\tif(isset($_GET['ID']))\n\t\t\t\t{\n\t\t\t\t\t$IDExamen = $_GET['ID'];\n\t\t\t\t\t$Examen = $this->modelo->Examen($IDExamen);\n\t\t\t\t\t$DetalleExamen = $Examen[0]['Examen'];\n\t\t\t\t\t$Preguntas = $Examen[0]['Preguntas'];\n\t\t\t\t\t$vista = str_replace('{Examen}', $DetalleExamen[0]['Nombre'], $vista);\n\t\t\t\t\t$vista = str_replace('{Tiempo}', $DetalleExamen[0]['Duracion'], $vista);\n\t\t\t\t\t$vista = str_replace('{Total_preguntas}', $DetalleExamen[0]['Num_Preguntas'], $vista);\n\n\t\t\t\t\t$inicio_pregunta = strrpos($vista,'{ini_pregunta}');\n\t\t\t\t\t$fin_pregunta = strrpos($vista, '{fin_pregunta}')+14;\n\t\t\t\t\t$renglonPregunta = substr($vista, $inicio_pregunta,$fin_pregunta-$inicio_pregunta);\n\t\t\t\t\t$TotalPreguntas = '';\n\t\t\t\t\tforeach ($Preguntas as $pregunta) {\n\t\t\t\t\t\t$newPregunta = $renglonPregunta;\n\t\t\t\t\t\t$diccionario = array('{Pregunta}' => $pregunta['Descripcion'],\n\t\t\t\t\t\t\t\t\t\t\t'{Respuesta}' => $pregunta['Respuesta']);\n\t\t\t\t\t\t$newPregunta = strtr($newPregunta, $diccionario);\n\t\t\t\t\t\t$TotalPreguntas .= $newPregunta;\n\t\t\t\t\t}\n\t\t\t\t\t$vista = str_replace($renglonPregunta, $TotalPreguntas, $vista);\n\t\t\t\t\t$vista = str_replace('{ini_pregunta}', '', $vista);\n\t\t\t\t\t$vista = str_replace('{fin_pregunta}', '', $vista);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcarga_inicio();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\techo $vista.$footer;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$Respuestas_Correctas = 0;\n\t\t\t\tif(isset($_GET['ID']))\n\t\t\t\t{\n\t\t\t\t\t$ID = $_GET['ID'];\n\t\t\t\t\t$Num_Preguntas = $this->modelo->numPreguntasExamen($ID);\n\t\t\t\t\tif(is_numeric($Num_Preguntas) && $Num_Preguntas > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor ($i=0; $i < $Num_Preguntas ; $i++) { \n\t\t\t\t\t\t\tif(isset($_POST[$i.'|abierta']))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$ID_Pregunta = $_POST[$i.'|abierta'];\n\t\t\t\t\t\t\t\t$RespuestaAbierta = $_POST[$i];\n\t\t\t\t\t\t\t\t$this->modelo->guardarRespuesta($ID,$ID_Pregunta,$RespuestaAbierta,-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(isset($_POST[$i]))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$respuestai = $_POST[$i];\n\t\t\t\t\t\t\t\t$array = explode('|', $respuestai);\n\t\t\t\t\t\t\t\t$correcto = $this->modelo->verRespuesta($array[0],$array[1]);\n\t\t\t\t\t\t\t\tif($correcto == 1)\n\t\t\t\t\t\t\t\t\t$Respuestas_Correctas++;\n\t\t\t\t\t\t\t\t$this->modelo->guardarRespuesta($ID,$array[0],$array[1],$correcto);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$Promedio = ($Respuestas_Correctas*100)/$Num_Preguntas;\n\t\t\t\t\t\t$this->modelo->guardarResultadoExamen($ID,$Promedio);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcarga_inicio();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcarga_inicio();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tcarga_inicio();\n\n\t\t\t}\n\n\t\t\t\t\n\t\t}", "title": "" }, { "docid": "5047ffaf10e7ef6d4fa2ea8c2d71410e", "score": "0.5631648", "text": "function vista($ruta = false) {\n global $params;\n $ruta = $ruta ? $ruta : $params->controlador;\n $ruta = ROOT . 'vistas/' . $ruta . '.php';\n return $ruta;\n}", "title": "" }, { "docid": "f549964703ab31456f895381b6435ae2", "score": "0.5629527", "text": "function listarPuntoVentaTipoStage(){\r\n\t\t$this->procedimiento='vef.ft_reporte_ventas';\r\n\t\t$this->transaccion='VF_STPVT_SEL';\r\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\r\n\t\t$this->captura('tipo_pos','varchar');\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t// echo $this->consulta;exit;\r\n\t\t$this->ejecutarConsulta();\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "fd1b24838740844094a4297f0fe707d2", "score": "0.56084055", "text": "public function ver(){\n if ($this -> estado){\n echo \"esta encendido el vehiculo con \" .$this -> tanque .\" the litros <br>\";\n }else{\n echo \"esta apagado el vehiculo <b>\";\n }\n }", "title": "" }, { "docid": "43d7104bc200f0a7ffecace67afa7e36", "score": "0.5604872", "text": "function insertarVenta(){\r\n\t\t$this->procedimiento='vef.ft_venta_ime';\r\n\t\t$this->transaccion='VF_VEN_INS';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('id_cliente','id_cliente','int4');\r\n\t\t$this->setParametro('id_sucursal','id_sucursal','int4');\r\n\t\t$this->setParametro('nro_tramite','nro_tramite','varchar');\r\n\t\t$this->setParametro('a_cuenta','a_cuenta','numeric');\r\n\t\t$this->setParametro('total_venta','total_venta','numeric');\r\n\t\t$this->setParametro('fecha_estimada_entrega','fecha_estimada_entrega','date');\r\n\t\t$this->setParametro('observaciones','observaciones','text');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "d53d1c1ef41ffeb5900f795c3e80a7b0", "score": "0.55708784", "text": "public function defineVotoNulo() {\r\n $this->Voto = \"N\";\r\n }", "title": "" }, { "docid": "bf6b68aee50e92b390906df6a71bb8ea", "score": "0.556669", "text": "function add_veg_type()\n\t{\n\t\t$data['inner_view']='add_vegies_type';\n\t\t$this->load->view('includes/main_layout',$data);\n\t}", "title": "" }, { "docid": "42cd1239302508451d00e55b1417ba7f", "score": "0.554632", "text": "function getMyVAfromVT(){\n\t\t $this->connect(); \n if (!$this->con->connect_errno) {\n\t\t\tif (isset ($_SESSION['idvt'])){\n\t\t\t $sql = \"SELECT * FROM veranstaltungen va WHERE va.va_vt_id = \". $_SESSION['idvt'];\n\t\t\t$result = $this->con->query($sql); \n\t\t\t\t\t$this->close();\n return ($result);\n\t\t}else throw new Exception('Keine Datenbankverbindung');\n\t\t}\n\t\treturn NULL;\n\t}", "title": "" }, { "docid": "0075b9270a658036d1a9a96fb66b3b7a", "score": "0.55405384", "text": "public function vista_afiliar_terceros()\n {\n\n\n $query = $this->db->query('SELECT * FROM PLAN_NUTRICIONAL_ACT_FISICA');\n $results_af = $query->result();\n\n //obtener si existe alguna aptitud especial en el usuario\n $query = $this->db->query('SELECT * FROM PLAN_NUTRICIONAL_CONDICION_ESPECIAL');\n $results_ce = $query->result();\n //obtener los paises\n $query = $this->db->query('SELECT * FROM PAIS');\n $results_pais= $query->result();\n\n\n //definicion de variables que se eniaran a la vista para los select de los planes\n $data['actitud_fisica'] = $results_af;\n $data['condicion_especial'] = $results_ce;\n $data['pais'] = $results_pais;\n\n\n\n //obtener momentanamente el numero de registro del usuario para afiliarlo a ese numero de registro\n $correo_usuario = $_SESSION['correo'];\n\n $consulta_num_registro_usuario = $this->db->query(\"SELECT num_registro FROM AFILIADOS WHERE correo = '$correo_usuario'\");\n $respuesta = $consulta_num_registro_usuario->row();\n\n\n $this->session->set_userdata('num_registro', $respuesta->num_registro);\n\n\n $this->load->view('headers/header_loged');\n\t\t$this->load->view('afiliar_tercero', $data);\n $this->load->view('footer/footer');\n }", "title": "" }, { "docid": "72b49d776467c5e816959283acc4a831", "score": "0.5525482", "text": "public function crtlTraerPlantilla(){\n #Includ() se utiliza para invocar el archivo que contiene codigo html-php\n include \"vistas/plantilla.php\";\n }", "title": "" }, { "docid": "c53ed58ff0b4cec3a58ed2e934e86544", "score": "0.5518279", "text": "public function buscarVagasEscolas(){\n\t\t\t$vagasDao = $this->model('VagasDao');\n \t$vagasEscola = $vagasDao->listarTodasVagas();\n\n \t$this->view('home/resultadoVagas', $data = ['vagasEscolas' => $vagasEscola]);\n\t}", "title": "" }, { "docid": "2a9795e419edac5d0b37020673eca4fc", "score": "0.5515493", "text": "function crear(){\n $this->data['titulo'] = 'Listar Hojas de vida';\n //Se establece la vista de la barra lateral\n $this->data['menu'] = 'hojas_vida/menu_hojas_vida';\n //Se establece la vista que tiene el contenido principal\n $this->data['contenido_principal'] = 'hojas_vida/hojas_vida_view';\n //Se carga la plantilla con las demas variables\n $this->load->view('plantillas/template', $this->data);\n }", "title": "" }, { "docid": "e66402690240a10a2095c00a90defada", "score": "0.5515372", "text": "public function estadistica()\n {\n }", "title": "" }, { "docid": "4f86fc94c2576711664bbd3ca9748d4b", "score": "0.5506149", "text": "public function vistaTiendasController(){\n\t\t\t$respuesta = Datos::vistaTiendasModel(\"tienda\");\n\t\t\tforeach($respuesta as $row => $item){\n\t\t\t\tif($item[\"estado\"]==1){\n\t\t\t\t\t$estado = \"Activa\";\n\t\t\t\t}else{\n\t\t\t\t\t$estado = \"Desactivada\";\n\t\t\t\t}\n\t\t\t\techo\"<tr>\n\t\t\t\t\t<td>$item[id_tienda]</td>\n\t\t\t\t\t<td>$item[nombre]</td>\n\t\t\t\t\t<td>$item[direccion]</td>\n\t\t\t\t\t<td>$item[fecha]</td>\n\t\t\t\t\t<td>$estado</td>\n\t\t\t\t\t<td><a href='index.php?action=verTienda&id=$item[id_tienda]' class='btn btn-success'>Ver</a> <a href='index.php?action=editarTienda&id=$item[id_tienda]' class='btn btn-info'>Editar</a> <a onclick='confirmar($item[id_tienda]);' class='btn btn-danger'>Borrar</a> <a onclick='confirmarA($item[id_tienda]);' class='btn bg-olive'>Activar</a> <a onclick='confirmarD($item[id_tienda]);' class='btn bg-orange'>Desactivar</a></td>\n\t\t\t\t</tr>\";\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "efc065b44c8fbad8a0c5672dcd8a15af", "score": "0.5505803", "text": "public function vente(){\n return \"Le produit chez Darty est \".$this->getTitle();\n }", "title": "" }, { "docid": "89a94d68c4cc52029ef00e6d13327ccd", "score": "0.5498258", "text": "public function vendera() {\n\t\t$whorder='vendor_archive_id asc';\n \t$data['va'] = $this->picomodel->get_orderlistspficemore('vendor_archive','*','',$whorder);\n\t $this->logger->write_logmessage(\"view\",\" View vendor archive \", \"vendor archive details...\");\n \t$this->logger->write_dblogmessage(\"view\",\" View vendor archive\", \"vendor archive details...\");\n\t $this->load->view('archive/vendera',$data);\n\t}", "title": "" }, { "docid": "60ef1bdd2dd2ea8c3924fa5531f63050", "score": "0.5487995", "text": "function MP_Ejecutar_crearT_vlogamer(){\n MP_CrearT_vlogamer(\"A_GrupoCliente000\");\n}", "title": "" }, { "docid": "bd2e5dd6fa0009434c1d156e0ffb8d5b", "score": "0.5480136", "text": "public function vistaTiendaController(){\n\n\t\t$respuesta = Datos::VerTablasModel(\"tiendas\");\n\n\t\t#El constructor foreach proporciona un modo sencillo de iterar sobre arrays. foreach funciona sólo sobre arrays y objetos, y emitirá un error al intentar usarlo con una variable de un tipo diferente de datos o una variable no inicializada.\n\n\t\tforeach($respuesta as $row => $item){\n\t\techo'<tr>\n\t\t\t\t<td>'.$item[\"nombre\"].'</td>\n\t\t\t\t<td>'.$item[\"ubicacion\"].'</td>\n\t\t\t\t<td>'.$item[\"date_added\"].'</td>\n\t\t\t\t<td><a href=\"index.php?action=editar_Tienda&id='.$item[\"id\"].'\"><button type=\"button\" class=\"btn btn-block btn-outline-success btn-sm\"><i class=\"fa fa-edit\"></i></button></a></td>\n\t\t\t\t<td><a href=\"index.php?action=VistaTiendas&idBorrar='.$item[\"id\"].'\"><button type=\"button\" class=\"btn btn-block btn-outline-danger btn-sm\"><i class=\"fa fa-trash\"></i></button></a></td>';\n\t\t\tif ($_SESSION[\"tipo_admin\"]==1) {\n\t\t\t\techo '<td><a href=\"index.php?action=VistaProductos&idtienda='.$item[\"id_tienda\"].'\"><button type=\"button\" class=\"btn btn-block btn-outline-info btn-sm\"><i class=\"fa fa-edit\"></i></button></a></td>';\n\t\t\t}\n\t\t\techo '</tr>';\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "09cd7832e71f4ebe13ec6e81f4f04115", "score": "0.54681027", "text": "public function plano_contas_ecd(){\n \n}", "title": "" }, { "docid": "2941bb51ebb21a395b225178178f02aa", "score": "0.54638624", "text": "function vencidas($area,$acc,$acc2,$vacio,$con ){\n\t $tfv=0;\n\t //$linea[]=null;\n\t $sql= \"Select * from linea where idarea = $area and sam=1\";\n\t $result=mysqli_query($con,$sql)or die(mysqli_error());\n\t while($row=mysqli_fetch_array($result)){\n\t\t $linea[]=$row['idlinea'];\n\t }\n\t foreach($linea as $lin){\n\t\t $cont=0;\n\t\t $z1=0;$z2=0;$zt=0;\n\t\t \n\t\tforeach($acc as $ac1){\n\t\t\t $v=verifica($ac1,$lin,$con,1);\n\t\t\t $cont=$cont+$v[0];\n\t\t\t if($vacio[0]==0){}else{\n\t\t\t\t $z1=$vacio[0];\n\t\t\t }\n\t\t }\n\t\tforeach($acc2 as $ac2){\n\t\t\t $v=verifica($ac2,$lin,$con,2);\n\t\t\t $cont=$cont+$v[0];\n\t\t\t if($vacio[1]==0){}else{\n\t\t\t\t $z2=$vacio[1];\n\t\t} \n\t\t\t }\n\t\t$zt=$z1+$z2;\n\t\t\n\t\t$tfv=$zt-$cont+$tfv;\n\t\n\t\t\n\t} \n\t\n\treturn $tfv;\n }", "title": "" }, { "docid": "883c7d06a7edf6092dca6e178a786cab", "score": "0.5463228", "text": "function cl_vac_vacinadose() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"vac_vacinadose\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "5f96eb2ac35f56d3ea65fe589aea86e8", "score": "0.54599553", "text": "function alchemists_team_insertqv($vars) {\n\t\tarray_push($vars, 'teampage');\n\t\treturn $vars;\n\t}", "title": "" }, { "docid": "c476932348be76cb9c33cd0b4a1f0a15", "score": "0.54545707", "text": "function siguienteEstadoVenta(){\r\n $this->procedimiento='vef.ft_venta_ime';\r\n $this->transaccion='VEF_SIGEVE_IME';\r\n $this->tipo_procedimiento='IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_proceso_wf_act','id_proceso_wf_act','int4');\r\n $this->setParametro('id_estado_wf_act','id_estado_wf_act','int4');\r\n $this->setParametro('id_funcionario_usu','id_funcionario_usu','int4');\r\n $this->setParametro('id_tipo_estado','id_tipo_estado','int4');\r\n $this->setParametro('id_funcionario_wf','id_funcionario_wf','int4');\r\n $this->setParametro('id_depto_wf','id_depto_wf','int4');\r\n $this->setParametro('obs','obs','text');\r\n $this->setParametro('json_procesos','json_procesos','text');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" }, { "docid": "375fbdd004b53366fee770bdfd82df5a", "score": "0.54450303", "text": "protected function _setVista(){\n $this->view->action = $this->_helper->login->getAction();\n $this->view->mensaje = $this->_helper->login->getMensaje();\n $this->view->request_url = $this->_helper->login->getUrlRetorno();\n }", "title": "" }, { "docid": "2a55dbea135c25da939dd75a82a2552c", "score": "0.5443329", "text": "public function prossimieventipagamento()\n {\n $controller = new CGestioneEvento();\n $eventi = $controller->prossimieventipagamento();\n $view = new VRicerca();\n $view->mostraRisultati($eventi,\"utente\");\n }", "title": "" }, { "docid": "9310ba049d38fdd7feedf99a32cd7ab4", "score": "0.54286736", "text": "public function Nuevo()\n {\n $pvd = new categoria();\n\n //Llamado de las vistas.\n\n require_once 'Public/Views/categoria/categoria-nuevo.php';\n }", "title": "" }, { "docid": "fe9dc4b8fda1f534dda4490abeb03864", "score": "0.5425596", "text": "function contacter()\n{\n $resultat = afficher_appart();\n require \"vue/vue_contacter.php\";\n}", "title": "" }, { "docid": "c32fbf97c797846816f6f9e0366ee2fd", "score": "0.54248273", "text": "public function etiquetas()\n\t{\n\t\t$title_for_layout\t= 'Etiquetas';\n\t\t$this->set(compact('title_for_layout'));\n\t\tparent::relatorio();\n\t}", "title": "" }, { "docid": "61051edb6349c3247d675b96fc0c2503", "score": "0.5421267", "text": "public function vista($vista,$data=[])\n{\n\tif (file_exists(\"../app/View/Brigada/\".$vista.\".php\"))\n\t{\n\t\trequire_once(\"../app/View/Brigada/\".$vista.\".php\");\n\t}\n\telse\n\t{\n\t\tdie(\"La vista no existe\");\n\t}\n}", "title": "" }, { "docid": "414572fd52bab47298c12fc255676eef", "score": "0.5419581", "text": "public function setTv(){\n $this->tv = \"Sim\";\n }", "title": "" }, { "docid": "36aca257ed7e71c2e4e9791398ba144c", "score": "0.5415799", "text": "public function Mostrar(){\r\n\t\r\n\t include_once \"vistas/vtablero.php\";//deberiamos recargar la pagina o elimnar la otra vista.\r\n\t}", "title": "" }, { "docid": "c81eac1f2bafe033407ea0c2f549e9db", "score": "0.54122597", "text": "public function setTea()\r\n {\r\n $this->proxy->setTea();\r\n }", "title": "" }, { "docid": "7f7616525340856dd5fa8f1ed4ffe83f", "score": "0.54028654", "text": "public function defineVotoBranco() {\r\n $this->Voto = \"B\";\r\n }", "title": "" }, { "docid": "89947a5cabe2a4635274a502e6cce42b", "score": "0.5402336", "text": "function getMyVAfromTN(){\n\t\t $this->connect(); \n if (!$this->con->connect_errno) {\n\t\t\tif (isset ($_SESSION['idtn'])){\n\t\t\t $sql = \"SELECT * FROM veranstaltungen va, tn_va tv WHERE va.va_id = tv.va_id AND tv.tn_id = \". $_SESSION['idtn'];\n\t\t\t $result = $this->con->query($sql); \n\t\t\t\t\t$this->close();\n return ($result);\n\t\t}else throw new Exception('Keine Datenbankverbindung');\n\t\t}\n\t\treturn NULL;\n\t}", "title": "" }, { "docid": "1277f646a5243d0741af6a777f03d605", "score": "0.5402112", "text": "public function enviarVolumen( ) {\n $cmd = new ComandoFlash(\"DVD\", \"VOLUMEN\", $this->getVolumen());\n\t\t$this->enviarPeticion($cmd->getComando());\n }", "title": "" }, { "docid": "6facd881bd526ee2edc8bd4007e9b486", "score": "0.53998846", "text": "public function index(){\n $this->cargarVista(\"index\");\n }", "title": "" }, { "docid": "589dc2661014b2b454aff88af3d642b4", "score": "0.5397084", "text": "function appliqueTva2($prixHt, $tva = 1.2){ // tva par défaut\n return $prixHt*(1 + $tva/100);\n}", "title": "" }, { "docid": "8e337aa7358772c3469ce099cd146a53", "score": "0.5386054", "text": "function etiquetas() {\n if (!$this->administrarpermisos->verificarPermiso($this->session->userdata('permiso'), 'mEtiquetas')) {\n $this->session->set_flashdata('error', 'No tiene el permiso de Mantenedor de Etiquetas.');\n redirect(base_url());\n }\n $this->data['menuEtiquetas'] = 'Mantenedore de Etiquetas';\n $this->data['view'] = 'mantenedores/etiquetas';\n $this->load->view(\"template/template\",$this->data);\n }", "title": "" }, { "docid": "c4fd68899e8f6af35ca7fb63638f81f3", "score": "0.5381439", "text": "public function __construct(Vaga $vaga)\n {\n $this->vaga = $vaga;\n }", "title": "" }, { "docid": "697603800831ae8da73447a1bb287002", "score": "0.5380605", "text": "public function create(){\n\t\t\n\t\t$base = new BaseController();\n\n\n\t\t$documentos = TiposDocumentos::where('estatus','ACTIVO')->where('tipo','JURIDICO')->get();\n\t\t$caracteres = Caracteres::where('estatus','ACTIVO')->get();\n\t\t$areas = $base->load_areas();\n\t\t$acciones = Acciones::where('estatus','ACTIVO')->get();\n\t\t\n\t\techo $this->render('Volantes/volantes/create.twig',[\n\t\t\t'sesiones' => $_SESSION,\n\t\t\t'modulo' => $this->modulo,\n\t\t\t'documentos' => $documentos,\n\t\t\t'cuenta' => $_SESSION['idCuentaActual'],\n\t\t\t'caracteres' => $caracteres,\n\t\t\t'areas' => $areas,\n 'acciones' => $acciones,\n\t\t\t'filejs' => $this->filejs\n\t\t]);\n\t}", "title": "" }, { "docid": "c3e41ac95dfe6ae4b0630b63a8fb19aa", "score": "0.537707", "text": "public function tearchers()\n {\n }", "title": "" }, { "docid": "bed289f88ec08c76abb5951cf8137c7e", "score": "0.5371594", "text": "public function transportar() {\n \n }", "title": "" }, { "docid": "9da9c0baae69a766bcdff9da0ae69d65", "score": "0.5370579", "text": "public function ctrPlantilla(){\n\n\t\tinclude \"vistas/plantilla.php\";\n\n\t}", "title": "" }, { "docid": "996dea469d1d37f66d9e62d93b4d0028", "score": "0.5369288", "text": "function appartement()\n{\n $resultat = afficher_appart();\n require 'vue/vue_appartement.php';\n}", "title": "" }, { "docid": "8085d3834cf87364e5abe65d35a97663", "score": "0.5368915", "text": "public function saldos_fin_cont_pb_e_lalur(){\n \n}", "title": "" }, { "docid": "9d5bf1db3b23549811c9667c26afdc5e", "score": "0.5364014", "text": "function listarCanalVentaPuntoVenta() {\r\n\t\t$this->procedimiento='vef.ft_reporte_ventas';\r\n\t\t$this->transaccion='VF_CCANVE_SEL';\r\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\r\n\r\n\t\t//Definicion de la lista del resultado del query\r\n\r\n\t\t$this->captura('id_catalogo', 'int4');\r\n\t\t$this->captura('codigo', 'varchar');\r\n\t\t$this->captura('descripcion', 'varchar');\r\n\t\t$this->captura('orden', 'int4');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t// echo $this->consulta;exit;\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "fe3df903347d6c4e638f7aba7f0c372b", "score": "0.5355525", "text": "public function localidades()\n {\n # code...\n }", "title": "" }, { "docid": "19274f1d9520546a9d7782b3159d1dbd", "score": "0.5339465", "text": "function cargarVista() {\r\n\t\t$this->view->mensaje = \"Bienvenido al sitio\";\r\n\t\t$this->view->cargar('main/index');\r\n\t}", "title": "" }, { "docid": "e1f31856294c568d17359078b871f12f", "score": "0.5339357", "text": "public function apropos()\n {\n // on recupère le titre\n $data[\"title\"] = \"A propos\";\n\n // On charge les vues avec ses parametre \n $this->load->view('common/header', $data);\n $this->load->view('site/apropos', $data);\n $this->load->view('common/footer', $data);\n }", "title": "" }, { "docid": "2c4e97fdc55ab8449de7eaddda7ab253", "score": "0.5330159", "text": "public function Lutador();", "title": "" }, { "docid": "5e5cdb6e88398d44cc3f4d43ccba0b7f", "score": "0.5330066", "text": "public function setup_kas_petugas()\n\t{\n\t\t$data['container'] = 'gl/setup_kas_petugas';\n\t\t$data['fa_name'] = $this->model_gl->get_fa_name(); \n\t\t$data['branch'] = $this->model_kantor_layanan->get_all_branch_by_parent(); \n\t\t$data['account_name'] = $this->model_gl->get_account_name(); \n\t\t$this->load->view('core',$data);\n\t}", "title": "" }, { "docid": "dda6c126e2712f0da56b3dfed1aa597f", "score": "0.5320821", "text": "function cargaTeatroAuto($t)\n{\n /**\n * @var array $funciones\n */\n $t->cargarTeatro(\"Arca\", \"Colon 1234\");\n $funciones = [\n [\"nombre\" => \"La divina comedia\", \"precio\" => 530],\n [\"nombre\" => \"El mago Merlin y el rey Arthuro\", \"precio\" => 670],\n [\"nombre\" => \"Hamblet\", \"precio\" => 590],\n [\"nombre\" => \"El fantasma de la opera\", \"precio\" => 720]\n ];\n $t->setColFunciones($funciones);\n}", "title": "" }, { "docid": "db3c2e826e9a0cbe33658c1de3cb3a5b", "score": "0.5319393", "text": "public function __construct(){\n\t\t$this->_vista = new Vista();\n\t}", "title": "" }, { "docid": "660ff0870198f3dc5ac686d652dcd13b", "score": "0.5315747", "text": "public function accueil() {\n\n\t\t// code à implémenter\n\n\t\t// récupérer la liste des articles\n\t\t$this->articleList = $this->article->getArticles();\n\n\t\t// générer la vue\n\t\t$this->genererVue(array(\"article\" => $this->articleList));\n\t}", "title": "" }, { "docid": "892a10540653e5f2363a66dbb1773ace", "score": "0.53144705", "text": "public function _tema($v = null){\n return $this->tema = filter_var(!isset($v) ? $this->tema : $v, FILTER_VALIDATE_INT);\n }", "title": "" }, { "docid": "6a220f77f77de6d363c14a4dfb1366bc", "score": "0.5311356", "text": "public function crear_vista($vista, $data, $menu=NULL, $direccion_act=NULL){\n\n\t\t$html = $this->load->view($vista, $data, TRUE);\n\t\t\n\t\t$vista = $this->load->view(\n\t\t\t\t\"utilidades_visuales/vista_horizont\",\n\t\t\t\tarray(\n\t\t\t\t\t\"vista_pr\"=>$html,\t\t\t\t\t\n\t\t\t\t\t\"menu\"=>$menu,\n\t\t\t\t\t\"direccion_act\"=>$direccion_act\n\t\t\t\t\t),\n\t\t\t\tTRUE );\n\t\t$this->load->view(\"home\",array(\"vista\"=>$vista));\n\t}", "title": "" }, { "docid": "3cfcfb68aa27b072a30755b817248e94", "score": "0.5310481", "text": "public function __construct() {\r\n parent::__construct();\r\n\t\t$this->atos_tiasa_leubeut();\r\n }", "title": "" }, { "docid": "29963d631ac6f93c837f094f998f8182", "score": "0.53054774", "text": "public function adicionar()\n {\n \treturn view('login.principal_adm.tipos_imovel.adicionar_tipos');\n }", "title": "" }, { "docid": "f0e538bd1fffa6975a1bd561a4ea57ef", "score": "0.52990735", "text": "function generar_html_barra_vinculos()\n\t{\n\t\t$item_solicitado = toba::memoria()->get_item_solicitado();\n\t\tforeach($this->items_vecinos as $item) {\n\t\t\t$vinculo = toba::vinculador()->get_url($item['item_proyecto'], $item['item']);\n\t\t\t//Pide el vinculo por si no tiene permisos\n\t\t\tif (isset($vinculo)) {\n\t\t\t\t$js = \"onclick=\\\"toba.ir_a_operacion('{$item['item_proyecto']}', '{$item['item']}', false, true)\\\"\";\n\t\t\t\t$css = ($item_solicitado[1] == $item['item']) ? 'class=\"active\"' : '';\n\t \t\t\techo \"<a href='#' $js $css>\";\n\t\t\t\tif((isset($item['imagen_origen']))&&(isset($item['imagen']))){\n\t\t\t\t\tif($item['imagen_origen']==\"apex\"){\n\t\t\t\t\t\techo toba_recurso::imagen_toba($item['imagen'],true,null,null,$item['nombre']);\n\t\t\t\t\t}elseif($item['imagen_origen']==\"proyecto\"){\n\t\t\t\t\t\techo toba_recurso::imagen_proyecto($item['imagen'],true,null,null,$item['nombre']);\n\t\t\t\t\t}else{\n\t\t\t\t\t\techo toba_recurso::imagen_toba(\"descripcion.gif\",true,null,null,$item['nombre']);\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\techo toba_recurso::imagen_toba(\"descripcion.gif\",true,null,null,$item['nombre']);\n\t\t\t\t}\n\t\t\t\techo \"</a>\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "58a6349995aec8f3edb2391188bd583c", "score": "0.52955246", "text": "public function fAAlterarRTDespesaBase() {\n\t\t\n\t\t$this->validaAutenticacao();\t\t\n\n\t\t$this->view->erroValidacao = 0;\n\n\t\t$this->fAAlterarRTTratamento();\n\n\t\t// TU\t\t\n\t\t// Não há acompanhamento cadastrado\n\t\tif ($this->view->retorno['seqlAcomp'] == 0) {\t\t\n\t\t\t$this->insereAcompanhamentoRT();\n\n\t\t\t// Insere na tabela tb_segmto_triagem_fml\n\t\t\t$insereTbSegmtoTriagemFml = Container::getModel('TbSegmtoTriagemFml');\n\t\t\t$insereTbSegmtoTriagemFml->__set('cd_fml', $_POST['cd_fml']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('seql_acomp', $this->view->prox_seql_acomp);\n\t\t\t$insereTbSegmtoTriagemFml->__set('cd_segmto_triagem', $_POST['cd_segmto']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dt_reg_seg_triagem', $this->view->retorno['dataAcomp_formatada']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('cd_tip_moradia', $_POST['cd_tip_moradia']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_dono_cedente_moradia', $_POST['dsc_dono_cedente_moradia']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_agua', $_POST['vlr_desp_agua']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_energia', $_POST['vlr_desp_energia']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_iptu', $_POST['vlr_desp_iptu']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_gas', $_POST['vlr_desp_gas']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_condominio', $_POST['vlr_desp_condominio']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_outra_manut', $_POST['vlr_desp_outra_manut']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_desp_outra_manut', $_POST['dsc_desp_outra_manut']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_desp_saude_medicamento', $_POST['dsc_desp_saude_medicamento']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_desp_educ_creche_cuidadora', $_POST['dsc_desp_educ_creche_cuidadora']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_desp_transporte', $_POST['dsc_desp_transporte']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_desp_alimenta_especial', $_POST['dsc_desp_alimenta_especial']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_outra_desp_geral', $_POST['dsc_outra_desp_geral']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_prgm_trab', $_POST['dsc_prgm_trab']);\n\t\t\t$insereTbSegmtoTriagemFml->insertSegmtoTriagemFml();\n\n\t\t\t$this->view->novo_seql_acomp = $this->view->prox_seql_acomp;\n\n\t\t} else {\n\n\t\t\t// Esta Section é chamada tanto na Conclusão do Relatório, quanto na revisão\n\t\t\tif ($_POST['origem'] == 'conclusaoRelatorio') {\n\t\t\t\t$cd_est_acomp1 = 1;\t\t\t// Pendente de Término de registro de Triagem/Visita\n\t\t\t} else {\t\t\t\t\t// == 'conclusaoRevisao'\n\t\t\t\t$cd_est_acomp1 = 2;\t\t\t// Pendente de Término de revisão\n\t\t\t}\n\n\t\t\t// Obtem Atividade e Estado do Acompanhamento do Sequancial de Acompanhamento Atual\n\t\t\t$dadosAcompBase = Container::getModel('TbAcompFml');\n\t\t\t$dadosAcompBase->__set('cd_fml', $_POST['cd_fml']);\n\t\t\t$dadosAcompBase->__set('seql_acomp', $this->view->retorno['seqlAcomp']);\n\t\t\t$dadosAcomp = $dadosAcompBase->getAtvdAcomp();\t\t\t\n\n\t\t\t// Já houve triagem anterior e é a que está na base atualmente. Tem que se criar uma nova\n\t\t\tif ($dadosAcomp['cd_est_acomp'] != $cd_est_acomp1) {\n\t\t\t\t$this->insereAcompanhamentoRT();\n\n\t\t\t\t$this->view->novo_seql_acomp = $this->view->prox_seql_acomp;\n\n\t\t\t} else {\n\t\t\t\t$this->view->novo_seql_acomp = $this->view->retorno['seqlAcomp'];\n\t\t\t}\n\t\t}\n\n\t\t// Verificar se há dados de Triagem, pois pode ser que foi gravado somente tb_acomp_fml, por enquanto\n\t\t$verificaTriagem = Container::getModel('TbSegmtoTriagemFml');\n\t\t$verificaTriagem->__set('codFamilia', $_POST['cd_fml']);\n\t\t$verificaTriagem->__set('seqlAcomp', $this->view->novo_seql_acomp);\n\t\t$verificaTriagem->__set('codSegmtoTriagem', $_POST['cd_segmto']);\n\t\t$verificaTriagemBase = $verificaTriagem->getQtdSegmentoTriagem();\n\n\t\tif ($verificaTriagemBase['qtde'] > 0) {\n\t\t\t// Altera na tabela tb_segmto_triagem_fml\n\t\t\t$alteraTbSegmtoTriagemFml = Container::getModel('TbSegmtoTriagemFml');\n\t\t\t$alteraTbSegmtoTriagemFml->__set('cd_fml', $_POST['cd_fml']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('seql_acomp', $this->view->novo_seql_acomp);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('cd_segmto_triagem', $_POST['cd_segmto']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dt_reg_seg_triagem', $this->view->retorno['dataAcomp_formatada']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('cd_tip_moradia', $_POST['cd_tip_moradia']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dsc_dono_cedente_moradia', $_POST['dsc_dono_cedente_moradia']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('vlr_desp_agua', $_POST['vlr_desp_agua']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('vlr_desp_energia', $_POST['vlr_desp_energia']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('vlr_desp_iptu', $_POST['vlr_desp_iptu']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('vlr_desp_gas', $_POST['vlr_desp_gas']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('vlr_desp_condominio', $_POST['vlr_desp_condominio']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('vlr_desp_outra_manut', $_POST['vlr_desp_outra_manut']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dsc_desp_outra_manut', $_POST['dsc_desp_outra_manut']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dsc_desp_saude_medicamento', $_POST['dsc_desp_saude_medicamento']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dsc_desp_educ_creche_cuidadora', $_POST['dsc_desp_educ_creche_cuidadora']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dsc_desp_transporte', $_POST['dsc_desp_transporte']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dsc_desp_alimenta_especial', $_POST['dsc_desp_alimenta_especial']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dsc_outra_desp_geral', $_POST['dsc_outra_desp_geral']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dsc_prgm_trab', $_POST['dsc_prgm_trab']);\n\t\t\t$alteraTbSegmtoTriagemFml->updateSegmtoTriagemFml();\n\t\t\n\t\t\t// Atualiza timestamp de tb_acomp_fml\n\t\t\t$atualizaTSTbAcompFml = Container::getModel('TbAcompFml');\n\t\t\t$atualizaTSTbAcompFml->__set('cd_fml', $_POST['cd_fml']);\n\t\t\t$atualizaTSTbAcompFml->__set('seql_acomp', $this->view->novo_seql_acomp);\n\t\t\t$atualizaTSTbAcompFml->__set('dt_acomp', $this->view->retorno['dataAcomp_formatada']);\n\t\t\t$atualizaTSTbAcompFml->updateTS();\n\n\t\t} else {\n\n\t\t\t// Insere na tabela tb_segmto_triagem_fml\n\t\t\t$insereTbSegmtoTriagemFml = Container::getModel('TbSegmtoTriagemFml');\n\t\t\t$insereTbSegmtoTriagemFml->__set('cd_fml', $_POST['cd_fml']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('seql_acomp', $this->view->novo_seql_acomp);\n\t\t\t$insereTbSegmtoTriagemFml->__set('cd_segmto_triagem', $_POST['cd_segmto']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dt_reg_seg_triagem', $this->view->retorno['dataAcomp_formatada']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('cd_tip_moradia', $_POST['cd_tip_moradia']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_dono_cedente_moradia', $_POST['dsc_dono_cedente_moradia']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_agua', $_POST['vlr_desp_agua']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_energia', $_POST['vlr_desp_energia']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_iptu', $_POST['vlr_desp_iptu']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_gas', $_POST['vlr_desp_gas']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_condominio', $_POST['vlr_desp_condominio']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('vlr_desp_outra_manut', $_POST['vlr_desp_outra_manut']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_desp_outra_manut', $_POST['dsc_desp_outra_manut']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_desp_saude_medicamento', $_POST['dsc_desp_saude_medicamento']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_desp_educ_creche_cuidadora', $_POST['dsc_desp_educ_creche_cuidadora']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_desp_transporte', $_POST['dsc_desp_transporte']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_desp_alimenta_especial', $_POST['dsc_desp_alimenta_especial']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_outra_desp_geral', $_POST['dsc_outra_desp_geral']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_prgm_trab', $_POST['dsc_prgm_trab']);\n\t\t\t$insereTbSegmtoTriagemFml->insertSegmtoTriagemFml();\n\t\t}\n\n\t\t$this->fAAlterarRTRetorno();\n\n\t}", "title": "" }, { "docid": "fb0f2a6337bcf9bc9dde5d3494438012", "score": "0.5292056", "text": "public function registrazione(){\n $view = new VUtente();\n $view->showRegistrazioneUtente();\n }", "title": "" }, { "docid": "52ff36115dc0e26f8e2726aa053217b0", "score": "0.5291741", "text": "function tarefa($txt) {\n $this->duelo->apagar_tarefa($this->dono, 'end_phase', $this->inst);\n parent::destruir();\n $this->_ativar();\n return true;\n }", "title": "" }, { "docid": "1bb3994e960c2a7a3a336f2e3dead521", "score": "0.5290227", "text": "public function fBuscaTuVehiculo () \n {\n $data2['bases'] = $this->mCategoriaVehiculoBase->fCargarBases(); // UTILIZO EL MODELO\n $data2['categorias'] = $this->mCategoriaVehiculoBase->fCargarCategorias(); // UTILIZO EL MODELO\n $this->load->view('index/vCabecera'/*, $data*/); \n $this->load->view('otrasPaginas/vBuscaTuVehiculo', $data2); // DATA2 PARA BUSCAR ES DECIR PARA CARGARLO EN SU OPTIONS\n $this->load->view('index/vPie'); \n }", "title": "" }, { "docid": "b4161f49ac836cda5638429cda93c363", "score": "0.5282716", "text": "public function mostrarVista($vista) {\n //$this->vistaData[TEMPLATE_BREADCUMBS] = $this->breadcumbs;\n $this->vistaData[TEMPLATE_VALORES_DEFECTO] = $this->valoresDefecto;\n //$this->vistaData[TEMPLATE_NOTIFICACION] = $this->notificacion;\n //$this->vistaData[TEMPLATE_MEMBRESIA] = $this->obtenerMembresiaSesion();\n\n // Transformacion de la vista al contenido del template\n $templateData[TEMPLATE_CONTENIDO] = $this->load->view($vista, $this->vistaData, true);\n\n $this->load->view('templates/backend', $templateData);\n return true;\n }", "title": "" }, { "docid": "e6d96c04d522f21046bf804fee6ed8b4", "score": "0.52819824", "text": "function AgregaJSVentaRapida(){\r\n \r\n print(\"<script>atajos();posiciona('TxtCodigoBarras');</script> \"); \r\n \r\n\t}", "title": "" }, { "docid": "ae676974b82e6b00d8a8146f06d93360", "score": "0.5281697", "text": "public function paiement()\n {\n // TODO\n }", "title": "" }, { "docid": "1afb87e9cacbe4998501edbf7d2349bd", "score": "0.5279563", "text": "public function add_visa()\n\t {\n\t\t$this->load->view('admin/pages/add_visa');\n\t }", "title": "" }, { "docid": "31c40daccb5d88309849f0f959333193", "score": "0.527948", "text": "public function actionTv()\n {\n \t// $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n \n \treturn $this->render('tv');\n }", "title": "" }, { "docid": "6ff630739600dc2b89ca1be13aafee66", "score": "0.527682", "text": "public function contra();", "title": "" }, { "docid": "ac2e7ac5d4dfa5fa0b13555cf32d8e73", "score": "0.5275141", "text": "function tsAds(){\n$this->idioma = array(\n1 => 'español',\n2 => 'ingles',\n);\n$this->reserva = array(\n1 => 'blanco',\n2 => 'color fuente',\n);\n}", "title": "" }, { "docid": "2189766bef702af6b0a0db5ecb2e6cb2", "score": "0.52692133", "text": "public function fAAlterarRTAspectoIntBase() {\n\t\t\n\t\t$this->validaAutenticacao();\t\n\n\t\t$this->view->erroValidacao = 0;\n\n\t\t$this->fAAlterarRTTratamento();\n\n\t\t// TU\t\t\n\t\t// Não há acompanhamento cadastrado\n\t\tif ($this->view->retorno['seqlAcomp'] == 0) {\n\t\t\t$this->insereAcompanhamentoRT();\n\n\t\t\t// Insere na tabela tb_segmto_triagem_fml\n\t\t\t$insereTbSegmtoTriagemFml = Container::getModel('TbSegmtoTriagemFml');\n\t\t\t$insereTbSegmtoTriagemFml->__set('cd_fml', $_POST['cd_fml']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('seql_acomp', $this->view->prox_seql_acomp);\n\t\t\t$insereTbSegmtoTriagemFml->__set('cd_segmto_triagem', $_POST['cd_segmto']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dt_reg_seg_triagem', $this->view->retorno['dataAcomp_formatada']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_aspecto_intimo', $_POST['dsc_aspecto_intimo']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_prgm_trab', $_POST['dsc_prgm_trab']);\n\t\t\t$insereTbSegmtoTriagemFml->insertSegmtoTriagemFml();\n\n\t\t\t$this->view->novo_seql_acomp = $this->view->prox_seql_acomp;\n\n\t\t} else {\n\n\t\t\t// Esta Section é chamada tanto na Conclusão do Relatório, quanto na revisão\n\t\t\tif ($_POST['origem'] == 'conclusaoRelatorio') {\n\t\t\t\t$cd_est_acomp1 = 1;\t\t\t// Pendente de Término de registro de Triagem/Visita\n\t\t\t} else {\t\t\t\t\t// == 'conclusaoRevisao'\n\t\t\t\t$cd_est_acomp1 = 2;\t\t\t// Pendente de Término de revisão\n\t\t\t}\n\n\t\t\t// Obtem Atividade e Estado do Acompanhamento do Sequancial de Acompanhamento Atual\n\t\t\t$dadosAcompBase = Container::getModel('TbAcompFml');\n\t\t\t$dadosAcompBase->__set('cd_fml', $_POST['cd_fml']);\n\t\t\t$dadosAcompBase->__set('seql_acomp', $this->view->retorno['seqlAcomp']);\n\t\t\t$dadosAcomp = $dadosAcompBase->getAtvdAcomp();\t\t\t\n\n\t\t\t// Já houve triagem anterior e é a que está na base atualmente. Tem que se criar uma nova\n\t\t\tif ($dadosAcomp['cd_est_acomp'] != $cd_est_acomp1) {\n\t\t\t\t$this->insereAcompanhamentoRT();\n\n\t\t\t\t$this->view->novo_seql_acomp = $this->view->prox_seql_acomp;\n\n\t\t\t} else {\n\t\t\t\t$this->view->novo_seql_acomp = $this->view->retorno['seqlAcomp'];\n\t\t\t}\n\t\t}\n\n\t\t// Verificar se há dados de Triagem, pois pode ser que foi gravado somente tb_acomp_fml, por enquanto\n\t\t$verificaTriagem = Container::getModel('TbSegmtoTriagemFml');\n\t\t$verificaTriagem->__set('codFamilia', $_POST['cd_fml']);\n\t\t$verificaTriagem->__set('seqlAcomp', $this->view->novo_seql_acomp);\n\t\t$verificaTriagem->__set('codSegmtoTriagem', $_POST['cd_segmto']);\n\t\t$verificaTriagemBase = $verificaTriagem->getQtdSegmentoTriagem();\n\n\t\tif ($verificaTriagemBase['qtde'] > 0) {\n\t\t\t// Altera na tabela tb_segmto_triagem_fml\n\t\t\t$alteraTbSegmtoTriagemFml = Container::getModel('TbSegmtoTriagemFml');\n\t\t\t$alteraTbSegmtoTriagemFml->__set('cd_fml', $_POST['cd_fml']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('seql_acomp', $this->view->novo_seql_acomp);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('cd_segmto_triagem', $_POST['cd_segmto']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dt_reg_seg_triagem', $this->view->retorno['dataAcomp_formatada']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dsc_aspecto_intimo', $_POST['dsc_aspecto_intimo']);\n\t\t\t$alteraTbSegmtoTriagemFml->__set('dsc_prgm_trab', $_POST['dsc_prgm_trab']);\n\t\t\t$alteraTbSegmtoTriagemFml->updateSegmtoTriagemFml();\n\n\t\t\t// Atualiza timestamp de tb_acomp_fml\n\t\t\t$atualizaTSTbAcompFml = Container::getModel('TbAcompFml');\n\t\t\t$atualizaTSTbAcompFml->__set('cd_fml', $_POST['cd_fml']);\n\t\t\t$atualizaTSTbAcompFml->__set('seql_acomp', $this->view->novo_seql_acomp);\n\t\t\t$atualizaTSTbAcompFml->__set('dt_acomp', $this->view->retorno['dataAcomp_formatada']);\n\t\t\t$atualizaTSTbAcompFml->updateTS();\n\n\t\t} else {\n\n\t\t\t// Insere na tabela tb_segmto_triagem_fml\n\t\t\t$insereTbSegmtoTriagemFml = Container::getModel('TbSegmtoTriagemFml');\n\t\t\t$insereTbSegmtoTriagemFml->__set('cd_fml', $_POST['cd_fml']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('seql_acomp', $this->view->novo_seql_acomp);\n\t\t\t$insereTbSegmtoTriagemFml->__set('cd_segmto_triagem', $_POST['cd_segmto']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dt_reg_seg_triagem', $this->view->retorno['dataAcomp_formatada']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_aspecto_intimo', $_POST['dsc_aspecto_intimo']);\n\t\t\t$insereTbSegmtoTriagemFml->__set('dsc_prgm_trab', $_POST['dsc_prgm_trab']);\n\t\t\t$insereTbSegmtoTriagemFml->insertSegmtoTriagemFml();\n\t\t}\n\n\t\t$this->fAAlterarRTRetorno();\n\n\t}", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "ac4d4a9f7aea04b62486d6937b94c52a", "score": "0.0", "text": "public function store(Request $request)\n { \n $id=Auth::user()->id;\n // dd($request->menu[0]);\n // $nav=new Navigation;\n\n // for ($i=0; $i <count($request->menu) ; $i++) { \n // $nav->nav_li=$request->menu[$i];\n // $nav->user_id=$id;\n // $nav->save();\n\n // }\n $data=array();\n for ($i=0; $i <count($request->menu) ; $i++) { \n # code...\n \n array_push($data, array('user_id'=>$id, 'nav_li'=>$request->menu[$i]));\n }\n //dd($data);\nNavigation::insert($data);\n$model=Restaurant::where('user_id',$id)->first();\n$menu=Navigation::where('user_id',$id)->get();\n // dd($model);\n return view('/home',['res'=>$model,'menu'=>$menu]);\n // return view('home');\n\n // dd($request->menu);\n //\n }", "title": "" } ]
[ { "docid": "643f51843534c99b002271c413f71061", "score": "0.7149016", "text": "public function store()\n {\n $this->storage->set($this);\n\n }", "title": "" }, { "docid": "aba977442c12d8193d7ce12cb2a46e96", "score": "0.669261", "text": "public function store ()\n {\n $this->_update_login ();\n $this->_pre_store ();\n\n if ($this->exists ())\n {\n $this->_update ();\n }\n else\n {\n $this->_create ();\n }\n }", "title": "" }, { "docid": "75600e5d65c2156987ff7cb140e14a4b", "score": "0.6621582", "text": "public function store() {\n $fileService = $this->getFileService();\n $filename = $this->getCacheDirectory() . $this->generateCacheablefilename();\n $fileService->saveFile($filename, $this->resource->getContent());\n }", "title": "" }, { "docid": "98fadc36fd3a4194a25023de21dae9ff", "score": "0.6428514", "text": "public function save($resource);", "title": "" }, { "docid": "9181113e9ca478f57b376bb60189432a", "score": "0.639531", "text": "public function store()\n\t{\n\t\t//\n\t\t$inputs = Input::all();\n\t\t$validator = Validator::make($inputs , \\App\\Resource::$rules);\n\n\t\tif($validator->passes()){\n\t\t\t$destinationPath = 'pictures/'; // upload path\n\t\t\t$extension = Input::file('image')->getClientOriginalExtension(); // getting image extension\n\t\t\t$fileName = rand(11111,99999). '_' . time() . '.'.$extension; // renameing image\n\t\t\tImage::make(Input::file('image')->getRealPath())->resize(300, null,function($constrain){\n\t\t\t\t$constrain->aspectRatio();\n\t\t\t})->save($destinationPath . $fileName);\n\t\t\t// Input::file('image')->move($destinationPath, $fileName); // uploading file to given path\n\t\t\t$inputs['image'] = $fileName;\n\t\t\t\\App\\Resource::create($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": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "bd7a2528e89d1c3f43656fa9d3a11bc3", "score": "0.63575023", "text": "public function store(StoreResourceRequest $request): JsonResponse\n {\n $resource = new Resource;\n $resource->fill($request->all());\n if ($request->has('url')) {\n $resource->url = $request->file('url')->store('articles', 'article');\n }\n $resource->saveOrFail();\n return $this->api_success([\n 'data' => new ResourceArticleResource($resource),\n 'message' => __('pages.responses.created'),\n 'code' => 201\n ], 201);\n }", "title": "" }, { "docid": "af1871e1a1f1d758082bcf4ebeab10eb", "score": "0.6356851", "text": "public function saveStorage()\n {\n $this->storage->save($this->getProduct());\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": "" } ]
ab0456da6ae68ed94bd2c52224830ef5
Inline the module css.
[ { "docid": "bd4a9748d4ffa33f3a2c0ce5d2218c83", "score": "0.62515515", "text": "function toolbelt_styles( $module ) {\n\n\tif ( defined( 'TOOLBELT_DISABLE_STYLES' ) ) {\n\t\treturn;\n\t}\n\n\t$css_filter = sprintf( 'toolbelt_hide_%s_styles', $module );\n\n\tif ( apply_filters( $css_filter, false ) ) {\n\t\treturn;\n\t}\n\n\t$path = TOOLBELT_PATH . 'modules/' . $module . '/style.min.css';\n\n\techo '<style name=\"toolbelt-' . esc_attr( $module ) . '\">';\n\trequire_once $path;\n\techo '</style>';\n\n}", "title": "" } ]
[ { "docid": "9f33ef69fc3fd0ec8f085ed709744b79", "score": "0.74298674", "text": "public function insert_inline_css() {\n }", "title": "" }, { "docid": "9f33ef69fc3fd0ec8f085ed709744b79", "score": "0.74298674", "text": "public function insert_inline_css() {\n }", "title": "" }, { "docid": "aba334d1201f14c00a2eed1993389eec", "score": "0.6997628", "text": "public function adminCSS()\n\t{\n\t\t/*\n\t\t?>\n\t\t<style>\n\t\tbody {\n\t\tborder: 2px solid red;\n\t\t}\n\t\t</style>\n\t\t<?php\n\t\t*/\n\t}", "title": "" }, { "docid": "5aabb8aaa4e33a5e1abac1917d320667", "score": "0.68110716", "text": "function sienna_mikado_print_custom_css()\n {\n $custom_css = sienna_mikado_options()->getOptionValue('custom_css');\n\n if ($custom_css !== '') {\n wp_add_inline_style('sienna_mikado_modules', $custom_css);\n }\n }", "title": "" }, { "docid": "5fc70e02f4267a080e4633a0c0be49ca", "score": "0.6794488", "text": "public function admin_css() {\n\t\techo '<style>\n\t\t\t#dashboard_right_now .comment-count,\n\t\t\t#dashboard_right_now .comment-mod-count,\n\t\t\t#latest-comments,\n\t\t\t#welcome-panel .welcome-comments,\n\t\t\t.user-comment-shortcuts-wrap {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\t\t</style>';\n\t}", "title": "" }, { "docid": "f195032e057f15bd7cbac56ebd4811ea", "score": "0.6780437", "text": "public function addCssInline() {\n return $this->generateResponse('edit-inline');\n }", "title": "" }, { "docid": "95a3186661f462a2f6e053c452f8ad43", "score": "0.6769931", "text": "public static function admin_inline_css() {\n\t\techo '<style>div#setting-error-tgmpa{display:block;}</style>';\n\t}", "title": "" }, { "docid": "dd64a7f740c326ac4dff7e21da17d8b1", "score": "0.6744845", "text": "public function generateCSS()\n {\n echo '<!--Customizer CSS-->' . PHP_EOL;\n echo '<style type=\"text/css\" class=\"theme-mod-' . $this->getName() . '\">' . PHP_EOL;\n echo '\n :root {\n --' . $this->getName() . ': ' . $this->getValue() . ';\n }\n ';\n echo '</style>' . PHP_EOL;\n echo '<!--/Customizer CSS-->' . PHP_EOL;\n\n\n }", "title": "" }, { "docid": "3a5e55c1b9a923c83eef8dce789b133e", "score": "0.6718425", "text": "public function addCSS()\n {\n }", "title": "" }, { "docid": "d5e2360df8500576faf10c87c8f636f5", "score": "0.66795486", "text": "public function Css(){\n }", "title": "" }, { "docid": "3c0f474ca02427ca9fb3b83201970c6b", "score": "0.6655782", "text": "public function admin_head_css() {\n\t\t?>\n\t\t<style type=\"text/css\">\n\t\t\t.appearance_page_shop-isle-pro-welcome li[data-tab-id=\"sites_library\"] {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\t.appearance_page_shop-isle-pro-welcome #changelog .changelog {\n\t\t\t\tmargin-left: 30px;\n\t\t\t}\n\n\t\t\t.appearance_page_shop-isle-pro-welcome #changelog .changelog h2 {\n\t\t\t\ttext-align: left;\n\t\t\t\tfont-size: 23px;\n\t\t\t\tfont-weight: 500;\n\t\t\t\tmargin-left: -20px;\n\t\t\t}\n\t\t</style>\n\t\t<?php\n\t}", "title": "" }, { "docid": "a21074f392878bd3c2f22a924d162a45", "score": "0.6589739", "text": "function addDojoCssLines() {\n\t\t\t\n\t\t\techo '<style type=\"text/css\">';\n\t\t\t$adminOptions = $this->getAdminOptions();\n\t\t\t\t\t\t\n\t\t\t//var_dump($adminOptions);\n\t\t\t$require = \"\";\n\t\t\tfor ($i=0;$i<count($adminOptions['css']);$i++) {\n\t\t\t\techo stripslashes(trim($adminOptions['css'][$i])).\"\\n\";\n\t\t\t}\n\t\t\t\n\t\t\techo '</style>';\n\t\t}", "title": "" }, { "docid": "4dd7283960c4db953ca984f3a0cec91e", "score": "0.6589679", "text": "public function inlineStyles();", "title": "" }, { "docid": "6074f15d75121d9534453f86ff9e59d0", "score": "0.65426785", "text": "function includeCSS()\n\t{\n\t\t// set style sheet\n\t\t$this->tpl->setCurrentBlock(\"ContentStyle\");\n\t\t$this->tpl->setVariable(\"LOCATION_CONTENT_STYLESHEET\",\n\t\t\t$this->object->getContentStylePath($this->object->getId()));\n\t\t$this->tpl->parseCurrentBlock();\n\t}", "title": "" }, { "docid": "cc625a9793b5674cddec30885e3e493e", "score": "0.6537493", "text": "function displayStyles() {\n\t\t\tprint \"<link rel='stylesheet' href='css/displayItems.css'>\";\n\t\t\tinclude \"views/displayHead.php\";\n\t\t}", "title": "" }, { "docid": "cba5cebc76d6830c7060dd4c157d9f0e", "score": "0.65064687", "text": "private function _addCss() {\r\n JHtml::styleSheet( Sh404sefHelperGeneral::getComponentUrl() . '/assets/css/config.css');\r\n\r\n }", "title": "" }, { "docid": "ceaefb143adb48087caa3391495b6f98", "score": "0.65060866", "text": "public function custom_css() {\n\t\t$css = get_theme_mod( 'css', '' );\n\t\tif ( ! empty( $css ) ) {\n\t\t\twp_add_inline_style( 'maera', $css );\n\t\t}\n\t}", "title": "" }, { "docid": "85da8479d55c16447597e5715e479ab6", "score": "0.6492117", "text": "public function formatCSS()\n {\n echo $this->head;\n echo '<link rel=\"stylesheet\" href=\"helpFile/desktop.css\">';\n echo $this->headClose;\n echo '<h1>Good morning!</h1>';\n }", "title": "" }, { "docid": "903d21a67bb362b53bb58529ab2cec85", "score": "0.6469224", "text": "function ul_pro_admnin_css() {\n\t\techo \"\n\t\t<style type='text/css'>\n\t\t\t.woo_fieldset {border: 1px solid #ebebeb;padding: 5px 20px;background: #fff;margin-bottom: 40px;-webkit-box-shadow: 4px 4px 10px 0px rgba(50, 50, 50, 0.1);-moz-box-shadow: 4px 4px 10px 0px rgba(50, 50, 50, 0.1);box-shadow: 4px 4px 10px 0px rgba(50, 50, 50, 0.1);}\n\t\t\t.woo_fieldset .sec-title {border: 1px solid #ebebeb;background: #fff;color: #d54e21;padding: 2px 4px;}\n\t\t</style>\";\n\t}", "title": "" }, { "docid": "366297baee27fc1f619764ec44edfa75", "score": "0.64669394", "text": "function ay_custom_code_css_in_head() {\n\tprintf(\n\t\t'<style>%1$s</style>',\n\t\tget_field('extra_css', 'option')\n\t);\n}", "title": "" }, { "docid": "61ac2ec3f575cada438fec8df6b21a31", "score": "0.6464877", "text": "function addCommonCss();", "title": "" }, { "docid": "3bb99b5ebf4fd82dd0ea61115a8c0c45", "score": "0.6428098", "text": "public function adminCSS()\n {\n ?>\n <style>\n .SimpleHistory__diff.SimpleHistory__diff {\n border-spacing: 1px;\n }\n\n .SimpleHistory__diff.SimpleHistory__diff td,\n .SimpleHistory__diff.SimpleHistory__diff td:first-child {\n text-align: left;\n white-space: normal;\n font-size: 13px;\n line-height: 1.3;\n padding: 0.25em 0.5em;\n color: rgb(75, 75, 75);\n font-family: \"Open Sans\", sans-serif;\n }\n </style>\n <?php\n }", "title": "" }, { "docid": "d02b828157053beee5cacd42c9fe7ead", "score": "0.6413075", "text": "public function css();", "title": "" }, { "docid": "3bf6985467c202bca326c10c121983c9", "score": "0.64091325", "text": "function coffee_admin_head() {\r\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"' .plugins_url('coffee-admin.css', __FILE__). '\">';\r\n}", "title": "" }, { "docid": "e21fe924869bd48fb927081f65cf34a7", "score": "0.6398618", "text": "public function admin_css() {\n\t\t\treturn '\n\t\t\t\t#'.$this->get_field_id('content').' {\n\t\t\t\t\theight: 300px;\n\t\t\t\t}\n\t\t\t';\n\t\t}", "title": "" }, { "docid": "82f06878eb6e496cbb76be72969b09dd", "score": "0.6397076", "text": "public function load_admin_css() {\r\n\r\n\t\t// Bail if we aren't on the uploads (i.e. media ) page.\r\n\t\tif ( false === $check = self::check_current_screen() ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Echo out the CSS.\r\n\t\techo '<style media=\"screen\" type=\"text/css\">' . \"\\n\";\r\n\t\techo 'a.media-url-click { outline: 0 none; box-shadow: none; }' . \"\\n\";\r\n\t\techo 'a.media-url-click.media-url-open { font-weight: bold; }' . \"\\n\";\r\n\t\techo 'div.media-url-box { margin: 10px 0; }' . \"\\n\";\r\n\t\techo '</style>';\r\n\t}", "title": "" }, { "docid": "f8937310dc8521c5c98629fe37d6177e", "score": "0.6381986", "text": "public function css()\n\t{\n\t\treturn $this->view->setVar('prefix', $this->config->prefix)->render('Tatter\\Alerts\\Views\\css');\n\t}", "title": "" }, { "docid": "3da6c5529fdb4aefc72b4d33b8be6403", "score": "0.6371304", "text": "public static function stylesheet()\n {\n return [\n asset('assets/member/administration/css/module.min.css'),\n ];\n }", "title": "" }, { "docid": "24d55dac43670ab64991842147a22db5", "score": "0.6352057", "text": "public function customStyles()\n\t{\t\t\n\t// calls a 2column layout \n\t\t echo \"<link rel=\\\"stylesheet\\\" href=\\\"styles/YAML/screen/custom/bw_basemod_2col.css\\\" type=\\\"text/css\\\"/>\";\n\t\t echo \"<link rel=\\\"stylesheet\\\" href=\\\"styles/YAML/screen/custom/index.css\\\" type=\\\"text/css\\\"/>\";\n\t}", "title": "" }, { "docid": "545172926eb1cc82b9e65e00669c8111", "score": "0.63391155", "text": "function showStylesheets()\n {\n parent::showStylesheets();\n \t$this->cssLink('css/settings.css','default','screen, projection');\n $this->cssLink('css/jcrop.css','default','screen, projection, tv');\n }", "title": "" }, { "docid": "4795bc13a206e1402f73cb18652aab35", "score": "0.63273424", "text": "function jwl_admin_style() {\n\tglobal $pagenow;\n\tif ($pagenow == \"plugins.php\") {\n\t\trequire('includes/style.php');\n\t}\n}", "title": "" }, { "docid": "4925fd3d74b0ee54681208d8b71f814c", "score": "0.63090813", "text": "public function styles() {\n if (is_controller('by_default') && is_method('index')) {\n add_style('assets/css/auth.min');\n } else {\n add_style('assets/css/common.min');\n add_style('assets/css/site.min');\n }\n }", "title": "" }, { "docid": "e2cf8f50412d7bace749f37d619c5351", "score": "0.62622964", "text": "public static function stylesheet()\n {\n return [\n asset('assets/content/administration/css/module.min.css'),\n ];\n }", "title": "" }, { "docid": "33ca991d238b05834dd2ffc269c254da", "score": "0.6254801", "text": "private function css()\n {\n $conf = $this->conf[ 'res.' ][ 'css.' ][ 'tx_radialsearch_pi1.' ];\n $path_tsConf = 'res.css.tx_radialsearch_pi1';\n $content = $this->cssInline( $conf, $path_tsConf );\n\n return $content;\n }", "title": "" }, { "docid": "dc564fb0ed96eb88b163a81384655b5e", "score": "0.6247084", "text": "function output_css_for_css_edit($files) {\n global $CFG;\n $toreplace = array($CFG->dirroot, $CFG->themedir);\n foreach ($files as $file) {\n $shortname = str_replace($toreplace, '', $file);\n echo '/* @group ' . $shortname . \" */\\n\\n\";\n if (strpos($file, '.css') !== false) {\n echo '@import url(\"' . $file . '\");'.\"\\n\\n\";\n } else {\n @include_once($file);\n }\n echo \"/* @end */\\n\\n\";\n }\n}", "title": "" }, { "docid": "0a9158019da26978e744bf63ef81dc7a", "score": "0.6241063", "text": "protected function inline_css()\r\n {\r\n ob_start();\r\n /**\r\n * Header side menu \r\n *\r\n */\r\n $header_sidewidth = overcome_get_theme_opt('header_sidewidth', ['width' => ''] );\r\n $header_sidewidth_page = overcome_get_page_opt('header_sidewidth', ['width' => ''] );\r\n if($header_sidewidth_page['width'] !== 'px' && $header_sidewidth_page['width'] !== $header_sidewidth['width']){\r\n $header_sidewidth['width'] = $header_sidewidth_page['width'];\r\n }\r\n if('' !== $header_sidewidth['width'] && 'px' !== $header_sidewidth['width']){\r\n echo '@media (min-width: 1200px){';\r\n printf(\r\n 'body.header-3:not(.side-header-ontop){\r\n padding-%s: %s !important;\r\n }', overcome_align(), esc_attr($header_sidewidth['width'])\r\n );\r\n // Header side menu width\r\n printf(\r\n '.side-header{\r\n width: %s !important;\r\n }', esc_attr($header_sidewidth['width'])\r\n );\r\n // Fix loading position\r\n printf(\r\n 'body.header-3 #ef5-loading{\r\n margin-%s: calc(%s / -2) !important;\r\n }', overcome_align(), esc_attr($header_sidewidth['width'])\r\n );\r\n echo '}';\r\n }\r\n /**\r\n * Site Bordered\r\n */\r\n $site_layout = overcome_get_opts('site_layout', '');\r\n $site_bordered = overcome_get_opts('site_bordered_w',['padding-top'=>'30px','padding-right'=>'30px','padding-bottom'=>'30px','padding-left'=>'30px','units'=>'px']);\r\n $_site_bordered = $site_bordered['padding-top'].' '.$site_bordered['padding-right'].' '.$site_bordered['padding-bottom'].' '.$site_bordered['padding-left'];\r\n if($site_layout === 'bordered'){\r\n echo '@media (min-width: 1200px){';\r\n printf(\r\n '.site-bordered{\r\n padding: %s !important;\r\n }', esc_attr($_site_bordered)\r\n );\r\n echo '}';\r\n }\r\n\r\n return ob_get_clean();\r\n }", "title": "" }, { "docid": "3abfcdbe4c5e400f8df9272144f5f3ce", "score": "0.62075317", "text": "function pw_admin_css() {\n\t\techo '<link rel=\"stylesheet\" href=\"'.PW_THEME_URL.'/admin/css/admin-style.css\" />'.\"\\n\";\n\t\twp_enqueue_script('pw_admin_effects_js');\n\t}", "title": "" }, { "docid": "62a467f900ad0f469953d6fc0d1a75b2", "score": "0.61832964", "text": "public function customize_admin()\n {\n\n wp_register_style( 'admin_css', get_template_directory_uri() . '/style-admin.css', false, '1.0.0' );\n\n }", "title": "" }, { "docid": "bf0e65553bf1d590d4e35ee16a3187b3", "score": "0.6175548", "text": "function setupSkinUserCss(OutputPage $out) {\n\t\tparent::setupSkinUserCss($out);\n\t\t$out->addModuleStyles('skins.webplatform');\n\t}", "title": "" }, { "docid": "c62277092f6933f5d7f2a0d03a0e41e2", "score": "0.61727434", "text": "public function adminStyle() : void\n {\n echo '\n <style>\n /* Main column width */\n .wp-block {\n max-width: 100% !important;\n }\n \n /* Width of \"wide\" blocks */\n .wp-block[data-align=\"wide\"] {\n max-width: 1080px;\n }\n \n /* Width of \"full-wide\" blocks */\n .wp-block[data-align=\"full\"] {\n max-width: none;\n }\t\n .populer-products { background:#f2f2f2;display:flex;align-items:center;text-align:center;width:100%; }\n .populer-products .row.justify-item-list{ display:flex;justify-content: space-between;}\n .populer-products .col { padding:20px }\n .productivity-container{background-color:#f2f2f2;padding:40px 0}.productivity-container__item{display:flex;align-items:center}.productivity-container__item__icon{margin-right:20px}.productivity-container__item__icon img{width:90px}.productivity-container__item__text h2{font-size:1.4rem;font-weight:600;letter-spacing:-1px}.productivity-container__item__text h3{font-size:1.1rem}.productivity-container__item:hover img{transform:rotate(-4deg)}\n </style>\n ';\n }", "title": "" }, { "docid": "434f610f506a77d59f8aca81c538b098", "score": "0.6162259", "text": "public function semanticUiCSS()\n {\n mvcEnqueueStyle(MVC_SOURCES_URL .\"css/style.css\");\n mvcEnqueueStyle(MVC_ASSETS_URL . \"semantic/semantic.min.css\");\n mvcEnqueueStyle(MVC_ASSETS_URL . \"semantic/components/sidebar.css\");\n mvcEnqueueStyle(MVC_ASSETS_URL . \"jqueryUI/jquery-ui.css\");\n }", "title": "" }, { "docid": "44db1ae7339f6da63711b071a45fd867", "score": "0.6142032", "text": "function add_admin_css() {\r\n\t\techo '<link href=\"'.get_bloginfo('template_directory').'/assets/admin/css/admin-style.css\" rel=\"stylesheet\" media=\"all\" />';\r\n\t\techo '<script src=\"'.get_stylesheet_directory_uri().'/assets/admin/js/tab-function.js\"></script>';\r\n\r\n\t}", "title": "" }, { "docid": "07027899b2d327b08274727859ecba45", "score": "0.6133684", "text": "public function adminHead(){\n $css = SNICKER_DOMAIN . \"admin/css/\";\n ob_start();\n ?>\n <link type=\"text/css\" rel=\"stylesheet\" href=\"<?php echo $css; ?>admin.snicker.css\" />\n <?php\n $content = ob_get_contents();\n ob_end_clean();\n return $content;\n }", "title": "" }, { "docid": "de95e24e52127b4daaa50c9c876d4494", "score": "0.61268514", "text": "function editorStyle()\n {\n add_editor_style(apply_filters('editor', 'assets/dist/css/editor.min.css'));\n }", "title": "" }, { "docid": "5c9adca543abe913312ba1df5a79a1b3", "score": "0.6121739", "text": "public function add_styles() {\r\n\t?>\r\n\t\tdl dt {\r\n\t\t\tdisplay: inline-block;\r\n\t\t\tfont-weight: bold;\r\n\t\t}\r\n\r\n\t\tdl dd {\r\n\t\t\tdisplay: inline;\r\n\t\t\tmargin-left: 5px;\r\n\t\t}\r\n\r\n\t\tdl dd:after {\r\n\t\t\tcontent: \"\";\r\n\t\t\tdisplay: block;\r\n\t\t}\r\n\t<?php\r\n\t}", "title": "" }, { "docid": "dfe097d69b0204f90911d91e816d856b", "score": "0.61208296", "text": "function dneers_print_css() {\n\tglobal $dneers_load_css;\n \n\t// this variable is set to TRUE if the short code is used on a page/post\n\tif ( ! $dneers_load_css )\n\t\treturn; // this means that neither short code is present, so we get out of here\n \n\twp_print_styles('dneers-form-css');\n}", "title": "" }, { "docid": "f4135da239980029628d9e7693acf1ec", "score": "0.610949", "text": "public function outputStyles() {\n\t\t?>\n\t\t<style type=\"text/css\">\n\t\t\t\n\t\t\t.form-field input.checkbox,\n\t\t\t.form-field input.radio {\n\t\t\t\twidth: 20px;\n\t\t\t}\n\t\t\t\n\t\t\tlabel.side {\n\t\t\t\tdisplay: inline;\n\t\t\t}\n\t\t\t\n\t\t\t.inherit-toggle label {\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\t\n\t\t\t#wpcontent select.multi {\n\t\t\t\theight: 6em;\n\t\t\t}\n\t\t\t\n\t\t</style>\n\t\t<?php\n\t}", "title": "" }, { "docid": "c5d7f73159e5bfd8f4fa57fc1ac2ee7b", "score": "0.6099485", "text": "function jma_backend_custom_css()\n{\n echo '<link rel=\"stylesheet\" href=\"'.plugin_dir_url(__FILE__).'css/back-side.css\" type=\"text/css\" />';\n echo \"\\n\"; // line break for neatness\n}", "title": "" }, { "docid": "02c6a956c21b33751a1b500770c1fa09", "score": "0.6092621", "text": "public function compileStyle();", "title": "" }, { "docid": "ed3d324622c62d2e1d4f2083d0e33cd7", "score": "0.60856676", "text": "public function customHead(): void\n {\n if (self::$cssAlreadyIncluded) {\n return;\n }\n self::$cssAlreadyIncluded=true;\n ?>\n <style>\n <?php\n require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'table.css';\n ?>\n </style>\n <?php\n }", "title": "" }, { "docid": "adbd4eaf0107b8709fc1a0d7fc7b0e8c", "score": "0.6077933", "text": "function setupSkinUserCss( OutputPage $out ) {\n\t\tparent::setupSkinUserCss( $out );\n\t\t$out->addModuleStyles( array(\n\t\t\t/* mediawiki.skinning.interface is the default interface theme*/\n\t\t\t// 'mediawiki.skinning.interface',\n\t\t\t/* 'skins.bootstrap' is the name you used in your skin.json file */\n\t\t\t'skins.bootstrap'\n\t\t) );\n\t}", "title": "" }, { "docid": "55e7c6ab69fc0b0d3227c7cbd23441a4", "score": "0.6077584", "text": "public function css(){\n\t\tinclude_once ROOT . 'views' . DS . 'common' . DS .'css.phtml';\n\n\t\t//CSS de cada componente\n\t\t\tif($this->css = Component::getCss()){\n\t\t\t\tforeach ($this->css as $css){\n\t\t\t\t\t//Ruta local del componente BASEURL/components/component/public/views/css\n\t\t\t\t\tif($css->allowedviews){//NO VA EN TODAS LAS VISTAS, verifica que se pueda mostrar en esa vista ya sean file o url\t\t\n\t\t\t\t\t\tforeach($css->allowedviews->view as $view){\n\t\t\t\t\t\t\tif($view == VIEW){\n\t\t\t\t\t\t\t\tforeach ($css->url as $url)\n\t\t\t\t\t\t\t\t\techo PHP_EOL.'<link rel=\"StyleSheet\" href=\"'.$url.'\" type=\"text/css\">';\n\t\t\t\t\t\t\t\tforeach ($css->file as $file)\n\t\t\t\t\t\t\t\t\techo PHP_EOL.'<link rel=\"StyleSheet\" href=\"'.BASE_URL.'components/'.NAME_COM.'/public/css/'.$file.'\" type=\"text/css\">';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{//VA EN TODAS LAS VISTAS, no está definido views\n\t\t\t\t\t\tforeach ($css->url as $url)\n\t\t\t\t\t\t\techo PHP_EOL.'<link rel=\"StyleSheet\" href=\"'.$url.'\" type=\"text/css\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tforeach ($css->file as $file)\n\t\t\t\t\t\t\techo PHP_EOL.'<link rel=\"StyleSheet\" href=\"'.BASE_URL.'components/'.NAME_COM.'/public/css/'.$file.'\" type=\"text/css\">';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\techo PHP_EOL.PHP_EOL;\n\t}", "title": "" }, { "docid": "f22c480f1fce3b14c21785d8b3b8aa31", "score": "0.60769403", "text": "function itex_s_admin_css()\n\t{\n\t\t?>\n\t\t<style type='text/css'>\n\t\t\t#edit_tabs li { \n\t\t\t\tlist-style-type: none;\n\t\t\t\tfloat: left; \n\t\t\t\tmargin: 2px 5px 0 0; \n\t\t\t\tpadding-left: 15px; \n\t\t\t\ttext-align: center;\n\t\t\t} \n\n\t\t\t#edit_tabs li a { \n\t\t\t\tdisplay: block; \n\t\t\t\tfont-size: 85%; \n\t\t\t\tfont-family: \"Lucida Grande\", \"Verdana\";\n\t\t\t\tfont-weight: bold; \n\t\t\t\tfloat: left; \n\t\t\t\tcolor: #999;\n\t\t\t\tborder-bottom: none;\n\t\t\t\tpadding: 2px 15px 2px 0;\t\n\t\t\t\twidth: auto !important;\n\t\t\t\twidth: 50px; \n\t\t\t\tmin-width: 50px; \n\t\t\t\ttext-shadow: white 0 1px 0; \n\t\t\t} \n\n\t\t\t#edit_sections .section {\n\t\t\t\tbackground: url('images/bg_tab_section.gif') no-repeat top left;\n\t\t\t\tpadding-left: 10px;\n\t\t\t\tpadding-top: 15px;\n\t\t\t\theight: auto !important;\n\t\t\t\theight: 200px; \n\t\t\t\tmin-height: 200px;\n\t\t\t\tdisplay: none;\n\t\t\t} \n\n\t\t\t#edit_sections .section ul {\n\t\t\t\tpadding-left: 10px;\n\t\t\t\twidth: 500px;\n\t\t\t}\n\n\t\t\t#edit_sections .current {\n\t\t\t\tdisplay: block;\n\t\t\t} \n\n\t\t\t#edit_sections .section .section_warn {\n\t\t\t\tbackground: #FFFFE0;\n\t\t\t\tborder: 1px solid #EBEBA9;\n\t\t\t\tpadding: 8px;\n\t\t\t\tfloat: right;\n\t\t\t\twidth: 300px;\n\t\t\t\tfont-size: 11px;\n\t\t\t} \n\t\t</style>\n\t\t<?php\n\t}", "title": "" }, { "docid": "6b5ae6e1236f257230d79f7b8dd3bd95", "score": "0.60755116", "text": "function hi_admin_print_styles()\n\t{\n\t\t// minicolors: colorpicker\n\t\twp_enqueue_style( 'hi-minicolors', HI_URL . 'assets/css/minicolors/jquery.minicolors.css', false, HI_VERSION );\n\n\t\t// prettyPhoto\n\t\twp_enqueue_style( 'hi-pretty-photo', HI_URL . 'assets/css/pretty-photo/css/prettyPhoto.css', false, HI_VERSION );\n\n\t\t// icon font admin\n\t\twp_enqueue_style( 'font-backend', HI_URL . 'assets/css/font-backend/style.css', false, HI_VERSION );\n\n\t\t// x-editable plugin\n\t\twp_enqueue_style( 'x-editable', HI_URL . 'assets/css/x-editable/css/bootstrap-editable.css', false, HI_VERSION );\n\n\t\t// twitter bootstrap\n\t\twp_enqueue_style( 'hi-bootstrap', HI_URL . 'assets/css/hi-bootstrap.css', false, HI_VERSION );\n\n\t\t// builder interface\n\t\twp_enqueue_style( 'hi-interface', HI_URL . 'assets/css/hi-backend.css', false, HI_VERSION );\n\t}", "title": "" }, { "docid": "ba32e3d17f676cc07be72c86d47d1860", "score": "0.607438", "text": "function css() {\n\tif(defined('DOC_CSS')) {\n\t\t\n\t\t$styles = unserialize (DOC_CSS);\n\t\t\n\t\tforeach($styles as $style) {\n\t\t\tprintf('<link rel=\"stylesheet\" href=\"%s'. DIRECTORY_SEPARATOR .'assets'. DIRECTORY_SEPARATOR .'css'. DIRECTORY_SEPARATOR .'%s.css\">', get_path(), $style);\n\t\t}\n\t\t\n\t}\n\telse {\n\t\tprintf('<link rel=\"stylesheet\" href=\"%s'. DIRECTORY_SEPARATOR .'assets'. DIRECTORY_SEPARATOR .'css'. DIRECTORY_SEPARATOR .'bootstrap.min.css\">', get_path());\n\t\tprintf('<link rel=\"stylesheet\" href=\"%s'. DIRECTORY_SEPARATOR .'assets'. DIRECTORY_SEPARATOR .'css'. DIRECTORY_SEPARATOR .'style.css\">', get_path());\n\t}\n\t$plugs = hook('css', array());\n\t//echo print_r($plugs, true);\n\tif(is_array($plugs)) {\n\t\tforeach($plugs as $plug) {\n\t\t\tforeach($plug as $style)\n\t\t\t\tprintf('<link rel=\"stylesheet\" href=\"%s\">', $style);\n\t\t}\n\t}\n\t\n}", "title": "" }, { "docid": "8f22866ea98393eb3e722b7206715223", "score": "0.605992", "text": "public function admin_print_styles() {\n\t\t?>\n\t\t<style type=\"text/css\">\n\t\t\ti.mce-i-bailey-button-button {\n\t\t\t\tfont: normal 20px/1 'dashicons';\n\t\t\t\tpadding: 0;\n\t\t\t\tvertical-align: top;\n\t\t\t\tspeak: none;\n\t\t\t\t-webkit-font-smoothing: antialiased;\n\t\t\t\t-moz-osx-font-smoothing: grayscale;\n\t\t\t\tmargin-left: -2px;\n\t\t\t\tpadding-right: 2px;\n\t\t\t}\n\t\t\ti.mce-i-bailey-button-button:before {\n\t\t\t\tcontent: '\\f502';\n\t\t\t}\n\t\t</style>\n\t<?php\n\t}", "title": "" }, { "docid": "8d3b42d449b0619c0dbaa9bdeacd26f9", "score": "0.6058499", "text": "public function init()\r\n {\r\n parent::init();\r\n //Add specific style sheet\r\n $this->view->headLink()->prependStylesheet(\r\n $this->view->locateFile('moduleForm.css')\r\n );\r\n\r\n }", "title": "" }, { "docid": "a195704c6d2eaf07717b800d39d2d7c4", "score": "0.6049603", "text": "public function setMedia()\n {\n\n try {\n\n parent::setMedia();\n $this->addCSS(_MODULE_DIR_ . $this->module->name . '/views/css/powerstep.css');\n $this->logger->log('Added Powerstep.css to the frontend', ['response' => '']);\n\n } catch (Exception $e) {\n\n $this->logger->error('ERROR setMedia', ['error' => $e->getMessage()]);\n\n }\n\n }", "title": "" }, { "docid": "47ef90cca6937a9914c1d32cb3bf5f0d", "score": "0.6041236", "text": "function marsxi_customizer_css() {\n ?>\n <!--Customizer CSS--> \n <style type=\"text/css\">\n .highlight-text { color: <?php echo get_theme_mod( 'highlight_color', '#f68b1f' ); ?>; }\n .highlight-line { border-color: <?php echo get_theme_mod( 'highlight_color', '#f68b1f' ); ?>; }\n .highlight-bg { background-color: <?php echo get_theme_mod( 'highlight_color', '#f68b1f' ); ?>; }\n </style> \n <!--/Customizer CSS-->\n <?php\n}", "title": "" }, { "docid": "6bddc00b9a791bb717d0b4df2493ad07", "score": "0.6035667", "text": "public function adminStyles()\n\t{\n\t\twp_enqueue_style('thickbox');\n\t}", "title": "" }, { "docid": "8a86e021f073febda6f28095bb1dd162", "score": "0.60315645", "text": "function flickr_badges_admin() {\r\n\t\twp_enqueue_style( 'flickr-badges-admin', FLICKR_BADGES_WIDGET_URL . 'css/admin.css', false, 0.7, 'screen' );\r\n\t}", "title": "" }, { "docid": "b35bc626efad1985903df0ec0898bb6d", "score": "0.6021828", "text": "public function css($code)\n {\n View::getInstance()->addStyle($code);\n }", "title": "" }, { "docid": "b1dc2aa22efebbbe08bd5ea3bc7e5ec4", "score": "0.60163766", "text": "function my_admin_head() {\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"' .plugins_url('css/bootstrap.css', __FILE__). '\">';\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"' .plugins_url('css/admin-app.css', __FILE__). '\">';\n \n echo '<script src=\"' .plugins_url('js/app.js', __FILE__). '\">';\n}", "title": "" }, { "docid": "98b7154e3c5502e9763dee6b895722f3", "score": "0.6016242", "text": "function of_options_output_css() { ?>\n\t<style type=\"text/css\">\n\t\t/* <![CDATA[ */\n\t<?php $of_css_options_output = dirname( __FILE__ ) . '/style-output.php'; if( is_file( $of_css_options_output ) ) require $of_css_options_output; ?>\n\t\t/* ]]> */\n\t</style>\n<?php }", "title": "" }, { "docid": "469b0bb4e72e5464da936ea1bfc70cfc", "score": "0.6002381", "text": "function generate_editor_style()\r\n { \r\n $scss_dir = get_template_directory() . '/assets/scss/';\r\n $css_dir = get_template_directory() . '/assets/admin/css/';\r\n\r\n $this->scssc = new \\Leafo\\ScssPhp\\Compiler();\r\n $this->scssc->setImportPaths( $scss_dir );\r\n\r\n $editor_file = $css_dir . 'editor.css';\r\n $admin_file = $css_dir . 'admin.css';\r\n $this->scssc->setFormatter( 'Leafo\\ScssPhp\\Formatter\\Crunched' );\r\n \r\n $this->redux->filesystem->execute( 'put_contents', $editor_file, array(\r\n 'content' => $this->scssc->compile( '@'.'import \"editor.scss\"' )\r\n ) );\r\n $this->redux->filesystem->execute( 'put_contents', $admin_file, array(\r\n 'content' => $this->scssc->compile( '@'.'import \"admin.scss\"' )\r\n ) );\r\n }", "title": "" }, { "docid": "cb4f64f8dc4d57e45d7d5e507cd6ce2e", "score": "0.5996086", "text": "function mp3j_admin_header() {\n\t\t\t$pluginpath = $this->WPinstallpath . \"/wp-content/plugins/mp3-jplayer/\";\n\t\t\techo \"\\n<link rel=\\\"stylesheet\\\" href=\\\"\" . $pluginpath . \"css/mp3j-admin.css\\\" type=\\\"text/css\\\" media=\\\"screen\\\" />\\n\";\t\t\t\n\t\t}", "title": "" }, { "docid": "6df4b690d857bbaf0a3a8e6401a9afea", "score": "0.5995761", "text": "private function assetsHeader()\n {\n add_action('admin_head', function ()\n {\n echo file_get_contents(dirname(__FILE__). '/assets/styles.css');\n });\n }", "title": "" }, { "docid": "920b72280946f8a84d9e8c84aa4acd14", "score": "0.5993349", "text": "function sendD2UHelperCSS() {\n\t\theader('Content-type: text/css');\n\t\t$d2u_helper = rex_addon::get('d2u_helper');\n\t\t$css = \"\";\n\t\t// Module CSS\n\t\tif($d2u_helper->hasConfig(\"include_module\") && $d2u_helper->getConfig(\"include_module\") == \"true\") {\n\t\t\t$module_manager = new D2UModuleManager(D2UModuleManager::getModules());\n\t\t\t$css .= $module_manager->getAutoCSS();\n/*\n * FIXME: Not working, because modules later are not loaded yet\n\t\t\t// D2U Immo Modules\n\t\t\tif(file_exists(rex_path::addon('d2u_immo', 'lib/d2u_immo_module_manager.php'))) {\n\t\t\t\t// Not yet included FIXME: create cache file instead\n\t\t\t\trequire_once rex_path::addon('d2u_immo', 'lib/d2u_immo_module_manager.php');\n\t\t\t\t$immo_module_manager = new D2UModuleManager(D2UImmoModules::getD2UImmoModules());\n\t\t\t\t$css .= $immo_module_manager->getAutoCSS();\n\t\t\t}\n\t\t\t// D2U Machinery Modules\n\t\t\tif(class_exists('D2UMachineryModules')) {\n\t\t\t\t$immo_module_manager = new D2UModuleManager(D2UMachineryModules::getD2UMachineryModules());\n\t\t\t\t$css .= $immo_module_manager->getAutoCSS();\n\t\t\t}\n*/\t\t\t\n\t\t\t\n\t\t}\n\t\t// Menu CSS\n\t\tif($d2u_helper->hasConfig(\"include_menu\") && $d2u_helper->getConfig(\"include_menu\") == \"true\") {\n\t\t\t$css .= d2u_mobile_navi::getAutoCSS();\n\t\t}\n\n\t\t// Apply template settings and compress\n\t\tprint compressCSS(applyColorToCSS($css));\n\t\texit;\t\n}", "title": "" }, { "docid": "f934879219b80de2f8b19c73a0d9deee", "score": "0.5992396", "text": "function presscore_get_loader_inline_css() {\n\t\t$css = apply_filters( 'presscore_pre_get_loader_inline_css', '' );\n\t\tif ( $css ) {\n\t\t\treturn $css;\n\t\t}\n\n\t\t$css = get_option( 'the7_beautiful_loader_inline_css' );\n\n\t\treturn apply_filters( 'presscore_get_loader_inline_css', $css );\n\t}", "title": "" }, { "docid": "6451fe7f8e7654290d782016254cb36e", "score": "0.59701747", "text": "public function themeHeader() {\n // css\n foreach (glob(GSPLUGINPATH.self::FILE.'/css/*.css') as $css) {\n echo '<link href=\"'.str_replace(GSROOTPATH, $this->matrix->getSiteURL(), $css).'\" rel=\"stylesheet\" type=\"text/css\">'.\"\\n\";\n }\n // javascript\n foreach (glob(GSPLUGINPATH.self::FILE.'/js/*.js') as $js) {\n echo '<script src=\"'.str_replace(GSROOTPATH, $this->matrix->getSiteURL(), $js).'\" type=\"text/javascript\"></script>'.\"\\n\";\n }\n }", "title": "" }, { "docid": "78e7a195ea87ff011fc504bf8b1093cc", "score": "0.5944866", "text": "function raumplanung_print_css() {\n\tglobal $raumplanung_load_css;\n\n\t// diese Variable wird auf TRUE gesetzt, wenn der Shortcode auf einer Seite/einem Post verwendet wird\n\tif ( ! $raumplanung_load_css )\n\t\treturn; // das bedeutet, dass kein Shortcode vorhanden ist, also verschwinden wir von hier.\n\n\twp_print_styles('raumplanung-form-css');\n}", "title": "" }, { "docid": "7c753f41aff9cae4568082ba0210921e", "score": "0.593839", "text": "function ef5frame_editor_styles()\r\n{\r\n add_editor_style('assets/admin/css/editor.css');\r\n}", "title": "" }, { "docid": "ecc763b5d4df8144cdf9c8364f774e3b", "score": "0.5929493", "text": "protected function _minifyCSS()\n {\n \t// load the application base URL\n \t$baseUrl = $this->getBaseUrl();\n \tif ($baseUrl != '/') {\n \t\t$baseUrl .= '/';\n \t}\n \t// load CSS base URL\n \t$cssUrl = $this->getDesignUrl('core/templates/global/css/');\n \t// prepare the base path\n \t$path = $baseUrl . 'min/?b=' . substr($cssUrl, 1, strlen($cssUrl) - 2) . '&f=';\n // inizialize the array with the CSS files to include\n $scripts = array();\n // iterate over all CSS files\n foreach ($this->_getChilds() as $child) {\n if ($child instanceof TDProject_Core_Block_Widget_Link) {\n // prepare the path of the CSS file\n $scripts[] = str_replace($cssUrl, '', $child->getBlockTitle());\n // mark the block as already rendered\n $child->setRendered();\n }\n }\n // concatenate the paths\n $path .= implode(',', $scripts);\n \t// add a new CSS block linked to the cached CSS file\n \t$this->addLink(new TDProject_Core_Block_Widget_Link($this->getContext(), 'css' , $path));\n }", "title": "" }, { "docid": "2542a268539283a23f9d026de1afaa61", "score": "0.59229964", "text": "public static function adds_uf_css() {\n\t\t?>\n\t\t<style type=\"text/css\">\n\t\t\tbody.plugins-php .optimole_wp-container #TB_title {\n\t\t\t\tbackground-position: 30px 10px;\n\t\t\t\tbackground-size: 80px;\n\t\t\t}\n\n\t\t\tbody.plugins-php .optimole_wp-container input.button:hover,\n\t\t\tbody.plugins-php .optimole_wp-container input.button {\n\t\t\t\tbackground: #5080C1;\n\t\t\t}\n\t\t</style>\n\t\t<?php\n\t}", "title": "" }, { "docid": "152683b217a50cb115f433eea2610f60", "score": "0.59105927", "text": "function admin_styles(){\n wp_enqueue_style( 'flexigrid' );\n wp_enqueue_style( 'bbpl_public' );\n }", "title": "" }, { "docid": "a50a7ea16318c73ab08c2048fa0258bd", "score": "0.5893187", "text": "function admin_styles() {\n wp_enqueue_style( 'acf-complex-titles-admin-style', ACFCT_PLUGIN_URL . 'assets/css/admin.css' );\n }", "title": "" }, { "docid": "89f3f9f66d76fa5c792aefbad6508dcd", "score": "0.58913577", "text": "function includeCSS($css) {\n$IPBHTML = \"\";\n//--starthtml--//\n$IPBHTML .= <<<EOF\n<if test=\"hasimportcss:|:is_array( $css['import'] )\">\n\t<if test=\"minifycss:|:$this->settings['use_minify']\"><php>$this->minify = array();</php></if>\n\t<foreach loop=\"cssImport:$css['import'] as $data\">\n\t\t<php>\n\t\t\t$importCss = true;\n\t\t\tif( stripos( $data['content'], $this->settings['css_base_url'] ) === 0 && $this->settings['use_minify'] AND ( ! $data['attributes'] OR stripos( $data['attributes'], 'screen' ) !== false ) )\n\t\t\t{\n\t\t\t\t$importCss\t\t= false;\n\t\t\t\t$this->minify[]\t= \"{$data['content']}\";\n\t\t\t}\n\t\t</php>\n\t\t<if test=\"donotminifycss:|:$importCss\">\n\t\t\t<link rel=\"stylesheet\" type=\"text/css\" {$data['attributes']} href=\"{$data['content']}?ipbv={$this->registry->output->antiCacheHash}\" />\n\t\t</if>\n\t</foreach>\n\t<if test=\"csstominify:|:$this->settings['use_minify'] AND count($this->minify)\">\n\t\t<link rel=\"stylesheet\" type=\"text/css\" media='screen,print' href=\"{$this->settings['css_base_url']}min/index.php?ipbv={$this->registry->output->antiCacheHash}&amp;f={parse expression=\"str_replace( $this->settings['css_base_url'], PUBLIC_DIRECTORY . '/', implode( ',', $this->minify ) )\"}\" />\n\t</if>\n</if>\n<if test=\"inlinecss:|:is_array( $css['inline'] ) AND count( $css['inline'] )\">\n\t<foreach loop=\"cssInline:$css['inline'] as $data\">\n\t<style type=\"text/css\" {$data['attributes']}>\n\t\t/* Inline CSS */\n\t\t{$data['content']}\n\t</style>\n\t</foreach>\n</if>\n<!--[if lte IE 7]>\n\t<link rel=\"stylesheet\" type=\"text/css\" title='Main' media=\"screen\" href=\"{$this->settings['css_base_url']}style_css/{$this->registry->output->skin['_csscacheid']}/ipb_ie.css\" />\n<![endif]-->\n<!--[if lte IE 8]>\n\t<style type='text/css'>\n\t\t.ipb_table { table-layout: fixed; }\n\t\t.ipsLayout_content { width: 99.5%; }\n\t</style>\n<![endif]-->\n<if test=\"$this->settings['resize_img_force']\">\n\t<!-- Forces resized images to an admin-defined size -->\n\t<style type='text/css'>\n\t\timg.bbc_img {\n\t\t\tmax-width: {$this->settings['resize_img_force']}px !important;\n\t\t\tmax-height: {$this->settings['resize_img_force']}px !important;\n\t\t}\n\t</style>\n<else />\n\t<style type='text/css'>\n\t\timg.bbc_img { max-width: 100% !important; }\n\t</style>\n</if>\n<link href='https://fonts.googleapis.com/css?family=PT+Sans&subset=latin' rel='stylesheet' type='text/css' />\nEOF;\n//--endhtml--//\nreturn $IPBHTML;\n}", "title": "" }, { "docid": "ab985cf694c8952317b44bd4f6024756", "score": "0.5890763", "text": "public function add_custom_css() {\n \n if ( !is_singular( array( 'post', 'page' ) ) ) {\n return;\n }\n \n $css = $this->get_custom_css();\n \n echo \"<style>{$css}</style>\";\n\n }", "title": "" }, { "docid": "acd4e6882d3767c91e241f2419474f7f", "score": "0.5887376", "text": "function the7_print_custom_css() {\n\t$custom_css = of_get_option( 'general-custom_css', '' );\n\tif ( $custom_css ) {\n\t\tprintf( \"<style id='the7-custom-inline-css' type='text/css'>\\n%s\\n</style>\\n\", $custom_css );\n\t}\n}", "title": "" }, { "docid": "21b07f2cb32f0aa5ff8f582309595b98", "score": "0.5885123", "text": "static public function layout_css_includes() {\n return [\n// '/packages/admin/css/admin.custom.css'\n ];\n }", "title": "" }, { "docid": "8106004a1927fccf730bb17299f5c16b", "score": "0.5881968", "text": "function gs_admin_style() {\n\n\t$headimg = sprintf( '.appearance_page_custom-header #headimg { background: url(%s) no-repeat; font-family: Georgia, Times, serif; min-height: %spx; text-align: center; text-shadow: #666 1px 1px; }', get_header_image(), HEADER_IMAGE_HEIGHT );\n\t$h1 = sprintf( '#headimg h1, #headimg h1 a { color: #%s; font-size: 48px; font-variant: small-caps; font-weight: normal; line-height: 48px; margin: 35px 0 0; text-decoration: none; }', esc_html( get_header_textcolor() ) );\n\t$desc = sprintf( '#headimg #desc { color: #%s; font-size: 20px; font-style: italic; line-height: 1; margin: 0; }', esc_html( get_header_textcolor() ) );\n\n\tprintf( '<style type=\"text/css\">%1$s %2$s %3$s</style>', $headimg, $h1, $desc );\n\t\n}", "title": "" }, { "docid": "64ebcec55ecf265cf0d4cd34b1a72886", "score": "0.58747566", "text": "function addCSSFiles()\n\t{\n\t\t$this->getContainer()->AddCSSFile(\"include/zoombox/zoombox.css\");\n\t}", "title": "" }, { "docid": "c142c3cae0fcf4f077b79d18f12a40c0", "score": "0.58708674", "text": "function ef5frame_admin_style()\r\n{\r\n wp_enqueue_style('ef5-frame', get_template_directory_uri() . '/assets/admin/css/admin.css');\r\n}", "title": "" }, { "docid": "58e8c83a0253c9ea19913079b59485d4", "score": "0.5867974", "text": "public function addStyles()\n {\n wp_enqueue_style(\n 'UserAccessManagerAdmin', \n UAM_URLPATH . \"css/uamAdmin.css\",\n array() ,\n '1.0',\n 'screen'\n );\n \n wp_enqueue_style(\n 'UserAccessManagerLoginForm', \n UAM_URLPATH . \"css/uamLoginForm.css\",\n array() ,\n '1.0',\n 'screen'\n );\n }", "title": "" }, { "docid": "0f03110c4cfd10e2446a81f5065ba443", "score": "0.585915", "text": "function print_dynamic_style() {\n\n\t\t\t$dynamic_css = $this->generate_dynamic_css();\n\t\t\twp_add_inline_style( 'highend-style', $dynamic_css );\n\t\t}", "title": "" }, { "docid": "2ea067c445ce1182ef117aedd1f8097a", "score": "0.585563", "text": "function heateor_fcm_admin_style() {\n\twp_enqueue_style( 'heateor_fcm_admin_style', plugins_url( 'css/admin.css', __FILE__ ), false, HEATEOR_FB_COM_MOD_VERSION );\n}", "title": "" }, { "docid": "6413e41cd400062d4106ea421f672e3f", "score": "0.58536327", "text": "function admin_header_style() {\n\t ?><style type=\"text/css\">\n\t #headimg {\n\t width: <?php echo HEADER_IMAGE_WIDTH; ?>px;\n\t height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;\n\t }\n\t </style><?php\n\t}", "title": "" }, { "docid": "30450922ca2c0f1fcddf7e8e6ea208d3", "score": "0.5850446", "text": "public function styles() {\n\n $file = $this->hub()->finder()->cache() . DS . 'wizard.css';\n\n if (!file_exists($file)) {\n $css = $this->combine(array('css/font-awesome.css', 'css/panel.css', 'css/hacks.css' ));\n $css = str_replace('{{url}}', url('plugins/comments/assets'), $css);\n f::write($file, $css);\n }\n\n header('Content-type: text/css');\n echo f::read($file);\n exit;\n\n }", "title": "" }, { "docid": "bed3de63f5a9772827d8c0af61f0c583", "score": "0.58454424", "text": "function presscore_cache_loader_inline_css( $css ) {\n\t\tupdate_option( 'the7_beautiful_loader_inline_css', $css );\n\n\t\treturn $css;\n\t}", "title": "" }, { "docid": "77ea36730ed63a2657b3635bf113bb92", "score": "0.5843421", "text": "function output_css()\n{\n $CI =& get_instance();\n foreach ($CI->_css as $key => $value)\n {\n echo '<link href=\"'.$value.'\" rel=\"stylesheet\" media=\"all\">'.PHP_EOL;\n } \n}", "title": "" }, { "docid": "34472056a87259f0cb1122efc804c684", "score": "0.5839071", "text": "function pw_admin_header_style() {\n\t\t?>\n<style type=\"text/css\">\n#headimg { width: <?php echo HEADER_IMAGE_WIDTH; ?>px;\theight: <?php echo HEADER_IMAGE_HEIGHT; ?>px; }\n</style>\n\t\t<?php\n\t}", "title": "" }, { "docid": "4fb2c1e3b029f842191ea447084d26d9", "score": "0.5834774", "text": "public function CSS() {\n\t\t$cssFinal = '';\n\t\t$cssFiles = array();\n\t\t$cssFiles[] = '../css/base.css';\n\t\t$cssFiles[] = '../css/treinamento.css';\n\t\t//$cssFiles[] = '../css/ie.css';\n\n\t\t$legacy = $this->getHelper('csslegacy');\n\t\t$legacy->verbose();\n\t\t$legacy->setHelperBaseURL('http://201.37.69.243:5581/treinamento/templates/treinamento/helpers/');\n\t\t$legacy->setSerAgent(false);\n\t\t\n\t\t$legacy->loadFile($cssFiles);\n\t\t$cssFinal = $legacy->legacy();\n\n\t\t//@todo remover necessidade deste outro helper (fititnt, 2012-04-21 05:49)\n\t\t$h = $this->getHelper('phptostring');\n\t\t$h->setHeaderMimeType('css');\n\t\t$h->setHeaderCache(); //Se vazio, forca nao cachear\n\t\t$h->getHeader(true); //Prepara o header do arquivo\n\t\t\n\t\techo $cssFinal;\n\t}", "title": "" }, { "docid": "2c4b77a9c62753fd0cd4e84ebf3f318c", "score": "0.58294255", "text": "public function registerCss()\n\t{\n\t\t/* @var \\CClientScript $cs */\n\t\t$cs = \\Yii::app()->clientScript;\n\t\t$fileName = YII_DEBUG ? 'bootstrap.css' : 'bootstrap.min.css';\n\t\t$url = $this->getAssetsUrl() . '/css/' . $fileName;\n\t\t$cs->registerCssFile($url);\n\t\tif (static::$responsive) {\n\t\t\t$fileName = YII_DEBUG ? 'bootstrap-responsive.css' : 'bootstrap-responsive.min.css';\n\t\t\t$url = $this->getAssetsUrl() . '/css/' . $fileName;\n\t\t\t$cs->registerMetaTag('width=device-width, initial-scale=1.0', 'viewport');\n\t\t\t$cs->registerCssFile($url);\n\t\t}\n\t}", "title": "" }, { "docid": "c6976e1bb5f2366bd673c4a96f0ece68", "score": "0.58196944", "text": "public function register_css_js_admin()\n\t{\n\t}", "title": "" }, { "docid": "c65d3838c7e9a67a65c970c4515a49f3", "score": "0.58165914", "text": "public function cssHead() {\n // Get badge page retrieved from the plugin setting\n $getBadgePage = get_post(\n SettingsTemp::getOption(SettingsTemp::FI_GET_BADGE)\n );\n\n if (is_page($getBadgePage->post_name)) {\n // GET BADGE page Style\n wp_enqueue_style('bootstrap-css', '//maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css');\n wp_enqueue_style(self::STYLE_GET_BADGE, $this->plugin_url . self::DIRECTORY_CSS . self::STYLE_GET_BADGE);\n } else {\n // OTHERWISE Style\n wp_enqueue_style(self::STYLE_OBF, $this->plugin_url . self::DIRECTORY_CSS . self::STYLE_OBF);\n wp_enqueue_style(self::STYLE_SEND_BADGE, $this->plugin_url . self::DIRECTORY_CSS . self::STYLE_SEND_BADGE);\n }\n }", "title": "" }, { "docid": "1e3e72de9d06f4193a3dabfcaf3a7522", "score": "0.58153063", "text": "function output_css_for_css_edit($files, $toreplace) {\n foreach ($files as $file) {\n $shortname = str_replace($toreplace, '', $file);\n echo '/* @group ' . $shortname . \" */\\n\\n\";\n if (strpos($file, '.css') !== false) {\n echo '@import url(\"' . $file . '\");'.\"\\n\\n\";\n } else {\n @include_once($file);\n }\n echo \"/* @end */\\n\\n\";\n }\n}", "title": "" }, { "docid": "eba8816abf26eca4949a2dc5d1ffef43", "score": "0.5812432", "text": "protected function getStyles() { \n return <<<CSSRULES\n/* Import Field */\n.admin-page-framework-field-import input {\n margin-right: 0.5em;\n}\n.admin-page-framework-field-import label,\n.form-table td fieldset.admin-page-framework-fieldset .admin-page-framework-field-import label { /* for Wordpress 3.8 or above */\n display: inline; /* to display the submit button in the same line to the file input tag */\n}\nCSSRULES;\n }", "title": "" }, { "docid": "b0b6169110187fbb2db4da749d9d1521", "score": "0.5810353", "text": "public function admin_enqueue_scripts()\n {\n $column_name = \"column-{$this->item->getName()}\";\n asset()->setInlineCss(\n \".wp-list-table th.{$column_name},.wp-list-table td.{$column_name}{width:80px;text-align:center;}\" .\n \".wp-list-table td.{$column_name} img{max-width:80px;max-height:60px;}\"\n );\n }", "title": "" }, { "docid": "4c9527d76e4399e6be603418f2c8cd40", "score": "0.58087647", "text": "public function devCompileCss()\n\t\t{\n\t\t\theader('Content-Type: text/css');\n\n\t\t\t/**\n\t\t\t * Render Style CSS\n\t\t\t */\n\t\t\techo $this->getCssFromLess($this->getMainFile(), false);\n\t\t\t$this->shortCodesCss('echo');\n\t\t\tdie();\n\t\t}", "title": "" }, { "docid": "fe1dc2141539cc8868713492fcb7dc9f", "score": "0.5806488", "text": "function hatch_header_style() {\n\t/* We don't need to set anything here - everything is in style.css */\n}", "title": "" } ]
22c6c28ebe59d10d2b1dd64a7640fe13
Function that fetches all the collections
[ { "docid": "b300484db3b6d0856004b1f30b990ad9", "score": "0.67880094", "text": "public function get_collections()\n {\n $this->db->trans_start();\n $this->db->select('*');\n $this->db->from('event_collection_info');\n $this->db->join('event_collection_bridge', 'event_collection_bridge.info_id = event_collection_info.info_id');\n $this->db->join('collection', 'event_collection_bridge.collection_id = collection.collection_id');\n $this->db->join('collection_category', 'collection.category_id = collection_category.category_id');\n $this->db->order_by('collection.category_id', 'ASC');\n $collections = $this->db->get()->result_array();\n $this->db->trans_complete();\n\n if ($this->db->trans_status() === false) {\n // generate an error... or use the log_message() function to log your error\n return \"Collections Fetch Not Succesful.\";\n\n } else {\n return $collections;\n }\n }", "title": "" } ]
[ { "docid": "a436d4092dde5c7d3eebeea3380af4c7", "score": "0.76813585", "text": "public function collections();", "title": "" }, { "docid": "4e553de68a6b31a008feaee469f7e1fc", "score": "0.7532959", "text": "public function fetchAll() {\n return Collections::getAll()->collections->items;\n }", "title": "" }, { "docid": "4d4cbe6d86525aa55008457f69de73e7", "score": "0.7466202", "text": "public function getAll(): Collection;", "title": "" }, { "docid": "4d4cbe6d86525aa55008457f69de73e7", "score": "0.7466202", "text": "public function getAll(): Collection;", "title": "" }, { "docid": "8a6702e6bcad103afc1cc9bdd118a9a9", "score": "0.72643876", "text": "function getCollections(){\n\t$shopify = $this->initShopify();\n\t$collections = $shopify('GET', \"/admin/custom_collections.json\");\n\treturn $collections;\n}", "title": "" }, { "docid": "f104f87b20258d5631a8b89ca28314fb", "score": "0.7246016", "text": "public function getAllCollections()\n\t{\n\t\treturn $this->collections;\n\t}", "title": "" }, { "docid": "5cd0a1a96fcf1c6ba9ca271b2c08011d", "score": "0.7232453", "text": "public function getAll(): CollectionInterface;", "title": "" }, { "docid": "04422b67d196059fa0cb88d879adfa0e", "score": "0.7228405", "text": "private function getCollections($args){\n \t\n \t$result = $this->app->guzzle->request('GET', $this->app->figshare['api.url'].'collections', ['query' => array('group' => $args['group'])]);\n \t \n \t$rsColletions = json_decode($result->getBody());\n \t \n \tforeach($rsColletions as $collection){\n \t\t$this->id = $collection->id;\n \t\t$collections[] = $this->getCollection();\n \t}\n\n \treturn $collections;\n }", "title": "" }, { "docid": "c8e63abf44a3f96814f1c5902894bd50", "score": "0.7188962", "text": "public function getAllCollects();", "title": "" }, { "docid": "719c6476f459e767c7dc332866473a27", "score": "0.709478", "text": "public function all()\n {\n self::$collection->all();\n }", "title": "" }, { "docid": "7cc2bca67fb56e387c565eed2eb111f7", "score": "0.69732296", "text": "public function getAll()\n {\n return $this->_getCollection();\n }", "title": "" }, { "docid": "2b4a47caf13ce0a7c5f66e75683d5e8e", "score": "0.6969666", "text": "public function getCollection();", "title": "" }, { "docid": "2b4a47caf13ce0a7c5f66e75683d5e8e", "score": "0.6969666", "text": "public function getCollection();", "title": "" }, { "docid": "887fa07434e9a4ca64314b5b6231a894", "score": "0.6906171", "text": "public function all(): Collection;", "title": "" }, { "docid": "443d4147ae5cdac7740507ad4f007d8f", "score": "0.6883247", "text": "public function all()\n {\n return $this->collection;\n }", "title": "" }, { "docid": "3f39de9ce91d19a334d71a7418e37890", "score": "0.68614197", "text": "public function getAll(): Collection\n {\n return parent::getResources();\n }", "title": "" }, { "docid": "b33474879b626a43a40e11a9eadd303a", "score": "0.682528", "text": "abstract public function getCollection();", "title": "" }, { "docid": "ee4e9a397d64771554b8dcd139e7180a", "score": "0.6817161", "text": "public function get_all($arrFilter = array()){ \n\t\treturn $this->call('GET', '/admin/smart_collections.json', $arrFilter); \n\t}", "title": "" }, { "docid": "4fa83559bfeefa54ddf030f4a6604594", "score": "0.67836213", "text": "public function getCollections()\n {\n return $this->get(self::ENTRY_COLLECTIONS);\n }", "title": "" }, { "docid": "d26996165faa8fff0eb24d0a8d6de858", "score": "0.6767962", "text": "public static function getAll()\n\t{\n\t\t// TODO: this is example of method selecting multi rec from table\n\t\t$db = new DB();\n\t\t$sql = \"SELECT * \";\n\t\t$sql .= \"FROM \" . DB_SCHEMA . \".table \";\n\t\t$db->query($sql);\n\t\treturn new Collection($db, self::get());\n\t}", "title": "" }, { "docid": "1d8ebd016e1b67b5afd984e3b187b155", "score": "0.6757938", "text": "public function collections()\n {\n return new Collection($this->all());\n }", "title": "" }, { "docid": "9ad202d9cddd1d08634af856aed9b23d", "score": "0.67480546", "text": "public function fetchAll(): DataSourceEntityCollectionInterface;", "title": "" }, { "docid": "e0aa5070cfb56adb1cc139e373316012", "score": "0.67476326", "text": "public function findAll(): Collection;", "title": "" }, { "docid": "4d9402c1272fe9b83aa52e14af094e85", "score": "0.67457163", "text": "public static function all(): Collection\n {\n return static::query();\n }", "title": "" }, { "docid": "64c0891df4a325a630af547c0457ebd3", "score": "0.67390954", "text": "function collections()\n {\n $query = $this->db->get('collecctions');\n return $query->result_array();\n }", "title": "" }, { "docid": "78423aa71d95054b2566806b7792d2e0", "score": "0.66610223", "text": "public function getSixCollections();", "title": "" }, { "docid": "983a2771d80fad40145f9a83a43f146a", "score": "0.6643225", "text": "public function index()\n { \n return $this->model->getCollections();\n }", "title": "" }, { "docid": "be34cb3db69ad3aace8f246311825804", "score": "0.66419685", "text": "protected function getCollections()\n {\n $collections = [];\n\n $collectionDirs = (new Finder())->in($this->collectionsPath)->directories();\n\n foreach ($collectionDirs as $collectionDir) {\n $entries = [];\n\n $files = (new Finder())->in($collectionDir->getPathname())->files()->name('*.md')->sort(function(\\SplFileInfo $a, \\SplFileInfo $b) {\n return strcmp($b->getRealPath(), $a->getRealPath());\n });\n\n foreach ($files as $file) {\n $doc = new Document($collectionDir->getPathname(), $file, $collectionDir->getBasename());\n $entries[$doc->slug()] = $doc;\n }\n\n $collections[$collectionDir->getBasename()] = new Collection($collectionDir, $entries);\n }\n\n return $collections;\n }", "title": "" }, { "docid": "36194cf379ae04777d46d9148af69aa7", "score": "0.66326565", "text": "public function fetchAll();", "title": "" }, { "docid": "36194cf379ae04777d46d9148af69aa7", "score": "0.66326565", "text": "public function fetchAll();", "title": "" }, { "docid": "36194cf379ae04777d46d9148af69aa7", "score": "0.66326565", "text": "public function fetchAll();", "title": "" }, { "docid": "36194cf379ae04777d46d9148af69aa7", "score": "0.66326565", "text": "public function fetchAll();", "title": "" }, { "docid": "36194cf379ae04777d46d9148af69aa7", "score": "0.66326565", "text": "public function fetchAll();", "title": "" }, { "docid": "2011d34293ecc50ccd7d405c853a9ba9", "score": "0.66275454", "text": "public function retrieveAll()\n {\n }", "title": "" }, { "docid": "61283c4fe336b39d3a4ae0eb3af36ffa", "score": "0.6612044", "text": "public function all()\n {\n return $this->collection->all();\n }", "title": "" }, { "docid": "f4cc8703dbcf1e1a416ad8f71f069d60", "score": "0.6601959", "text": "public function getAllCategories() : Collection;", "title": "" }, { "docid": "3b3c1651dc00e3a013998fc14a7ee50e", "score": "0.65669215", "text": "protected function getCollection()\n {\n return $this->connection\n ->getDatabase($this->database)\n ->selectCollection($this->collection);\n }", "title": "" }, { "docid": "184b2ca3f12435b6053a453adc7493ea", "score": "0.65424573", "text": "public function fetchObjects() {\n\t\treturn $this->_client->fetchObjects($this->_id);\n\t}", "title": "" }, { "docid": "abe039cd3308f6fb3efedc4a08311e6f", "score": "0.65226287", "text": "function index() {\n\t\t$this->Collection->recursive = 0;\n\t\t$this->set('collections', $this->paginate());\n\t}", "title": "" }, { "docid": "716ef93b0db691f72b61c86bc6db6fb5", "score": "0.6499084", "text": "public static function collectionsList(): array\n {\n $collections = [];\n\n $collectionList = DB::connection()->getMongoDB()->listCollections();\n\n foreach ($collectionList as $collection) {\n $collections[] = $collection->getName();\n }\n\n return $collections;\n }", "title": "" }, { "docid": "14bbcd8661a305cff5166ff0884eea9c", "score": "0.6457101", "text": "abstract public static function FetchAll();", "title": "" }, { "docid": "4bd513cdbb42ba161b43fbbeb79fed54", "score": "0.64524144", "text": "public function all(): Collection\n {\n // TODO, if api were paginated we can use Lazy Collections\n return collect(\n json_decode($this->http->get($this->module . '/')->body())->records\n );\n }", "title": "" }, { "docid": "109b94d22e5d33d9496585c317efe0e7", "score": "0.6449639", "text": "public function getCollection()\n {\n return $this->collections;\n }", "title": "" }, { "docid": "6a48f2f3cb553e6b140343f7c8886dbe", "score": "0.6432109", "text": "public function collections(array $params)\n {\n return $this->call('collections', $params);\n }", "title": "" }, { "docid": "2557a90ac9eb67e47f86136ff653e5bf", "score": "0.6427763", "text": "public function collections($parent = null)\n\t{\n\t\t$args = array('kind' => 'collection');\n\t\tif($parent === null)\n\t\t{\n\t\t\t$args['parent?'] = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$args['parent'] = $parent;\n\t\t}\n\t\treturn $this->query($args);\n\t}", "title": "" }, { "docid": "1745b4ad888cb2fbf6c866599f4aa2dd", "score": "0.64118993", "text": "public function getCollection(): Collection;", "title": "" }, { "docid": "260026922bbe55bbb5a3b3e81625f52b", "score": "0.64040774", "text": "public function getCollection()\n {\n return $this->getDb()->selectCollection($this->getCollectionName());\n }", "title": "" }, { "docid": "a719364181d06d2b3f0eda3d226b696f", "score": "0.63848895", "text": "public function fetchAll() {\r\n\t $this->_logger->debug('Fetching all rows', $this);\r\n\t $rows = $this->_statement->fetchAll(\\PDO::FETCH_CLASS, '\\lahaina\\framework\\data\\Container');\r\n\t return new Collection($rows, '\\lahaina\\framework\\data\\Container');\r\n\t}", "title": "" }, { "docid": "a419b2f545afa0a947145873315e528d", "score": "0.6377948", "text": "function getCollection($sql){\n // Connect to the database: \n $connection = connect();\n \n // Get data from the database: \n $result = mysqli_query($connection, $sql);\n \n // Convert the data to a collection: \n $collection = mysqli_fetch_all($result, MYSQLI_ASSOC);\n\n // Close the database: \n mysqli_close($connection);\n \n // Return the object:\n return $collection;\n \n}", "title": "" }, { "docid": "6ac59a644c1a5259d26d51f62d14e5d2", "score": "0.6354314", "text": "public function fetchAll() {\r\n\t\treturn $this->fetchList(null, null, null, null);\r\n\t}", "title": "" }, { "docid": "5b4c3116739e6bdcaffa6a6e3c8cd77b", "score": "0.6346115", "text": "public function getUserCollections()\r\n\t{\r\n\t\t$url = $this->dase_url.'/user/'.$this->username.'/collections.json';\r\n\t\t$res = self::get($url,$this->username,$this->password);\r\n\t\tif ('200' == $res[0]['http_code']) {\r\n\t\t\treturn $res[1];\r\n\t\t} else {\r\n\t\t\treturn $res[0]['http_code'];\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5be3c5dde4622c8691ed6e9a25286480", "score": "0.6332793", "text": "public function getAll()\n {\n $query = $this->newQuery();\n\n return $this->fetchMany($query);\n }", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "9f42a32661fa13f462bb79e6b02cb942", "score": "0.63193625", "text": "public function getAll();", "title": "" }, { "docid": "a6dddfb05895125eb2ffb24289d2d866", "score": "0.630906", "text": "public function retrieveAll(): array {\n }", "title": "" }, { "docid": "ef1fdba13d84f5b3e74bf059ec4eee97", "score": "0.6304685", "text": "public static function getAllDocuments() {\n }", "title": "" }, { "docid": "6998f71d5af1cc4bbdc6dbc1ed7bcc77", "score": "0.6271449", "text": "function _list($collection) {\n\t$uid = $_SESSION['user']['_id'];\n\t$select = array(\n\t\t'userid' => $uid,\n\t\t'limit' => (isset($_GET['limit']))?$_GET['limit']:false,\n\t\t'page' => (isset($_GET['page']))?$_GET['page']:false,\n\t\t'filter' => (isset($_GET['filter']))?$_GET['filter']:false,\n\t\t'regex' => (isset($_GET['regex']))?$_GET['regex']:false,\n\t\t'sort' => (isset($_GET['sort']))?$_GET['sort']:false\n\t);\n\n\t$data = MongoLayer::getList(\n\t\t$collection,\n\t\t$select\n\t);\n\theader(\"Content-Type: application/json\");\n\techo json_encode($data);\n\texit;\n}", "title": "" }, { "docid": "dc94d71075a1f9f70943f3c9b07855dd", "score": "0.6264905", "text": "public function index()\n {\n $result = Collection::get();\n return $result;\n }", "title": "" }, { "docid": "bc0e9faf7e579b598403d665a83faf11", "score": "0.626185", "text": "public function listAll()\n {\n return $this->getService()->collection(get_class($this), $this->url());\n }", "title": "" }, { "docid": "7790a66520d1dc504e485e2ce51f837b", "score": "0.6244759", "text": "public function getObjects()\n {\n foreach ($this->resourceManager->getCollectionsByStorage($this) as $collection) {\n yield $this->getObjectsByCollection($collection);\n }\n }", "title": "" }, { "docid": "1b3676db908750a41fb6abb22dcd95e3", "score": "0.6243721", "text": "public function fetchDatabaseList();", "title": "" }, { "docid": "e2573b6384119529b1a15e08d3807816", "score": "0.6238768", "text": "abstract public function fetchAll();", "title": "" }, { "docid": "e1ff2f8b677785b432c4e956c12de989", "score": "0.62240374", "text": "public function getAll()\n {\n return ConcertResource::collection(Concert::all());\n }", "title": "" }, { "docid": "c2fb272bb5f1f0886a111de37970c342", "score": "0.6202474", "text": "private function getCollections(array $service, HostInterface $host)\n {\n /** @var \\Platformsh\\Cli\\Service\\Relationships $relationshipsService */\n $relationshipsService = $this->getService('relationships');\n\n $js = 'printjson(db.getCollectionNames())';\n\n $command = 'mongo '\n . $relationshipsService->getDbCommandArgs('mongo', $service)\n . ' --quiet --eval ' . OsUtil::escapePosixShellArg($js)\n . ' 2>/dev/null';\n\n $result = $host->runCommand($command);\n if (!is_string($result)) {\n return [];\n }\n\n // Handle log messages that mongo prints to stdout.\n // https://jira.mongodb.org/browse/SERVER-23810\n // Hopefully the end of the output is a JavaScript array.\n if (substr($result, -1) === ']' && substr(trim($result), 0, 1) !== '[' && ($openPos = strrpos($result, \"\\n[\")) !== false) {\n $result = substr($result, $openPos);\n }\n\n $collections = json_decode($result, true) ?: [];\n\n return array_filter($collections, function ($collection) {\n return substr($collection, 0, 7) !== 'system.';\n });\n }", "title": "" }, { "docid": "c40b534baf805ef7cd05a32ba18c5709", "score": "0.6196355", "text": "public function list(): Response\n {\n return $this->client->execute(\n $this->createRequest('GET', '/collections')\n );\n }", "title": "" }, { "docid": "daf03c3fd92cb08b4c82792602861ddf", "score": "0.6193441", "text": "public function fetchAll()\n {\n }", "title": "" }, { "docid": "2b4992894181987f6bb48a7956c5ef0b", "score": "0.6175831", "text": "public function collection(): CollectionInterface\n {\n return collection($this->_loaded);\n }", "title": "" }, { "docid": "693bc8ed6aa51ebb048ffd0f6ee33e1d", "score": "0.6169964", "text": "public function fetchAll(): array;", "title": "" }, { "docid": "fce9edd3149dabf23446fea47daead39", "score": "0.61667037", "text": "public function getAll(): array\n {\n return array_merge($this->single, $this->collection);\n }", "title": "" }, { "docid": "7697c39a5c1c709635e20ff925dae9f9", "score": "0.61637336", "text": "public function collection_get_list()\n {\n $params = [\n 'Operation' => 'Collection.GetList',\n ];\n\n return $this->run($params);\n }", "title": "" }, { "docid": "9d5e8002458449dc3db8a7bf05ee5a05", "score": "0.61596197", "text": "public abstract function fetchCollection(array $ids);", "title": "" }, { "docid": "d3da80f1cbd285a94d286c9c584f82ac", "score": "0.6153204", "text": "public function collections()\n {\n $eloquentCollection = BlogPost::withoutTrashed()->get();\n dd(__METHOD__, $eloquentCollection, $eloquentCollection->toArray());\n// $collection = collect($eloquentCollection->toArray());\n// $newCollection[] = $collection->map(function ($item) {\n// $item['id'] = $item['category_id'].\"rrrr\"; return $item;\n// })->values();\n// $newCollection[] = $collection->filter(function ($item) {$item[\"created_at\"]->isFriday(); $result = $uslovie && $uslovie2 return $result;})->values();\n// dd($newCollection);\n }", "title": "" }, { "docid": "9fb33411c351065f1e35dbc5934bf488", "score": "0.61324203", "text": "public function _retrieveCollection()\n {\n $collection = Mage::getResourceModel('itdelight_callback/callback_collection');\n $this->_applyCollectionModifiers($collection);\n $data = $collection->load()->toArray();\n return $data['items'];\n }", "title": "" }, { "docid": "bad10c6856351d3dca5d52a8a357cf55", "score": "0.61203647", "text": "public function all() {\n $this->Document->contain(array('HostDocuments'));\n $documents = $this->Document->find('all');\n\n echo json_encode(array('documents' => $documents));\n exit;\n }", "title": "" }, { "docid": "b08f6163c1e56b7a0015ae7889283b3d", "score": "0.6118654", "text": "public function getEverything();", "title": "" }, { "docid": "0c3c0ab464c0af1a5dbe909cb427dda0", "score": "0.6108186", "text": "protected function _getCollectionNames()\n {\n return array();\n }", "title": "" }, { "docid": "d5db36da527f1c8fd81afa055a655d16", "score": "0.6099611", "text": "public function index() : ResourceCollection\n {\n return DocumentResource::collection(Document::all());\n }", "title": "" } ]
e21fe9231020ea4b4f15c76b2e96b41b
Fetch only one record
[ { "docid": "bee90387eb9a19cb1a24879ef0d99be1", "score": "0.0", "text": "public function getOne($where)\n\t{\n\t\t$select = $this->getSelectObject();\n\t\t$select->from($this->table);\n\t\t\n\t\tif ($where instanceof \\Closure) {\n\t\t\t$where($select);\n\t\t} elseif ($where !== null) {\n\t\t\t$select->where($where);\n\t\t}\n\t\t\n\t\t$resultSet = $this->selectWith($select);\n\t\tif ($resultSet->count() == 1) {\n\t\t\treturn $resultSet->current();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\t\n\t}", "title": "" } ]
[ { "docid": "f372f5782aeb71d4286e8bbf3229143e", "score": "0.7882956", "text": "public function fetchOne() {\n $this->limit = 1;\n $result = $this->fetch();\n if ($result) {\n return $result[0];\n }\n }", "title": "" }, { "docid": "e97169e7e371c80d110dc2c173a5e444", "score": "0.78417206", "text": "public function fetchSingle(){\n return $this->_query->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "e743efd7d02fcca2b10440c054458643", "score": "0.75520444", "text": "public function single(){\n $this->execute();\n return $this->stmnt->fetch(PDO :: FETCH_OBJ);\n }", "title": "" }, { "docid": "24573ff58d91a474ea3b746c7fdf6c38", "score": "0.7450307", "text": "public function single(){\n $this->execute();\n return $this->statement->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "64fdb3d045a1daa386644c375b8ea317", "score": "0.74500906", "text": "public function getOne(){\n $sql = \"SELECT * FROM \".$this->table.\" WHERE id=\".$this->id;\n $query = $this->_connexion->prepare($sql);\n $query->execute();\n return $query->fetch(); \n }", "title": "" }, { "docid": "947edb2a3b59b5c945af628953c6be0b", "score": "0.74186665", "text": "public function first(){\n $this->run();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "666b88cc6c83402a2d1a685fa8fc216f", "score": "0.7368123", "text": "public final function first(){\n return $this->data()->fetch();\n }", "title": "" }, { "docid": "47a106f81ef5adde6dfadc8736d82834", "score": "0.72939885", "text": "public function single() {\r\n $this->execute();\r\n return $this->statement->fetch(PDO::FETCH_OBJ);\r\n }", "title": "" }, { "docid": "4181d337489b5790df056967262a37b0", "score": "0.72874194", "text": "public function getOneRecord() {\n\t\treturn mysql_fetch_array($this->queryCache, MYSQL_ASSOC);\n\t}", "title": "" }, { "docid": "7222b53687cbbeae071752edf19db875", "score": "0.72497463", "text": "public function single(){\n\t\t$this -> execute();\n\t\treturn $this -> stmt -> fetch( PDO::FETCH_ASSOC );\n\t}", "title": "" }, { "docid": "dfd9d3ef9ae054ab4d5a23adb1104f43", "score": "0.7249509", "text": "public function single(){\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "36084e650af85b61319413208b67e5d1", "score": "0.7241665", "text": "public function single(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetch(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "a40e53ead226f2737f29d4954ab98d5f", "score": "0.7183798", "text": "public function first()\n {\n return $this->execute()->fetch();\n }", "title": "" }, { "docid": "967338291b898e5f409dc9517a65674f", "score": "0.716332", "text": "public function single()\n\t {\n\t \t$this->execute();\n\t \treturn $this->stmt->fetch(PDO::FETCH_ASSOC);\n\t }", "title": "" }, { "docid": "7ab4c9e325c4b3966867057f53ed75e1", "score": "0.7142504", "text": "public function single()\n\t{\n \t$this->execute();\n \treturn $this->stmt->fetch(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "6439c07f2733a942e66e6f501b629636", "score": "0.71386", "text": "public function single()\n {\n $this->execute();\n return $this->statement->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "373f8ef0020052152e973ed630090642", "score": "0.7081515", "text": "public function findOne()\r\n {\r\n $this->criteria->setLimit(1);\r\n $ret = $this->getCriteria()->findOne($this->getConnection());\r\n $this->cleanup();\r\n \r\n return $ret;\r\n }", "title": "" }, { "docid": "6a4decdfc1174b0cf7a7ddb69e7734e6", "score": "0.7055742", "text": "public function get_one() { return $this->db->get_one($this); }", "title": "" }, { "docid": "5ba7df9e394e918e4e70c3128b427d02", "score": "0.70490754", "text": "public function findOne(){\n\n $this->execute();\n return $this->statement->fetch(PDO::FETCH_OBJ);\n\n }", "title": "" }, { "docid": "a2d33038b007cee92376263b62b90a3a", "score": "0.704331", "text": "public function single() \n {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "f1a681a95b9a94da2753cc1322d0f36f", "score": "0.703158", "text": "private function _get_one () {\n // TODO check if this can be better\n // the whole confusion with is_unique and offset_end=1\n // TODO avoid the use of ID here\n if (empty($this->_model->id)) {\n $this->_model = $this->_model->find($this->_options['filter']);\n }\n if (empty($this->_model->id)) {\n $this->_error->not_found('Specified unique resource does not exist.');\n }\n return $this->_populate([$this->_model], $this->_data, $this->_options['with']);\n }", "title": "" }, { "docid": "023fbc7e621269718f61c53dd7da0ebb", "score": "0.7007896", "text": "public function single()\r\n {\r\n $this->execute();\r\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\r\n }", "title": "" }, { "docid": "d02b62d735a048c2d68911e4a77691b9", "score": "0.69678336", "text": "public function readOne()\n {\n $sql = 'SELECT \"Id_producto\", nombre_producto , detalle , precio , cantidad , foto_pro \n FROM \"Producto\"\n WHERE \"Id_producto\" = ?';\n $params = array($this->id);\n return Database::getRow($sql, $params);\n }", "title": "" }, { "docid": "9a33b89873b5e893b4d0c08d4a96b6b1", "score": "0.69564056", "text": "public function single()\n {\n $this->execute();\n return $this->_stmt->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "7ce0c80a442274c1e1db431ca392fc1b", "score": "0.69452", "text": "public function single() {\n\t\t$this->execute();\n\t\treturn $this->statment->fetch(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "85e313e5ec1d7ee4e253779a7bf483ca", "score": "0.69297576", "text": "final public function fetchOne($p)\n\t{\n\t\t$r = $this->fetch(array($p));\n\t\treturn reset($r);\n\t}", "title": "" }, { "docid": "62fe966a86b4c3fd330f13c5cc23d39d", "score": "0.68969685", "text": "function readOneRecord(){\n\n // query to read single record\n $query = \"SELECT\n *\n FROM\n \" . $this->table_name . \" \n WHERE\n account_id = ?\n LIMIT\n 0,1\";\n\n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n\n // bind id of account to read\n $stmt->bindParam(1, $this->account_id);\n\n // execute query\n $stmt->execute();\n\n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n if($stmt->rowCount()>0)\n {\n // set values to object properties\n $this->account_id\t\t= $row['account_id'];\n $this->user_name\t\t= $row['user_name'];\n $this->email\t\t\t= $row['email'];\n $this->password\t\t\t= $row['password'];\n }\n\n return $stmt;\n\n }", "title": "" }, { "docid": "21309f5d67cff85ef139e75b48c879de", "score": "0.6890886", "text": "public function first()\n {\n // Execute the query.\n $this->run('read');\n\n // Fetch results.\n $fetched = $this->stmt->fetch();\n\n // Don't continue if fetched is null.\n if ($fetched === false) return false;\n\n // Do we have a model to instantiate?\n if ($this->model !== null && is_object($fetched))\n {\n $record = new $this->model;\n foreach ($fetched as $attribute => $value)\n {\n $record->$attribute = $value;\n }\n }\n else\n {\n $record = $fetched;\n }\n\n // Return record.\n return $record;\n }", "title": "" }, { "docid": "5f2e0857ce5db714586bdc05d9819ad0", "score": "0.6867444", "text": "public function loadFirst()\n {\n return $this->limit(1)->load()->getFirst();\n }", "title": "" }, { "docid": "5ced404cc09bfb994daaa7f36465f72d", "score": "0.6843662", "text": "public function one()\n {\n return $this->getResults()->one();\n }", "title": "" }, { "docid": "6e9c863264b0071f5e192f34f6431eef", "score": "0.68281186", "text": "public function first() {\n\t// first record\n\t\t$this->_index = 0;\n\t\t// load record\n\t\treturn $this->_loadRecord();\n\t}", "title": "" }, { "docid": "bfc8f8aafdb1960d943f839c3c06fc5e", "score": "0.68244034", "text": "public function fetchOne ($sql) {\n\n\t\t\t$output = $this->fetchAll($sql) ;\n\n\t\t\treturn array_shift($output);\n\t\t}", "title": "" }, { "docid": "9e7b027b38ba3972518d9e6a3d3b3898", "score": "0.68082464", "text": "public function fetchOne()\n\t{\t\t\n\t\t$this->result = $this->stmt->fetchColumn();\n\t\t\n\t\treturn $this->result;\n\t}", "title": "" }, { "docid": "93e54ba8575e9e66c15ade5ad96f6bcd", "score": "0.68051964", "text": "public function getSingle()\n {\n $record = $this->setMaxResults(1)->get(func_get_args());\n\n return reset($record);\n }", "title": "" }, { "docid": "294060c23e40b776a86fff0cdb079fab", "score": "0.67847306", "text": "public function read_single(){\r\n // Create query\r\n $query = 'SELECT id,FirstName,LastName, UserName, Email FROM ' . $this->table . ' WHERE id = :id LIMIT 0,1';\r\n \r\n //Prepare statement\r\n $stmt = $this->conn->prepare($query);\r\n\r\n // Bind data\r\n $stmt->bindParam(':id', $this->id);\r\n\r\n // Execute query\r\n if($stmt->execute()) {\r\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n // set properties\r\n $this->id = $row['id'];\r\n $this->FirstName = $row['FirstName'];\r\n $this->LastName = $row['LastName'];\r\n $this->UserName = $row['UserName'];\r\n $this->Email = $row['Email']; \r\n }\r\n }", "title": "" }, { "docid": "27f25a5b4790696662711a3ade4582bd", "score": "0.6780707", "text": "public function findOne()\r\n {\r\n $this->query->limit(1);\r\n $res = $this->buildQuery()->execute();\r\n if(!is_null($this->select))\r\n {\r\n $res = $this->cleanupResultArray($res);\r\n }\r\n $res = isset($res[0]) ? $res[0] : (is_array($this->select) ? array() : null);\r\n $this->cleanup();\r\n \r\n return $res;\r\n }", "title": "" }, { "docid": "7b029b82e411b03f706142430dadf034", "score": "0.6779839", "text": "function readOne()\n {\n\n $query = \"SELECT * FROM \" . $this->table_name . \" WHERE id = ? LIMIT 0,1\";\n\n $stmt = $this->conn->prepare($query);\n $stmt->bindParam(1, $this->id);\n $stmt->execute();\n\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n $this->fname = $row['FName'];\n $this->lname = $row['LName'];\n $this->email = $row['Email'];\n $this->phone = $row['Phone'];\n }", "title": "" }, { "docid": "102e120c160c6175ee9191a77156129f", "score": "0.67749715", "text": "public function findOne()\n {\n return $this->run()->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "0a7266480f7d0fe5cd6c5f61571f81e5", "score": "0.6752055", "text": "public function first()\n {\n $this->_queryBuilder['limit'] = 1;\n if ( count($this->_queryBuilder['with']) > 0) {\n $methodName = $this->_queryBuilder['with'][0];\n $this->$methodName();\n\n return $this->_data[0];\n } \n\n $sql = $this->queryBuilder();\n $this->execute($sql, null, 'fetch');\n\n return $this->_data;\n \n }", "title": "" }, { "docid": "c7e7b37ebb9dde92ef7c9bce849fe046", "score": "0.67426103", "text": "public function readOne()\n {\n $sql = 'SELECT id_producto,categoria,nombre_producto, precio_producto, descripcion_producto, cantidad_total, marca_producto, estado_producto, foto\n FROM public.\"tbProductos\" INNER JOIN public.\"tbCategorias\" USING(id_categoria)\n WHERE id_producto = ?';\n $params = array($this->id);\n return Database::getRow($sql, $params);\n }", "title": "" }, { "docid": "0613d674435bbef33426be8b067fa7d4", "score": "0.67330015", "text": "public function getOne()\n {\n $sql = $this->prepare(func_get_args());\n\n return $this->rawQuery($sql)->fetchOne();\n }", "title": "" }, { "docid": "c13c6bfcb2d1339049b625bbc42abd8a", "score": "0.6729094", "text": "public function first_row()\n {\n return $this->__prepared->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "b70dc514b40294a36aa8457a36957712", "score": "0.6724105", "text": "function readFirst(){\n // select query\n $query = \"SELECT id, product_id, name\n FROM \" . $this->table_name . \"\n WHERE product_id = ?\n ORDER BY id ASC\n LIMIT 0, 1\";\n\n // prepare query statement\n $stmt = $this->conn->prepare($query);\n\n // sanitize\n $this->id=htmlspecialchars(strip_tags($this->id));\n\n // bind prodcut id variable\n $stmt->bindParam(1, $this->product_id);\n\n // execute query\n $stmt->execute();\n\n // return values\n return $stmt;\n }", "title": "" }, { "docid": "c0c52a07206e5eda8ebbab344cf3f205", "score": "0.6715517", "text": "public function getOne(){\r\n $sql=\"SELECT * FROM empleados WHERE id={$this->getId()}\";\r\n $usuario = $this->db->query($sql);\r\n // echo $sql;\r\n return $usuario->fetch_object();\r\n }", "title": "" }, { "docid": "53665f721dd3e6a8a226a417ef7a495a", "score": "0.6697683", "text": "function fetch_one_assoc()\n\t{\n\t\t$ret= array();\n\t\t$ret = mysql_fetch_assoc($this->rs);\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "9e15659a530e63aae0685fc84d57f027", "score": "0.6693157", "text": "function getSingleResult($fetchStyle = PDO::FETCH_ASSOC) {\n $this->execute();\n return $this->stmt->fetch($fetchStyle);\n }", "title": "" }, { "docid": "94596ab887f2d75b7fa5c1b5edeca052", "score": "0.6684847", "text": "public function readOne(){\n\t\t// select single record query\n\t\t$query = \"SELECT name, description\n\t\t\t\tFROM \" . $this->table_name . \"\n\t\t\t\tWHERE id = ?\n\t\t\t\tLIMIT 0,1\";\n\n\t\t// prepare query statement\n\t\t$stmt = $this->conn->prepare( $query );\n\n\t\t// bind selected record id\n\t\t$stmt->bindParam(1, $this->id);\n\n\t\t// execute the query\n\t\t$stmt->execute();\n\n\t\t// get record details\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n\t\t// assign values to object properties\n\t\t$this->name = $row['name'];\n\t\t$this->description = $row['description'];\n\t}", "title": "" }, { "docid": "5bf6f8ec5039e6d3a9bd8f19c3309a29", "score": "0.66793466", "text": "public function single() {\n\t\t$result = null;\n\t\ttry {\n\t\t\t$result = $this->_stmt->fetch( PDO::FETCH_ASSOC );\n\t\t} catch( PDOException $e ) {\n\t\t\tthrow new Exception( __CLASS__ . '::' . __FUNCTION__ . ' throw ' . $e->getMessage() );\n\t\t}\n return $result;\n\t}", "title": "" }, { "docid": "5d568b623b9e0c80e52c80255fe58a56", "score": "0.6672725", "text": "public function single(){\n$this->execute();\nreturn $this->stmt->fetch(PDO::FETCH_OBJ);\n}", "title": "" }, { "docid": "53c1bc877dd609924691ed2a29aa66e2", "score": "0.6669007", "text": "public function first(){\r\n return $this->results()[0];\r\n }", "title": "" }, { "docid": "b9d5af2ccdc1680003ff2de2df44ec64", "score": "0.6640086", "text": "function get_one( $conditions = FALSE )\n\t{\n\t\tif( ! $conditions ){\n\t\t\treturn $this->get_many();\n\t\t}\n\t\t$this->db->where( $conditions );\n\t\treturn $this->db->get( $this->tbl )->row();\n\t \n\t}", "title": "" }, { "docid": "e58148dd748da52ff8fb9b4c5dd780b9", "score": "0.6630605", "text": "public function testFetchOne()\n {\n // insert a set of records\n $this->_populateSpecialColsTable();\n \n // fetch by number to get a Record\n $model = $this->_catalog->getModel('TestSolarSpecialCols');\n $record = $model->fetchOne(array(\n 'where' => array('name = ?' => 'c'),\n ));\n \n $this->assertInstance($record, 'Solar_Sql_Model_Record');\n $this->assertInstance($record, 'Mock_Solar_Model_TestSolarSpecialCols_Record');\n $this->assertEquals($record->name, 'c'); // make sure it's the right one ;-)\n }", "title": "" }, { "docid": "75987c46225bf6f5f9767592a481d008", "score": "0.66136914", "text": "function readOne(){\n \n // query to read single record\n $query = \"SELECT\n c.firstName as username, p.id, p.reason, p.startDate,p.endDate, p.userId, p.created\n FROM\n \" . $this->table_name . \" p\n LEFT JOIN\n users c\n ON p.userId = c.id\n WHERE\n p.id = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->reason = $row['reason'];\n $this->startDate = $row['startDate'];\n $this->endDate = $row['endDate'];\n $this->userId = $row['userId'];\n $this->username = $row['username'];\n }", "title": "" }, { "docid": "00582a6496cb0816d5af7ab9e6bea111", "score": "0.6597977", "text": "function readOne(){\n\t $query = \"SELECT * FROM \" . $this->table_name . \" WHERE id = ? LIMIT 0,1\";\n\t \n\t // prepare query statement\n\t $stmt = $this->conn->prepare( $query );\n\t \n\t \n\t \n\t // execute query\n\t $stmt->execute(array($this->id));\n\t \n\t // get retrieved row\n\t $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t \n\t // set values to object properties\n\t $this->nombre = $row['nombre'];\n\t $this->version = $row['version'];\n\t $this->documento_de_amparo = $row['documento_de_amparo'];\n\t $this->numero_licencias = $row['numero_licencias'];\n\t $this->plataforma = $row['plataforma'];\n\t $this->clasificacion = $row['clasificacion'];\n\t $this->observaciones = $row['observaciones'];\n\n\n\n\t \t\n\n\t}", "title": "" }, { "docid": "6d63503e3ea00f509adba059e3d79365", "score": "0.65978384", "text": "public function first()\n\t{\n\t\treturn $this->take(1)\n\t\t\t->query()\n\t\t\t->first();\n\t}", "title": "" }, { "docid": "3791668512d6065de41d1417f28efb74", "score": "0.65868413", "text": "public function retrieveRecordByID()\n {\n $dbh = &$this->dbh;\n $query = &$this->queryRan;\n $res= &$this->res;\n $id = &$this->id;\n if(isset($dbh))\n {\n if(!empty($id))\n {\n $query = \"SELECT * FROM entry\";\n $query .= \" WHERE id='$id'\";\n $exec = pg_exec($dbh, $query);\n $numrows = pg_numrows($exec);\n if($numrows > 0)\n {\n $this->recordExists = true;\n $res = pg_fetch_all($exec);\n $r = $res[0];\n $this->populateFromResIn($r);\n }\n }\n\n }\n }", "title": "" }, { "docid": "a73487440485740e0fefc664f525370a", "score": "0.6566403", "text": "function readOne(){\n \n // query to read single record\n $query = \"SELECT\n *\n FROM\n \" . $this->table_name . \" \n\n WHERE\n id = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n\t\t$this->accountnumber = $row['accountnumber'];\n $this->name = $row['name'];\n $this->balance = $row['balance'];\n $this->equity = $row['equity'];\n $this->marginfree = $row['marginfree'];\n $this->marginlevel = $row['marginlevel'];\n\t\t$this->status = $row['status'];\n $this->data = $row['data'];\n }", "title": "" }, { "docid": "efc0e5ce3b919675a5b81fe286b2dc01", "score": "0.6556171", "text": "function readOne(){\n \n // query to read single record\n\n $query = \"SELECT\n b.id, b.title, b.content, b.status, b.category, b.tags, b.meta_keyword, b.meta_description, b.visits, b.created_date, b.modified_date, b.created_by\n FROM\n \" . $this->table_name . \" b\n WHERE\n b.id = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->title = $row['title'];\n $this->content = $row['content'];\n $this->status = $row['status'];\n $this->category = $row['category'];\n $this->tags = $row['tags'];\n $this->meta_keyword = $row['meta_keyword'];\n $this->meta_description = $row['meta_description'];\n $this->visits = $row['visits'];\n $this->created_date = $row['created_date'];\n $this->modified_date = $row['modified_date'];\n $this->created_by = $row['created_by'];\n }", "title": "" }, { "docid": "9860e894e579b43ae4bff25a17bddbbd", "score": "0.65520245", "text": "function readOne()\n {\n\n // query to read single record\n $query = \"SELECT\n *\n FROM\n \" . $this->table_name . \"\n WHERE\n AccountNumber = ?\n LIMIT\n 0,1\";\n\n // prepare query statement\n $stmt = $this->DBconnect->prepare( $query );\n\n // bind id of product to be updated\n $stmt->bindParam(1, $this->AccountNumber);\n\n // execute query\n $stmt->execute();\n\n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // set values to object properties\n $this->AccountName = $row['AccountName'];\n $this->AccountBalance = $row['AccountBalance'];\n }", "title": "" }, { "docid": "5a60b9d3b743700f9a49bfb2bb983448", "score": "0.65438664", "text": "public function fetchSingle(){\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\n}", "title": "" }, { "docid": "d9e4dd847be9d77c74d5d934ed2195e3", "score": "0.6543584", "text": "public function first()\n {\n $this->queryBuilder->setLimit(1);\n\n $result = $this->get();\n \n return count($result) >= 1 ? $this->bootstrapSelf($result[0]) : null;\n }", "title": "" }, { "docid": "f0bc8c249125440ebb14b74c5880bad1", "score": "0.65396476", "text": "public function first()\n {\n return $this->toQuery()->first();\n }", "title": "" }, { "docid": "d22d9b6f5c883b18270d4dd362d2e145", "score": "0.65317774", "text": "public function getOne()\n {\n $results = $this->get(1);\n return $this->found() ? $results[0] : false;\n }", "title": "" }, { "docid": "5a2f663c3a9b7d00e360e6d1b46913a5", "score": "0.6529869", "text": "public function first()\n {\n $this->limit = 1;\n $result = $this->find();\n if (count($result)) {\n return $result[0];\n } else {\n return [];\n }\n }", "title": "" }, { "docid": "1ee7e4ff5a9803e2f6960cee4aaad8df", "score": "0.65290976", "text": "static function selectOne($sql = '', $first_only = true, $include_deleted = false)\n {\n if (!$sql)\n {\n $sql = \"SELECT * FROM \".static::TABLE_NAME;\n }\n elseif ($sql == 'only')\n {\n $sql = \"SELECT * FROM ONLY \".static::TABLE_NAME;\n }\n\n if ($first_only && $first_only !== true)\n {\n $sql .= \" ORDER BY $first_only\";\n }\n\n $link = self::stream($sql);\n while ($object = self::stream($sql, $link))\n {\n if (!$include_deleted && $object->deleted && strtotime($object->deleted) <= time())\n {\n continue;\n }\n return $object;\n }\n }", "title": "" }, { "docid": "c5f0f3016e961bd890b4ab266f1cbc9d", "score": "0.65289813", "text": "public function first()\n\t{\n\t\t$this->query .= ' LIMIT 1';\n\n\t\t$res = $this->execute();\n\n\t\tif(isset($res) && !empty($res)) {\n\t\t\t//return new $this->model\n\t\t\treturn $res[0];\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "054914a8388cba56d9c02590b797336d", "score": "0.6521694", "text": "function readOne(){\r\n \r\n // query to read single record\r\n $query = \"SELECT * FROM\r\n \" . $this->table_name . \" WHERE id = ?\r\n LIMIT\r\n 0,1\";\r\n \r\n // prepare query statement\r\n $stmt = $this->conn->prepare( $query );\r\n \r\n // bind id of product to be updated\r\n $stmt->bindParam(1, $this->id);\r\n \r\n // execute query\r\n $stmt->execute();\r\n\treturn $stmt;\r\n // get retrieved row\r\n //$row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n \r\n // set values to object properties\r\n //$this->cus_first_name = $row['cus_first_name'];\r\n //$this->cus_email = $row['cus_email'];\r\n //$this->cus_contact = $row['cus_contact'];\r\n\t\r\n}", "title": "" }, { "docid": "7958672928d7bbb09481f926d9a5b83f", "score": "0.65156674", "text": "public function readOne()\n {\n $query = \"SELECT * FROM \" . $this->table_name . \" \n WHERE\n user_id = ?\n LIMIT\n 0,1\";\n\n $stmt = $this->conn->prepare($query);\n\n $stmt->bindParam(1, $this->user_id);\n\n $stmt->execute();\n\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // set values to object properties\n $this->user_id = $row['user_id'];\n $this->name = $row['name'];\n $this->user_name = $row['user_name'];\n $this->email = $row['email'];\n $this->phone = $row['phone'];\n $this->address = $row['address'];\n $this->user_category = $row['user_category'];\n }", "title": "" }, { "docid": "8af757d8bf588a7115c463e3a6b41c3f", "score": "0.649001", "text": "public function fetch() {\r\n return $this->getTable()->fetchRow('id_profile = ' . $this->_user_id);\r\n }", "title": "" }, { "docid": "d1f1a8e77255941019d9968967f18fae", "score": "0.6485802", "text": "public function fetchOne()\n {\n foreach ($this->rows as $rows) {\n yield $rows;\n }\n }", "title": "" }, { "docid": "fbc2626cd08ca5f1b1c9b33fb8cfeb9f", "score": "0.6485396", "text": "public static function getFirstarticle() {\r\n self::seConnecter();\r\n parent::$request = \"SELECT * FROM article order by idarticle limit 1\";\r\n self::$pdoStResults = self::$pdoCnxBase->prepare(self::$request);\r\n self::$pdoStResults->execute();\r\n self::$result = self::$pdoStResults->fetch();\r\n\r\n self::$pdoStResults->closeCursor();\r\n return self::$result;\r\n \r\n }", "title": "" }, { "docid": "54e1cdee10ae83af04345bbdc5b905d0", "score": "0.6482356", "text": "public function fetchOne(): ?string\n {\n if ($this->result === null) {\n $this->query();\n }\n return empty($this->result) ? null : reset($this->result[0]);\n }", "title": "" }, { "docid": "84377814d98cfbaedc93582d6db2a19b", "score": "0.6478941", "text": "public function getOne($sql){\n $result = $this->query($sql);\n $row = $result->fetch();\n if($row){\n return $row[0];\n }else {\n return false;\n }\n }", "title": "" }, { "docid": "2b9388edb0d53906380ae91ce7680196", "score": "0.6476135", "text": "function readOne(){\n\t\t\n\t\t$query = \"SELECT \n\t\t\t\t\t*\n\t\t\t\tFROM \n\t\t\t\t\t\" . $this->table_name . \" \n\t\t\t\tWHERE \n\t\t\t\t\tid = ?\"; \n\t\t\t\t\n\n\t\t$stmt = $this->conn->prepare( $query );\n\t\t$stmt->bindParam(1, $this->id);\n\t\t$stmt->execute();\n\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\n\t\t$this->name = $row['name'];\n\t\t$this->url = $row['url'];\n\t\t$this->location = $row['location'];\n\t\t$this->host = $row['host'];\n\t\t$this->type = $row['type'];\n\t}", "title": "" }, { "docid": "22c607d9379662cf8b8ddf252166720d", "score": "0.6471565", "text": "public function testFetchOneRow()\n {\n $res = $this->db->select(\"*\")\n ->from(\"user\")\n ->where(\"id = 1\")\n ->execute()\n ->fetch();\n \n $this->assertInstanceOf(\\stdClass::class, $res);\n $this->assertEquals(1, $res->id);\n $this->assertEquals(3, $res->age);\n $this->assertEquals(\"three\", $res->name);\n }", "title": "" }, { "docid": "9f040f18bd9a06edf80cb1c9580b139c", "score": "0.64698356", "text": "public function first(): mixed\n {\n if ($this->_dirty) {\n $this->limit(1);\n }\n\n return $this->all()->first();\n }", "title": "" }, { "docid": "12a255da807890741a4de8a4a8d2dbab", "score": "0.64691424", "text": "public function read_single(){\n //create query\n $query = 'SELECT \n l.id, l.item_id, i.color as item_color, i.icon as item_icon, l.user_id, l.link \n FROM '.$this->table .' l \n LEFT JOIN items i ON l.item_id = i.id WHERE l.id= ? LIMIT 1';\n\n //prepare statement\n $stmt = $this->conn->prepare($query);\n $stmt->bindParam(1, $this->id);\n\n //execute query\n $stmt->execute();\n\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n $this->id = $row['id'];\n $this->item_id = $row['item_id'];\n $this->item_color = $row['item_color'];\n $this->item_icon = $row['item_icon'];\n $this->link = $row['link'];\n }", "title": "" }, { "docid": "151206f1f36bc43cbd65f01b4da91fa4", "score": "0.645848", "text": "public function safeFetchRow()\r\n {\r\n $record_set = $this->fetchedItem->fetch(PDO::FETCH_NUM);\r\n return $record_set;\r\n }", "title": "" }, { "docid": "47479bea04b1f8655b640594c4c31f35", "score": "0.6454039", "text": "function readOne(){\n\n // query to read single record\n $query = \"SELECT\n id, last_name, first_name, phone, address_1, address_2, city, st, zip, bt_id, ins_1, ins_2, ins_3, created\n FROM\n \" . $this->table_name . \"\n WHERE\n id = ?\n LIMIT\n 0,1\";\n\n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n\n // bind id of patient to be updated\n $stmt->bindParam(1, $this->id);\n\n // execute query\n $stmt->execute();\n\n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // set values to object properties\n $this->last_name = $row['last_name'];\n $this->first_name = $row['first_name'];\n $this->phone = $row['phone'];\n $this->address_1 = $row['address_1'];\n $this->address_2 = $row['address_2'];\n $this->city = $row['city'];\n $this->st = $row['st'];\n $this->zip = $row['zip'];\n $this->bt_id = $row['bt_id'];\n $this->ins_1 = $row['ins_1'];\n $this->ins_2 = $row['ins_2'];\n $this->ins_3 = $row['ins_3'];\n $this->created = $row['created'];\n }", "title": "" }, { "docid": "fddf428b67c077589ad3d7bae36bc6c9", "score": "0.6450205", "text": "function readOne(){\n\n // query to read single record\n $query = \"SELECT\n s.idTrainer, s.nameTrainer, s.addressTrainer\n FROM\n \" . $this->table_name . \" s\n WHERE\n s.idTrainer = ?\n LIMIT\n 0,1\";\n\n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n\n // bind id of salle to be updated\n $stmt->bindParam(1, $this->idTrainer);\n\n // execute query\n $stmt->execute();\n\n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // set values to object properties\n $this->nameTrainer = $row['nameTrainer'];\n $this->addressTrainer = $row['addressTrainer'];\n }", "title": "" }, { "docid": "9b59477dd436065c65573f70eaaba12c", "score": "0.6445397", "text": "public function single(){ \n$this->execute(); \nreturn $this->stmt->fetch(PDO::FETCH_ASSOC); \n}", "title": "" }, { "docid": "b02d4b35137dd6cb582a3dfb363439e1", "score": "0.64446044", "text": "function get_record() {\n\n return $this->record = @mysql_fetch_array($this->result);\n }", "title": "" }, { "docid": "a7d93fff2e968af464a831f199bf0f99", "score": "0.6433585", "text": "public function fetch_row(){}", "title": "" }, { "docid": "21f388ca6bca6e52f4976d6c4fa9dc16", "score": "0.64332604", "text": "public function first() {\n\t\tif( empty($this->selectClause) ) {\n\t\t\t$this->selectClause = \"*\";\n\t\t}\n\t\t$sql = \"SELECT \" . $this->selectClause . \" FROM \" . $this->table . $this->whereClause;\n \ttry {\n\t\t $stmt = $this->conn->prepare($sql); \n\t\t $stmt->execute();\n\t\t $this->selectClause = \"\";\n\t\t $this->whereClause = \"\";\n\t\t return $stmt->fetch();\n\t\t}\n\t\tcatch(PDOException $e) {\n\t\t echo \"Error: \" . $e->getMessage();\n\t\t return false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "402b00701aa8ae38927a9b91bc059935", "score": "0.6433238", "text": "function readOne() {\n $query = \"SELECT\n *\n FROM\n \" . $this->table_name . \" \n WHERE\n match_id = ? AND username = ? AND player_id = ?\n LIMIT\n 0,1\";\n\n // prepare query statement\n $stmt = $this->conn->prepare($query);\n\n // bind id of players to be updated\n $stmt->bindParam(1, $this->match_id);\n $stmt->bindParam(2, $this->username);\n $stmt->bindParam(3, $this->player_id);\n\n\n // execute query\n $stmt->execute();\n\n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // set values to object properties\n $this->match_id = $row['match_id'];\n $this->player_id = $row['player_id'];\n $this->rating = $row['rating'];\n $this->username = $row['username'];\n $this->date_time = $row['date_time'];\n }", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.64196956", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.64196956", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.64196956", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.64196956", "text": "public function first();", "title": "" }, { "docid": "f0973ba34a9fbbeec02f7363ee308ed6", "score": "0.64196956", "text": "public function first();", "title": "" }, { "docid": "9af66d6eda7f80f5228b60b08314a5d9", "score": "0.6405157", "text": "public function first() {\n\t\t\treturn $this->_results[0];\n\t\t}", "title": "" }, { "docid": "7704c4a48f2bdd38f037497f3bf666e9", "score": "0.6402454", "text": "function readOne(){\n\n\t\t// query to read single record\n\t\t$query = \"SELECT cliente, descripcion, servicios_contratados, nombre_contacto, correo, telefono, extension, celular, imagen, ubicacion_imagen\n\t\t\t\tFROM \" . $this->table_name . \" \n\t\t\t\tWHERE id = ?\n\t\t\t\tLIMIT 0,1\";\n\n\t\t// prepare query statement\n\t\t$stmt = $this->conn->prepare( $query );\n\n\t\t// bind id of product to be updated\n\t\t$stmt->bindParam(1, $this->id);\n\n\t\t// execute query\n\t\t$stmt->execute();\n\n\t\t// get retrieved row\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n\t\t// set values to object properties\n\t\t$this->cliente = $row['cliente'];\n\t\t$this->servicios_contratados = $row['servicios_contratados'];\n\t\t$this->descripcion = $row['descripcion'];\n\t\t$this->nombre_contacto = $row['nombre_contacto'];\n\t\t$this->correo = $row['correo'];\n\t\t$this->telefono = $row['telefono'];\n\t\t$this->extension = $row['extension'];\n\t\t$this->celular = $row['celular'];\n\t\t$this->imagen = $row['imagen'];\n\t\t$this->ubicacion_imagen = $row['ubicacion_imagen'];\n\t}", "title": "" }, { "docid": "36278edb822e57859903b76a7dbe7712", "score": "0.6398015", "text": "function readFirst(){\n // select query\n $query = \"SELECT id, id_produit, image1\n FROM \" . $this->table_name . \"\n WHERE id_produit = ?\n LIMIT 0, 1\";\n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n // sanitize\n $this->id=htmlspecialchars(strip_tags($this->id));\n // bind prodcut id variable\n $stmt->bindParam(1, $this->product_id);\n // execute query\n $stmt->execute();\n // return values\n return $stmt;\n }", "title": "" }, { "docid": "eb97d766e6997df4379be7f1bc23f4b5", "score": "0.63944584", "text": "public function First(){return sql_rewind($this->rs); }", "title": "" }, { "docid": "6f0ca696b1bc904bdd0b8242788e3217", "score": "0.63903224", "text": "public function one()\n {\n foreach ($this->all() as $result) {\n return $result;\n }\n return null;\n }", "title": "" }, { "docid": "ab8bd1c34bcb367eea11b6b590069754", "score": "0.63791066", "text": "public function findOne()\n {\n $result = $this->findAll(1);\n return empty($result) ? array() : current($result);\n }", "title": "" }, { "docid": "da8cf3d6d5d8e7710122a12aac228f84", "score": "0.63616216", "text": "function readOne()\r\n {\r\n // sql query\r\n $query = \"SELECT tavolo.id_tavolo, tavolo.id_ambiente, ambiente.nome AS nome_ambiente, tavolo.posti\r\n FROM tavolo, ambiente\r\n WHERE tavolo.id_ambiente = ambiente.id_ambiente\r\n AND id_tavolo = ? LIMIT 0,1\";\r\n\r\n // prepare query statement\r\n $stmt = $this->conn->prepare($query);\r\n\r\n // bind id of record to be updated\r\n $stmt->bindParam(1, $this->id_tavolo);\r\n\r\n // execute query\r\n $stmt->execute();\r\n\r\n // fetch\r\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n // set values to object properties\r\n $this->id_tavolo = $row['id_tavolo'];\r\n $this->id_ambiente = $row['id_ambiente'];\r\n $this->posti = $row['posti'];\r\n $this->nome_ambiente = $row['nome_ambiente'];\r\n }", "title": "" }, { "docid": "eb3033e32160f16019f824539b0d0b67", "score": "0.63595444", "text": "public function fetch_one($sql){\n\t\t$q = $this->query($sql);\n\t\tif($q){\n\t\t\tif($this->num_rows($q)>1){\n\t\t\t\tFlash::warning(\"Una sentencia SQL: \\\"$sql\\\" retorno mas de una fila cuando se esperaba una sola\");\n\t\t\t}\n\t\t\treturn $this->fetch_array($q);\n\t\t} else {\n\t\t\treturn array();\n\t\t}\n\t}", "title": "" }, { "docid": "6ea46412bf0fbf9800ac5b435d431a91", "score": "0.6355409", "text": "public function single() {\n\t\tif ($this->execute()) {\n\t\t\treturn $this->mStmnt->fetch(PDO::FETCH_ASSOC);\n\t\t}\n\t\telse {\n\t\t\t$arr = array();\n\t\t\treturn $arr;\n\t\t}\n\t}", "title": "" }, { "docid": "be7d1c4e3cf241559479d653eb729924", "score": "0.6350385", "text": "function readOne()\n {\n\t\t\t$query=\"select distinct idmodelos,modelo,precio,fkmarca\nfrom\nmodelos where idmodelos = ?\";\n $stmt = $this->conn->prepare($query);\n $stmt->bindParam(1, $this->idmodelos);\n $stmt->execute();\n\n // Crea el vinculo con la BD y Muestra los registros existentes\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n // en las llaves \"[ ]\" van los nombres de atributos de BD.\n $this->idmodelos = $row['idmodelos'];\n $this->modelo = $row['modelo'];\n $this->precio = $row['precio'];\n $this->pkmarca = $row['fkmarca'];\n\n\n }", "title": "" }, { "docid": "ff71876067663b21b4fc926d482dda9a", "score": "0.63412154", "text": "function readOne(){\n \n // query to read single record\n $query = \"SELECT\n p.idPerson, p.firstName, p.lastName, p.phoneNumber, p.address, p.email,\n p.password, p.language, p.suscriptionDate, p.lastUpdate, p.enabled\n FROM\n \" . $this->table_name . \" p\n WHERE\n p.idPerson = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of person to be updated\n $stmt->bindParam(1, $this->idPerson);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->firstName = $row['firstName'];\n $this->lastName = $row['lastName'];\n $this->phoneNumber = $row['phoneNumber'];\n $this->address = $row['address'];\n $this->email = $row['email'];\n $this->password = $row['password'];\n $this->language = $row['language'];\n $this->suscriptionDate = $row['suscriptionDate'];\n $this->lastUpdate = $row['lastUpdate'];\n $this->enabled = $row['enabled'];\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "165e2bbcf8f47c0adbed93548f33d6c1", "score": "0.80206203", "text": "public function show(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5e8acc247b28ba8722842dd97070847", "score": "0.7422284", "text": "abstract protected function makeDisplayFromResource();", "title": "" }, { "docid": "cf7a236473d0b19def52419220a82d95", "score": "0.7194732", "text": "public function show(Resource $resource)\n {\n return $resource;\n }", "title": "" }, { "docid": "b8de278532cf1b2d94016c0cd12737fd", "score": "0.7160131", "text": "public function show(Resource $resource)\n {\n $resource = new ResourceResource($resource);\n return $this->success('Resource Detail.', $resource);\n }", "title": "" }, { "docid": "1981d87b70ebb966cb1a7214c5461ecf", "score": "0.71056515", "text": "function display($resource_name) {\n return include $resource_name;\n }", "title": "" }, { "docid": "815f5613a8189df2880c7c0be463594e", "score": "0.6917522", "text": "public function show(Resource $resource)\n {\n return $this->showOne($resource);\n }", "title": "" }, { "docid": "1be3fb8370513aa7e96f7c3e96fdff88", "score": "0.64625233", "text": "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "title": "" }, { "docid": "bf9855687af595254565be84ecf08da3", "score": "0.6460956", "text": "public function show(Request $request, $resource, $id)\n {\n $command = $this->translator->getCommandFromResource($resource, 'show');\n\n $this->runBeforeCommands($command);\n\n $data = $this->dispatchFrom($command, $request, [\n 'modelClass' => $this->translator->getClassFromResource($resource),\n 'id' => $id\n ]);\n\n $this->fireEventForResource($resource, 'show', $data);\n\n return $this->success($data);\n }", "title": "" }, { "docid": "1cff5c8d606548f28e8af3af4e531294", "score": "0.62865394", "text": "protected function showAction()\n {\n $this->showAction\n ->setAccess($this, Access::CAN_SHOW)\n ->execute($this, NULL, NULL, 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": "237d3c90b7035170d5fd20572d1e0dbb", "score": "0.62467736", "text": "public function display( Response $response );", "title": "" }, { "docid": "1e1b2e6a47cd86a471b2f6e43a786d4f", "score": "0.62390536", "text": "public function testShowResourceReturnsTheCorrectResource()\n {\n $items = factory(Item::class, 10)->create();\n $item = $items->get(6);\n\n $this->call('GET', sprintf('/api/v1/item/%s', $item->id));\n\n $this->seeJson([\n 'id' => $item->id,\n 'name' => $item->name,\n ]);\n }", "title": "" }, { "docid": "1b943006f882cdea6214d3238f5094bb", "score": "0.61225414", "text": "public function display($id);", "title": "" }, { "docid": "988fc9380f55f5086ebf1ea38e63511d", "score": "0.610434", "text": "public function operate()\n {\n echo $this->resource.\"\\n\";\n }", "title": "" }, { "docid": "9cd2c7f88d644fa456e7453c3bb610d2", "score": "0.60686564", "text": "function show()\n {\n $this->display();\n }", "title": "" }, { "docid": "31c91777927cb1b0555e264f1cece7a9", "score": "0.60528284", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array('id' => array('HtmlEntities', 'StripTags', 'StringTrim')); \n $validators = array('id' => array('NotEmpty', 'Int'));\n\n // test if input is valid retrieve requested record attach to view\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams()); \n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Square_Model_Item i')\n ->leftJoin('i.Square_Model_Country c')\n ->leftJoin('i.Square_Model_Grade g')\n ->leftJoin('i.Square_Model_Type t')\n ->where('i.RecordID = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->item = $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": "9c46cbbf718572f41d5fb18cb85408df", "score": "0.6037369", "text": "public function viewName($resource)\n {\n return $this->name.'::'.$resource;\n }", "title": "" }, { "docid": "f1919612984d797496fb91a1df6bfc28", "score": "0.6036401", "text": "public function show(Resident $resident)\n {\n //\n }", "title": "" }, { "docid": "4157890d7ce997c99fc951f60a368f8a", "score": "0.6034538", "text": "public function showResource()\n {\n return new ParceiroResource(Parceiro::find(2));\n }", "title": "" }, { "docid": "5f890361bf8d16515c9463c62dee48f3", "score": "0.6022398", "text": "protected function showResourceView($id)\n\t{\n\n\t\t$element = $this->getElements($id);\n\t\treturn Response::view('adm/User/element', array('data' => $element));\n\n\t}", "title": "" }, { "docid": "4b6584e73c632121e7d29d1a53288f08", "score": "0.60008246", "text": "public function show(Request $request ,$id){\n \n if($request->session()->exists('resources') && isset($request->session()->get('resources')[$id])) {\n $resource = $request->session()->get('resources')[$id];\n $data = [];\n $data['resource'] = $resource;\n $data['enterprise'] = 'Resources Ltd.';\n \n return view('resource.show', $data); \n \n }\n \n return redirect('resource');\n \n }", "title": "" }, { "docid": "f4584c6fbf6732a4cc30c153518eac85", "score": "0.5962606", "text": "function displayResource($file) {\n\tglobal $mosConfig_lang;\n\t$file_lang = migratorBasePath() . '/resources/' . $file . '.' . $mosConfig_lang . '.html';\n\t$file = migratorBasePath() . '/resources/' . $file . '.english.html';\n\tif (file_exists($file_lang)) {\n\t\techo '<div align=\"left\" style=\"border: 1px solid black; padding: 5px; \">';\n\t\tinclude ($file_lang);\n\t\techo '</div>';\n\t} else if (file_exists($file)) {\n\t\techo '<div align=\"left\" style=\"border: 1px solid black; padding: 5px; \">';\n\t\tinclude ($file);\n\t\techo '</div>';\n\t}\n\telse\n\t\tdie(_BBKP_CRITINCLERR . $file);\n\techo __VERSION_STRING;\n}", "title": "" }, { "docid": "78f674e0991329ee80d8bfe522602ce3", "score": "0.5957479", "text": "public function actionShow()\n {\n $this->render('show', array());\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5956016", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "51df0e59505572a08a6c3c4ea6558bb4", "score": "0.59414744", "text": "public function showAction()\n\t{\n\t\t$this->loadLayout()->renderLayout();\n\t}", "title": "" }, { "docid": "d0d1f283ce410ec0d9c7e82af4062258", "score": "0.59326625", "text": "public function display(WebResource $res) {\n $view = $res->getView() ?: array();\n switch(count($view)) {\n case 0:\n case 1:\n $viewType = Config::get('view.defaultViewType', 'json');\n break;\n default:\n $viewType = $view[0];\n break;\n }\n $viewMappings = Config::get('view.mappings');\n if (!isset($viewMappings[$viewType])) {\n throw new Exception(\n \"Could not render view by type $viewType\",\n Exception::CODE_PRETTY_VIEW_NOTFOUND);\n }\n $viewName = $viewMappings[$viewType];\n $view = $this->classLoader->load($viewName, true);\n if (!$view) {\n throw new Exception(\"Could not render view by $viewName, view class not found.\",\n Exception::CODE_PRETTY_CLASS_NOTFOUND);\n }\n $view->render($res);\n }", "title": "" }, { "docid": "9c9f166dfbd4a1117126f1616068d929", "score": "0.5906258", "text": "public function displayAction()\n {\n\n $domainName = GeneralUtility::getIndpEnv('TYPO3_REQUEST_HOST');\n\n $shortenUrl = $this->urlRepository->findShortUrlByPage($this->currentPage);\n\n if (empty($shortenUrl)) {\n $shortenUrl = $this->generateShortUrl();\n }\n\n $this->view\n ->assign('display', $shortenUrl)\n ->assign('domain', $domainName);\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.5903327", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e45bfcde7a17ab2a4f6f9e2caad01271", "score": "0.5883326", "text": "function display()\n\t{\n\t\t// Set a default view if none exists\n\t\tif ( ! JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar('view', 'category' );\n\t\t}\n\n\t\t$layout = JRequest::getCmd( 'layout' );\n\n\t\tif ($layout == 'form') {\n\t\t\tJError::raiseError( 404, JText::_(\"Resource Not Found\") );\n\t\t\treturn;\n\t\t}\n\n\t\t$view = JRequest::getVar('view');\n\n\t\tparent::display(true);\n\t}", "title": "" }, { "docid": "6f20a1779e33227cfc4451ace6ab29af", "score": "0.5866568", "text": "public function edit(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e278522937d7847767c9d2ff92455995", "score": "0.586224", "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": "8c62873548eaa44202c0ae405fd7d4b3", "score": "0.58608717", "text": "public function resolveForDisplay($resource, $attribute = null)\n {\n $this->prepareLines($resource, $attribute);\n }", "title": "" }, { "docid": "bf80668121276aa95e552b7e16de0410", "score": "0.5858548", "text": "public function display() \n\t{\n\t\t\n\t\tparent::display(); \n\t}", "title": "" }, { "docid": "f0ce504b8c6c28b59b1b83da05a1e7ee", "score": "0.58358604", "text": "public function show($imageResource) {\n\t\theader('Content-type: image/png');\n\t\theader('Content-disposition: inline');\n\t\timagepng($imageResource, null, 0);\n\t}", "title": "" }, { "docid": "1b6934d948dba93be88f01d4f4cde49a", "score": "0.5814721", "text": "public function display($context);", "title": "" }, { "docid": "bcb7bd8aa9f807e36423f26674169bf6", "score": "0.57857597", "text": "public static function resource($resource, $controller, $options) {\n \n }", "title": "" }, { "docid": "06a412168984820a16a8be534a2d85f1", "score": "0.578292", "text": "public function display()\n\t{\n\t\theader('Content-type: image/png');\n\t\timagepng($this->_imageResource , null , 5 );\n\t}", "title": "" }, { "docid": "55ebb313f26c5900b8cfe594dfa4e5eb", "score": "0.5774048", "text": "public function display() {\n\t\techo $this->render();\n\t}", "title": "" }, { "docid": "2543e47f21a6d16ac7911a7ed2e24588", "score": "0.57709444", "text": "public function showAction()\n {\n //loads the artist\n $artist = $this->_getArtistById($this->_getParam('id'));\n \n //sends it to the view\n $this->view->artist = $artist;\n \n //loads and sends its albums to the view\n $this->view->albums = $artist->findDependentRowset('Model_Album');\n }", "title": "" }, { "docid": "a1ebeebfc498c76d0c8996e04e37ac78", "score": "0.5764367", "text": "public function show(){\n $this->init();\n $this->load(self::class);\n }", "title": "" }, { "docid": "41311b65a90295f931830bf21bc118c5", "score": "0.5761342", "text": "public function DisplayResources($resource_IDs) {\n \n //Variables for the pagination\n $limit_offset = $this->CPagination->limit_offset;\n $limit_maxNumRows = $this->CPagination->limit_maxNumRows;\n \n //Get resources\n $result = $this->MDatabase->GetResources((int) $limit_offset, (int) $limit_maxNumRows, $resource_IDs);\n \n //If nothing is returned, say so and end here\n if(!$result) {\n echo 'No results.';\n return;\n }\n \n //Initiate the variable that will contain all the output\n $output = '';\n \n //Display the resources one by one\n while($row = $result->fetch_array()) {\n $output .= '<div class=\"resource\">';\n \n $title = htmlspecialchars($row['title']);\n $resource_type = htmlspecialchars($row['resource_type']);\n $description = htmlspecialchars($row['description']);\n $publishing_date = htmlspecialchars($row['publishing_date']);\n \n $output .= \"<h3>\" . $title . \"</h3>\";\n $output .= \"<table class='resource_info'><tbody>\";\n $output .= \"<tr>Type: \" . ucwords(strtolower($resource_type)) . '</tr>';\n $output .= ' <tr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#\" class=\"tooltip\">'\n . '<img src=\"img/information-icon-small.png\">'\n . '<span><img class=\"callout\" src=\"img/callout_black.gif\" />'\n . '<strong>Description</strong><br />' . $this->Parsedown->text($description)\n . '</span></a></tr>';\n \n /* Get and display the URLs */\n $output .= $this->DisplayURLs((int) $row['resource_id']); \n \n //Clear the float\n $output .= '<div class=\"clear\"></div>';\n \n /* Display the publishing date, if it exists */\n $output .= $publishing_date ? \"<tr>Publishing Date: {$publishing_date}</tr>\" : '';\n \n /* Get and display the authors */\n $output .= $this->DisplayAuthors((int) $row['resource_id']);\n\n /* Get and display the keywords */\n $output .= $this->DisplayKeywords((int) $row['resource_id']);\n \n $output .= '</div>'; //close the class=\"resource\" div\n }\n \n echo $output;\n }", "title": "" }, { "docid": "64ca047c763cbf564dd5de6f46e00c8a", "score": "0.57569635", "text": "public function display(){}", "title": "" }, { "docid": "e9b2cd8fa004ddb7b0d9e03744f3126f", "score": "0.57497704", "text": "public function display()\n {\n $return = $this->fetch();\n echo $return;\n }", "title": "" }, { "docid": "2c3490c6d6b2073fd195968f652e07c5", "score": "0.5748864", "text": "public function render()\n {\n $rows = $this->resource->model()::all();\n\n $title = Str::of($this->resource->name())->plural();\n\n return view('moon::resources.index', [\n 'title' => $title,\n 'columns' => $this->resource->columns(),\n 'rows' => $rows\n ])->layout('moon::layouts.app', ['title' => $title]);\n }", "title": "" }, { "docid": "b817fe8afcad697af904cbcdb8688cef", "score": "0.5747722", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AVBundle:Reto')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Reto entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AVBundle:Reto:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "c0a70a08a2849ac13def6ed6304e58da", "score": "0.57441145", "text": "public function show(): UserResource\n {\n return $this->repository->show();\n }", "title": "" }, { "docid": "c952768f11b98a6aed12e59d779b7efa", "score": "0.5738123", "text": "public function display() { echo $this->render(); }", "title": "" }, { "docid": "9aee1654836904270de00365634a70fd", "score": "0.5733107", "text": "protected function show($param) {\n $method = 'show_' . $param;\n if (method_exists($this, $method)) {\n $this->$method();\n } else {\n $this->error('Invalid command argument!');\n $this->help();\n }\n }", "title": "" }, { "docid": "c7ce15d35acae8f764d0adba3a337cb0", "score": "0.57263494", "text": "public function display($file) \n {\n echo $this->fetch($file); \n }", "title": "" }, { "docid": "7fa9265465a0729600bbbce97f9e8303", "score": "0.5722932", "text": "function render(Request $Req, Response $Res, $resource);", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722566", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "b5e7179ea7c94add1c1af50e9f9b7fdd", "score": "0.57208496", "text": "public function show($id)\n\t{\n\t\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.57188773", "text": "public function show($id) {}", "title": "" }, { "docid": "3635f9e6312e7f3ef2e689432f8a3312", "score": "0.570613", "text": "public function show( Patient $patient ) {\n\t\t//\n\t}", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.5705372", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.5705372", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.5705372", "text": "public abstract function display();", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.5702628", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57009894", "text": "public function show(){}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.5698205", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "a042815ce2283cc6c3688042abe87a56", "score": "0.56961775", "text": "public function show($id)\n\t{\n\t\t//\n \n \n\t}", "title": "" }, { "docid": "5bc1d8742885bcbc1dc675e2bcd69dd2", "score": "0.5689008", "text": "public function display(midgardmvc_core_request $request);", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684881", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]